/*
Theme Name: OptimizedCommerce
Theme URI: https://yoursite.com
Author: Your Name
Author URI: https://yoursite.com
Description: Tema WooCommerce altamente ottimizzato per performance con Redis, W3 Total Cache e Cloudflare Pro. Design moderno e professionale con colori brand #0BB38C, bianco e nero.
Version: 1.7.9
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: optimizedcommerce
Tags: e-commerce, woocommerce, performance, redis, modern, professional
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/*
===========================================
VARIABLES CSS
===========================================
*/
:root {
    /* ===================================
       PRIMARY COLORS - Teal Tech
       =================================== */
    --primary-color: #0BB38C;
    --primary-color-light: #1DD9A8;
    --primary-color-dark: #078768;
    --primary-color-lighter: #E6F9F4;
    --primary-color-rgb: 11, 179, 140;
    --primary-color-hover: #078768;
    --primary-color-active: #056B51;

    /* ===================================
       SECONDARY COLORS - Navy Professional
       =================================== */
    --secondary-color: #1E293B;
    --secondary-color-light: #334155;
    --secondary-color-dark: #0F172A;
    --secondary-color-rgb: 30, 41, 59;

    /* ===================================
       ACCENT COLORS
       =================================== */
    --accent-blue: #3B82F6;
    --accent-blue-light: #60A5FA;
    --accent-blue-dark: #2563EB;
    --accent-blue-rgb: 59, 130, 246;

    --accent-amber: #F59E0B;
    --accent-amber-light: #FBBF24;
    --accent-amber-dark: #D97706;
    --accent-amber-rgb: 245, 158, 11;

    /* ===================================
       FUNCTIONAL COLORS - Semantic
       =================================== */
    --success-color: #10B981;
    --success-color-light: #34D399;
    --success-color-dark: #059669;
    --success-bg: #D1FAE5;

    --warning-color: #F59E0B;
    --warning-color-light: #FBBF24;
    --warning-color-dark: #D97706;
    --warning-bg: #FEF3C7;

    --error-color: #EF4444;
    --error-color-light: #F87171;
    --error-color-dark: #DC2626;
    --error-bg: #FEE2E2;

    --info-color: #3B82F6;
    --info-color-light: #60A5FA;
    --info-color-dark: #2563EB;
    --info-bg: #DBEAFE;

    /* ===================================
       TEXT COLORS - Typography
       =================================== */
    --text-color: #0F172A;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-tertiary: #94A3B8;
    --text-light: #94A3B8;
    --text-disabled: #CBD5E1;
    --text-on-primary: #FFFFFF;
    --text-on-dark: #F8FAFC;
    --text-link: #3B82F6;
    --text-link-hover: #2563EB;

    /* ===================================
       BACKGROUND COLORS - Surfaces
       =================================== */
    --background-color: #FFFFFF;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #F1F5F9;
    --bg-dark: #1E293B;
    --bg-darker: #0F172A;

    /* Surface elevations */
    --surface-0: #FFFFFF;
    --surface-1: #FFFFFF;
    --surface-2: #F8FAFC;
    --surface-3: #F1F5F9;

    /* ===================================
       BORDER COLORS
       =================================== */
    --border-color: #E2E8F0;
    --border-light: #E2E8F0;
    --border-medium: #CBD5E1;
    --border-dark: #94A3B8;
    --border-focus: #0BB38C;
    --border-error: #EF4444;

    /* ===================================
       BADGE COLORS - Product Labels
       =================================== */
    --badge-sale-start: #F59E0B;
    --badge-sale-end: #DC2626;
    --badge-stock: #0BB38C;
    --badge-out-of-stock: #71717A;
    --badge-new: #3B82F6;
    --badge-original: #1E293B;
    --badge-original-accent: #F59E0B;

    /* ===================================
       GRADIENTS
       =================================== */
    --gradient-primary: linear-gradient(135deg, #0BB38C 0%, #078768 100%);
    --gradient-secondary: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
    --gradient-sale: linear-gradient(135deg, #F59E0B 0%, #DC2626 100%);
    --gradient-premium: linear-gradient(135deg, #1E293B 0%, #334155 100%);

    /* ===================================
       TYPOGRAPHY
       =================================== */
    --font-primary: 'Zalando Sans SemiExpanded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-size-xs: 0.75rem;     /* 12px */
    --font-size-sm: 0.875rem;    /* 14px */
    --font-size-base: 1rem;      /* 16px */
    --font-size-lg: 1.125rem;    /* 18px */
    --font-size-xl: 1.25rem;     /* 20px */
    --font-size-2xl: 1.5rem;     /* 24px */

    /* ===================================
       SPACING
       =================================== */
    --space-xs: 0.25rem;    /* 4px */
    --space-sm: 0.5rem;     /* 8px */
    --space-md: 0.75rem;    /* 12px */
    --space-lg: 1rem;       /* 16px */
    --space-xl: 1.5rem;     /* 24px */
    --space-2xl: 2rem;      /* 32px */

    /* ===================================
       BORDER RADIUS
       =================================== */
    --border-radius: 8px;
    --border-radius-sm: 6px;
    --border-radius-md: 10px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --border-radius-full: 9999px;

    /* ===================================
       SHADOWS
       =================================== */
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

    /* Shadow colored (brand) */
    --shadow-primary: 0 4px 14px rgba(11, 179, 140, 0.25);
    --shadow-primary-hover: 0 6px 20px rgba(11, 179, 140, 0.35);

    /* ===================================
       TRANSITIONS
       =================================== */
    --transition: all 0.3s ease;
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

    /* ===================================
       INTERACTIVE STATES
       =================================== */
    --state-hover-opacity: 0.9;
    --state-active-opacity: 0.8;
    --state-disabled-opacity: 0.5;

    /* Focus ring */
    --focus-ring: 0 0 0 3px rgba(11, 179, 140, 0.2);
    --focus-ring-error: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/*
===========================================
RESET E BASE
===========================================
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* overflow-x: hidden; RIMOSSO: bloccava position: sticky */
    width: 100%;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    /* overflow-x: hidden; RIMOSSO: bloccava position: sticky */
    width: 100%;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Previeni overflow di elementi embeddati */
iframe,
embed,
object,
video {
    max-width: 100%;
}

/* Previeni overflow di tabelle */
table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* Previeni overflow di pre e code */
pre {
    max-width: 100%;
    overflow-x: auto;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/*
===========================================
LAYOUT
===========================================
*/
.container {
    max-width: min(1400px, 100%);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.site-header {
    background: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--box-shadow);
    pointer-events: auto; /* Assicura che l'header sia sempre interagibile */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.site-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

/*
===========================================
NAVIGATION
===========================================
*/
.main-navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
}

.main-navigation a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-navigation a:hover,
.main-navigation a.current {
    color: var(--primary-color);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation a.current::after {
    width: 100%;
}

/*
===========================================
HEADER CART & ACCOUNT
===========================================
*/
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1001; /* Assicura che sia sopra altri elementi */
}

.header-cart,
.header-account {
    position: relative;
    cursor: pointer;
    pointer-events: auto; /* Assicura che siano sempre cliccabili */
    z-index: 1001;
}

.header-cart a,
.header-account a,
.header-cart button,
.header-account button {
    pointer-events: auto; /* Assicura che i link e i button siano cliccabili */
    position: relative;
    z-index: 1;
}

.header-cart svg,
.header-account svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-color);
    transition: var(--transition);
}

.header-cart:hover svg,
.header-account:hover svg {
    stroke: var(--primary-color);
}

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

/*
===========================================
BUTTONS
===========================================
*/
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
}

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

.btn-primary:hover {
    background: #099974;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

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

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

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/*
===========================================
SHOP CONTAINER & HEADER
===========================================
*/
.shop-container {
    max-width: min(1440px, 100%);
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.shop-header {
    margin-bottom: 50px;
    background: linear-gradient(135deg, rgba(11, 179, 140, 0.03) 0%, rgba(11, 179, 140, 0.01) 100%);
    border-radius: 20px;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
}

/* Elemento decorativo */
.shop-header::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(11, 179, 140, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.shop-header__content {
    position: relative;
    z-index: 1;
}

.shop-header__title {
    font-size: 42px;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 24px;
    line-height: 1.15;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

/* Sottolineatura decorativa H1 */
.shop-header__title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, rgba(11, 179, 140, 0.3) 100%);
    border-radius: 2px;
}

/* Contenitore descrizione */
.shop-header__description {
    max-width: 950px;
    margin-top: 32px;
}

/* H2 dentro la descrizione (sottotitoli SEO) */
.shop-header__description h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
    margin: 28px 0 16px;
    line-height: 1.4;
    position: relative;
    padding-left: 20px;
}

.shop-header__description h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Primo H2 ha margine top ridotto */
.shop-header__description h2:first-child {
    margin-top: 0;
}

/* Paragrafi */
.shop-header__description p {
    font-size: 16px;
    line-height: 1.8;
    color: #4b5563;
    margin: 14px 0;
}

.shop-header__description p:first-of-type {
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-color);
}

/* Strong/Bold dentro paragrafi */
.shop-header__description strong,
.shop-header__description b {
    color: var(--text-color);
    font-weight: 700;
}

/* Liste */
.shop-header__description ul,
.shop-header__description ol {
    margin: 16px 0;
    padding-left: 28px;
    line-height: 1.8;
    color: #4b5563;
}

.shop-header__description li {
    margin-bottom: 10px;
    font-size: 16px;
}

.shop-header__description ul li::marker {
    color: var(--primary-color);
    font-size: 1.2em;
}

/* Link dentro descrizione */
.shop-header__description a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.shop-header__description a:hover {
    border-bottom-color: var(--primary-color);
}

/* H3 dentro descrizione (se presente) */
.shop-header__description h3 {
    font-size: 19px;
    font-weight: 600;
    color: var(--text-color);
    margin: 22px 0 12px;
    line-height: 1.4;
}

/*
===========================================
LAYOUT 3 COLONNE PROFESSIONALE
===========================================
*/
.shop-layout-pro {
    display: grid;
    grid-template-columns: 250px 1fr 320px;
    gap: 30px;
    align-items: flex-start; /* NECESSARIO per position: sticky */
}

/* Layout senza sottocategorie (2 colonne) */
.shop-layout-pro--no-subcats {
    grid-template-columns: 1fr 320px;
}

.shop-layout-pro--no-subcats .shop-sidebar-left {
    display: none;
}

/*
===========================================
SIDEBAR SOTTOCATEGORIE (Sinistra)
===========================================
*/
.shop-sidebar-left {
    /* Nessun position: la sidebar scrolla normalmente con la pagina */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Link Ritorna alla Categoria Principale */
.shop-parent-link {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.parent-category-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(11, 179, 140, 0.05) 0%, rgba(11, 179, 140, 0.02) 100%);
}

.parent-category-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(-5px);
}

.parent-category-link svg {
    flex-shrink: 0;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.parent-category-link:hover svg {
    color: white;
    transform: translateX(-4px);
}

.parent-category-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.parent-category-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.parent-category-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.parent-category-link:hover .parent-category-label,
.parent-category-link:hover .parent-category-name {
    color: white;
}

/* Box Sottocategorie */
.shop-subcategories {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.shop-subcategories__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.shop-subcategories__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.shop-subcategories__item {
    margin-bottom: 2px;
}

.shop-subcategories__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.shop-subcategories__link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.shop-subcategories__name {
    font-weight: 500;
}

.shop-subcategories__count {
    font-size: 13px;
    opacity: 0.7;
}

/*
===========================================
CONTENUTO CENTRALE - PRODOTTI
===========================================
*/
.shop-main-pro {
    min-width: 0;
}

.products-grid-pro {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/*
===========================================
CARD PRODOTTO PROFESSIONALE
===========================================
*/
.product-card-pro {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    will-change: transform;
}

.product-card-pro:hover {
    transform: translate3d(0, -4px, 0);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.product-card-pro:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Immagine */
.product-card-pro__image {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f9fafb;
    overflow: hidden;
}

.product-card-pro__image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.product-card-pro__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--space-lg);
    transition: transform var(--transition-slow);
}

.product-card-pro:hover .product-card-pro__image img {
    transform: scale(1.05);
}

/* Badges Top */
.product-card-pro__badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.product-badge {
    padding: var(--space-sm) var(--space-md);
    border-radius: 20px;
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    transition: transform var(--transition-fast);
}

.product-badge:hover {
    transform: scale(1.05);
}

.product-badge--sale {
    background: var(--gradient-sale);
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

.product-badge--out-of-stock {
    background: var(--badge-out-of-stock);
    color: white;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: var(--shadow-md), 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% {
        box-shadow: var(--shadow-md), 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 0 0 6px rgba(239, 68, 68, 0);
    }
}

/* ============================================================================
   BADGE DISPONIBILITÀ - Elegant Availability Badge
   ========================================================================== */

/**
 * Badge Disponibilità Prodotto
 * Design minimalista con checkmark animato
 * Posizionamento: Top Left nelle card, inline nella single product
 */
.product-availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(11, 179, 140, 0.95);
    border: 1.5px solid var(--primary-color, #0BB38C);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    transition: all 0.3s ease;
    position: absolute;
    top: 10px; /* Dentro l'area padding-top dedicata */
    left: 12px;
    z-index: 3;
    backdrop-filter: blur(4px);
    animation: availabilityPulse 2s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(11, 179, 140, 0.3);
}

/* Variante per Single Product Page (non assoluta) */
.product-availability-badge--single {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 16px;
    font-size: 13px;
    padding: 8px 16px;
    animation: none; /* Nessuna animazione pulse nella single page */
    background: rgba(11, 179, 140, 0.1); /* Background chiaro per single page */
    color: var(--primary-color, #0BB38C); /* Testo teal */
    box-shadow: none;
}

.product-availability-badge--single .product-availability-badge__icon {
    stroke: var(--primary-color, #0BB38C); /* Icona teal per single page */
}

/* Icona Checkmark */
.product-availability-badge__icon {
    flex-shrink: 0;
    stroke: white; /* Bianco per contrasto con background teal */
    animation: checkmarkDraw 0.6s ease-out;
}

.product-availability-badge--single .product-availability-badge__icon {
    width: 16px;
    height: 16px;
}

/* Hover Effect (solo su card) */
.product-card-pro:hover .product-availability-badge {
    background: var(--primary-color, #0BB38C);
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(11, 179, 140, 0.5);
}

/* Animazione Pulse Sottile */
@keyframes availabilityPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(11, 179, 140, 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(11, 179, 140, 0);
    }
}

/* Animazione Checkmark Draw-in */
@keyframes checkmarkDraw {
    0% {
        stroke-dasharray: 0, 100;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        stroke-dasharray: 100, 0;
        opacity: 1;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .product-availability-badge {
        font-size: 10px;
        padding: 5px 10px;
        gap: 4px;
    }

    .product-availability-badge__icon {
        width: 12px;
        height: 12px;
    }

    .product-availability-badge--single {
        font-size: 12px;
        padding: 7px 14px;
    }
}

/* Accessibilità: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .product-availability-badge {
        animation: none;
    }

    .product-availability-badge__icon {
        animation: none;
    }
}

/* Badge Marca (Bottom Left) */
.product-brand-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
    z-index: 2;
}

.product-brand-badge__image {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-brand-badge__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-brand-badge__label {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Content */
.product-card-pro__content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.product-card-pro__title {
    margin: 0;
    font-size: var(--font-size-base);
    font-weight: 600;
    line-height: 1.4;
    /* CSS Line Clamp for 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.4em * 2); /* Reserve space for 2 lines */
}

.product-card-pro__title a {
    text-decoration: none;
    color: var(--text-color);
    transition: color var(--transition-fast);
}

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

.product-card-pro__title a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.product-card-pro__price {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
}

.product-card-pro__price del {
    font-size: var(--font-size-sm);
    font-weight: 400;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-card-pro__price ins {
    text-decoration: none;
    font-weight: 700;
}

.product-card-pro__rating {
    margin: -5px 0;
}

.product-card-pro__actions {
    margin-top: auto;
}

.product-card-pro__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: var(--space-md) var(--space-xl);
    border: none;
    border-radius: var(--border-radius-lg);
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.product-card-pro__btn--cart {
    background: var(--primary-color);
    color: white;
}

.product-card-pro__btn--cart:hover:not(.loading) {
    background: var(--primary-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-color-rgb), 0.3);
}

.product-card-pro__btn--cart:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.product-card-pro__btn--cart:active:not(.loading) {
    transform: translateY(0);
}

/* Loading State */
.product-card-pro__btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.product-card-pro__btn.loading .product-card-pro__btn-text {
    opacity: 0;
}

.product-card-pro__btn-spinner {
    display: none;
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.product-card-pro__btn.loading .product-card-pro__btn-spinner {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Added State */
.product-card-pro__btn.added {
    background: var(--success-color);
}

.product-card-pro__btn.added::after {
    content: '\2713';
    position: absolute;
    font-size: 20px;
    animation: checkmarkAppear 0.3s ease-out;
}

@keyframes checkmarkAppear {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.product-card-pro__btn--disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.product-card-pro__btn--disabled:hover {
    transform: none;
}

/*
===========================================
SIDEBAR DESTRA (Finder Widget)
===========================================
*/
.shop-sidebar-right {
    /* La sidebar stessa è il contenitore sticky */
    position: sticky;
    top: 120px; /* Aumentato per evitare che venga tagliato dall'header */
}

/*
===========================================
PAGINAZIONE WOOCOMMERCE (Fix Verticale)
===========================================
*/
.woocommerce-pagination {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 2px solid #f0f0f0;
}

.woocommerce-pagination ul.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.woocommerce-pagination .page-numbers:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(11, 179, 140, 0.05);
}

.woocommerce-pagination .page-numbers.current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/*
===========================================
NO PRODUCTS FOUND
===========================================
*/
.shop-no-products {
    text-align: center;
    padding: 80px 20px;
}

.shop-no-products svg {
    color: #d1d5db;
    margin-bottom: 20px;
}

.shop-no-products h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

.shop-no-products p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
}

/*
===========================================
RESPONSIVE
===========================================
*/

/* Tablet */
@media (max-width: 1024px) {
    .shop-layout-pro {
        grid-template-columns: 1fr 300px;
    }

    .shop-sidebar-left {
        display: none;
    }

    .products-grid-pro {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .shop-header {
        padding: 40px 30px;
        margin-bottom: 40px;
    }

    .shop-header__title {
        font-size: 36px;
    }

    .shop-header__description h2 {
        font-size: 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .shop-container {
        padding: 20px 15px;
    }

    .shop-header {
        margin-bottom: 30px;
        padding: 30px 25px;
        border-radius: 16px;
    }

    .shop-header::before {
        width: 150px;
        height: 150px;
        top: -30px;
        right: -30px;
    }

    .shop-header__title {
        font-size: 28px;
        margin-bottom: 20px;
        letter-spacing: -0.3px;
    }

    .shop-header__title::after {
        width: 60px;
        height: 3px;
        bottom: -6px;
    }

    .shop-header__description {
        margin-top: 24px;
    }

    .shop-header__description h2 {
        font-size: 19px;
        margin: 22px 0 12px;
        padding-left: 16px;
    }

    .shop-header__description h2::before {
        width: 3px;
        height: 20px;
    }

    .shop-header__description p {
        font-size: 15px;
        line-height: 1.7;
    }

    .shop-header__description p:first-of-type {
        font-size: 16px;
    }

    .shop-header__description h3 {
        font-size: 17px;
        margin: 18px 0 10px;
    }

    .shop-header__description li {
        font-size: 15px;
        margin-bottom: 8px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .shop-header {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .shop-header__title {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .shop-header__title::after {
        width: 50px;
    }

    .shop-header__description h2 {
        font-size: 18px;
        padding-left: 14px;
    }

    .shop-header__description p {
        font-size: 14px;
    }

    .shop-layout-pro {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .shop-sidebar-right {
        position: relative;
        top: auto;
        order: -1;
    }

    /* Finder widget mobile */
    .finder-sidebar-widget {
        /* Nessuna regola necessaria - scrolla normalmente */
    }

    .products-grid-pro {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .product-card-pro__content {
        padding: 15px;
    }

    .product-card-pro__title {
        font-size: 14px;
    }

    .product-card-pro__price {
        font-size: 18px;
    }

    .product-brand-badge {
        bottom: 8px;
        left: 8px;
        padding: 6px 10px;
        gap: 8px;
    }

    .product-brand-badge__image {
        width: 26px;
        height: 26px;
    }

    .product-brand-badge__label {
        font-size: 10px;
    }

    /* Link categoria parent su mobile */
    .parent-category-link {
        padding: 16px;
        gap: 12px;
    }

    .parent-category-label {
        font-size: 11px;
    }

    .parent-category-name {
        font-size: 14px;
    }

    .parent-category-link svg {
        width: 18px;
        height: 18px;
    }
}

/*
===========================================
SINGLE PRODUCT
===========================================
*/
.single-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin: 40px 0;
}

/* Gallery Styling */
.product-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
    z-index: 1; /* Z-index basso per non interferire con header e megamenu */
}

.woocommerce-product-gallery {
    position: relative;
}

.woocommerce-product-gallery__wrapper {
    margin: 0;
    padding: 0;
}

.woocommerce-product-gallery__image {
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.woocommerce-product-gallery__image:hover {
    box-shadow: var(--box-shadow-hover);
}

.woocommerce-product-gallery__image img {
    width: 100%;
    display: block;
    border-radius: var(--border-radius);
}

/* Thumbnails */
.flex-control-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 20px 0 0 0;
    padding: 0;
    list-style: none;
}

.flex-control-thumbs li {
    margin: 0;
    padding: 0;
}

.flex-control-thumbs li img {
    border-radius: var(--border-radius);
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
    opacity: 0.7;
}

.flex-control-thumbs li img:hover,
.flex-control-thumbs li img.flex-active {
    border-color: var(--primary-color);
    opacity: 1;
}

/* Product Details Section */
.product-details {
    display: flex;
    flex-direction: column;
}

.product-details h1,
.product_title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
    color: var(--secondary-color);
}

/* Rating and Meta */
.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.product-rating,
.woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.star-rating {
    color: #ffc107;
    position: relative;
    font-size: 14px;
}

.woocommerce-review-link {
    color: var(--text-light);
    font-size: 14px;
    text-decoration: none;
}

.woocommerce-review-link:hover {
    color: var(--primary-color);
}

.product_meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px 0;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
}

.product_meta > span {
    display: flex;
    gap: 8px;
}

.product_meta .sku_wrapper,
.product_meta .posted_in,
.product_meta .tagged_as {
    color: var(--text-light);
}

.product_meta a {
    color: var(--primary-color);
    font-weight: 500;
}

/* Price */
.price,
.product-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 15px 0;
}

.price del,
.product-price del {
    color: var(--text-light);
    font-size: 24px;
    font-weight: 400;
    margin-right: 15px;
    text-decoration: line-through;
}

.price ins,
.product-price ins {
    text-decoration: none;
}

/* Product Description */
.woocommerce-product-details__short-description,
.product-short-description {
    margin: 25px 0;
    color: var(--text-color);
    line-height: 1.8;
    font-size: 16px;
}

/* Add to Cart Form */
.cart {
    margin: 20px 0;
}

form.cart {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-start;
}

/* Quantity Selector */
.quantity {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    background: white;
}

.quantity input.qty {
    width: 80px;
    height: 50px;
    text-align: center;
    border: none;
    font-size: 18px;
    font-weight: 600;
    background: transparent;
    -moz-appearance: textfield;
}

.quantity input.qty::-webkit-outer-spin-button,
.quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity .qty-btn {
    width: 40px;
    height: 50px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition);
    color: var(--text-color);
}

.quantity .qty-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Add to Cart Button */
.single_add_to_cart_button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    min-width: 200px;
}

.single_add_to_cart_button:hover {
    background: #099974;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

.single_add_to_cart_button:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

/* Product Variations */
.variations {
    margin: 25px 0;
    width: 100%;
}

.variations tr {
    border-bottom: 1px solid var(--border-color);
}

.variations td {
    padding: 15px 0;
}

.variations label {
    font-weight: 600;
    color: var(--text-color);
    min-width: 120px;
    display: inline-block;
}

.variations select {
    width: 100%;
    max-width: 300px;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    background: white;
    cursor: pointer;
}

.variations .reset_variations {
    display: inline-block;
    margin-left: 10px;
    color: var(--text-light);
    font-size: 14px;
}

/* Stock Status */
.stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin: 15px 0;
}

.stock.in-stock {
    background: rgba(11, 179, 140, 0.1);
    color: var(--primary-color);
}

.stock.out-of-stock {
    background: rgba(231, 76, 60, 0.1);
    color: var(--error-color);
}

/* Trust Badges on Product Page */
.product-trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
    padding: 25px;
    background: #f9f9f9;
    border-radius: var(--border-radius);
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-badge-item svg {
    flex-shrink: 0;
}

.trust-badge-item span {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

/*
===========================================
SHIPPING COUNTDOWN COMPACT (Ridisegnato)
===========================================
*/
.shipping-countdown-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(11, 179, 140, 0.08) 0%, rgba(11, 179, 140, 0.12) 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--border-radius);
    margin: 16px 0;
}

.countdown-truck {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown-truck svg {
    stroke: white;
}

.countdown-text {
    flex: 1;
}

.countdown-label {
    display: block;
    font-size: 13px;
    color: var(--text-color);
    margin-bottom: 4px;
    font-weight: 500;
}

.countdown-timer-inline {
    font-size: 16px;
    color: var(--primary-color);
}

.countdown-timer-inline strong {
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

/*
===========================================
TRUST SEALS PROFESSIONAL (Compatto e Affidabile)
===========================================
*/
.product-trust-seals {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 16px 0;
    padding: 0;
}

.trust-seal {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.trust-seal:hover {
    border-color: var(--primary-color);
    background: rgba(11, 179, 140, 0.02);
}

.trust-seal-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: rgba(11, 179, 140, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-seal-icon svg {
    stroke: var(--primary-color);
}

.trust-seal span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
}

/*
===========================================
GUARANTEE BADGE (Compatto)
===========================================
*/
.guarantee-badge {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(11, 179, 140, 0.05) 0%, rgba(11, 179, 140, 0.08) 100%);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    margin: 16px 0;
}

.guarantee-badge-icon {
    flex-shrink: 0;
    stroke: var(--primary-color);
}

.guarantee-badge-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.guarantee-badge-text strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.3;
}

.guarantee-badge-text span {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.4;
}

/*
===========================================
FINDER WIDGET SIDEBAR (Vertical Card)
===========================================
*/
/*
===========================================
FINDER SIDEBAR WIDGET (Nuovo - Pulito)
===========================================
*/
.finder-sidebar-widget {
    width: 100%;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.04) 0%, rgba(11, 179, 140, 0.06) 100%);
    border: 2px solid rgba(11, 179, 140, 0.2);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;

    /* Nessun position qui - lo sticky è sul parent .shop-sidebar-right */
}

.finder-sidebar-widget:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(11, 179, 140, 0.12);
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.06) 0%, rgba(11, 179, 140, 0.08) 100%);
}

/* Header with Icon */
.finder-sidebar-widget__header {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.finder-sidebar-widget__icon-wrapper {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #25D366 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(11, 179, 140, 0.3);
}

.finder-sidebar-widget__icon {
    color: white;
    width: 40px;
    height: 40px;
}

/* Content */
.finder-sidebar-widget__content {
    text-align: center;
}

/* Badge */
.finder-sidebar-widget__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: #059669;
    margin-bottom: 16px;
}

.finder-sidebar-widget__badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Title */
.finder-sidebar-widget__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.3;
    margin: 0 0 12px 0;
}

/* Description */
.finder-sidebar-widget__description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0 0 20px 0;
}

/* Features List */
.finder-sidebar-widget__features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    text-align: left;
}

.finder-sidebar-widget__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-color);
}

