/* =========================================================
   CityShirt2 — Design System — Shopify "Dawn" (fedele)
   Riproduce il tema ufficiale Shopify: font Assistant, angoli
   quasi nulli, superfici piatte senza ombre, tanto spazio bianco,
   bottoni con bordo, tipografia comoda con tracking leggero.
   ========================================================= */

:root {
  /* Palette Dawn: sfondo bianco, testo #121212, bordi grigio tenue */
  --color-bg: #ffffff;
  --color-fg: #121212;
  --color-muted: #707070;
  --color-line: rgba(18,18,18,.12);      /* Dawn: bordi come alpha del testo */
  --color-line-strong: #121212;
  --color-accent: #121212;               /* bottone solido = testo */
  --color-accent-fg: #ffffff;
  --color-sale: #d02e2e;
  --color-badge: #f3f3f3;
  --color-success: #1a7f3c;
  --color-surface: #f3f3f3;              /* fondo sezioni alternate (Dawn scheme) */

  /* Dawn usa border-radius molto piccoli o nulli */
  --radius: 0px;                         /* card/immagini: spigolo vivo come Dawn */
  --radius-btn: 0px;                     /* bottoni squadrati (default Dawn) */
  --radius-lg: 0px;
  --page-max: 1400px;                    /* Dawn "page-width" ~1200-1600 */
  --gutter: clamp(15px, 4vw, 50px);

  /* Dawn di default usa "Assistant" per heading e body */
  --font-heading: "Assistant", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Assistant", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --shadow-drawer: 0 0 40px rgba(0,0,0,.14);
  --dur: .2s;
}

/* ---------- Reset base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-fg);
  background: var(--color-bg);
  line-height: 1.6;                      /* Dawn body line-height ~1.6 */
  font-size: 16px;                       /* Dawn base ~1.6rem/16px */
  letter-spacing: .01rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
/* Dawn: titoli con peso non estremo, tracking leggermente ridotto */
h1,h2,h3,h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; letter-spacing: -.02rem; margin: 0 0 .5em; word-break: break-word; }

/* Focus visibile accessibile (Dawn usa outline evidente) */
:focus-visible { outline: 2px solid var(--color-fg); outline-offset: 3px; }

