/* Mosca Garage Custom Theme - Hummingbird Adaptation */
:root {
    --primary-color: gold;
    --secondary-color: #1a1a1a;
    --text-color: #ffffff;
    --accent-color: #f5f5f5;
    --gradient: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    /* Section sizing variables */
    --header-height: 140px;
    --section-height: calc(100vh - var(--header-height));
    --section-padding: 2rem;
}

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

/* ========================================
   SCROLL-SNAP BEHAVIOR - HOMEPAGE ONLY
   ======================================== */
html:has(body#index) {
    scroll-snap-type: y mandatory;
    scroll-padding-top: var(--header-height);
    overscroll-behavior-y: auto;
}

body#index {
    overflow-x: hidden;
}

body#index .hero,
body#index .services,
body#index .gallery,
body#index .configurator3d,
body#index .products.home {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

body#index #footer {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--secondary-color);
    color: var(--text-color);
    overflow-x: hidden;
    /* padding-top: 140px; */
}

/* HEADER & NAVBAR */
header#header,
.header {
    height: var(--header-height);
    background: rgba(26, 26, 26, 0.95) !important;
    position: sticky !important;
    top: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    padding: 0 !important;
    backdrop-filter: blur(10px) !important;
    overflow: visible !important;
    border-bottom: 2px solid rgba(212, 175, 55, 0.5) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

@media (max-width: 768px) {

    /* --header-height viene impostata dinamicamente via JavaScript */

    header#header,
    .header {
        height: auto !important;
        max-height: none !important;
        padding-bottom: 0.5rem !important;
    }

    .header-top-bar {
        display: block !important;
        padding: 0.25rem 1rem !important;
    }

    .header-top-bar .row {
        justify-content: center !important;
    }

    /* Style for mobile placeholders in top bar */
    #_mobile_user_info,
    #_mobile_cart,
    #_mobile_language_selector {
        display: inline-block;
        margin-left: 10px;
    }

    #_mobile_user_info .user-info,
    #_mobile_cart .header-block {
        display: flex;
        align-items: center;
    }

    #_mobile_user_info .header-block__title,
    #_mobile_cart .header-block__title {
        display: none;
        /* Hide text on mobile, show only icon */
    }
}

/* BARRA SUPERIORE - User info e carrello */
.header-top-bar {
    background: rgba(0, 0, 0, 0.6);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
}

.header-top-bar .header__user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header a:not(.dropdown-item):not(.btn),
.header-bottom a:not(.dropdown-item):not(.btn) {
    color: var(--text-color) !important;
}

.header a:not(.dropdown-item):not(.btn):hover,
.header-bottom a:not(.dropdown-item):not(.btn):hover {
    color: var(--primary-color) !important;
}

/* Rimuovi spazi/margini sotto header */
.header-bottom,
#header {
    margin-bottom: 0 !important;
}

#wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0rem;
}

/* LOGO STYLING - Forza layout orizzontale */
.header-bottom .logo {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1rem !important;
}

.header-bottom .logo a {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1rem !important;
    text-decoration: none !important;
}

.header-bottom .logo img {
    width: auto !important;
    height: 72px !important;
    /* Increased height for better visibility */
    object-fit: contain;
    flex-shrink: 0;
    mix-blend-mode: screen;
}

