/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* App Container */
.app-container {
    max-width: 414px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Screen Management */
.screen {
    display: none;
    min-height: 100vh;
    background: white;
    position: relative;
}

.screen.active {
    display: block;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #0066cc, #004499);
    color: white;
    padding: 50px 20px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: white;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    margin-right: 10px;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Search Section */
.search-section {
    padding: 20px;
    background: linear-gradient(135deg, #0066cc, #004499);
    margin-top: -10px;
}

.search-bar {
    background: white;
    border-radius: 25px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-bar i {
    color: #666;
    font-size: 18px;
}

.search-bar input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 16px;
    color: #333;
}

.search-bar input::placeholder {
    color: #999;
}

/* Quick Actions */
.quick-actions {
    padding: 20px;
}

.consultation-btn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 18px 20px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.consultation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.consultation-btn i {
    font-size: 20px;
}

/* Categories Section */
.categories-section {
    padding: 20px;
}

.categories-section h2 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.category-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.category-card:hover {
    border-color: #0066cc;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.15);
}

.category-card i {
    font-size: 32px;
    color: #0066cc;
    margin-bottom: 10px;
    display: block;
}

.category-card span {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Featured Section */
.featured-section {
    padding: 20px;
    background: #f8f9fa;
}

.featured-section h2 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 120px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
}

.product-info {
    padding: 15px;
    position: relative;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    line-height: 1.3;
}

.product-price {
    font-size: 16px;
    font-weight: bold;
    color: #0066cc;
    margin-bottom: 10px;
}

.product-type {
    font-size: 11px;
    background: #e3f2fd;
    color: #0066cc;
    padding: 3px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 10px;
    font-weight: 500;
}

.add-to-cart-btn {
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background: #0052a3;
}

/* Product Grid Actions */
.product-info .product-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.product-info .product-actions .add-to-cart-btn {
    flex: 1;
    margin: 0;
    padding: 8px 12px;
    font-size: 12px;
}

/* Filters Section */
.filters-section {
    padding: 20px;
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.filter-tab {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab.active {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
}

.sort-section select {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    width: 100%;
    cursor: pointer;
}

/* Products Grid */
.products-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* Product Detail Styles */
.product-detail-content {
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.product-detail-header {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.product-detail-image-container {
    flex: 0 0 300px;
    position: relative;
}

.product-detail-image {
    font-size: 120px;
    text-align: center;
    margin: 20px 0;
    background: #f8fafc;
    border-radius: 12px;
    padding: 40px;
    border: 2px solid #e2e8f0;
}

.product-badges {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.type-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.type-badge.otc {
    background: #dcfce7;
    color: #166534;
}

.type-badge.prescription {
    background: #fef3c7;
    color: #92400e;
}

.fast-delivery {
    background: #dbeafe;
    color: #1e40af;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-detail-info {
    flex: 1;
}

.product-detail-info h1 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #1f2937;
    font-weight: 700;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.rating-stars {
    color: #fbbf24;
    font-size: 18px;
}

.rating-text {
    color: #6b7280;
    font-size: 14px;
}

.price-section {
    margin-bottom: 20px;
}

.current-price {
    font-size: 32px;
    color: #059669;
    font-weight: 700;
    margin-bottom: 5px;
}

.price-per-unit {
    color: #6b7280;
    font-size: 14px;
}

.availability-section {
    margin-bottom: 25px;
}

.in-stock {
    color: #059669;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.prescription-required {
    color: #dc2626;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.stock-info {
    color: #6b7280;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-selector label {
    font-weight: 600;
    color: #374151;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #6366f1;
    background: white;
    color: #6366f1;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: #6366f1;
    color: white;
}

.qty-display {
    font-size: 18px;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.add-to-cart-main {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.btn-secondary {
    background: #f8fafc;
    color: #374151;
    border: 2px solid #e2e8f0;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.btn-secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

/* Tabs Styles */
.product-details-tabs {
    margin-top: 40px;
}

.tab-headers {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 30px;
}

.tab-header {
    background: none;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.tab-header:hover {
    color: #374151;
}

.tab-header.active {
    color: #6366f1;
    border-bottom-color: #6366f1;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.product-description h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #1f2937;
}

.medicine-facts {
    margin-top: 30px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.medicine-facts h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #374151;
}

.fact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.fact-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.fact-item:last-child {
    border-bottom: none;
}

.fact-label {
    font-weight: 600;
    color: #374151;
}

.fact-value {
    color: #6b7280;
}

.dosage-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1f2937;
}

.dosage-details {
    margin-bottom: 30px;
    padding: 20px;
    background: #f0f9ff;
    border-radius: 12px;
    border-left: 4px solid #0ea5e9;
}

.safety-warnings {
    margin-bottom: 30px;
    padding: 20px;
    background: #fef3c7;
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
}

.safety-warnings h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #92400e;
}

.safety-warnings ul {
    margin: 0;
    padding-left: 20px;
}

.safety-warnings li {
    margin-bottom: 8px;
    color: #78350f;
}

.side-effects {
    padding: 20px;
    background: #fef2f2;
    border-radius: 12px;
    border-left: 4px solid #ef4444;
}

.side-effects h4 {
    margin-bottom: 15px;
    color: #dc2626;
}

.side-effects ul {
    margin: 15px 0;
    padding-left: 20px;
}

.side-effects li {
    margin-bottom: 8px;
    color: #991b1b;
}

/* Reviews Tab */
.reviews-summary {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.overall-rating {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rating-number {
    font-size: 48px;
    font-weight: 700;
    color: #1f2937;
}

.rating-stars-large {
    color: #fbbf24;
    font-size: 24px;
}

.total-reviews {
    color: #6b7280;
    font-size: 16px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: white;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-author {
    font-weight: 600;
    color: #374151;
}

.review-rating {
    color: #fbbf24;
    font-size: 16px;
}

.review-text {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 10px;
}

.review-date {
    color: #9ca3af;
    font-size: 14px;
}

/* Mobile Responsive for Product Detail */
@media (max-width: 768px) {
    .product-detail-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .product-detail-image-container {
        flex: none;
        width: 100%;
    }
    
    .product-detail-image {
        font-size: 80px;
        padding: 20px;
    }
    
    .product-detail-info h1 {
        font-size: 24px;
    }
    
    .current-price {
        font-size: 24px;
    }
    
    .tab-headers {
        flex-wrap: wrap;
    }
    
    .tab-header {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .fact-grid {
        grid-template-columns: 1fr;
    }
    
    .overall-rating {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .rating-number {
        font-size: 36px;
    }
}

/* Cart Styles */
.cart-content {
    padding: 20px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.cart-empty i {
    font-size: 80px;
    margin-bottom: 20px;
}

.cart-empty h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #333;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.cart-item-price {
    font-size: 14px;
    color: #0066cc;
    font-weight: 600;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.remove-btn {
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
}

.cart-summary {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
}

.summary-row.total {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    border-top: 1px solid #e9ecef;
    padding-top: 10px;
    margin-top: 15px;
}

/* Button Styles */
.btn-primary {
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #0052a3;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline {
    background: transparent;
    color: #0066cc;
    border: 2px solid #0066cc;
    border-radius: 10px;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #0066cc;
    color: white;
}

.btn-full {
    width: 100%;
}

/* Checkout Styles */
.checkout-content {
    padding: 20px;
}

.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.step.active {
    background: #0066cc;
    color: white;
}

.step-line {
    width: 40px;
    height: 2px;
    background: #e9ecef;
    margin: 0 10px;
}

.checkout-step {
    display: none;
}

.checkout-step.active {
    display: block;
}

.checkout-step h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #333;
}

.checkout-step h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

/* Form Structure */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.checkout-step input,
.checkout-step select {
    width: 100%;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.checkout-step input:focus,
.checkout-step select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.checkout-step small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

/* Form Validation Styles */
.checkout-step input.valid {
    border-color: #2ecc71 !important;
    box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.2) !important;
}

.checkout-step input.invalid {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2) !important;
}

.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
    display: block;
}

/* Card Type Icon */
.card-type-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    pointer-events: none;
    z-index: 2;
}

.form-group {
    position: relative;
}

.payment-options {
    margin-bottom: 20px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: #0066cc;
}

.payment-option input[type="radio"] {
    margin-right: 10px;
    width: auto;
}

.payment-option span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.card-details {
    margin-bottom: 20px;
}

.card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.upload-area {
    border: 2px dashed #0066cc;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.upload-area:hover {
    background: #f0f8ff;
}

.upload-area i {
    font-size: 32px;
    color: #0066cc;
    margin-bottom: 10px;
    display: block;
}

.upload-area p {
    color: #666;
    font-size: 14px;
}

.order-summary {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.final-total {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
}

/* Confirmation Styles */
.confirmation-content {
    padding: 40px 20px;
    text-align: center;
}

.success-icon {
    margin-bottom: 20px;
}

.success-icon i {
    font-size: 80px;
    color: #2ecc71;
}

.confirmation-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.confirmation-content p {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.order-details {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
}

.order-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
}

.order-info:last-child {
    margin-bottom: 0;
}

.confirmation-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Tracking Styles */
.tracking-content {
    padding: 20px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.order-header h2 {
    font-size: 20px;
    color: #333;
}

.order-status {
    background: #2ecc71;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.tracking-progress {
    margin-bottom: 30px;
}

.progress-step {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    position: relative;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 22px;
    top: 50px;
    width: 2px;
    height: 40px;
    background: #e9ecef;
}

.progress-step.completed::after {
    background: #2ecc71;
}

.progress-step.active::after {
    background: #0066cc;
}

.step-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e9ecef;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.progress-step.completed .step-icon {
    background: #2ecc71;
    color: white;
}

.progress-step.active .step-icon {
    background: #0066cc;
    color: white;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.step-content p {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.step-time {
    color: #999;
    font-size: 12px;
}

.delivery-info {
    margin-bottom: 30px;
}

.delivery-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
}

.delivery-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.delivery-card p {
    margin-bottom: 8px;
    color: #666;
}

.tracking-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tracking-actions .btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h2 {
    font-size: 20px;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 5px;
}

.modal-body {
    padding: 20px;
}

.consultation-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.consultation-card {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.consultation-card:hover {
    border-color: #0066cc;
}

.consultation-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.consultation-card p {
    font-size: 24px;
    font-weight: bold;
    color: #0066cc;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 375px) {
    .app-container {
        max-width: 100%;
    }
    
    .header {
        padding: 45px 15px 15px;
    }
    
    .search-section,
    .quick-actions,
    .categories-section,
    .featured-section,
    .cart-content,
    .checkout-content,
    .tracking-content {
        padding: 15px;
    }
    
    .categories-grid,
    .featured-grid,
    .products-grid {
        gap: 12px;
    }
    
    .logo {
        font-size: 24px;
    }
}

@media (min-width: 415px) {
    .app-container {
        border-radius: 10px;
        margin: 20px auto;
        box-shadow: 0 10px 50px rgba(0, 0, 0, 0.15);
    }
    
    .header {
        border-radius: 10px 10px 0 0;
    }
}

/* Floating Home Button */
.floating-home-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    font-size: 20px;
}

.floating-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.floating-home-btn:active {
    transform: translateY(0);
}

/* Hide floating button on home screen */
#home-screen.active ~ .floating-home-btn {
    display: none;
}

/* Medicine Info Button Styles */
.medicine-info-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #667eea;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
}

.medicine-info-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    transform: scale(1.1);
}

.medicine-info-btn:active {
    transform: scale(0.95);
}

/* Medicine Info Modal Content Styles */
.medicine-info-content {
    max-height: 60vh;
    overflow-y: auto;
}

.medicine-info-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.medicine-info-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.medicine-info-section h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.medicine-info-section h3 i {
    color: #667eea;
    font-size: 16px;
}

.medicine-info-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.medicine-info-section ul {
    list-style: none;
    padding: 0;
}

.medicine-info-section li {
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.medicine-info-section li::before {
    content: "•";
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.dosage-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
}

.dosage-item {
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.dosage-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.dosage-item strong {
    color: #333;
}

.side-effects {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.side-effect-category h4 {
    color: #333;
    font-size: 16px;
    margin-bottom: 10px;
}

.side-effect-category.serious h4 {
    color: #dc3545;
}

.side-effect-category ul {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
}

.side-effect-category.serious ul {
    background: #fff5f5;
    border: 1px solid #fecaca;
}

.medicine-info-disclaimer {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
}

.medicine-info-disclaimer p {
    color: #856404;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.medicine-info-error {
    text-align: center;
    padding: 30px;
    color: #666;
}

.medicine-info-error p {
    margin-bottom: 15px;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #667eea;
}

.loading-spinner i {
    font-size: 32px;
    margin-bottom: 15px;
}

.loading-spinner p {
    color: #666;
    font-size: 16px;
}

/* Modal responsiveness for medicine info */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .medicine-info-section h3 {
        font-size: 16px;
    }
    
    .side-effects {
        flex-direction: column;
    }
    
    .dosage-info {
        padding: 12px;
    }
} 