.container { max-width: var(--page-max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(40px, 7vw, 80px); }
.center { text-align: center; }
.muted { color: var(--color-muted); }

/* ---------- Bottoni (stile Dawn: squadrati, bordo netto) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 15px 30px; border: 1px solid var(--color-accent);
  background: var(--color-accent); color: var(--color-accent-fg);
  border-radius: var(--radius-btn); font-weight: 600; font-size: 15px;
  letter-spacing: .01rem; line-height: 1; text-align: center;
  transition: color var(--dur), background var(--dur), box-shadow var(--dur);
  position: relative;
}
/* Dawn hover: la superficie schiarisce leggermente + ombra interna sottile */
.btn:hover { box-shadow: 0 0 0 1px var(--color-accent); background: #2a2a2a; }
.btn:active { transform: translateY(1px); }
.btn--outline { background: transparent; color: var(--color-accent); }
.btn--outline:hover { background: transparent; color: var(--color-accent); box-shadow: 0 0 0 2px var(--color-accent); }
.btn--block { width: 100%; }
.btn--lg { padding: 18px 38px; font-size: 16px; }
.btn--wa { background: #25d366; border-color: #25d366; color: #fff; }
.btn--wa:hover { background: #1fb959; box-shadow: 0 0 0 1px #1fb959; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-bg); border-bottom: 1px solid var(--color-line);
}
.header__bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 16px; padding-block: 18px;
}
.header__logo { font-family: var(--font-heading); font-weight: 700; font-size: 28px; letter-spacing: -.03rem; }
.header__logo span { color: var(--color-muted); }
.nav { display: flex; gap: 8px; justify-content: center; }
/* Dawn header link: pill hover chiaro, underline sottile */
.nav a { font-size: 15px; font-weight: 500; letter-spacing: .005rem; position: relative; padding: 8px 12px; border-radius: var(--radius-btn); transition: background var(--dur); }
.nav a::after { content:""; position:absolute; left:12px; right:12px; bottom:4px; height:1.5px; background: currentColor; transform: scaleX(0); transform-origin:left; transition: transform var(--dur); }
.nav a:hover::after { transform: scaleX(1); }
.header__actions { display: flex; gap: 18px; justify-content: flex-end; align-items: center; }
.iconbtn { background: none; border: 0; padding: 4px; display: inline-flex; position: relative; }
.iconbtn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: -6px; right: -8px; background: var(--color-accent);
  color: #fff; font-size: 10px; min-width: 17px; height: 17px; border-radius: 999px;
  display: grid; place-items: center; padding: 0 4px; font-weight: 700;
}

/* Announcement bar */
.announce { background: var(--color-accent); color: #fff; text-align: center; font-size: 12.5px; letter-spacing: .05em; padding: 8px 12px; font-weight: 500; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 78vh; align-items: stretch;
}
.hero__text { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 6vw, 80px); }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; color: var(--color-muted); margin-bottom: 18px; }
.hero__title { font-size: clamp(34px, 5vw, 60px); margin-bottom: 20px; }
.hero__sub { font-size: 17px; color: var(--color-muted); max-width: 42ch; margin-bottom: 32px; }
.hero__media { background: #f3f3f3; background-size: cover; background-position: center; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Trust bar ---------- */
.trust { border-block: 1px solid var(--color-line); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 28px; }
.trust__item { display: flex; gap: 12px; align-items: center; justify-content: center; text-align: left; }
.trust__item svg { width: 26px; height: 26px; flex: none; }
.trust__item b { display: block; font-size: 14px; }
.trust__item small { color: var(--color-muted); font-size: 12.5px; }

/* ---------- Sezione intestazioni (Dawn: titolo grande, link sottolineato) ---------- */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 36px; gap: 16px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(26px, 3.6vw, 40px); margin: 0; font-weight: 600; letter-spacing: -.02rem; }
.sec-head a { font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.sec-head a:hover { text-decoration-thickness: 2px; }

/* ---------- Griglia categorie ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card { position: relative; aspect-ratio: 3/4; overflow: hidden; border-radius: var(--radius-lg); background: #eee; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-card:hover img { transform: scale(1.05); }
.cat-card__label {
  position: absolute; inset: auto 0 0 0; padding: 22px 18px 18px;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  color: #fff; font-family: var(--font-heading); font-weight: 600; font-size: 17px;
}
.cat-card__label small { display:block; font-weight:400; font-size:12px; opacity:.85; }

/* ---------- Griglia prodotti (card Dawn: piatte, spigolo vivo) ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2.4vw, 36px) clamp(10px, 1.6vw, 20px); }
.pcard { position: relative; display: flex; flex-direction: column; }
.pcard__media { position: relative; aspect-ratio: 1/1; overflow: hidden; border-radius: var(--radius); background: var(--color-surface); margin-bottom: 12px; }
/* Dawn: hover mostra la seconda immagine / leggero zoom lento */
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.pcard:hover .pcard__media img { transform: scale(1.03); }
/* Badge Dawn: pill piccola in maiuscoletto, angoli minimi */
.pcard__badge { position: absolute; top: 12px; left: 12px; background: var(--color-sale); color:#fff; font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: var(--radius-btn); letter-spacing: .04rem; text-transform: uppercase; }
.pcard__badge--top { background: var(--color-accent); }
/* Titolo Dawn: peso normale, si sottolinea in hover */
.pcard__title { font-size: 15px; font-weight: 500; line-height: 1.4; margin: 0 0 5px; }
.pcard:hover .pcard__title { text-decoration: underline; text-underline-offset: 3px; }
.pcard__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pcard__price { font-weight: 600; font-size: 15px; }
.pcard__price s { color: var(--color-muted); font-weight: 400; font-size: 13px; margin-left: 4px; }
.pcard__rating { font-size: 12.5px; color: var(--color-muted); display: flex; align-items: center; gap: 3px; }
.stars { color: #f5a623; letter-spacing: -1px; }
/* CTA quick-add Dawn: bottone squadrato che appare in hover */
.pcard__add {
  position: absolute; inset: auto 12px 12px; opacity: 0; transform: translateY(8px);
  transition: opacity var(--dur), transform var(--dur), background var(--dur); background: #fff; border: 1px solid var(--color-accent);
  color: var(--color-accent); font-weight: 600; font-size: 13px; padding: 11px; border-radius: var(--radius-btn); text-align: center;
}
.pcard__media:hover .pcard__add { opacity: 1; transform: translateY(0); }
.pcard__add:hover { background: var(--color-accent); color: #fff; }

/* ---------- Categoria INGROSSO (stile DGA) ---------- */
.ig-cathead { padding-block: 40px 4px; }
.ig-cathead h1 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 10px; }
.ig-cathead__lead { font-size: 17px; color: var(--color-muted); max-width: 80ch; line-height: 1.6; margin-bottom: 16px; }
.ig-cathead__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--color-muted); padding-bottom: 20px; border-bottom: 1px solid var(--color-line); }
.ig-cathead__meta b { color: var(--color-fg); }
.ig-cathead__meta a { color: var(--color-accent); font-weight: 600; }
.ig-cathead__meta a:hover { text-decoration: underline; }

/* Griglia card ingrosso: card "boxate" come DGA (bordo + foto + corpo) */
.igcard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 24px); }
.igcard-grid--3 { grid-template-columns: repeat(3, 1fr); }  /* con sidebar: 3 colonne */
.igcard { display: flex; flex-direction: column; border: 1px solid var(--color-line); background: #fff; transition: box-shadow var(--dur), border-color var(--dur); }
.igcard:hover { box-shadow: 0 6px 22px rgba(0,0,0,.08); border-color: var(--color-line-strong); }
.igcard__media { position: relative; display: block; aspect-ratio: 1/1; overflow: hidden; background: var(--color-surface); font-size: 0; color: transparent; }
.igcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.igcard:hover .igcard__media img { transform: scale(1.04); }
.igcard__badge { position: absolute; top: 10px; left: 10px; background: var(--color-accent); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; }
.igcard__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 16px; flex: 1; }
.igcard__title { font-size: 14.5px; font-weight: 600; line-height: 1.35; margin: 0; }
.igcard:hover .igcard__title { text-decoration: underline; text-underline-offset: 3px; }
.igcard__opts { font-size: 12.5px; color: var(--color-muted); }
.igcard__price { margin-top: auto; font-size: 15px; }
.igcard__price small { color: var(--color-muted); font-size: 12px; }
.igcard__price b { font-size: 19px; }
.igcard__iva { font-size: 11px; color: var(--color-muted); }
.igcard__cta { margin-top: 10px; display: block; text-align: center; border: 1px solid var(--color-accent); color: var(--color-accent); font-weight: 600; font-size: 13.5px; padding: 10px; transition: background var(--dur), color var(--dur); }
.igcard__cta:hover { background: var(--color-accent); color: #fff; }

/* Blocco descrizione SEO in fondo alla categoria ingrosso */
.ig-catseo h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 16px; }
.ig-catseo__text { columns: 2; column-gap: 48px; max-width: 1000px; }
.ig-catseo__text p { font-size: 14.5px; line-height: 1.7; color: var(--color-muted); margin-bottom: 14px; break-inside: avoid; }

