/* Supplements Page Styles */
.supplements-page {
    --primary-color: #6366f1;
    --primary-light: #818cf8;
    --dark-bg: #0f1a2a;
    --darker-bg: #0a0f1a;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --accent-color: #60a5fa;
    --success-color: #10b981;
    --border-color: rgba(255, 255, 255, 0.1);
    
    font-family: 'Tajawal', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0f1a 0%, #141c2e 100%);
    color: var(--text-primary);
    padding: 1rem 0 3rem;
    background: linear-gradient(135deg, #0a0f1a 0%, #141c2e 100%);
    color: #e2e8f0;
    min-height: 100vh;
    padding: 1rem 0 3rem;
}

.supplements-page .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.supplements-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* Category Sections */
.category-section {
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.category-section:last-child {
    margin-bottom: 1.5rem;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

.category-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.category-header i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-left: 20px;
    background: rgba(99, 102, 241, 0.15);
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.category-title {
    color: var(--text-primary) !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    position: relative;
    padding-right: 10px;
}

.supplements-page .supplements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0;
    padding: 0.5rem;
}

.supplement-card {
    background: rgba(15, 23, 42, 0.8) !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(99, 102, 241, 0.2) !important;
    color: #e2e8f0 !important;
    backdrop-filter: blur(10px);
}

.supplement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(99, 102, 241, 0.4) !important;
    background: rgba(15, 23, 42, 0.9) !important;
}

.supplement-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.supplement-img-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.supplement-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.supplement-card:hover .supplement-img {
    transform: scale(1.05);
}

.supplement-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.supplement-title {
    color: #f8fafc !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    margin: 15px 15px 10px 15px !important;
    line-height: 1.4 !important;
    text-align: right !important;
}

.supplement-brand {
    color: #a5b4fc !important;
    font-size: 1rem !important;
    margin: 0 15px 10px 15px !important;
    text-align: right !important;
}

.supplement-description {
    color: #cbd5e1 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin: 0 15px 15px 15px !important;
    flex-grow: 1 !important;
    text-align: right !important;
}

.supplement-price {
    color: #60a5fa !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    margin: 0 15px 15px 15px !important;
    text-align: right !important;
}

.supplement-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.supplement-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 16px !important;
    margin: 0 15px 15px 15px !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    border: none !important;
    cursor: pointer !important;
}

.whatsapp-btn {
    background-color: #25D366 !important;
    color: white !important;
}

.whatsapp-btn:hover {
    background-color: #128C7E !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(18, 140, 126, 0.3) !important;
}

.whatsapp-btn i {
    margin-left: 8px !important;
    font-size: 1.1rem !important;
}

.btn-details i {
    margin-left: 6px;
}

/* No Products Message */
.no-products {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: #cbd5e1;
    grid-column: 1 / -1;
    margin: 20px 0;
}

.no-products i {
    font-size: 3rem;
    color: #4b5563;
    margin-bottom: 15px;
    display: block;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px 0;
    color: #9ca3af;
    grid-column: 1 / -1;
}

/* Page Header */
.supplements-page h2.supplements-title {
    text-align: center;
    font-size: 2.5rem;
    margin: 2rem 0 1.5rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 1rem;
}

.supplements-page h2.supplements-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
}

.section-description {
    text-align: center;
    color: var(--text-secondary) !important;
    max-width: 800px;
    margin: 0 auto 3rem !important;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .supplements-page .supplements-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
    
    .category-header i {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .category-title {
        font-size: 1.6rem !important;
    }
}

@media (max-width: 768px) {
    .supplement-price {
        font-size: 1.2rem;
        margin: 0.6rem 0;
    }
    
    .price-amount {
        font-size: 1.25rem;
    }
    
    .price-currency {
        font-size: 0.85rem;
    }
    
    .old-price {
        font-size: 0.9rem;
    }
    
    .old-price .price-amount {
        font-size: 1rem;
    }
    
    .old-price .price-currency {
        font-size: 0.75rem;
    }
    
    .contact-price {
        font-size: 0.9rem;
        padding: 0.3rem 0.7rem;
    }
    .supplements-page .container {
        padding: 0.5rem;
        margin: 0.5rem;
        width: auto;
    }
    
    .category-section {
        padding: 1rem;
        margin-bottom: 2.5rem;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 1.5rem;
    }
    
    .category-header i {
        margin: 0 0 15px 0;
    }
    
    .category-title {
        font-size: 1.5rem !important;
    }
    
    .supplements-page .supplements-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.25rem;
        padding: 0;
    }
    
    .supplement-card {
        max-width: 100%;
    }
    .supplement-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
    
    .supplement-img-container {
        height: 180px;
    }
    
    .supplement-info {
        padding: 15px;
    }
    
    .supplement-title {
        font-size: 1.1rem;
    }
    
    .supplement-price {
        font-size: 1.2rem;
    }
}
