/* 
 * MOZA Racing E-commerce Replica - Main CSS
 * Follows a premium, modern dark aesthetic.
 */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #000000;
    --bg-card: #141414;
    --bg-hover: #1e1e1e;

    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;

    --accent-color: #DAC5A7;
    /* The gold/sand color from MOZA Shop button */
    --accent-hover: #e8d6bd;

    --sale-color: #FF0000;
    --success-color: #00c853;

    --border-color: #2a2a2a;

    /* Light-background page variables (collection/product pages) */
    --color-text-dark: #1a1a1a;
    --color-black: #000000;

    --font-main: 'Open Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-darker);
}

.btn-primary:hover {
    background-color: #e0e0e0;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-block {
    width: 100%;
}

.shop-btn {
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 50px;
    padding: 0.6rem 1.4rem;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0;
}

.shop-btn:hover {
    background-color: var(--accent-hover);
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    position: relative;
    transition: color var(--transition-fast);
}

.icon-btn:hover {
    color: var(--accent-color);
}

/* Announcement Bar */
.announcement-bar {
    background-color: #000;
    color: #fff;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
    z-index: 1001;
}
.announcement-bar .social-icons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.announcement-bar .social-icons a {
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.2s;
    display: flex;
}
.announcement-bar .social-icons a:hover {
    opacity: 1;
}
.announcement-bar .marquee-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.announcement-bar .locale-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
}
.announcement-bar .locale-selector select {
    background: transparent;
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.75rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}
.announcement-bar .locale-selector select:hover {
    border-color: rgba(255,255,255,0.35);
}
.announcement-bar .locale-selector select:focus {
    border-color: rgba(255,255,255,0.5);
}
.announcement-bar .locale-selector select option {
    background: #1a1a1a;
    color: #fff;
}
.announcement-bar .locale-separator {
    color: rgba(255,255,255,0.3);
    font-size: 0.75rem;
}

/* Header */
.main-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.97);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, border-bottom-color 0.4s ease;
}

/* On the homepage we want hero-blend: starts transparent, becomes solid on scroll */
.main-header.hero-blend {
    background-color: rgba(10, 10, 10, 0.0);
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.0);
}

.main-header.hero-blend.scrolled {
    background-color: rgba(10, 10, 10, 0.97);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 4rem;
    max-width: 100%;
}

.logo-text {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 2px;
    line-height: 1;
    display: inline-block;
}

.logo-text small {
    font-size: 0.6rem;
    letter-spacing: 4px;
    color: var(--text-secondary);
}

.main-nav .nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.main-nav a {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 1.5rem 0;
    display: inline-block;
    color: var(--text-primary);
    opacity: 0.85;
    position: relative;
    transition: opacity var(--transition-fast), color var(--transition-fast);
}

.main-nav a:hover,
.has-dropdown:hover>a,
.has-mega-menu:hover>a {
    opacity: 1;
    color: var(--accent-color);
}

/* Add active indicator dot */
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--accent-color);
    transition: transform var(--transition-fast);
}

.main-nav a:hover::after,
.has-dropdown:hover>a::after,
.has-mega-menu:hover>a::after {
    transform: translateX(-50%) scale(1);
}

/* Advanced Dropdowns */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: rgba(20, 20, 20, 0.97);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 210px;
    border-radius: 12px;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    z-index: 1010;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.6rem 2rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 1;
}

.dropdown-menu a::after {
    display: none;
    /* No dots in dropdown */
}

/* Support 2-column Megamenu */
.support-dropdown {
    width: 600px !important;
    padding: 2.5rem 3rem !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    left: 40% !important;
    /* Center it nicely */
}

.support-col h4 {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.support-col a {
    color: var(--text-secondary) !important;
    font-size: 0.9rem;
    padding: 0.5rem 0 !important;
    font-weight: 500 !important;
}

.support-col a:hover {
    color: var(--accent-color) !important;
    transform: translateX(5px);
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* MEGA MENU STYLES */
.has-mega-menu {
    position: static;
}

.mega-menu {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: rgba(11, 11, 11, 0.98);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1010;
    padding: 2.5rem 0;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.9);
    cursor: default;
}

.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.mega-menu-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    gap: 4rem;
}

/* Sidebar */
.mega-sidebar {
    width: 250px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.mega-sidebar-title {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-transform: uppercase;
}

.mega-sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* Override main-nav a styles for inside mega menu */
.main-nav .mega-menu a {
    padding: 0;
    display: inline;
    letter-spacing: normal;
}

.main-nav .mega-menu a::after {
    display: none;
}

.mega-sidebar-links li a {
    color: #a0a0a0;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s;
}

.mega-sidebar-links li.active a,
.mega-sidebar-links li a:hover {
    color: var(--text-primary);
}

.mega-sidebar-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2rem 0 1.5rem 0;
}

.mega-explore-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}

.mega-explore-link:hover {
    opacity: 0.8;
}

/* Content Area */
.mega-content {
    flex-grow: 1;
}

.mega-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.mega-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 1px;
}

.mega-view-all {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    transition: opacity 0.2s;
}

.mega-view-all:hover {
    opacity: 0.8;
}

/* Mega Cards Grid */
.mega-cards-wrapper {
    display: grid;
    gap: 1.5rem;
}

.mega-cards-wrapper.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.mega-cards-wrapper.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.mega-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.mega-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.mega-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.mega-card-img img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.mega-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: #000;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    line-height: 1.2;
}

.mega-card-arrow {
    opacity: 0.5;
    transition: transform 0.2s, opacity 0.2s;
    color: #000;
    flex-shrink: 0;
}

.mega-card:hover .mega-card-arrow {
    transform: translateX(3px);
    opacity: 1;
}

.mega-card-title .title {
    font-size: 0.9rem;
    font-weight: 600;
    max-width: 60%;
    line-height: 1.2;
}

.mega-card-title .price {
    font-size: 0.9rem;
    font-weight: 700;
    text-align: right;
}

