/* ============================================================
   UNITERPSAL — Orbital HUD interface
   Concept: satellite/aerospace instrument panel
   Palette: near-black space · ice-blue glow · chrome silver
   Type: Chakra Petch (display) · Sora (body) · Space Mono (telemetry)
   ============================================================ */

:root {
    --bg:           #06080e;
    --bg-2:         #0a0e18;
    --surface:      #0d1322;
    --surface-2:    #131c30;
    --surface-3:    #1a2740;

    --border:        rgba(92, 200, 255, 0.10);
    --border-bright: rgba(92, 200, 255, 0.30);
    --hairline:      rgba(159, 180, 212, 0.14);

    --ice:        #5cc8ff;
    --ice-soft:   #8ad8ff;
    --ice-dim:    #2e8fc4;
    --chrome:     #9fb4d4;
    --chrome-br:  #d6e4f7;

    --text:      #e8eef7;
    --text-dim:  rgba(232, 238, 247, 0.52);
    --text-mute: rgba(232, 238, 247, 0.32);
    --danger:    #ff5a6e;
    --ok:        #4ade80;

    --glow:      rgba(92, 200, 255, 0.40);
    --glow-soft: rgba(92, 200, 255, 0.16);

    --radius:    18px;
    --radius-sm: 12px;
    --radius-xs: 9px;

    --font:    'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    --display: 'Chakra Petch', 'Sora', sans-serif;
    --mono:    'Space Mono', ui-monospace, monospace;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--bg);
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    touch-action: pan-y pinch-zoom;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* ---- Sfondo spazio animato: glow di profondità + stelle (puntini bianchi) + stelle cadenti ---- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(120% 70% at 50% -10%, rgba(92, 200, 255, 0.14) 0%, transparent 55%),
        radial-gradient(90% 60% at 100% 5%, rgba(46, 143, 196, 0.10) 0%, transparent 50%),
        radial-gradient(140% 100% at 50% 115%, rgba(26, 39, 64, 0.5) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 45%, var(--bg) 100%);
}

/* campo "lontano": tanti puntini bianchi piccoli e fiochi, twinkle lento */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-repeat: no-repeat;
    background-image:
        radial-gradient(1px 1px at 10% 12%, rgba(255,255,255,0.7), transparent 60%),
        radial-gradient(1px 1px at 28% 44%, rgba(255,255,255,0.5), transparent 60%),
        radial-gradient(1px 1px at 47% 19%, rgba(255,255,255,0.6), transparent 60%),
        radial-gradient(1px 1px at 63% 66%, rgba(255,255,255,0.5), transparent 60%),
        radial-gradient(1px 1px at 81% 33%, rgba(255,255,255,0.65), transparent 60%),
        radial-gradient(1px 1px at 92% 77%, rgba(255,255,255,0.5), transparent 60%),
        radial-gradient(1px 1px at 17% 73%, rgba(255,255,255,0.55), transparent 60%),
        radial-gradient(1px 1px at 37% 89%, rgba(255,255,255,0.45), transparent 60%),
        radial-gradient(1px 1px at 55% 51%, rgba(255,255,255,0.5), transparent 60%),
        radial-gradient(1px 1px at 72% 90%, rgba(255,255,255,0.5), transparent 60%),
        radial-gradient(1px 1px at 5% 55%, rgba(255,255,255,0.5), transparent 60%),
        radial-gradient(1px 1px at 95% 14%, rgba(255,255,255,0.55), transparent 60%),
        radial-gradient(1px 1px at 21% 6%, rgba(255,255,255,0.5), transparent 60%),
        radial-gradient(1px 1px at 34% 33%, rgba(255,255,255,0.45), transparent 60%),
        radial-gradient(1px 1px at 58% 8%, rgba(255,255,255,0.55), transparent 60%),
        radial-gradient(1px 1px at 68% 28%, rgba(255,255,255,0.5), transparent 60%),
        radial-gradient(1px 1px at 88% 50%, rgba(255,255,255,0.5), transparent 60%),
        radial-gradient(1px 1px at 44% 62%, rgba(255,255,255,0.45), transparent 60%),
        radial-gradient(1px 1px at 7% 90%, rgba(255,255,255,0.5), transparent 60%),
        radial-gradient(1px 1px at 50% 78%, rgba(255,255,255,0.45), transparent 60%),
        radial-gradient(1px 1px at 26% 60%, rgba(255,255,255,0.5), transparent 60%);
    animation: twinkle-far 7s ease-in-out infinite alternate;
}
@keyframes twinkle-far { from { opacity: 0.35; } to { opacity: 0.75; } }

