/* ═══════════════════════════════════════════════════════════════
   Pro Due Tecno — Stylesheet Demo
   Palette: Blu Navy #0A1628 | Oro #C9A84C | Bianco #F8F6F0
   Font: Cormorant Garamond (titoli) + Inter (body)
   ═══════════════════════════════════════════════════════════════ */

/* ── RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy:       #0A1628;
    --navy-mid:   #122040;
    --navy-light: #1E3560;
    --gold:       #C9A84C;
    --gold-light: #E2C97E;
    --white:      #F8F6F0;
    --gray-100:   #F2F0EA;
    --gray-200:   #E5E1D8;
    --gray-400:   #9E9B93;
    --gray-600:   #6B6860;
    --red:        #B83232;
    --green:      #2E7D4F;

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans:  'Inter', system-ui, sans-serif;

    --radius:     6px;
    --radius-lg:  12px;
    --shadow-sm:  0 1px 4px rgba(10,22,40,.08);
    --shadow-md:  0 4px 20px rgba(10,22,40,.14);
    --shadow-lg:  0 8px 40px rgba(10,22,40,.2);
    --transition: .22s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--gray-100);
    color: var(--navy);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── TOPBAR ────────────────────────────────────────────────── */
.topbar {
    background: var(--navy);
    color: rgba(255,255,255,.75);
    font-size: .78rem;
    padding: .45rem 0;
    letter-spacing: .02em;
}
.topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
}
.topbar__right { display: flex; gap: 1.2rem; align-items: center; }
.topbar__link { color: var(--gold-light); transition: color var(--transition); }
.topbar__link:hover { color: #fff; }

.badge-b2b {
    background: var(--gold);
    color: var(--navy);
    padding: .2rem .7rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: .75rem;
}

/* ── HEADER ────────────────────────────────────────────────── */
.header {
    background: var(--white);
    border-bottom: 2px solid var(--gold);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: .9rem;
    padding-bottom: .9rem;
    flex-wrap: wrap;
}

/* Logo */
.logo { display: flex; align-items: center; gap: .8rem; flex-shrink: 0; }
.logo__img { height: 48px; width: auto; display: block; object-fit: contain; }
.logo__icon { font-size: 2rem; }
.logo__name {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.1;
}
.logo__tag {
    display: block;
    font-size: .68rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 500;
}
@media (max-width: 860px) {
    .logo__tag--ext { display: none; }
}

/* Search */
.search-form {
    flex: 1;
    display: flex;
    min-width: 200px;
    max-width: 440px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.search-form:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}
.search-form__input {
    flex: 1;
    border: none;
    outline: none;
    padding: .6rem 1rem;
    font-family: var(--font-sans);
    font-size: .9rem;
    background: var(--white);
    color: var(--navy);
}
.search-form__btn {
    background: var(--navy);
    color: #fff;
    border: none;
    padding: .6rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background var(--transition);
}
.search-form__btn:hover { background: var(--gold); color: var(--navy); }

/* Nav */
.nav { display: flex; gap: .2rem; flex-wrap: wrap; }
.nav__link {
    padding: .5rem .85rem;
    border-radius: var(--radius);
    font-size: .87rem;
    font-weight: 500;
    color: var(--navy-mid);
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}
.nav__link:hover { background: var(--navy); color: var(--white); }
.nav__link--b2b { color: var(--gold); border: 1px solid var(--gold); }
.nav__link--b2b:hover { background: var(--gold); color: var(--navy); }

/* ── MAIN ──────────────────────────────────────────────────── */
.main { flex: 1; padding: 2.5rem 0 4rem; }

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #2a4a80 100%);
    color: var(--white);
    padding: 4.5rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '⚓';
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12rem;
    opacity: .04;
    pointer-events: none;
}
.hero__eyebrow {
    font-size: .8rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: .6rem;
}
.hero__title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
}
.hero__title span { color: var(--gold); }
.hero__desc {
    font-size: 1.05rem;
    color: rgba(248,246,240,.75);
    max-width: 560px;
    margin-bottom: 2rem;
    line-height: 1.7;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .75rem 1.6rem;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-align: center;
    line-height: 1;
}
.btn-primary {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}
.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(248,246,240,.4);
}
.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255,255,255,.08);
}
.btn-navy {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}
.btn-navy:hover {
    background: var(--navy-light);
    border-color: var(--navy-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-sm { padding: .5rem 1rem; font-size: .82rem; }

/* ── CATALOG LAYOUT ────────────────────────────────────────── */
.catalog-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 2rem;
    align-items: start;
}
@media (max-width: 860px) {
    .catalog-layout { grid-template-columns: 1fr; }
}

/* ── BANNER B2B MOBILE ─────────────────────────────────────── */
.b2b-mobile-banner {
    display: none;
}
@media (max-width: 860px) {
    .b2b-mobile-banner {
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--navy);
        color: var(--white);
        font-size: .85rem;
        padding: .6rem 1rem;
        border-radius: var(--radius);
        margin-bottom: 1rem;
        text-align: center;
    }
    .b2b-mobile-banner a {
        color: var(--gold);
        font-weight: 600;
        margin-left: .25rem;
    }
}