/* Flight Specific Mega Cards */
.mega-flight-card {
    position: relative;
    background-color: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    color: #000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.mega-flight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.mega-flight-card.has-badge {
    padding-top: 2.5rem;
}

.mega-flight-card .product-badge {
    top: 1rem;
    left: 1rem;
}

.flight-hover-actions {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.8) 100%);
    transition: bottom 0.3s ease, opacity 0.3s ease;
    justify-content: center;
    opacity: 0;
}

.mega-flight-card:hover .flight-hover-actions {
    bottom: 0;
    opacity: 1;
}

.flight-hover-actions .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    color: #000;
    border: 1px solid var(--accent-color);
    background: transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.flight-hover-actions .btn:hover {
    background-color: var(--accent-color);
    color: #fff;
}

.flight-card-details {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.flight-card-details .title {
    font-size: 0.9rem;
    font-weight: 600;
    max-width: 60%;
    line-height: 1.2;
}

.flight-card-details .price {
    font-size: 0.9rem;
    font-weight: 700;
    text-align: right;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-btn {
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color var(--transition-fast);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    text-decoration: none;
}
.cart-btn:hover {
    background-color: var(--accent-hover);
    color: #fff;
}

.cart-btn .shop-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #fff;
    order: 2;
}

.cart-btn svg {
    width: 16px;
    height: 16px;
    order: 1;
}

.cart-btn .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e53935;
    color: #fff;
    font-size: 0.6rem;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    order: 3;
}

/* Sections */
section {
    padding: 5rem 0;
}

/* Hero Slider Section */
main {
    display: block;
    margin: 0;
    padding: 0;
}

.hero-slider-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    width: 100%;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
    background-color: #000;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s;
    background-color: #000;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cover the entire area so the image fills from left to right, top to bottom */
    object-position: center;
    z-index: 0;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 40%, transparent 70%, rgba(0,0,0,0.15) 100%);
    z-index: 1;
}

.slide-content {
    position: absolute;
    bottom: 12%;
    left: 4rem;
    width: 100%;
    max-width: 650px;
    z-index: 2;
    text-align: left;
    background-color: transparent;
    padding: 0 1rem;
}

.slide .slide-title {
    opacity: 0;
    transform: translateY(50px);
}

.slide .slide-actions {
    opacity: 0;
    transform: translateY(50px);
}

.slide.active .slide-title {
    animation: slideUpFade 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

.slide.active .slide-actions {
    animation: slideUpFade 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;
}

.slide.active .slide-bg {
    animation: slowZoom 8s ease-out both;
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slowZoom {
    0% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.slide-title {
    font-size: 2.8rem;
    /* Smaller font size */
    font-weight: 400;
    /* Thinner font weight */
    color: #fff;
    margin-bottom: 1.5rem;
    /* Tighter gap to buttons */
    letter-spacing: 0.5px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.slide-actions {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
}

.btn-slider-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50px;
    color: #fff;
    font-weight: 400;
    /* Thinner button text */
    font-size: 0.9rem;
    /* Smaller button text */
    background: transparent;
    transition: all 0.2s ease;
}

.btn-slider-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.btn-slider-filled {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    background: var(--accent-color);
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid var(--accent-color);
    transition: all 0.2s ease;
}

.btn-slider-filled:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-slider-outline svg,
.btn-slider-filled svg {
    background: #fff;
    color: #000;
    border-radius: 50%;
    padding: 1px;
}

.slider-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
    align-items: center;
}

.slider-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    margin: 2.5px;
}

.slider-dot.active {
    width: 10px;
    height: 10px;
    background: transparent;
    border: 2px solid #fff;
    margin: 0;
}

/* ==========================================================================
   Ecosystems Section
   ========================================================================== */
.ecosystems-section {
    background-color: #050505;
    padding: 6rem 0;
}

.ecosystems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.ecosystem-card {
    display: block;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease;
}

.ecosystem-card:hover {
    transform: translateY(-5px);
}

.ecosystem-image {
    width: 100%;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.ecosystem-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ecosystem-card:hover .ecosystem-image img {
    transform: scale(1.03);
}

.ecosystem-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0;
    transition: color 0.3s ease;
}

.ecosystem-card:hover .ecosystem-title {
    color: var(--accent-color);
}

@media (max-width: 900px) {
    .ecosystems-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Explore Sim Collections Section
   ========================================================================== */
.explore-collections-section {
    background-color: #050505;
    padding: 2rem 0 6rem 0;
}

.collections-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
    height: 800px;
    /* Fixed height to control the bento box proportions */
}

/* Left side (1 large image) */
.collections-main {
    height: 100%;
}

.collection-large {
    height: 100%;
}

/* Right side (stack of images) */
.collections-side {
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    /* Divide into 3 vertical sections */
    gap: 1.5rem;
    height: 100%;
}

/* Make top and middle take 1 section each */
.collections-side>.collection-item {
    height: 100%;
}

/* Bottom right side-by-side split */
.collections-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    height: 100%;
}

.collections-split .collection-item {
    height: 100%;
}

/* Generic item styling */
.collection-item {
    display: block;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.collection-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.collection-item:hover img {
    transform: scale(1.03);
}

@media (max-width: 992px) {
    .collections-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .collections-main {
        height: 600px;
    }

    .collections-side {
        height: 1200px;
    }
}

@media (max-width: 576px) {
    .collections-split {
        grid-template-columns: 1fr;
    }

    .collections-side {
        height: 1500px;
        grid-template-rows: 1fr 1fr 1fr 1fr;
    }
}

/* Products Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

/* -- MOBILE UI BUG FIXES -- */
body {
    overflow-x: hidden;
}

@media (max-width: 900px) {
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    .main-header .logo {
        position: static !important;
        transform: none !important;
        flex: 1;
        display: flex;
        justify-content: center;
    }
}

/* FIX: Ensure new cards in index.html slider do not shrink to 0px */
#productGrid .collection-product-card {
    min-width: 320px;
    flex: 0 0 320px;
}


