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

html,
body {
    height: 100%;
}

:root {
    --container: 1180px;
    --pad: 16px;
    --radius: 18px;
    --text: #111111;
    --muted: #6b6b6b;
    --line: #e9e9e9;
    --bg: #ffffff;
    --soft: #f7f7f7;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #000000;
    padding-top: 0; /* ✅ non serve più */
}

.nav-back-icon {
    display: none;
    font-size: 18px;
    line-height: 1;
    color: #000000;
}

/* Pagine prodotto: niente padding-top e navbar non fissa */
.page-product {
    padding-top: 0;
}

.page-product .navbar {
    position: static;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: 90px;
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;

    /* usiamo GRID per centrare il logo rispetto allo schermo */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 60px;
}

/* gruppo sinistra (menu + ricerca) e destra (profilo + carrello) */
.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* centro: logo sempre centrato e flessibile */
.nav-center {
    display: flex;
    justify-content: center;
    justify-self: center;
}

.nav-left {
    justify-self: start;
}

.nav-right {
    justify-self: end;
}

.nav-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-item span {
    margin-top: 2px;
}

.icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.logo-button {
    border: none;
    background: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 120px;
    object-fit: contain;
}

.icon-button {
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    background-color: #000000;
    color: #ffffff;
    font-size: 10px;
}

/* SIDE MENU */
.side-menu {
    position: fixed;
    top: 90px;
    left: 0;
    width: 360px;
    max-width: 82%;
    height: calc(100vh - 90px);
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    z-index: 900;
}

.side-menu--open {
    transform: translateX(0);
}

.side-menu-inner {
    height: 100%;
    padding: 32px 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.side-menu-close {
    border: none;
    background: none;
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.6);
}

.side-menu-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: flex-start;
}

.side-menu-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.side-menu-link {
    border: 1px solid rgba(0, 0, 0, 0.14);
    background: #ffffff;
    padding: 12px 18px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: #0a0a0a;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.side-menu-link::after {
    content: ">";
    font-size: 12px;
    color: rgba(0, 0, 0, 0.45);
}

.side-menu-link:hover {
    border-color: rgba(0, 0, 0, 0.28);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.side-menu-link:active {
    transform: translateY(0);
    box-shadow: none;
}

/* BARRA DI RICERCA */
.search-bar-overlay {
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 24px;
    padding-bottom: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 850;
    border-bottom: 1px solid #e6e6e6;
}

.search-bar-overlay--open {
    opacity: 1;
    pointer-events: auto;
}

/* ANIMAZIONI PREMIUM SEZIONE PRODOTTI */
@keyframes sectionFadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardFadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-bar-inner {
    width: 100%;
    max-width: 800px;
    padding: 0 40px;
    display: flex;
    gap: 12px;
    align-items: center;
}

/* SEZIONE PRODOTTI HOME (SCROLL 1) */
.products-section {
    margin-top: 80px; /* spazio extra tra hero e inizio seconda pagina */
    padding: 160px 80px 180px 80px; /* molto spazio sopra e sotto per percepire bene lo scroll */
    background-color: #ffffff;
    opacity: 0;
    transform: translateY(40px);
    animation: sectionFadeUp 0.9s ease-out forwards;
    animation-delay: 0.15s;
}

.products-title {
    text-align: center;
    font-size: 46px;
    font-weight: 900;
    color: #000000;
    margin-bottom: 64px; /* più spazio sotto il titolo */
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.search-input {
    flex: 1;
    height: 46px;
    border-radius: 999px;
    border: 1px solid #d4d4d4;
    padding: 0 20px;
    font-size: 15px;
}

.search-close {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* SEARCH SUGGESTIONS */
.search-suggestions {
    width: 100%;
    max-width: 800px;
    padding: 8px 40px 0 40px;
    display: none;
}

.search-suggestions.visible {
    display: block;
}

.search-suggestions-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #e0e0e0;
}

.search-suggestion-item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 15px;
    letter-spacing: 0.02em;
}

.search-suggestion-item:hover {
    background-color: #f5f5f5;
}

/* HERO HOME */
/* HERO HOME (FIX: mai sotto la navbar) */
.hero {
    width: 100%;
    height: calc(100vh - 90px);
    margin-top: 90px;         /* ✅ spinge la hero sotto la navbar */
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* LINK FINALI HOME (SCROLL 2) */
.footer-links-section {
    padding: 120px 80px 120px 80px; /* più bordo bianco per la terza pagina */
    background-color: #ffffff;
    text-align: center;
}

.footer-links-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-link {
    position: relative;
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #000000;
    padding-bottom: 4px;
}

.footer-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1.5px;
    background-color: #000000;
    transition: width 0.25s ease;
}

.footer-link:hover::after {
    width: 100%;
}

/* PAGINE DETTAGLIO PRODOTTO */
.product-detail-page {
    min-height: 100vh;
    background-color: #ffffff;
}

.product-detail {
    max-width: 100%;                 /* usa tutta la larghezza disponibile */
    margin: 0;                       /* niente centratura automatica */
    padding: 40px 80px 80px 80px;    /* margine interno uniforme */
    display: grid;
    grid-template-columns: 1fr 1fr;/* colonna sinistra più ampia */
    gap: 40px;
    align-items: flex-start;             /* centra verticalmente le due colonne */
}

/* Colonna sinistra immagini */
.product-detail-images {
    display: flex;
    flex-direction: column;
    gap: 18px;
    justify-content: flex-start;   /* centra verticalmente la pila di immagini */
    height: 100%;
}

.product-main-image {
    position: relative; /* serve per ancorare i pallini alla foto */
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.16);
    background-color: #f4f4f4;
}

.product-main-image img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* ------------------------------------------------ */
/* DOTS IMMAGINI PRODOTTO (PALLINI A SINISTRA)      */
/* ------------------------------------------------ */

/* Contenitore dei pallini: colonna verticale a sinistra dell'immagine */
.product-image-dots {
    position: absolute;
    left: 24px;               /* distanza dal bordo sinistro dell'immagine */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;   /* uno sotto l'altro */
    gap: 10px;
    z-index: 3;
}

/* Singolo pallino */
.image-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #ffffff;       /* cerchio bianco */
    background-color: transparent;   /* interno vuoto */
    cursor: pointer;
    padding: 0;
    outline: none;
    display: block;
    box-sizing: border-box;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

/* Stato attivo: cerchio pieno bianco */
.image-dot--active {
    background-color: #ffffff;
    opacity: 1;
    transform: scale(1.05);
}

/* Hover su desktop */
.image-dot:hover {
    opacity: 1;
    transform: scale(1.08);
}

/* Su schermi piccoli, spostiamo i pallini sotto l'immagine */
@media (max-width: 768px) {
    .product-image-dots {
        position: static;
        transform: none;
        flex-direction: row;
        justify-content: center;
        margin-top: 12px;
    }
}

.product-thumbs {
    display: flex;
    gap: 12px;
}

.product-thumbs img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 14px;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.product-thumbs img:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Colonna destra info */
.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-detail-name {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 6px;
}

.product-detail-subtitle {
    font-size: 16px;
    color: #555555;
    margin-bottom: 8px;
}

.product-detail-price {
    font-size: 22px;
    font-weight: 700;
    margin: 10px 0 12px;
}

/* Colori disponibili */
.product-detail-colors {
    margin-top: 8px;
}

.colors-label {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 6px;
}

.colors-dots {
    display: flex;
    gap: 10px;
}

.color-dot {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    outline: none;
    display: inline-block;
}

.color-dot-black {
    background-color: #000000;
}

.color-dot-beige {
    background-color: #e8ddcf;
}

.color-dot-grey {
    background-color: #c9c9c9;
}
.color-dot-pink {
    background-color: #ffc0cb;
}

.color-dot-active {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
    border-color: #000000;
    transform: scale(1.05);
}

/* QUANTITÀ PRODOTTO (PAGINE DETTAGLIO) */
.product-detail-quantity {
    margin-top: 16px;
    margin-bottom: 16px;
}

.quantity-label {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 8px;
}

.quantity-control {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #e0e0e0;
    padding: 4px 8px;
    gap: 4px;
}

.quantity-btn {
    border: none;
    background: none;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    font-size: 18px;
    color: #000000;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background-color: #f2f2f2;
}

.quantity-input {
    width: 48px;
    text-align: center;
    border: none;
    outline: none;
    font-size: 15px;
}

.quantity-available {
    min-width: 48px;
    padding: 6px 12px;
    text-align: center;
    font-size: 15px;
    color: rgba(0, 0, 0, 0.75);
}