/* ── CHIP CATEGORIA ATTIVA MOBILE ──────────────────────────── */
.mobile-filter-chip {
    display: none;
}
@media (max-width: 860px) {
    .mobile-filter-chip {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: var(--gold);
        color: var(--white);
        font-size: .85rem;
        padding: .5rem .9rem;
        border-radius: 20px;
        margin-bottom: 1rem;
    }
    .mobile-filter-chip__clear {
        background: rgba(255,255,255,.25);
        color: var(--white);
        border-radius: 50%;
        width: 1.4rem;
        height: 1.4rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: .75rem;
        font-weight: 700;
        flex-shrink: 0;
        margin-left: .5rem;
    }
}

/* ── HAMBURGER BUTTON ───────────────────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.4rem;
    height: 2.4rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: .35rem;
    border-radius: var(--radius);
    flex-shrink: 0;
}
.hamburger span {
    display: block;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV MENU ────────────────────────────────────────── */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--white);
    border-top: 2px solid var(--gold);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    position: relative;
    z-index: 200;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu__link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .9rem 1.25rem;
    font-size: .95rem;
    font-weight: 500;
    color: var(--navy);
    border-bottom: 1px solid var(--gray-100);
    transition: background var(--transition), color var(--transition);
}
.mobile-menu__link:hover { background: var(--gray-100); color: var(--gold); }
.mobile-menu__link i { width: 1.1rem; text-align: center; color: var(--gold); flex-shrink: 0; }
.mobile-menu__link--cart { font-weight: 700; color: var(--gold); }
.mobile-menu__link--b2b { background: var(--navy); color: var(--white) !important; font-weight: 600; }
.mobile-menu__link--b2b i { color: var(--gold) !important; }
.mobile-menu__link--b2b:hover { background: var(--gold); color: var(--white) !important; }

/* ── MOBILE FILTER BUTTON ───────────────────────────────────── */
.mobile-filter-btn { display: none; }

/* ── FILTER OVERLAY ─────────────────────────────────────────── */
.filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 1099;
}
.filter-overlay.is-open { display: block; }

/* ── FILTER DRAWER CLOSE ────────────────────────────────────── */
.filter-drawer-close { display: none; }

@media (max-width: 860px) {
    .hamburger { display: flex; }
    .nav { display: none; }

    /* Header mobile: logo+hamburger riga 1, search riga 2 a piena larghezza */
    .header__inner {
        flex-wrap: wrap;
        gap: .6rem .75rem;
        padding-top: .65rem;
        padding-bottom: .65rem;
    }
    .logo { flex: 1; min-width: 0; }
    .search-form {
        order: 3;        /* va sotto logo e hamburger */
        flex: 0 0 100%;  /* piena larghezza */
        max-width: 100%;
        min-width: 0;
    }
    .hamburger { order: 2; flex-shrink: 0; }

    .mobile-filter-btn {
        display: flex;
        align-items: center;
        gap: .5rem;
        width: 100%;
        background: var(--white);
        border: 1.5px solid var(--gray-200);
        border-radius: var(--radius);
        padding: .7rem 1.1rem;
        font-family: var(--font-sans);
        font-size: .9rem;
        font-weight: 600;
        color: var(--navy);
        cursor: pointer;
        margin-bottom: .75rem;
        box-shadow: var(--shadow-sm);
    }
    .mobile-filter-btn i { color: var(--gold); font-size: 1rem; }

    .sidebar {
        position: fixed !important;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto !important;
        z-index: 1100;
        border-radius: 1.25rem 1.25rem 0 0;
        max-height: 80vh;
        overflow-y: auto;
        padding-bottom: 2rem;
        box-shadow: 0 -6px 32px rgba(0,0,0,.18);
        transform: translateY(100%);
        transition: transform .3s ease;
    }
    .sidebar.is-open {
        display: block !important;
        transform: translateY(0);
    }
    .filter-drawer-close {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: .4rem;
        width: 100%;
        background: none;
        border: none;
        padding: 0 0 .75rem 0;
        font-size: .85rem;
        font-weight: 600;
        color: var(--gray-400);
        cursor: pointer;
    }
    .filter-drawer-close:hover { color: var(--navy); }
}

