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

/* Blue Theme (Current) */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #1e40af;
    --accent-color: #1e40af;
    --gold-accent: #d97706;
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%);
    --gradient-secondary: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);
    --gradient-accent: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    --header-gradient: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3730a3 100%);
    --text-color: #374151;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --background-light: #f0f4ff;
    --background-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Teal Theme */
/*
:root {
    --primary-color: #0f766e;
    --secondary-color: #0d9488;
    --accent-color: #0d9488;
    --gold-accent: #d97706;
    --gradient-primary: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    --gradient-secondary: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    --gradient-accent: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    --header-gradient: linear-gradient(135deg, #0f766e 0%, #14b8a6 50%, #0d9488 100%);
    --text-color: #374151;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --background-light: #f0fdfa;
    --background-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
}
*/

/* Alternative Color Schemes - Uncomment to test */

/* Green Theme */
/*
:root {
    --primary-color: #065f46;
    --secondary-color: #047857;
    --accent-color: #047857;
    --gold-accent: #d97706;
    --gradient-primary: linear-gradient(135deg, #065f46 0%, #047857 100%);
    --gradient-secondary: linear-gradient(135deg, #047857 0%, #059669 100%);
    --gradient-accent: linear-gradient(135deg, #047857 0%, #065f46 100%);
    --header-gradient: linear-gradient(135deg, #065f46 0%, #10b981 50%, #047857 100%);
    --text-color: #374151;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --background-light: #f0fdf4;
    --background-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
}
*/

/* Purple Theme */
/*
:root {
    --primary-color: #581c87;
    --secondary-color: #7c3aed;
    --accent-color: #7c3aed;
    --gold-accent: #d97706;
    --gradient-primary: linear-gradient(135deg, #581c87 0%, #7c3aed 100%);
    --gradient-secondary: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    --gradient-accent: linear-gradient(135deg, #7c3aed 0%, #581c87 100%);
    --header-gradient: linear-gradient(135deg, #581c87 0%, #8b5cf6 50%, #7c3aed 100%);
    --text-color: #374151;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --background-light: #faf5ff;
    --background-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
}
*/

/* Teal Theme */
/*
:root {
    --primary-color: #0f766e;
    --secondary-color: #0d9488;
    --accent-color: #0d9488;
    --gold-accent: #d97706;
    --gradient-primary: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    --gradient-secondary: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    --gradient-accent: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    --header-gradient: linear-gradient(135deg, #0f766e 0%, #14b8a6 50%, #0d9488 100%);
    --text-color: #374151;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --background-light: #f0fdfa;
    --background-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
}
*/

/* Dark Red Theme */
/*
:root {
    --primary-color: #7f1d1d;
    --secondary-color: #991b1b;
    --accent-color: #991b1b;
    --gold-accent: #d97706;
    --gradient-primary: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
    --gradient-secondary: linear-gradient(135deg, #991b1b 0%, #dc2626 100%);
    --gradient-accent: linear-gradient(135deg, #991b1b 0%, #7f1d1d 100%);
    --header-gradient: linear-gradient(135deg, #7f1d1d 0%, #dc2626 50%, #991b1b 100%);
    --text-color: #374151;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --background-light: #fef2f2;
    --background-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
}
*/

/* Orange Theme */
/*
:root {
    --primary-color: #c2410c;
    --secondary-color: #ea580c;
    --accent-color: #ea580c;
    --gold-accent: #d97706;
    --gradient-primary: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
    --gradient-secondary: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    --gradient-accent: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    --header-gradient: linear-gradient(135deg, #c2410c 0%, #f97316 50%, #ea580c 100%);
    --text-color: #374151;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --background-light: #fff7ed;
    --background-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
}
*/

/* Yellow Theme */
/*
:root {
    --primary-color: #a16207;
    --secondary-color: #ca8a04;
    --accent-color: #ca8a04;
    --gold-accent: #d97706;
    --gradient-primary: linear-gradient(135deg, #a16207 0%, #ca8a04 100%);
    --gradient-secondary: linear-gradient(135deg, #ca8a04 0%, #eab308 100%);
    --gradient-accent: linear-gradient(135deg, #ca8a04 0%, #a16207 100%);
    --header-gradient: linear-gradient(135deg, #a16207 0%, #eab308 50%, #ca8a04 100%);
    --text-color: #374151;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --background-light: #fefce8;
    --background-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
}
*/