/* BOTTONE AGGIUNGI AL CARRELLO */
.btn-primary {
    margin-top: 6px;
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 14px 32px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    cursor: pointer;
    width: 100%;
    max-width: 360px;
    text-align: center;
}

.btn-primary--added {
    background-color: #00c48c;
}

.btn-sold-out {
    background-color: #ffffff !important;
    color: #b00000 !important;
    border: 1px solid #b00000 !important;
    animation: sold-out-pulse 2s ease-in-out infinite !important;
}

.btn-sold-out:disabled {
    opacity: 1;
    cursor: not-allowed;
}

@keyframes sold-out-pulse {
    0%, 100% {
        box-shadow: 0 0 0 rgba(176, 0, 0, 0);
    }
    50% {
        box-shadow: 0 0 16px rgba(176, 0, 0, 0.5);
    }
}

/* CARATTERISTICHE / ACCORDION */
.product-detail-features {
    margin-top: 20px;
}

.product-detail-features h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
}

.product-detail-features ul {
    margin-left: 18px;
    line-height: 1.6;
    font-size: 16px;
}

.accordion {
    margin-top: 10px;
    border-top: 1px solid #e5e5e5;
}

.accordion-item {
    border-bottom: 1px solid #e5e5e5;
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    background: none;
    border: none;
    cursor: pointer;
}

.accordion-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #000000;
}

.accordion-toggle {
    font-size: 22px;
    line-height: 1;
    font-weight: 400;
    color: #000000;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-bottom: 0;
}

.accordion-content-inner {
    padding-bottom: 14px;
    font-size: 15px;
    line-height: 1.6;
    color: #333333;
}

.product-detail a,
.product-detail-features a,
.accordion-content-inner a {
    color: #000000;
}

.accordion-item.accordion-item--open .accordion-content {
    max-height: 500px;
}

/* RESPONSIVE PRODOTTO */
@media (max-width: 900px) {
    .product-detail {
        grid-template-columns: 1fr;
        padding: 40px 24px 60px;
    }

    .product-main-image img {
        width: 100%;
    }
}

/* RESPONSIVE NAVBAR / HOME */
@media (max-width: 992px) {
    .navbar {
        padding: 0 24px;
    }

    .products-section {
        padding: 60px 24px 32px;
    }

    .footer-links-section {
        padding: 40px 24px 60px;
    }
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .navbar {
        height: 70px;
    }

    .side-menu {
        top: 70px;
        height: calc(100vh - 70px);
        width: 80%;
        max-width: none;
    }

    .side-menu-inner {
        padding: 24px 24px;
    }

    .side-menu-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .search-bar-inner {
        padding: 0 24px;
    }

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

.product-card {
    background-color: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;

    /* animazione di ingresso a cascata */
    opacity: 0;
    transform: translateY(40px);
    animation: cardFadeUp 0.9s ease-out forwards;
}

.products-grid .product-card:nth-child(1) {
    animation-delay: 0.25s;
}

.products-grid .product-card:nth-child(2) {
    animation-delay: 0.35s;
}

.products-grid .product-card:nth-child(3) {
    animation-delay: 0.45s;
}

.products-grid .product-card:nth-child(4) {
    animation-delay: 0.55s;
}
/* HOME - Sezione "Scopri I Nostri Prodotti" */
.section-products {
    margin-top: 50px;              /* spazio tra hero e titolo */
    padding: 120px 80px 140px 80px;
    background-color: #ffffff;
}

/* Griglia prodotti in orizzontale SENZA creare larghezza extra alla pagina */
.section-products .products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)); /* 4 colonne sulla stessa riga */
    gap: 32px;
    align-items: flex-start;
}

/* Le card si adattano alla colonna */
.section-products .product-card {
    max-width: 100%;
}

/* Le immagini riempiono la card senza uscire */
.section-products .product-card img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Card più compatte */
.section-products .product-card {
    max-width: 400px;
}

/* IMMAGINI PIÙ PICCOLE (seconda pagina) */
.section-products .product-card img {
    max-width: 300px;   /* CAMBIA QUESTO PER RIDURLE ANCORA (es. 150, 140...) */
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.section-products .product-name {
    margin-top: 12px;
    text-align: center;
    font-size: 16px;
}
@media (max-width: 992px) {
    .section-products .products-grid {
        flex-wrap: wrap;
    }

    .section-products {
        padding: 60px 24px 80px 24px;
    }
}

/* --------------------------------------------- */
/* HOME - SEZIONE 2: "Scopri I Nostri Prodotti"  */
/* --------------------------------------------- */

/* Titolo più grande, centrato e molto in grassetto */
.section-products .section-title {
    text-align: center;
    font-size: 52px;      /* più grande */
    font-weight: 900;     /* più in grassetto */
    color: #000000;       /* nero */
    margin-bottom: 64px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

/* Tutta la sezione 2 occupa (quasi) un'intera pagina */
.section-products {
    min-height: calc(100vh - 90px); /* altezza circa una pagina sotto la navbar */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Forziamo tutte le scritte della sezione prodotti in nero */
.section-products,
.section-products * {
    color: #000000;
}

/* --------------------------------------------- */
/* HOME - SEZIONE 3: CONTATTI / LINK FINALI      */
/* --------------------------------------------- */

/* Sezione 3 come una pagina a sé, contenuto centrato verticalmente */
.section-links {
    min-height: calc(100vh - 90px); /* occupa praticamente tutta la schermata sotto la navbar */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 80px;
    background-color: #ffffff;
}

.section-links-inner {
    width: 100%;
}

/* Disposizione verticale e centrale dei link (Contattaci, Chi siamo, Instagram, TikTok) */
.links-grid {
    display: flex;
    flex-direction: column;   /* uno sotto l'altro in verticale */
    align-items: center;
    justify-content: center;
    gap: 16px;
}

/* Link sottili, neri, non in grassetto */
.footer-link {
    position: relative;
    text-decoration: none;
    font-size: 18px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #000000;
    font-weight: 300;         /* sottile */
    padding-bottom: 4px;
}

/* Effetto sottolineatura al passaggio */
.footer-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1.5px;
    background-color: #000000;
    transition: width 0.25s ease;
}

.footer-link:hover::after {
    width: 100%;
}

/* --------------------------------------------- */
/* SCROLL SNAP MORBIDO PER HOME A PAGINE INTERE */
/* --------------------------------------------- */

/* Attiva scroll-snap solo nella home */
body.page-home {
    scroll-snap-type: y proximity; /* aggancia ma resta morbido */
    height: 100%;
    overflow-y: scroll;
}

/* Ogni sezione della home si comporta come una pagina */
.section-products,
.section-links {
    scroll-snap-align: start; /* la hero non è più una pagina dello scroll */
}

/* =============================
   AUTH OVERLAY (LOGIN / REGISTER)
   ============================= */

.auth-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45); /* sfondo scurito */
    display: none;               /* nascosto di default */
    align-items: stretch;
    justify-content: flex-start; /* riquadro bianco a SINISTRA */
    z-index: 1500;               /* sopra navbar, menu, ecc. */
}

.auth-overlay.auth-overlay--open {
    display: flex;
}

.auth-panel {
    background: #ffffff;
    width: 40%;
    min-width: 380px;
    max-width: 520px;
    height: 100%;
    padding: 40px 60px;
    box-shadow: 6px 0 18px rgba(0, 0, 0, 0.15); /* ombra a destra */
    font-family: 'Montserrat', sans-serif;
    position: relative;
    overflow-y: auto;
}

/* Bottone chiusura (X in alto a destra) */
.auth-close-btn {
    position: absolute;
    top: 24px;
    right: 30px;
    border: none;
    background: transparent;
    font-size: 26px;
    cursor: pointer;
    color: #000000;
    line-height: 1;
}

.auth-header h2 {
    font-size: 22px;
    margin: 0 0 28px 0;
    font-weight: 600;
    color: #000000;
}

.auth-section-header,
.auth-section-header-register {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    color: #000000;
    margin-bottom: 24px;
}

.auth-required-label {
    font-size: 12px;
    color: #9b9b9b;
}

.auth-section-title {
    font-weight: 500;
}

.auth-view {
    display: none;
}