/* campo "vicino": meno stelle ma luminose (puntini bianchi con alone), twinkle marcato */
.starfield {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-repeat: no-repeat;
    background-image:
        radial-gradient(1.8px 1.8px at 22% 27%, #fff, transparent 62%),
        radial-gradient(2.2px 2.2px at 78% 16%, #fff, transparent 60%),
        radial-gradient(1.6px 1.6px at 41% 71%, rgba(255,255,255,0.95), transparent 62%),
        radial-gradient(2.4px 2.4px at 88% 57%, #fff, transparent 58%),
        radial-gradient(1.6px 1.6px at 13% 83%, rgba(255,255,255,0.9), transparent 62%),
        radial-gradient(1.9px 1.9px at 60% 92%, rgba(255,255,255,0.95), transparent 60%),
        radial-gradient(1.7px 1.7px at 52% 7%, rgba(255,255,255,0.9), transparent 62%),
        radial-gradient(2px 2px at 33% 50%, #fff, transparent 60%),
        radial-gradient(1.7px 1.7px at 8% 38%, #fff, transparent 62%),
        radial-gradient(2px 2px at 67% 40%, #fff, transparent 58%),
        radial-gradient(1.6px 1.6px at 95% 80%, rgba(255,255,255,0.92), transparent 62%),
        radial-gradient(1.8px 1.8px at 30% 12%, #fff, transparent 60%),
        radial-gradient(1.6px 1.6px at 72% 74%, rgba(255,255,255,0.9), transparent 62%),
        radial-gradient(2.1px 2.1px at 46% 35%, #fff, transparent 58%);
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.55));
    animation: twinkle-near 3.6s ease-in-out infinite alternate;
}
@keyframes twinkle-near { 0% { opacity: 0.55; } 50% { opacity: 1; } 100% { opacity: 0.7; } }

/* stelle cadenti — layer dedicato SOPRA i contenuti (sotto la navbar) così
   attraversano tutto lo schermo, non solo l'header */
.shooting-layer {
    position: fixed;
    inset: 0;
    z-index: 0;            /* nello sfondo, dietro ai contenuti */
    pointer-events: none;
    overflow: hidden;
}
.shooting {
    position: absolute;
    width: 150px; height: 1.6px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.95));
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.7));
    opacity: 0;
    will-change: transform, opacity;
}
.shooting::after {
    content: '';
    position: absolute; right: 0; top: 50%;
    width: 3px; height: 3px; border-radius: 50%;
    background: #fff;
    transform: translateY(-50%);
    box-shadow: 0 0 10px 2px rgba(255,255,255,0.9);
}
@keyframes shoot {
    0%   { opacity: 0; transform: rotate(24deg) translateX(0); }
    5%   { opacity: 1; }
    18%  { opacity: 1; }
    32%  { opacity: 0; transform: rotate(24deg) translateX(720px); }
    100% { opacity: 0; transform: rotate(24deg) translateX(720px); }
}
/* poche e diradate: ~una stella ogni diversi secondi */
.shooting:nth-child(1) { top: 5%;  left: -10%; animation: shoot 13s ease-in 2s   infinite; }
.shooting:nth-child(2) { top: 14%; left: 30%;  animation: shoot 16s ease-in 8s   infinite; }
.shooting:nth-child(3) { top: 2%;  left: 55%;  animation: shoot 15s ease-in 14s  infinite; }

@media (prefers-reduced-motion: reduce) {
    .shooting-layer { display: none; }
    .starfield, body::after { animation: none; }
}

.app-container {
    max-width: 440px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    z-index: 10;
    padding-bottom: 96px;
}

/* ============================================================
   LOADING SCREEN
   ============================================================ */
.loading-screen {
    position: fixed; inset: 0; z-index: 9000;
    display: flex; align-items: center; justify-content: center; flex-direction: column;
    background: var(--bg);
}
.loading-logo { width: 180px; height: auto; opacity: 0.9; filter: drop-shadow(0 0 24px var(--glow)); }
.loading-text {
    margin-top: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--ice); opacity: 0.8;
    animation: blink 1.2s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }

/* ============================================================
   HEADER — logo framed by an orbital ring
   ============================================================ */
.header {
    position: relative;
    padding: 30px 24px 14px;
    display: flex;
    justify-content: center;
}
.logo-section { position: relative; display: flex; justify-content: center; }
.header-container {
    position: relative;
    width: 100%;
    height: 176px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.front-header {
    width: 176px;
    height: 176px;
    object-fit: contain;
    /* Il video è un globo (cerchio) su sfondo nero quadrato. L'app-container
       isola il contesto, quindi mix-blend-mode non funziona. Uso invece una
       maschera circolare: ritaglia il globo e dissolve TUTTO ciò che sta fuori
       (sfondo nero, bordo quadrato, alone del limbo) — niente quadrato, niente
       contorno. Il testo "UNITERPSAL" resta dentro il raggio del globo. */
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 43%, rgba(0,0,0,0.55) 47%, transparent 51%);
    mask-image: radial-gradient(circle at 50% 50%, #000 43%, rgba(0,0,0,0.55) 47%, transparent 51%);
    /* il globo nel video è scuro: lo ravvivo così non sembra "spento/opaco" */
    filter: brightness(1.42) contrast(1.12) saturate(1.28);
    position: relative;
    z-index: 2;
}

/* ============================================================
   CATEGORY FILTER — HUD pill tabs (horizontal scroll, sticky)
   ============================================================ */
.farm-filter-container,
.category-filter {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 6px 0 2px;
    background: linear-gradient(180deg, var(--bg) 55%, rgba(6, 8, 14, 0));
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.category-scroll {
    display: flex;
    gap: 8px;
    padding: 10px 16px;   /* spazio verticale: l'alone della tab "In evidenza" non viene tagliato */
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.category-scroll::-webkit-scrollbar { display: none; }

/* chip categoria: stile "outline" leggero, tondo — distinto dal toggle pieno */
.cat-chip {
    flex: 0 0 auto;
    position: relative;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 14px;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
                background 0.25s var(--ease), transform 0.15s var(--ease);
}
.cat-chip:active { transform: scale(0.95); }
@media (hover: hover) {
    .cat-chip:hover { color: var(--text); border-color: var(--border-bright); }
}
.cat-chip.active {
    color: var(--ice);
    background: rgba(92, 200, 255, 0.10);
    border-color: var(--ice);
    font-weight: 700;
}

/* legacy <select> fallback (if pills fail to build) */
.farm-dropdown {
    max-width: 320px; margin: 0 auto; display: block;
    padding: 11px 16px; font-family: var(--mono); font-size: 13px; font-weight: 600;
    color: var(--text); background: var(--surface);
    border: 1px solid var(--border-bright); border-radius: var(--radius-sm);
}

/* ============================================================
   TOGGLE PROVENIENZA — Spedito da Italia / Spagna
   ============================================================ */
/* Controllo SEGMENTATO: un solo contenitore con due metà unite (≠ pill categorie) */
.country-toggle {
    display: flex;
    gap: 5px;
    margin: 14px 16px 0;
    padding: 5px;
    background: var(--surface);
    border: 1px solid var(--border-bright);
    border-radius: 15px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}
.country-btn {
    flex: 1 1 0;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 11px 8px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-dim);
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: color 0.2s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.15s var(--ease);
}
.country-btn .cflag { font-size: 14px; line-height: 1; }
.country-btn:active { transform: scale(0.97); }
@media (hover: hover) {
    .country-btn:hover { color: var(--text); }
}
.country-btn.active {
    color: #04121c;
    background: linear-gradient(135deg, var(--ice-soft), var(--ice));
    box-shadow: 0 2px 10px -3px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* ============================================================
   PRODUCTS GRID + CARDS
   ============================================================ */
.products-grid {
    padding: 14px 14px 28px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 12px;
}

/* Full-bleed card: l'immagine riempie tutta la card, testo in overlay */
.product-card {
    position: relative;
    aspect-ratio: 4 / 5;
    background: #05070c;
    border: 1px solid var(--border);
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
    content-visibility: auto;
    contain-intrinsic-size: 300px;
    will-change: transform;
}
.product-card:active { transform: scale(0.975); }
@media (hover: hover) {
    .product-card:hover {
        border-color: var(--border-bright);
        box-shadow: 0 16px 46px -18px rgba(0, 0, 0, 0.95), 0 0 0 1px var(--glow-soft);
        transform: translateY(-3px);
    }
}

.product-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #05070c;
}
.product-image {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease);
}
@media (hover: hover) {
    .product-card:hover .product-image { transform: scale(1.07); }
}
.product-media::after {
    /* sfumatura per leggibilità del testo in basso */
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(6, 8, 14, 0) 30%, rgba(6, 8, 14, 0.45) 58%, rgba(6, 8, 14, 0.96) 100%);
    pointer-events: none;
}

/* category badge (alto-sx) */
.product-tag {
    position: absolute;
    top: 10px; left: 10px;
    z-index: 3;
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ice-soft);
    background: rgba(6, 12, 20, 0.6);
    border: 1px solid var(--border-bright);
    border-radius: 6px;
    padding: 4px 8px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

/* overlay testo in basso */
.product-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 3;
    padding: 14px 13px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.product-card .product-name {
    font-family: var(--display);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.18;
    letter-spacing: 0.01em;
    color: #fff;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.75);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-brand {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.58);
}
.product-price {
    margin-top: 4px;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--ice);
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.8);
}

