/* ====================================
   SKINCEE DERMASCIENCE - Products Page Styles
   ==================================== */

/* ===== AOS Fallback - Ensure Content Visible ===== */
[data-aos] {
    opacity: 1 !important;
    transform: none !important;
}

/* ===== Page Hero Section ===== */
.page-hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
    background: var(--color-ivory);
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
}

.page-hero-gradient::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.page-hero-gradient::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 50%;
    height: 60%;
    background: radial-gradient(circle, rgba(14, 138, 78, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--color-text-light);
    transition: var(--transition-normal);
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.breadcrumb i {
    font-size: 0.7rem;
    color: var(--color-text-lighter);
}

.breadcrumb span {
    color: var(--color-primary);
    font-weight: 500;
}

.page-hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ===== Categories Navigation ===== */
.product-categories-nav {
    background: var(--color-white);
    padding: 60px 0;
}

.categories-nav-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 16px;
}

.category-nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: var(--color-ivory);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: var(--transition-normal);
    border-bottom: 3px solid transparent;
}

.category-nav-card:hover {
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.category-nav-card:nth-child(1) { border-bottom-color: var(--color-primary); }
.category-nav-card:nth-child(2) { border-bottom-color: var(--color-secondary); }
.category-nav-card:nth-child(3) { border-bottom-color: #F1C40F; }
.category-nav-card:nth-child(4) { border-bottom-color: var(--color-orange); }
.category-nav-card:nth-child(5) { border-bottom-color: var(--color-purple); }
.category-nav-card:nth-child(6) { border-bottom-color: var(--color-accent); }
.category-nav-card:nth-child(7) { border-bottom-color: #3498DB; }
.category-nav-card:nth-child(8) { border-bottom-color: #2ECC71; }

.category-nav-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    color: var(--color-white);
}

.category-nav-card:nth-child(1) .category-nav-icon { background: var(--gradient-primary); }
.category-nav-card:nth-child(2) .category-nav-icon { background: var(--gradient-secondary); }
.category-nav-card:nth-child(3) .category-nav-icon { background: linear-gradient(135deg, #F1C40F 0%, #F39C12 100%); }
.category-nav-card:nth-child(4) .category-nav-icon { background: linear-gradient(135deg, #E67E22 0%, #D35400 100%); }
.category-nav-card:nth-child(5) .category-nav-icon { background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%); }
.category-nav-card:nth-child(6) .category-nav-icon { background: var(--gradient-accent); }
.category-nav-card:nth-child(7) .category-nav-icon { background: linear-gradient(135deg, #3498DB 0%, #2980B9 100%); }
.category-nav-card:nth-child(8) .category-nav-icon { background: linear-gradient(135deg, #2ECC71 0%, #27AE60 100%); }

.category-nav-card span {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
}

/* ===== Product Sections ===== */
.product-section {
    padding: 80px 0;
    background: var(--color-white);
}

.product-section.alt-bg {
    background: var(--color-ivory);
}

.product-section-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--color-cream);
}

.section-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    font-size: 2rem;
    color: var(--color-white);
    flex-shrink: 0;
}

.section-icon.antifungal { background: var(--gradient-primary); }
.section-icon.emollient { background: var(--gradient-secondary); }
.section-icon.suncare { background: linear-gradient(135deg, #F1C40F 0%, #F39C12 100%); }
.section-icon.antiallergy { background: linear-gradient(135deg, #E67E22 0%, #D35400 100%); }
.section-icon.demelanizing { background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%); }
.section-icon.corticosteroids { background: var(--gradient-accent); }
.section-icon.topical { background: linear-gradient(135deg, #3498DB 0%, #2980B9 100%); }
.section-icon.antiscabies { background: linear-gradient(135deg, #2ECC71 0%, #27AE60 100%); }
.section-icon.adjunctive { background: linear-gradient(135deg, #1ABC9C 0%, #16A085 100%); }

.section-info .section-title {
    margin-bottom: 8px;
    font-size: 2rem;
}

.section-info .section-subtitle {
    font-size: 1rem;
    color: var(--color-text-light);
    margin: 0;
}

/* ===== Products Grid ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.product-detail-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--color-cream);
}

.product-section.alt-bg .product-detail-card {
    border-color: transparent;
}

.product-detail-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-detail-card.featured {
    grid-column: span 2;
}

.product-detail-card.featured .product-detail-image img,
.product-detail-card.featured .product-placeholder {
    height: 300px;
}

.product-detail-image {
    position: relative;
    overflow: hidden;
}

.product-detail-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition-normal);
}

.product-detail-card:hover .product-detail-image img {
    transform: scale(1.05);
}

.product-placeholder {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-ivory) 0%, var(--color-cream) 100%);
}

.product-placeholder i {
    font-size: 4rem;
    color: var(--color-text-lighter);
    opacity: 0.5;
}

.product-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 16px;
    background: var(--color-white);
    color: var(--color-text);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.product-tag.bestseller {
    background: var(--gradient-primary);
    color: var(--color-white);
}

.product-tag.popular {
    background: var(--gradient-accent);
    color: var(--color-white);
}

.product-tag.premium {
    background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%);
    color: var(--color-white);
}

.product-detail-info {
    padding: 28px;
}

.product-detail-info h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.product-strength {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.product-description {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.product-features span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--color-ivory);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--color-text);
}

.product-features span i {
    color: var(--color-primary);
    font-size: 0.7rem;
}

/* ===== Products CTA Section ===== */
.products-cta {
    background: var(--color-ivory);
    position: relative;
    overflow: hidden;
}

.products-cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 50%, var(--color-primary-soft) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, var(--color-secondary-soft) 0%, transparent 50%);
    opacity: 0.6;
}

.products-cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.products-cta-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
    line-height: 1.3;
}

.products-cta-content p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 32px;
}

.products-cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* ===== Responsive Styles ===== */
@media (max-width: 1400px) {
    .categories-nav-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-detail-card.featured {
        grid-column: span 1;
    }

    .product-detail-card.featured .product-detail-image img,
    .product-detail-card.featured .product-placeholder {
        height: 220px;
    }
}

@media (max-width: 992px) {
    .page-hero {
        padding: 140px 0 80px;
    }

    .page-hero-title {
        font-size: 2.75rem;
    }

    .categories-nav-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .product-section-header {
        flex-direction: column;
        text-align: center;
    }

    .section-info {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 60px;
    }

    .page-hero-title {
        font-size: 2.25rem;
    }

    .page-hero-subtitle {
        font-size: 1rem;
    }

    .categories-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-nav-card {
        padding: 20px 12px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-section {
        padding: 60px 0;
    }

    .section-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }

    .section-info .section-title {
        font-size: 1.75rem;
    }

    .products-cta-content h2 {
        font-size: 2rem;
    }

    .products-cta-buttons {
        flex-direction: column;
        gap: 16px;
    }

    .products-cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .page-hero {
        padding: 110px 0 50px;
    }

    .page-hero-title {
        font-size: 1.85rem;
    }

    .breadcrumb {
        font-size: 0.8rem;
    }

    .categories-nav-grid {
        gap: 12px;
    }

    .category-nav-card {
        padding: 16px 10px;
    }

    .category-nav-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .category-nav-card span {
        font-size: 0.7rem;
    }

    .product-detail-info {
        padding: 20px;
    }

    .product-detail-info h3 {
        font-size: 1.15rem;
    }

    .product-description {
        font-size: 0.85rem;
    }

    .products-cta-content h2 {
        font-size: 1.65rem;
    }
}