.header-bottom .logo .logo-text,
.header-bottom .logo h1.logo-text {
    color: var(--text-color) !important;
    font-size: 1.5rem !important;
    font-weight: bold !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* TELEFONO */
.header__phone {
    color: var(--text-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

/* USER INFO & CART */
.header__user {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
}

.header__user a {
    transition: color 0.3s ease;
}

.header__user a:hover {
    color: var(--primary-color) !important;
}

.header__user .material-icons,
.header__user i {
    font-size: 1.5rem !important;
}

.header__user .cart-products-count {
    background: var(--primary-color) !important;
    color: var(--secondary-color) !important;
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

/* MENU PS_MAINMENU - Forza layout orizzontale e stili custom */
.header-bottom .main-menu {
    flex: 1;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Centra il menu */
.header-bottom .main-menu .d-xl-block,
.header-bottom .main-menu .js-menu-desktop {
    display: flex !important;
    width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
}

.header-bottom #top-menu,
.header-bottom .main-menu__tree {
    display: flex !important;
    flex-direction: row !important;
    list-style: none;
    gap: 2.5rem;
    margin: 0 auto !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    height: auto !important;
}

.header-bottom .main-menu__tree>li {
    display: inline-flex !important;
    align-items: center;
}

.header-bottom .main-menu__tree__link {
    color: var(--text-color) !important;
    font-weight: 500;
    position: relative;
    text-decoration: none !important;
    transition: color 0.3s;
    padding: 0.5rem 1rem !important;
    display: inline-block;
    white-space: nowrap;
    background: transparent !important;
}

.header-bottom .main-menu__tree__link:hover {
    color: var(--primary-color) !important;
}

/* Effetto underline hover */
.header-bottom .main-menu__tree>li>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.header-bottom .main-menu__tree>li>a:hover::after {
    transform: scaleX(1);
}

/* SUBMENU / DROPDOWN STYLING */
/* Assicura che il parent li abbia position relative per il dropdown */
.header-bottom .main-menu__tree__item {
    position: relative !important;
}

/* Override dello style inline impostato da JavaScript */
.header-bottom .menu-container[style],
.header-bottom .js-sub-menu[style] {
    top: calc(100% + 5px) !important;
    /* Spazio minimo ma non troppo */
    position: absolute !important;
}

.header-bottom .menu-container,
.header-bottom .js-sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background: rgba(26, 26, 26, 0.98) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 1.5rem !important;
    min-width: 280px;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    margin-top: 0 !important;
}

/* Area invisibile che collega menu e dropdown - aumentata */
.header-bottom .menu-container::before,
.header-bottom .js-sub-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    /* Area più grande per catturare l'hover */
    left: -20px;
    right: -20px;
    height: 20px;
    background: transparent;
    z-index: -1;
}

/* Mostra dropdown all'hover */
.header-bottom .main-menu__tree__item:hover>.menu-container,
.header-bottom .main-menu__tree__item:hover>.js-sub-menu,
.header-bottom .menu-container:hover,
.header-bottom .js-sub-menu:hover {
    display: block !important;
}

/* Fix per il container interno */
.header-bottom .menu-container .container {
    max-width: 100% !important;
    padding: 0 !important;
}

/* Stile per gli ul interni */
.header-bottom .menu-container ul,
.header-bottom .js-sub-menu ul {
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

.header-bottom .menu-container ul.row {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Items del dropdown */
.header-bottom .menu-container .dropdown-item,
.header-bottom .menu-container li a,
.header-bottom .js-sub-menu a {
    color: var(--text-color) !important;
    padding: 0.75rem 1rem !important;
    display: block;
    transition: all 0.3s ease;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 0.95rem;
}

.header-bottom .menu-container .dropdown-item:hover,
.header-bottom .menu-container li a:hover,
.header-bottom .js-sub-menu a:hover {
    color: var(--primary-color) !important;
    background: rgba(212, 175, 55, 0.15) !important;
    transform: translateX(5px);
}

/* Mantieni freccia dropdown ma stilizzala */
.header-bottom .dropdown-toggle::after {
    margin-left: 0.5rem;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
}

/* HAMBURGER MENU */
.header__hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.header__hamburger span {
    width: 30px;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.header__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.header__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.header__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* MENU MOBILE */
.header__menu-mobile {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
}

.header__menu-mobile.active {
    max-height: calc(100vh - 90px);
    overflow-y: auto;
}

.header__menu-mobile .main-menu__tree {
    flex-direction: column !important;
    padding: 2rem;
    align-items: flex-start !important;
}

.header__menu-mobile .main-menu__tree>li {
    width: 100%;
    margin-bottom: 1.5rem;
}

.header__menu-mobile .main-menu__tree__link {
    font-size: 1.2rem !important;
    display: block !important;
    width: 100%;
}

/* Body quando menu mobile è aperto */
body.menu-open {
    overflow: hidden;
}

/* HEADER NAVIGATION */
.header__nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Forza tutti i figli diretti a stare sulla stessa riga */
.header__nav>* {
    flex-shrink: 0;
}

/* Override aggressivo per evitare che qualsiasi elemento vada a capo */
.header__nav>div,
.header__nav>a,
.header__nav>button {
    display: flex !important;
    align-items: center !important;
}

/* LOGO */
.header__logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--text-color) !important;
    flex-shrink: 0;
}

.header__logo:hover {
    color: var(--text-color) !important;
    text-decoration: none !important;
}

.header__logo img {
    width: 70px !important;
    height: 70px !important;
    object-fit: contain;
}

.header__logo span {
    color: var(--text-color) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* MENU DESKTOP - Stilizzazione output ps_mainmenu */
.header__menu {
    flex: 1;
    justify-content: center;
    display: flex !important;
    align-items: center !important;
}

/* Forza il container del modulo a stare inline */
.header__menu .main-menu,
.header__menu>div {
    display: flex !important;
    width: 100% !important;
    flex: 1 !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Forza layout orizzontale per ps_mainmenu */
.header__menu #top-menu,
.header__menu .main-menu__tree,
.header__menu ul,
.header__menu .top-menu,
.header__menu .header__menu-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    list-style: none;
    gap: 2.5rem;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center;
    height: auto !important;
    width: auto !important;
}

.header__menu .main-menu__tree>li,
.header__menu .header__menu-item {
    display: inline-flex !important;
    align-items: center;
    margin: 0 !important;
}

/* Stili link menu */
.header__menu ul li a,
.header__menu .top-menu li a,
.header__menu .main-menu__tree__link,
.header__menu .header__menu-link {
    color: var(--text-color) !important;
    font-weight: 500;
    position: relative;
    text-decoration: none !important;
    transition: color 0.3s;
    padding: 0.5rem 1rem !important;
    display: inline-block;
    white-space: nowrap;
    background: transparent !important;
}

.header__menu ul li a:hover,
.header__menu .top-menu li a:hover,
.header__menu .main-menu__tree__link:hover,
.header__menu .header__menu-link:hover {
    color: var(--primary-color) !important;
    background: transparent !important;
}

/* Effetto underline al hover */
.header__menu ul li>a::after,
.header__menu .top-menu li>a::after,
.header__menu .main-menu__tree>li>a::after,
.header__menu .header__menu-item>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    width: auto;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.header__menu ul li>a:hover::after,
.header__menu .top-menu li>a:hover::after,
.header__menu .main-menu__tree>li>a:hover::after,
.header__menu .header__menu-item>a:hover::after {
    transform: scaleX(1);
}

/* Nascondi dropdown indicator se non serve */
.header__menu .dropdown-toggle::after {
    display: none !important;
}

/* Nascondi menu container (dropdown) nell'header principale */
.header__menu .menu-container,
.header__menu .header__menu-dropdown {
    display: none !important;
}

/* Previeni il wrapping su colonna del modulo */
.header__menu .col-xl,
.header__menu .col-auto,
.header__menu .d-flex {
    display: flex !important;
    width: auto !important;
    flex: 1 !important;
    justify-content: center !important;
}

/* TELEFONO */
.header__phone {
    color: var(--text-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

/* USER INFO */
.header__user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header__user .user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* SEARCH MOBILE ICON */
.header__search-mobile {
    display: flex;
    align-items: center;
}

.header__search-mobile a {
    color: var(--text-color) !important;
    display: flex;
    align-items: center;
}

/* MENU MOBILE */
.header__hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.header__hamburger span {
    width: 30px;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.header__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.header__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.header__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* MENU MOBILE */
.header__menu-mobile {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
}

.header__menu-mobile.active {
    max-height: calc(100vh - 90px);
    overflow-y: auto;
}

/* Menu mobile - forza layout verticale */
.header__menu-mobile #top-menu,
.header__menu-mobile .main-menu__tree,
.header__menu-mobile ul,
.header__menu-mobile .top-menu {
    display: flex !important;
    flex-direction: column !important;
    list-style: none;
    padding: 2rem;
    margin: 0;
    align-items: flex-start !important;
    width: 100%;
}

/* Old #mobileMenu styles removed - replaced by Enhanced Menu Styles below */

.header__menu-mobile ul li a:hover,
.header__menu-mobile .top-menu li a:hover,
.header__menu-mobile .main-menu__tree__link:hover {
    color: var(--primary-color) !important;
    background: transparent !important;
}

/* Nascondi dropdown container nel menu mobile */
.header__menu-mobile .menu-container {
    display: none !important;
}

/* BODY quando menu mobile è aperto */
body.menu-open {
    overflow: hidden;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .header__nav {
        gap: 1rem;
        padding: 0 1rem;
    }

    .header__logo span {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .header__logo img {
        width: 50px !important;
        height: 50px !important;
    }

    .header__logo span {
        font-size: 1rem;
    }

    .header__menu-mobile {
        top: 70px;
    }

    .header__menu-mobile.active {
        max-height: calc(100vh - 70px);
    }
}

/* HERO SECTION */
.hero {
    height: var(--section-height);
    min-height: var(--section-height);
    max-height: var(--section-height);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    overflow: hidden;
    padding: var(--section-padding) 5%;
    box-sizing: border-box;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='86.6' viewBox='0 0 100 86.6'%3E%3Cg fill='none' stroke='rgba(255,215,0,0.3)' stroke-width='1.5'%3E%3Cpolygon points='50,0 93.3,25 93.3,75 50,100 6.7,75 6.7,25'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 100px 86.6px;
    animation: honeycombMove 60s linear infinite;
    pointer-events: none;
}

@keyframes honeycombMove {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 150px 0;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
    max-width: 1400px;
    width: 100%;
    max-height: calc(var(--section-height) - var(--section-padding) * 2);
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-color);
    line-height: 1.2;
}

.hero h1 span {
    color: var(--primary-color);
    text-shadow: 0 0 3px rgba(255, 234, 0, 0.5);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 1.5rem;
    opacity: 0.9;
    color: var(--text-color);
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: clamp(0.75rem, 1.5vw, 1rem) clamp(1.5rem, 3vw, 2.5rem);
    background: var(--primary-color);
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    transition: all 0.3s;
    border: 2px solid var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.hero-car {
    position: relative;
    height: clamp(400px, 50vh, 500px) !important;
    max-height: var(--section-height);
}

.hero-3d-toggle {
    display: none;
}

model-viewer {
    width: 100%;
    height: 100%;
    --poster-color: transparent;
}

/*FIX SIZE CUSTOM TEXT ITEMS */
@media(max-width:768px) {

    model-viewer {
        height: 45vh !important;
    }

    /* Sezioni a piena altezza mobile (usando --header-height da JS) */
    .hero,
    .services,
    .gallery,
    .products.home,
    .configurator3d {
        height: var(--section-height) !important;
        min-height: var(--section-height) !important;
        max-height: var(--section-height) !important;
        padding: 1rem 3%;
        justify-content: space-evenly !important;
        align-items: stretch !important;
    }

    /* Keep 3D model contained inside hero to avoid overlap with next section */
    .hero {
        overflow: hidden !important;
    }

    .services,
    .gallery,
    .products.home,
    .configurator3d {
        overflow: hidden !important;
    }

    /* Titolo sezione più compatto */
    .section-title {
        font-size: 1.3rem;
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
        letter-spacing: 1px;
    }

    /* Grid mobile - occupa più spazio verticale */
    .services-grid,
    .products-grid,
    .gallery-grid,
    .configurator3d-grid {
        flex: 1 !important;
        max-height: calc(var(--section-height) - 100px) !important;
        height: auto !important;
        padding: 0 .5rem 10px 0.5rem !important;
        gap: 0.8rem !important;
        align-items: center !important;
        justify-content: flex-start !important;
        scroll-padding-inline: .5rem !important;
    }

    .services-grid .service-card,
    .products-grid .product-card,
    .gallery-grid .gallery-item {
        scroll-snap-align: start !important;
    }

    /* Card mobile - altezza dinamica per riempire lo spazio */
    .service-card {
        width: clamp(240px, 85vw, 350px) !important;
        max-width: 100% !important;
        /* height: calc(var(--section-height) - 120px) !important; */
        max-height: 450px !important;
        min-height: 250px !important;
    }

    .product-card {
        width: clamp(240px, 85vw, 350px) !important;
        max-width: 100% !important;
        /* height: calc(var(--section-height) - 120px) !important; */
        max-height: 450px !important;
        min-height: 250px !important;
    }

    .gallery-item {
        width: clamp(250px, 80vw, 350px) !important;
        height: auto !important;
        max-height: 280px !important;
        min-height: 150px !important;
        max-width: 100% !important;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 0rem;
    }

    .header-bottom .logo,
    .header-bottom .main-menu {
        margin-top: .5rem;
    }

    .header-bottom .main-menu {
        justify-content: end !important;
    }

    .header-bottom .logo img {
        height: 50px !important;
    }

    .hero-text {
        margin-top: 1rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.0rem;
    }

    .hero p {
        font-size: 1.0rem;
    }

    .hero-car {
        height: clamp(260px, 45vh, 360px);
        max-height: 50vh;
        overflow: hidden;
        padding-bottom: 0.5rem;
    }

    .hero.hero-3d-on-demand .hero-car {
        height: clamp(240px, 40vh, 330px);
        max-height: 42vh;
    }

    .hero.hero-3d-on-demand .hero-3d-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 0.75rem;
        padding: 0.55rem 0.95rem;
        border: 1px solid rgba(255, 215, 0, 0.7);
        border-radius: 999px;
        background: rgba(0, 0, 0, 0.55);
        color: #ffd700;
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        line-height: 1;
        cursor: pointer;
    }

    .hero.hero-3d-on-demand .hero-car model-viewer {
        opacity: 0.88;
        transform: scale(0.94);
        transform-origin: center bottom;
        transition: transform 220ms ease, opacity 220ms ease;
    }

    .hero.hero-3d-on-demand.is-3d-active .hero-car {
        max-height: 50vh;
    }

    .hero.hero-3d-on-demand.is-3d-active .hero-car model-viewer {
        opacity: 1;
        transform: scale(1);
    }

    .cta-button {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* FOOTER & CONTACT */
.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
}

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

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

.footer-link {
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s;
    display: block;
}

.footer-link:hover {
    color: var(--primary-color);
    opacity: 1;
    padding-left: 5px;
}

.footer-section p {
    color: var(--text-color);
    opacity: 0.9;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2d2d2d;
    opacity: 0.8;
    color: var(--text-color);
}

.footer-section .contact-info {
    color: var(--text-color);
    opacity: 0.9;
    line-height: 1.8;
}

.page-footer,
.footer,
#footer {
    background-color: var(--secondary-color) !important;
    color: var(--text-color) !important;
}

.moscagarage-footer {
    background: var(--secondary-color);
    padding: 3rem 5%;
    border-top: 2px solid var(--primary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer__block h3,
.footer__block .h3,
.footer__block .title {
    color: var(--primary-color) !important;
}

.footer__block a {
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer__block a:hover {
    color: var(--primary-color) !important;
}

/* CARDSLIDER & SECTION STYLES */

.products {
    padding: var(--section-padding) 5%;
    background: var(--gradient);
    position: relative;
}

.services,
.products.home {
    padding: var(--section-padding) 5%;
    background: var(--secondary-color);
    position: relative;
    min-height: var(--section-height);
    height: var(--section-height);
    max-height: var(--section-height);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
}

.services::before,
.products.home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.08;
    background-size: 100px 86.6px;
    background-repeat: repeat;
    animation: honeycombMove 60s linear infinite;
    pointer-events: none;
}


.gallery,
.configurator3d {
    padding: var(--section-padding) 5%;
    background: var(--gradient);
    position: relative;
    min-height: var(--section-height);
    height: var(--section-height);
    max-height: var(--section-height);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
}

.gallery::before,
.configurator3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='86.6' viewBox='0 0 100 86.6'%3E%3Cg fill='none' stroke='rgba(255,215,0,0.3)' stroke-width='1.5'%3E%3Cpolygon points='50,0 93.3,25 93.3,75 50,100 6.7,75 6.7,25'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 100px 86.6px;
    background-repeat: repeat;
    animation: honeycombMove 60s linear infinite;
    pointer-events: none;
}

.section-title {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    position: relative;
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: clamp(2px, 0.5vw, 4px);
    font-weight: 800;
    z-index: 1;
    color: var(--text-color);
    flex-shrink: 0;
    width: 100%;
    max-width: 1400px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    border-radius: 2px;
    opacity: 0.5;
}

/* --- CARDSLIDER GRID & CARD STYLES --- */
.services-grid,
.products-grid,
.configurator3d-grid,
.gallery-grid {
    display: flex;
    gap: clamp(1rem, 2vw, 1.5rem);
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 1rem 15px 1rem;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    flex: 1;
    align-items: center;
    max-height: calc(var(--section-height) - 100px);
    min-height: 0;
}

.services-grid::-webkit-scrollbar,
.products-grid::-webkit-scrollbar,
.gallery-grid::-webkit-scrollbar {
    height: 0px;
}

.services-grid::-webkit-scrollbar-track,
.products-grid::-webkit-scrollbar-track,
.gallery-grid::-webkit-scrollbar-track {
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
}

.services-grid::-webkit-scrollbar-thumb,
.products-grid::-webkit-scrollbar-thumb,
.gallery-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 217, 0, 0.5);
    ;
    border-radius: 10px;
}

.services-grid::-webkit-scrollbar-thumb:hover,
.products-grid::-webkit-scrollbar-thumb:hover,
.gallery-grid::-webkit-scrollbar-thumb:hover {
    background: #ffea00;
}

.service-card,
.product-card,
.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.service-card {
    width: clamp(280px, 30vw, 380px);
    height: calc(var(--section-height) - 200px);
    max-height: 480px;
    min-height: 280px;
    flex-shrink: 0;
    scroll-snap-align: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 60%, rgba(0, 0, 0, 0.95) 100%);
    z-index: 1;
    transition: all 0.4s ease;
}

.service-card:hover::before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.5) 60%, rgba(26, 26, 26, 0.98) 100%);
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px 0 rgba(255, 215, 0, 0.5);
}

.service-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-bg {
    transform: scale(1.15);
}

.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 2;
    text-align: left;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.service-card p {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 0.95rem;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.product-card {
    width: clamp(260px, 25vw, 320px);
    height: calc(var(--section-height) - 200px);
    max-height: 500px;
    min-height: 320px;
    flex-shrink: 0;
    background: var(--gradient);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 215, 0, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    scroll-snap-align: center;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 215, 0, 0.05), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

.product-image {
    width: 100%;
    height: 45%;
    min-height: 120px;
    max-height: 220px;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.product-category {
    font-size: 0.75rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.product-code {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.8rem;
}

.product-info h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    color: var(--text-color);
    font-weight: 700;
}

.product-price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-top: auto;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.product-button {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    display: block;
    text-align: center;
    flex-shrink: 0;
}

.product-button:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.gallery-item {
    width: clamp(300px, 35vw, 450px);
    flex-shrink: 0;
    position: relative;
    height: calc(var(--section-height) - 220px);
    max-height: 330px;
    min-height: 180px;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    scroll-snap-align: center;
}

.gallery-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.services::-webkit-scrollbar,
.products::-webkit-scrollbar,
.gallery::-webkit-scrollbar {
    display: none;
}

#content-wrapper,
#content-wrapper,
#content-wrapper .page-footer {
    margin: 0;
    padding: 0
}

/* ========================================
   WISHLIST SORT DROPDOWN FIX
   ======================================== */
.wishlist-products-container .products-sort-order.dropdown {
    position: relative;
}

.wishlist-products-container .products-sort-order .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 12rem;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
}

.wishlist-products-container .products-sort-order .dropdown-menu.show {
    display: block;
}

.wishlist-products-container .products-sort-order .dropdown-menu .select-list {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.wishlist-products-container .products-sort-order .dropdown-menu .select-list:hover {
    background-color: #f8f9fa;
    color: #1a1a1a;
}

.wishlist-products-container .products-sort-order .btn-unstyle.select-title {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.wishlist-products-container .products-sort-order .btn-unstyle.select-title i {
    transition: transform 0.2s ease;
}

.wishlist-products-container .products-sort-order .dropdown-menu.show+.btn-unstyle.select-title i,
.wishlist-products-container .products-sort-order.open .btn-unstyle.select-title i {
    transform: rotate(180deg);
}

/* NAVBAR - mobile responsive (hamburger) */
@media (max-width: 768px) {
    .header__hamburger {
        display: flex;
    }

    /* off-canvas menu */
    .header__menu {
        position: fixed;
        top: 72px;
        /* header height approx */
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 1.5rem;
        gap: 1.25rem;
        transition: left 0.28s ease-in-out;
        overflow-y: auto;
        z-index: 1500;
        align-items: stretch;
    }

    .header__menu.active {
        left: 0;
    }

    .header__menu li {
        text-align: center;
        font-size: 1.15rem;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }

    .header__menu li a {
        display: block;
        width: 100%;
    }

    .header__phone {
        display: none !important;
    }

    .header__logo span {
        font-size: 1.15rem !important;
    }
}

@media (max-width: 768px) {

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem
    }

    .section-title {
        font-size: 1.8rem;
    }

    .service-card {
        width: 280px;
        height: stretch;
    }

    .product-card {
        width: 280px;
        height: stretch;
    }

    .gallery-item {
        width: 300px;
        height: 250px;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .service-card {
        width: 350px;
        height: 450px;
    }

    .product-card {
        width: 320px;
        height: 480px;
    }

    .gallery-item {
        width: 400px;
        height: 280px;
    }
}

/* SEARCH WIDGET */
#search_widget input {
    color: var(--text-color) !important;
    background: #000000 !important;
    /* Explicitly black as requested */
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    /* Subtle border by default */
    transition: border-color 0.3s ease;
}

#search_widget input::placeholder {
    color: var(--text-color) !important;
    opacity: 0.7;
}

#search_widget input:focus {
    box-shadow: none !important;
    outline: none !important;
    border-color: var(--primary-color) !important;
    /* Gold border on focus */
}

#search_widget .search {
    color: var(--text-color) !important;
}

#search_widget .clear {
    color: var(--primary-color) !important;
}