/* ── SIDEBAR FILTRI ────────────────────────────────────────── */
.sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}
/* Titolo fisso in cima */
.sidebar__title {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    padding: 1.25rem 1.25rem .7rem;
    border-bottom: 1px solid var(--gray-200);
    flex-shrink: 0;
}
/* Corpo scrollabile */
.sidebar__scroll {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-200) transparent;
}
.sidebar__scroll::-webkit-scrollbar { width: 4px; }
.sidebar__scroll::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 2px; }
/* Widget B2B fisso in fondo */
.sidebar__footer {
    flex-shrink: 0;
    border-top: 1px solid var(--gray-200);
    padding: 1rem 1.25rem;
}
.sidebar .alert {
    font-size: .8rem;
    line-height: 1.5;
    word-break: break-word;
    white-space: normal;
    box-sizing: border-box;
    width: 100%;
}
.sidebar__section { margin-bottom: 1.4rem; }
.sidebar__label {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--gray-400);
    margin-bottom: .6rem;
    display: block;
}
.filter-list { display: flex; flex-direction: column; gap: .15rem; }

/* Riga con link + pulsante toggle */
.filter-item__row {
    display: flex;
    align-items: center;
    gap: .25rem;
}
.filter-item__row > a {
    flex: 1;
    min-width: 0;
}

.filter-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .42rem .65rem;
    border-radius: var(--radius);
    font-size: .86rem;
    color: var(--gray-600);
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.filter-list a:hover,
.filter-list a.active {
    background: var(--navy);
    color: var(--white);
}

/* Conteggio discreto — piccolo, a destra */
.count-small {
    font-size: .7rem;
    font-weight: 500;
    color: var(--gray-400);
    margin-left: .4rem;
    flex-shrink: 0;
}
.filter-list a.active .count-small,
.filter-list a:hover .count-small {
    color: rgba(255,255,255,.55);
}

/* Pulsante toggle + / − */
.filter-toggle {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    background: var(--white);
    color: var(--navy);
    font-size: .78rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
    padding: 0;
}
.filter-toggle:hover,
.filter-toggle.open {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* Sotto categorie nella sidebar */
.filter-list--sub {
    margin: .3rem 0 .3rem 1rem;
    border-left: 2px solid var(--gold);
    padding-left: .5rem;
    gap: .15rem;
}
.filter-list--sub a {
    font-size: .82rem;
    padding: .3rem .6rem;
    color: var(--gray-500);
}
.filter-list--sub a:hover,
.filter-list--sub a.active {
    background: var(--gold);
    color: var(--navy);
}
.filter-list--sub a.active .count,
.filter-list--sub a:hover .count {
    background: rgba(0,0,0,.15);
    color: var(--navy);
}

/* ── PRODOTTI GRID ─────────────────────────────────────────── */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
    gap: .5rem;
}
.products-count {
    font-size: .88rem;
    color: var(--gray-600);
}
.products-count strong { color: var(--navy); }

.sort-select {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    padding: .4rem .8rem;
    font-family: var(--font-sans);
    font-size: .85rem;
    background: var(--white);
    color: var(--navy);
    cursor: pointer;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.4rem;
}

/* ── CARD PRODOTTO ─────────────────────────────────────────── */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-200);
}
.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.product-card__img-wrap {
    position: relative;
    background: var(--gray-100);
    aspect-ratio: 4/3;
    overflow: hidden;
}
.product-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.product-card:hover .product-card__img { transform: scale(1.05); }

