/*
Theme Name: CheckpointGamers
Author: CheckpointGamers
Description: Tema personalizzato per lo store - Versione Light Mode Uniformata
Version: 2.1
*/

/* --- RESET LUMINOSO GLOBALE --- */
body {
    background: #f8fafc;
    color: #1e293b;
    padding-top: 80px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

a {
    text-decoration: none;
    color: #2563eb;
    transition: color 0.3s ease;
}

a:hover {
    color: #1d4ed8;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

section h2, .section h2 {
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 15px;
}

.section p, .section li {
    line-height: 1.6;
    color: #475569;
}

/* --- BARRA DI NAVIGAZIONE SUPERIORE (HEADER) --- */
.navbar-custom {
    background-color: #ffffff !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
    padding: 15px 0;
}

.navbar-custom .nav-link {
    color: #334155 !important;
    font-weight: 600;
    margin-left: 15px;
    transition: 0.3s;
}

.navbar-custom .nav-link:hover {
    color: #2563eb !important;
}

.navbar-custom .navbar-brand img {
    transition: 0.3s;
}

.navbar-custom .navbar-brand img:hover {
    transform: scale(1.05);
}

/* --- MENU SHOP DROPDOWN HOVER & CATEGORIE AD ALBERO --- */
.dropdown-hover:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
}

.dropdown-menu .menu-item-has-children {
    position: relative;
}

.dropdown-menu .menu-item-has-children > .sub-menu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    margin-top: -8px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 0.375rem;
    padding: 8px 0;
    list-style: none;
    min-width: 180px;
    z-index: 1000;
}

.dropdown-menu .menu-item-has-children:hover > .sub-menu {
    display: block;
}

.dropdown-menu a, 
.dropdown-menu .sub-menu a {
    display: block;
    padding: 8px 16px;
    color: #212529;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.dropdown-menu a:hover, 
.dropdown-menu .sub-menu a:hover {
    background-color: #f8f9fa;
    color: #2563eb;
}

.dropdown-menu .menu-item-has-children > a::after {
    content: " ›";
    float: right;
    margin-left: 10px;
    font-weight: bold;
}

/* --- HERO BANNER --- */
.hero {
    background-image: url("hero.jpg");
    background-size: cover;
    background-position: center;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(30, 41, 59, 0.6) 100%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 40px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 12px;
}

.hero-sub {
    font-size: 18px;
    color: #e2e8f0 !important;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto 24px auto;
    text-align: center;
}

.hero .btn-light, .hero button, .hero a.button-hero {
    background: #ffffff;
    color: #0f172a !important;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero .btn-light:hover, .hero button:hover, .hero a.button-hero:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* --- SEZIONI E CARD GENERALI --- */
.card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.section-light, .bg-light {
    background: #ffffff !important;
    color: #1e293b !important;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 25px;
}

.section-light h2, .bg-light h2 {
    color: #2563eb !important;
}

/* --- GRID PRODOTTI WOOCOMMERCE --- */
.woocommerce ul.products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.woocommerce ul.products li.product {
    width: calc(25% - 20px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.01);
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: #cbd5e1;
}

.woocommerce ul.products li.product img {
    border-radius: 8px;
    margin-bottom: 10px;
}

.woocommerce ul.products li.product h2 {
    font-size: 16px;
    color: #1e293b;
    min-height: 40px;
    font-weight: 600;
}

.price, .woocommerce ul.products li.product .price {
    color: #2563eb;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.woocommerce ul.products li.product .button {
    background: #2563eb;
    color: #ffffff;
    border-radius: 6px;
    padding: 8px 20px;
    font-weight: bold;
    display: inline-block;
    transition: 0.2s;
}

.woocommerce ul.products li.product .button:hover {
    background: #1d4ed8;
}

/* --- BADGE DISPONIBILITÀ --- */
.stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
}

.stock-badge.available {
    background: #dcfce7;
    color: #166534;
}

.stock-badge.last {
    background: #fef9c3;
    color: #854d0e;
}

.stock-warning {
    color: #ef4444;
    font-weight: bold;
    font-size: 13px;
    margin-top: 5px;
}

/* --- SCHEDA PRODOTTO SINGOLO CUSTOM --- */
.product-single-container {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    border: 1px solid #e2e8f0;
}

.custom-gallery-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.main-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    cursor: zoom-in;
}

.main-image-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.main-image-container:hover img {
    transform: scale(1.2);
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #1e293b;
    transition: 0.2s;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.gallery-arrow:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.arrow-prev { left: 15px; }
.arrow-next { right: 15px; }

.custom-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    list-style: none !important;
    padding: 0 !important;
}