.product-filters {
    display: flex;
    gap: 1rem;
}

.filter-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    padding-bottom: 0.5rem;
    position: relative;
    font-weight: 500;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-fast);
}

.filter-btn.active {
    color: var(--text-primary);
}

.filter-btn.active::after,
.filter-btn:hover::after {
    width: 100%;
}

/* Setup Filters Overrides (Pill Style) */
.setup-filters .filter-btn {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 0.6rem 1.8rem;
    color: #888;
    transition: all 0.3s ease;
}

.setup-filters .filter-btn::after {
    display: none;
    /* Remove underline */
}

.setup-filters .filter-btn.active,
.setup-filters .filter-btn:hover {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

/* Product Grid & Carousel */
.products-carousel-wrapper {
    position: relative;
    width: 100%;
    margin-top: 2rem;
}

.product-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding-bottom: 2rem;
    scrollbar-width: none;
    /* Firefox — Chrome/Safari use ::-webkit-scrollbar below */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.product-grid::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.product-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background-color: #fff;
    color: #000;
    border-radius: 16px;
    overflow: hidden;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.product-image-wrap {
    position: relative;
    padding-top: 100%;
    /* 1:1 aspect ratio */
    background-color: #fff;
    /* White background matching card */
    overflow: hidden;
    border-radius: 6px 6px 0 0;
}

.product-image-wrap img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: 85%;
    object-fit: contain;
    transition: transform var(--transition-smooth);
}

.product-card:hover .product-image-wrap img {
    transform: translate(-50%, -50%) scale(1.08);
}

.badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    z-index: 2;
}

.badge {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: none;
    border-radius: 20px;
    letter-spacing: 0;
    box-shadow: none;
}

.badge-sale {
    background-color: var(--accent-color);
    color: #fff;
}