.product-card__badge {
    position: absolute;
    top: .6rem;
    left: .6rem;
    background: var(--gold);
    color: var(--navy);
    font-size: .68rem;
    font-weight: 700;
    padding: .2rem .55rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.product-card__badge--b2b {
    background: var(--navy);
    color: var(--gold);
    right: .6rem;
    left: auto;
}

.product-card__body {
    padding: 1rem 1.1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.product-card__cat {
    font-size: .72rem;
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
}
.product-card__name {
    font-family: var(--font-sans);
    font-size: .9rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.4;
    flex: 1;
}
.product-card__brand {
    font-size: .78rem;
    color: var(--gray-400);
}
.product-card__sku {
    font-size: .72rem;
    color: var(--gray-400);
    font-family: monospace;
}

.product-card__footer {
    padding: .75rem 1.1rem 1rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
}
.product-card__price {
    display: flex;
    flex-direction: column;
}
.price-main {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}
.price-main--b2b { color: var(--green); }
.price-label {
    font-size: .68rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: .08em;
}
.price-original {
    font-size: .78rem;
    color: var(--gray-400);
    text-decoration: line-through;
}

/* ── DETAIL PRODOTTO ───────────────────────────────────────── */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 768px) {
    .product-detail { grid-template-columns: 1fr; }
}

.product-detail__gallery {
    background: #f8f8f8;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    min-height: 280px;
    max-height: 520px;
    overflow: hidden;
}
.product-detail__gallery img {
    width: 100%;
    height: auto;
    max-height: 480px;
    border-radius: calc(var(--radius-lg) - 4px);
    object-fit: contain;
    display: block;
}
.product-detail__cat {
    font-size: .78rem;
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: .5rem;
}
.product-detail__title {
    font-family: var(--font-sans);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.25;
    margin-bottom: .5rem;
}
.product-detail__brand {
    font-size: .85rem;
    color: var(--gray-600);
    margin-bottom: .3rem;
}
.product-detail__sku {
    font-size: .8rem;
    color: var(--gray-400);
    font-family: monospace;
    margin-bottom: 1.2rem;
}
.product-detail__desc {
    font-size: .95rem;
    line-height: 1.75;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.price-box {
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 1.3rem 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--gold);
}
.price-box__main {
    font-family: var(--font-sans);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}
.price-box__main--b2b { color: var(--green); }
.price-box__label {
    font-size: .78rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: .3rem;
}
.price-box__note {
    font-size: .8rem;
    color: var(--gray-600);
    margin-top: .4rem;
}
.price-box__discount {
    font-size: .85rem;
    color: var(--green);
    font-weight: 600;
}

.specs-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.specs-table th, .specs-table td {
    padding: .55rem .8rem;
    text-align: left;
    font-size: .86rem;
    border-bottom: 1px solid var(--gray-200);
}
.specs-table th {
    color: var(--gray-600);
    font-weight: 500;
    width: 38%;
}
.specs-table td { color: var(--navy); font-weight: 500; }
.specs-table tr:last-child th,
.specs-table tr:last-child td { border-bottom: none; }

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .82rem;
    font-weight: 600;
    padding: .3rem .8rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}
.stock-badge--ok { background: #e8f5ee; color: var(--green); }
.stock-badge--low { background: #fff3e0; color: #e65100; }
.stock-badge--out { background: #fdecea; color: var(--red); }

/* ── GRIGLIA TAGLIE (varianti famiglia) ────────────────────── */
.size-grid {
    margin: .8rem 0 1.5rem;
}
.size-grid__label {
    font-size: .78rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: .6rem;
}
.size-grid__pills {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}
.size-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 36px;
    padding: 0 .75rem;
    border-radius: var(--radius);
    font-size: .85rem;
    font-weight: 600;
    border: 2px solid var(--gray-200);
    background: var(--white);
    color: var(--navy);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}
.size-pill:hover {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
}
.size-pill--active {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
    cursor: default;
    pointer-events: none;
}
.size-pill--out {
    opacity: .45;
    text-decoration: line-through;
}

/* ── PAGINAZIONE ─────────────────────────────────────── */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    margin: 2rem 0 1rem;
}
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 .7rem;
    border-radius: var(--radius);
    font-size: .85rem;
    font-weight: 500;
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    color: var(--navy);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
}
.page-btn:hover {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
}
.page-btn--active {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
    font-weight: 700;
    cursor: default;
    pointer-events: none;
}
.page-btn--disabled {
    opacity: .35;
    cursor: default;
    pointer-events: none;
}
.page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 38px;
    font-size: .9rem;
    color: var(--gray-400);
    user-select: none;
}
@media (max-width: 480px) {
    .page-btn { min-width: 32px; height: 32px; font-size: .78rem; padding: 0 .5rem; }
}

/* ── SECTION TITOLI ────────────────────────────────────────── */
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1.5rem;
}
.section-title span { color: var(--gold); }

