* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.12167);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.19044);
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: linear-gradient(135deg, rgba(213, 225, 250, 0.6) 0%, rgba(201, 216, 249, 0.45) 25%, rgba(224, 187, 228, 0.3) 50%, rgba(160, 179, 232, 0.45) 75%, rgba(160, 179, 232, 0.6) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: visible;
}

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

.products-section .container {
    max-width: 100%;
    padding-left: 30px;
    padding-right: 30px;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.8rem 0;
    --header-height: calc(0.8rem * 2 + 20px + 0px);
    transition: background 0.3s, box-shadow 0.3s;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    will-change: transform;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

/* Ensure header always has blur on mobile */
@media (max-width: 768px) {
    .header {
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding-left: 0;
    max-width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-right: auto;
    margin-left: 30px;
    position: relative;
    z-index: 10;
    height: 100%;
}

.nav {
    display: flex;
    gap: 1.6rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-left: auto;
    flex-shrink: 0;
    margin-right: 30px;
}

.logo-image {
    height: 20px;
    width: auto;
    display: block;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s;
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: top;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.6px;
    background: var(--primary-color);
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: top;
}

.nav-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.5rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    max-width: 400px;
    max-height: 70vh;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1001;
    padding: 0.5rem 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border: 1px solid var(--border-color);
}

.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-item:nth-child(2n) {
    border-right: none;
}

.dropdown-item:last-child,
.dropdown-item:nth-last-child(2) {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.dropdown-item i {
    font-size: 1.1rem;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.dropdown-item span {
    flex: 1;
}

.dropdown-loading {
    padding: 1rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Categories Overlay - blurs background when categories card is open */
.categories-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10.58px);
    -webkit-backdrop-filter: blur(10.58px);
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.categories-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Categories Card - appears below header */
.categories-card {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    min-height: calc(100vh / 3);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.categories-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.categories-card-content {
    width: 100%;
    height: 100%;
    min-height: calc(100vh / 3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 1.5rem;
    box-sizing: border-box;
    position: relative;
}

.categories-card-header {
    display: none;
}

.categories-card-header h3 {
    display: none;
}

.close-categories-card {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light, #6b7280);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    z-index: 1000;
}

.close-categories-card:hover {
    color: var(--text-dark, #1f2937);
    background: var(--bg-light, #f3f4f6);
}

.categories-card-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    padding: 1rem;
    transition: padding-top 0.3s ease;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    align-self: center;
}

.categories-card-body::-webkit-scrollbar {
    width: 8px;
}

.categories-card-body::-webkit-scrollbar-track {
    background: var(--bg-light, #f3f4f6);
    border-radius: 4px;
}

.categories-card-body::-webkit-scrollbar-thumb {
    background: var(--text-light, #9ca3af);
    border-radius: 4px;
}

.categories-card-body::-webkit-scrollbar-thumb:hover {
    background: var(--text-dark, #6b7280);
}

.category-card-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark, #1f2937);
    transition: all 0.2s;
    cursor: pointer;
    width: auto;
    min-width: 100px;
    max-width: 120px;
    flex: 0 0 auto;
}

.category-card-item:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

.category-card-item img {
    width: 57.6px;
    height: 57.6px;
    object-fit: contain;
    display: block;
}

.category-card-item i {
    font-size: 3rem;
    width: 57.6px;
    height: 57.6px;
    text-align: center;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card-item span {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    color: var(--text-dark, #1f2937);
    line-height: 1.2;
}

.categories-loading {
    padding: 2rem;
    text-align: center;
    color: var(--text-light, #6b7280);
    font-size: 1rem;
    grid-column: 1 / -1;
}

/* Subcategories Card - appears below categories card when category is clicked */
/* Note: We use categories-overlay for blur, not a separate subcategories-overlay */

.subcategories-card {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    min-height: calc(100vh / 3);
    max-height: calc(100vh * 2 / 3);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 997;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.subcategories-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.subcategories-card-content {
    width: 100%;
    height: auto;
    min-height: calc(100vh / 3);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 1.5rem;
    box-sizing: border-box;
    position: relative;
}

.close-subcategories-card {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light, #6b7280);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    z-index: 1000;
}

.close-subcategories-card:hover {
    color: var(--text-dark, #1f2937);
    background: var(--bg-light, #f3f4f6);
}

.subcategories-card-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    padding: 1rem;
    transition: padding-top 0.3s ease;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    align-self: center;
}

.subcategory-card-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark, #1f2937);
    transition: all 0.2s;
    cursor: pointer;
    width: auto;
    min-width: 100px;
    max-width: 120px;
    flex: 0 0 auto;
}

.subcategory-card-item:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

.subcategory-card-item img {
    width: 57.6px;
    height: 57.6px;
    object-fit: contain;
    display: block;
}

.subcategory-card-item span {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    color: var(--text-dark, #1f2937);
    line-height: 1.2;
}

.subcategories-loading {
    padding: 2rem;
    text-align: center;
    color: var(--text-light, #6b7280);
    font-size: 1rem;
}

/* Search Results Card - appears below header when searching */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10.58px);
    -webkit-backdrop-filter: blur(10.58px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.search-results-card {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100vh * 2 / 3);
    min-height: calc(100vh * 2 / 3);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.search-results-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-results-content {
    width: 100%;
    height: 100%;
    min-height: calc(100vh * 2 / 3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 1.5rem;
    box-sizing: border-box;
    position: relative;
}

.close-search-results {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light, #6b7280);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    z-index: 1000;
}

.close-search-results:hover {
    color: var(--text-dark, #1f2937);
    background: var(--bg-light, #f3f4f6);
}

.search-results-body {
    flex: 1;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    align-self: center;
    max-height: calc((100vh * 2 / 3) - 4rem);
}

.search-result-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark, #1f2937);
    transition: all 0.2s;
    cursor: pointer;
}

.search-result-item:hover {
    transform: translateY(-2px);
    opacity: 0.8;
    background: rgba(0, 0, 0, 0.02);
}

.search-result-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    flex-shrink: 0;
}

.search-result-item .product-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5rem;
    flex: 1;
}

.search-result-item .product-name {
    font-size: 0.875rem;
    font-weight: 600;
    text-align: left;
    color: var(--text-dark, #1f2937);
    line-height: 1.3;
    margin: 0;
}

.search-result-item .product-price {
    font-size: 0.875rem;
    font-weight: 600;
    text-align: left;
    color: var(--primary-color, #6366f1);
    margin: 0;
}

.search-loading {
    padding: 2rem;
    text-align: center;
    color: var(--text-light, #6b7280);
    font-size: 1rem;
    grid-column: 1 / -1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.cart-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.4rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    width: auto;
    min-width: auto;
}

.cart-btn::before,
.cart-btn::after {
    display: none !important;
    content: none !important;
}

.cart-btn * {
    display: block;
}

.cart-btn i {
    display: block;
    line-height: 1;
}

.cart-btn:hover {
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: bold;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* Hero Section - Carousel */
.hero {
    position: relative;
    background: transparent;
    padding: 1.8rem 1.8rem 0 1.8rem;
    overflow: visible;
    margin-bottom: 0;
    margin-top: 1rem;
}

.carousel-container {
    width: 100%;
    max-width: 1470px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    overflow: visible;
}

@media (max-width: 768px) {
    .hero-banners-container {
        flex-direction: column;
        gap: 0;
    }
    
    .vertical-banner-container {
        display: none;
    }
    
    .carousel-container {
        width: 100%;
        max-width: 100%;
    }
}

.carousel-wrapper {
    position: relative;
    min-height: 500px;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    display: block;
    background: transparent;
}

/* Banner carousel arrows */
.banner-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: opacity 0.3s ease;
    box-shadow: none;
}

.banner-carousel-arrow:hover {
    opacity: 0.7;
}

.banner-carousel-arrow i {
    font-size: 1.5rem;
    color: rgba(139, 92, 246, 0.6);
    transition: all 0.3s ease;
}

.banner-carousel-arrow:hover i {
    color: rgba(139, 92, 246, 1);
}

.banner-carousel-arrow-prev {
    left: -25px;
}

.banner-carousel-arrow-next {
    right: -25px;
}

@media (max-width: 768px) {
    .banner-carousel-arrow {
        width: 40px;
        height: 40px;
    }
    
    .banner-carousel-arrow i {
        font-size: 1.25rem;
    }
    
    .banner-carousel-arrow-prev {
        left: -20px;
    }
    
    .banner-carousel-arrow-next {
        right: -20px;
    }
}

.carousel-wrapper .carousel-dots {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    pointer-events: none;
}

.carousel-card {
    min-width: 100%;
    flex-shrink: 0;
    background: transparent;
    border-radius: 20px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateX(50px);
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out, visibility 0.6s;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    padding: 0;
    border-radius: 20px;
}

.carousel-banner-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    background: transparent;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .carousel-banner-image {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
        display: block !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        aspect-ratio: unset !important;
        border: none !important;
        border-radius: 0 !important;
    }
    
    .carousel-wrapper {
        min-height: auto !important;
        height: auto !important;
        display: block !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        overflow: visible !important;
    }
    
    .carousel-card {
        display: block !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        min-width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        border: none !important;
        overflow: visible !important;
    }
    
    .carousel-card.active {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }
    
    .carousel-container {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        overflow: visible !important;
    }
    
    .hero {
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }
    
    .default-banner-placeholder {
        aspect-ratio: 1 / 1;
        height: auto;
        min-height: 300px;
    }
}

.loading-banner {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.default-banner-placeholder {
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--text-light);
    font-size: 1.25rem;
}

.carousel-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}


.carousel-dots {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    z-index: 100;
    pointer-events: none;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.6);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.dot:hover {
    background: rgba(139, 92, 246, 0.9);
    transform: scale(1.3);
}

.dot.active {
    background: rgba(139, 92, 246, 1);
    width: 20px;
    border-radius: 4px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.add-to-cart-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid #B282CF;
    border-color: #B282CF;
    color: #B282CF;
    box-shadow: none;
}

.btn-secondary {
    background: var(--primary-color);
    color: white;
}

.btn-secondary:hover {
    background: var(--primary-dark);
}

/* Products Section */
.products-section {
    padding: 2rem 0;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
}

.products-section .container {
    padding-left: 30px;
    padding-right: 30px;
    max-width: 100%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    line-height: 48px;
    margin-bottom: 1.5rem;
    color: #545454;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Search Bar */
.search-bar {
    position: relative;
    margin-right: 1rem;
}

.search-bar i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    opacity: 0.9;
    font-size: 0.875rem;
    z-index: 1;
}

.search-bar input {
    width: 350px;
    height: 36px;
    padding: 0 1rem 0 2.5rem;
    border: 1px solid rgba(84, 84, 84, 0.5);
    border-radius: 18px;
    font-size: 0.875rem;
    transition: border-color 0.3s;
    background: transparent;
    line-height: 36px;
    vertical-align: middle;
}

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

.search-bar input::placeholder {
    font-size: 0.875rem;
    color: rgba(107, 114, 128, 0.55);
    opacity: 0.55;
}

/* Products Grid (Mobile) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

/* Products Carousels (Desktop) */
.products-carousels {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
}

/* Force remove any lines between carousels */
.products-carousels > * {
    border-top: none !important;
    border-bottom: none !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.products-carousels > *::before,
.products-carousels > *::after {
    display: none !important;
    content: none !important;
    height: 0 !important;
    width: 0 !important;
    background: none !important;
    border: none !important;
}

.category-carousel-section {
    margin-bottom: 2rem;
    padding-top: 0 !important;
    margin-top: 0;
    position: relative;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    outline: none !important;
    box-shadow: none !important;
    display: block !important;
    width: 100% !important;
    clear: both !important;
}

.category-carousel-section .subcategory-carousel-section {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    float: none !important;
    margin-bottom: 2rem !important;
}

.category-carousel-section::before,
.category-carousel-section::after {
    display: none !important;
    content: none !important;
    height: 0 !important;
    width: 0 !important;
    background: none !important;
    border: none !important;
}

.category-carousel-section * {
    border-top: none !important;
}

.category-carousel-section > *:first-child {
    border-top: none !important;
    margin-top: -20px !important;
    padding-top: 0 !important;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    margin-top: -20px;
    color: #545454;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.products-carousel-container {
    position: relative;
    overflow: hidden;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carousel-arrow:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.carousel-arrow i {
    font-size: 1.25rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.carousel-arrow:hover i {
    color: white;
}

.carousel-arrow-prev {
    left: 10px;
}

.carousel-arrow-next {
    right: 10px;
}

@media (max-width: 768px) {
    .carousel-arrow {
        display: none !important;
    }
}

.products-carousel-wrapper {
    display: flex;
    gap: 1.25rem;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.products-carousel-wrapper .subcategory-banner-card-inline {
    flex-shrink: 0;
    width: calc(calc((100% - 4rem) / 5 * 1.5 * 0.7 * 1.15) / 3 * 0.7);
    min-width: calc(calc((100% - 4rem) / 5 * 1.5 * 0.7 * 1.15) / 3 * 0.7);
    max-width: calc(calc((100% - 4rem) / 5 * 1.5 * 0.7 * 1.15) / 3 * 0.7);
    aspect-ratio: 1 / 3;
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: var(--shadow) !important;
    display: flex;
    align-items: stretch;
    background: var(--bg-light);
    position: relative;
}

.products-carousel-wrapper .subcategory-banner-card-inline {
    padding: 0 0.5rem;
    align-items: center;
    justify-content: center;
}

.products-carousel-wrapper .subcategory-banner-card-inline img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
    border-radius: 20px !important;
}

.products-carousel-wrapper .product-card {
    min-width: calc((100% - 4rem) / 5 * 1.5 * 0.7 * 1.15);
    max-width: calc((100% - 4rem) / 5 * 1.5 * 0.7 * 1.15);
    flex-shrink: 0;
    flex-basis: calc((100% - 4rem) / 5 * 1.5 * 0.7 * 1.15);
}

.products-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.product-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.product-dot:hover {
    background: rgba(139, 92, 246, 0.7);
    transform: scale(1.2);
}

.product-dot.active {
    background: rgba(139, 92, 246, 1);
    width: 20px;
    border-radius: 4px;
}

.product-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: visible;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.product-card .product-image {
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.415rem;
    color: var(--text-light);
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-info {
    padding: 0.75rem;
    padding-bottom: 0.75rem;
    overflow: visible;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.product-category {
    color: var(--primary-color);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.15rem;
}

.product-name {
    font-size: 1.0646125rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.product-description {
    color: var(--text-light);
    font-size: 0.798459375rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.product-description:not(:has(table)) {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.product-description table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.product-description table tbody tr:last-child {
    border-bottom: none;
}

.product-description table td {
    padding: 0.25rem 0;
    font-size: 0.7rem;
    line-height: 1.3;
}

.product-description table .description-name {
    font-weight: 400;
    color: #545454;
    opacity: 0.85;
    padding-right: 0.5rem;
    width: 50%;
}

.product-description table .description-value {
    color: #545454;
    opacity: 0.85;
    text-align: right;
    font-weight: 400;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.25rem;
    overflow: visible;
    position: relative;
    flex-shrink: 0;
}

.product-price {
    font-size: 1.323515625rem;
    font-weight: bold;
    color: var(--primary-color);
}

.add-to-cart {
    background: transparent;
    color: #545454;
    border: 1px solid var(--secondary-color) !important;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    line-height: 1;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    margin: 0;
    outline: none;
    box-shadow: 0 0 0 0 transparent;
}

.add-to-cart i {
    font-size: 0.875rem;
    display: inline-block;
}

.add-to-cart:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    border-width: 1px;
    transform: translateY(-1px);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: var(--bg-white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: right 0.3s;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 1.5rem;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.empty-cart i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-light);
}

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

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 600;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: var(--border-color);
}

.quantity {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.remove-item {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: auto;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.cart-total {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    font-size: 14px;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
}

.cart-overlay.show {
    display: block;
}

/* Product Modal */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.product-modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-white);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: var(--shadow);
}

.modal-body {
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.modal-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: var(--text-light);
}

.modal-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.modal-category {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.modal-price {
    font-size: 2.125rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1rem 0;
}

.modal-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 2.4rem 0 0.8rem;
    margin-top: 3.2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.6rem;
    margin-bottom: 1.6rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 0.8rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.4rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.4rem;
}

.footer-section i {
    margin-right: 0.4rem;
}

/* Subcategory Page Styles */
.subcategory-page-section {
    padding: 2rem 0;
}

.subcategory-header {
    margin-bottom: 2rem;
}

.subcategory-page-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.products-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
}

/* Ensure container on subcategory page uses full width */
.subcategory-page-section .container {
    max-width: 100%;
    padding-left: 30px;
    padding-right: 30px;
}

/* Product cards in grid should use same styles as carousel cards - no overrides needed */
/* The general .product-card styles will apply automatically */

.product-card-grid {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card-grid:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.product-card-grid .product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-grid .product-image-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--bg-light);
}

.product-card-grid .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-grid .product-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-grid .product-name {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-card-grid .product-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: auto;
}

.product-card-grid .add-to-cart {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 0 8px 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.3s ease;
}

.product-card-grid .add-to-cart:hover {
    background: var(--primary-dark);
}

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

.pagination-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-dark);
}

.pagination-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-info {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Mobile Responsive for Subcategory Page */
@media (max-width: 768px) {
    .products-grid-4col {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .product-card-grid .product-image-container {
        height: 180px;
    }

    .subcategory-page-title {
        font-size: 1.5rem;
    }

    .pagination-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .pagination-btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .products-grid-4col {
        grid-template-columns: 1fr;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header optimizations */
    .header {
        padding: 0.6rem 0;
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000;
        --header-height: calc(0.6rem * 2 + 18px);
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    /* Add padding to body to account for fixed header */
    body {
        padding-top: calc(0.6rem * 2 + 18px);
    }

    /* Ensure main content doesn't go under fixed header */
    .hero {
        margin-top: 0;
        position: relative;
        z-index: 1;
    }
    
    .products-section {
        margin-top: 6rem !important;
        margin-bottom: 0 !important;
        position: relative;
        z-index: 2;
    }
    
    .category-page-section {
        margin-top: 0;
    }

    .header .container {
        padding: 0 15px;
    }

    .logo {
        margin-right: 0;
        margin-left: 15px;
    }

    .logo-image {
        height: 18px;
    }

    .nav {
        display: none;
        position: static;
        transform: none;
    }

    .header-actions {
        margin-left: 0;
        gap: 0.5rem;
    }

    .search-bar {
        display: none;
    }

    .menu-toggle {
        display: block;
        padding: 0.5rem;
        font-size: 1.1rem;
        min-width: 44px;
        min-height: 44px;
    }

    .cart-btn {
        padding: 0.5rem;
        min-width: 44px;
        min-height: 44px;
        font-size: 1.1rem;
    }

    /* Dropdown menu - mobile responsive */
    .dropdown-menu {
        width: calc(100% - 30px);
        left: 15px;
        right: 15px;
        transform: translateY(-10px);
        grid-template-columns: 1fr;
        max-height: 70vh;
    }

    .dropdown-item {
        border-right: none;
        padding: 1rem 1.25rem;
        min-height: 48px;
    }

    .dropdown-item:nth-child(2n) {
        border-right: none;
    }

    /* Hero section */
    .hero-content {
        padding: 1.5rem 1.5rem;
    }

    .hero-content h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    /* Section title */
    .section-title {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1.25rem;
        padding: 0 15px;
    }

    /* Products section */
    .products-section {
        padding: 1.5rem 0;
        margin-top: 6rem !important;
        margin-bottom: 0 !important;
    }

    .products-section .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
    }

    .products-carousels {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

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

    .products-carousel-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
        transform: none !important;
    }

    .products-carousel-wrapper .product-card {
        min-width: 0;
        max-width: 100%;
        width: 100%;
        flex: 1 1 auto;
    }

    .products-carousel-dots {
        display: none;
    }

    .category-title {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
        margin-top: -15px;
        padding: 0 15px;
    }

    /* Mobile category sections */
    .category-carousel-section-mobile {
        margin-bottom: 2rem;
    }

    .category-title-mobile {
        font-size: 1.25rem;
        font-weight: 600;
        color: #545454;
        margin-bottom: 1rem;
        padding: 0 15px;
    }

    .products-grid-mobile {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
        padding: 0 15px;
    }

    /* Product cards */
    .product-card {
        border-radius: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .product-info {
        padding: 0.625rem;
    }

    .product-name {
        font-size: 0.9375rem;
        margin-bottom: 0.25rem;
        text-align: center;
    }

    .product-description {
        font-size: 0.75rem;
        margin-bottom: 0.375rem;
    }

    .product-description table td {
        font-size: 0.65rem;
        padding: 0.2rem 0;
    }

    /* Product footer - mobile: button below price */
    .product-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .product-price {
        font-size: 1.375rem;
        text-align: center;
        width: 100%;
    }

    .add-to-cart {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        min-height: 40px;
        width: 100%;
        justify-content: center;
    }

    /* Cart sidebar */
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    /* Filter bar */
    .filter-bar {
        gap: 0.5rem;
        padding: 0 15px;
        margin-bottom: 1.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
        min-height: 36px;
    }

    /* Category carousel spacing */
    .category-carousel-section {
        padding-top: 0;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    /* Extra small phones */
    .header {
        padding: 0.5rem 0;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000;
        --header-height: calc(0.5rem * 2 + 16px);
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    /* Add padding to body to account for fixed header */
    body {
        padding-top: calc(0.5rem * 2 + 16px);
    }

    /* Ensure main content doesn't go under fixed header */
    .hero {
        margin-top: 0;
        position: relative;
        z-index: 1;
    }
    
    .products-section {
        margin-top: 6rem !important;
        margin-bottom: 0 !important;
        position: relative;
        z-index: 2;
    }
    
    .category-page-section {
        margin-top: 0;
    }

    .logo {
        margin-left: 10px;
    }

    .logo-image {
        height: 16px;
    }

    .header-actions {
        gap: 0.25rem;
    }

    .hero-content {
        padding: 1rem 1rem;
        width: 95%;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        padding: 0 10px;
    }

    .products-section {
        margin-top: 6rem !important;
        margin-bottom: 0 !important;
    }
    
    .products-section .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .products-carousel-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        width: 100%;
    }

    .products-carousel-wrapper .product-card {
        min-width: 0;
        max-width: 100%;
        width: 100%;
        flex: 1 1 auto;
    }

    .category-title {
        font-size: 1rem;
        margin-top: -10px;
        padding: 0 10px;
    }

    .category-title-mobile {
        font-size: 1.125rem;
        padding: 0 10px;
        margin-bottom: 0.875rem;
    }

    .products-grid-mobile {
        gap: 0.5rem;
        padding: 0 10px;
    }

    .product-card {
        border-radius: 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .product-info {
        padding: 0.5rem;
    }

    .product-name {
        font-size: 0.875rem;
        text-align: center;
    }

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

    /* Product footer - mobile: button below price */
    .product-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.625rem;
    }

    .product-price {
        font-size: 1.25rem;
        text-align: center;
        width: 100%;
    }

    .add-to-cart {
        padding: 0.5625rem 0.875rem;
        font-size: 0.8125rem;
        min-height: 38px;
        width: 100%;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    /* Improve touch targets */
    button, a, .product-card {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        touch-action: manipulation;
    }

    /* Prevent horizontal scroll */
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .container {
        max-width: 100%;
        padding: 0 10px;
    }

    .filter-bar {
        padding: 0 10px;
        gap: 0.375rem;
    }

    .filter-btn {
        padding: 0.4375rem 0.875rem;
        font-size: 0.75rem;
        min-height: 32px;
    }

    .dropdown-menu {
        width: calc(100% - 20px);
        left: 10px;
        right: 10px;
        border-radius: 6px;
    }

    .dropdown-item {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }

    .category-carousel-section {
        margin-bottom: 1.25rem;
    }
}


/* Category Page Styles */
.category-page-section {
    padding: 3rem 0;
    min-height: 60vh;
}

.category-header {
    margin-bottom: 2rem;
}

.category-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.category-products-container {
    margin-top: 2rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Product Page Styles */
.product-page-section {
    padding: 3rem 0;
    min-height: 60vh;
    width: 100%;
    overflow-x: visible;
}

.product-breadcrumb {
    background: transparent;
    color: #9ca3af;
    padding: 0;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    margin-top: 0;
}

.product-breadcrumb a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

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

.product-breadcrumb span {
    color: #9ca3af;
}

.product-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.product-name-title {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.product-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 0.5rem;
    width: 100%;
}

.product-name-title {
    flex: 1;
    margin: 0;
}

.product-id-display {
    font-size: 14px;
    font-weight: normal;
    color: #545454;
    opacity: 0.7;
    white-space: nowrap;
    margin-left: auto;
    flex-shrink: 0;
}

.product-id-mobile {
    display: none;
    font-size: 14px;
    color: #545454;
    opacity: 0.7;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .product-id-display {
        display: none;
    }
    
    .product-id-mobile {
        display: block;
    }
    
    .product-name-title {
        width: 100%;
    }
}

.product-name-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.product-page-section .container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    position: relative;
    overflow-x: visible;
    width: 100%;
}

.product-page-container {
    max-width: 100%;
    margin: 0;
    padding: 0 30px;
    overflow-x: hidden;
}

.product-detail-container {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
    align-items: start;
    padding-left: 0;
    position: relative;
    width: 100%;
    overflow-x: visible;
    padding-bottom: 0;
    margin-bottom: 0;
    min-height: fit-content;
}

.product-detail-right {
    align-self: start;
    padding-top: 0;
    margin-top: 0;
}

.product-detail-info {
    margin-top: 0;
    padding-top: 0;
}

.product-price-action-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-price-action-card .price-card {
    margin-bottom: 0;
}

.product-price-action-card .action-card {
    margin-top: 0;
}

.product-description-card-wrapper {
    margin-top: 50px;
    width: calc(100vw - 100px);
    padding: 0 50px;
    margin-left: calc(50% - 50vw + 50px);
    order: 2; /* Ensure it stays below the image in center column */
    box-sizing: border-box;
}

.product-detail-left {
    display: flex;
    flex-direction: column;
}

.product-detail-center {
    display: flex;
    flex-direction: column;
    padding-left: 20px;
    gap: 1rem;
    align-items: stretch;
    overflow-x: visible;
    min-width: 0;
    position: relative;
    overflow: visible;
}

.product-main-image-card {
    order: 1; /* Image first */
}


.description-two-squares {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    position: relative;
    overflow: visible;
}

.description-two-squares::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: rgba(84, 84, 84, 0.3);
    transform: translateX(-50%);
}

.description-square {
    padding: 0 1rem;
    overflow: visible;
    min-width: 0;
}

.description-square-left {
    border-right: 1px solid rgba(84, 84, 84, 0.3);
}

.description-square-right {
    border-left: 1px solid rgba(84, 84, 84, 0.3);
}


.product-detail-right {
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-main-image-card {
    width: 100%;
    max-width: 862.5px;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1058);
    border: 2px solid var(--border-color);
}

.product-main-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-image-placeholder {
    font-size: 8rem;
    color: var(--text-light);
}

.product-thumbnails-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 120px;
    flex-shrink: 0;
}

.thumbnail-card {
    width: 120px;
    height: 120px;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
    background: var(--bg-light);
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.thumbnail-card:hover,
.thumbnail-card.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.thumbnail-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-parameter-card {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 20px;
    padding: 1rem 0;
    text-align: left;
    box-shadow: var(--shadow);
    overflow: visible;
    min-width: 0;
}

.product-parameter-card.description-parameter-card {
    margin-top: 3rem;
}

.parameter-label {
    font-size: 18px;
    font-weight: bold;
    color: #545454;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    padding-left: 15px;
    padding-right: 15px;
}

.parameter-value {
    font-size: 12px;
    color: var(--text-dark);
    line-height: 1.5;
}

/* Product Description Table */
.product-description-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    display: table;
    overflow: visible;
}

.product-description-table tbody tr {
    border-bottom: 1px solid rgba(84, 84, 84, 0.1);
}

.product-description-table tbody tr:last-child {
    border-bottom: none;
}

.product-description-table td {
    padding: 0.5rem 0;
    font-size: 12px;
    position: relative;
}

.product-description-table .description-name {
    font-weight: 600;
    color: var(--text-dark);
    padding-right: 0.5rem;
    position: relative;
    width: 50%;
}

.product-description-table .description-value {
    color: var(--text-light);
    text-align: right;
    padding-left: 0.5rem;
    width: 50%;
}

.description-text {
    font-size: 12px;
    color: var(--text-dark);
    line-height: 1.5;
}

.price-action-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
}

.product-parameter-card.price-card {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    padding: 0.5rem 0;
    box-sizing: border-box;
    height: 100%;
}

.product-parameter-card.price-card .parameter-label {
    margin-bottom: 0;
    flex-shrink: 0;
}

.product-parameter-card.price-card .parameter-value.price-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: #545454;
    margin: 0;
    text-align: center;
}

.product-parameter-card.action-card {
    padding: 1rem 10px;
    border: none;
    background: transparent;
    box-shadow: none;
    width: 100%;
}

/* Desktop: price and action card on same row */
@media (min-width: 769px) {
    .price-action-row {
        flex-direction: row;
        gap: 1rem;
        align-items: stretch;
    }
    
    .product-parameter-card.price-card {
        width: auto;
        flex: 1;
        display: flex;
        align-items: center;
        padding: 0.5rem 0;
        min-height: 0;
    }
    
    .product-parameter-card.action-card {
        width: auto;
        flex: 1;
        display: flex;
        align-items: stretch;
        padding: 0;
    }
    
    .add-to-cart-btn {
        width: 100%;
        height: 100%;
        margin: 0;
    }
}

/* Form Builder on Product Page */
.product-parameter-card.form-builder-card {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 20px;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow);
}

.form-builder-colors {
    margin-top: 0.5rem;
}

.form-builder-colors-options {
    display: flex;
    gap: 0.5rem;
    background: #e5e7eb;
    border-radius: 30px;
    padding: 0.25rem;
    flex-wrap: wrap;
    flex-wrap: wrap;
}

.form-builder-input {
    margin-top: 0.5rem;
}

.form-builder-options {
    display: flex;
    gap: 0.5rem;
    background: #e5e7eb;
    border-radius: 20px;
    border-color: rgba(0, 0, 0, 0);
    border-image: none;
    padding: 0.25rem;
    flex-wrap: wrap;
}

.form-builder-option {
    flex: 1 1 auto;
    min-width: fit-content;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 25px;
    background: transparent;
    color: #545454;
    font-size: 0.875rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    text-align: center;
}

.form-builder-option:hover {
    background: rgba(84, 84, 84, 0.1);
}

.form-builder-option.selected {
    background: #545454;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-builder-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(84, 84, 84, 0.65);
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-white);
    color: var(--text-dark);
    cursor: pointer;
    transition: border-color 0.3s;
}

.form-builder-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* YouTube Video */
.product-youtube-video {
    margin-top: 2rem;
}

.youtube-video-container {
    position: relative;
    width: calc(100% - 40px);
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    margin-top: 1rem;
    margin-left: 20px;
    margin-right: 20px;
    background: #000;
}

@media (min-width: 769px) {
    .youtube-video-container {
        min-height: 400px;
        padding-bottom: 0;
        height: 400px;
    }
}

.youtube-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.youtube-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-left: 0;
    margin-right: 0;
}

.youtube-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: transform 0.2s;
}

.youtube-placeholder:hover .youtube-play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.youtube-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.add-to-cart-btn {
    width: 100%;
    padding: 0.5rem 2rem;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 30px;
    background: transparent;
    border: 1px solid #545454;
    color: #545454;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 2000;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 3rem;
    color: #ef4444;
    font-size: 1.125rem;
}

/* Responsive Product Page */
@media (max-width: 768px) {
    .product-page-container {
        padding: 0 15px;
    }

    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-detail-left {
        order: 2;
    }

    .product-detail-center {
        order: 1;
        padding-left: 0;
    }

    .product-detail-right {
        order: 3;
    }
    
    .product-parameter-card.description-parameter-card {
        margin-top: 2rem;
    }
    
    .product-description-card-wrapper {
        width: 100%;
        max-width: 100%;
        margin: 1rem 0 0 0;
        padding: 0;
    }
    
    .description-two-squares {
        grid-template-columns: 1fr;
    }
    
    .description-two-squares::after {
        display: none;
    }
    
    .description-square {
        padding: 0 0.75rem;
        border: none !important;
    }
    
    .description-square-left {
        border-right: none !important;
    }
    
    .description-square-right {
        border-left: none !important;
        margin-top: 1rem;
    }
    
    .product-description-table {
        display: table;
    }
    
    .product-description-table tbody {
        display: table-row-group;
    }
    
    .product-description-table tbody tr {
        display: table-row;
        border-bottom: 1px solid var(--border-color);
    }
    
    .product-description-table td {
        font-size: 0.7rem;
        padding: 0.25rem 0;
    }
    
    .product-description-table .description-name {
        font-weight: 400;
        color: #545454;
        opacity: 0.85;
        padding-right: 0.5rem;
    }
    
    .product-description-table .description-value {
        text-align: right;
        color: #545454;
        opacity: 0.85;
        font-weight: 400;
        padding-left: 0.5rem;
    }
    

    .category-page-title {
        font-size: 2rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .product-footer.mobile-product-footer {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.75rem !important;
        width: 100% !important;
    }

    .product-price.mobile-product-price {
        text-align: center !important;
        width: 100% !important;
        margin: 0 auto !important;
        display: block !important;
    }

    .add-to-cart.mobile-add-to-cart {
        width: 100% !important;
        max-width: 200px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 auto !important;
    }

    .product-description {
        display: block !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: unset !important;
        overflow: visible !important;
    }

    .mobile-description-table {
        font-size: 0.7rem;
        display: table !important;
        width: 100%;
        margin-top: 0.5rem;
    }

    .mobile-description-table .description-name,
    .mobile-description-table .description-value {
        font-size: 0.7rem;
        padding: 0.25rem 0;
    }

    .product-thumbnails-gallery {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        gap: 0.5rem;
    }

    .subcategories-container {
        display: flex;
        flex-direction: column;
        gap: 3rem;
        padding: 2rem 0;
    }

    .category-section {
        margin-bottom: 4rem;
    }

    .category-title-large {
        font-size: 2rem;
        font-weight: 700;
        color: var(--text-dark);
        margin-bottom: 2rem;
        padding: 0 30px;
    }

    .subcategory-carousel {
        width: 100%;
    }

    .subcategory-title {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-dark);
        margin-bottom: 1.5rem;
        padding: 0 30px;
    }

    .subcategory-products-carousel {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        padding: 0 30px;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(84, 84, 84, 0.3) transparent;
        align-items: flex-start;
    }

    .subcategory-products-carousel::-webkit-scrollbar {
        height: 8px;
    }

    .subcategory-products-carousel::-webkit-scrollbar-track {
        background: transparent;
    }

    .subcategory-products-carousel::-webkit-scrollbar-thumb {
        background-color: rgba(84, 84, 84, 0.3);
        border-radius: 4px;
    }

    .subcategory-banner-card {
        flex-shrink: 0;
        width: calc(280px / 3 * 0.7);
        min-width: calc(280px / 3 * 0.7);
        max-width: calc(280px / 3 * 0.7);
        height: 450px;
        min-height: 450px;
        max-height: 450px;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: var(--shadow);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 0.5rem;
        background: var(--bg-light);
        position: relative;
    }

    .subcategory-banner-card img {
        width: auto;
        height: 100%;
        max-width: 100%;
        object-fit: contain;
        display: block;
        border-radius: 20px;
    }

    .subcategory-banner-card.banner-placeholder,
    .subcategory-banner-card:has(.banner-placeholder-content) {
        background: linear-gradient(135deg, rgba(138, 43, 226, 0.1) 0%, rgba(75, 0, 130, 0.1) 100%);
        border: 2px dashed rgba(138, 43, 226, 0.3);
    }

    .banner-placeholder-content {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(138, 43, 226, 0.5);
        font-size: 0.875rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .subcategory-products-carousel .product-card {
        flex-shrink: 0;
        width: 280px;
        height: 450px;
        min-height: 450px;
        max-height: 450px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    .subcategory-products-carousel .product-card .product-image {
        flex-shrink: 0;
    }
    
    .subcategory-products-carousel .product-card .product-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: visible;
        min-height: 0;
    }
    
    .subcategory-products-carousel .product-card .product-description {
        flex: 1;
        overflow: hidden;
    }
    
    .subcategory-products-carousel .product-card .product-footer {
        margin-top: auto;
        flex-shrink: 0;
        padding-top: 0.5rem;
    }

    .category-carousel-section {
        margin-bottom: 3rem;
        display: block !important;
        width: 100% !important;
        clear: both !important;
    }
    
    .category-carousel-section:last-child {
        margin-bottom: 0;
    }
    
    .category-carousel-section > * {
        display: block !important;
        width: 100% !important;
        clear: both !important;
    }
    
    .category-carousel-section .subcategory-carousel-section {
        margin-bottom: 2rem !important;
        margin-top: 0 !important;
        display: block !important;
        width: 100% !important;
        clear: both !important;
        float: none !important;
        position: relative !important;
    }
    
    .category-carousel-section .subcategory-carousel-section:first-child {
        margin-top: 0 !important;
    }
    
    .category-carousel-section .subcategory-carousel-section:last-child {
        margin-bottom: 0 !important;
    }
    
    .category-carousel-section .subcategory-carousel-section .products-carousel-container {
        display: block !important;
        width: 100% !important;
        clear: both !important;
    }
    
    @media (max-width: 768px) {
        .subcategory-carousel-section {
            margin-top: 0.5rem;
        }
        
        .subcategory-carousel-section:first-child {
            margin-top: 0;
        }
        
        .category-carousel-section {
            margin-bottom: 0.5rem;
        }
        
        .products-carousel-container {
            margin-bottom: 0.5rem;
        }
        
        .products-carousel-dots {
            margin-top: 0.5rem;
            margin-bottom: 0.5rem;
        }
    }

    .subcategory-title-small {
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--text-dark);
        margin-bottom: 1rem;
        padding: 0 30px;
    }

    .subcategory-banner-card-inline {
        flex-shrink: 0;
        width: calc(calc((100% - 4rem) / 5 * 1.5 * 0.7 * 1.15) / 3 * 0.7);
        min-width: calc(calc((100% - 4rem) / 5 * 1.5 * 0.7 * 1.15) / 3 * 0.7);
        max-width: calc(calc((100% - 4rem) / 5 * 1.5 * 0.7 * 1.15) / 3 * 0.7);
        aspect-ratio: 1 / 3;
        border-radius: 20px !important;
        overflow: hidden;
        box-shadow: var(--shadow) !important;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 0.5rem;
        background: var(--bg-light);
        position: relative;
    }

    .subcategory-banner-card-inline img {
        width: auto;
        height: 100%;
        max-width: 100%;
        object-fit: contain;
        display: block;
        border-radius: 20px !important;
    }

    .subcategory-banner-card-inline .banner-placeholder-content {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(138, 43, 226, 0.5);
        font-size: 0.875rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        background: linear-gradient(135deg, rgba(138, 43, 226, 0.1) 0%, rgba(75, 0, 130, 0.1) 100%);
        border: 2px dashed rgba(138, 43, 226, 0.3);
    }

    @media (max-width: 768px) {
        .subcategories-container {
            gap: 0.5rem;
            padding: 0.25rem 0;
        }

        .subcategory-title {
            font-size: 1.25rem;
            padding: 0 20px;
            margin-bottom: 0.25rem;
        }

        .subcategory-products-carousel {
            padding: 0 20px;
            gap: 0.75rem;
            min-height: 300px;
            margin-bottom: 0.25rem;
        }

        .subcategory-banner-card {
            width: calc(200px / 3 * 0.7) !important;
            min-width: calc(200px / 3 * 0.7) !important;
            max-width: calc(200px / 3 * 0.7) !important;
            height: auto !important;
            min-height: 460px !important;
            max-height: none !important;
            border-radius: 20px !important;
            padding: 0 0.5rem !important;
            align-items: center !important;
            justify-content: center !important;
        }

        .subcategory-banner-card img {
            width: auto !important;
            height: 100% !important;
            max-width: 100% !important;
            object-fit: contain !important;
            border-radius: 20px;
        }
        
        .subcategory-banner-card-inline {
            padding: 0 0.5rem !important;
            align-items: center !important;
            justify-content: center !important;
        }
        
        .subcategory-banner-card-inline img {
            width: auto !important;
            height: 100% !important;
            max-width: 100% !important;
            object-fit: contain !important;
        }

        .banner-placeholder-content {
            font-size: 0.75rem;
        }

        .subcategory-products-carousel .product-card {
            width: 200px;
            height: auto;
            min-height: 460px;
            max-height: none;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            border-radius: 20px !important;
        }
        
        .subcategory-products-carousel .product-card .product-image {
            flex-shrink: 0;
            border-radius: 20px 20px 0 0 !important;
            width: 100%;
            aspect-ratio: 1 / 1;
            height: auto;
            max-height: none;
        }
        
        .subcategory-products-carousel .product-card .product-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .subcategory-products-carousel .product-card .product-info {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow: visible;
            min-height: 0;
            padding: 0.5rem;
            padding-bottom: 0.25rem;
            padding-top: 0.75rem;
        }
        
        .subcategory-products-carousel .product-card .product-category {
            margin-bottom: 0.25rem;
        }
        
        .subcategory-products-carousel .product-card .product-name {
            font-size: 0.875rem;
            margin-bottom: 0.25rem;
            margin-top: 0.25rem;
        }
        
        .subcategory-products-carousel .product-card .product-description {
            flex: 0 1 auto;
            overflow: hidden;
            margin-bottom: 0.25rem;
            font-size: 0.7rem;
            max-height: 60px;
            margin-top: 0.25rem;
        }
        
        .subcategory-products-carousel .product-card .product-footer {
            margin-top: auto;
            flex-shrink: 0;
            padding: 0.5rem;
            padding-top: 0.25rem;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 0.5rem;
        }
        
        .subcategory-products-carousel .product-card .product-price {
            font-size: 1.3rem;
            text-align: center;
            width: 100%;
            order: 1;
        }
        
        .subcategory-products-carousel .product-card .add-to-cart {
            width: 100%;
            padding: 0.5rem 0.75rem;
            font-size: 0.75rem;
            min-height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            position: relative;
            white-space: nowrap;
            order: 2;
        }
        
        .subcategory-products-carousel .product-card .add-to-cart i {
            font-size: 0.875rem;
            display: inline-block;
        }
        
        .subcategory-banner-card {
            height: auto !important;
            min-height: 460px !important;
            max-height: none !important;
        }
        
        .subcategory-banner-card-inline {
            height: auto !important;
            min-height: 460px !important;
            max-height: none !important;
        }
    }

    .thumbnail-card {
        width: 80px;
        height: 80px;
    }

    .product-main-image-card {
        max-width: 100%;
    }
}