.badge-new {
    background-color: var(--accent-color);
    color: #fff;
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.product-title {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    color: #000;
    line-height: 1.4;
}

.product-category {
    display: none;
}

.product-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.product-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.current-price {
    font-size: 1rem;
    font-weight: 500;
    color: #000;
}

.original-price {
    font-size: 0.85rem;
    color: #888;
    text-decoration: line-through;
    margin-top: 2px;
}

.current-price.sale {
    color: var(--sale-color);
}

/* Hide add button in the product grid to match mockup */
.product-card .add-btn {
    display: none;
}

.add-btn {
    background: var(--text-primary);
    color: var(--bg-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.add-btn:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

/* Slider Arrows */
.setup-slider-arrows {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 1rem;
}

.setup-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.setup-arrow:hover {
    color: #fff;
    border-color: var(--accent-color);
}

/* Hover Actions on Product Image */
.card-hover-actions {
    position: absolute;
    bottom: 5%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 10;
}

.product-card:hover .card-hover-actions {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover .product-image-wrap img {
    transform: translate(-50%, -60%) scale(1.05);
    /* Shift up to make room for buttons */
}

.btn-learn-more,
.btn-buy-now {
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-learn-more {
    background-color: var(--accent-color);
    color: #fff;
    border: 1px solid var(--accent-color);
}

.btn-learn-more:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-buy-now {
    background-color: #fff;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.btn-buy-now:hover {
    background-color: var(--accent-color);
    color: #fff;
}

.quick-view-eye {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.product-card:hover .quick-view-eye {
    opacity: 1;
    transform: scale(1);
}

/* Cart Drawer */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    /* Slightly wider drawer */
    height: 100%;
    background-color: #ffffff;
    /* Cart has a light visual in screenshot */
    color: #000;
    z-index: 1000;
    transition: right var(--transition-smooth);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
}

.cart-drawer.open {
    right: 0;
}

.cart-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.cart-header sup {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 0.2rem;
}

.close-cart-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
    transition: color 0.2s;
    line-height: 1;
}

.close-cart-btn:hover {
    color: #000;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cart-item {
    display: flex;
    gap: 1.5rem;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 2rem;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-img img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: #222;
}

.cart-item-price {
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 0.25rem;
    color: #555;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
    width: 100px;
    justify-content: space-between;
}

.qty-btn {
    width: 30px;
    height: 32px;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #666;
}

.qty-input {
    width: 30px;
    text-align: center;
    border: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.remove-btn {
    background: none;
    border: none;
    text-decoration: underline;
    font-size: 0.85rem;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}

.remove-btn:hover {
    color: #000;
}

.cart-footer {
    padding: 2rem;
    border-top: 1px solid #eee;
    background: #fff;
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.02);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cart-taxes-note {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.checkout-btn {
    background-color: var(--accent-color);
    color: #000;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    transition: background 0.2s ease;
}

.checkout-btn:hover {
    background-color: var(--accent-hover);
}

/* Empty Cart View */
.empty-cart-msg {
    text-align: center;
    padding: 4rem 0;
    color: #666;
    font-size: 1.1rem;
}

/* Footer */
.main-footer {
    background-color: #050505;
    /* Even darker footer */
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Faint border */
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Media Queries */
@media (max-width: 768px) {

    .nav-links,
    .header-actions .shop-label {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .eco-card.large {
        grid-column: span 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cart-drawer {
        width: 100%;
        right: -100%;
    }

    /* Product page on tablet */
    #productDetailContainer {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .product-gallery {
        flex-direction: column;
    }
    .gallery-thumbs-strip {
        flex-direction: row !important;
        width: 100% !important;
        order: 2;
        overflow-x: auto;
    }
    .gallery-thumb {
        width: 60px !important;
        height: 60px !important;
        flex-shrink: 0;
    }
    .gallery-main {
        min-height: 300px !important;
        order: 1;
    }
    .main-image {
        padding: 1rem;
    }

    .product-info-panel h1 {
        font-size: 1.8rem !important;
    }

    .specs-inbox-grid {
        grid-template-columns: 1fr !important;
    }
    .inbox-items {
        gap: 2rem !important;
    }
}

/* MOZA News Section */
.moza-news-section {
    color: var(--text-primary);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.news-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-img-link {
    display: block;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.news-img-link img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16/9;
    display: block;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img-link img {
    transform: scale(1.05);
}

.news-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #a0a0a0;
    font-size: 0.85rem;
}

.news-title {
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 500;
    margin: 0;
}

.news-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-title a:hover {
    color: var(--accent-color);
}

.news-read-more {
    font-size: 0.9rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    width: max-content;
    padding-bottom: 2px;
}

.news-read-more::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text-primary);
    transition: width 0.3s ease;
}

.news-read-more:hover::after {
    width: 0;
}

.btn-view-all-news {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-view-all-news:hover {
    background-color: #fff;
    color: #000;
}

/* FFB Compatibility Section */
.ffb-compatibility-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #fff;
    padding: 6rem 0;
}

.ffb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.ffb-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 1rem;
    color: #ddd;
}

.ffb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
    margin-top: 4rem;
}

@media (max-width: 1024px) {
    .ffb-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ffb-grid {
        grid-template-columns: 1fr;
    }
}

.ffb-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ffb-col li {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    color: #fca;
    /* Soft warm white, from mockup */
    color: #e4e4e4;
    font-weight: 500;
}

.ffb-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.ffb-link:hover {
    opacity: 0.8;
}

.ffb-arrow {
    margin-left: 0.4rem;
    transition: transform 0.3s ease;
}

.ffb-link:hover .ffb-arrow {
    transform: translateX(4px);
}

/* =========================================
   8. Collection Page (Racing Series)
   ========================================= */

.collection-page-main {
    background-color: #f7f7f7;
    color: #1a1a1a !important;
    min-height: 100vh;
}

.collection-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 8rem 0 6rem;
    color: var(--color-white);
    display: flex;
    align-items: center;
}

.collection-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.collection-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.collection-desc {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

.btn-help-floating {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-help-floating:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: var(--color-white);
}

.collection-area {
    padding: 4rem 0;
}

.collection-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
}

/* Sidebar Filters */
.collection-sidebar {
    position: sticky;
    top: 100px;
    /* Account for fixed header */
    height: fit-content;
}

.sidebar-header {
    margin-bottom: 2rem;
}

.btn-hide-filters {
    background: none;
    border: 1px solid #d0d0d0;
    border-radius: 20px;
    padding: 0.5rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #333 !important;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-hide-filters:hover {
    background-color: #f0f0f0;
}

.filter-group {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.filter-group:first-of-type {
    padding-top: 0;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-switch {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: #333 !important;
}

.filter-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    cursor: pointer;
    color: #1a1a1a !important;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    margin-bottom: 0.75rem;
}

.filter-list label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #555;
    transition: color 0.2s;
}

.filter-list label:hover {
    color: var(--color-black);
}

.filter-list input[type="checkbox"] {
    margin-right: 0.8rem;
    width: 18px;
    height: 18px;
    accent-color: var(--color-black);
}

.filter-list .count {
    margin-left: 0.4rem;
    color: #999;
}

/* Toggle Switch Styling */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--color-black);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--color-black);
}

input:checked+.slider:before {
    -webkit-transform: translateX(20px);
    -ms-transform: translateX(20px);
    transform: translateX(20px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Collection Content */
.collection-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.product-count {
    color: #333 !important;
    font-weight: 500;
}

.sort-by {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333 !important;
}

.sort-select {
    padding: 0.5rem 2rem 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background-color: white;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1em;
}

.sort-select:focus {
    outline: none;
    border-color: var(--color-black);
}

.products-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Product Card Styling for Collection */
.collection-product-card {
    background: #fff;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.collection-product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Image Wrapper - contains image + hover overlay */
.c-card-image-wrapper {
    position: relative;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    min-height: 260px;
    overflow: hidden;
}

.c-card-image-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.c-card-image-link img {
    max-width: 100%;
    max-height: 220px;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.collection-product-card:hover .c-card-image-link img {
    transform: scale(1.05);
}

/* Badges */
.c-card-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    z-index: 3;
}

.c-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    color: white;
    line-height: 1.2;
}

.c-badge-save {
    background-color: #cda87a;
}

.c-badge-xbox {
    background-color: #107c10;
}

/* Hover Overlay - ONLY on image area */
.c-card-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2;
}

.collection-product-card:hover .c-card-hover-overlay {
    opacity: 1;
    visibility: visible;
}

.c-hover-btn {
    width: 65%;
    max-width: 220px;
    text-align: center;
    padding: 0.7rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 2px solid var(--accent-color);
    display: inline-block;
    font-family: inherit;
}

.c-hover-btn-outline {
    background: transparent;
    color: var(--accent-color);
}

.c-hover-btn-outline:hover {
    background: var(--accent-color);
    color: #fff;
}

.c-hover-btn-filled {
    background: var(--accent-color);
    color: #fff;
}

.c-hover-btn-filled:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* Card Body - title, price, specs - ALWAYS VISIBLE */
.c-card-body {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    border-top: 1px solid #f0f0f0;
}

.c-card-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* standard property for compatibility */
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.c-card-title:hover {
    color: #666;
}

/* Price */
.c-card-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.c-price-sale {
    font-size: 1rem;
    font-weight: 600;
    color: #e31837;
}

.c-price-original {
    font-size: 0.85rem;
    color: #999;
    text-decoration: line-through;
}

.c-price-regular {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
}

/* Specs - small circular icons + text, always visible */
.c-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.c-spec-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: #666;
}

.c-spec-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: #999;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .products-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .collection-grid {
        grid-template-columns: 1fr;
    }

    .collection-sidebar {
        position: static;
        margin-bottom: 2rem;
    }

    .collection-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .products-grid-3 {
        grid-template-columns: 1fr;
    }
}


/* ====================================================
   PRODUCT PAGE - EXTENDED SECTIONS (Banners, Specs, Reviews)
   ==================================================== */