/* SEARCH RESULTS DROPDOWN */
#search_widget .search-widgets__dropdown {
    background: #1a1a1a !important;
    border: 1px solid var(--primary-color) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.9) !important;
    padding: 0.5rem 0 !important;
    margin-top: 10px !important;
    border-radius: 15px !important;
    z-index: 10000 !important;
    overflow: hidden;
    /* Ensures content respects rounded corners */
}

#search_widget .search-result {
    padding: 0 !important;
}

#search_widget .search-result__link {
    display: flex !important;
    align-items: center !important;
    padding: 0.75rem 1rem !important;
    color: var(--text-color) !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#search_widget .search-result:last-child .search-result__link {
    border-bottom: none !important;
}

#search_widget .search-result__link:hover {
    background: rgba(212, 175, 55, 0.15) !important;
    color: var(--primary-color) !important;
    padding-left: 1.25rem !important;
    /* Slight movement effect */
}

#search_widget .search-result__image {
    width: 50px !important;
    height: 50px !important;
    object-fit: contain !important;
    margin-right: 1rem !important;
    border-radius: 4px !important;
    background: #fff;
    /* White bg for product images to ensure visibility */
    padding: 2px;
}

#search_widget .search-result__name {
    margin: 0 !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    line-height: 1.2;
}