.auth-view.auth-view--active {
    display: block;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-field label {
    font-size: 13px;
    color: #000000;
    font-weight: 500;
}

.auth-field input {
    height: 54px;
    padding: 0 14px;
    border-radius: 6px;
    border: 1px solid #000000;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input:focus {
    border-color: #000000;
    box-shadow: 0 0 0 1px #000000;
}

/* Wrapper password con icona occhio */
.auth-password-wrapper {
    display: flex;
    align-items: center;
}

.auth-password-wrapper input {
    flex: 1;
}

.auth-password-toggle {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    padding: 0 8px;
    color: #000000;
}

.auth-forgot-wrapper {
    margin-top: 4px;
    margin-bottom: 18px;
}

.auth-link-btn {
    border: none;
    background: transparent;
    padding: 0;
    font-size: 13px;
    color: #000000;
    cursor: pointer;
    text-decoration: underline;
}

.auth-actions {
    margin-top: 8px;
}

.auth-primary-btn {
    width: 100%;
    height: 54px;
    border-radius: 999px;
    border: none;
    background: #000000;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.1s ease;
}

.auth-primary-btn:hover {
    background: #000000;
}

.auth-primary-btn:active {
    transform: scale(0.98);
}

.auth-divider {
    height: 1px;
    background: #000000;
    margin: 30px 0 24px 0;
}

.auth-new-user {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-new-user-label {
    font-size: 14px;
    color: #000000;
}

/* Registrazione */
.auth-admin-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #000000;
}

#adminCodeWrapper {
    display: none;
}

.auth-field.auth-field--visible {
    display: flex !important;
}

/* Piccolo adattamento responsive per schermi più piccoli */
@media (max-width: 900px) {
    .auth-panel {
        width: 100%;
        max-width: none;
        min-width: 0;
        padding: 24px 20px 32px;
    }
}
.login-status-message {
    margin-top: 8px;
    font-size: 0.85rem;
}

.login-status-success {
    color: #28a745; /* verde */
}

.login-status-error {
    color: #e74c3c; /* rosso per eventuali errori */
}

.register-status-message {
    margin-top: 8px;
    font-size: 0.85rem;
}

.register-status-success {
    color: #28a745;
}

.register-status-error {
    color: #e74c3c;
}


/* =============================
   ADDRESS (form aggiunta indirizzo) - stile dedicato
   Usato da add-address.jsp con classi: address-*
   ============================= */

.address-page {
    background-color: #ffffff;
    color: #000000;
    padding-top: 90px; /* navbar fissa */
}

.address-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 80px 20px;
    display: flex;
    justify-content: center;
}

.address-card {
    width: 100%;
    max-width: 620px;
    background-color: #ffffff;
    border-radius: 24px;
    padding: 28px 28px 32px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.address-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.address-subtitle {
    font-size: 13px;
    color: #666666;
    margin-bottom: 18px;
    line-height: 1.5;
}

.address-error {
    margin-bottom: 14px;
    font-size: 13px;
    color: #e74c3c;
}

.address-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.address-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.address-field label {
    font-size: 13px;
    font-weight: 500;
    color: #000000;
}

.address-field input {
    height: 50px;
    border-radius: 10px;
    border: 1px solid #000000;
    padding: 0 14px;
    font-size: 14px;
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.address-field input:focus {
    box-shadow: 0 0 0 1px #000000;
}

.address-field--checkbox {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.address-field--checkbox label {
    font-size: 13px;
    font-weight: 500;
}

.address-actions {
    margin-top: 10px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.btn-address-primary,
.btn-address-secondary {
    border-radius: 999px;
    height: 48px;
    padding: 0 20px;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid #000000;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-address-primary {
    background-color: #000000;
    color: #ffffff;
}

.btn-address-secondary {
    background-color: #ffffff;
    color: #000000;
}

.btn-address-primary:hover,
.btn-address-secondary:hover {
    opacity: 0.92;
}

@media (max-width: 768px) {
    .address-page {
        padding-top: 70px;
    }

    .address-wrap {
        padding: 28px 16px 60px 16px;
    }

    .address-card {
        padding: 22px 18px 26px;
        border-radius: 18px;
    }

    .address-actions {
        justify-content: stretch;
    }

    .btn-address-primary,
    .btn-address-secondary {
        width: 100%;
    }
}

/* ============================= */
/* AREA ACCOUNT UTENTE          */
/* ============================= */

.page-account {
    background-color: #ffffff;
    color: #000000;
    padding-top: 90px; /* per la navbar fissa */
}

.account-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 80px 20px;
}

.account-header h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
}

.account-email {
    font-size: 14px;
    color: #666666;
}

/* Sezioni (pagamenti / indirizzi) */

.account-section {
    margin-top: 40px;
}

.account-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.account-section-header h2 {
    font-size: 18px;
    font-weight: 600;
}

/* Bottone "Aggiungi..." */

.account-add-btn {
    border-radius: 999px;
    border: 1px solid #000000;
    background-color: #000000;
    color: #ffffff;
    padding: 10px 18px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
}

.account-add-btn:hover {
    opacity: 0.9;
}

/* Card lista */

.account-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-card {
    border-radius: 16px;
    border: 1px solid #e5e5e5;
    padding: 14px 16px;
    background-color: #fafafa;
    font-size: 14px;
}

/* Se usi .account-card per gli indirizzi, rendila bianca e “premium” */
.account-card.address-card-item,
.account-section .account-card[data-kind="address"]{
    background: #ffffff;
    border-color: rgba(0,0,0,0.10);
}

.account-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-weight: 600;
}

.account-card-sub {
    font-size: 13px;
    color: #555555;
}

.account-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background-color: #000000;
    color: #ffffff;
}

.account-empty {
    font-size: 14px;
    color: #777777;
}

/* =============================
   FORM AGGIUNTA METODO PAGAMENTO
   ============================= */

.payment-form-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 80px 20px;
}