/* ---------- Toolbar collezione ---------- */
.collection-head { padding-block: 40px 8px; }
.collection-head h1 { font-size: clamp(28px, 4vw, 44px); }
.toolbar { display: flex; justify-content: space-between; align-items: center; padding-block: 16px; border-bottom: 1px solid var(--color-line); margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }
.toolbar select { padding: 9px 14px; border: 1px solid var(--color-line); border-radius: var(--radius); font-size: 14px; background: #fff; }

/* ---------- Sidebar categorie ---------- */
.collection-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.filters h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--color-muted); margin-bottom: 14px; }
.filters ul { list-style: none; margin: 0 0 28px; padding: 0; }
.filters li { margin-bottom: 8px; }
.filters a { font-size: 14px; color: var(--color-fg); }
.filters a.is-active { font-weight: 700; }
.filters a:hover { text-decoration: underline; }

/* ---------- Pagina prodotto ---------- */
.product { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); padding-block: 44px; align-items: start; }
.gallery__main { aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden; background: #f6f6f6; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery__thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--color-line); cursor: pointer; }
.gallery__thumbs img.is-active { border-color: var(--color-accent); }
.product__info { position: sticky; top: 96px; }
.product__cat { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--color-muted); margin-bottom: 10px; }
.product__title { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 14px; }
.product__price { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.product__price s { color: var(--color-muted); font-weight: 400; font-size: 18px; margin-left: 8px; }
.product__tax { font-size: 12.5px; color: var(--color-muted); margin-bottom: 24px; }
.opt { margin-bottom: 22px; }
.opt__label { font-size: 13px; font-weight: 600; margin-bottom: 10px; display: block; }
.opt__label span { color: var(--color-muted); font-weight: 400; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
/* Swatch taglia Dawn: pill squadrata con bordo, selezionata = bordo nero spesso */
.swatch {
  min-width: 48px; padding: 11px 16px; border: 1px solid var(--color-line);
  border-radius: var(--radius-btn); background: #fff; font-size: 14px; font-weight: 500;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.swatch:hover { border-color: var(--color-fg); }
.swatch.is-selected { border-color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent); }
/* Swatch colore Dawn: cerchio con ring quando selezionato */
.swatch.is-color { width: 36px; height: 36px; min-width: 36px; padding: 0; border-radius: 50%; font-size: 0; position: relative; }
.swatch.is-color.is-selected { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-accent); border-color: transparent; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--color-line); border-radius: var(--radius-btn); overflow: hidden; }
.qty button { width: 44px; height: 48px; background: #fff; border: 0; font-size: 18px; transition: background var(--dur); }
.qty button:hover { background: var(--color-surface); }
.qty input { width: 50px; height: 48px; text-align: center; border: 0; border-inline: 1px solid var(--color-line); font-size: 15px; }
.buybox { display: flex; gap: 12px; margin-block: 24px; }
.buybox .btn { flex: 1; }
.product__desc { border-top: 1px solid var(--color-line); margin-top: 34px; padding-top: 26px; }
.product__desc h3 { font-size: 16px; }
.product__desc :is(p,li) { color: #3a3a3a; }
.acc { border-top: 1px solid var(--color-line); }
.acc summary { padding: 18px 0; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.acc summary::-webkit-details-marker { display: none; }
.acc[open] summary::after { content: "–"; }
.acc summary::after { content: "+"; font-size: 20px; }
.acc__body { padding-bottom: 20px; color: var(--color-muted); font-size: 14px; }

/* ---------- Cart drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); opacity: 0; visibility: hidden; transition: opacity var(--dur); z-index: 90; }
.overlay.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw);
  background: #fff; z-index: 100; transform: translateX(100%);
  transition: transform var(--dur); box-shadow: var(--shadow-drawer);
  display: flex; flex-direction: column;
}
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--color-line); }
.drawer__head h3 { margin: 0; font-size: 18px; }
.drawer__close { background: none; border: 0; font-size: 26px; line-height: 1; }
.drawer__ship { background: var(--color-badge); padding: 12px 24px; font-size: 13px; }
.drawer__ship .bar { height: 5px; background: #ddd; border-radius: 999px; margin-top: 8px; overflow: hidden; }
.drawer__ship .bar span { display: block; height: 100%; background: var(--color-success); transition: width var(--dur); }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer__foot { border-top: 1px solid var(--color-line); padding: 20px 24px; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--color-line); }
.cart-line img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius); }
.cart-line__title { font-size: 14px; font-weight: 500; }
.cart-line__opts { font-size: 12px; color: var(--color-muted); margin: 2px 0 8px; }
.cart-line__remove { background: none; border: 0; color: var(--color-muted); font-size: 12px; text-decoration: underline; padding: 0; }
.cart-line__price { font-weight: 700; font-size: 14px; text-align: right; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; }
.summary-row.total { font-size: 18px; font-weight: 700; border-top: 1px solid var(--color-line); padding-top: 12px; margin-top: 12px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--color-muted); }

/* ---------- Footer ---------- */
.footer { background: #fafafa; border-top: 1px solid var(--color-line); margin-top: 60px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-block: 56px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 9px; }
.footer a { color: var(--color-muted); font-size: 14px; }
.footer a:hover { color: var(--color-fg); }
.footer__bottom { border-top: 1px solid var(--color-line); padding-block: 20px; display: flex; justify-content: space-between; font-size: 12.5px; color: var(--color-muted); flex-wrap: wrap; gap: 8px; }
.footer__pay { display: flex; gap: 8px; align-items: center; }
.footer__pay img, .pay-badge { height: 24px; border-radius: 3px; }
.pay-badge { display:inline-flex; align-items:center; padding:0 8px; background:#fff; border:1px solid var(--color-line); font-size:11px; font-weight:700; color:#555; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; padding-block: 48px; }
.pagination a, .pagination span { padding: 10px 15px; border: 1px solid var(--color-line); border-radius: var(--radius); font-size: 14px; }
.pagination .is-active { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }

/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; padding-block: 44px; align-items: start; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--color-line); border-radius: var(--radius); font-size: 15px; font-family: inherit;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.summary-box { background: #fafafa; border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: 96px; }
.pay-methods { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.pay-method { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--color-line); border-radius: var(--radius); cursor: pointer; }
.pay-method.is-selected { border-color: var(--color-accent); background: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .hero__media { min-height: 320px; order: -1; }
  .product { grid-template-columns: 1fr; }
  .product__info { position: static; }
  .cat-grid, .product-grid, .igcard-grid { grid-template-columns: repeat(2, 1fr); }
  .ig-catseo__text { columns: 1; }
  .collection-layout { grid-template-columns: 1fr; }
  .filters { display: none; }
  .checkout { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .header__bar { grid-template-columns: auto 1fr auto; }
  .nav { display: none; }
  .pcard__add { opacity: 1; transform: none; position: static; margin-top: 8px; }
}

/* =========================================================
   Griglia INGROSSO (stile DGA) — matrice colore × taglia
   ========================================================= */
.ig { margin-block: 8px 40px; }
.ig__actions { display: flex; border: 1px solid var(--color-fg); max-width: 780px; margin: 0 auto 36px; }
.ig__actions .ig__btn { flex: 1; border: 0; }
.ig__actions .ig__btn:first-child { border-right: 1px solid var(--color-fg); }
.ig__btn {
  background: #fff; color: var(--color-fg); border: 1px solid var(--color-fg);
  padding: 20px 24px; font-size: 15px; font-weight: 500; letter-spacing: .04em;
  text-transform: uppercase; text-align: center; cursor: pointer; transition: background var(--dur), color var(--dur);
}
.ig__btn:hover { background: var(--color-fg); color: #fff; }
.ig__btn--primary { font-weight: 600; }

.ig__scroll { overflow-x: auto; border: 1px solid var(--color-line); }
.ig__table { border-collapse: collapse; width: 100%; min-width: 760px; }
.ig__table th, .ig__table td { border: 1px solid var(--color-line); }
.ig__corner { background: #f7f7f7; text-align: left; padding: 20px 18px; font-size: 13px; letter-spacing: .06em; color: #555; font-weight: 600; white-space: nowrap; }
.ig__size { background: #f7f7f7; padding: 20px 10px; font-size: 20px; font-weight: 400; color: #333; text-align: center; min-width: 150px; }
.ig__color { text-align: center; padding: 18px 14px; background: #fff; vertical-align: middle; min-width: 120px; }
.ig__swatch { display: inline-block; width: 90px; height: 60px; border-radius: 2px; margin-bottom: 8px; }
.ig__color-name { display: block; font-size: 15px; font-weight: 500; line-height: 1.3; }
.ig__color-name small { color: var(--color-muted); font-weight: 400; }

.ig__cell { padding: 14px 12px; text-align: center; vertical-align: top; background: #fff; }
.ig__cell.is-out { background: #fafafa; opacity: .65; }
.ig__price { font-size: 17px; margin-bottom: 4px; }
.ig__price s { color: #999; font-size: 13px; font-weight: 400; margin-right: 4px; }
.ig__price b { color: #1a7f3c; font-weight: 700; }
.ig__iva { color: #1a7f3c; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.ig__tag { display: inline-block; background: #6b6b6b; color: #fff; font-size: 12.5px; padding: 3px 10px; border-radius: 4px; margin-bottom: 8px; }
.ig__stock { font-size: 15px; color: #333; margin-bottom: 14px; }
.ig__out { color: var(--color-sale); font-weight: 600; }
.ig__preno { font-size: 12.5px; color: #b06a00; line-height: 1.3; margin-bottom: 12px; }
.ig__stepper { display: inline-flex; align-items: center; border: 1px solid var(--color-line); border-radius: 4px; overflow: hidden; }
.ig__stepper button { width: 38px; height: 42px; background: #fff; border: 0; font-size: 18px; color: #555; cursor: pointer; transition: background var(--dur); }
.ig__stepper button:hover:not(:disabled) { background: #f2f2f2; }
.ig__stepper button:disabled { color: #ccc; cursor: not-allowed; }
.ig__qty { width: 46px; height: 42px; text-align: center; border: 0; border-inline: 1px solid var(--color-line); font-size: 15px; }
.ig__qty:disabled { background: #f7f7f7; }

.ig__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 24px; padding: 20px 24px; background: #f7f7f7; border: 1px solid var(--color-line); }
.ig__summary { font-size: 16px; }
.ig__summary b { font-size: 18px; }
.ig__summary small { color: var(--color-muted); }
.ig__foot .ig__btn { border: 1px solid var(--color-fg); min-width: 260px; }

@media (max-width: 700px) {
  .ig__actions { flex-direction: column; }
  .ig__actions .ig__btn:first-child { border-right: 0; border-bottom: 1px solid var(--color-fg); }
  .ig__foot { flex-direction: column; align-items: stretch; }
  .ig__foot .ig__btn { min-width: 0; }
}