.thumb-item {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    border: 2px solid #e2e8f0;
    overflow: hidden;
    cursor: pointer;
    transition: 0.2s;
}

.thumb-item.active, .thumb-item:hover {
    border-color: #2563eb;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-meta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.product-meta-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 20px;
}

.cart .single_add_to_cart_button {
    background-color: #2563eb !important;
    color: #ffffff !important;
    font-weight: bold;
    padding: 12px 35px;
    border: none !important;
    border-radius: 6px;
    text-transform: uppercase;
    transition: 0.3s;
}

.cart .single_add_to_cart_button:hover {
    background-color: #1d4ed8 !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.added-to-cart {
    background: #e2e8f0 !important;
    color: #475569 !important;
    pointer-events: none;
    opacity: 0.8;
    border-radius: 6px;
}

.btn-share-product {
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.btn-share-product:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* --- SPEDIZIONI E PAGAMENTI --- */
.shipping-box {
    background: #ffffff;
    padding: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
    height: 100%;
}

.shipping-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.shipping-icon {
    font-size: 40px;
    color: #2563eb;
    margin-bottom: 15px;
}

.free {
    color: #2563eb;
    font-weight: bold;
    font-size: 20px;
}

.note-box {
    background: #f1f5f9;
    padding: 25px;
    border-radius: 12px;
    margin-top: 40px;
    border-left: 5px solid #2563eb;
    font-size: 18px;
    color: #334155;
}

.note-box i {
    font-size: 28px;
    color: #2563eb;
    margin-right: 10px;
}

/* --- BOTTONI CONTATTO E SOCIAL --- */
.btn-success, .btn-warning {
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: bold;
    transition: 0.3s;
    border: none;
}
.btn-success { background: #22c55e; color: white; }
.btn-success:hover { background: #16a34a; transform: scale(1.02); color: white; }
.btn-warning { background: #eab308; color: white; }
.btn-warning:hover { background: #ca8a04; transform: scale(1.02); color: white; }

.contact-btn {
    font-size: 20px;
    padding: 15px;
    font-weight: 600;
    border-radius: 10px;
    transition: 0.3s;
    width: 100%;
    max-width: 350px;
    text-align: center;
}

.contact-img {
    max-width: 90%;
}

.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    font-size: 20px;
    margin: 0 10px;
    transition: 0.3s;
}

.social-icon:hover {
    background: #2563eb;
    color: white;
}

/* --- MINI CARRELLO LATERALE --- */
.mini-cart {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100%;
    background: #ffffff;
    color: #1e293b;
    z-index: 9999;
    transition: 0.3s;
    padding: 20px;
    overflow-y: auto;
    box-shadow: -5px 0 25px rgba(0,0,0,0.05);
}

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

.mini-cart-header {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

#mini-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    display: none;
    z-index: 9998;
}

#mini-cart-overlay.active {
    display: block;
}

.cart-qty-badge {
    margin-top: 8px;
    font-size: 13px;
    font-weight: bold;
    color: #2563eb;
}

/* --- COOKIE BANNER CENTRALE E OVERLAY --- */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.cookie-modal {
    background-color: #ffffff;
    max-width: 500px;
    width: 100%;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: cookiePopIn 0.25s ease-out;
}

@keyframes cookiePopIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- BANNER PROMOZIONALE ANIMATO --- */
.banner {
    background: #ef4444;
    padding: 12px 20px;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    width: 60%;
    margin: 40px auto;
    border-radius: 10px;
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 4px 10px rgba(239, 68, 68, 0.1); }
    to { box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3); }
}

.adding-to-cart {
    animation: popCart 0.4s ease;
}

@keyframes popCart {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* --- HEADER STILE TOKYO GAME STORY --- */

.header-tgs-style {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Top Bar Nera e Cerca */
.top-bar {
    background-color: #0d0d0d !important;
}

.max-w-600 {
    max-width: 650px;
}

.search-form-custom {
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
    border: 2px solid #ff8c00;
}

.search-cat-select {
    border: none;
    background: #f1f5f9;
    padding: 8px 12px;
    font-weight: 600;
    color: #334155;
    border-right: 1px solid #cbd5e1;
    outline: none;
}

.search-input {
    border: none !important;
    box-shadow: none !important;
    padding: 8px 15px;
}

.btn-search-orange {
    background: linear-gradient(135deg, #ff8c00, #e60000);
    color: #ffffff;
    border: none;
    padding: 0 20px;
    transition: 0.2s;
}

.btn-search-orange:hover {
    background: linear-gradient(135deg, #e60000, #ff8c00);
    color: #ffffff;
}

/* Barra Menu Sfumata */
.main-nav-gradient {
    background: linear-gradient(90deg, #cc0000 0%, #ff6600 50%, #ffcc00 100%);
    padding: 6px 0;
}

.nav-gradient-menu {
    list-style: none !important;
}

.nav-gradient-menu > li {
    position: relative;
}

.nav-gradient-menu > li > a {
    color: #ffffff !important;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 15px;
    padding: 10px 18px;
    display: block;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.nav-gradient-menu > li > a:hover {
    color: #000000 !important;
    text-shadow: none;
}

/* Indicatore freccia per menu con sottolivelli */
.nav-gradient-menu .menu-item-has-children > a::after {
    content: " ▾";
    font-size: 12px;
}

/* --- MENU DROPDOWN MULTI-LIVELLO --- */
.nav-gradient-menu .sub-menu {
    display: none;
    position: absolute;
    background: #0d0d0d;
    min-width: 200px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.8);
    list-style: none !important;
    padding: 0;
    margin: 0;
    z-index: 9999;
}

/* 1° LIVELLO (Scende verso il basso) */
.nav-gradient-menu > li > .sub-menu {
    top: 100%;
    left: 0;
    border-top: 3px solid #ff8c00;
}

/* 2° LIVELLO E SUCCESSIVI (Apertura a destra) */
.nav-gradient-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    border-top: none;
    border-left: 3px solid #ff8c00;
    margin-left: 0;
}

/* APERTURA AL PASSAGGIO MOUSE / FOCUS */
.nav-gradient-menu li:hover > .sub-menu,
.nav-gradient-menu li:focus-within > .sub-menu {
    display: block !important;
    opacity: 1;
    visibility: visible;
}

/* FIX MENU STATO ATTIVO WORDPRESS */
.nav-gradient-menu .current-menu-item > .sub-menu,
.nav-gradient-menu .current-menu-parent > .sub-menu,
.nav-gradient-menu .current-menu-ancestor > .sub-menu,
.nav-gradient-menu .current_page_parent > .sub-menu {
    display: none !important;
}

.nav-gradient-menu .sub-menu li {
    width: 100%;
    border-bottom: 1px solid #222;
}

.nav-gradient-menu .sub-menu a {
    color: #ffffff !important;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.15s ease-in-out;
}

.nav-gradient-menu .sub-menu a:hover {
    background-color: #ff8c00;
    color: #000000 !important;
}

.nav-gradient-menu .sub-menu .menu-item-has-children > a::after {
    content: "▶";
    font-size: 9px;
    color: #ff8c00;
    margin-left: 10px;
}

.nav-gradient-menu .sub-menu .menu-item-has-children:hover > a::after {
    color: #000000;
}

/* --- TICKER MATRIX STYLE --- */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

.info-ticker-matrix {
    background-color: #050b05 !important;
    font-family: 'VT323', monospace;
    letter-spacing: 1.5px;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.ticker-wrapper {
    display: flex;
    width: max-content;
}

.ticker-content {
    display: flex;
    align-items: center;
    gap: 50px;
    padding-right: 50px;
    animation: ticker-scroll 20s linear infinite;
}

.ticker-wrapper:hover .ticker-content {
    animation-play-state: paused;
}

.info-ticker-matrix .ticker-content span,
.info-ticker-matrix .ticker-content i {
    color: #00ff66 !important;
    font-size: 19px;
    text-shadow: 0 0 6px rgba(0, 255, 102, 0.7);
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* --- MEDIA QUERIES E RESPONSIVE MOBILE (IN FONDO PER PRECEDENZA) --- */

@media (max-width: 991px) {
    .main-nav-gradient {
        padding: 4px 0;
    }

    .nav-gradient-menu {
        flex-direction: column;
        width: 100%;
        gap: 5px;
    }

    .nav-gradient-menu > li > a {
        font-size: 13px;
        padding: 6px 10px;
    }

    /* Sottomenu verticali su Mobile */
    .nav-gradient-menu .sub-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        box-shadow: none;
    }

    .nav-gradient-menu .sub-menu .sub-menu {
        position: static !important;
        transform: none !important;
        border-left: 2px solid #ff8c00;
        margin-left: 15px;
    }

    .woocommerce ul.products li.product {
        width: calc(50% - 20px);
    }
}

@media (max-width: 767px) {
    .hero {
        height: auto;
        padding: 30px 0;
    }

    .hero h1, .hero-title, .hero-content h1 {
        font-size: clamp(1.8rem, 5vw, 3rem) !important;
        word-break: break-word;
        overflow-wrap: break-word;
        line-height: 1.2;
    }

    .hero-sub {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 576px) {
    .woocommerce ul.products li.product {
        width: 100%;
    }
    .banner {
        width: 90%;
    }
}

/* --- POPUP TOAST AGGIUNTA CARRELLO --- */
#cg-cart-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #0f172a;
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-left: 4px solid #22c55e;
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#cg-cart-toast i {
    color: #22c55e;
    font-size: 18px;
}

.cg-toast-hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.cg-toast-show {
    opacity: 1;
    transform: translateY(0);
}

/* --- FIX ALLINEAMENTO DEFINITIVO 4 COLONNE --- */

/* 1. Reset contenitore lista per azzerare il float/clearfix di WooCommerce */
.cg-homepage-products ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    width: 100% !important;
}

.cg-homepage-products ul.products::before,
.cg-homepage-products ul.products::after {
    display: none !important;
    content: none !important;
}

/* 2. Forzatura 4 colonne su Desktop */
@media (min-width: 992px) {
    .cg-homepage-products ul.products {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* 3. Azzera la larghezza in % di WooCommerce che spinge il 4° elemento giù */
.cg-homepage-products ul.products li.product {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

/* 4. Immagine proporzionata */
.cg-homepage-products ul.products li.product img.attachment-woocommerce_thumbnail,
.cg-homepage-products ul.products li.product img.wp-post-image {
    width: 100% !important;
    height: 160px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

/* 5. Allineamento bottone in basso */
.cg-homepage-products ul.products li.product .button,
.cg-homepage-products ul.products li.product .add_to_cart_button {
    margin-top: auto !important;
}

/* --- FIX DEFINITIVO ALLINEAMENTO E TOUCH MOBILE --- */

#mobileMenuOffcanvas {
    background-color: #111111 !important;
    width: 280px !important;
    z-index: 999999 !important;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}

#mobileMenuOffcanvas .mobile-offcanvas-menu,
#mobileMenuOffcanvas ul.sub-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Flexbox sul tag <li> per spingere la freccia a destra */
#mobileMenuOffcanvas .mobile-offcanvas-menu li {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 1° LIVELLO */
#mobileMenuOffcanvas .mobile-offcanvas-menu > li {
    border-bottom: 1px solid #222222 !important;
}

#mobileMenuOffcanvas .mobile-offcanvas-menu > li > a {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    padding: 14px 10px !important;
    text-decoration: none !important;
}

/* BOTTONE FRECCIA SPINTO A DESTRA CON MARGIN-LEFT AUTO */
#mobileMenuOffcanvas .menu-arrow-btn,
#mobileMenuOffcanvas .menu-arrow {
    background: transparent !important;
    border: none !important;
    color: #ffa500 !important;
    padding: 14px 15px !important;
    font-size: 0.75rem !important;
    cursor: pointer !important;
    margin-left: auto !important; /* Spinge la freccia a filo destro */
    transition: transform 0.2s ease !important;
    outline: none !important;
    -webkit-tap-highlight-color: rgba(255, 165, 0, 0.2) !important; /* Visual feedback su touch */
    touch-action: manipulation !important;
}

#mobileMenuOffcanvas .menu-arrow-btn.rotated,
#mobileMenuOffcanvas .menu-arrow.rotated {
    transform: rotate(180deg) !important;
}

/* SOTTOMENU */
#mobileMenuOffcanvas ul.sub-menu {
    display: none !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    background-color: #161616 !important;
    box-sizing: border-box !important;
}

#mobileMenuOffcanvas ul.sub-menu.is-open {
    display: block !important;
}

/* 2° LIVELLO */
#mobileMenuOffcanvas .mobile-offcanvas-menu > li > ul.sub-menu {
    border-left: 3px solid #ff4500 !important;
    padding-left: 8px !important;
}

#mobileMenuOffcanvas .mobile-offcanvas-menu > li > ul.sub-menu > li {
    border-bottom: 1px solid #252525 !important;
}

#mobileMenuOffcanvas .mobile-offcanvas-menu > li > ul.sub-menu > li > a {
    color: #eeeeee !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    padding: 11px 8px !important;
    text-decoration: none !important;
}

/* 3° LIVELLO */
#mobileMenuOffcanvas ul.sub-menu ul.sub-menu {
    background-color: #1f1f1f !important;
    border-left: 3px solid #ffa500 !important;
    padding-left: 8px !important;
}

#mobileMenuOffcanvas ul.sub-menu ul.sub-menu > li {
    border-bottom: 1px solid #2a2a2a !important;
}

#mobileMenuOffcanvas ul.sub-menu ul.sub-menu > li > a {
    color: #cccccc !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    padding: 9px 8px !important;
    text-decoration: none !important;
}

/* Blocco definitivo click su prodotti già a carrello */
a.button.added-to-cart.disabled,
.add_to_cart_button.disabled {
    opacity: 0.65 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}