/* Charcoal Gray Theme */
/*
:root {
    --primary-color: #374151;
    --secondary-color: #4b5563;
    --accent-color: #6b7280;
    --gold-accent: #d97706;
    --gradient-primary: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    --gradient-secondary: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
    --gradient-accent: linear-gradient(135deg, #6b7280 0%, #374151 100%);
    --header-gradient: linear-gradient(120deg, #1f2937 0%, #4b5563 35%, #374151 70%, #1f2937 100%);
    --text-color: #1f2937;
    --text-light: #374151;
    --text-muted: #6b7280;
    --background-light: #f9fafb;
    --background-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
}
*/

/* Black Theme */
/*
:root {
    --primary-color: #000000;
    --secondary-color: #1a1a1a;
    --tertiary-color: #2c2c2c;
    --accent-color: #404040;
    --accent-light: #595959;
    --accent-lighter: #737373;
    --gold-accent: #d97706;
    --gradient-primary: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    --gradient-secondary: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    --gradient-accent: linear-gradient(135deg, #404040 0%, #000000 100%);
    --header-gradient: linear-gradient(120deg, #000000 0%, #1a1a1a 35%, #2c2c2c 70%, #000000 100%);
    --text-color: #000000;
    --text-secondary: #1a1a1a;
    --text-tertiary: #2c2c2c;
    --text-light: #404040;
    --text-muted: #595959;
    --text-lighter: #737373;
    --background-light: #ffffff;
    --background-white: #ffffff;
    --border-color: #e0e0e0;
    --border-light: #f0f0f0;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
}
*/

body {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-light);
}