/* out-of-stock (supported if data carries the flag) */
.product-card.sold-out .product-image { filter: grayscale(0.85) brightness(0.5); }
.product-card.sold-out .product-price { color: var(--text-mute); text-shadow: none; }
.sold-out-badge {
    position: absolute; top: 10px; right: 10px; z-index: 4;
    font-family: var(--mono); font-size: 8.5px; font-weight: 700; letter-spacing: 0.08em;
    color: #fff; background: rgba(255, 90, 110, 0.92);
    border-radius: 6px; padding: 4px 7px; text-transform: uppercase;
}

/* entrance fade is handled in JS (IntersectionObserver) to stay in
   sync with lazy media loading; we avoid a CSS keyframe here so it
   doesn't override :hover / :active transforms via animation-fill. */

/* ============================================================
   FOOTER CREDITS
   ============================================================ */
.footer-credits {
    text-align: center;
    padding: 8px 0 18px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-mute);
}
.footer-credits .made-by { opacity: 0.7; }
.footer-credits .credit-link {
    color: var(--ice);
    text-decoration: none;
    border-bottom: 1px solid var(--border-bright);
    padding-bottom: 1px;
    margin-left: 4px;
}

/* ============================================================
   BOTTOM NAV — console segmentata (piatta, niente glass/glow)
   ============================================================ */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9999;
    padding-bottom: env(safe-area-inset-bottom);
    background: #080b12;
    border-top: 1px solid var(--hairline);
}
.bottom-nav::before {
    /* sottile riga d'accento, piatta, tutta larghezza */
    content: '';
    position: absolute; top: -1px; left: 0; right: 0; height: 1px;
    background: var(--border-bright);
    opacity: 0.5;
}
.nav-buttons {
    display: flex;
    max-width: 440px;
    margin: 0 auto;
}
.nav-btn {
    flex: 1 1 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    padding: 12px 2px;
    color: var(--text-mute);
    text-decoration: none;
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
/* divisori verticali tra i segmenti (look da pannello strumenti) */
.nav-btn + .nav-btn::before {
    content: '';
    position: absolute; left: 0; top: 24%; bottom: 24%;
    width: 1px; background: var(--hairline);
}
.nav-btn .icon { display: flex; align-items: center; justify-content: center; height: 22px; }
.nav-btn .icon svg { width: 19px; height: 19px; }
.nav-btn .icon svg path,
.nav-btn .icon svg circle,
.nav-btn .icon svg polyline { stroke: currentColor; }
.nav-btn:active { color: var(--text); }
@media (hover: hover) {
    .nav-btn:hover { color: var(--text-dim); }
}
/* ATTIVO: segmento illuminato, piatto, con barra netta in cima */
.nav-btn.active {
    color: var(--ice);
    background: rgba(92, 200, 255, 0.06);
}
.nav-btn.active::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--ice);
}

