/* ============================================================
   MERCATO ABASTO DI ALIMENTI — storefront
   Sistema editorial cálido, inspirado en mercado de cercanía.
   ============================================================ */

:root {
  --ink: #071a34;
  --ink-soft: #172a43;
  --paper: #f8f5ee;
  --cream: #eee9de;
  --cream-deep: #ded8cc;
  --white: #fffdf9;
  --tomato: #9a7a43;
  --tomato-dark: #72592e;
  --olive: #5f674e;
  --gold: #c4a269;
  --text: #111b28;
  --text-soft: #66707b;
  --border: rgba(7, 26, 52, .17);
  --border-light: rgba(255, 250, 240, .2);
  --shadow: 0 24px 70px rgba(38, 31, 22, .12);
  --shadow-soft: 0 12px 34px rgba(38, 31, 22, .08);
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Manrope", Arial, sans-serif;
  --container: 1220px;
  --radius: 18px;
  --radius-sm: 10px;
  --transition: 180ms ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  min-width: 320px;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; }

.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.svg-defs { position: absolute; pointer-events: none; }
.skip-link {
  position: fixed; z-index: 9999; top: 12px; left: 12px;
  transform: translateY(-150%); padding: 10px 14px;
  background: var(--ink); color: var(--paper); border-radius: 4px;
}
.skip-link:focus { transform: none; }