.payment-form-card {
    max-width: 520px;
    background-color: #ffffff;
    border-radius: 24px;
    padding: 28px 28px 32px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.payment-form-card h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.payment-form-subtitle {
    font-size: 13px;
    color: #666666;
    margin-bottom: 18px;
}

.payment-form-error {
    margin-bottom: 14px;
    font-size: 13px;
    color: #e74c3c;
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.payment-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-field label {
    font-size: 13px;
    font-weight: 500;
}

.payment-field input,
.payment-field select {
    height: 50px;
    border-radius: 8px;
    border: 1px solid #000000;
    padding: 0 14px;
    font-size: 14px;
    outline: none;
}

.payment-field input:focus,
.payment-field select:focus {
    box-shadow: 0 0 0 1px #000000;
}

.payment-form-row {
    display: flex;
    gap: 12px;
}

.payment-form-actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.payment-btn-primary,
.payment-btn-secondary {
    border-radius: 999px;
    height: 48px;
    padding: 0 20px;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid #000000;
    cursor: pointer;
}

.payment-btn-primary {
    background-color: #000000;
    color: #ffffff;
}

.payment-btn-secondary {
    background-color: #ffffff;
    color: #000000;
}

.payment-actions {
    margin-top: 24px;
}

/* =============================
   CHECKOUT - PAGAMENTO PREMIUM
   ============================= */

.payment-page{
  min-height: calc(100vh - 90px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 18px 80px;
  background: radial-gradient(circle at top, #ffffff 0%, #f6f6f6 70%);
}

.payment-card{
  width: min(720px, 100%);
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
  border-radius: 26px;
  padding: 28px;
  box-shadow: 0 24px 50px rgba(0,0,0,0.08);
  border: 1px solid rgba(17,17,17,0.08);
}

.payment-title{
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 6px;
}

.payment-subtitle{
  font-size: 14px;
  color: #5f5f5f;
  margin: 0 0 18px;
}

.payment-options{
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.payment-option{
  display: flex;
  gap: 12px;
  border: 1px solid rgba(17,17,17,0.12);
  border-radius: 16px;
  padding: 14px;
  background: #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.payment-option:hover{
  border-color: rgba(17,17,17,0.22);
  box-shadow: 0 12px 26px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.payment-option input{
  margin-top: 4px;
  accent-color: #111111;
}

.payment-option-main{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.payment-option-title{
  font-weight: 700;
}

.payment-option-meta{
  color: #6b6b6b;
  font-size: 13px;
  line-height: 1.35;
}

.payment-option-tag{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b6b6b;
  margin-top: 6px;
}

.payment-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.payment-stripe{
  width: min(520px, 100%);
}

#payment-element{
  margin-top: 14px;
}

#submit{
  margin-top: 14px;
  width: 100%;
}

#message{
  margin-top: 12px;
  white-space: pre-wrap;
  color: #6b6b6b;
  font-size: 13px;
}
/* =============================
   CARRELLO - PANNELLO DESTRA
   ============================= */

.page-cart {
    background-color: rgba(0, 0, 0, 0.25); /* leggero scuro sotto la navbar */
    color: #000000;
}

/* overlay sotto il pannello (tutta la pagina sotto la navbar) */
.cart-overlay {
    position: fixed;
    top: 90px;             /* sotto la navbar fissa */
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    z-index: 900;          /* sotto la navbar (1000) ma sopra il resto */
}

/* parte sinistra scurita, cliccabile per chiudere */
.cart-overlay-backdrop {
    flex: 1;
    background: rgba(0, 0, 0, 0.45);
}

/* pannello bianco a destra */
.cart-panel {
    width: 440px;
    max-width: 100%;
    height: 100%;
    background-color: #ffffff;
    box-shadow: -18px 0 40px rgba(0, 0, 0, 0.16);
    padding: 24px 24px 32px 24px;
    display: flex;
    flex-direction: column;
    animation: cartSlideIn 0.28s ease-out;
}

/* animazione ingresso da destra */
@keyframes cartSlideIn {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* header del carrello */
.cart-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.cart-header-text h1 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.cart-header-text p {
    font-size: 13px;
    color: #666666;
}

.cart-close-btn {
    border: none;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

/* corpo con la lista di elementi */
.cart-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* singolo elemento carrello */
.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item-image img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}

.cart-item-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: #f4f4f4;
}

/* info testuali */
.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.cart-item-name {
    font-weight: 600;
}

.cart-item-meta {
    color: #777777;
    font-size: 12px;
}

.cart-item-qty {
    font-size: 12px;
    color: #444444;
}

/* prezzi a destra */
.cart-item-price {
    text-align: right;
    font-size: 15px;
}

.cart-item-unit {
    color: #777777;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.cart-item-total {
    font-weight: 600;
}

/* carrello vuoto */
.cart-empty {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
}

.cart-empty p {
    font-size: 14px;
    color: #555555;
}

/* footer: totale + bottone */
.cart-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 18px;
    margin-top: 10px;
}

.cart-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 14px;
}

.cart-summary span {
    color: #555555;
}

.cart-summary strong {
    font-size: 16px;
}

/* bottone principale (vai alla shopping bag / scopri prodotti) */
.cart-primary-btn {
    width: 100%;
    height: 48px;
    border-radius: 999px;
    border: none;
    background: #000000;
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
}

/* =============================
   CARRELLO - QUANTITÀ + RIMOZIONE
   ============================= */
/* RIGA CHE CONTIENE QUANTITÀ + X RIMOZIONE */
.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px; /* distanza tra quantità e X */
    margin-top: 6px;
}

/* etichetta "QUANTITÀ:" */
.cart-item-qty-label {
    font-size: 12px;
    color: #444444;
    margin-bottom: 4px;
    display: inline-block;
}

/* X di rimozione accanto alla quantità */
.cart-remove-btn {
    border: none;
    background: transparent;
    color: #ee4633;      /* rosso */
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
}

.cart-remove-btn:hover {
    transform: scale(1.15);
}
/* wrapper quantità + input, affiancati in orizzontale */
.cart-qty-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cart-qty-label {
    font-size: 12px;
    color: #000000;
    margin-right: 4px;
}

.cart-qty-input {
    width: 44px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid #e0e0e0;
    text-align: center;
    font-size: 13px;
    outline: none;
}

.cart-qty-input:focus {
    border-color: #000000;
    box-shadow: 0 0 0 1px #000000;
}

.cart-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    cursor: pointer;
    font-size: 16px;
    color: #000000;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.cart-qty-btn:hover {
    background: #f5f5f5;
}

/* bottone X di rimozione: solo la X rossa, nessuno sfondo */
.cart-remove-btn {
    border: none;
    background: transparent;
    color: #ee4633;          /* rosso */
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.cart-remove-btn:hover {
    transform: scale(1.05);
}


.account-logout-section {
    margin-top: 40px;
    text-align: center;
}

.account-logout-btn {
    background: none;
    border: none;
    color: #e53935; /* rosso elegante */
    font-size: 20px; /* più grande */
    font-weight: 600;
    cursor: pointer;
    padding: 12px 0;
    text-transform: none;      /* niente maiuscole forzate */
}

.account-logout-btn:hover {
    color: #b71c1c; /* rosso più scuro al passaggio */
}

/* ===== CHECKOUT PAGE (premium) ===== */
.page-checkout {
    font-family: 'Montserrat', sans-serif;
    background: #ffffff;
    color: #0c0c0c;
}

.checkout-wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 64px 20px 70px;
    display: flex;
    justify-content: center;
}

.checkout-card {
    width: 100%;
    max-width: 720px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 22px;
    padding: 34px 30px 28px;
    background: #ffffff;
    box-shadow: 0 18px 60px rgba(0,0,0,0.08);
}

.checkout-title {
    margin: 0 0 24px 0;
    font-size: 40px;
    font-weight: 900;
    letter-spacing: -0.8px;
    text-align: center;
}

.checkout-error {
    margin: 0 0 18px;
    color: #b00020;
    font-weight: 600;
    text-align: center;
}

.checkout-section {
    padding: 16px 0;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.checkout-section:first-of-type {
    border-top: none;
}

.checkout-section-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.checkout-muted {
    margin: 0 0 8px;
    color: rgba(0,0,0,0.65);
    font-size: 14px;
}

.checkout-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkout-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px;
    border: 1px solid rgba(0,0,0,0.10);
    border-radius: 14px;
    cursor: pointer;
    background: #ffffff;
    transition: transform 0.08s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.checkout-option:hover {
    transform: translateY(-1px);
    border-color: rgba(0,0,0,0.22);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.checkout-option input[type="radio"] {
    transform: scale(1.1);
    accent-color: #000;
}

.checkout-option-text {
    font-size: 14px;
    font-weight: 600;
    color: rgba(0,0,0,0.86);
}

.checkout-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(0,0,0,0.70);
    text-decoration: none;
}

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

.checkout-actions {
    padding-top: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.checkout-pay-btn {
    width: 420px;
    max-width: 100%;
    height: 56px;
    border-radius: 999px;
    border: none;
    background: #000;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.08s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.checkout-pay-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.16);
}

.checkout-pay-btn--success {
    background: #14a44d; /* ✅ verde al click */
}

.checkout-back-link {
    font-size: 12px;
    font-weight: 700;
    color: rgba(0,0,0,0.65);
    text-decoration: none;
    letter-spacing: 0.04em;
}

/* =========================
   CHECKOUT (premium / coerente Barotti)
   ========================= */

.page-checkout{
  background:#fff;
  font-family:'Montserrat',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

.checkout-wrap{
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 22px 70px;
}

.checkout-card{
  background:#fff;
}

.checkout-title{
  text-align:center;
  font-size:42px;
  line-height:1.05;
  letter-spacing:-0.02em;
  font-weight:800;
  margin: 6px 0 34px;
  color:#000;
}

.checkout-error{
  margin: -18px 0 22px;
  color:#b00020;
  font-weight:600;
  text-align:center;
}

.checkout-section{
  margin: 0 0 26px;
  padding: 22px 0 0;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.checkout-section:first-of-type{
  border-top:none;
  padding-top:0;
}

.checkout-section-title{
  font-size:22px;
  font-weight:800;
  margin: 0 0 12px;
  color:#000;
}

.checkout-muted{
  margin: 0 0 8px;
  color: rgba(0,0,0,0.65);
  font-weight:500;
}

.checkout-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin: 0 0 10px;
}

.checkout-option{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.checkout-option:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.18);
}

.checkout-option input[type="radio"]{
  margin-top: 3px;
  accent-color:#000; /* coerente black */
}

.checkout-option-text{
  font-size:14.5px;
  font-weight:600;
  color:#000;
  line-height:1.35;
}

.checkout-link{
  display:inline-block;
  margin-top: 2px;
  color: rgba(0,0,0,0.75);
  font-weight:700;
  text-decoration:none;
  border-bottom: 1px solid rgba(0,0,0,0.20);
  padding-bottom:2px;
}

.checkout-link:hover{
  color:#000;
  border-bottom-color:#000;
}

.checkout-actions{
  margin-top: 14px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
}

.checkout-pay-btn{
  width: 360px;
  max-width: 100%;
  height: 54px;
  border: none;
  border-radius: 999px; /* pill */
  background:#000;
  color:#fff;
  font-weight:900;
  letter-spacing:0.12em;
  text-transform:uppercase;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.checkout-pay-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.14);
}

.checkout-pay-btn:active{
  transform: translateY(0px);
}

.checkout-pay-btn--success{
  background:#00C48C; /* verde “success” */
}

.checkout-back-link{
  font-size:12.5px;
  font-weight:700;
  color: rgba(0,0,0,0.70);
  text-decoration:none;
}

.checkout-back-link:hover{
  color:#000;
  text-decoration:underline;
}

/* responsive */
@media (max-width: 520px){
  .checkout-title{ font-size:34px; }
  .checkout-wrap{ padding: 34px 16px 60px; }
}

/* =============================
   ACCOUNT - INDIRIZZI (card + delete)
   Obiettivo: X sempre all’estrema destra, dentro la card
   Funziona sia se usi .account-address-card sia se usi .account-card
   ============================= */

/* messaggio errore (es. addrErr=db) */
.account-error{
    margin: 10px 0 14px;
    color: #e53935;
    font-weight: 700;
    font-size: 13px;
}

/* Card indirizzo (classe consigliata in account.jsp) */
.account-address-card{
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.10);
    border-radius: 16px;
    padding: 16px 58px 16px 16px; /* spazio a destra per la X */
}