.finder-sidebar-widget__features li svg {
    flex-shrink: 0;
    color: var(--primary-color);
    width: 16px;
    height: 16px;
}

.finder-sidebar-widget__features li span {
    font-weight: 500;
}

/* CTA Button */
.finder-sidebar-widget__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(11, 179, 140, 0.3);
    margin-bottom: 16px;
}

.finder-sidebar-widget__cta:hover,
.finder-sidebar-widget__cta:focus {
    background: #099a7b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 179, 140, 0.4);
}

.finder-sidebar-widget__cta svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* Trust Indicator */
.finder-sidebar-widget__trust {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-top: 16px;
    border-top: 1px solid rgba(11, 179, 140, 0.15);
}

.finder-sidebar-widget__trust .trust-stars {
    display: flex;
    gap: 3px;
}

.finder-sidebar-widget__trust-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
}

/*
===========================================
FINDER WIDGET PRODUCT PAGE (Horizontal Compact)
===========================================
*/
.finder-widget-product {
    margin: 16px 0;
    padding: 0;
}

.finder-widget-product__container {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.04) 0%, rgba(11, 179, 140, 0.06) 100%);
    border: 1px solid rgba(11, 179, 140, 0.2);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.finder-widget-product__container:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.06) 0%, rgba(11, 179, 140, 0.08) 100%);
    box-shadow: 0 2px 8px rgba(11, 179, 140, 0.1);
}