/* BANNERS */
.product-banners {
    margin: 0 auto 4rem;
    max-width: 1200px;
}

.banner-block {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 3rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.banner-block--reverse {
    flex-direction: row-reverse;
}

.banner-img {
    width: 50%;
    max-width: 560px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.banner-text {
    flex: 1;
}

.banner-text h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.banner-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

@media (max-width: 768px) {

    .banner-block,
    .banner-block--reverse {
        flex-direction: column;
    }

    .banner-img {
        width: 100%;
        max-width: 100%;
    }
}

/* SPECS - Grouped accordion */
.spec-group {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.spec-group summary.spec-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    background: #f5f5f5;
    color: #111111;
    list-style: none;
    -webkit-user-select: none;
    user-select: none;
    transition: background 0.2s ease;
}

.spec-group summary.spec-group-title:hover {
    background: #ebebeb;
}

.spec-group summary.spec-group-title::after {
    content: '−';
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--accent-color);
}

.spec-group:not([open]) summary.spec-group-title::after {
    content: '+';
}

.spec-rows {
    background: #ffffff;
    padding: 0.25rem 0;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.875rem;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    color: #666666;
    font-weight: 400;
}

.spec-value {
    color: #111111;
    font-weight: 500;
    text-align: right;
    max-width: 60%;
}

/* INBOX items */
.inbox-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
    color: var(--text-primary);
}

.inbox-item:last-child {
    border-bottom: none;
}

.inbox-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-color);
}

.inbox-icon svg {
    width: 20px;
    height: 20px;
}

/* REVIEWS */
.review-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.review-card-stars {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 0.4rem;
    letter-spacing: 2px;
}

.review-card-author {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #111;
}

.review-card-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #111;
}

.review-card-text {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.6;
}

.review-card-date {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.5rem;
}

.verified-badge {
    font-size: 0.7rem;
    background: rgba(0, 200, 83, 0.12);
    color: #00a84b;
    border: 1px solid rgba(0, 200, 83, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

/* Spec group summary - fix webkit prefix */
.spec-group summary.spec-group-title {
    -webkit-user-select: none;
    user-select: none;
}

/* Review card layout */
.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.review-card-header .review-card-stars {
    margin-bottom: 0;
}

.review-card-header .review-card-date {
    margin-top: 0;
    font-size: 0.8rem;
    color: #999;
}

.reviewer-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e8e8e8;
    color: #555;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.4rem;
    flex-shrink: 0;
}

/* Review photos grid */
.review-card-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.review-photo-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.review-photo-thumb:hover {
    opacity: 0.85;
}

/* =========================================================================
   MOBILE RESPONSIVENESS & MEDIA QUERIES
   ========================================================================= */

@media (max-width: 1024px) {

    /* Header & Navigation */
    .header-container {
        flex-direction: column;
        padding: 1rem;
        align-items: flex-start;
    }

    .logo {
        margin-bottom: 1rem;
    }

    .main-nav {
        width: 100%;
        overflow-x: auto;
        /* -webkit-overflow-scrolling removed */
        padding-bottom: 0.5rem;
    }

    .main-nav::-webkit-scrollbar {
        height: 0;
        background: transparent;
    }

    .nav-links {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 0;
        margin: 0;
    }

    .nav-links li {
        margin-right: 1.5rem;
    }

    .nav-links>li>a {
        white-space: nowrap;
        font-size: 0.9rem;
        padding: 0.5rem 0;
    }

    /* Mega menu mobile - Make it scroll horizontally instead */
    .mega-menu {
        display: none !important;
        /* Disable mega menu hover on mobile altogether */
    }

    /* Grids */
    .mega-cards-wrapper.grid-3,
    .mega-cards-wrapper.grid-4,
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .collection-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .collection-sidebar {
        position: static;
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #ccc;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }

    /* Header actions to the right */
    .header-actions {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    /* Support page grids */
    .support-grid {
        grid-template-columns: 1fr;
    }

    /* Hero scaling */
    .hero {
        padding: 4rem 1.5rem;
    }

    .hero h1,
    .eco-content h2 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Flight layout overrides */
    .ffb-grid {
        flex-direction: column;
    }

    .ffb-col {
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .eco-grid {
        flex-direction: column;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    /* About Us specific */
    .about-split {
        flex-direction: column;
        gap: 2rem;
    }

    .about-split>* {
        width: 100%;
    }

    /* Single product page */
    .product-page-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 2rem;
    }

    .gallery-container {
        position: static;
    }

    .perks-grid {
        flex-direction: column;
        gap: 2rem;
    }

    .perk-item {
        margin-bottom: 1rem;
    }

    /* Cart and Checkout */
    .cart-grid {
        grid-template-columns: 1fr !important;
    }

    /* Blog Grid */
    .blog-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
    }

    .item-info {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* --- NEW MOBILE NAVBAR & DRAWER --- */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: -10px;
    z-index: 1050;
    order: -1;
}

.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: #fff;
    z-index: 1050;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}

.mobile-drawer.open {
    left: 0;
}

.mobile-drawer-header {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    position: relative;
}

.mobile-drawer-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #e0e0e0;
    border-radius: 3px;
}

.mobile-drawer-close {
    position: absolute;
    left: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 0;
    display: none;
    flex-direction: column;
    background: #fff;
}

.mobile-drawer-content.active {
    display: flex;
}

.mobile-drawer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.mobile-drawer-nav>li {
    padding: 1.2rem 1.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: #000;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
}

.mobile-drawer-nav>li>a {
    color: inherit;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.mobile-drawer-nav .has-sub {
    flex-direction: column;
    align-items: flex-start;
}

.mobile-drawer-nav .has-sub-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.mobile-drawer-nav .arrow {
    transition: transform 0.2s;
}

.sub-nav-list>li {
    font-size: 1rem;
    color: #111;
    padding: 1.2rem 1.5rem;
}

.sub-nav-list>li>a {
    font-weight: 500;
}

.drawer-back {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
}

.drawer-action-btn-wrapper {
    padding: 2rem 1.5rem;
}

.drawer-action-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 1.2rem;
    background: var(--accent-color);
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
}

.mobile-drawer-footer {
    padding: 1.5rem;
    background: #fff;
    border-top: 1px solid #eee;
}

.drawer-locales {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.drawer-locales select {
    flex: 1;
    padding: 0.5rem 0;
    border: none;
    font-size: 0.95rem;
    background: transparent;
    color: #333;
    outline: none;
}

.drawer-actions {
    margin-top: 1rem;
}

.drawer-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.drawer-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
}

.drawer-socials {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
}

.drawer-socials a {
    color: #000;
}

/* --- Dynamic Full-Page Swiper (Moza Replica) --- */
.dynamic-slider-container {
    position: relative;
    width: 100%;
    height: calc(100% - 60px);
    overflow: hidden;
}

.dynamic-slider {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* -webkit-overflow-scrolling removed */
    scrollbar-width: none;
    /* Firefox — Chrome/Safari use ::-webkit-scrollbar below */
}

.dynamic-slider::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.dynamic-slide {
    flex: 0 0 100%;
    width: 100%;
    min-height: 100%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: #fff;
}

#dynamicSubDrawer {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 10;
    overflow-y: auto;
}

#dynamicSubDrawer.active {
    display: flex;
    flex-direction: column;
}