/* ============================================================
   DETAIL HEADER + BACK BUTTON (info + product detail)
   ============================================================ */
.detail-header {
    position: sticky; top: 0; z-index: 60;
    padding: 14px 16px 10px;
    background: linear-gradient(180deg, var(--bg) 60%, transparent);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.back-button {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.2s var(--ease);
}
.back-button:active { transform: scale(0.92); }
.back-button:hover { border-color: var(--border-bright); background: var(--surface-2); }

/* ============================================================
   PRODUCT DETAIL VIEW
   ============================================================ */
.detail-content { padding: 4px 18px 32px; }
.detail-media {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #05070c;
    box-shadow: 0 20px 50px -24px rgba(0,0,0,0.9);
}
.detail-media video, .detail-media img {
    display: block; width: 100%;
}

.detail-product-name { margin-top: 20px; }
.detail-chips-row { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.detail-chip {
    font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--ice-soft);
    background: rgba(92, 200, 255, 0.08);
    border: 1px solid var(--border-bright);
    border-radius: 7px; padding: 5px 10px;
}
.detail-chip-origin {
    color: var(--chrome-br);
    background: rgba(159, 180, 212, 0.10);
    border-color: var(--hairline);
}
.product-name-text {
    font-family: var(--display);
    font-weight: 700;
    font-size: 26px;
    line-height: 1.12;
    letter-spacing: 0.005em;
    color: var(--chrome-br);
    text-shadow: 0 0 30px rgba(92, 200, 255, 0.12);
}
.detail-main-price {
    margin-top: 12px;
    display: flex; align-items: baseline; gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(92,200,255,0.10), rgba(13,19,34,0.6));
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-sm);
}
.detail-main-price-label {
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--text-dim);
}
.detail-main-price-value {
    font-family: var(--mono); font-size: 18px; font-weight: 700;
    color: var(--ice); text-shadow: 0 0 16px var(--glow-soft); margin-left: auto;
}

.detail-description-section { margin-top: 26px; }
.detail-description-section::before {
    content: '◇ DETTAGLI';
    display: block;
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em;
    text-transform: uppercase; color: var(--ice);
    margin-bottom: 12px;
}
.detail-description {
    position: relative;
    font-family: var(--font); font-size: 15px; line-height: 1.72;
    color: rgba(232, 238, 247, 0.82);
    padding: 16px 16px 16px 20px;
    background: linear-gradient(135deg, rgba(13, 19, 34, 0.7), rgba(10, 14, 24, 0.4));
    border: 1px solid var(--border);
    border-left: 2px solid var(--border-bright);
    border-radius: var(--radius-sm);
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.detail-description strong, .detail-description b { color: var(--ice-soft); font-weight: 600; }
.detail-description:empty { display: none; }

/* section heading marker reused for prices */
.detail-prices-section { margin-top: 26px; }
.detail-prices-section::before {
    content: '◇ LISTINO';
    display: block;
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em;
    text-transform: uppercase; color: var(--ice);
    margin-bottom: 12px;
}
.detail-prices { display: flex; flex-direction: column; gap: 2px; }
.detail-price-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    background: rgba(13, 19, 34, 0.5);
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.detail-price-item:active { background: var(--surface-2); }
@media (hover: hover) { .detail-price-item:hover { border-color: var(--border-bright); } }
.detail-price-quantity {
    font-family: var(--mono); font-size: 13px; font-weight: 500;
    letter-spacing: 0.04em; color: var(--text);
}
.detail-price-value {
    font-family: var(--mono); font-size: 14px; font-weight: 700;
    color: var(--ice);
}

.contact-buttons { margin-top: 26px; }
.contact-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%;
    padding: 16px;
    font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #04121c;
    background: linear-gradient(135deg, var(--ice-soft), var(--ice));
    border: none; border-radius: var(--radius-sm);
    text-decoration: none;
    box-shadow: 0 12px 32px -10px var(--glow);
    transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
}
.contact-btn svg { stroke: #04121c; }
.contact-btn:active { transform: scale(0.98); }
@media (hover: hover) {
    .contact-btn:hover { box-shadow: 0 16px 40px -8px var(--glow); }
}

/* ============================================================
   CAROUSEL (videos / images)
   ============================================================ */
.video-carousel, .image-carousel { position: relative; }
.carousel-video, .carousel-image {
    width: 100%; max-height: 56vh; object-fit: contain;
    background: #05070c; display: block;
}
.carousel-controls {
    position: absolute; bottom: 12px; left: 0; right: 0;
    display: flex; align-items: center; justify-content: center; gap: 14px;
    z-index: 5;
}
.carousel-btn {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; line-height: 1;
    color: var(--text);
    background: rgba(6, 12, 20, 0.7);
    border: 1px solid var(--border-bright);
    border-radius: 50%;
    cursor: pointer;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.carousel-btn:active { transform: scale(0.9); }
.carousel-indicators { display: flex; gap: 7px; }
.carousel-indicators .indicator {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(159, 180, 212, 0.35);
    cursor: pointer; transition: all 0.25s var(--ease);
}
.carousel-indicators .indicator.active {
    background: var(--ice); width: 20px; border-radius: 4px;
    box-shadow: 0 0 8px var(--glow);
}
.video-counter, .image-counter {
    position: absolute; top: 12px; right: 12px; z-index: 5;
    font-family: var(--mono); font-size: 11px; font-weight: 700;
    color: var(--text); background: rgba(6, 12, 20, 0.7);
    border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px;
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}

/* ============================================================
   INFO / FAQ VIEW
   ============================================================ */
.info-page-content { padding: 4px 18px 36px; }
.info-hero { text-align: center; padding: 18px 0 26px; }
.info-hero-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: 32px;
    letter-spacing: 0.14em;
    color: var(--chrome-br);
    text-shadow: 0 0 30px rgba(92, 200, 255, 0.25);
}
.info-hero-subtitle {
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--text-dim); margin-top: 8px;
}
.info-hero-divider { margin-top: 16px; display: flex; justify-content: center; }

