/* ════════════════════════════════════════════════════════════════
   TechStore Italia · Foglio di stile premium
   Palette: bianco / grigio scuro · accento blu · angoli arrotondati
   ════════════════════════════════════════════════════════════════ */

:root {
  --bg: #f9fafb;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --accent: #0055ff;
  --accent-hover: #0044cc;
  --text: #0a0a0a;
  --text-2: #52525b;
  --border: #e4e4e7;
  --success: #16a34a;
  --danger: #dc2626;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, .08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .12);
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 72px;
  --nav-blur: saturate(180%) blur(20px);
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --surface: #141416;
  --surface-2: #1c1c1f;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --text: #fafafa;
  --text-2: #a1a1aa;
  --border: rgba(255, 255, 255, .10);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .4);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, .5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .6);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}

h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; letter-spacing: -.02em; line-height: 1.1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

::selection { background: var(--accent); color: #fff; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

/* ─── Bottoni ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: var(--surface-2); color: var(--text); }
.btn-ghost:hover { background: var(--border); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ─── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: var(--nav-blur);
  -webkit-backdrop-filter: var(--nav-blur);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .site-header { background: rgba(10, 10, 10, .7); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 100%; }
.logo { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -.03em; display: flex; align-items: center; gap: 9px; }
.logo .dot { color: var(--accent); }
.logo-badge { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.main-nav { display: flex; gap: 26px; margin-left: 8px; }
.main-nav a { font-weight: 600; font-size: 15px; color: var(--text-2); position: relative; transition: color .2s ease; }
.main-nav a:hover { color: var(--text); }
.main-nav a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--accent); transition: width .25s ease; }
.main-nav a:hover::after { width: 100%; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: transparent; border: none; color: var(--text); cursor: pointer; position: relative; transition: background-color .2s ease; }
.icon-btn:hover { background: var(--surface-2); }
.cart-badge { position: absolute; top: 4px; right: 4px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; display: grid; place-items: center; }
.search-box { flex: 1; max-width: 340px; position: relative; display: flex; align-items: center; }
.search-box input { width: 100%; padding: 10px 14px 10px 40px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-family: inherit; font-size: 14px; outline: none; transition: border-color .2s ease; }
.search-box input:focus { border-color: var(--accent); }
.search-box svg { position: absolute; left: 14px; color: var(--text-2); }
.menu-toggle { display: none; }

/* ─── Hero ─────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; border-radius: 0 0 32px 32px; }
.hero-media { position: relative; min-height: 560px; display: flex; align-items: center; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.15) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 640px; color: #fff; padding: 60px 0; }
.hero-content .eyebrow { color: #7dd3fc; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; margin: 16px 0 20px; }
.hero p { font-size: 18px; color: rgba(255,255,255,.82); margin-bottom: 32px; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 26px; margin-top: 40px; flex-wrap: wrap; }
.hero-trust div { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.9); font-weight: 600; }

/* ─── Sezioni ──────────────────────────────────────────────── */
section { padding: 72px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; gap: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; }
.section-head p { color: var(--text-2); margin-top: 6px; }
.link-more { color: var(--accent); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; transition: gap .2s ease; }
.link-more:hover { gap: 12px; }

/* ─── Bento categorie ──────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 18px; }
.bento-card { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm); }
.bento-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.bento-card:hover img { transform: scale(1.08); }
.bento-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.7) 100%); }
.bento-card .bento-label { position: absolute; left: 22px; bottom: 20px; z-index: 2; color: #fff; }
.bento-card .bento-label h3 { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.bento-card .bento-label span { font-size: 13px; opacity: .85; }
.bento-lg { grid-column: span 2; grid-row: span 2; }

/* ─── Card prodotto ────────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-thumb { position: relative; aspect-ratio: 4/3; background: var(--surface-2); overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.badge { font-size: 11px; font-weight: 800; padding: 5px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.badge-sale { background: var(--danger); color: #fff; }
.badge-new { background: var(--accent); color: #fff; }
.badge-hot { background: #f59e0b; color: #fff; }
.wish-btn { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 999px; background: rgba(255,255,255,.9); border: none; display: grid; place-items: center; cursor: pointer; color: #52525b; transition: color .2s ease, transform .2s ease; }
.wish-btn:hover { color: var(--danger); transform: scale(1.1); }
.product-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-brand { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-2); font-weight: 700; }
.product-title { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 16px; line-height: 1.35; color: var(--text); }
.product-rating { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-2); }
.stars { color: #f59e0b; letter-spacing: 1px; }
.price-row { display: flex; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 8px; }
.price-now { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 22px; color: var(--text); }
.price-old { font-size: 15px; color: var(--text-2); text-decoration: line-through; }
.price-save { font-size: 12px; font-weight: 800; color: var(--success); }
.stock-line { font-size: 12px; font-weight: 600; }
.in-stock { color: var(--success); }
.low-stock { color: #f59e0b; }
.out-stock { color: var(--danger); }
.product-card .btn { margin: 0 18px 18px; }

/* ─── Flash offers strip ───────────────────────────────────── */
.flash-band { background: var(--text); color: #fff; border-radius: var(--radius); padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
[data-theme="dark"] .flash-band { background: linear-gradient(120deg, #111827, #1e3a8a); border: 1px solid var(--border); }
.flash-band h2 { font-size: 2rem; }
.countdown { display: flex; gap: 10px; }
.countdown .unit { background: rgba(255,255,255,.12); border-radius: 12px; padding: 12px 16px; text-align: center; min-width: 62px; }
.countdown .unit b { font-family: 'Outfit', sans-serif; font-size: 26px; display: block; }
.countdown .unit span { font-size: 11px; text-transform: uppercase; opacity: .8; }

/* ─── Newsletter ───────────────────────────────────────────── */
.newsletter { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 56px; text-align: center; box-shadow: var(--shadow-sm); }
.newsletter h2 { font-size: 2.2rem; margin-bottom: 10px; }
.newsletter p { color: var(--text-2); max-width: 460px; margin: 0 auto 26px; }
.newsletter form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.newsletter input { flex: 1; padding: 15px 20px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-family: inherit; font-size: 15px; outline: none; }
.newsletter input:focus { border-color: var(--accent); }

/* ─── Footer ───────────────────────────────────────────────── */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 64px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-col h4 { font-size: 15px; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--text-2); font-size: 14px; transition: color .2s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-contact li { display: flex; gap: 10px; color: var(--text-2); font-size: 14px; align-items: flex-start; }
.footer-brand p { color: var(--text-2); font-size: 14px; margin: 14px 0; max-width: 300px; }
.social-row { display: flex; gap: 10px; }
.social-row a { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; color: var(--text); transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.social-row a:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }
.payment-icons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.payment-icons .pay { height: 30px; padding: 0 10px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: .02em; color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 44px; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--text-2); font-size: 13px; }
.trust-badges { display: flex; gap: 16px; align-items: center; }
.trust-badges .tb { display: flex; align-items: center; gap: 7px; font-weight: 700; color: var(--text); font-size: 13px; }

/* ─── Cookie banner ────────────────────────────────────────── */
.cookie-banner { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 200; max-width: 560px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px 24px; box-shadow: var(--shadow-lg); display: none; }
.cookie-banner.show { display: block; animation: slideUp .4s ease; }
.cookie-banner h4 { font-size: 17px; margin-bottom: 6px; }
.cookie-banner p { font-size: 13px; color: var(--text-2); margin-bottom: 16px; }
.cookie-banner .cookie-actions { display: flex; gap: 10px; }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ─── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-2); padding: 24px 0 0; }
.breadcrumb a:hover { color: var(--accent); }

/* ─── Product detail ───────────────────────────────────────── */
.pd-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding-top: 28px; }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--surface-2); aspect-ratio: 1; position: relative; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-main.zoomed img { transform: scale(2); }
.gallery-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.gallery-thumbs button { width: 84px; height: 84px; border-radius: 14px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: var(--surface-2); padding: 0; }
.gallery-thumbs button.active { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 { font-size: 2.2rem; font-weight: 700; margin: 8px 0 12px; }
.pd-price { display: flex; align-items: baseline; gap: 14px; margin: 18px 0; }
.pd-price .price-now { font-size: 34px; }
.pd-price .price-old { font-size: 20px; }
.pd-desc { color: var(--text-2); margin: 16px 0; }
.pd-meta { display: flex; flex-direction: column; gap: 12px; margin: 22px 0; }
.pd-meta .row { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.pd-meta .row svg { color: var(--accent); flex-shrink: 0; }
.qty-selector { display: flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; width: fit-content; }
.qty-selector button { width: 44px; height: 44px; background: var(--surface); border: none; cursor: pointer; color: var(--text); font-size: 18px; }
.qty-selector button:hover { background: var(--surface-2); }
.qty-selector span { width: 50px; text-align: center; font-weight: 700; }
.pd-actions { display: flex; gap: 12px; align-items: center; margin: 24px 0; flex-wrap: wrap; }
.pd-tabs { margin-top: 60px; }
.tab-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 28px; overflow-x: auto; }
.tab-nav button { padding: 14px 22px; background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 15px; color: var(--text-2); white-space: nowrap; }
.tab-nav button.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .3s ease; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table td { padding: 14px 8px; font-size: 15px; }
.specs-table td:first-child { color: var(--text-2); font-weight: 600; width: 40%; }
.review-item { padding: 18px 0; border-bottom: 1px solid var(--border); }
.review-item .rv-head { display: flex; justify-content: space-between; margin-bottom: 6px; }
.review-item .rv-head b { font-weight: 700; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ─── Catalog ──────────────────────────────────────────────── */
.catalog-head { padding: 40px 0 24px; }
.catalog-head h1 { font-size: 2.6rem; font-weight: 700; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.filter-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: 14px; cursor: pointer; transition: all .2s ease; color: var(--text); }
.chip:hover { border-color: var(--accent); }
.chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.select-sort { padding: 10px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-family: inherit; font-weight: 600; cursor: pointer; }

/* ─── Cart ─────────────────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; padding-top: 28px; }
.cart-item { display: grid; grid-template-columns: 100px 1fr auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--border); align-items: center; }
.cart-item img { width: 100px; height: 100px; border-radius: 14px; object-fit: cover; background: var(--surface-2); }
.cart-item .ci-title { font-weight: 700; }
.cart-item .ci-brand { font-size: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: .08em; }
.cart-item .ci-remove { color: var(--text-2); background: none; border: none; cursor: pointer; font-size: 13px; display: inline-flex; gap: 5px; align-items: center; margin-top: 6px; }
.cart-item .ci-remove:hover { color: var(--danger); }
.summary-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: sticky; top: 96px; height: fit-content; box-shadow: var(--shadow-sm); }
.summary-card h3 { font-size: 20px; margin-bottom: 20px; }
.sum-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 15px; color: var(--text-2); }
.sum-row.total { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 18px; font-size: 20px; font-weight: 800; color: var(--text); font-family: 'Outfit', sans-serif; }
.coupon-row { display: flex; gap: 8px; margin: 18px 0; }
.coupon-row input { flex: 1; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-family: inherit; text-transform: uppercase; outline: none; }
.coupon-msg { font-size: 13px; margin-bottom: 12px; font-weight: 600; }
.empty-state { text-align: center; padding: 90px 20px; color: var(--text-2); }
.empty-state svg { color: var(--border); margin-bottom: 18px; }

/* ─── Forms / Checkout ─────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; color: var(--text); }
.field input, .field select { padding: 13px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-family: inherit; font-size: 15px; outline: none; transition: border-color .2s ease; }
.field input:focus, .field select:focus { border-color: var(--accent); }
.checkout-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; padding-top: 28px; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.form-card h3 { font-size: 20px; margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.form-card h3 .step-num { width: 30px; height: 30px; border-radius: 999px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 15px; }
.ship-option, .pay-option { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; cursor: pointer; margin-bottom: 12px; transition: border-color .2s ease, background-color .2s ease; }
.ship-option:hover, .pay-option:hover { border-color: var(--accent); }
.ship-option.selected, .pay-option.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.ship-option input, .pay-option input { accent-color: var(--accent); width: 18px; height: 18px; }
.ship-option .so-body { flex: 1; }
.ship-option .so-body b { display: block; }
.ship-option .so-body span { font-size: 13px; color: var(--text-2); }
.ship-price { font-weight: 800; font-family: 'Outfit', sans-serif; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 14px; color: var(--text-2); }
.checkbox-row input { accent-color: var(--accent); width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.checkbox-row a { color: var(--accent); }
.mini-item { display: flex; gap: 12px; padding: 10px 0; align-items: center; }
.mini-item img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.mini-item .mi-info { flex: 1; font-size: 14px; }
.mini-item .mi-info b { font-weight: 700; display: block; }
.mini-item .mi-price { font-weight: 700; font-family: 'Outfit', sans-serif; }
.pay-icons-inline { display: flex; gap: 6px; }
.card-fields { margin-top: 8px; }
.secure-note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--success); font-weight: 700; margin-top: 14px; justify-content: center; }

/* ─── Order confirmation ───────────────────────────────────── */
.confirm-wrap { max-width: 720px; margin: 0 auto; padding: 60px 0; text-align: center; }
.confirm-icon { width: 92px; height: 92px; border-radius: 999px; background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); display: grid; place-items: center; margin: 0 auto 24px; animation: pop .5s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.confirm-wrap h1 { font-size: 2.4rem; margin-bottom: 12px; }
.confirm-wrap > p { color: var(--text-2); margin-bottom: 30px; }
.confirm-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; text-align: left; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.confirm-num { display: flex; justify-content: space-between; padding: 16px 20px; background: var(--surface-2); border-radius: 14px; margin-bottom: 22px; }
.confirm-num b { font-family: 'Outfit', sans-serif; font-size: 20px; }

/* ─── Admin ────────────────────────────────────────────────── */
.admin-body { background: var(--surface-2); min-height: 100vh; }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 24px 16px; position: sticky; top: 0; height: 100vh; }
.admin-sidebar .logo { padding: 0 8px 24px; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav button { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 8px; border: none; background: none; color: var(--text-2); font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 14px; cursor: pointer; text-align: left; transition: background-color .2s ease, color .2s ease; }
.admin-nav button:hover { background: var(--surface-2); color: var(--text); }
.admin-nav button.active { background: var(--accent); color: #fff; }
.admin-main { padding: 28px 32px; overflow-x: auto; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.admin-topbar h1 { font-size: 1.7rem; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.stat-card .sc-label { font-size: 13px; color: var(--text-2); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.stat-card .sc-value { font-family: 'Outfit', sans-serif; font-size: 28px; font-weight: 800; margin-top: 8px; }
.stat-card .sc-trend { font-size: 12px; color: var(--success); font-weight: 700; margin-top: 4px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 22px; margin-bottom: 22px; }
.panel h3 { font-size: 16px; margin-bottom: 16px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); color: var(--text-2); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.data-table td { padding: 12px 10px; border-bottom: 1px solid var(--border); }
.data-table tr:hover td { background: var(--surface-2); }
.pill { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill-green { background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); }
.pill-blue { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.pill-amber { background: rgba(245,158,11,.15); color: #b45309; }
.pill-red { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
.bar-chart { display: flex; align-items: flex-end; gap: 12px; height: 200px; padding-top: 20px; }
.bar-chart .bar { flex: 1; background: var(--accent); border-radius: 6px 6px 0 0; position: relative; min-height: 4px; transition: opacity .2s ease; }
.bar-chart .bar:hover { opacity: .8; }
.bar-chart .bar span { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--text-2); }
.bar-chart .bar b { position: absolute; top: -20px; left: 0; right: 0; text-align: center; font-size: 11px; font-weight: 700; }
.admin-login { max-width: 400px; margin: 8vh auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-md); }
.admin-login h2 { font-size: 1.6rem; margin-bottom: 6px; }
.admin-login p { color: var(--text-2); font-size: 14px; margin-bottom: 24px; }
.admin-input { width: 100%; padding: 13px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-family: inherit; margin-bottom: 14px; outline: none; }
.admin-input:focus { border-color: var(--accent); }

/* ─── Toast ────────────────────────────────────────────────── */
.toast-stack { position: fixed; bottom: 24px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--text); color: var(--bg); padding: 14px 20px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; animation: slideUp .3s ease; }
.toast.success { background: var(--success); color: #fff; }
.toast.error { background: var(--danger); color: #fff; }

/* ─── Utility / animazioni reveal ──────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 12px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .pd-layout, .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
}
@media (max-width: 768px) {
  .main-nav, .search-box { display: none; }
  .menu-toggle { display: grid; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .bento-lg { grid-column: span 2; grid-row: span 1; }
  .form-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .admin-nav { flex-direction: row; overflow-x: auto; }
  section { padding: 48px 0; }
  .hero-media { min-height: 460px; }
  .newsletter form { flex-direction: column; }
  .mobile-menu.open { display: flex; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .flash-band { padding: 28px; }
}

/* ─── Menu mobile ──────────────────────────────────────────── */
.mobile-menu { display: none; position: fixed; inset: var(--header-h) 0 0; background: var(--bg); z-index: 99; flex-direction: column; padding: 30px 24px; gap: 4px; }
.mobile-menu a { padding: 16px 0; font-size: 18px; font-weight: 700; border-bottom: 1px solid var(--border); }
.mobile-menu .search-box { display: flex; max-width: none; margin-bottom: 20px; }