/* ── CATEGORIE CAROUSEL ────────────────────────────────────── */
.cat-carousel-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.cat-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    padding: .25rem .1rem .5rem;
}
.cat-carousel::-webkit-scrollbar { display: none; }
.cat-card {
    scroll-snap-align: start;
    flex: 0 0 180px;
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: background var(--transition), transform var(--transition);
    cursor: pointer;
}
.cat-card:hover {
    background: var(--navy-light);
    transform: translateY(-3px);
}
.cat-card__icon { font-size: 1.5rem; margin-bottom: .65rem; color: var(--gold); }
.cat-card__name { font-size: .82rem; font-weight: 600; color: var(--gold-light); line-height: 1.3; }
.cat-arrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    color: var(--navy);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .18s;
    box-shadow: var(--shadow-sm);
}
.cat-arrow:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }


/* ── B2B SIDEBAR WIDGET ───────────────────────────────────── */
.b2b-widget {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}
.b2b-widget__icon {
    width: 44px;
    height: 44px;
    background: var(--navy);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 auto .75rem;
}
.b2b-widget__title {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .4rem;
}
.b2b-widget__text {
    font-size: .78rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: .9rem;
}
.b2b-widget__btn {
    display: block;
    width: 100%;
    padding: .6rem 1rem;
    background: var(--navy);
    color: var(--gold);
    border-radius: var(--radius);
    font-size: .82rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: .03em;
    border: 1.5px solid var(--navy);
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.b2b-widget__btn:hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

/* ── B2B LOGIN ─────────────────────────────────────────────── */
.b2b-login-wrap {
    max-width: 480px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--gold);
}
.b2b-login-wrap .section-title { text-align: center; }
.b2b-login-wrap p { text-align: center; color: var(--gray-600); margin-bottom: 2rem; font-size: .93rem; }

.form-group { margin-bottom: 1.2rem; }
.form-label {
    display: block;
    font-size: .83rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: .4rem;
    letter-spacing: .03em;
}
.form-input {
    width: 100%;
    padding: .75rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: .95rem;
    color: var(--navy);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}
.form-input--code {
    font-family: monospace;
    font-size: 1.1rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    text-align: center;
}

/* ── B2B LOGIN — contact hint ─────────────────────────────── */
.b2b-contact-hint {
    margin-top: 1.5rem;
    padding: 1rem 1.2rem;
    background: var(--cream);
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--gray-200);
}
.b2b-contact-hint p {
    margin: 0 0 .35rem;
    font-size: .82rem;
    color: var(--gray-600);
    text-align: center;
}
.b2b-contact-email {
    font-size: .95rem;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
    letter-spacing: .01em;
    border-bottom: 1.5px solid var(--gold);
    transition: color var(--transition);
}
.b2b-contact-email:hover { color: var(--gold); }

/* ── B2B LOGIN — demo box ──────────────────────────────────── */
.b2b-demo-box {
    margin-top: .75rem;
    padding: 1rem 1.2rem 1.1rem;
    background: #f0f4fb;
    border-radius: var(--radius);
    border: 1px dashed #a8b8d8;
}
.b2b-demo-box__label {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--navy-mid);
    margin-bottom: .7rem;
}
.b2b-demo-box__codes {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}
.b2b-demo-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .45rem .7rem;
    background: var(--white);
    border-radius: calc(var(--radius) - 2px);
    border: 1px solid #c8d4e8;
}
.b2b-demo-code code {
    font-family: monospace;
    font-size: .88rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: .08em;
    cursor: pointer;
    user-select: all;
}
.b2b-demo-code span {
    font-size: .75rem;
    font-weight: 600;
    color: var(--green);
    background: #e8f5ee;
    padding: .15rem .5rem;
    border-radius: 20px;
    white-space: nowrap;
}