/* Icon */
.finder-widget-product__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #25D366 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 8px rgba(11, 179, 140, 0.25);
}

.finder-widget-product__icon svg {
    flex-shrink: 0;
}

/* Content */
.finder-widget-product__content {
    flex: 1;
    min-width: 0;
}

.finder-widget-product__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.finder-widget-product__question {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
}

.finder-widget-product__description {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.3;
}

/* CTA */
.finder-widget-product__cta-wrapper {
    flex-shrink: 0;
}

.finder-widget-product__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(11, 179, 140, 0.2);
    white-space: nowrap;
}

.finder-widget-product__cta:hover,
.finder-widget-product__cta:focus {
    background: #099a7b;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(11, 179, 140, 0.3);
}

.finder-widget-product__cta svg {
    flex-shrink: 0;
}

/*
===========================================
GALLERY IMPROVEMENTS
===========================================
*/
.woocommerce-product-gallery {
    position: relative;
}

.woocommerce-product-gallery__wrapper {
    margin: 0;
    padding: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.woocommerce-product-gallery__image {
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    cursor: zoom-in;
}

.woocommerce-product-gallery__image::after {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/></svg>') center no-repeat;
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
}

.woocommerce-product-gallery__image:hover::after {
    opacity: 1;
}

.woocommerce-product-gallery__image:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
}

/*
===========================================
PRODUCT TABS (Descrizione, Recensioni, Info)
===========================================
*/
.woocommerce-tabs {
    margin: 60px 0;
}

.woocommerce-tabs .tabs {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 2px solid var(--border-color);
}

.woocommerce-tabs .tabs li {
    margin: 0;
    padding: 0;
}

.woocommerce-tabs .tabs li a {
    display: block;
    padding: 18px 30px;
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    position: relative;
    top: 2px;
}

.woocommerce-tabs .tabs li a:hover {
    color: var(--primary-color);
}

.woocommerce-tabs .tabs li.active a {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.woocommerce-tabs .panel {
    padding: 40px 0;
    display: none; /* Nasconde i pannelli per default */
}

.woocommerce-tabs .panel.active {
    display: block; /* Mostra solo il pannello attivo */
}

/* WooCommerce usa .woocommerce-Tabs-panel--{slug} + aria-hidden */
.woocommerce-tabs .woocommerce-Tabs-panel {
    padding: 40px 0;
}

.woocommerce-tabs .woocommerce-Tabs-panel[aria-hidden="true"] {
    display: none;
}

.woocommerce-tabs .woocommerce-Tabs-panel[aria-hidden="false"] {
    display: block;
}

.woocommerce-tabs .panel h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.woocommerce-tabs .panel p {
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Reviews */
#reviews {
    padding: 40px 0;
}

#reviews .commentlist {
    list-style: none;
    margin: 30px 0;
    padding: 0;
}

#reviews .comment {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

#reviews .comment:last-child {
    border-bottom: none;
}

#reviews .comment-text {
    background: #f9f9f9;
    padding: 25px;
    border-radius: var(--border-radius);
    position: relative;
}

#reviews .star-rating {
    margin-bottom: 10px;
}

#reviews .meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

#reviews .meta strong {
    font-weight: 600;
    color: var(--secondary-color);
}

#reviews .meta time {
    color: var(--text-light);
    font-size: 14px;
}

#reviews .description p {
    margin: 0;
    line-height: 1.7;
}

/* Review Form */
#review_form_wrapper {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

#respond {
    background: #f9f9f9;
    padding: 30px;
    border-radius: var(--border-radius);
}

#respond #reply-title {
    font-size: 24px;
    margin-bottom: 20px;
}

#respond .comment-form-rating {
    margin-bottom: 20px;
}

#respond .comment-form-comment {
    margin-bottom: 20px;
}

#respond .comment-form-comment label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

#respond textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    font-family: var(--font-primary);
    min-height: 150px;
}

#respond textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

#respond .form-submit {
    margin: 0;
}

#respond .submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

#respond .submit:hover {
    background: #099974;
    transform: translateY(-2px);
}

/*
===========================================
RELATED PRODUCTS (Prodotti Correlati)
===========================================
*/
.related.products,
.upsells.products {
    margin: 80px 0;
}

.related.products h2,
.upsells.products h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.related.products h2::after,
.upsells.products h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 40px;
    border-radius: 2px;
}

.related.products .products,
.upsells.products .products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Override per prodotti correlati - usa stile product-card */
.related .product,
.upsells .product {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}

.related .product:hover,
.upsells .product:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.related .product .woocommerce-loop-product__link,
.upsells .product .woocommerce-loop-product__link {
    display: block;
    text-decoration: none;
}

.related .product .attachment-woocommerce_thumbnail,
.upsells .product .attachment-woocommerce_thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related .product:hover .attachment-woocommerce_thumbnail,
.upsells .product:hover .attachment-woocommerce_thumbnail {
    transform: scale(1.05);
}

.related .product .woocommerce-loop-product__title,
.upsells .product .woocommerce-loop-product__title {
    font-size: 16px;
    font-weight: 600;
    margin: 15px;
    color: var(--text-color);
}

.related .product .price,
.upsells .product .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 15px 15px;
}

.related .product .button,
.upsells .product .button {
    display: block;
    width: calc(100% - 30px);
    margin: 0 15px 15px;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    text-align: center;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.related .product .button:hover,
.upsells .product .button:hover {
    background: #099974;
    color: white;
}

/* Badge su prodotti correlati */
.related .product .onsale,
.upsells .product .onsale {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--error-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

/*
===========================================
CART PAGE
===========================================
*/
.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.cart-items {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.cart-item-details h3 {
    margin-bottom: 10px;
}

.cart-item-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.cart-summary {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h2 {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.summary-row.total {
    font-size: 20px;
    font-weight: 700;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
    color: var(--primary-color);
}

/*
===========================================
CHECKOUT MODERNO
===========================================
*/
.checkout-modern {
    background: #f8f9fa;
    min-height: 100vh;
    padding-bottom: 60px;
}

/* Header Checkout */
.checkout-header {
    text-align: center;
    padding: 40px 0 30px;
}

.checkout-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 30px;
}

.checkout-title svg {
    color: var(--primary-color);
}

/* Progress Steps */
.checkout-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 500px;
    margin: 0 auto;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
}

.progress-step.completed .step-number {
    background: var(--primary-color);
    color: white;
}

.progress-step.active .step-number {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 4px rgba(11, 179, 140, 0.2);
}

.step-label {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

.progress-step.completed .step-label,
.progress-step.active .step-label {
    color: var(--text-color);
}

.progress-line {
    width: 60px;
    height: 3px;
    background: #e0e0e0;
    margin: 0 10px 24px;
    border-radius: 2px;
}

.progress-line.completed {
    background: var(--primary-color);
}

/* Trust Badges Bar */
.trust-badges-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.trust-badge svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Layout Checkout */
.checkout-layout-modern {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 30px;
    align-items: start;
}

/* Checkout Main (Form) */
.checkout-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checkout-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
}

.section-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 24px 0;
}

.section-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-color), #0a9d7a);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-icon svg {
    color: white;
}

.section-title-wrap h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--text-color);
}

.section-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.section-content {
    padding: 24px;
}

/* Form Fields Styling */
.checkout-section .woocommerce-billing-fields__field-wrapper,
.checkout-section .woocommerce-shipping-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkout-section .form-row {
    margin: 0;
}

.checkout-section .form-row-wide {
    grid-column: 1 / -1;
}

.checkout-section .form-row-first {
    grid-column: 1;
}

.checkout-section .form-row-last {
    grid-column: 2;
}

.checkout-section label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.checkout-section label .required {
    color: var(--primary-color);
}

.checkout-section input[type="text"],
.checkout-section input[type="email"],
.checkout-section input[type="tel"],
.checkout-section input[type="number"],
.checkout-section input[type="password"],
.checkout-section select,
.checkout-section textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: #fafafa;
}

.checkout-section input:focus,
.checkout-section select:focus,
.checkout-section textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(11, 179, 140, 0.1);
}

.checkout-section input::placeholder {
    color: #aaa;
}

.checkout-section textarea {
    min-height: 100px;
    resize: vertical;
}

/* Select2 Override */
.checkout-section .select2-container--default .select2-selection--single {
    height: 50px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #fafafa;
}

.checkout-section .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 46px;
    padding-left: 16px;
    color: #333;
}

.checkout-section .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px;
    right: 10px;
}

/* Sidebar Checkout */
.checkout-sidebar {
    position: sticky;
    top: 20px;
}

.order-summary-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.summary-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.summary-header svg {
    color: var(--primary-color);
}

.item-count {
    font-size: 13px;
    color: #888;
    background: #f5f5f5;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Order Items */
.order-items {
    padding: 16px 24px;
    max-height: 300px;
    overflow-y: auto;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.order-item:last-child {
    border-bottom: none;
}

.item-image {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}

.item-qty {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    background: var(--primary-color);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-details {
    flex: 1;
    min-width: 0;
}

.item-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-details dl {
    margin: 4px 0 0;
    font-size: 12px;
    color: #888;
}

.item-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

/* Coupon Section */
.coupon-section {
    padding: 12px 24px;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.coupon-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.coupon-toggle:hover {
    opacity: 0.8;
}

/* Order Totals */
.order-totals {
    padding: 20px 24px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    color: #666;
}

.total-row.shipping span:last-child {
    text-align: right;
}

.total-row.coupon .discount {
    color: var(--primary-color);
}

.total-row.total {
    padding-top: 16px;
    margin-top: 8px;
    border-top: 2px solid #f0f0f0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
}

.total-amount {
    color: var(--primary-color);
    font-size: 22px;
}

/* Payment Section */
.payment-section {
    padding: 24px;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
}

.payment-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--text-color);
}

.payment-section h3 svg {
    color: var(--primary-color);
}

/* Payment Methods */
.wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wc_payment_method {
    margin-bottom: 12px;
}

.wc_payment_method label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wc_payment_method input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.wc_payment_method input[type="radio"]:checked + label,
.wc_payment_method label:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: rgba(11, 179, 140, 0.05);
}

.payment_box {
    padding: 16px;
    margin-top: 8px;
    background: #f9f9f9;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
}

/* Place Order Button */
#place_order {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--primary-color), #0a9d7a);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
}

#place_order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 179, 140, 0.3);
}

#place_order:active {
    transform: translateY(0);
}

/* Privacy Policy */
.woocommerce-terms-and-conditions-wrapper {
    margin-top: 16px;
}

.woocommerce-privacy-policy-text {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
}

/* Security Footer */
.security-footer {
    padding: 16px 24px;
    background: #f8f9fa;
    border-top: 1px solid #f0f0f0;
}

.security-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: #888;
}

.security-icons svg {
    color: var(--primary-color);
}

/* Help Box */
.help-box {
    display: flex;
    gap: 16px;
    padding: 20px;
    margin-top: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.help-icon {
    width: 48px;
    height: 48px;
    background: #f0f9f7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.help-icon svg {
    color: var(--primary-color);
}

.help-content h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--text-color);
}

.help-content p {
    font-size: 13px;
    color: #666;
    margin: 0 0 8px;
}

.help-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.help-link:hover {
    text-decoration: underline;
}