@media (max-width: 1024px) {
    .header-container {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.8rem 1rem !important;
        gap: 0 !important;
    }

    .mobile-menu-btn {
        display: block !important;
        margin-right: 0 !important;
    }

    .logo {
        margin: 0 auto !important;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .main-nav {
        display: none !important;
    }

    .header-actions {
        position: static !important;
        margin-left: 0 !important;
    }

    .mega-menu {
        display: none !important;
    }
}


/* --- CRITICAL MOBILE LAYOUT FIXES --- */
@media (max-width: 768px) {

    /* Fix table overflow on cart page */
    .cart-items-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        /* -webkit-overflow-scrolling removed */
    }

    .cart-items-table thead {
        display: none;
        /* Hide table headers on very small screens for better stacking */
    }

    .cart-items-table,
    .cart-items-table tbody,
    .cart-items-table tr,
    .cart-items-table td {
        display: block;
        width: 100%;
    }

    .cart-items-table tr {
        margin-bottom: 2rem;
        border-bottom: 2px solid #eee;
    }

    .cart-items-table td {
        border-bottom: none;
        padding: 0.5rem 0;
    }

    .item-total {
        text-align: left !important;
        padding-top: 1rem !important;
        font-size: 1.25rem !important;
    }

    .qty-controls {
        margin-top: 1.5rem !important;
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }

    /* Fix container paddings bleeding */
    .container {
        padding: 0 1rem !important;
    }

    /* Fix header height bleeding */
    .main-header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    /* Fix checkout fields */
    .checkout-wrapper {
        margin-top: 20px !important;
        padding: 0 1rem !important;
        gap: 2rem !important;
    }

    .hero {
        padding: 3rem 1rem !important;
    }

    .hero h1 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }

    .section-title {
        font-size: 1.8rem !important;
    }
}


/* --- DRAWER ACCORDION & SLIDER STYLES --- */
.drawer-acc-item {
    border-bottom: 1px solid #f5f5f5;
}

.drawer-acc-header {
    padding: 1.2rem 1.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #fff;
    transition: background 0.2s;
}

.drawer-acc-header .arrow {
    transition: transform 0.3s ease;
}

.drawer-acc-item.active .drawer-acc-header {
    background: #fafafa;
}

.drawer-acc-item.active .drawer-acc-header .arrow {
    transform: rotate(90deg);
}

.drawer-acc-body {
    display: none;
    background: #fafafa;
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
}

.drawer-acc-item.active .drawer-acc-body {
    display: block;
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Horizontal Slider */
.drawer-product-slider {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 0 1.5rem 1rem 1.5rem;
    /* -webkit-overflow-scrolling removed */
    scroll-snap-type: x mandatory;
}

.drawer-product-slider::-webkit-scrollbar {
    height: 4px;
}

.drawer-product-slider::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 4px;
}

.drawer-product-card {
    flex: 0 0 240px;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dpc-img {
    height: 180px;
    background: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.dpc-img img {
    max-height: 100%;
    object-fit: contain;
}

.dpc-info {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dpc-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.dpc-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ff3b3b;
    margin-bottom: 1rem;
    margin-top: auto;
}

.dpc-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dpc-btn {
    padding: 0.6rem;
    text-align: center;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
}

.dpc-btn.outline {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.dpc-btn.solid {
    background: var(--accent-color);
    color: #fff;
    border: none;
}

.drawer-acc-viewall {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 1.5rem 0 1.5rem;
    padding: 0.8rem;
    background: var(--accent-color);
    color: #fff;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.95rem;
}


/* Ensures no horizontal overflow */
.page-container,
.collection-page-main,
.product-page-main {
    max-width: 100%;
    overflow-x: hidden;
}

/* Ensure body doesn't bounce sideways */
html,
body {
    overscroll-behavior-x: none;
}

.legal-policy {
    color: #222;
    line-height: 1.7;
    overflow-wrap: break-word;
}

.legal-policy h2,
.legal-policy h3,
.legal-policy h4 {
    color: #111;
    line-height: 1.25;
    margin-top: 1.8rem;
    margin-bottom: 0.75rem;
}

.legal-policy p,
.legal-policy li {
    color: #333;
}

.legal-policy ul {
    padding-left: 1.2rem;
}

.legal-policy .policy-updated {
    color: #666;
    font-size: 0.95rem;
}

.legal-policy .business-identity {
    background: #f7f7f7;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    padding: 1rem 1.1rem;
    margin: 1.5rem 0;
}

@media (max-width: 600px) {
    .legal-policy {
        font-size: 0.95rem;
    }

    .legal-policy h2 {
        font-size: 1.45rem;
    }
}


/* --- OVERFLOW X BULLETPROOF LOCK --- */
html,
body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    position: relative !important;
    overscroll-behavior-x: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure images or flex containers never break out */
img,
picture,
video,
canvas,
svg,
iframe,
.container,
section,
main,
header,
footer {
    max-width: 100% !important;
}


/* --- DYNAMIC PAGINATED DRAWER --- */
.dynamic-slider-container {
    height: calc(100% - 140px);
    width: 100%;
    margin-top: 2rem;
}

.dynamic-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* -webkit-overflow-scrolling removed */
    height: 100%;
    width: 100%;
    gap: 0;
}

.dynamic-slider::-webkit-scrollbar {
    display: none;
}

.dynamic-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
}

.dynamic-slide-img {
    height: 50vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    margin-bottom: 2rem;
}

.dynamic-slide-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.dynamic-slide-info {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.dynamic-slide-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111;
    display: flex;
    align-items: flex-start;
    gap: 0.2rem;
}

.dynamic-slide-title sup {
    font-size: 0.85rem;
    color: #555;
    margin-top: 0.3rem;
}

.dynamic-btn-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 1.5rem 2rem 2rem 2rem;
}