.faq-container { display: flex; flex-direction: column; gap: 26px; }
.faq-category-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--hairline);
}
.faq-category-icon { display: flex; filter: drop-shadow(0 0 8px var(--glow-soft)); }
.faq-category-title {
    font-family: var(--display); font-weight: 600; font-size: 15px;
    letter-spacing: 0.06em; text-transform: uppercase; color: var(--text);
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(13, 19, 34, 0.45);
    margin-bottom: 8px;
    overflow: hidden;
    transition: border-color 0.25s var(--ease);
}
.faq-item.active { border-color: var(--border-bright); }
.faq-question {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 15px 16px;
    background: none; border: none; cursor: pointer; text-align: left;
    font-family: var(--font); font-weight: 500; font-size: 13.5px; line-height: 1.4;
    color: var(--text);
}
.faq-chevron { color: var(--ice); flex-shrink: 0; transition: transform 0.3s var(--ease); }
.faq-item.active .faq-chevron { transform: rotate(180deg); }
.faq-answer {
    max-height: 0; overflow: hidden;
    padding: 0 16px;
    transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}
.faq-item.active .faq-answer { max-height: 720px; padding: 0 16px 16px; }
.faq-answer p {
    font-family: var(--font); font-size: 13px; line-height: 1.6;
    color: var(--text-dim); margin-bottom: 7px;
}
.faq-answer strong { color: var(--text); font-weight: 600; }
.faq-note {
    font-size: 11.5px !important; color: var(--text-mute) !important;
    font-style: italic; margin-top: 6px;
}
.inline-icon { color: var(--ice); font-weight: 700; }

/* price grid (couriers) */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 4px 0 8px; }
.price-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid var(--border); border-radius: var(--radius-xs);
    background: rgba(13, 19, 34, 0.5);
}
.price-item.free { border-color: rgba(74, 222, 128, 0.4); }
.price-name { font-family: var(--font); font-size: 12.5px; color: var(--text); }
.price-value { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--ice); }
.price-item.free .price-value { color: var(--ok); }

/* payment grid */
.payment-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 4px 0 8px; }
.payment-item {
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    padding: 14px 10px;
    border: 1px solid var(--border); border-radius: var(--radius-xs);
    background: rgba(13, 19, 34, 0.5); text-align: center;
    color: var(--chrome);
}
.payment-item.highlight { border-color: var(--border-bright); background: rgba(92,200,255,0.07); }
.payment-icon { display: flex; color: var(--ice); }
.payment-name { font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--text); }
.payment-fee { font-family: var(--mono); font-size: 10px; color: var(--text-dim); letter-spacing: 0.04em; }
.payment-item.highlight .payment-fee { color: var(--ok); }

/* reship list */
.reship-list { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 8px; }
.reship-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    border: 1px solid var(--border); border-radius: var(--radius-xs);
    background: rgba(13, 19, 34, 0.5);
    font-family: var(--font); font-size: 12.5px; color: var(--text-dim);
}
.reship-item strong { color: var(--text); }
.reship-icon {
    flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
}
.reship-item.yes .reship-icon { color: var(--ok); background: rgba(74,222,128,0.12); border: 1px solid rgba(74,222,128,0.4); }
.reship-item.no  .reship-icon { color: var(--danger); background: rgba(255,90,110,0.1); border: 1px solid rgba(255,90,110,0.35); }

/* escrow box */
.escrow-box { margin: 4px 0 12px; }
.escrow-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid var(--border-bright); border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(92,200,255,0.08), rgba(13,19,34,0.6));
    text-decoration: none;
}
.escrow-name { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--ice); }
.escrow-fee { font-family: var(--mono); font-size: 11px; color: var(--text-dim);
    border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; }

