/*--------------------------------------------------------------
# Products Archive Page - Modern Design
--------------------------------------------------------------*/

.products-archive-page {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    min-height: 100vh;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.products-hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.products-hero-section .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(26, 26, 26, 0.9) 50%, 
        rgba(0, 0, 0, 0.8) 100%
    ), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffd700" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    z-index: 1;
}

.products-hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

.products-hero-section .container {
    position: relative;
    z-index: 3;
    text-align: center;
}

.products-hero-section .hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 215, 0, 0.1);
    color: var(--color-accent-gold);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge svg {
    width: 20px;
    height: 20px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title .title-main {
    display: block;
    color: var(--color-neutral-white);
    font-weight: 300;
}

.hero-title .title-highlight {
    display: block;
    background: linear-gradient(135deg, var(--color-accent-gold) 0%, #ffed4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-stats .stat-item {
    text-align: center;
}

.hero-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.hero-stats .stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 215, 0, 0.3);
}



/*--------------------------------------------------------------
# Product Categories Section
--------------------------------------------------------------*/
.product-categories-section {
    padding: 6rem 0;
    position: relative;
}

.product-categories-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.02) 0%, transparent 100%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--color-neutral-white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-title .highlight {
    color: var(--color-accent-gold);
    position: relative;
}

.section-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent-gold) 0%, #ffed4a 100%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.category-card {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%) !important;
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
    box-shadow: 0 1px 0 rgba(251, 191, 36, 0.08), 0 12px 30px rgba(0,0,0,0.25);
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.10), 0 25px 50px rgba(0,0,0,0.35);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.08) 100%) !important;
}

/* Subtle animated gradient ring */
.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.65), rgba(245, 158, 11, 0.15));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0.35;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.category-card:hover::before {
    opacity: 0.6;
}

.category-link {
    display: block;
    text-decoration: none;
    height: 100%;
}

.category-image-container {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid rgba(251, 191, 36, 0.15);
}

/* Bottom fade to ensure text legibility */
.category-image-container::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.45) 100%);
    pointer-events: none;
    z-index: 1;
}

.category-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image .category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-img {
    transform: scale(1.1);
}

.category-placeholder {
    background: rgba(255, 215, 0, 0.1);
    color: var(--color-accent-gold);
}

.category-placeholder svg {
    width: 80px;
    height: 80px;
    opacity: 0.7;
}

.category-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    gap: 0.4rem;
    z-index: 3;
}

.badge {
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.badge-popular {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white;
}

.badge-new {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.45) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-accent-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.overlay-content svg {
    transition: transform 0.3s ease;
}

.category-card:hover .overlay-content svg {
    transform: translateX(5px);
}

/* CTA chip on hover */
.category-card .overlay-content span {
    display: inline-block;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(251, 191, 36, 0.5);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: saturate(1.2) blur(6px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.category-content {
    padding: 1.25rem 1.25rem 1.5rem;
    background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.65) 100%);
    border-top: 1px solid rgba(251, 191, 36, 0.15);
}

.category-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.35rem;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.category-name::after {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    margin-top: 0.5rem;
    background: linear-gradient(90deg, var(--color-accent-gold) 0%, rgba(251,191,36,0) 100%);
    border-radius: 1px;
}

.category-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 1px rgba(0,0,0,0.5);
}

/* Accessible keyboard focus */
.category-link:focus-visible {
    outline: 2px solid var(--color-accent-gold);
    outline-offset: 3px;
    border-radius: 16px;
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
    .category-card,
    .hero-badge,
    .hero-title,
    .hero-description,
    .hero-stats {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}



/*--------------------------------------------------------------
# Why Choose Section
--------------------------------------------------------------*/
.why-choose-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, transparent 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
    margin-bottom: 1.5rem;
    color: var(--color-accent-gold);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-neutral-white);
    margin-bottom: 1rem;
}

.feature-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

/*--------------------------------------------------------------
# Product Education Section
--------------------------------------------------------------*/
.product-education-section {
    padding: 6rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.education-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.education-text .section-title {
    text-align: left;
    margin-bottom: 2rem;
}

.education-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.education-points {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.education-point {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.education-point svg {
    color: var(--color-accent-gold);
    flex-shrink: 0;
}

.education-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.education-image {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
    border: 2px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.education-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.3);
    border-color: var(--color-accent-gold);
}

.extract-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.education-image:hover .extract-image {
    transform: scale(1.05);
}

/*--------------------------------------------------------------
# Animations
--------------------------------------------------------------*/
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*--------------------------------------------------------------
# Responsive Design
--------------------------------------------------------------*/
@media (max-width: 768px) {
    .products-hero-section {
        min-height: 70vh;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-stats .stat-divider {
        width: 50px;
        height: 1px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .education-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .education-text .section-title {
        text-align: center;
    }
    
    .education-image {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .education-image:hover {
        transform: none;
    }
    
    .education-image:hover .extract-image {
        transform: none;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 1rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .product-categories-section,
    .why-choose-section,
    .product-education-section {
        padding: 3rem 0;
    }
    
    .category-image-container {
        aspect-ratio: 1 / 1;
    }
    
    .category-content {
        padding: 1.5rem;
    }
}