/* Style native search cancel button (Gold X) */
#search_widget input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='gold'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E") no-repeat center center;
    background-size: contain;
    cursor: pointer;
    margin-left: 5px;
}

/* Hide other native search decorations */
#search_widget input[type="search"]::-webkit-search-decoration,
#search_widget input[type="search"]::-webkit-search-results-button,
#search_widget input[type="search"]::-webkit-search-results-decoration {
    display: none;
}

/* =========================================
   CONFIGURATORE 3D
========================================= */
.section-configuratore,
#configuratore-3d-container {
    height: auto !important;
    min-height: 100vh;
    overflow: visible !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.configurator3d-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(250px, 1fr) minmax(400px, 1.8fr);
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1360px;
    gap: clamp(1.5rem, 4vw, 3rem);
    margin: 0 auto;
    height: auto;
    min-height: fit-content;
    scroll-snap-align: center;
    overflow: visible;
}

.configurator3d-image {
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    object-position: center;
    background: transparent;
    mix-blend-mode: screen;
    isolation: isolate;
}

.configurator3d-content {
    position: relative;
    width: 100%;
    max-width: 850px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.2rem;
}

.configurator3d-eyebrow {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--bs-warning, #ffd700);
    line-height: 1.2;
}

.configurator3d-content h3 {
    margin: 0;
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    text-wrap: balance;
    color: #ffffff;
}