/* disclaimer */
.info-disclaimer {
    display: flex; align-items: center; gap: 14px;
    margin-top: 28px; padding: 16px;
    border: 1px solid rgba(251, 191, 36, 0.3); border-radius: var(--radius-sm);
    background: rgba(251, 191, 36, 0.05);
}
.disclaimer-icon { flex-shrink: 0; }
.info-disclaimer p { font-family: var(--font); font-size: 12.5px; line-height: 1.5; color: var(--text-dim); }
.info-disclaimer strong { color: #fbe28a; font-weight: 600; }

/* ============================================================
   FEEDBACK GALLERY
   ============================================================ */
/* masonry a 2 colonne: ogni foto a rapporto naturale, mostrata per intero */
.feedback-grid {
    column-count: 2;
    column-gap: 12px;
    margin-top: 8px;
}
.feedback-card {
    position: relative;
    border: 1px solid var(--border);
    background: #05070c;
    overflow: hidden;
    cursor: pointer;
    width: 100%;
    margin: 0 0 12px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
/* HUD corner ticks (coerenti con le product card) */
.feedback-card::before,
.feedback-card::after {
    content: '';
    position: absolute;
    width: 11px; height: 11px;
    border: 1px solid var(--border-bright);
    z-index: 3; pointer-events: none; opacity: 0.7;
    transition: opacity 0.3s var(--ease);
}
.feedback-card::before { top: 7px; left: 7px; border-right: none; border-bottom: none; }
.feedback-card::after  { bottom: 7px; right: 7px; border-left: none; border-top: none; }
.feedback-card:active { transform: scale(0.97); }
@media (hover: hover) {
    .feedback-card:hover { border-color: var(--border-bright); box-shadow: 0 10px 30px -14px rgba(0,0,0,0.9), 0 0 0 1px var(--glow-soft); }
    .feedback-card:hover::before, .feedback-card:hover::after { opacity: 1; }
}
.feedback-card img {
    width: 100%; height: auto;
    object-fit: contain; display: block;
}

.feedback-empty {
    display: none;
    flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    padding: 56px 20px;
    text-align: center;
}
.feedback-empty svg { opacity: 0.8; filter: drop-shadow(0 0 12px var(--glow-soft)); }
.feedback-empty p {
    font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
    line-height: 1.7; color: var(--text-dim); text-transform: uppercase;
}

/* fullscreen zoom */
.feedback-zoom {
    position: fixed; inset: 0; z-index: 100000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    background: rgba(3, 5, 10, 0.92);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.28s var(--ease), visibility 0.28s var(--ease);
}
.feedback-zoom.open { opacity: 1; visibility: visible; }
.feedback-zoom img {
    max-width: 100%; max-height: 86vh;
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-sm);
    box-shadow: 0 30px 80px -20px #000;
    transform: scale(0.96);
    transition: transform 0.28s var(--ease);
}
.feedback-zoom.open img { transform: scale(1); }
.feedback-zoom-close {
    position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 16px;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; line-height: 1; color: var(--text);
    background: var(--surface); border: 1px solid var(--border-bright);
    border-radius: 50%; cursor: pointer;
}

/* ============================================================
   MAINTENANCE (injected by script) + ADMIN BANNER
   ============================================================ */
#maintenance-screen {
    font-family: var(--font) !important;
    background: var(--bg) !important;
}
#maintenance-screen > div:first-child { filter: drop-shadow(0 0 22px var(--glow)); }
#admin-maintenance-banner {
    font-family: var(--mono) !important;
    letter-spacing: 0.08em;
    background: linear-gradient(90deg, var(--ice-dim), var(--ice)) !important;
    color: #04121c !important;
}

/* ============================================================
   VIEW TRANSITIONS
   ============================================================ */
#info-view, #product-detail-view { animation: view-in 0.4s var(--ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(92, 200, 255, 0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(92, 200, 255, 0.45); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ============================================================
   AVVISO HOMEPAGE — banner personalizzato (bot / pannello admin)
   ============================================================ */