/* Checkout Responsive */
@media (max-width: 992px) {
    .checkout-layout-modern {
        grid-template-columns: 1fr;
    }

    .checkout-sidebar {
        position: static;
    }

    .trust-badges-bar {
        gap: 16px;
    }

    .trust-badge {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .checkout-header {
        padding: 30px 0 20px;
    }

    .checkout-title {
        font-size: 22px;
    }

    .progress-line {
        width: 30px;
    }

    .step-label {
        font-size: 11px;
    }

    .trust-badges-bar {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .section-header {
        padding: 20px 20px 0;
    }

    .section-content {
        padding: 20px;
    }

    .checkout-section .woocommerce-billing-fields__field-wrapper,
    .checkout-section .woocommerce-shipping-fields__field-wrapper {
        grid-template-columns: 1fr;
    }

    .checkout-section .form-row-first,
    .checkout-section .form-row-last {
        grid-column: 1;
    }

    .order-items {
        padding: 12px 16px;
    }

    .order-totals {
        padding: 16px;
    }

    .payment-section {
        padding: 16px;
    }
}

/* Legacy Checkout Styles (per retrocompatibilità) */
.checkout-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.checkout-form {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-section {
    margin-bottom: 30px;
}

.form-section h2 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/*
===========================================
BLOG
===========================================
*/
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.blog-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.blog-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

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

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 14px;
}

.blog-title {
    font-size: 22px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

/*
===========================================
FOOTER
===========================================
*/
.site-footer {
    background: var(--secondary-color);
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
}

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

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
    color: var(--primary-color);
}

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

/*
===========================================
RESPONSIVE
===========================================
*/
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
    }

    .single-product-layout,
    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .products-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Responsive Product Page Enhancements */
    .product-trust-seals {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .trust-seal {
        padding: 10px 12px;
    }

    .trust-seal-icon {
        width: 28px;
        height: 28px;
    }

    .trust-seal span {
        font-size: 12px;
    }

    .shipping-countdown-compact {
        padding: 12px 15px;
    }

    .countdown-truck {
        width: 36px;
        height: 36px;
    }

    .countdown-label {
        font-size: 12px;
    }

    .countdown-timer-inline {
        font-size: 14px;
    }

    .guarantee-badge {
        padding: 14px 16px;
    }

    .guarantee-badge-text strong {
        font-size: 14px;
    }

    .guarantee-badge-text span {
        font-size: 12px;
    }

    /* Finder Widget Sidebar - Mobile Responsive */
    .finder-widget__container {
        padding: 20px 16px;
    }

    .finder-widget__icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .finder-widget__icon {
        width: 32px;
        height: 32px;
    }

    .finder-widget__title {
        font-size: 18px;
    }

    .finder-widget__description {
        font-size: 13px;
    }

    .finder-widget__features li {
        font-size: 13px;
        padding: 6px 0;
    }

    .finder-widget__cta {
        padding: 12px 20px;
        font-size: 14px;
    }

    /* Finder Widget Product - Mobile Responsive */
    .finder-widget-product__container {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 14px 16px;
    }

    .finder-widget-product__icon {
        width: 40px;
        height: 40px;
    }

    .finder-widget-product__icon svg {
        width: 26px;
        height: 26px;
    }

    .finder-widget-product__question {
        font-size: 13px;
    }

    .finder-widget-product__description {
        font-size: 11px;
    }

    .finder-widget-product__cta {
        width: 100%;
        justify-content: center;
        padding: 11px 20px;
        font-size: 14px;
    }
}

/*
===========================================
UTILITY CLASSES
===========================================
*/
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.hidden {
    display: none;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
}

.no-scroll {
    overflow: hidden;
}

/*
===========================================
TOP BAR
===========================================
*/
.top-bar {
    background-color: #0BB38C;
    color: white;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
    position: relative;
    z-index: 999;
    transition: var(--transition);
}

.top-bar.is-hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.top-bar-announcement {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
}

.top-bar-announcement svg {
    stroke: white;
}

/*
===========================================
HEADER REFACTORED
===========================================
*/
.site-header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.site-header.is-sticky {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    align-items: center;
    gap: 30px;
    padding: 20px 0;
}

.site-header.is-sticky .header-inner {
    padding: 15px 0;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.site-logo:hover {
    color: var(--secondary-color);
}

.custom-logo-link {
    display: block;
    line-height: 0;
}

.custom-logo {
    max-height: 50px;
    width: auto;
    transition: var(--transition);
}

.site-header.is-sticky .custom-logo {
    max-height: 40px;
}

/* Header Search Bar */
.header-search-bar {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-account a,
.header-cart button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    border-radius: 50%;
}

.header-account a:hover,
.header-cart button:hover {
    background: rgba(11, 179, 140, 0.1);
}

.header-account svg,
.header-cart svg {
    stroke: var(--text-color);
    transition: var(--transition);
}

.header-account a:hover svg,
.header-cart button:hover svg {
    stroke: var(--primary-color);
}

/* Cart Count Badge */
.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.cart-count.animate-bounce {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.2); }
}

/*
===========================================
MEGA MENU (Desktop)
===========================================
*/
.mega-menu-wrapper {
    background: #0BB38C;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 999; /* Appena sotto l'header ma sopra il contenuto */
    pointer-events: auto; /* Assicura che sia sempre interagibile */
}

.mega-menu-nav {
    margin: 0;
    padding: 0;
}

.mega-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mega-menu-item {
    position: relative;
    margin: 0;
    padding: 0;
    z-index: 1;
}

.mega-menu-item.has-dropdown {
    pointer-events: auto; /* Assicura hover e click */
}

.mega-menu-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px 18px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    white-space: nowrap;
}

.mega-menu-link:hover,
.mega-menu-item.is-active > .mega-menu-link {
    color: var(--primary-color);
    background: white;
}

.mega-menu-link .dropdown-icon {
    transition: transform 0.3s ease;
    stroke: #ffffff;
}

.mega-menu-link:hover .dropdown-icon,
.mega-menu-item.is-active > .mega-menu-link .dropdown-icon {
    stroke: var(--primary-color);
}

.mega-menu-item.is-active .mega-menu-link .dropdown-icon {
    transform: rotate(180deg);
}

/* Mega Menu Dropdown */
.mega-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: min(900px, calc(100vw - 40px));
    max-width: calc(100vw - 40px);
    width: max-content;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1001;
    padding: 0;
    pointer-events: auto;
}

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

/* Smart Positioning: Centrato nel viewport (gestito da JS) */
.mega-menu-dropdown.align-viewport-center {
    transform: translateY(10px);
}

.mega-menu-dropdown.align-viewport-center.is-visible {
    transform: translateY(0);
}

/* Fallback per align-left e align-right (legacy) */
.mega-menu-dropdown.align-viewport-left,
.mega-menu-dropdown.align-viewport-right {
    transform: translateY(10px);
}

.mega-menu-dropdown.align-viewport-left.is-visible,
.mega-menu-dropdown.align-viewport-right.is-visible {
    transform: translateY(0);
}

.mega-menu-dropdown-inner {
    padding: 30px;
}

.mega-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.mega-menu-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.view-all-link:hover {
    gap: 10px;
}

.mega-menu-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.subcategory-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 16px;
}

.subcategory-item {
    margin: 0;
    padding: 0;
}

.subcategory-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
    font-size: 13px;
}

.subcategory-link:hover {
    background: rgba(11, 179, 140, 0.08);
    color: var(--primary-color);
    transform: translateX(4px);
}

.product-count {
    color: var(--text-light);
    font-size: 12px;
}

.mega-menu-featured {
    display: none;
}

.mega-menu-featured img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/*
===========================================
CART SIDEBAR
===========================================
*/
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    z-index: 10000;
    pointer-events: none;
}

.cart-sidebar.is-open {
    pointer-events: auto;
}

/*
 * OVERLAY: Backdrop scuro dietro la sidebar
 * IMPORTANTE: z-index più BASSO del panel per non coprirlo
 */
.cart-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998; /* Più basso del panel (9999) */
    pointer-events: none; /* Non blocca click quando chiuso */
}

.cart-sidebar.is-open .cart-sidebar-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Abilita click per chiudere quando aperto */
}

/*
 * PANEL: Il contenuto effettivo della sidebar
 * IMPORTANTE: z-index più ALTO dell'overlay per essere sopra
 */
.cart-sidebar-panel {
    position: fixed; /* Cambiato da absolute a fixed per stacking context pulito */
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    background: white;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 9999; /* Sopra l'overlay (9998) */
    pointer-events: auto; /* Sempre cliccabile */
}

.cart-sidebar.is-open .cart-sidebar-panel {
    transform: translateX(0);
}

.cart-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.cart-sidebar-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.cart-sidebar-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.cart-sidebar-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.cart-sidebar-close svg {
    stroke: var(--text-color);
}

.cart-sidebar-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