.dynamic-all-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-color);
    color: #fff;
    border-radius: 50px;
    font-size: 1.05rem;
}

/* =========================================================================
   ADD TO CART ANIMATION
   ========================================================================= */

/* The flying product image clone */
.cart-fly-item {
    position: fixed;
    z-index: 99999;
    pointer-events: none;
    border-radius: 8px;
    object-fit: contain;
    background: transparent;
    transition: none;
}

/* Cart icon bounce when item arrives */
@keyframes cartBounce {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.35); }
    55%  { transform: scale(0.88); }
    75%  { transform: scale(1.12); }
    90%  { transform: scale(0.97); }
    100% { transform: scale(1); }
}

.cart-btn.cart-bounce {
    animation: cartBounce 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Button success state */
@keyframes btnSuccess {
    0%   { background: var(--accent-color); }
    40%  { background: #3ab87a; }
    100% { background: var(--accent-color); }
}

.add-to-cart-btn.btn-success,
.btn-buy-now.btn-success,
.c-hover-btn-filled.btn-success {
    animation: btnSuccess 0.9s ease forwards;
}

/* Ripple pulse on cart icon */
@keyframes cartPulse {
    0%   { box-shadow: 0 0 0 0 rgba(214,176,136,0.7); }
    70%  { box-shadow: 0 0 0 14px rgba(214,176,136,0); }
    100% { box-shadow: 0 0 0 0 rgba(214,176,136,0); }
}

.cart-btn.cart-pulse {
    border-radius: 50%;
    animation: cartPulse 0.6s ease-out;
}


/* =========================================================================
   MOBILE FAB (SCROLL TO TOP / CART)
   ========================================================================= */

.mobile-fab-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.mobile-fab-container.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-fab {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    border: none;
    padding: 0;
}

.mobile-fab:active {
    transform: scale(0.95);
    background: #c29c73;
}

.mobile-fab svg {
    width: 24px;
    height: 24px;
}

.mobile-fab-cart {
    position: relative;
    background: #111;
}

.mobile-fab-cart .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3b3b;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* Only show on mobile */
@media (min-width: 1025px) {
    .mobile-fab-container {
        display: none !important;
    }
}


/* =========================================================================
   REVIEW PHOTO LIGHTBOX
   ========================================================================= */

.photo-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.photo-lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
}

.photo-lightbox-content img {
    max-width: 100%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 4px;
}

.photo-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    line-height: 1;
}


/* =========================================================================
   SALES COUNTDOWN BANNER
   ========================================================================= */
.sales-banner {
    background: #444; /* Dark grey */
    color: #fff;
    text-align: center;
    padding: 8px 10px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
.sales-banner span {
    display: inline-block;
}
.sales-timer {
    background: rgba(0,0,0,0.2);
    padding: 3px 8px;
    border-radius: 4px;
    font-variant-numeric: tabular-nums;
}
@media (max-width: 600px) {
    .sales-banner {
        flex-direction: column;
        gap: 5px;
        font-size: 0.8rem;
    }
}

/* =========================================================================
   MOBILE DRAWER (OFF-CANVAS)
   ========================================================================= */
.mobile-menu-toggle {
    display: none;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-toggle {
    display: none;
}

.mobile-menu-toggle {
    position: relative;
    width: 32px;
    height: 24px;
    cursor: pointer;
}

.mobile-menu-toggle svg {
    transition: transform 0.3s ease;
}

.mobile-menu-toggle.active svg {
    transform: rotate(180deg);
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(180deg, #0a0a0a 0%, #111 40%, #0d0d0d 100%);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-bottom: 2rem;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.mobile-nav-drawer.active {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
}

.mobile-nav-close {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    transition: background 0.2s, border-color 0.2s;
}

.mobile-nav-close:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.2);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
}

.mobile-nav-item {
    border-bottom: none;
    overflow: hidden;
}

.mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.5rem;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.15s;
    cursor: pointer;
    user-select: none;
}

.mobile-nav-link:active {
    background: rgba(255,255,255,0.05);
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    background: rgba(0,0,0,0.2);
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s;
    padding: 0 0 0 0;
}

.mobile-submenu.open {
    max-height: 300px;
    padding: 0.5rem 0 1rem 0;
}

.mobile-submenu a {
    display: block;
    padding: 0.7rem 1.5rem 0.7rem 2.5rem;
    color: #999;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.15s, padding-left 0.2s;
}