.announce {
    --a-c: var(--ice);
    --a-c2: var(--ice-soft);
    --a-bg: rgba(92, 200, 255, 0.10);
    --a-bd: rgba(92, 200, 255, 0.38);
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 6px 16px 4px;
    padding: 14px 14px 14px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--a-bd);
    background:
        linear-gradient(135deg, var(--a-bg) 0%, rgba(13, 19, 34, 0.92) 62%),
        var(--surface);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.02) inset, 0 0 26px -10px var(--a-c);
    overflow: hidden;
    animation: announce-in 0.5s var(--ease) both;
    transition: opacity 0.25s, transform 0.25s;
}
.announce[hidden] { display: none; }
.announce::before {           /* barra laterale luminosa */
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--a-c2), var(--a-c));
    box-shadow: 0 0 14px var(--a-c);
}
.announce::after {            /* riflesso HUD che scorre una volta */
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: -40%;
    width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
    transform: skewX(-18deg);
    animation: announce-sweep 2.4s 0.4s var(--ease) both;
    pointer-events: none;
}
.announce--warning { --a-c: #ffc94d; --a-c2: #ffe08a; --a-bg: rgba(255, 201, 77, 0.12); --a-bd: rgba(255, 201, 77, 0.42); }
.announce--urgent  { --a-c: var(--danger); --a-c2: #ff8d9b; --a-bg: rgba(255, 90, 110, 0.13); --a-bd: rgba(255, 90, 110, 0.48); }
.announce--success { --a-c: var(--ok); --a-c2: #8ef0b2; --a-bg: rgba(74, 222, 128, 0.11); --a-bd: rgba(74, 222, 128, 0.40); }
.announce--out { opacity: 0; transform: translateY(-6px) scale(0.98); }

.announce-icon {
    flex: 0 0 auto;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 11px;
    color: var(--a-c2);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--a-bd);
    box-shadow: 0 0 18px -6px var(--a-c) inset;
}
.announce-icon svg { width: 20px; height: 20px; }
.announce--urgent .announce-icon { animation: announce-pulse 1.8s ease-in-out infinite; }

.announce-body { flex: 1 1 auto; min-width: 0; padding-top: 1px; }
.announce-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--a-c2);
    margin-bottom: 4px;
}
.announce-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--a-c);
    box-shadow: 0 0 8px var(--a-c);
    animation: blink 1.6s steps(2) infinite;
}
.announce-title {
    font-family: var(--display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.25;
    color: var(--text);
    margin-bottom: 3px;
}
.announce-text {
    font-family: var(--font);
    font-size: 13.5px;
    line-height: 1.55;
    color: rgba(232, 238, 247, 0.86);
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.announce-text a {
    color: var(--a-c2);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}
.announce-close {
    flex: 0 0 auto;
    width: 30px; height: 30px;
    margin: -4px -4px 0 0;
    display: flex; align-items: center; justify-content: center;
    border: none; border-radius: 9px;
    background: transparent;
    color: var(--text-mute);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.announce-close svg { width: 16px; height: 16px; }
.announce-close:active { background: rgba(255, 255, 255, 0.06); color: var(--text); }

@keyframes announce-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes announce-sweep { from { left: -40%; } to { left: 120%; } }
@keyframes announce-pulse { 0%, 100% { box-shadow: 0 0 18px -6px var(--a-c) inset; } 50% { box-shadow: 0 0 22px -2px var(--a-c) inset, 0 0 14px -4px var(--a-c); } }
@media (prefers-reduced-motion: reduce) {
    .announce, .announce::after, .announce-dot, .announce--urgent .announce-icon { animation: none; }
}

/* ============================================================
   PRODOTTO IN EVIDENZA — luce colorata (scelta dall'admin) attorno alla card
   --hl = "r, g, b"
   ============================================================ */
@property --hl-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.product-card.is-featured {
    --hl: 92, 200, 255;
    border-color: rgba(var(--hl), 0.85);
    box-shadow:
        0 0 0 1px rgba(var(--hl), 0.55),
        0 0 16px 2px rgba(var(--hl), 0.62),
        0 0 38px 4px rgba(var(--hl), 0.38),
        0 18px 40px -18px rgba(0, 0, 0, 0.9);
    animation: hl-breathe 3.2s ease-in-out infinite;
    content-visibility: visible;
    z-index: 1;
}
/* scia di luce che gira lungo il bordo */
.product-card.is-featured::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 5;
    padding: 2.5px;
    background: conic-gradient(from var(--hl-angle),
        transparent 0deg, transparent 230deg,
        rgba(var(--hl), 0.9) 300deg, #fff 330deg, rgba(var(--hl), 0.9) 345deg,
        transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: hl-spin 3.6s linear infinite;
    pointer-events: none;
}
/* velo di colore dal basso: lega la luce al contenuto */
.product-card.is-featured .product-media::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(120% 60% at 50% 110%, rgba(var(--hl), 0.38), transparent 60%),
        linear-gradient(180deg, rgba(var(--hl), 0.10), transparent 30%);
    mix-blend-mode: screen;
    pointer-events: none;
}
.product-card.is-featured .product-price { color: rgb(var(--hl)); filter: brightness(1.25); }
.featured-badge {
    align-self: flex-start;
    margin-bottom: 5px;
    display: inline-flex; align-items: center; gap: 4px;
    font-family: var(--mono);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(var(--hl), 0.28);
    border: 1px solid rgba(var(--hl), 0.9);
    border-radius: 6px;
    padding: 4px 7px;
    box-shadow: 0 0 12px rgba(var(--hl), 0.6), inset 0 0 8px rgba(var(--hl), 0.35);
    text-shadow: 0 0 8px rgba(var(--hl), 0.9);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.featured-badge svg { width: 10px; height: 10px; fill: rgb(var(--hl)); filter: drop-shadow(0 0 4px rgba(var(--hl), 0.9)) brightness(1.3); }
@keyframes hl-spin { to { --hl-angle: 360deg; } }
@keyframes hl-breathe {
    0%, 100% { box-shadow: 0 0 0 1px rgba(var(--hl), 0.55), 0 0 16px 2px rgba(var(--hl), 0.62), 0 0 38px 4px rgba(var(--hl), 0.38), 0 18px 40px -18px rgba(0, 0, 0, 0.9); }
    50%      { box-shadow: 0 0 0 1px rgba(var(--hl), 0.8), 0 0 24px 4px rgba(var(--hl), 0.78), 0 0 56px 8px rgba(var(--hl), 0.48), 0 18px 40px -18px rgba(0, 0, 0, 0.9); }
}
@media (prefers-reduced-motion: reduce) {
    .product-card.is-featured, .product-card.is-featured::before { animation: none; }
}

/* tab "In evidenza" nel filtro categorie */
.cat-chip--featured {
    --hl: 92, 200, 255;
    display: inline-flex; align-items: center; gap: 5px;
    color: rgb(var(--hl));
    border-color: rgba(var(--hl), 0.6);
    background: rgba(var(--hl), 0.08);
    box-shadow: inset 0 0 10px -2px rgba(var(--hl), 0.55);
    text-shadow: 0 0 8px rgba(var(--hl), 0.55);
    font-weight: 700;
}
.cat-chip--featured svg { width: 11px; height: 11px; fill: currentColor; filter: drop-shadow(0 0 4px rgba(var(--hl), 0.9)); }
.cat-chip--featured.active {
    color: #fff;
    background: rgba(var(--hl), 0.26);
    border-color: rgb(var(--hl));
    box-shadow: inset 0 0 14px rgba(var(--hl), 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* ============================================================
   LUCE SU TUTTE LE CARD — bianca per i prodotti normali
   (stesso effetto dell'evidenza, più discreto e senza "respiro")
   ============================================================ */
.product-card:not(.is-featured):not(.is-promo) {
    --hl: 255, 255, 255;
    border-color: rgba(255, 255, 255, 0.62);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.22),
        0 0 14px 1px rgba(255, 255, 255, 0.30),
        0 0 32px 3px rgba(255, 255, 255, 0.13),
        0 16px 34px -18px rgba(0, 0, 0, 0.9);
}
.product-card:not(.is-featured):not(.is-promo)::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 5;
    padding: 2px;
    background: conic-gradient(from var(--hl-angle),
        transparent 0deg, transparent 235deg,
        rgba(255, 255, 255, 0.6) 305deg, #fff 332deg, rgba(255, 255, 255, 0.6) 347deg,
        transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: hl-spin 5s linear infinite;
    pointer-events: none;
}
.product-card.sold-out:not(.is-featured):not(.is-promo) { border-color: rgba(255, 255, 255, 0.14); box-shadow: 0 16px 34px -18px rgba(0, 0, 0, 0.9); }
.product-card.sold-out:not(.is-featured):not(.is-promo)::before { display: none; }

/* ============================================================
   PROMO DEL MESE — luce rosso/arancio + scritta
   ============================================================ */
.product-card.is-promo {
    --hl: 255, 106, 36;
    border-color: rgba(255, 120, 40, 0.95);
    box-shadow:
        0 0 0 1px rgba(255, 70, 40, 0.6),
        0 0 16px 2px rgba(255, 70, 40, 0.65),
        0 0 40px 5px rgba(255, 150, 30, 0.38),
        0 18px 40px -18px rgba(0, 0, 0, 0.9);
    animation: promo-breathe 2.6s ease-in-out infinite;
    content-visibility: visible;
    z-index: 1;
}
.product-card.is-promo::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 5;
    padding: 2.5px;
    background: conic-gradient(from var(--hl-angle),
        transparent 0deg, transparent 200deg,
        #ff2d2d 270deg, #ff8a1f 305deg, #ffe0a0 330deg, #ff8a1f 345deg,
        transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: hl-spin 3s linear infinite;
    pointer-events: none;
}
.product-card.is-promo .product-media::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(120% 60% at 50% 112%, rgba(255, 90, 30, 0.45), transparent 62%),
        linear-gradient(180deg, rgba(255, 60, 40, 0.12), transparent 32%);
    mix-blend-mode: screen;
    pointer-events: none;
}
.product-card.is-promo .product-price { color: #ffa24a; text-shadow: 0 0 12px rgba(255, 110, 30, 0.6); }
.promo-badge {
    align-self: flex-start;
    margin-bottom: 5px;
    display: inline-flex; align-items: center; gap: 5px;
    font-family: var(--mono);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(90deg, #ff2d2d, #ff8a1f);
    border-radius: 6px;
    padding: 4px 8px 4px 7px;
    box-shadow: 0 0 14px rgba(255, 90, 30, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    text-shadow: 0 1px 2px rgba(120, 20, 0, 0.6);
    animation: promo-badge 2.6s ease-in-out infinite;
}
.promo-badge svg { width: 10px; height: 10px; fill: #fff3d6; filter: drop-shadow(0 0 3px rgba(255, 220, 120, 0.9)); }
@keyframes promo-breathe {
    0%, 100% { box-shadow: 0 0 0 1px rgba(255, 70, 40, 0.6), 0 0 16px 2px rgba(255, 70, 40, 0.65), 0 0 40px 5px rgba(255, 150, 30, 0.38), 0 18px 40px -18px rgba(0, 0, 0, 0.9); }
    50%      { box-shadow: 0 0 0 1px rgba(255, 140, 40, 0.85), 0 0 24px 4px rgba(255, 120, 30, 0.8), 0 0 58px 9px rgba(255, 60, 30, 0.45), 0 18px 40px -18px rgba(0, 0, 0, 0.9); }
}
@keyframes promo-badge { 50% { box-shadow: 0 0 20px rgba(255, 120, 30, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.35); } }
@media (prefers-reduced-motion: reduce) {
    .product-card::before, .product-card.is-promo, .promo-badge { animation: none !important; }
}