/* Cart Empty State */
.cart-sidebar-empty {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart-message {
    color: var(--text-light);
    margin: 20px 0 30px;
    font-size: 16px;
}

/* Cart Items List */
.cart-sidebar-items {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.cart-sidebar-item {
    display: grid;
    grid-template-columns: 80px 1fr 24px;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.cart-sidebar-item:first-child {
    padding-top: 0;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: #f5f5f5;
}

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

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-item-name {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.cart-item-name a {
    color: var(--text-color);
    text-decoration: none;
}

.cart-item-name a:hover {
    color: var(--primary-color);
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 15px;
}

.cart-item-quantity {
    color: var(--text-light);
    font-size: 13px;
}

.cart-item-subtotal {
    color: var(--text-color);
    font-size: 13px;
}

.subtotal-label {
    color: var(--text-light);
    margin-right: 4px;
}

.remove-cart-item {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    width: 24px;
    height: 24px;
}

.remove-cart-item:hover {
    background: rgba(231, 76, 60, 0.1);
}

.remove-cart-item svg {
    stroke: var(--text-light);
}

.remove-cart-item:hover svg {
    stroke: var(--error-color);
}

.remove-cart-item.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Cart Totals */
.cart-sidebar-totals {
    padding: 20px 0;
    border-top: 2px solid var(--border-color);
    margin-top: 20px;
}

.cart-subtotal,
.cart-tax,
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cart-total {
    margin-bottom: 0;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 18px;
    font-weight: 700;
}

.total-amount {
    color: var(--primary-color);
}

/* Cart Actions */
.cart-sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.btn-checkout,
.btn-view-cart {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
}

/* Trust Badges Container */
.cart-trust-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: #f8faf9;
    border-radius: var(--border-radius);
    margin-top: 20px;
    border: 1px solid rgba(11, 179, 140, 0.15);
}

.cart-trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #444;
}

.cart-trust-badge svg {
    flex-shrink: 0;
    color: var(--primary-color);
}

.cart-trust-badge span {
    font-weight: 500;
}

/* Payment Methods */
.cart-payment-methods {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 16px;
    margin-top: 12px;
    background: #fafafa;
    border-radius: var(--border-radius);
    border: 1px solid #eee;
}

.payment-label {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

.payment-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-icons svg {
    height: 24px;
    width: auto;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/*
===========================================
FREE SHIPPING PROGRESS BAR (Cart Sidebar)
===========================================
*/
.free-shipping-progress-wrapper {
    margin: 20px 0 16px;
    padding: 0;
}

.free-shipping-progress {
    background: linear-gradient(135deg, rgba(11, 179, 140, 0.04) 0%, rgba(11, 179, 140, 0.08) 100%);
    border: 1px solid rgba(11, 179, 140, 0.15);
    border-radius: var(--border-radius);
    padding: 14px 16px;
    transition: all 0.3s ease;
}

.free-shipping-progress:hover {
    border-color: rgba(11, 179, 140, 0.25);
    box-shadow: 0 2px 8px rgba(11, 179, 140, 0.08);
}

/* Message Row */
.free-shipping-message {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.free-shipping-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.free-shipping-progress:hover .free-shipping-icon {
    transform: scale(1.05);
}

.free-shipping-icon svg {
    stroke: white;
    width: 16px;
    height: 16px;
}

.free-shipping-text {
    flex: 1;
    min-width: 0;
}

.free-shipping-label {
    font-size: 13px;
    color: var(--text-color);
    line-height: 1.4;
}

.free-shipping-label strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Success State */
.free-shipping-success {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.4;
}

.free-shipping-success .check-icon {
    flex-shrink: 0;
    stroke: var(--primary-color);
    animation: checkPulse 0.5s ease;
}

@keyframes checkPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Progress Bar */
.free-shipping-bar {
    margin-bottom: 8px;
}

.free-shipping-bar-track {
    position: relative;
    width: 100%;
    height: 8px;
    background: rgba(11, 179, 140, 0.1);
    border-radius: 10px;
    overflow: visible; /* Importante per truck indicator */
}

.free-shipping-bar-fill {
    position: relative;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, #25D366 100%);
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(11, 179, 140, 0.2);
}

.free-shipping-bar-fill.is-complete {
    background: linear-gradient(90deg, #25D366 0%, #20b858 100%);
    animation: completePulse 0.8s ease;
}

@keyframes completePulse {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.3); }
}

/* Truck Indicator (si muove sulla barra) */
.free-shipping-truck-indicator {
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: right 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.free-shipping-truck-indicator svg {
    width: 12px;
    height: 12px;
    fill: var(--primary-color);
}

/* Amount Info */
.free-shipping-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-light);
    margin-top: 6px;
}

.current-amount {
    font-weight: 600;
    color: var(--primary-color);
}

.threshold-amount {
    font-weight: 600;
    color: var(--text-light);
}

/* Responsive Mobile */
@media (max-width: 480px) {
    .free-shipping-progress {
        padding: 12px 14px;
    }

    .free-shipping-icon {
        width: 26px;
        height: 26px;
    }

    .free-shipping-icon svg {
        width: 14px;
        height: 14px;
    }

    .free-shipping-label,
    .free-shipping-success {
        font-size: 12px;
    }

    .free-shipping-bar-track {
        height: 7px;
    }

    .free-shipping-info {
        font-size: 10px;
    }
}

/*
===========================================
CART NOTIFICATION
===========================================
*/
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 16px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-hover);
    z-index: 10001;
    min-width: 280px;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.cart-notification-error {
    border-left-color: var(--error-color);
}

.cart-notification.fade-out {
    animation: slideOutRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/*
===========================================
MOBILE MENU
===========================================
*/
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    pointer-events: auto; /* Assicura che sia sempre cliccabile */
}

.hamburger-line {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.is-active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9990;
    pointer-events: none;
}

.mobile-menu-sidebar.is-open {
    pointer-events: auto;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-sidebar.is-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-container {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 85%;
    max-width: 320px;
    background: white;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 1;
}

.mobile-menu-sidebar.is-open .mobile-menu-container {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-menu-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-item {
    border-bottom: 1px solid var(--border-color);
}

/* Stili comuni per link e button accordion categorie */
.mobile-menu-link,
.mobile-category-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    color: var(--text-color);
    text-decoration: none;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-link:hover,
.mobile-category-toggle:hover {
    background: rgba(11, 179, 140, 0.05);
    color: var(--primary-color);
}

/* Icona chevron accordion */
.mobile-category-toggle .toggle-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0; /* Impedisce al SVG di comprimersi */
    margin-left: 8px;
}

/* Rotazione icona quando accordion è espanso */
.mobile-menu-item.is-expanded .mobile-category-toggle .toggle-icon {
    transform: rotate(180deg);
}

/* Feedback visivo al click */
.mobile-category-toggle:active {
    background: rgba(11, 179, 140, 0.1);
    transform: scale(0.98);
}

/* Highlight quando categoria è espansa */
.mobile-menu-item.is-expanded > .mobile-category-toggle {
    color: var(--primary-color);
    background: rgba(11, 179, 140, 0.05);
}

.mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f8f8f8;
    display: none;
}

.mobile-submenu-item,
.mobile-submenu-all {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-submenu-item:last-child {
    border-bottom: none;
}

.mobile-submenu-item a,
.mobile-submenu-all a {
    display: block;
    padding: 12px 20px 12px 40px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.mobile-submenu-all a {
    font-weight: 600;
    color: var(--primary-color);
}

.mobile-submenu-item a:hover,
.mobile-submenu-all a:hover {
    background: rgba(11, 179, 140, 0.08);
    color: var(--primary-color);
}

/*
===========================================
RESPONSIVE
===========================================
*/
@media (max-width: 1200px) {
    .mega-menu-dropdown {
        min-width: 90vw;
        max-width: 90vw;
        width: 90vw;
    }

    .subcategory-list {
        grid-template-columns: repeat(3, 1fr); /* 3 colonne su schermi medi */
    }
}

@media (max-width: 1024px) {
    .mega-menu-dropdown {
        min-width: 90vw;
        max-width: 90vw;
        width: 90vw;
    }

    .subcategory-list {
        grid-template-columns: repeat(2, 1fr); /* 2 colonne su tablet */
    }
}

@media (max-width: 768px) {
    .subcategory-list {
        grid-template-columns: 1fr; /* 1 colonna su mobile */
    }
}

@media (min-width: 769px) and (max-width: 900px) {
    /* Per schermi tra 769px e 900px (tablet landscape) */
    .mega-menu-dropdown {
        min-width: calc(100% - 40px); /* Fix overflow: usa 100% invece di 100vw */
        max-width: calc(100% - 40px);
        width: calc(100% - 40px);
    }

    /* Forza sempre allineamento a sinistra su questi schermi */
    .mega-menu-dropdown {
        left: 20px !important;
        right: 20px !important;
        transform: translateY(10px) !important;
    }

    .mega-menu-dropdown.is-visible {
        transform: translateY(0) !important;
    }
}

@media (max-width: 768px) {
    /* Hide desktop mega menu */
    .mega-menu-wrapper {
        display: none;
    }

    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Header adjustments */
    .header-inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
        padding: 12px 0;
    }

    .site-branding {
        order: 2;
        flex: 1;
    }

    /* Search bar visible on mobile - full width row */
    .header-search-bar {
        display: block;
        order: 4;
        width: 100%;
        flex-basis: 100%;
        max-width: 100%;
        margin: 8px 0 0 0;
    }

    .header-search-bar input[type="search"],
    .header-search-bar input[type="text"] {
        width: 100%;
        padding: 12px 16px;
        font-size: 16px; /* Prevent iOS zoom */
        border-radius: 8px;
    }

    .header-actions {
        order: 3;
        gap: 12px;
    }

    .mobile-menu-toggle {
        order: 1;
    }

    /* Cart sidebar full width on mobile */
    .cart-sidebar {
        max-width: 100%;
    }

    .cart-sidebar-panel {
        max-width: 100%; /* Full width su mobile */
    }

    .cart-sidebar-item {
        grid-template-columns: 70px 1fr 24px;
        gap: 12px;
    }

    .cart-item-image {
        width: 70px;
        height: 70px;
    }

    /* Assicurati che l'overlay non copra il panel su mobile */
    .cart-sidebar-overlay {
        z-index: 9998; /* Sempre sotto il panel */
    }

    .cart-sidebar-panel {
        z-index: 9999; /* Sempre sopra l'overlay */
    }
}

/* AJAX Search Pro - Mobile Optimization */
.header-search-bar .prso,
.header-search-bar .asp_w,
.header-search-bar .probox,
.header-search-bar .asp_m {
    width: 100% !important;
}

.header-search-bar .probox input,
.header-search-bar .asp_w input[type="search"],
.header-search-bar .asp_m input {
    width: 100% !important;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .header-search-bar .prso,
    .header-search-bar .asp_w,
    .header-search-bar .probox,
    .header-search-bar .asp_m {
        max-width: 100% !important;
    }

    /* Risultati ricerca mobile */
    .asp_r,
    .asp_w .results,
    .prso .results {
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .top-bar {
        font-size: 12px;
        padding: 10px 0;
    }

    .header-inner {
        padding: 10px 0;
    }

    .custom-logo {
        max-height: 40px;
    }

    .cart-sidebar-panel {
        width: 100%;
    }

    /* Search bar 480px */
    .header-search-bar {
        margin-top: 6px;
    }

    .subcategory-list {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   BESTSELLER SLIDER - Splide Integration
   ========================================================================== */

/**
 * Sezione Bestseller Slider
 * Design coerente con homepage, responsive mobile-first
 */
.bestseller-slider-section {
    margin-top: 80px; /* Distanza dalla hero section */
    margin-bottom: 60px;
    position: relative;
    overflow-x: hidden; /* Previene overflow da frecce negative */
}

/* Header Section */
.bestseller-slider-header {
    text-align: center;
    margin-bottom: 40px;
}

.bestseller-slider-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.bestseller-slider-header p {
    color: var(--text-tertiary);
    font-size: 18px;
    margin: 0;
}

/* ============================================================================
   OTTIMIZZAZIONI CARD SLIDER - Proporzioni e UX Migliorate
   ========================================================================== */

/**
 * Override specifici per product-card-pro nello slider
 * Migliora proporzioni, spacing, e leggibilità
 */

/* Card wrapper - aspect ratio ottimizzato */
.bestseller-slider-section .product-card-pro {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.bestseller-slider-section .product-card-pro:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* Immagine - container con padding-top per spazio badge */
.bestseller-slider-section .product-card-pro__image {
    aspect-ratio: 1 / 1;
    background: #f9fafb;
    overflow: hidden; /* Mantiene tutto contenuto */
    position: relative;
    padding-top: 40px; /* Spazio dedicato badge top */
    display: flex;
    align-items: flex-start; /* Allinea in alto */
    justify-content: center;
}

.bestseller-slider-section .product-card-pro__image-link {
    width: calc(100% - 32px); /* Margini laterali simmetrici */
    height: calc(100% - 40px); /* Compensa padding-top */
    display: block;
    margin: 0 16px 16px 16px; /* Margini laterali uguali + bottom */
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.bestseller-slider-section .product-card-pro__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.bestseller-slider-section .product-card-pro:hover .product-card-pro__image img {
    transform: scale(1.05); /* Ridotto da 1.08 - effetto più sottile */
}

/* Badge positioning nell'area dedicata top */
.bestseller-slider-section .product-card-pro__badges {
    top: 10px; /* Allineato con badge disponibilità */
    right: 12px;
}

/* Content area - padding ridotto per più respiro */
.bestseller-slider-section .product-card-pro__content {
    padding: 20px; /* Bilanciato per respiro */
    display: flex;
    flex-direction: column;
    gap: 14px; /* Spacing armonico */
    flex: 1;
    min-height: 160px; /* Ridotto per proporzioni migliori */
}

/* Titolo - line clamp 2 righe con altezza fissa */
.bestseller-slider-section .product-card-pro__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    min-height: 48px; /* Esattamente 2 righe (16px * 1.5 * 2) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bestseller-slider-section .product-card-pro__title a {
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.bestseller-slider-section .product-card-pro__title a:hover {
    color: var(--primary-color, #0BB38C);
}

/* Prezzo - font-size aumentato per prominenza */
.bestseller-slider-section .product-card-pro__price {
    font-size: 24px; /* Aumentato da 22px */
    font-weight: 700;
    color: var(--primary-color, #0BB38C);
    line-height: 1.2;
}

.bestseller-slider-section .product-card-pro__price del {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-light, #999);
    margin-left: 8px;
}

.bestseller-slider-section .product-card-pro__price ins {
    text-decoration: none;
}

/* Rating - spacing ottimizzato */
.bestseller-slider-section .product-card-pro__rating {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Button - proporzioni ottimizzate per desktop */
.bestseller-slider-section .product-card-pro__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px; /* Ottimizzato per single-line text */
    border-radius: 8px;
    font-size: 12px; /* Ridotto per evitare wrapping */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: auto;
    white-space: nowrap; /* Impedisce line break */
}

.bestseller-slider-section .product-card-pro__btn--cart {
    background: var(--primary-color, #0BB38C);
    color: white;
    border: 2px solid var(--primary-color, #0BB38C);
}

.bestseller-slider-section .product-card-pro__btn--cart:hover {
    background: white;
    color: var(--primary-color, #0BB38C);
    transform: translateY(-1px); /* Ridotto da -2px - più sottile */
    box-shadow: 0 3px 10px rgba(11, 179, 140, 0.2); /* Shadow ridotto */
}

.bestseller-slider-section .product-card-pro__btn svg {
    flex-shrink: 0;
    width: 16px; /* Ridotto da 18px per proporzioni button */
    height: 16px;
}

/* Brand Badge - ottimizzato per slider */
.bestseller-slider-section .product-brand-badge {
    position: absolute;
    bottom: 16px; /* Aumentato da 12px */
    left: 16px; /* Aumentato da 12px */
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px; /* Aumentato da 12px */
    padding: 10px 14px; /* Aumentato da 8px 12px */
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); /* Shadow più prominente */
    backdrop-filter: blur(10px);
    z-index: 3;
    transition: all 0.3s ease;
}

.bestseller-slider-section .product-card-pro:hover .product-brand-badge {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.bestseller-slider-section .product-brand-badge__image {
    width: 36px; /* Aumentato da 32px */
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bestseller-slider-section .product-brand-badge__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bestseller-slider-section .product-brand-badge__label {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-color, #0BB38C);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Badge top (Offerta/Esaurito) - ottimizzati */
.bestseller-slider-section .product-card-pro__badges {
    position: absolute;
    top: 16px; /* Aumentato da 12px */
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 3;
}

.bestseller-slider-section .product-badge {
    padding: 8px 16px; /* Aumentato da 6px 14px */
    border-radius: 24px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Empty State (quando nessun bestseller) */
.bestseller-empty-state {
    text-align: center;
    padding: 80px 20px;
}

.bestseller-empty-state svg {
    opacity: 0.3;
    margin: 0 auto 20px;
    display: block;
}

.bestseller-empty-state h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.bestseller-empty-state p {
    color: var(--text-tertiary);
    margin-bottom: 24px;
    font-size: 16px;
}

/* Splide Track Wrapper */
#bestseller-slider {
    min-height: 450px; /* CLS prevention: reserve space */
}

#bestseller-slider .splide__track {
    padding: 10px 0 20px; /* Spazio per box-shadow hover */
}

#bestseller-slider .splide__slide {
    display: flex; /* Assicura altezza uniforme cards */
    height: auto;
}

#bestseller-slider .splide__slide .product-card-pro {
    width: 100%;
    height: 100%;
}

/* Custom Navigation Arrows - Design moderno coerente con tema */
.bestseller-arrow {
    width: 44px; /* Ridotto da 48px */
    height: 44px;
    background: var(--primary-color, #0BB38C); /* Background teal diretto */
    border: 1.5px solid var(--primary-color, #0BB38C);
    border-radius: 50%;
    opacity: 1;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 14px rgba(11, 179, 140, 0.35); /* Shadow teal più intenso */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    backdrop-filter: blur(4px); /* Glassmorphism */
}

.bestseller-arrow--prev {
    left: -22px; /* Ridotto da -24px */
}

.bestseller-arrow--next {
    right: -22px;
}

.bestseller-arrow:hover:not(:disabled) {
    background: var(--primary-color, #0BB38C);
    border-color: var(--primary-color, #0BB38C);
    box-shadow: 0 6px 20px rgba(11, 179, 140, 0.45); /* Shadow più intenso on hover */
    transform: translateY(-50%) scale(1.08);
}

.bestseller-arrow svg {
    fill: none;
    stroke: white; /* Bianco diretto per contrasto su teal */
    stroke-width: 2.5;
    stroke-linecap: round; /* Bordi arrotondati */
    stroke-linejoin: round;
    transition: stroke 0.25s ease;
    width: 18px; /* Ridotto da 20px */
    height: 18px;
}

.bestseller-arrow:hover:not(:disabled) svg {
    stroke: white; /* Rimane bianco */
}

.bestseller-arrow:disabled {
    opacity: 0.25; /* Ridotto da 0.3 - più invisibile */
    cursor: not-allowed;
    box-shadow: none;
    border-color: #e0e0e0;
}

.bestseller-arrow:disabled:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: #e0e0e0;
    transform: translateY(-50%) scale(1);
}

.bestseller-arrow:focus-visible {
    outline: 2px solid var(--primary-color, #0BB38C);
    outline-offset: 3px;
}

/* ============================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablet Landscape (1024px - 1280px) */
@media (max-width: 1280px) {
    .bestseller-slider-section {
        margin-top: 70px; /* Ridotto da 80px */
    }

    .bestseller-slider-header h2 {
        font-size: 32px;
    }

    .bestseller-slider-header p {
        font-size: 16px;
    }

    #bestseller-slider {
        min-height: 420px;
    }

    /* Card ottimizzazioni tablet landscape */
    .bestseller-slider-section .product-card-pro__content {
        padding: 20px;
        gap: 14px;
        min-height: 170px;
    }

    .bestseller-slider-section .product-card-pro__title {
        font-size: 15px;
        min-height: 45px; /* 15px * 1.5 * 2 */
    }

    .bestseller-slider-section .product-card-pro__price {
        font-size: 22px;
    }

    .bestseller-slider-section .product-card-pro__btn {
        padding: 11px 16px; /* Progressione logica da desktop */
        font-size: 12px;
    }

    .bestseller-slider-section .product-brand-badge {
        bottom: 14px;
        left: 14px;
        padding: 8px 12px;
    }

    .bestseller-slider-section .product-brand-badge__image {
        width: 32px;
        height: 32px;
    }
}

/* Tablet Portrait (768px - 1024px) */
@media (max-width: 1024px) {
    .bestseller-slider-section {
        margin-top: 60px; /* Ridotto da 70px */
    }

    .bestseller-slider-header h2 {
        font-size: 28px;
    }

    .bestseller-arrow {
        width: 40px; /* Ridotto da 42px */
        height: 40px;
    }

    .bestseller-arrow svg {
        width: 16px;
        height: 16px;
    }

    .bestseller-arrow--prev {
        left: -20px; /* Ridotto da -16px */
    }

    .bestseller-arrow--next {
        right: -20px;
    }

    #bestseller-slider {
        min-height: 400px;
    }

    /* Card ottimizzazioni tablet portrait */
    .bestseller-slider-section .product-card-pro__content {
        padding: 18px;
        gap: 12px;
        min-height: 160px;
    }

    .bestseller-slider-section .product-card-pro__title {
        font-size: 14px;
        min-height: 42px; /* 14px * 1.5 * 2 */
    }

    .bestseller-slider-section .product-card-pro__price {
        font-size: 20px;
    }

    .bestseller-slider-section .product-card-pro__btn {
        padding: 11px 18px;
        font-size: 13px;
    }

    .bestseller-slider-section .product-brand-badge {
        bottom: 12px;
        left: 12px;
        padding: 7px 10px;
        gap: 8px;
    }

    .bestseller-slider-section .product-brand-badge__image {
        width: 28px;
        height: 28px;
    }

    .bestseller-slider-section .product-brand-badge__label {
        font-size: 10px;
    }
}

/* Mobile Large (480px - 768px) */
@media (max-width: 768px) {
    .bestseller-slider-section {
        margin-top: 40px; /* Ridotto da 60px */
        margin-bottom: 40px;
    }

    .bestseller-slider-header {
        margin-bottom: 30px;
    }

    .bestseller-slider-header h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .bestseller-slider-header p {
        font-size: 14px;
    }

    .bestseller-arrow {
        width: 36px;
        height: 36px;
    }

    .bestseller-arrow svg {
        width: 16px;
        height: 16px;
    }

    .bestseller-arrow--prev {
        left: -12px;
    }

    .bestseller-arrow--next {
        right: -12px;
    }

    #bestseller-slider {
        min-height: 400px;
    }

    .bestseller-empty-state {
        padding: 60px 20px;
    }

    .bestseller-empty-state h3 {
        font-size: 20px;
    }

    /* Card ottimizzazioni mobile */
    .bestseller-slider-section .product-card-pro__content {
        padding: 16px;
        gap: 12px;
        min-height: 150px;
    }

    .bestseller-slider-section .product-card-pro__title {
        font-size: 14px;
        min-height: 42px;
    }

    .bestseller-slider-section .product-card-pro__price {
        font-size: 20px;
    }

    .bestseller-slider-section .product-card-pro__btn {
        padding: 12px 16px;
        font-size: 13px;
    }

    .bestseller-slider-section .product-brand-badge {
        bottom: 10px;
        left: 10px;
        padding: 6px 8px;
        gap: 6px;
        border-radius: 10px;
    }

    .bestseller-slider-section .product-brand-badge__image {
        width: 24px;
        height: 24px;
    }

    .bestseller-slider-section .product-brand-badge__label {
        font-size: 9px;
    }

    .bestseller-slider-section .product-card-pro__badges {
        top: 12px;
        right: 12px;
    }

    .bestseller-slider-section .product-badge {
        padding: 6px 12px;
        font-size: 11px;
    }

    /* Riduzione spazi immagine su tablet */
    .bestseller-slider-section .product-card-pro__image {
        padding-top: 36px;
    }

    .bestseller-slider-section .product-card-pro__image-link {
        width: calc(100% - 28px);
        height: calc(100% - 36px);
        margin: 0 14px 14px 14px;
    }

    .sale-products-slider-section .product-card-pro__image {
        padding-top: 36px;
    }

    .sale-products-slider-section .product-card-pro__image-link {
        width: calc(100% - 28px);
        height: calc(100% - 36px);
        margin: 0 14px 14px 14px;
    }
}

/* Mobile Small (< 480px) */
@media (max-width: 480px) {
    .bestseller-slider-section {
        margin-top: 30px; /* Compatto per mobile */
    }

    .bestseller-slider-header h2 {
        font-size: 22px;
    }

    .bestseller-arrow {
        width: 32px;
        height: 32px;
    }

    .bestseller-arrow svg {
        width: 14px;
        height: 14px;
    }

    .bestseller-arrow--prev {
        left: -8px;
    }

    .bestseller-arrow--next {
        right: -8px;
    }

    #bestseller-slider {
        min-height: 380px;
    }

    .bestseller-empty-state {
        padding: 40px 15px;
    }

    .bestseller-empty-state svg {
        width: 60px;
        height: 60px;
    }

    /* Card ottimizzazioni mobile small */
    .bestseller-slider-section .product-card-pro__content {
        padding: 14px;
        gap: 10px;
        min-height: 140px;
    }

    .bestseller-slider-section .product-card-pro__title {
        font-size: 13px;
        min-height: 39px; /* 13px * 1.5 * 2 */
    }

    .bestseller-slider-section .product-card-pro__price {
        font-size: 18px;
    }

    .bestseller-slider-section .product-card-pro__btn {
        padding: 11px 14px;
        font-size: 12px;
        gap: 8px;
    }

    .bestseller-slider-section .product-brand-badge {
        bottom: 8px;
        left: 8px;
        padding: 5px 7px;
        gap: 5px;
        border-radius: 8px;
    }

    .bestseller-slider-section .product-brand-badge__image {
        width: 20px;
        height: 20px;
    }

    .bestseller-slider-section .product-brand-badge__label {
        font-size: 8px;
        letter-spacing: 0.3px;
    }

    .bestseller-slider-section .product-card-pro__badges {
        top: 10px;
        right: 10px;
        gap: 6px;
    }

    .bestseller-slider-section .product-badge {
        padding: 5px 10px;
        font-size: 10px;
    }

    /* Riduzione spazi immagine su mobile small */
    .bestseller-slider-section .product-card-pro__image {
        padding-top: 32px;
    }

    .bestseller-slider-section .product-card-pro__image-link {
        width: calc(100% - 24px);
        height: calc(100% - 32px);
        margin: 0 12px 12px 12px;
    }

    .sale-products-slider-section .product-card-pro__image {
        padding-top: 32px;
    }

    .sale-products-slider-section .product-card-pro__image-link {
        width: calc(100% - 24px);
        height: calc(100% - 32px);
        margin: 0 12px 12px 12px;
    }
}

/* ============================================================================
   LOADING STATE (opzionale skeleton)
   ========================================================================== */

#bestseller-slider.is-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: bestseller-skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes bestseller-skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ============================================================================
   ACCESSIBILITY
   ========================================================================== */

/* Screen reader only text per live region */
.screen-reader-text,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Allow screen reader text to be focusable when navigated to via keyboard */
.screen-reader-text:focus,
.sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: var(--space-sm) var(--space-md);
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--primary-color);
    color: white;
    border-radius: var(--border-radius-sm);
    z-index: 100000;
}

/* Focus visible per keyboard navigation */
#bestseller-slider .splide__slide:focus-visible {
    outline: 2px solid var(--primary-color, #0BB38C);
    outline-offset: 4px;
    border-radius: 8px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    #bestseller-slider,
    .bestseller-arrow,
    .bestseller-arrow svg {
        transition: none !important;
        animation: none !important;
    }

    #bestseller-slider .splide__slide {
        scroll-snap-align: start;
    }
}

/* ============================================================================
   SALE PRODUCTS SLIDER - Prodotti in Offerta
   ========================================================================== */

/*
 * Riutilizza tutti gli stili del bestseller-slider con classe condivisa
 * Aggiunge solo specifiche necessarie per il secondo slider
 */

.sale-products-slider-section {
    margin-top: 80px; /* Spaziatura dalla sezione precedente */
    margin-bottom: 80px;
    padding: 0;
    background: white;
    overflow-x: hidden; /* Previene overflow da frecce negative */
}

/* Immagine - container con padding-top per spazio badge */
.sale-products-slider-section .product-card-pro__image {
    aspect-ratio: 1 / 1;
    background: #f9fafb;
    overflow: hidden;
    position: relative;
    padding-top: 40px; /* Spazio dedicato badge top */
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.sale-products-slider-section .product-card-pro__image-link {
    width: calc(100% - 32px);
    height: calc(100% - 40px);
    display: block;
    margin: 0 16px 16px 16px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.sale-products-slider-section .product-card-pro__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.sale-products-slider-section .product-card-pro:hover .product-card-pro__image img {
    transform: scale(1.05);
}

/* Badge positioning nell'area dedicata top */
.sale-products-slider-section .product-card-pro__badges {
    top: 10px;
    right: 12px;
}

/* Badge Offerta - Override con colori tema per massimo impatto */
.sale-products-slider-section .product-badge--sale {
    background: var(--gradient-sale);
    color: white;
    font-size: 13px;
    font-weight: 800;
    padding: 6px 12px;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 12px rgba(11, 179, 140, 0.4);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Animazione pulse per attirare attenzione */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 3px 12px rgba(11, 179, 140, 0.4);
    }
    50% {
        box-shadow: 0 4px 16px rgba(11, 179, 140, 0.6);
    }
}

/* Arrow styling - identico al bestseller */
.sale-products-arrow {
    width: 44px; /* Ridotto da 48px */
    height: 44px;
    background: var(--primary-color, #0BB38C); /* Background teal diretto */
    border: 1.5px solid var(--primary-color, #0BB38C);
    border-radius: 50%;
    opacity: 1;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 14px rgba(11, 179, 140, 0.35); /* Shadow teal più intenso */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    backdrop-filter: blur(4px); /* Glassmorphism */
}

.sale-products-arrow--prev {
    left: -22px; /* Ridotto da -24px */
}

.sale-products-arrow--next {
    right: -22px;
}

.sale-products-arrow:hover:not(:disabled) {
    background: var(--primary-color, #0BB38C);
    border-color: var(--primary-color, #0BB38C);
    box-shadow: 0 6px 20px rgba(11, 179, 140, 0.45); /* Shadow più intenso on hover */
    transform: translateY(-50%) scale(1.08);
}

.sale-products-arrow svg {
    fill: none;
    stroke: white; /* Bianco diretto per contrasto su teal */
    stroke-width: 2.5;
    stroke-linecap: round; /* Bordi arrotondati */
    stroke-linejoin: round;
    transition: stroke 0.25s ease;
    width: 18px; /* Ridotto da 20px */
    height: 18px;
}

.sale-products-arrow:hover:not(:disabled) svg {
    stroke: white; /* Rimane bianco */
}

.sale-products-arrow:disabled {
    opacity: 0.25; /* Ridotto da 0.3 - più invisibile */
    cursor: not-allowed;
    box-shadow: none;
    border-color: #e0e0e0;
}

.sale-products-arrow:disabled:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: #e0e0e0;
    transform: translateY(-50%) scale(1);
}

.sale-products-arrow:focus-visible {
    outline: 2px solid var(--primary-color, #0BB38C);
    outline-offset: 3px;
}

/* Responsive adjustments */
@media (max-width: 1280px) {
    .sale-products-slider-section {
        margin-top: 70px;
        margin-bottom: 70px;
    }
}

@media (max-width: 1024px) {
    .sale-products-slider-section {
        margin-top: 60px;
        margin-bottom: 60px;
    }

    .sale-products-arrow {
        width: 40px; /* Ridotto da 42px */
        height: 40px;
    }

    .sale-products-arrow svg {
        width: 16px;
        height: 16px;
    }

    .sale-products-arrow--prev {
        left: -20px; /* Ridotto da -16px */
    }

    .sale-products-arrow--next {
        right: -20px;
    }
}

@media (max-width: 768px) {
    .sale-products-slider-section {
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .sale-products-arrow {
        width: 36px;
        height: 36px;
    }

    .sale-products-arrow svg {
        width: 16px;
        height: 16px;
    }

    .sale-products-arrow--prev {
        left: -12px;
    }

    .sale-products-arrow--next {
        right: -12px;
    }
}

@media (max-width: 480px) {
    .sale-products-slider-section {
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .sale-products-arrow {
        width: 32px;
        height: 32px;
    }

    .sale-products-arrow svg {
        width: 14px;
        height: 14px;
    }

    .sale-products-arrow--prev {
        left: -8px;
    }

    .sale-products-arrow--next {
        right: -8px;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .sale-products-arrow,
    .sale-products-arrow svg,
    .sale-products-slider-section .product-badge--sale {
        transition: none !important;
        animation: none !important;
    }
}

/* Print Styles */
@media print {
    .sale-products-arrow {
        display: none !important;
    }

    #sale-products-slider .splide__list {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
        gap: 20px !important;
    }
}

/* ============================================================================
   BRANDS SLIDER - Showcase Marchi
   ========================================================================== */

.brands-slider-section {
    padding: 60px 0;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
    position: relative;
}

.brands-slider-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--border-color) 20%,
        var(--border-color) 80%,
        transparent 100%
    );
}

/* Header */
.brands-slider-header {
    text-align: center;
    margin-bottom: 50px;
}

.brands-slider-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 12px;
    line-height: 1.2;
}

.brands-slider-subtitle {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Brand Logo Card */
.brand-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    padding: 20px;
}

.brand-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 121px; /* Dimensione originale immagini */
    height: 67px; /* Dimensione originale immagini */
    transition: all 0.3s ease;
}

.brand-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Mantiene aspect ratio senza sgranare */
    filter: grayscale(100%) opacity(0.7); /* Grayscale di default */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover Effect - Ritorna a colori */
.brand-logo-card:hover .brand-logo-image {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

/* Placeholder per immagini mancanti */
.brand-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 121px;
    height: 67px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px dashed var(--border-color);
    border-radius: 4px;
    color: var(--text-light);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    padding: 8px;
}

/* Optional CTA */
.brands-cta {
    text-align: center;
    margin-top: 40px;
}

/* Responsive Adjustments */
@media (max-width: 1280px) {
    .brands-slider-section {
        padding: 50px 0;
    }

    .brands-slider-header h2 {
        font-size: 28px;
    }

    .brands-slider-subtitle {
        font-size: 15px;
    }

    .brand-logo-card {
        min-height: 90px;
        padding: 18px;
    }
}

@media (max-width: 1024px) {
    .brands-slider-section {
        padding: 45px 0;
    }

    .brands-slider-header {
        margin-bottom: 40px;
    }

    .brands-slider-header h2 {
        font-size: 26px;
    }

    .brand-logo-card {
        min-height: 80px;
        padding: 15px;
    }

    .brand-logo-wrapper {
        max-width: 110px;
        height: 61px;
    }
}

@media (max-width: 768px) {
    .brands-slider-section {
        padding: 40px 0;
    }

    .brands-slider-header {
        margin-bottom: 35px;
    }

    .brands-slider-header h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .brands-slider-subtitle {
        font-size: 14px;
    }

    .brand-logo-card {
        min-height: 75px;
        padding: 12px;
    }

    .brand-logo-wrapper {
        max-width: 100px;
        height: 55px;
    }

    /* No hover effect su mobile/touch */
    .brand-logo-image {
        filter: grayscale(100%) opacity(0.8);
    }
}

@media (max-width: 480px) {
    .brands-slider-section {
        padding: 35px 0;
    }

    .brands-slider-header h2 {
        font-size: 22px;
    }

    .brand-logo-card {
        min-height: 70px;
        padding: 10px;
    }

    .brand-logo-wrapper {
        max-width: 90px;
        height: 50px;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .brand-logo-image,
    .brand-logo-wrapper {
        transition: none !important;
        animation: none !important;
    }

    .brand-logo-card:hover .brand-logo-image {
        transform: none;
    }

    /* Disable autoplay via JS quando prefers-reduced-motion */
    #brands-slider {
        scroll-behavior: auto;
    }
}

/* Print Styles */
@media print {
    .brands-slider-section {
        padding: 30px 0;
        background: white;
    }

    #brands-slider .splide__list {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
        gap: 15px !important;
    }

    .brand-logo-image {
        filter: none !important;
    }
}

/* ============================================================================
   CTA CARDS SECTION - Chi Siamo & Impegno
   ========================================================================== */

.cta-cards-section {
    padding: 80px 0;
    background: white;
}

/* Cards Grid */
.cta-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* Single Card */
.cta-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Link Wrapper */
.cta-card__link {
    display: block;
    position: relative;
    height: 400px; /* Altezza fissa per aspect ratio 2:1 */
    text-decoration: none;
    color: white;
}

.cta-card__link:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
}

/* Background Image */
.cta-card__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover; /* Cover per riempire senza distorcere */
    background-position: center center;
    background-repeat: no-repeat;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-card:hover .cta-card__background {
    transform: scale(1.05); /* Subtle zoom on hover */
}

/* Gradient Overlay per leggibilità */
.cta-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
    transition: background 0.4s ease;
}

.cta-card:hover .cta-card__overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.75) 100%
    );
}

/* Content */
.cta-card__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
}

/* Icon */
.cta-card__icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.cta-card__icon svg {
    width: 28px;
    height: 28px;
    color: white;
    transition: transform 0.3s ease;
}

.cta-card:hover .cta-card__icon {
    background: var(--primary-color);
    transform: scale(1.1);
}

.cta-card:hover .cta-card__icon svg {
    transform: rotate(5deg);
}

/* Title */
.cta-card__title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Description */
.cta-card__description {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 24px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* CTA Button */
.cta-card__button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: white;
    color: var(--secondary-color);
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.cta-card__arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.cta-card:hover .cta-card__button {
    background: var(--primary-color);
    color: white;
    transform: translateX(4px);
}

.cta-card:hover .cta-card__arrow {
    transform: translateX(4px);
}

/* Responsive Adjustments */
@media (max-width: 1280px) {
    .cta-cards-section {
        padding: 70px 0;
    }

    .cta-cards-grid {
        gap: 28px;
    }

    .cta-card__link {
        height: 380px;
    }

    .cta-card__content {
        padding: 36px;
    }

    .cta-card__title {
        font-size: 26px;
    }

    .cta-card__description {
        font-size: 15px;
    }
}

@media (max-width: 1024px) {
    .cta-cards-section {
        padding: 60px 0;
    }

    .cta-cards-grid {
        gap: 24px;
    }

    .cta-card__link {
        height: 360px;
    }

    .cta-card__content {
        padding: 32px;
    }

    .cta-card__icon {
        width: 52px;
        height: 52px;
        margin-bottom: 20px;
    }

    .cta-card__icon svg {
        width: 26px;
        height: 26px;
    }

    .cta-card__title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .cta-cards-section {
        padding: 50px 0;
    }

    /* Stack cards verticalmente su mobile */
    .cta-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cta-card__link {
        height: 340px;
    }

    .cta-card__content {
        padding: 28px;
    }

    .cta-card__icon {
        width: 48px;
        height: 48px;
        margin-bottom: 18px;
    }

    .cta-card__icon svg {
        width: 24px;
        height: 24px;
    }

    .cta-card__title {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .cta-card__description {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .cta-card__button {
        padding: 12px 24px;
        font-size: 14px;
    }

    /* Ridotto hover effect su mobile */
    .cta-card:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 480px) {
    .cta-cards-section {
        padding: 40px 0;
    }

    .cta-card__link {
        height: 320px;
    }

    .cta-card__content {
        padding: 24px;
    }

    .cta-card__title {
        font-size: 20px;
    }

    .cta-card__description {
        font-size: 14px;
        line-height: 1.5;
    }

    .cta-card__button {
        padding: 11px 20px;
        font-size: 13px;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .cta-card,
    .cta-card__background,
    .cta-card__overlay,
    .cta-card__icon,
    .cta-card__icon svg,
    .cta-card__button,
    .cta-card__arrow {
        transition: none !important;
        animation: none !important;
    }

    .cta-card:hover {
        transform: none;
    }

    .cta-card:hover .cta-card__background {
        transform: none;
    }

    .cta-card:hover .cta-card__button {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .cta-cards-section {
        padding: 30px 0;
    }

    .cta-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cta-card__link {
        height: auto;
        min-height: 250px;
    }

    .cta-card__background {
        opacity: 0.3;
    }

    .cta-card__overlay {
        background: none;
    }

    .cta-card__content {
        color: black !important;
    }

    .cta-card__title,
    .cta-card__description {
        color: black !important;
        text-shadow: none !important;
    }
}

/* ============================================================================
   SERVICES SECTION - I Nostri Servizi
   ========================================================================== */

.services-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--border-color) 20%,
        var(--border-color) 80%,
        transparent 100%
    );
}

/* Header */
.services-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.services-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 16px;
    line-height: 1.2;
}

.services-subtitle {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Service Card */
.service-card {
    position: relative;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #0dd9a7);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(11, 179, 140, 0.15);
    border-color: var(--primary-color);
}

/* Link Wrapper */
.service-card__link {
    display: block;
    padding: 40px 32px;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.service-card__link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

/* Icon Container */
.service-card__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(11, 179, 140, 0.1), rgba(11, 179, 140, 0.05));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card__icon svg {
    width: 36px;
    height: 36px;
    color: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-card__icon {
    background: var(--primary-color);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 16px rgba(11, 179, 140, 0.25);
}

.service-card:hover .service-card__icon svg {
    color: white;
    transform: scale(1.1);
}

/* Content */
.service-card__content {
    text-align: center;
}

.service-card__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 16px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.service-card:hover .service-card__title {
    color: var(--primary-color);
}

.service-card__description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 24px;
    min-height: 100px; /* Uniformità altezza card */
}

/* Arrow Indicator */
.service-card__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(11, 179, 140, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.service-card__arrow svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.service-card:hover .service-card__arrow {
    background: var(--primary-color);
}

.service-card:hover .service-card__arrow svg {
    color: white;
    transform: translateX(4px);
}

/* ============================================================================
   SERVICES SECTION - RESPONSIVE
   ========================================================================== */

/* Tablet Landscape (1024px - 1280px) */
@media (max-width: 1280px) {
    .services-section {
        padding: 70px 0;
    }

    .services-header {
        margin-bottom: 50px;
    }

    .services-title {
        font-size: 36px;
    }

    .services-subtitle {
        font-size: 17px;
    }

    .services-grid {
        gap: 28px;
    }

    .service-card__link {
        padding: 36px 28px;
    }

    .service-card__icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }

    .service-card__icon svg {
        width: 32px;
        height: 32px;
    }

    .service-card__title {
        font-size: 20px;
    }

    .service-card__description {
        font-size: 14px;
        min-height: 90px;
    }
}

/* Tablet Portrait (768px - 1024px) */
@media (max-width: 1024px) {
    .services-section {
        padding: 60px 0;
    }

    .services-header {
        margin-bottom: 40px;
    }

    .services-title {
        font-size: 32px;
    }

    .services-subtitle {
        font-size: 16px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* Terza card a full width su tablet portrait */
    .service-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 600px;
        margin: 0 auto;
    }

    .service-card__link {
        padding: 32px 24px;
    }

    .service-card__description {
        min-height: 85px;
    }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
    .services-section {
        padding: 50px 0;
    }

    .services-header {
        margin-bottom: 36px;
    }

    .services-title {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .services-subtitle {
        font-size: 15px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card:nth-child(3) {
        grid-column: auto;
        max-width: 100%;
    }

    .service-card__link {
        padding: 32px 24px;
    }

    .service-card__icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .service-card__icon svg {
        width: 30px;
        height: 30px;
    }

    .service-card__title {
        font-size: 20px;
        margin-bottom: 14px;
    }

    .service-card__description {
        font-size: 14px;
        margin-bottom: 20px;
        min-height: auto; /* Rimuovi min-height su mobile */
    }

    .service-card:hover {
        transform: translateY(-4px); /* Ridotto per mobile */
    }
}

/* Mobile Small (max 480px) */
@media (max-width: 480px) {
    .services-section {
        padding: 40px 0;
    }

    .services-title {
        font-size: 24px;
    }

    .services-subtitle {
        font-size: 14px;
    }

    .service-card__link {
        padding: 28px 20px;
    }

    .service-card__icon {
        width: 56px;
        height: 56px;
        margin-bottom: 18px;
    }

    .service-card__icon svg {
        width: 28px;
        height: 28px;
    }

    .service-card__title {
        font-size: 18px;
    }

    .service-card__description {
        font-size: 14px;
        line-height: 1.6;
    }

    .service-card__arrow {
        width: 36px;
        height: 36px;
    }

    .service-card__arrow svg {
        width: 18px;
        height: 18px;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .service-card,
    .service-card__icon,
    .service-card__icon svg,
    .service-card__arrow svg {
        transition: none !important;
        animation: none !important;
    }

    .service-card:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .services-section {
        padding: 40px 0;
        background: white;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .service-card__arrow {
        display: none;
    }
}

/* ============================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .bestseller-arrow,
    #bestseller-sr-live {
        display: none !important;
    }

    #bestseller-slider .splide__list {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
        gap: 20px !important;
    }
}

/* ============================================================================
   ENVIRONMENTAL COMMITMENT SECTION - Impegno Ambientale Pre-Footer
   ========================================================================== */

.environmental-commitment-section {
    padding: 60px 0 60px;
    background: #f8faf9;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

/* Decorative Background Elements */
.env-bg-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: var(--primary-color, #0BB38C);
    opacity: 0.03;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

/* Container Layout */
.environmental-commitment-section .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* Header - Left Side */
.env-header {
    flex: 1;
    max-width: 500px;
}

.env-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(11, 179, 140, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(11, 179, 140, 0.2);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--primary-color, #0BB38C);
    margin-bottom: 20px;
}

.env-badge__icon {
    width: 16px;
    height: 16px;
    stroke: var(--primary-color, #0BB38C);
}

.env-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-dark, #1a1a1a);
}

.env-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light, #6b7280);
    margin: 0;
}

/* Stats Grid - Right Side */
.env-stats-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Stat Card - Minimal & Clean */
.env-stat-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.env-stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color, #0BB38C);
    box-shadow: 0 8px 24px rgba(11, 179, 140, 0.12);
}

/* Icon - Minimal */
.env-stat-card__icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    padding: 8px;
    background: rgba(11, 179, 140, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.env-stat-card__icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--primary-color, #0BB38C);
}

.env-stat-card:hover .env-stat-card__icon {
    background: var(--primary-color, #0BB38C);
}

.env-stat-card:hover .env-stat-card__icon svg {
    stroke: white;
}

/* Content */
.env-stat-card__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.env-stat-card__number {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    color: var(--text-dark, #1a1a1a);
    letter-spacing: -0.5px;
}

.env-stat-card__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark, #1a1a1a);
    margin: 0;
    line-height: 1.3;
}

.env-stat-card__description {
    font-size: 12px;
    color: var(--text-light, #6b7280);
    line-height: 1.4;
    margin: 0;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .environmental-commitment-section .container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .env-header {
        max-width: 100%;
    }

    .env-stats-grid {
        width: 100%;
    }

    .env-title {
        font-size: 32px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .environmental-commitment-section {
        padding: 50px 0;
    }

    .environmental-commitment-section .container {
        gap: 32px;
    }

    .env-title {
        font-size: 28px;
    }

    .env-description {
        font-size: 15px;
    }

    .env-stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .env-stat-card {
        padding: 20px 16px;
    }

    .env-stat-card__number {
        font-size: 28px;
    }

    .env-stat-card__label {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .environmental-commitment-section {
        padding: 40px 0;
    }

    .env-title {
        font-size: 24px;
    }

    .env-badge {
        font-size: 11px;
        padding: 6px 14px;
    }

    .env-stat-card__number {
        font-size: 26px;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .env-stat-card,
    .env-stat-card__icon {
        transition: none !important;
    }

    .env-stat-card:hover {
        transform: none;
    }
}

/* ============================================================================
   FOOTER - Modern Clean Design
   ========================================================================== */

.site-footer {
    background: var(--primary-color, #0BB38C);
    color: white;
    padding: 60px 0 0;
    position: relative;
    border-top: none;
    margin-top: 0;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.25s ease;
}

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

/* Footer Main - 4 Columns Grid */
.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Footer Column */
.footer-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-column__title {
    font-size: 15px;
    font-weight: 700;
    color: white;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Column 1: Company Info */
.footer-column--company {
    grid-column: span 1;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo img {
    max-width: 160px;
    height: auto;
}

.footer-brand a {
    font-size: 22px;
    font-weight: 800;
    color: white;
    text-decoration: none;
}

.footer-company-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    line-height: 1.6;
}

.footer-company-info p {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-company-info .icon {
    flex-shrink: 0;
    margin-top: 2px;
    stroke: white;
}

.company-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

/* Column 2 & 3: Nav Links */
.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav li {
    margin: 0;
}

.footer-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 2px 0;
    transition: all 0.25s ease;
    color: rgba(255, 255, 255, 0.85);
}

.footer-nav a:hover {
    padding-left: 6px;
    color: white;
}

.footer-nav .link-icon {
    width: 12px;
    height: 12px;
    stroke: white;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.25s ease;
}

.footer-nav a:hover .link-icon {
    opacity: 1;
    transform: translateX(0);
}

/* Column 4: Social */
.footer-social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: white;
    transition: fill 0.3s ease;
}

.social-link--facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-link--facebook:hover svg {
    fill: white;
}

.social-link--instagram:hover {
    background: linear-gradient(135deg, #F58529 0%, #DD2A7B 50%, #8134AF 100%);
    border-color: #DD2A7B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-link--instagram:hover svg {
    fill: white;
}

.social-link--linkedin:hover {
    background: #0A66C2;
    border-color: #0A66C2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-link--linkedin:hover svg {
    fill: white;
}

.footer-social-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin-top: 6px;
}

/* Footer Bottom */
.footer-bottom {
    padding: 24px 0;
}

.footer-bottom__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.footer-stats__text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.5;
}

.footer-powered {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-weight: 600;
}

.footer-payment {
    flex: 0 0 auto;
}

.footer-payment__image {
    max-width: 280px;
    height: auto;
    opacity: 0.85;
    transition: opacity 0.25s ease;
}

.footer-payment__image:hover {
    opacity: 1;
}

.footer-copyright {
    flex: 0 0 auto;
}

.footer-copyright p {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .footer-column--company {
        grid-column: span 2;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 0;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 32px;
    }

    .footer-column--company {
        grid-column: span 1;
    }

    .footer-bottom__content {
        flex-direction: column;
        text-align: center;
    }

    .footer-stats {
        order: 1;
        text-align: center;
    }

    .footer-payment {
        order: 2;
    }

    .footer-payment__image {
        max-width: 240px;
    }

    .footer-copyright {
        order: 3;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 30px 0 0;
    }

    .footer-main {
        gap: 28px;
        padding-bottom: 28px;
    }

    .footer-column__title {
        font-size: 14px;
    }

    .footer-company-info {
        font-size: 12px;
    }

    .footer-nav a {
        font-size: 12px;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

    .social-link svg {
        width: 16px;
        height: 16px;
    }

    .footer-payment__image {
        max-width: 200px;
    }

    .footer-bottom {
        padding: 20px 0;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .site-footer a,
    .footer-nav a,
    .footer-nav .link-icon,
    .social-link,
    .footer-payment__image {
        transition: none !important;
    }

    .social-link:hover {
        transform: none;
    }

    .footer-nav a:hover {
        padding-left: 0;
    }
}

/* Print Styles */
@media print {
    .environmental-commitment-section {
        background: white;
        color: black;
        padding: 30px 0;
    }

    .env-bg-decoration {
        display: none;
    }

    .env-stat-card {
        background: #f5f5f5;
        border: 1px solid #ddd;
    }

    .env-stat-card__number,
    .env-title,
    .env-stat-card__label {
        color: black;
    }

    .site-footer {
        background: white;
        color: black;
        padding: 20px 0;
    }

    .footer-social-links,
    .footer-payment {
        display: none;
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        border-bottom: 1px solid #ddd;
        padding-bottom: 20px;
    }

    .site-footer a {
        color: black;
    }
}

/* ============================================================================
   BRAND FILTER - Filtro Marche per Categorie
   ========================================================================== */

.brand-filter {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin: 0 0 32px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.brand-filter__container {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Label */
.brand-filter__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark, #1a1a1a);
    flex-shrink: 0;
    white-space: nowrap;
}

.brand-filter__label svg {
    stroke: var(--primary-color, #0BB38C);
    flex-shrink: 0;
}

/* Scroll Container */
.brand-filter__scroll {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb transparent;
}

.brand-filter__scroll::-webkit-scrollbar {
    height: 6px;
}

.brand-filter__scroll::-webkit-scrollbar-track {
    background: transparent;
}

.brand-filter__scroll::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 3px;
}

.brand-filter__scroll::-webkit-scrollbar-thumb:hover {
    background: #d1d5db;
}

/* Items Container */
.brand-filter__items {
    display: flex;
    gap: 10px;
    min-width: min-content;
}

/* Single Item */
.brand-filter__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark, #1a1a1a);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.brand-filter__item:hover {
    background: #f3f4f6;
    border-color: var(--primary-color, #0BB38C);
    color: var(--primary-color, #0BB38C);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(11, 179, 140, 0.15);
}

/* Active State */
.brand-filter__item--active {
    background: var(--primary-color, #0BB38C);
    border-color: var(--primary-color, #0BB38C);
    color: white;
    font-weight: 600;
}

.brand-filter__item--active:hover {
    background: var(--primary-color, #0BB38C);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(11, 179, 140, 0.25);
}

/* Item Name */
.brand-filter__item-name {
    line-height: 1.2;
}

/* Item Count */
.brand-filter__item-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 11px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

.brand-filter__item--active .brand-filter__item-count {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* Reset Button */
.brand-filter__reset {
    display: none; /* Hidden on desktop */
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #dc2626;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.brand-filter__reset:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

.brand-filter__reset svg {
    stroke: #dc2626;
    flex-shrink: 0;
}

.brand-filter__reset-text {
    line-height: 1;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .brand-filter {
        padding: 18px;
        margin-bottom: 28px;
    }

    .brand-filter__container {
        gap: 16px;
    }

    .brand-filter__label {
        font-size: 13px;
    }

    .brand-filter__label svg {
        width: 16px;
        height: 16px;
    }

    .brand-filter__items {
        gap: 8px;
    }

    .brand-filter__item {
        padding: 7px 14px;
        font-size: 12px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .brand-filter {
        padding: 16px;
        margin-bottom: 24px;
        border-radius: 10px;
    }

    .brand-filter__container {
        gap: 12px;
    }

    .brand-filter__label {
        font-size: 12px;
    }

    .brand-filter__label span {
        display: none; /* Hide "Filtra per marca:" text on mobile */
    }

    .brand-filter__label svg {
        width: 18px;
        height: 18px;
    }

    .brand-filter__items {
        gap: 8px;
    }

    .brand-filter__item {
        padding: 8px 12px;
        font-size: 12px;
    }

    .brand-filter__item-count {
        min-width: 20px;
        height: 20px;
        padding: 0 5px;
        font-size: 10px;
    }

    /* Show reset button on mobile */
    .brand-filter__reset {
        display: inline-flex;
    }
}

/* Responsive - Mobile Small */
@media (max-width: 480px) {
    .brand-filter {
        padding: 14px;
        margin-bottom: 20px;
    }

    .brand-filter__container {
        gap: 10px;
    }

    .brand-filter__items {
        gap: 6px;
    }

    .brand-filter__item {
        padding: 7px 10px;
        font-size: 11px;
    }

    .brand-filter__item-count {
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        font-size: 9px;
    }

    .brand-filter__reset {
        padding: 7px 10px;
        font-size: 11px;
    }

    .brand-filter__reset svg {
        width: 14px;
        height: 14px;
    }

    .brand-filter__reset-text {
        display: none; /* Hide "Reset" text, show only icon */
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .brand-filter__item {
        transition: none !important;
    }

    .brand-filter__item:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .brand-filter {
        display: none;
    }
}

/*
===========================================
WOOCOMMERCE CART BLOCK - CUSTOMIZATIONS
===========================================
Fix: Nascondi colonna "Totale" ridondante nella tabella prodotti
Il totale è già mostrato nella sidebar "Totale carrello"
*/

/* Nascondi header colonna "Totale" */
.wc-block-cart-items__header-total {
    display: none;
}

/* Nascondi cella "Totale" per ogni prodotto */
.wc-block-cart-item__total {
    display: none;
}

/* Optional: Espandi colonna "Dettagli" per occupare lo spazio */
.wc-block-cart-item__product {
    flex: 1;
    max-width: 100%;
}

/* Mobile: Assicura buon layout senza colonna totale */
@media (max-width: 768px) {
    .wc-block-cart-items__header-product {
        flex: 1;
    }

    .wc-block-cart-item__product {
        width: 100%;
    }
}



/*
===========================================
BUGFIX: SINGLE PRODUCT PAGE - Z-INDEX E INTERAZIONI
Correzioni per garantire che header, megamenu e icone
funzionino correttamente sulla pagina del prodotto
===========================================
*/

/* Assicura che il contenuto della pagina prodotto non interferisca con header */
body.single-product .site-header {
    z-index: 1000;
    position: sticky;
}

body.single-product .mega-menu-wrapper {
    z-index: 999;
}

body.single-product .mega-menu-dropdown {
    z-index: 1001;
}

body.single-product .header-actions,
body.single-product .header-cart,
body.single-product .header-account {
    z-index: 1001;
    pointer-events: auto;
}

/* Assicura che gli elementi della pagina prodotto non coprano l'header */
body.single-product .single-product-layout,
body.single-product .product-gallery,
body.single-product .product-details {
    z-index: 1;
    position: relative;
}

/* Fix per il widget del finder sulla pagina prodotto */
body.single-product .finder-widget-product {
    z-index: 1;
    position: relative;
}


/* Fix specifico per visualizzare le woocommerce-tabs sulla pagina prodotto */
body.single-product .woocommerce-tabs {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.single-product .woocommerce-tabs .tabs {
    display: flex !important;
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel:first-of-type {
    display: block !important;
}