.mobile-submenu a:hover,
.mobile-submenu a:active {
    color: #fff;
    padding-left: 2.8rem;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-nav-close {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-submenu {
    display: none;
    background: rgba(0,0,0,0.3);
    padding: 0 0 1rem 0;
}

.mobile-submenu.open {
    display: block;
}

.mobile-submenu a {
    display: block;
    padding: 0.8rem 1.5rem 0.8rem 2.5rem;
    color: #a0a0a0;
    font-size: 0.95rem;
    font-weight: 500;
}
.mobile-submenu a:hover {
    color: var(--accent-color);
}

/* =========================================================================
   MOBILE RESPONSIVENESS & MEDIA QUERIES
   ========================================================================= */

@media (max-width: 1024px) {
    /* Container padding */
    .container, .header-container {
        padding: 0 1.5rem;
    }
    .mega-menu-container {
        padding: 0 2rem;
    }

    /* Header & Navigation */
    .main-nav {
        display: none; /* Hide desktop nav */
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: var(--text-primary);
        cursor: pointer;
        padding: 0.5rem;
    }

    /* Grids */
    .grid-4, .grid-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Product Grid specifically */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Hero Slider */
    .slide-content {
        left: 2rem;
        max-width: 500px;
    }
    .slide-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    /* Announcement Bar */
    .announcement-bar {
        flex-direction: column;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }
    .announcement-bar .marquee-text {
        position: static;
        transform: none;
        text-align: center;
        width: 100%;
        font-size: 0.75rem;
    }

    /* Header */
    .header-container {
        height: 60px;
        padding: 0 1rem;
    }
    .logo-text {
        font-size: 1.1rem;
    }

    /* Grids (1 column) */
    .grid-4, .grid-3, .features-grid, .support-grid, .ecosystem-grid, .grid-5 {
        grid-template-columns: 1fr !important;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Keep products 2-col on mobile usually, or 1-col */
        gap: 1rem;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    .footer-col {
        width: 100%;
    }

    /* Specific Sections */
    .hero-slider-section {
        min-height: 500px;
    }
    .slide-content {
        left: 1rem;
        right: 1rem;
        width: auto;
        bottom: 10%;
        text-align: center;
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    .slide-title {
        font-size: 1.8rem;
    }
    .slide-subtitle {
        font-size: 0.9rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    
    /* Form components */
    .field-row {
        flex-direction: column;
    }
    
    .product-page-main {
        grid-template-columns: 1fr !important;
    }
    .product-gallery, .product-info {
        padding: 0 1rem !important;
    }
    .co-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr !important;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .page-title {
        font-size: 2rem;
    }

    /* === Payment icons: ensure SVGs render properly === */
    .payment-icons li svg {
        width: auto !important;
        height: 20px !important;
        display: block;
        border-radius: 3px;
    }
    .payment-icons li {
        background: rgba(255,255,255,0.08);
        border-radius: 4px;
        padding: 4px 6px;
    }

    /* === Product page mobile fixes === */
    #productDetailContainer {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .product-gallery {
        flex-direction: column;
    }
    .gallery-thumbs-strip {
        flex-direction: row !important;
        width: 100% !important;
        order: 2;
        overflow-x: auto;
    }
    .gallery-thumb {
        width: 60px !important;
        height: 60px !important;
        flex-shrink: 0;
    }
    .gallery-main {
        min-height: 280px !important;
        order: 1;
    }
    .main-image {
        max-height: 280px;
    }
    .main-image img {
        max-height: 280px !important;
    }
    .gallery-arrow {
        width: 32px !important;
        height: 32px !important;
    }

    .product-info-panel h1 {
        font-size: 1.5rem !important;
    }
    .sale-price,
    .regular-price {
        font-size: 1.2rem !important;
    }
    .add-to-cart-btn {
        font-size: 0.95rem !important;
        padding: 0.75rem 1.5rem !important;
    }
    .buy-with-shop {
        padding: 0.75rem !important;
        font-size: 0.95rem !important;
    }
    .qty-selector button {
        width: 36px !important;
        height: 42px !important;
    }
    .qty-selector input {
        width: 36px !important;
        font-size: 0.9rem !important;
    }

    .specs-inbox-grid {
        grid-template-columns: 1fr !important;
    }
    .inbox-items {
        gap: 1.5rem !important;
    }
    .inbox-icon {
        width: 60px !important;
        height: 60px !important;
    }
    .inbox-icon svg,
    .inbox-icon img {
        width: 24px !important;
        height: 24px !important;
    }
    .inbox-item {
        width: 70px !important;
    }
    .faqs-header h2 {
        font-size: 1.3rem !important;
    }
    .product-description {
        font-size: 0.85rem !important;
    }
    .perk-item {
        font-size: 0.8rem !important;
    }

    .sticky-bar {
        bottom: 1rem !important;
        right: 1rem !important;
        left: 1rem !important;
        padding: 0.75rem 1rem !important;
    }
    .sticky-info {
        gap: 0.5rem !important;
    }
    .sticky-img {
        width: 40px !important;
        height: 40px !important;
    }
    .sticky-title {
        font-size: 0.8rem !important;
    }

    /* === Cart drawer mobile === */
    .cart-drawer {
        width: 100% !important;
        right: -100% !important;
        transition: none !important;
    }
    .cart-drawer.open {
        right: 0 !important;
    }

    /* === Header / announcement bar mobile === */
    .announcement-bar {
        padding: 0.5rem 1rem !important;
    }
    .social-icons {
        display: none !important;
    }
    .header-container {
        padding: 0 1rem !important;
    }

    /* === Hero slider mobile === */
    .hero-slider-section {
        min-height: 350px !important;
    }
    .slide-title {
        font-size: 1.4rem !important;
    }
    .slide-actions {
        gap: 0.75rem !important;
    }
    .btn-slider-outline,
    .btn-slider-filled {
        padding: 0.5rem 1.2rem !important;
        font-size: 0.8rem !important;
    }
    .slide-content {
        left: 1rem !important;
        right: 1rem !important;
        text-align: center !important;
    }
    .slide-actions {
        justify-content: center !important;
    }

    /* === Footer payment icons mobile === */
    .payment-icons li svg {
        max-height: 20px;
        max-width: 36px;
    }
    .footer-payment-methods {
        margin-top: 1.5rem !important;
    }
}