h1, h2, h3, h4 { font-family: var(--display); line-height: .98; font-weight: 700; }
h1 { font-size: clamp(3.6rem, 7.5vw, 7.6rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2.8rem, 5vw, 5.1rem); letter-spacing: -.04em; }
h3 { font-size: 1.65rem; }
p { color: var(--text-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 20px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: .84rem; font-weight: 700; letter-spacing: .01em;
  cursor: pointer; transition: transform var(--transition), background var(--transition), color var(--transition), border var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, .icon-btn:focus-visible, .pill:focus-visible, .stepper button:focus-visible,
.nav__link:focus-visible, input:focus-visible {
  outline: 3px solid rgba(154, 122, 67, .35); outline-offset: 3px;
}
.btn--primary { background: var(--tomato); color: var(--white); border-color: var(--tomato); }
.btn--primary:hover { background: var(--tomato-dark); border-color: var(--tomato-dark); }
.btn--outline { border-color: currentColor; background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--cream { background: var(--paper); color: var(--ink); }
.btn--cream:hover { background: var(--gold); }
.btn--ghost { background: transparent; color: var(--text-soft); }
.btn--ghost:hover { background: rgba(7, 26, 52, .06); color: var(--ink); }
.btn--block { width: 100%; }
.btn--lg { min-height: 56px; padding-inline: 28px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; border: 1px solid var(--border);
  border-radius: 50%; background: transparent; cursor: pointer;
  transition: background var(--transition), color var(--transition), border var(--transition);
}
.icon-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- Announcement + header ---------- */
.announcement { background: var(--ink); color: var(--cream); font-size: .72rem; letter-spacing: .05em; }
.announcement__inner { min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 32px; }
.announcement__inner span, .announcement__inner a { display: inline-flex; align-items: center; gap: 7px; }
.announcement__inner a { margin-left: auto; color: var(--gold); }

.header {
  position: sticky; z-index: 100; top: 0;
  background: color-mix(in srgb, var(--paper) 93%, transparent);
  border-bottom: 1px solid var(--border); backdrop-filter: blur(15px);
}
.header__inner { min-height: 84px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand__logo { color: var(--ink); }
.brand__copy { display: grid; line-height: 1; }
.brand__name { font-family: var(--display); font-size: 1.85rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.brand__tagline { margin-top: 2px; font-size: .55rem; font-weight: 700; letter-spacing: .21em; text-transform: uppercase; }

.nav { display: flex; align-items: center; justify-content: center; gap: 6px; flex: 1; }
.nav__link {
  position: relative; padding: 9px 10px; color: var(--text-soft);
  font-size: .75rem; font-weight: 700; white-space: nowrap;
}
.nav__link::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px;
  height: 1px; background: var(--tomato); transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.nav__link:hover, .nav__link.is-active { color: var(--ink); }
.nav__link.is-active::after, .nav__link:hover::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.search {
  width: 205px; height: 42px; display: flex; align-items: center; gap: 9px;
  border-bottom: 1px solid var(--ink); color: var(--text-soft);
}
.search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: .78rem; }
.search input::placeholder { color: #8e887d; }
.search:focus-within { border-color: var(--tomato); color: var(--tomato); }
.admin-access {
  min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 999px; color: var(--ink);
  font-size: .68rem; font-weight: 800; white-space: nowrap; transition: background var(--transition), color var(--transition), border var(--transition);
}
.admin-access:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cart-trigger { background: var(--ink); color: var(--paper); }
.badge {
  position: absolute; top: -5px; right: -4px; display: grid; place-items: center;
  min-width: 20px; height: 20px; padding-inline: 5px;
  border: 2px solid var(--paper); border-radius: 999px;
  background: var(--tomato); color: white; font-size: .6rem; font-weight: 800;
}
.burger { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 78px 0 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 620px; z-index: -1;
  background-image: linear-gradient(rgba(7,26,52,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(7,26,52,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent);
}
.hero__inner { min-height: 560px; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(380px, .88fr); gap: 70px; align-items: center; }
.hero__inner > *, .section-heading > *, .story-grid > * { min-width: 0; }
.hero__text { padding-bottom: 45px; }
.eyebrow, .section-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  margin-bottom: 22px; color: var(--tomato);
  font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tomato); box-shadow: 0 0 0 5px rgba(154, 122, 67, .12); }
.hero h1 { max-width: 790px; }
.hero h1 em { color: var(--tomato); font-weight: 600; }
.hero__text > p { max-width: 630px; margin-top: 24px; font-size: 1.05rem; line-height: 1.75; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__location { display: flex; align-items: center; gap: 9px; margin-top: 22px !important; font-size: .76rem !important; }
.hero__location i { color: var(--tomato); }

.hero__art { position: relative; min-height: 515px; display: grid; place-items: center; }
.hero__art::before {
  content: ""; position: absolute; width: 425px; height: 425px; border-radius: 50%;
  background: var(--cream-deep); border: 1px solid rgba(7,26,52,.08);
}
.hero-poster {
  position: relative; z-index: 2; width: min(360px, 78%); aspect-ratio: .72;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 28px; border-radius: 180px 180px 12px 12px;
  background: var(--ink); color: var(--paper); box-shadow: var(--shadow);
  transform: rotate(2.5deg);
}
.hero-poster::before, .hero-poster::after {
  content: ""; position: absolute; z-index: 3; inset: 13px; border: 1px solid rgba(255,250,240,.38); border-radius: inherit; pointer-events: none;
}
.hero-poster::after { inset: 20px; border-color: rgba(255,250,240,.12); }
.hero-poster--photo { display: block; padding: 0; overflow: hidden; background: #111; }
.hero-poster--photo > img { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-poster--photo figcaption {
  position: absolute; z-index: 4; right: 24px; bottom: 24px; left: 24px;
  display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.34); border-radius: 999px; background: rgba(7,26,52,.8);
  color: white; font-size: .58rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.hero-preview {
  position: absolute; z-index: 3; width: 124px; aspect-ratio: 1; margin: 0; overflow: hidden;
  border: 7px solid var(--paper); border-radius: 18px; background: var(--ink); box-shadow: var(--shadow-soft);
}
.hero-preview img { width: 100%; height: 100%; object-fit: cover; }
.hero-preview--one { top: 52px; left: -3px; transform: rotate(-8deg); }
.hero-preview--two { top: 116px; right: -4px; transform: rotate(8deg); }
.hero-poster__top, .hero-poster__small { font-size: .58rem; font-weight: 700; letter-spacing: .23em; text-transform: uppercase; }
.hero-poster__mark { width: 130px; margin: 28px 0 14px; }
.hero-poster__word { font-family: var(--display); font-size: 3.6rem; line-height: 1; letter-spacing: .04em; }
.hero-poster__line { width: 64px; height: 1px; margin: 20px 0; background: var(--gold); }
.hero-stamp {
  position: absolute; z-index: 3; right: -8px; bottom: 42px;
  width: 130px; height: 130px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid var(--paper); outline: 2px solid var(--tomato); outline-offset: 5px; border-radius: 50%;
  background: var(--tomato); color: white; transform: rotate(-9deg); text-align: center; box-shadow: var(--shadow-soft);
}
.hero-stamp span { font-size: .55rem; letter-spacing: .12em; text-transform: uppercase; }
.hero-stamp strong { font-family: var(--display); font-size: 1.4rem; line-height: 1.1; }
.hero-label {
  position: absolute; z-index: 4; padding: 7px 16px;
  background: var(--paper); border: 1px solid var(--ink); border-radius: 999px;
  font-family: var(--display); font-size: 1.15rem; font-style: italic; box-shadow: 4px 4px 0 var(--ink);
}
.hero-label--one { top: 54px; left: 2px; transform: rotate(-8deg); }
.hero-label--two { top: 112px; right: -4px; transform: rotate(8deg); }

.service-strip {
  position: relative; z-index: 5; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.service { display: flex; align-items: center; gap: 14px; min-height: 104px; padding: 20px 26px; border-right: 1px solid var(--border); }
.service:last-child { border-right: 0; }
.service > i { width: 30px; color: var(--tomato); font-size: 1.18rem; text-align: center; }
.service span { display: grid; color: var(--text-soft); font-size: .67rem; line-height: 1.5; }
.service strong { color: var(--ink); font-size: .76rem; }

/* ---------- Catalog ---------- */
.catalog-section { padding: 120px 0 130px; }
.section-heading { display: grid; grid-template-columns: 1fr minmax(280px, 430px); align-items: end; gap: 50px; margin-bottom: 44px; }
.section-heading .section-kicker { margin-bottom: 10px; }
.section-heading p { padding-bottom: 9px; font-size: .92rem; }
.demo-notice {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; padding: 13px 16px;
  border: 1px dashed rgba(154, 122, 67, .48); border-radius: var(--radius-sm);
  background: rgba(154, 122, 67, .07); color: #65573f; font-size: .76rem;
}
.demo-notice[hidden] { display: none; }
.demo-notice i { margin-top: 3px; color: var(--tomato); }
.demo-notice strong { color: var(--tomato-dark); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 15px;
  border: 1px solid var(--border); border-radius: 999px; background: transparent;
  color: var(--text-soft); font-size: .7rem; font-weight: 700; cursor: pointer;
  transition: background var(--transition), border var(--transition), color var(--transition);
}
.pill:hover, .pill.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pill__icon { width: 17px; height: 17px; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--white);
  overflow: hidden; cursor: pointer; transition: transform var(--transition), box-shadow var(--transition), border var(--transition);
}
.card:hover { transform: translateY(-5px); border-color: rgba(7,26,52,.35); box-shadow: var(--shadow-soft); }
.card__media {
  position: relative; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, var(--cat-a, #d9cfb8), var(--cat-b, #a99b7f));
  color: rgba(255,255,255,.93);
}
.card__media::before {
  content: "M"; position: absolute; right: -12px; bottom: -55px;
  font-family: var(--display); font-size: 12rem; line-height: 1; color: rgba(255,255,255,.12);
}
.card__media::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 12px; }
.card__media > svg { position: relative; z-index: 1; width: 66px; height: 66px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.12)); }
.card__photo { position: absolute; z-index: 1; inset: 0; width: 100%; max-width: none; height: 100%; object-fit: contain; background: #0d0d0d; transition: transform 400ms ease; }
.card:hover .card__photo { transform: scale(1.035); }
.card__badge {
  position: absolute; z-index: 3; top: 13px; left: 13px; padding: 6px 10px;
  border-radius: 999px; background: var(--paper); color: var(--ink);
  font-size: .56rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.card__status { position: absolute; z-index: 3; inset: auto 0 0; padding: 7px 10px; background: rgba(7,26,52,.92); color: white; text-align: center; font-size: .61rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.card__status--offer { background: var(--tomato); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 18px; }
.card__cat { color: var(--tomato); font-size: .6rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.card__name { margin-top: 7px; font-family: var(--display); font-size: 1.55rem; line-height: 1.05; }
.card__desc { display: -webkit-box; margin-top: 9px; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .72rem; line-height: 1.55; }
.card__bottom { margin-top: auto; padding-top: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.card__price { color: var(--ink); font-family: var(--display); font-size: 1.58rem; font-weight: 700; line-height: 1; }
.card__price span { display: block; margin-top: 5px; color: var(--text-soft); font-family: var(--body); font-size: .55rem; font-weight: 600; }
.card__actions { display: flex; align-items: center; gap: 7px; }
.add-btn { width: 39px; height: 39px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--tomato); color: white; cursor: pointer; }
.add-btn:hover { background: var(--tomato-dark); }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--paper); overflow: hidden; }
.stepper button { width: 30px; height: 34px; border: 0; background: transparent; cursor: pointer; }
.stepper button:hover { color: var(--tomato); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper span { min-width: 23px; text-align: center; font-size: .68rem; font-weight: 800; }
.empty-state { grid-column: 1 / -1; padding: 70px 20px; border: 1px dashed var(--border); border-radius: var(--radius); text-align: center; }

/* ---------- Story / benefits ---------- */
.story-section { padding: 120px 0; background: var(--cream); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.story-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.story-intro { position: sticky; top: 130px; align-self: start; }
.story-intro h2 { max-width: 530px; }
.story-intro p { max-width: 430px; margin-top: 24px; }
.benefits { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.benefit { min-height: 270px; padding: 30px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.benefit > span { color: var(--text-soft); font-size: .62rem; }
.benefit > i { float: right; color: var(--tomato); font-size: 1.3rem; }
.benefit h3 { margin-top: 68px; }
.benefit p { margin-top: 12px; font-size: .78rem; }

/* ---------- CTA + footer ---------- */
.cta-banner { background: var(--tomato); color: white; }
.cta-banner__inner { min-height: 310px; display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.cta-banner h2 { max-width: 650px; }
.cta-banner p { margin-top: 14px; color: rgba(255,255,255,.78); }
.section-kicker--light { color: var(--paper); opacity: .78; }

.footer { padding: 80px 0 24px; background: var(--ink); color: var(--cream); }
.footer__inner { display: grid; grid-template-columns: 1.35fr .75fr .75fr 1.15fr; gap: 55px; padding-bottom: 60px; }
.brand--footer .brand__logo { color: var(--cream); }
.footer__brand > p { max-width: 330px; margin-top: 22px; color: rgba(242,234,220,.58); font-size: .82rem; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--border-light); border-radius: 50%; }
.socials a:hover { background: var(--cream); color: var(--ink); }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer__col h4 { margin-bottom: 13px; color: var(--gold); font-family: var(--body); font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; }
.footer__col a, .footer__col p { color: rgba(242,234,220,.63); font-size: .72rem; }
.footer__col a:hover { color: var(--cream); }
.footer__contact p { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.footer__contact i { margin-top: 4px; color: var(--gold); text-align: center; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid var(--border-light); }
.footer__bottom p { color: rgba(242,234,220,.42); font-size: .62rem; }
.footer__bottom a:hover { color: var(--cream); }

.floating-wa {
  position: fixed; z-index: 80; right: 24px; bottom: 24px;
  display: inline-flex; align-items: center; gap: 9px; min-height: 50px; padding: 0 18px;
  border-radius: 999px; background: #1f9d57; color: white; box-shadow: 0 12px 28px rgba(18,87,48,.28);
  font-size: .72rem; font-weight: 800; transition: transform var(--transition);
}
.floating-wa i { font-size: 1.2rem; }
.floating-wa:hover { transform: translateY(-3px); }

/* ---------- Drawer ---------- */
.drawer-overlay, .detail-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(10,11,10,.54); opacity: 0; pointer-events: none; backdrop-filter: blur(3px); transition: opacity 220ms ease; }
.drawer-overlay.is-open, .detail-overlay.is-open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; z-index: 310; top: 0; right: 0; width: min(470px, 100%); height: 100dvh;
  display: flex; flex-direction: column; background: var(--paper); box-shadow: -20px 0 60px rgba(0,0,0,.18);
  transform: translateX(105%); transition: transform 280ms cubic-bezier(.2,.8,.2,1);
}
.cart-drawer.is-open { transform: none; }
.cart-drawer__header { display: flex; align-items: center; justify-content: space-between; padding: 26px 24px; border-bottom: 1px solid var(--border); }
.cart-drawer__header .section-kicker { margin: 0; }
.cart-drawer__header h3 { margin-top: 4px; font-size: 2rem; }
.cart-drawer__body { flex: 1; padding: 8px 24px; overflow-y: auto; }
.cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 35px; text-align: center; }
.cart-drawer__empty > i { margin-bottom: 16px; color: var(--cream-deep); font-size: 4rem; }
.cart-drawer__empty h4 { font-size: 1.8rem; }
.cart-drawer__empty p { max-width: 270px; margin: 10px 0 22px; font-size: .78rem; }
.cart-drawer__footer { display: none; flex-direction: column; gap: 10px; padding: 22px 24px 24px; border-top: 1px solid var(--border); background: var(--white); }
.cart-drawer__row { display: flex; justify-content: space-between; align-items: baseline; }
.cart-drawer__row span { color: var(--text-soft); font-size: .72rem; }
.cart-drawer__row strong { font-family: var(--display); font-size: 2rem; }
.cart-drawer__note { margin-bottom: 5px; font-size: .66rem; line-height: 1.5; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 13px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cart-item__icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, var(--cat-a), var(--cat-b)); color: white; overflow: hidden; }
.cart-item__icon svg { width: 29px; height: 29px; }
.cart-item__photo { width: 100%; height: 100%; object-fit: cover; }
.cart-item__name { font-family: var(--display); font-size: 1.12rem; font-weight: 700; line-height: 1.05; }
.cart-item__price { margin-top: 5px; color: var(--text-soft); font-size: .62rem; }
.cart-item__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.cart-item__remove { border: 0; background: transparent; color: #9a9184; cursor: pointer; font-size: .68rem; }
.cart-item__remove:hover { color: var(--tomato); }

/* ---------- Product detail ---------- */
.detail-overlay { z-index: 400; }
.product-detail {
  position: fixed; z-index: 410; top: 50%; left: 50%; width: min(980px, calc(100% - 36px)); max-height: min(760px, calc(100dvh - 36px));
  border-radius: 24px; background: var(--paper); box-shadow: 0 30px 90px rgba(0,0,0,.28); overflow: auto;
  opacity: 0; pointer-events: none; transform: translate(-50%, -47%) scale(.98); transition: opacity 200ms ease, transform 220ms ease;
}
.product-detail.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.product-detail__close { position: absolute; z-index: 4; top: 16px; right: 16px; background: var(--paper); }
.product-detail__inner { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 560px; }
.product-detail__media { padding: 18px; background: var(--cream); }
.product-detail__main { position: relative; height: 410px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, var(--cat-a, #d8ccb4), var(--cat-b, #9a886b)); color: white; overflow: hidden; }
.product-detail__main::after { content: "M"; position: absolute; right: -12px; bottom: -80px; font-family: var(--display); font-size: 18rem; line-height: 1; color: rgba(255,255,255,.1); }
.product-detail__main > svg { position: relative; z-index: 2; width: 112px; height: 112px; }
.product-detail__main > img { position: absolute; z-index: 1; inset: 0; width: 100%; max-width: none; height: 100%; object-fit: contain; background: #0d0d0d; }
.product-detail__thumbs { display: flex; gap: 8px; margin-top: 10px; }
.product-detail__thumbs img { width: 62px; height: 62px; border: 2px solid transparent; border-radius: 8px; object-fit: cover; cursor: pointer; opacity: .65; }
.product-detail__thumbs img.is-active { border-color: var(--tomato); opacity: 1; }
.product-detail__videos iframe, .product-detail__videos video { width: 100%; margin-top: 10px; border: 0; border-radius: 10px; aspect-ratio: 16/9; }
.product-detail__info { display: flex; flex-direction: column; justify-content: center; padding: 60px 55px; }
.product-detail__info h2 { margin-top: 10px; font-size: clamp(2.8rem, 5vw, 4.6rem); }
.product-detail__desc { margin-top: 20px; font-size: .84rem; line-height: 1.75; }
.product-detail__source { align-self: flex-start; margin-top: 12px; color: var(--tomato-dark); font-size: .72rem; font-weight: 700; }
.product-detail__source:hover { text-decoration: underline; }
.product-detail__info .card__price { margin-top: 25px; font-size: 2.3rem; }
.product-detail__info .stepper { align-self: flex-start; margin: 24px 0 14px; }
.product-detail__note { margin-top: 10px; font-size: .62rem; text-align: center; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Generic form/login hooks used by admin ---------- */
.age-gate__card { width: min(430px, calc(100% - 32px)); padding: 38px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.age-gate__logo { display: flex; justify-content: center; margin-bottom: 18px; color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; position: absolute; top: 84px; left: 20px; right: 20px; flex-direction: column; align-items: stretch; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--paper); box-shadow: var(--shadow-soft); }
  .nav.is-open-mobile { display: flex; }
  .nav__link { padding: 11px 12px; }
  .burger { display: grid; }
  .hero__inner { grid-template-columns: 1fr .78fr; gap: 30px; }
  .hero__art { min-height: 475px; }
  .hero-stamp { right: 0; }
  .service-strip { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(2) { border-right: 0; }
  .service:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .story-grid { gap: 50px; }
  .footer__inner { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer__contact { grid-column: 2 / 4; }
}

@media (max-width: 800px) {
  .announcement__inner { justify-content: space-between; gap: 12px; }
  .announcement__inner span:nth-child(2) { display: none; }
  .announcement__inner a { margin-left: 0; }
  .header__inner { min-height: 76px; }
  .brand__logo { width: 42px; height: 42px; }
  .brand__name { font-size: 1.55rem; }
  .search { display: none; }
  .nav { top: 76px; }
  .hero { padding-top: 48px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__text { padding-bottom: 0; }
  .hero__art { min-height: 500px; }
  .hero-poster { width: 330px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: 1fr; }
  .story-intro { position: static; }
  .cta-banner__inner { flex-direction: column; align-items: flex-start; justify-content: center; }
  .footer__inner { grid-template-columns: repeat(2, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
  .footer__contact { grid-column: 1 / -1; }
  .product-detail__inner { grid-template-columns: 1fr; }
  .product-detail__main { height: 330px; }
  .product-detail__info { padding: 38px 28px; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .announcement__inner { justify-content: center; font-size: .61rem; }
  .announcement__inner a { display: none; }
  .header__inner { gap: 10px; }
  .brand__tagline { letter-spacing: .12em; }
  .header__actions { gap: 6px; }
  .icon-btn { width: 40px; height: 40px; }
  .admin-access { width: 40px; min-height: 40px; padding: 0; }
  .admin-access span { display: none; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero h1 { font-size: clamp(3.1rem, 14.5vw, 4.2rem); }
  .hero__location { line-height: 1.4; }
  .hero__art { min-height: 430px; }
  .hero__art::before { width: 330px; height: 330px; }
  .hero-poster { width: 270px; padding-inline: 18px; }
  .hero-poster--photo { padding: 0; }
  .hero-poster--photo figcaption { right: 18px; bottom: 18px; left: 18px; font-size: .52rem; }
  .hero-preview { width: 92px; border-width: 5px; border-radius: 14px; }
  .hero-preview--one { top: 45px; left: 0; }
  .hero-preview--two { top: 98px; right: 0; }
  .hero-poster__word { font-size: 2.8rem; }
  .hero-poster__mark { width: 105px; margin-block: 20px 10px; }
  .hero-stamp { width: 105px; height: 105px; right: 4px; bottom: 25px; }
  .hero-label { font-size: .95rem; }
  .hero-label--one { top: 38px; left: 0; }
  .hero-label--two { top: 88px; right: 0; }
  .service-strip { grid-template-columns: 1fr; }
  .service { min-height: 86px; border-right: 0; border-bottom: 1px solid var(--border); }
  .service:last-child { border-bottom: 0; }
  .catalog-section, .story-section { padding: 85px 0; }
  .pills { flex-wrap: nowrap; margin-inline: -14px; padding-inline: 14px; overflow-x: auto; scrollbar-width: none; }
  .pills::-webkit-scrollbar { display: none; }
  .pill { flex: 0 0 auto; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .card { display: grid; grid-template-columns: 118px 1fr; }
  .card__media { height: 100%; min-height: 180px; aspect-ratio: auto; border-radius: 0; }
  .card__media::before { font-size: 8rem; bottom: -35px; }
  .card__media::after { inset: 8px; }
  .card__media > svg { width: 48px; height: 48px; }
  .card__body { padding: 15px; }
  .card__name { font-size: 1.35rem; }
  .card__desc { display: none; }
  .card__bottom { padding-top: 15px; align-items: center; }
  .card__actions .stepper { display: none; }
  .benefits { grid-template-columns: 1fr; }
  .benefit { min-height: 220px; }
  .cta-banner__inner { min-height: 370px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__brand, .footer__contact { grid-column: auto; }
  .footer__bottom { flex-direction: column; }
  .floating-wa { right: 14px; bottom: 14px; width: 50px; padding: 0; justify-content: center; }
  .floating-wa span { display: none; }
  .cart-item { grid-template-columns: 54px 1fr; }
  .cart-item__icon { width: 54px; height: 54px; }
  .cart-item__actions { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
  .product-detail { width: 100%; max-height: 94dvh; top: auto; bottom: 0; border-radius: 22px 22px 0 0; transform: translate(-50%, 105%); }
  .product-detail.is-open { transform: translate(-50%, 0); }
  .product-detail__media { padding: 10px; }
  .product-detail__main { height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