/* ── ALERT ─────────────────────────────────────────────────── */
.alert {
    padding: .85rem 1.1rem;
    border-radius: var(--radius);
    font-size: .88rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.alert-error { background: #fdecea; color: var(--red); border-left: 3px solid var(--red); }
.alert-success { background: #e8f5ee; color: var(--green); border-left: 3px solid var(--green); }
.alert-info { background: #e8eef8; color: var(--navy-mid); border-left: 3px solid var(--navy-mid); }

.alert-error { background: #fdecea; color: var(--red); border-left: 3px solid var(--red); }
.alert-success { background: #e8f5ee; color: var(--green); border-left: 3px solid var(--green); }
.alert-info { background: #e8eef8; color: var(--navy-mid); border-left: 3px solid var(--navy-mid); }

/* ── CARRELLO ──────────────────────────────────────────────── */
.cart-empty {
    text-align: center;
    padding: 5rem 1rem;
}
.cart-empty__icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: .5;
}
.cart-empty h2 { font-family: var(--font-sans); margin-bottom: .75rem; }
.cart-empty p  { color: var(--gray-600); font-size: .93rem; }

.cart-b2b-banner {
    background: rgba(201,168,76,.12);
    border: 1px solid rgba(201,168,76,.35);
    border-radius: var(--radius);
    padding: .75rem 1.1rem;
    font-size: .84rem;
    color: var(--navy-mid);
    margin-bottom: 1.25rem;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    align-items: start;
}

.cart-items {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.cart-row {
    display: grid;
    grid-template-columns: 72px 1fr auto auto auto auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    transition: background var(--transition);
}
.cart-row:last-child { border-bottom: none; }
.cart-row:hover { background: var(--gray-100); }

.cart-row__img { width: 72px; height: 72px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; background: var(--gray-100); }
.cart-row__img img { width: 100%; height: 100%; object-fit: cover; }

.cart-row__info { min-width: 0; }
.cart-row__name {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.35;
    margin-bottom: .25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-row__name:hover { color: var(--gold); }
.cart-row__meta { font-size: .75rem; color: var(--gray-400); }
.cart-row__b2b-tag {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    color: var(--gold);
    background: rgba(201,168,76,.12);
    padding: .1rem .4rem;
    border-radius: 3px;
    margin-top: .25rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.cart-row__price {
    font-size: .88rem;
    color: var(--gray-600);
    white-space: nowrap;
    min-width: 70px;
    text-align: right;
}

.cart-row__qty {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
}
.qty-btn {
    width: 30px;
    height: 32px;
    background: var(--gray-100);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    color: var(--navy);
    transition: background var(--transition);
    flex-shrink: 0;
}
.qty-btn:hover { background: var(--gray-200); }
.qty-input {
    width: 38px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: .88rem;
    font-weight: 600;
    color: var(--navy);
    background: var(--white);
    appearance: textfield;
    -moz-appearance: textfield;
}
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.cart-row__sub {
    font-size: .92rem;
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
    min-width: 80px;
    text-align: right;
}

.cart-row__remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-400);
    font-size: .9rem;
    padding: .25rem;
    border-radius: 50%;
    transition: all var(--transition);
    line-height: 1;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-row__remove:hover { background: #fdecea; color: var(--red); }

/* CART SUMMARY */
.cart-summary {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--gold);
    position: sticky;
    top: 100px;
}
.cart-summary__title {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1.25rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--gray-200);
}
.cart-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .88rem;
    color: var(--gray-600);
    padding: .4rem 0;
}
.cart-summary__row--highlight { color: var(--navy-mid); font-size: .82rem; }
.cart-summary__row--total {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    border-top: 1.5px solid var(--gray-200);
    margin-top: .5rem;
    padding-top: .75rem;
}
.cart-summary__cta {
    display: block;
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-top: 1.25rem;
    padding: .85rem;
    font-size: .95rem;
}
.cart-summary__back {
    display: block;
    text-align: center;
    margin-top: .75rem;
    font-size: .82rem;
    color: var(--gray-400);
    transition: color var(--transition);
}
.cart-summary__back:hover { color: var(--navy); }
.cart-summary__secure {
    text-align: center;
    font-size: .73rem;
    color: var(--gray-400);
    margin-top: 1rem;
}

/* CART BADGE */
.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--gold);
    color: #fff;
    border-radius: 20px;
    font-size: .68rem;
    font-weight: 700;
    margin-left: .35rem;
    vertical-align: middle;
    line-height: 1;
}

/* ── CHECKOUT ──────────────────────────────────────────────── */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    align-items: start;
}
.checkout-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.25rem;
}
.checkout-section__title {
    font-family: var(--font-sans);
    font-size: .95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1.25rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--gray-200);
}
.checkout-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkout-grid-3 { display: grid; grid-template-columns: 90px 1fr 64px; gap: .75rem; }
@media (max-width: 860px) {
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-summary { position: static; } /* riepilogo sotto il form su mobile */
}
@media (max-width: 480px) {
    .checkout-grid-2 { grid-template-columns: 1fr; }
    .checkout-grid-3 { grid-template-columns: 80px 1fr 56px; gap: .5rem; }
}

/* Payment options */
.payment-option {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    margin-bottom: .75rem;
    transition: border-color var(--transition), background var(--transition);
}
.payment-option input[type=radio] { margin-top: .2rem; accent-color: var(--navy); flex-shrink: 0; }
.payment-option:hover { border-color: var(--navy-light); background: var(--gray-100); }
.payment-option--selected { border-color: var(--navy); background: rgba(10,22,40,.03); }
.payment-option__icon { font-size: 1.4rem; flex-shrink: 0; }
.payment-option__body strong { display: block; font-size: .9rem; color: var(--navy); margin-bottom: .2rem; }
.payment-option__body span  { font-size: .8rem; color: var(--gray-600); line-height: 1.4; }

/* Checkout summary sidebar */
.checkout-summary {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--gold);
    position: sticky;
    top: 100px;
}
.checkout-summary__title {
    font-family: var(--font-sans);
    font-size: .95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid var(--gray-200);
}
.checkout-items { margin-bottom: 1rem; }
.checkout-item {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    padding: .45rem 0;
    font-size: .83rem;
    border-bottom: 1px solid var(--gray-200);
}
.checkout-item:last-child { border-bottom: none; }
.checkout-item__name { color: var(--gray-600); line-height: 1.3; flex: 1; min-width: 0; }
.checkout-item__qty { color: var(--gray-400); font-size: .78rem; display: block; }
.checkout-item__price { font-weight: 600; color: var(--navy); white-space: nowrap; }
.checkout-summary__divider { height: 1px; background: var(--gray-200); margin: .75rem 0; }
.checkout-summary__row {
    display: flex;
    justify-content: space-between;
    font-size: .85rem;
    color: var(--gray-600);
    padding: .3rem 0;
}
.checkout-summary__row--total {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
}