/* Se in account.jsp stai usando ancora .account-card per gli indirizzi,
   garantiamo la stessa resa senza rompere altre card */
.account-card.account-address-card,
.account-card.address-card-item,
.account-section .account-card[data-kind="address"]{
    position: relative;
    padding-right: 58px;
}

/* Header: nome + badge */
.account-address-head{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 6px;
}

.account-address-title{
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #000;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

.account-address-lines{
    font-size: 13px;
    color: rgba(0,0,0,0.70);
    line-height: 1.45;
}

/* Form delete: assoluto in alto a destra dentro la card */
.addr-delete-form{
    position: absolute;
    top: 12px;
    right: 12px;
    margin: 0;
    padding: 0;
    z-index: 2;
}

.addr-edit-link{
    position: absolute;
    top: 14px;
    right: 56px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(0,0,0,0.6);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.12);
    background: #ffffff;
    transition: border-color .12s ease, color .12s ease, transform .12s ease;
}

.addr-edit-link:hover{
    color: #000000;
    border-color: rgba(0,0,0,0.35);
    transform: translateY(-1px);
}

.addr-edit-link:active{
    transform: translateY(0);
}

/* Bottone X: elegante e consistente */
.addr-delete-btn{
    width: 34px;
    height: 34px;
    border: 1px solid rgba(0,0,0,0.10);
    background: #ffffff;
    color: #e53935;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.addr-delete-btn:hover{
    background: rgba(229,57,53,.08);
    border-color: rgba(229,57,53,.22);
    transform: scale(1.06);
}

.addr-delete-btn:active{
    transform: scale(0.98);
}

@media (max-width: 768px){
    .account-address-card{
        padding: 14px 54px 14px 14px;
    }

    .addr-delete-form{
        top: 10px;
        right: 10px;
    }

    .addr-delete-btn{
        width: 32px;
        height: 32px;
        font-size: 17px;
    }
}

/* =============================
   FIX CLICK CARRELLO (overlay vs bottone checkout)
   - Il backdrop (parte scura) deve essere cliccabile per chiudere
   - Il pannello bianco deve stare sopra e restare sempre cliccabile
   ============================= */

/* contenitore overlay sotto la navbar (copre solo sotto la navbar) */
.cart-overlay {
    position: fixed;
    top: 90px;             /* sotto la navbar fissa */
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    z-index: 900;          /* sotto la navbar (1000) ma sopra il resto */
}

/* parte sinistra scurita, cliccabile per chiudere */
.cart-overlay-backdrop {
    flex: 1;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
}

/* pannello bianco a destra: sopra al backdrop */
.cart-panel {
    position: relative;
    z-index: 901;
    width: 440px;
    max-width: 100%;
    height: 100%;
    background-color: #ffffff;
    box-shadow: -18px 0 40px rgba(0, 0, 0, 0.16);
    padding: 24px 24px 32px 24px;
    display: flex;
    flex-direction: column;
    animation: cartSlideIn 0.28s ease-out;
}

/* footer: totale + bottone sempre sopra ai contenuti scrollabili */
.cart-footer {
    position: relative;
    z-index: 902;
}
/* ===== FIX DEFINITIVO CLICK CHECKOUT ===== */

/* il backdrop NON deve intercettare click sopra il pannello */
.cart-overlay-backdrop {
    pointer-events: auto;
}

/* il pannello e tutto ciò che contiene DEVE essere cliccabile */
.cart-panel,
.cart-panel * {
    pointer-events: auto;
}

/* il form e il bottone sopra a tutto */
.cart-footer {
    position: relative;
    z-index: 9999;
}

.cart-footer form,
.cart-footer button {
    position: relative;
    z-index: 10000;
}

/* =============================
   ADDRESS (Add / Edit Address)
   ============================= */

.page-address {
    background: #ffffff;
    color: #000000;
    padding-top: 90px; /* navbar fissa */
}

.address-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 20px 90px;
    display: flex;
    justify-content: center;
}

.address-card {
    width: 100%;
    max-width: 720px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 24px;
    padding: 32px 28px 28px;
    box-shadow: 0 18px 60px rgba(0,0,0,0.08);
}

.address-title {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0 0 8px 0;
    text-align: left;
}

.address-subtitle {
    font-size: 14px;
    color: rgba(0,0,0,0.65);
    margin: 0 0 22px 0;
    line-height: 1.45;
}

.address-error {
    margin: 0 0 16px 0;
    color: #b00020;
    font-weight: 700;
    font-size: 13px;
}

.address-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}

.address-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.address-field label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(0,0,0,0.85);
}

.address-field input {
    height: 52px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.14);
    padding: 0 14px;
    font-size: 14px;
    outline: none;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.address-field input::placeholder {
    color: rgba(0,0,0,0.35);
}

.address-field input:focus {
    border-color: rgba(0,0,0,0.45);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}

.address-field--full {
    grid-column: 1 / -1;
}

.address-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    user-select: none;
}

.address-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #000;
}

.address-checkbox span {
    font-size: 13px;
    font-weight: 600;
    color: rgba(0,0,0,0.80);
}

.address-actions {
    margin-top: 14px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.btn-address-primary,
.btn-address-secondary {
    height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid #000;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.1s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.btn-address-primary {
    background: #000;
    color: #fff;
}

.btn-address-secondary {
    background: #fff;
    color: #000;
}

.btn-address-primary:hover,
.btn-address-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 35px rgba(0,0,0,0.12);
}

.btn-address-primary:active,
.btn-address-secondary:active {
    transform: translateY(0);
    box-shadow: none;
}

@media (max-width: 768px) {
    .page-address { padding-top: 70px; }
    .address-wrap { padding: 34px 16px 70px; }
    .address-title { font-size: 28px; }
    .address-grid { grid-template-columns: 1fr; }
}
/* =========================
   PRODUCT - COLOR DOTS (VAI/MEGA)
   ========================= */

.colors-dots{
  display:flex;
  align-items:center;
  gap:10px;
}

.color-select{
  width: 100%;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(17,17,17,0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,248,248,0.85));
  box-shadow: 0 10px 24px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #111111;
  appearance: none;
}

.color-select:focus{
  outline: none;
  border-color: rgba(17,17,17,0.35);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.8);
}

.order-return-label{
  color: #b00020;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.refund-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.refund-status--done {
  background: #e4f6ea;
  color: #0f6b2c;
  border: 1px solid #b7e2c2;
}

.order-return .refund-action {
  border: 1px solid rgba(0,0,0,0.12);
  background: #ffffff;
  color: #111111;
  cursor: pointer;
}

.order-return .refund-action:hover {
  border-color: rgba(0,0,0,0.35);
}

.orders-page{
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 18px 60px;
  font-family: "Montserrat", sans-serif;
}