/* Hero Carousel */
.hero-carousel {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    background: var(--gradient-primary);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Category-specific colors */
.carousel-slide.category-244593 {
    background: linear-gradient(135deg, #a21caf 0%, #c026d3 50%, #86198f 100%);
}

.carousel-slide.category-244594 {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #047857 100%);
}

.carousel-slide.category-244595 {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 50%, #0c4a6e 100%);
}

.carousel-slide.category-244596 {
    background: linear-gradient(135deg, #ca8a04 0%, #eab308 50%, #a16207 100%);
}

.carousel-slide.category-244597 {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #047857 100%);
}

.carousel-slide.category-244599 {
    background: linear-gradient(135deg, #7c2d12 0%, #ea580c 50%, #9a3412 100%);
}

.carousel-slide.category-244600 {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 50%, #0d9488 100%);
}

.carousel-slide.category-244603 {
    background: linear-gradient(135deg, #b45309 0%, #f97316 50%, #9a3412 100%);
}

.carousel-slide.category-244604 {
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 50%, #3730a3 100%);
}

.carousel-slide.category-244605 {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #a855f7 100%);
}

.carousel-slide.category-244606 {
    background: linear-gradient(135deg, #be123c 0%, #e11d48 50%, #9f1239 100%);
}

.carousel-slide.category-244607 {
    background: linear-gradient(135deg, #1f2937 0%, #374151 50%, #111827 100%);
}

.carousel-slide.category-244608 {
    background: linear-gradient(135deg, #166534 0%, #22c55e 50%, #15803d 100%);
}

.carousel-slide.category-244609 {
    background: linear-gradient(135deg, #7c2d12 0%, #ea580c 50%, #9a3412 100%);
}

.carousel-slide.category-518073 {
    background: linear-gradient(135deg, #92400e 0%, #d97706 50%, #78350f 100%);
}

.carousel-slide.category-535978 {
    background: linear-gradient(135deg, #a16207 0%, #fbbf24 50%, #92400e 100%);
}

.carousel-slide.category-532910 {
    background: linear-gradient(135deg, #ec4899 0%, #f472b6 50%, #db2777 100%);
}

.carousel-slide.category-535979 {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #b91c1c 100%);
}

.carousel-slide.category-518696 {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #1d4ed8 100%);
}

.carousel-slide.category-657100 {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 50%, #991b1b 100%);
}

.carousel-slide.category-667753 {
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 50%, #374151 100%);
}

.carousel-slide.all-products {
    background: linear-gradient(135deg, #374151 0%, #6b7280 50%, #1f2937 100%);
}

.slide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    height: 100%;
    padding: 0 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

.slide-text {
    text-align: left;
}

.slide-products {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

/* Handle hidden products gracefully */
.featured-product {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    flex: 1;
    max-width: 180px;
}

.featured-product.hidden {
    display: none !important;
}

.no-featured-products {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    text-align: center;
    padding: 2rem;
    font-style: italic;
}

.featured-product:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.featured-product img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.featured-product img:not([src]) {
    opacity: 0.5;
    background: rgba(255, 255, 255, 0.7);
}

.featured-product img[src*="data:image/svg+xml"] {
    filter: grayscale(10%);
    opacity: 0.8;
}

.product-placeholder {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    color: var(--text-color);
    font-weight: 600;
    text-align: center;
    font-size: 0.9rem;
    padding: 0.5rem;
}

.slide-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.slide-text p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.6;
}

.cta-button {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 1px;
}


.cta-button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active,
.nav-dot:hover {
    background: white;
    transform: scale(1.2);
}

/* Carousel Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border-radius: 50%;
    line-height: 1;
    padding: 0;
    margin: 0;
    text-align: center;
    vertical-align: middle;
    padding-bottom: 0.2rem;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 1rem;
    z-index: 10;
}

.carousel-next {
    right: 1rem;
    z-index: 10;
}

/* Responsive Design for Carousel */
@media (max-width: 1024px) {
    .slide-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 0 2rem;
    }
    
    .slide-text {
        text-align: center;
    }

    .slide-text .cta-button {
        display: block;
        margin: 0 auto;
    }
    
    .featured-product {
        max-width: 140px;
    }
    
    .featured-product img {
        height: 100px;
    }
}

@media (max-width: 768px) {
    .hero-carousel {
        height: 50vh;
        min-height: 350px;
    }
    
    .slide-content {
        padding: 1rem;
        gap: 1.5rem;
        justify-content: center;
    }
    
    .slide-text {
        order: 1;
    }
    
    .slide-text h1 {
        font-size: 2.2rem;
        margin-bottom: 0.75rem;
        line-height: 1.1;
        text-align: center;
    }
    
    .slide-text p {
        font-size: 1rem;
        margin-bottom: 1.25rem;
        line-height: 1.4;
        text-align: center;
    }
    
    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
        margin-top: 1rem;
        align-self: center;
    }
    
    .carousel-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        width: 2.5rem;
        height: 2.5rem;
        line-height: 1;
        padding: 0;
        margin: 0;
        padding-bottom: 0.15rem;
    }
    
    .slide-products {
        order: 2;
        gap: 0.75rem;
        justify-content: center;
        flex-wrap: wrap;
        max-width: 100%;
    }
    
    .featured-product {
        max-width: 100px;
        min-width: 100px;
        padding: 0.75rem;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 8px;
    }
    
    .featured-product img {
        height: 80px;
        padding: 0.5rem;
    }
    
    .carousel-nav {
        bottom: 15px;
        gap: 0.75rem;
    }
    
    .nav-dot {
        width: 10px;
        height: 10px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

h2 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Header */
.header {
    /* Clear Header (Current) */
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border-bottom: 1px solid rgba(30, 58, 138, 0.1);
    
    /* Colored Header */
    /* background: var(--header-gradient); */
    /* color: white; */
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.1); */
    
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(12px);
}

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

.logo h1 {
    /* Clear Header (Current) */
    color: var(--primary-color);
    text-shadow: 0 1px 2px rgba(30, 58, 138, 0.1);
    
    /* Colored Header */
    /* color: white; */
    /* text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); */
    
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-weight: bold;
    letter-spacing: -0.5px;
}

.logo .logo-title {
    color: var(--primary-color);
    text-shadow: 0 1px 2px rgba(30, 58, 138, 0.1);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-weight: bold;
    letter-spacing: -0.5px;
}

.logo h1 a {
    /* Clear Header (Current) */
    color: var(--primary-color);
    
    /* Colored Header */
    /* color: white; */
    
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.logo .logo-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.logo .logo-title a::after {
    display: none;
}

.logo .logo-title a:hover::after {
    display: none;
}

.logo .logo-title a:hover {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}
.logo h1 a::after {
    display: none;
}

.logo h1 a:hover::after {
    display: none;
}

.logo h1 a:hover {
    /* Colored Header (Current) */
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    
    /* Clear Header */
    /* color: var(--secondary-color); */
    
    transform: translateY(-1px);
}

.tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.catalog-list {
    margin-top: 1rem;
}

.nav a {
    /* Clear Header (Current) */
    color: var(--primary-color);
    
    /* Colored Header */
    /* color: rgba(255, 255, 255, 0.9); */
    
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-size: 1.1rem;
    padding: 0.5rem 0;
}

.nav a:hover {
    /* Clear Header (Current) */
    color: var(--secondary-color);
    text-shadow: 0 1px 2px rgba(30, 64, 175, 0.2);
    
    /* Colored Header */
    /* color: white; */
    /* text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); */
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    /* Clear Header (Current) */
    background: var(--gradient-primary);
    
    /* Colored Header */
    /* background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4)); */
    
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav a:hover::after {
    width: 100%;
}

.nav a.active::after {
    width: 100%;
    /* Clear Header (Current) */
    background: var(--gradient-primary);
    
    /* Colored Header */
    /* background: linear-gradient(90deg, white, rgba(255, 255, 255, 0.8)); */
}

.nav a.active {
    /* Clear Header (Current) */
    color: var(--primary-color);
    font-weight: 600;
    
    /* Colored Header */
    /* color: white; */
    /* text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); */
}


/* Catalog Section */
.catalog-section {
    padding: 3rem 0;
    background: transparent;
    scroll-margin-top: 80px;
}

.catalog-controls {
    margin-bottom: 1rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(8px);
}

.filter-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.search-bar {
    position: relative;
    flex: 1;
}

.search-bar input {
    width: 100%;
    padding: 0.8rem 3rem 0.8rem 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-bar input:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.clear-search-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.clear-search-btn:hover {
    background: var(--background-light);
    color: var(--accent-color);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.category-filter select {
    padding: 1rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    font-size: 1.1rem;
    background: var(--gradient-primary);
    color: white;
    cursor: pointer;
    min-width: 220px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-filter select:not([value=""]) {
    border-color: var(--accent-color);
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.3);
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.category-filter select:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
}

.category-filter select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.category-filter select option {
    background: white;
    color: var(--text-color);
    padding: 0.5rem;
}

.toggle-descriptions {
    display: none;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.toggle-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.toggle-label {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
}

.category-status {
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.4s ease;
    transform: translateY(-10px);
    opacity: 0;
}

.category-status.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.category-status .category-icon {
    font-size: 1.2rem;
}

.clear-category-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.clear-category-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.page-info {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
    text-align: right;
    margin-bottom: 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.page-nav-btn {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 32px;
}

.page-nav-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    background: var(--background-light);
}

.page-nav-btn:disabled {
    opacity: 0.6;
    background: #f5f5f5;
    color: #ccc;
    border-color: #ddd;
    cursor: not-allowed;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    cursor: pointer;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: transparent;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.product-model {
    font-size: 1.1rem;
    color: var(--text-lighter);
    margin-bottom: 1rem;
    font-weight: 500;
}

.product-features {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 1rem;
    display: none;
    position: relative;
}

.product-features.visible {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-features ul {
    padding-left: 1.2rem;
}

.product-features li {
    margin-bottom: 0.3rem;
}

.product-features h4 {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 1rem 0 0.5rem 0;
    font-weight: normal;
}

.product-features h4:first-child {
    margin-top: 0;
}

.product-features.expanded {
    -webkit-line-clamp: unset;
    display: block;
}

.more-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.more-btn:hover {
    color: var(--accent-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.pagination button {
    padding: 0.8rem 1.2rem;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 1rem;
    min-width: 45px;
    position: relative;
    overflow: hidden;
}

.pagination button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.pagination button:hover::before {
    left: 0;
}

.pagination button:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
}

.pagination button.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background: transparent;
    scroll-margin-top: 80px;
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-content > p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.about-content > p:last-of-type {
    margin-bottom: 3rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature p {
    color: var(--text-light);
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: var(--background-light);
    scroll-margin-top: 80px;
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
}

.contact-details a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--header-gradient);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}

.mobile-break {
    display: none;
}

/* Loading and Error States */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.error {
    text-align: center;
    padding: 3rem;
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1rem 0;
    }
    
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }

    .logo .logo-title {
        font-size: 1.5rem;
    }
    
    .nav ul {
        gap: 1rem;
    }
    
    .nav a {
        font-size: 1rem;
        padding: 0.4rem 0;
    }
    
    
    .filter-controls {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        align-items: center;
    }
    
    .category-filter {
        width: 100%;
    }
    
    .search-bar {
        width: 100%;
    }
    
    .toggle-descriptions {
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    
    .features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    .hero-carousel {
        height: 45vh;
        min-height: 320px;
        touch-action: pan-x;
    }
    
    .slide-content {
        padding: 0.75rem;
        gap: 1rem;
        justify-content: space-between;
    }
    
    .slide-text {
        order: 1;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .slide-text h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
        line-height: 1.1;
        text-align: center;
    }
    
    .slide-text p {
        display: none;
    }
    
    .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
        margin-top: 1rem;
        align-self: center;
    }
    
    .slide-products {
        order: 2;
        gap: 0.5rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0.5rem 0;
        justify-content: center;
    }
    
    .featured-product {
        max-width: 85px;
        min-width: 85px;
        padding: 0.5rem;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .featured-product img {
        height: 60px;
        padding: 0.125rem;
    }
    
    .carousel-nav {
        display: none;
    }
    
    .pagination {
        gap: 0.3rem;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .pagination::-webkit-scrollbar {
        display: none;
    }
    
    .pagination button {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        min-width: 35px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .mobile-break {
        display: inline;
    }
    
    .catalog-section,
    .about-section,
    .contact-section {
        padding: 3rem 0;
    }
}

/* Modal Styles */
.modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 0;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

.product-page-content {
    position: relative;
    background-color: white;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    height: auto;
    max-height: none;
    overflow: visible;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Carousel Loading Indicator */
.carousel-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.carousel-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.close-button {
    position: fixed;
    top: 2vh;
    right: 2vw;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: white;
    transition: none;
    z-index: 2001;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transform: translate3d(0, 0, 0);
    will-change: background;
    contain: layout style paint;
}

.close-button:hover {
    color: white;
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.modal-image {
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
    margin: 0 auto 1.5rem auto;
    border-radius: 8px;
    background: transparent;
    height: auto;
    display: block;
    cursor: pointer;
}

.modal-info h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.modal-info h2 a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.modal-info h2 a:link,
.modal-info h2 a:visited,
.modal-info h2 a:active,
.modal-info h2 a:hover {
    color: inherit;
    text-decoration: underline;
}


.modal-info h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.modal-model {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 1.3rem;
}

.modal-features {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1.2rem;
}

.modal-features ul {
    padding-left: 1.2rem;
}

.modal-features li {
    margin-bottom: 0.3rem;
}

.modal-features h4 {
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 1rem 0 0.5rem 0;
    font-weight: normal;
}

.modal-features h4:first-child {
    margin-top: 0;
}

.modal-info .modal-close-btn {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    padding: 0;
    border: none;
    background: none;
    font-size: inherit;
    text-align: center;
    cursor: pointer;
    text-decoration: underline;
}

.modal-info .modal-close-btn:hover {
    text-decoration: underline;
}

/* Mobile modal adjustments */
@media (max-width: 768px) {
    .category-status {
        margin-bottom: 1rem;
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }
    
    .page-info {
        text-align: center;
        justify-content: center;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
        padding: 3rem 1.5rem 1.5rem 1.5rem;
        max-height: 85vh;
    }

    .product-page-content {
        margin: 5% auto;
        width: 95%;
        padding: 3rem 1.5rem 1.5rem 1.5rem;
    }
    
    .modal-image {
        max-height: 400px;
        max-width: 100%;
    }
    
    .close-button {
        right: 2vw !important;
        top: 2vh !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 1.5rem !important;
        position: fixed !important;
        transition: none !important;
        transform: translate3d(0, 0, 0) !important;
        will-change: background !important;
        contain: layout style paint !important;
    }
}

/* Fallbacks for browsers without CSS Grid support */
@supports not (display: grid) {
    .slide-content {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .slide-products {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .products-grid {
        display: flex;
        flex-wrap: wrap;
        margin: -1rem;
    }

    .product-card {
        flex: 1 1 300px;
        margin: 1rem;
    }

    .features {
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
    }

    .feature {
        flex: 1 1 240px;
    }
}