.configurator3d-cta-line {
    margin: 0;
    max-width: 45ch;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.configurator3d-cta-line-primary {
    display: block;
    font-size: clamp(1.15rem, 1.45vw, 1.4rem);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.configurator3d-cta-line-secondary {
    display: block;
    font-size: clamp(1rem, 1.12vw, 1.1rem);
    font-weight: 400;
}

.configurator3d-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    padding: clamp(0.75rem, 1.5vw, 1rem) clamp(1.5rem, 3vw, 2.5rem);
    background: var(--primary-color, #ffd700);
    color: #1a1a1a;
    border: 2px solid var(--primary-color, #ffd700);
    border-radius: 50px;
    font-weight: 700;
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Curva di animazione più naturale */
}

/* Feedback visivo al passaggio del mouse */
.configurator3d-button:hover {
    background: transparent;
    color: var(--primary-color, #ffd700);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(255, 215, 0, 0.2);
}

.configurator3d-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}


.configurator3d-button:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
    box-shadow: none;
}

@media (max-width: 900px) {

    .configurator3d {
        height: auto !important;
        min-height: var(--section-height) !important;
        max-height: none !important;
        overflow: visible !important;
        justify-content: flex-start !important;
    }

    .configurator3d-grid {
        height: auto !important;
        max-height: none !important;
        overflow-y: visible !important;
        overflow-x: visible !important;
    }

    .configurator3d-card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;

        height: auto !important;
        min-height: min-content !important;
        overflow: visible;

        padding: 2rem 1rem 2.5rem;
        gap: 1.25rem;
    }

    .configurator3d-image {
        width: 100% !important;
        max-width: 320px !important;
        height: auto !important;

        aspect-ratio: auto !important;
        max-height: 42vh !important;

        object-fit: contain !important;
        margin: 0 auto !important;
        display: block !important;
        mix-blend-mode: normal !important;
    }

    .configurator3d-content {
        align-items: center;
        max-width: 100%;
        padding-bottom: 0.75rem;
        gap: 0.85rem;
    }

    .configurator3d-eyebrow {
        font-size: 0.72rem;
        letter-spacing: 0.12em;
    }

    .configurator3d-content h3 {
        font-size: clamp(1.45rem, 7vw, 2rem);
        line-height: 1.12;
    }

    .configurator3d-cta-line-primary {
        font-size: clamp(0.95rem, 4.2vw, 1.08rem);
    }

    .configurator3d-cta-line-secondary {
        font-size: clamp(0.88rem, 3.8vw, 1rem);
    }

    .configurator3d-cta-line {
        max-width: 100%;
        line-height: 1.45;
    }

    .configurator3d-button {
        width: 100%;
        max-width: 350px;
    }
    }

    /* Product listing: align card heights on larger screens */
    @media (min-width: 768px) {
        .products.row,
        #js-product-list .products {
            align-items: stretch;
        }

        .products.row > article.product-miniature,
        #js-product-list .products > article.product-miniature {
            display: flex;
            align-self: stretch;
            height: 100%;
            margin-bottom: 0;
        }

        .products.row > article.product-miniature > .card,
        #js-product-list .products > article.product-miniature > .card {
            display: flex;
            flex-direction: column;
            flex: 1 1 auto;
            height: 100%;
            width: 100%;
        }

        .products.row > article.product-miniature .product-miniature__infos,
        #js-product-list .products > article.product-miniature .product-miniature__infos {
            display: flex;
            flex: 1 1 auto;
            flex-direction: column;
            min-height: 0;
        }

        .products.row > article.product-miniature .product-miniature__infos__top,
        #js-product-list .products > article.product-miniature .product-miniature__infos__top {
            display: block;
            flex: 0 0 2.6em;
            height: 2.6em;
            max-height: 2.6em;
            overflow: hidden;
            margin-top: 0 !important;
        }

        .products.row > article.product-miniature .product-miniature__infos__bottom,
        #js-product-list .products > article.product-miniature .product-miniature__infos__bottom {
            margin-top: auto !important;
        }

        .products.row > article.product-miniature .product-miniature__title,
        #js-product-list .products > article.product-miniature .product-miniature__title {
            display: block;
            overflow: hidden;
            line-height: 1.3;
            height: 2.6em;
            max-height: 2.6em;
        }

        .products.row > article.product-miniature .product-miniature__infos__top > a,
        #js-product-list .products > article.product-miniature .product-miniature__infos__top > a {
            display: block;
        }
    }