.orders-header{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.orders-title{
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin: 0;
  color: #111111;
}

.orders-subtitle{
  margin: 0;
  color: #5a5a5a;
  font-size: 14px;
}

.order-empty{
  padding: 18px;
  border: 1px solid #ececec;
  border-radius: 16px;
  background: #fafafa;
  color: #5a5a5a;
}

.order-card{
  border: 1px solid rgba(17,17,17,0.08);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.order-card-header{
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.order-summary{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-number{
  font-weight: 700;
  font-size: 16px;
}

.order-meta{
  font-size: 13px;
  color: #6b6b6b;
}

.order-total{
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-total-amount{
  font-weight: 800;
  font-size: 16px;
}

.order-total-payment{
  font-size: 13px;
  color: #6b6b6b;
}

.order-divider{
  border: none;
  border-top: 1px solid #eeeeee;
  margin: 16px 0;
}

.order-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.order-block{
  border: 1px solid #f0f0f0;
  border-radius: 14px;
  padding: 14px;
  background: #ffffff;
}

.order-block--wide{
  grid-column: span 2;
}

.order-block-title{
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6a6a6a;
}

.order-block-body{
  color: #2b2b2b;
  font-size: 14px;
}

.order-address{
  line-height: 1.45;
}

.order-items{
  margin-top: 16px;
  border: 1px solid #f0f0f0;
  border-radius: 14px;
  padding: 14px;
  background: #ffffff;
}

.order-items-title{
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6a6a6a;
}

.order-items-empty{
  color: #6b6b6b;
}

.order-item{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f4f4f4;
}

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

.order-item-name{
  font-weight: 600;
}

.btn-premium{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.btn-premium:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.16);
}

.btn-premium--ghost{
  background: #fff;
  color: #000;
}

.btn-premium--ghost:hover{
  background: #f4f4f4;
}

.order-item-meta{
  color: #6b6b6b;
  font-size: 13px;
  margin-top: 4px;
}

.order-item-price{
  font-weight: 700;
}

.order-return{
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.order-return-hint{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b6b6b;
}

/* =============================
   CART TOAST
   ============================= */

.cart-toast{
  position: fixed;
  top: 100px;
  right: 24px;
  background: #e7f6ec;
  color: #0f5132;
  border: 1px solid #b7e2c2;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  z-index: 1100;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cart-toast--warning{
  background: #111111;
  color: #ffffff;
  border-color: #111111;
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}

.cart-toast--hide{
  opacity: 0;
  transform: translateY(-6px);
}

@media (max-width: 820px){
  .order-grid{
    grid-template-columns: 1fr;
  }

  .order-block--wide{
    grid-column: span 1;
  }

  .order-total{
    text-align: left;
  }
}

.color-dot{
  width:16px;
  height:16px;
  border-radius:50%;
  border:1px solid rgba(0,0,0,0.18);
  background:#cfcfcf;            /* fallback se manca una classe */
  cursor:pointer;
  padding:0;
  outline:none;
  position:relative;
}

/* cerchio attivo (come Apple) */
.color-dot.color-dot-active{
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #111;
}

/* ---- I TUOI COLORI NUOVI ---- */
.color-dot-nero{
  background:#0c0c0c;
}

.color-dot-sabbia{
  background:#d7c3a6; /* sabbia */
}

/* varianti "gold": colore + dettaglio oro */
.color-dot-nero-gold{
  background: linear-gradient(135deg, #0c0c0c 0 70%, #c8a34a 70% 100%);
}

.color-dot-sabbia-gold{
  background: linear-gradient(135deg, #d7c3a6 0 70%, #c8a34a 70% 100%);
}

.color-dot-antracite-gold{
  background: linear-gradient(135deg, #3a3a3a 0 70%, #c8a34a 70% 100%);
}
/* ===== FIX COLOR DOTS (tutti i prodotti) - mettere in fondo a style.css ===== */

/* Base: se manca una classe colore, resta un grigio neutro */
.color-dot{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  outline: none;
  display: inline-block;
  background: #cfcfcf !important; /* fallback */
  border: 1px solid rgba(0,0,0,0.18) !important;
}

/* Stato attivo: anello nero elegante */
.color-dot.color-dot-active{
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #111;
}

/* =====================
   Classi “vecchie” usate in alcuni .jsp
   (es: color-dot-black / beige / grey / pink)
   ===================== */
.color-dot-black{ background: #000000 !important; }
.color-dot-beige{ background: #e8ddcf !important; }
.color-dot-grey{  background: #c9c9c9 !important; }
.color-dot-pink{  background: #ffc0cb !important; }
.color-dot-verde-scuro{ background: #2f4a3a !important; }

/* =====================
   Classi “nuove” (es: nero / sabbia / gold)
   ===================== */
.color-dot-nero{ background: #0c0c0c !important; }
.color-dot-sabbia{ background: #d7c3a6 !important; }
.color-dot-salvia{ background: #8fa68a !important; }
.color-dot-nero-puro{ background: #0c0c0c !important; }
.color-dot-antracide-puro{ background: #3a3a3a !important; }

/* varianti "gold": colore + dettaglio oro */
.color-dot-nero-gold{
  background: linear-gradient(135deg, #0c0c0c 0 70%, #c8a34a 70% 100%) !important;
}

.color-dot-sabbia-gold{
  background: linear-gradient(135deg, #d7c3a6 0 70%, #c8a34a 70% 100%) !important;
}

.color-dot-antracite-gold{
  background: linear-gradient(135deg, #3a3a3a 0 70%, #c8a34a 70% 100%) !important;
}

/* Fallback XL Pro: usa data-color se manca la classe */
.color-dot[data-color="Salvia"]{ background: #8fa68a !important; }
.color-dot[data-color="Nero Puro"]:not(.color-dot-nero-gold){ background: #0c0c0c !important; }
.color-dot[data-color="Antracide Puro"]:not(.color-dot-antracite-gold){ background: #3a3a3a !important; }

/* =============================
   FOOTER PREMIUM
============================= */
.site-footer {
  background: #0b0b0b;
  color: #f5f5f5;
  margin-top: 80px;
  padding: 64px 0 36px;
}

.site-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
}

.site-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer-logo {
  width: 140px;
  height: auto;
  filter: brightness(0) invert(1);
}

.site-footer-title {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
  display: inline-block;
}

.site-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.site-footer-links a {
  color: #f5f5f5;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.site-footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.site-footer-bottom {
  max-width: 1180px;
  margin: 28px auto 0;
  padding: 18px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  width: 100%;
}

.footer-company {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(200, 163, 74, 0.25);
}

.footer-dev-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-dev-link:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
  }
}

/* =============================
   PAGINE STATICHE (Novita, Chi Siamo)
============================= */
.page-static {
  background: #f6f5f2;
}

.static-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 140px 24px 90px;
}

.static-hero {
  background: #ffffff;
  border-radius: 28px;
  padding: 48px 48px 40px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.static-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 11px;
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 14px;
}

.static-title {
  font-size: 36px;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
  color: #0d0d0d;
}

.static-subtitle {
  font-size: 16px;
  color: rgba(0, 0, 0, 0.65);
  line-height: 1.6;
}

.static-card {
  margin-top: 24px;
  background: #ffffff;
  border-radius: 24px;
  padding: 32px 36px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.catalog-download {
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: linear-gradient(180deg, #ffffff 0%, #fbf9f5 100%);
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.08);
}

.catalog-download::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  width: 140px;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #c8a36b 48%, rgba(0, 0, 0, 0) 100%);
  opacity: 0.8;
}

.catalog-download__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 11px;
  color: rgba(13, 13, 13, 0.55);
  margin: 6px 0 12px;
}

.catalog-download__title {
  font-size: 28px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.catalog-download__meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  margin-bottom: 18px;
}

.catalog-download__badge {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 6px 10px;
  border-radius: 999px;
  background: #0d0d0d;
  color: #ffffff;
}

.catalog-download__file {
  font-size: 15px;
  color: rgba(0, 0, 0, 0.7);
}

.catalog-download__hint {
  margin-top: 8px;
}

.catalog-download .btn-primary {
  margin: 14px auto 0;
  max-width: 320px;
  background: linear-gradient(135deg, #0d0d0d 0%, #202020 100%);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
  letter-spacing: 0.22em;
}

.catalog-download-note {
  margin-top: 14px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(13, 13, 13, 0.55);
}

@media (max-width: 768px) {
  .catalog-download {
    padding: 28px 22px;
  }

  .catalog-download__title {
    font-size: 24px;
    letter-spacing: 0.14em;
  }

  .catalog-download__meta {
    width: 100%;
    justify-content: center;
  }
}

.static-card h2 {
  font-size: 18px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.static-text {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.7);
}

.static-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  font-size: 15px;
  color: rgba(0, 0, 0, 0.7);
}

.static-list li {
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
  .static-wrap {
    padding: 120px 18px 70px;
  }

  .static-hero {
    padding: 36px 26px;
    border-radius: 22px;
  }

  .static-title {
    font-size: 28px;
  }
}

/* =============================
   MOBILE OVERRIDES (iPhone)
============================= */
@media (max-width: 600px) {
  body {
    padding-top: 0;
    background: #ffffff;
    color: #111111;
  }

  .navbar {
    position: sticky;
    top: 0;
    height: 52px;
    padding: 0 10px;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    grid-template-columns: auto 1fr auto;
  }

  .nav-item span {
    display: none;
  }

  .nav-left,
  .nav-right {
    gap: 6px;
  }

  .nav-item,
  .icon-button {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 999px;
    background: transparent;
    border: none;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .icon {
    width: 20px;
    height: 20px;
  }

  .logo {
    height: 46px;
  }

  .side-menu {
    top: 52px;
    height: calc(100svh - 52px);
    width: 100%;
    max-width: 100%;
    box-shadow: none;
    background: #ffffff;
  }

  .side-menu-inner {
    padding: 16px 16px 24px;
    gap: 16px;
  }

  .side-menu-link {
    padding: 10px 14px;
    font-size: 11px;
    letter-spacing: 0.12em;
    border-radius: 14px;
  }

  .search-bar-overlay {
    top: 52px;
  }

  .search-bar-inner {
    padding: 0 14px;
    gap: 8px;
    flex-direction: column;
    align-items: stretch;
  }

  .search-close {
    width: 100%;
    border: 1px solid #dcdcdc;
    border-radius: 999px;
    padding: 10px 0;
  }

  .auth-panel {
    padding: 16px 16px 24px;
  }

  .auth-header h2 {
    font-size: 20px;
  }

  .auth-section-header,
  .auth-section-header-register {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .auth-field input {
    height: 46px;
    font-size: 14px;
  }

  .auth-primary-btn {
    height: 48px;
    font-size: 14px;
  }

  .cart-overlay {
    top: 52px;
  }

  .cart-panel {
    padding: 16px 14px 22px;
  }

  .cart-item {
    grid-template-columns: 64px 1fr;
    gap: 10px;
  }

  .cart-item-price {
    text-align: left;
    font-size: 14px;
  }

  .cart-qty-btn {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }

  .cart-qty-input {
    width: 36px;
    height: 28px;
    font-size: 12px;
  }

  .cart-remove-btn {
    font-size: 16px;
  }

  .cart-primary-btn {
    height: 46px;
    font-size: 12px;
  }

  .hero {
    height: 46svh;
  }

  .products-title,
  .section-products .section-title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .product-detail {
    padding: 0 0 36px;
  }

  .product-detail-images {
    padding: 0 12px;
    gap: 12px;
  }

  .product-main-image {
    flex: 0 0 100%;
    border-radius: 12px;
  }

  .product-detail-info {
    margin: 8px 12px 0;
    padding: 16px;
    border-radius: 16px;
  }
}

@media (max-width: 600px) {
  body {
    padding-top: 0;
  }

  .navbar {
    height: 60px;
    padding: 0 12px;
  }

  .nav-item span {
    display: none;
  }

  .nav-left,
  .nav-right {
    gap: 8px;
  }

  .nav-item {
    font-size: 11px;
    letter-spacing: 0.06em;
    gap: 4px;
  }

  .nav-item,
  .icon-button {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 999px;
    background: #f6f6f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .logo {
    height: 60px;
  }

  .icon {
    width: 20px;
    height: 20px;
  }

  .side-menu {
    top: 60px;
    height: calc(100svh - 60px);
    width: 100%;
    max-width: 100%;
  }

  .search-bar-overlay {
    top: 60px;
  }

  .search-bar-inner {
    padding: 0 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .search-input {
    height: 44px;
    font-size: 14px;
  }

  .hero {
    height: calc(65svh - 64px);
  }

  .products-section {
    padding: 72px 16px 80px;
    margin-top: 40px;
  }

  .products-title {
    font-size: 28px;
    margin-bottom: 32px;
  }

  .products-grid {
    gap: 20px;
  }

  .product-card {
    border-radius: 18px;
  }

  .section-products {
    padding: 64px 16px 80px;
    min-height: auto;
  }

  .section-products .section-title {
    font-size: 30px;
    margin-bottom: 32px;
  }

  .section-products .products-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .section-products .product-card img {
    max-width: 220px;
  }

  .section-products .product-name {
    font-size: 14px;
  }

  .section-links {
    min-height: auto;
    padding: 48px 16px;
  }

  .footer-link {
    font-size: 15px;
    letter-spacing: 0.08em;
  }

  body.page-home {
    scroll-snap-type: none;
  }

  .section-products,
  .section-links {
    scroll-snap-align: none;
  }

  .product-detail {
    padding: 12px 0 48px;
    gap: 18px;
    display: flex;
    flex-direction: column;
  }

  .product-detail-name {
    font-size: 24px;
  }

  .product-detail-subtitle {
    font-size: 14px;
  }

  .product-detail-price {
    font-size: 18px;
  }

  .product-thumbs img {
    width: 64px;
    height: 64px;
  }

  .product-detail-images {
    flex-direction: row;
    gap: 16px;
    padding: 0 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .product-detail-images > div {
    display: contents;
  }

  .product-detail-images::-webkit-scrollbar {
    display: none;
  }

  .product-main-image {
    flex: 0 0 86%;
    scroll-snap-align: center;
    border-radius: 16px;
    box-shadow: none;
  }

  .product-main-image img {
    border-radius: 16px;
  }

  .product-detail-info {
    padding: 0 16px;
  }

  .btn-primary {
    font-size: 13px;
    padding: 12px 24px;
  }

  .product-detail-features h2 {
    font-size: 18px;
  }

  .product-detail-features ul {
    font-size: 14px;
  }

  .accordion-title {
    font-size: 13px;
  }

  .accordion-toggle {
    font-size: 20px;
  }

  .cart-overlay {
    top: 64px;
  }

  .cart-panel {
    width: 100%;
    padding: 18px 16px 24px;
  }

  .cart-item {
    grid-template-columns: 64px 1fr auto;
    gap: 10px;
  }

  .cart-item-image img,
  .cart-item-placeholder {
    width: 64px;
    height: 64px;
  }

  .cart-header-text h1 {
    font-size: 18px;
  }

  .checkout-wrap {
    padding: 40px 14px 60px;
  }

  .checkout-card {
    padding: 24px 18px 22px;
  }

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

  .checkout-pay-btn {
    height: 48px;
    font-size: 12px;
  }

  .auth-panel {
    padding: 20px 16px 28px;
  }

  .auth-field input {
    height: 48px;
  }

  .auth-primary-btn {
    height: 48px;
    font-size: 15px;
  }

  .site-footer {
    padding: 48px 0 28px;
  }

  .site-footer-inner {
    gap: 24px;
  }

  .site-footer-logo {
    width: 120px;
  }

  .site-footer-title {
    letter-spacing: 0.2em;
  }

  .site-footer-links a {
    font-size: 11px;
  }

  .footer-company {
    font-size: 12px;
    letter-spacing: 0.18em;
  }

  .footer-dev-link {
    font-size: 11px;
    padding: 8px 14px;
  }

  .static-wrap {
    padding: 100px 16px 60px;
  }

  .static-hero {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .static-title {
    font-size: 24px;
  }

  .static-card {
    padding: 22px 20px;
  }
}

@media (max-width: 420px) {
  .nav-left,
  .nav-right {
    gap: 6px;
  }

  .nav-item,
  .icon-button {
    width: 36px;
    height: 36px;
  }

  .icon {
    width: 18px;
    height: 18px;
  }

  .logo {
    height: 54px;
  }

  .product-detail {
    padding: 16px 12px 40px;
  }

  .product-detail-images {
    gap: 12px;
  }

  .product-main-image {
    border-radius: 14px;
    box-shadow: none;
  }

  .product-detail-name {
    font-size: 22px;
  }

  .product-detail-subtitle {
    font-size: 13px;
  }

  .product-detail-price {
    font-size: 17px;
  }

  .btn-primary {
    max-width: 100%;
  }

  .footer-link {
    font-size: 14px;
    letter-spacing: 0.06em;
  }
}

/* =============================
   MOBILE LUXURY OVERRIDES
============================= */
@media (max-width: 768px) {
    body {
        padding-top: 0;
        background: #ffffff;
        color: var(--text);
    }

    .navbar {
        position: sticky;
        top: 0;
        height: 60px;
        padding: 0 var(--pad);
        background: #ffffff;
        border-bottom: 1px solid #eeeeee;
        grid-template-columns: auto 1fr auto;
        z-index: 1200;
    }

    .page-product .navbar {
        position: sticky;
    }

    .nav-item span {
        display: none;
    }

    .nav-back-icon {
        display: inline-block;
    }

    .nav-left,
    .nav-right {
        gap: 8px;
    }

    .nav-item,
    .icon-button {
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 999px;
        background: transparent;
        border: none;
        box-shadow: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .icon {
        width: 20px;
        height: 20px;
    }

    .logo {
        height: 28px;
    }

    .cart-badge {
        top: -2px;
        right: -2px;
        min-width: 14px;
        height: 14px;
        font-size: 9px;
    }

    .side-menu {
        top: 60px;
        height: calc(100svh - 60px);
        width: 100%;
        max-width: 100%;
        box-shadow: none;
        background: #ffffff;
        border-right: none;
    }

    .side-menu-inner {
        padding: 20px var(--pad) 28px;
        gap: 16px;
    }

    .side-menu-link {
        padding: 12px 16px;
        font-size: 12px;
        letter-spacing: 0.12em;
        border-radius: 16px;
    }

    .search-bar-overlay {
        top: 60px;
        background: #ffffff;
    }

    .search-bar-inner {
        padding: 0 var(--pad);
        gap: 8px;
        flex-direction: column;
        align-items: stretch;
    }

    .search-input {
        height: 48px;
        border-radius: 16px;
        font-size: 15px;
        border-color: #e1e1e1;
    }

    .search-close {
        width: 100%;
        height: 44px;
        border-radius: 999px;
        border: 1px solid #e1e1e1;
    }

    .products-section,
    .section-products,
    .footer-links-section {
        padding: 48px var(--pad);
    }

    .products-title,
    .section-products .section-title {
        font-size: 26px;
        letter-spacing: 0.12em;
        margin-bottom: 28px;
    }

    .products-grid,
    .section-products .products-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .product-card {
        border-radius: var(--radius);
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
    }

    .section-links {
        min-height: auto;
        padding: 48px var(--pad);
    }

    .footer-link {
        font-size: 15px;
        letter-spacing: 0.08em;
    }

    .product-detail {
        padding: 0 0 40px;
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .product-detail-images {
        padding: 0 var(--pad);
        gap: 0;
        overflow: hidden;
    }

    .product-detail-images > div {
        flex-direction: row !important;
        gap: 12px !important;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scroll-padding: 16px;
    }

    .product-detail-images > div::-webkit-scrollbar {
        display: none;
    }

    .product-main-image {
        flex: 0 0 88%;
        border-radius: 18px;
        background: var(--soft);
        box-shadow: none;
        scroll-snap-align: center;
    }

    .product-main-image img {
        border-radius: 18px;
    }

    .product-detail-info {
        margin: 0 var(--pad);
        padding: 18px;
        background: var(--bg);
        border-radius: 18px;
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
    }

    .product-detail-name {
        font-size: 26px;
    }

    .product-detail-subtitle {
        font-size: 14px;
        color: var(--muted);
    }

    .product-detail-price {
        font-size: 20px;
    }

    .colors-label,
    .quantity-label {
        font-size: 12px;
        letter-spacing: 0.16em;
    }

    .color-select {
        height: 48px;
        border-radius: 14px;
        border: 1px solid #e1e1e1;
        padding: 0 14px;
        font-size: 14px;
        background: var(--bg);
    }

    .colors-dots {
        gap: 12px;
    }

    .color-dot {
        width: 20px;
        height: 20px;
        border: 1px solid rgba(0, 0, 0, 0.18);
    }

    .color-dot-active {
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
        border-color: #000000;
    }

    .quantity-control {
        border-radius: 999px;
        border-color: #e1e1e1;
    }

    .quantity-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .quantity-input {
        width: 44px;
        font-size: 14px;
    }

    .btn-primary {
        width: 100%;
        max-width: none;
        height: 56px;
        border-radius: 999px;
        letter-spacing: 0.18em;
        font-size: 12px;
    }

    .accordion-title {
        font-size: 13px;
        color: #000000;
    }

    .accordion-content-inner {
        font-size: 14px;
        color: var(--muted);
    }

    .accordion-toggle {
        color: #000000;
    }

    .cart-overlay {
        top: 60px;
    }

    .cart-panel {
        width: 100%;
        padding: 18px var(--pad) 26px;
    }

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

    .cart-item-price {
        text-align: left;
        font-size: 14px;
    }

    .cart-summary strong {
        font-size: 16px;
    }

    .cart-primary-btn {
        height: 52px;
        font-size: 12px;
    }

    .checkout-wrap {
        padding: 36px var(--pad) 56px;
    }

    .checkout-card {
        padding: 24px 18px 22px;
        border-radius: 18px;
    }

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

    .auth-panel {
        padding: 18px var(--pad) 28px;
        background: var(--bg);
    }

    .auth-header h2 {
        font-size: 20px;
    }

    .auth-section-header,
    .auth-section-header-register {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .auth-field input {
        height: 50px;
        border-radius: 14px;
    }

    .auth-primary-btn {
        height: 52px;
        border-radius: 999px;
        font-size: 14px;
    }

    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .site-footer-links a {
        font-size: 12px;
        padding: 4px 0;
    }
}

@media (max-width: 420px) {
    .navbar {
        height: 56px;
    }

    .logo {
        height: 26px;
    }

    .nav-item,
    .icon-button {
        width: 40px;
        height: 40px;
    }

    .product-main-image {
        flex: 0 0 92%;
    }

    .product-detail-info {
        padding: 16px;
        border-radius: 16px;
    }
}

/* =============================
   MOBILE REDESIGN (iPhone)
============================= */
@media (max-width: 600px) {
  body {
    background: #ffffff;
    color: #111111;
    font-size: 15px;
  }

  .navbar {
    position: sticky;
    top: 0;
    height: 56px;
    padding: 0 10px;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav-left,
  .nav-right {
    gap: 6px;
  }

  .nav-item,
  .icon-button {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
  }

  .icon {
    width: 18px;
    height: 18px;
  }

  .logo {
    height: 52px;
  }

  .hero {
    height: 52svh;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .products-section,
  .section-products,
  .footer-links-section {
    padding: 48px 16px;
  }

  .products-title,
  .section-products .section-title {
    font-size: 26px;
    letter-spacing: 0.14em;
    margin-bottom: 28px;
  }

  .products-grid,
  .section-products .products-grid {
    gap: 16px;
  }

  .product-card {
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  }

  .section-products .product-card img {
    max-width: 240px;
  }

  .section-links {
    min-height: auto;
    padding: 48px 16px;
  }

  .footer-link {
    font-size: 14px;
    letter-spacing: 0.08em;
  }

  .side-menu {
    background: #ffffff;
    border-right: none;
    box-shadow: none;
  }

  .side-menu-inner {
    padding: 22px 20px 28px;
  }

  .side-menu-link {
    padding: 12px 16px;
    font-size: 12px;
    letter-spacing: 0.14em;
  }

  .search-bar-inner {
    padding: 0 16px;
  }

  .search-input {
    height: 44px;
    font-size: 14px;
  }

  .product-detail {
    padding: 0 0 40px;
  }

  .product-detail-images {
    padding: 0 12px;
    gap: 14px;
  }

  .product-main-image {
    flex: 0 0 92%;
    border-radius: 18px;
    background: #ffffff;
  }

  .product-detail-info {
    margin: 10px 16px 0;
    padding: 18px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  }

  .product-detail-name {
    font-size: 22px;
  }

  .product-detail-price {
    font-size: 18px;
  }

  .btn-primary {
    max-width: 100%;
    height: 52px;
    font-size: 12px;
    letter-spacing: 0.18em;
  }

  .cart-panel {
    width: 100%;
    padding: 18px 16px 24px;
  }

  .checkout-card,
  .static-hero,
  .static-card {
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  }

  .site-footer {
    background: #0f0f0f;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .site-footer-bottom {
    align-items: center;
    text-align: center;
  }
}

/* Fix overlay click-blocking on navbar buttons */
.auth-overlay,
.search-bar-overlay {
  pointer-events: none;
}

.auth-overlay.auth-overlay--open,
.search-bar-overlay.search-bar-overlay--open {
  pointer-events: auto;
}

.btn-sold-out {
  background: #b00020 !important;
  color: #fff !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
  box-shadow: 0 0 18px rgba(176, 0, 32, 0.55);
  animation: soldPulse 1.2s infinite ease-in-out;
}

@keyframes soldPulse {
  0% { box-shadow: 0 0 8px rgba(176, 0, 32, 0.35); }
  50% { box-shadow: 0 0 22px rgba(176, 0, 32, 0.75); }
  100% { box-shadow: 0 0 8px rgba(176, 0, 32, 0.35); }
}

/* Tutte le pagine con navbar fixed devono stare sotto */
.page-account,
.page-cart,
.page-checkout,
.page-address,
.page-static {
    padding-top: 90px;
}

@media (max-width: 768px) {
  .hero {
    margin-top: 60px; /* navbar mobile */
    height: calc(100vh - 60px);
  }
}

@media (max-width: 600px) {
  .hero {
    margin-top: 56px; /* navbar iPhone */
    height: calc(100vh - 56px);
  }
}

.btn-order-delete{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #b00020;
  background: #ffffff;
  color: #b00020;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.btn-order-delete:hover{
  background: #b00020;
  color:#fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(176,0,32,.25);
}