/* ── CONFERMA ORDINE ───────────────────────────────────────── */
.confirm-wrap {
    max-width: 680px;
    margin: 0 auto;
}
.confirm-header {
    text-align: center;
    padding: 2rem 1rem 1.5rem;
}
.confirm-check {
    width: 64px;
    height: 64px;
    background: var(--green);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}
.confirm-header h1 {
    font-family: var(--font-sans);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .5rem;
}
.confirm-header p { color: var(--gray-600); font-size: .95rem; }

.confirm-details {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.25rem;
}
.confirm-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.confirm-detail-item__label { font-size: .73rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-400); font-weight: 600; display: block; margin-bottom: .2rem; }
.confirm-detail-item__value { font-size: .92rem; color: var(--navy); font-weight: 600; }

.confirm-payment-box {
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.confirm-payment-box--bonifico {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
}
.confirm-payment-box--accordi {
    background: rgba(201,168,76,.07);
    border: 1px solid rgba(201,168,76,.3);
}
.confirm-payment-box h3 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .75rem;
}
.confirm-payment-box p { font-size: .88rem; color: var(--gray-600); margin-bottom: .75rem; }

.confirm-iban-grid { background: var(--white); border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; }
.confirm-iban-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .65rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    font-size: .88rem;
}
.confirm-iban-row:last-child { border-bottom: none; }
.confirm-iban-row span { color: var(--gray-600); }
.confirm-iban-row strong { color: var(--navy); text-align: right; }
.confirm-iban-code {
    font-family: monospace;
    font-size: 1rem;
    letter-spacing: .06em;
    color: var(--navy);
}
.confirm-iban-row--causale { background: rgba(201,168,76,.06); }

.confirm-note { font-size: .8rem; color: var(--gray-600); line-height: 1.5; }
.confirm-accordi-list { list-style: none; padding: 0; margin-bottom: .75rem; }
.confirm-accordi-list li { font-size: .88rem; color: var(--gray-600); padding: .3rem 0; }

.confirm-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Sezione prodotti ordinati nella confirm */
.confirm-items {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.25rem;
}
.confirm-items__title {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gray-400);
    margin-bottom: .75rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--gray-200);
}
.confirm-item-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .75rem;
    padding: .45rem 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: .86rem;
}
.confirm-item-row:last-child { border-bottom: none; }
.confirm-item-row__name { color: var(--navy); font-weight: 500; flex: 1; min-width: 0; }
.confirm-item-row__sku  { font-size: .73rem; color: var(--gray-400); font-family: monospace; display: block; }
.confirm-item-row__qty  { color: var(--gray-400); font-size: .8rem; white-space: nowrap; }
.confirm-item-row__price{ font-weight: 700; color: var(--navy); white-space: nowrap; }
.confirm-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem 0 0;
    font-size: .95rem;
    font-weight: 700;
    color: var(--navy);
    border-top: 1.5px solid var(--gray-200);
    margin-top: .25rem;
}
.confirm-total-row span:last-child { color: var(--gold); font-size: 1.1rem; }

/* ── CART MOBILE ──────────────────────────────────────── */
@media (max-width: 860px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
    .cart-summary {
        position: static; /* non sticky su mobile */
    }
}
@media (max-width: 600px) {
    .cart-row {
        grid-template-columns: 56px 1fr auto;
        grid-template-rows: auto auto;
        gap: .5rem .75rem;
        padding: .85rem 1rem;
    }
    /* Immagine: riga 1-2, colonna 1 */
    .cart-row__img {
        grid-row: 1 / 3;
        grid-column: 1;
        width: 56px;
        height: 56px;
    }
    /* Info: riga 1, colonna 2 */
    .cart-row__info {
        grid-row: 1;
        grid-column: 2;
    }
    .cart-row__name {
        font-size: .82rem;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        line-height: 1.3;
    }
    /* Bottone rimuovi: riga 1, colonna 3 */
    .cart-row__remove {
        grid-row: 1;
        grid-column: 3;
        align-self: start;
    }
    /* Riga 2: qty + sub affiancati, colonna 2-3 */
    .cart-row__price { display: none; } /* prezzo unitario nascosto, si vede il subtotale */
    .cart-row__qty {
        grid-row: 2;
        grid-column: 2;
        justify-self: start;
    }
    .cart-row__sub {
        grid-row: 2;
        grid-column: 3;
        text-align: right;
        font-size: .9rem;
        align-self: center;
    }
    /* Summary mobile */
    .cart-summary { border-top-width: 3px; padding: 1.1rem; }
    .cart-summary__title { font-size: .9rem; margin-bottom: 1rem; }
    /* Confirm mobile */
    .confirm-wrap { padding: 0 .25rem; }
    .confirm-detail-grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
    .confirm-detail-item__value { font-size: .85rem; }
    .confirm-iban-row {
        flex-direction: column;
        gap: .2rem;
        align-items: flex-start;
    }
    .confirm-iban-row strong { text-align: left; }
    .confirm-iban-code { font-size: .88rem; letter-spacing: .03em; }
    .confirm-actions { flex-direction: column; align-items: stretch; }
    .confirm-actions .btn { text-align: center; justify-content: center; }
}

/* ── FLOATING CART BUTTON ──────────────────────────── */
.float-cart {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 999;
    width: 58px;
    height: 58px;
    background: var(--navy);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 4px 18px rgba(10,22,40,.35);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
}
.float-cart:hover {
    background: var(--gold);
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(201,168,76,.45);
}
.float-cart__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    background: var(--gold);
    color: var(--navy);
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    line-height: 1;
    transition: background var(--transition), color var(--transition);
}
.float-cart:hover .float-cart__badge {
    background: var(--white);
    color: var(--navy);
}
/* Animazione bump quando si aggiunge al carrello */
@keyframes cartBump {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.25); }
    60%  { transform: scale(.92); }
    100% { transform: scale(1); }
}
.float-cart--bump { animation: cartBump .4s ease; }

/* ── BREADCRUMB ────────────────────────────────────────────── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    color: var(--gray-400);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--navy-mid); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb__sep { color: var(--gray-200); }

/* ── EMPTY STATE ───────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-400);
}
.empty-state__icon { font-size: 3.5rem; margin-bottom: 1rem; }
.empty-state h3 { font-family: var(--font-sans); font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: .5rem; }

/* ── FOOTER ────────────────────────────────────────────────── */
.footer {
    background: var(--navy);
    color: rgba(248,246,240,.7);
    padding: 3.5rem 0 0;
    margin-top: auto;
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}
@media (max-width: 860px) {
    .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
    .footer__grid { grid-template-columns: 1fr; }
}
.footer__logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .8rem;
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 1.2rem;
}
.footer__desc { font-size: .85rem; line-height: 1.7; }
.footer__title {
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--gold);
    font-size: .88rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 1rem;
}
.footer__list { display: flex; flex-direction: column; gap: .55rem; font-size: .84rem; }
.footer__list a { transition: color var(--transition); }
.footer__list a:hover { color: var(--gold-light); }
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 1.2rem 0;
    font-size: .8rem;
    text-align: center;
}
.footer__b2b-note { color: var(--gold-light); margin-top: .3rem; font-weight: 600; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 640px) {
    .header__inner { gap: 1rem; }
    .nav { display: none; }
    .search-form { max-width: 100%; }
    .products-grid { grid-template-columns: 1fr 1fr; }
    .cat-card { flex: 0 0 150px; }
}
@media (max-width: 420px) {
    .products-grid { grid-template-columns: 1fr; }
}
