/* Regras completas no arquivo DESIGN.md */
:root {
  --bg: #fdfcfa;
  --ink: #2e2a26;
  --wine: #5e2a36;
  --sand: #f3f0ea;
  --line: #e8e4dd;
  --muted: #76706a;
  --display: "Italiana", "Times New Roman", serif;
  --body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14px/1.6 var(--body); letter-spacing: .01em; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
h1, h2 { text-wrap: balance; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
img, svg { display: block; }
:focus-visible { outline: 1px solid var(--wine); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(1200px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.title { font: 400 clamp(21px, 1.9vw, 27px)/1.25 var(--display); letter-spacing: .16em; text-transform: uppercase; text-align: center; }

/* Interações */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 34px; border: 1px solid var(--wine); border-radius: 2px; background: var(--wine); color: #fff; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; transition: background .3s var(--ease), color .3s var(--ease); }
.btn:hover { background: transparent; color: var(--wine); }
.btn--line { background: transparent; color: var(--wine); }
.btn--line:hover { background: var(--wine); color: #fff; }
.tlink { font-size: 13px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .4s var(--ease); }
.tlink:hover { background-size: 0 1px; background-position: 100% 100%; }
.reveal-on .reveal { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal-on .reveal.in { opacity: 1; transform: none; }

/* Topo */
.proto { display: flex; justify-content: center; gap: 10px; padding: 4px var(--gutter); background: var(--sand); color: var(--muted); font-size: 11.5px; text-align: center; }
.proto button { font-size: 14px; line-height: 1; }
.promo { padding: 7px 12px; background: var(--wine); color: #f6eef0; font-size: 12px; letter-spacing: .04em; text-align: center; }
.header { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.header__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; min-height: 66px; transition: min-height .35s var(--ease); }
.is-scrolled .header__in { min-height: 54px; }
.logo { font: 400 clamp(20px, 1.8vw, 24px)/1 var(--display); letter-spacing: .24em; white-space: nowrap; padding-left: .24em; }
.nav { display: flex; gap: clamp(14px, 1.6vw, 24px); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.nav a { padding: 4px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.nav a:hover { background-size: 100% 1px; }
.tools { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.icon-btn { position: relative; width: 38px; height: 38px; display: grid; place-items: center; }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.1; }
.badge { position: absolute; top: 4px; right: 3px; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 7px; background: var(--wine); color: #fff; font-size: 9px; line-height: 14px; text-align: center; letter-spacing: 0; }
.menu-btn { display: none; margin-left: -10px; }
.search { display: flex; align-items: center; gap: 6px; width: clamp(120px, 12vw, 170px); margin-right: 6px; border-bottom: 1px solid var(--line); transition: border-color .3s; }
.search:focus-within { border-color: var(--ink); }
.search svg { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 1.1; }
.search input { width: 100%; min-width: 0; height: 30px; border: 0; background: none; font-size: 12px; }
.search input:focus { outline: 0; }
.search-toggle { display: none; }

/* Banner: três janelas, com arco na central */
.hero { padding-block: clamp(24px, 3vw, 40px) clamp(56px, 6vw, 88px); text-align: center; }
.hero__frames { display: grid; grid-template-columns: 1fr 1.28fr 1fr; gap: clamp(12px, 2vw, 28px); align-items: end; margin-bottom: clamp(24px, 2.8vw, 36px); }
.frame { overflow: hidden; background: var(--sand); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--side { height: min(48svh, 460px); min-height: 300px; }
.frame--main { height: min(60svh, 580px); min-height: 380px; border-radius: 999px 999px 0 0; }
.hero h1 { font: 400 clamp(28px, 2.8vw, 40px)/1.15 var(--display); margin-bottom: 8px; }
.hero p { color: var(--muted); margin-bottom: 20px; }

/* Seções */
.section { padding-block: clamp(64px, 7vw, 104px); }
.section__head { margin-bottom: clamp(24px, 2.6vw, 36px); }
.tabs { display: flex; justify-content: center; gap: 22px; margin-top: 12px; font-size: 12.5px; overflow-x: auto; scrollbar-width: none; }
.tab { flex: none; min-height: 28px; color: var(--muted); border-bottom: 1px solid transparent; transition: color .25s; }
.tab:hover { color: var(--ink); }
.tab[aria-pressed="true"] { color: var(--wine); border-color: var(--wine); }

/* Vitrine */
.shop { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(36px, 3.4vw, 48px) clamp(12px, 1.6vw, 20px); }
.card { position: relative; text-align: center; }
.card__media { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--sand); overflow: hidden; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease); }
.pack { mix-blend-mode: multiply; }
.card__media img + img { opacity: 0; }
.card:hover .card__media img + img { opacity: 1; }
.fav { position: absolute; top: 4px; right: 4px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; }
.fav svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.1; }
.fav[aria-pressed="true"] svg { fill: var(--wine); stroke: var(--wine); }
.card__name { margin: 12px 0 2px; font-size: 11.5px; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; }
.new { color: var(--wine); }
.price { font-size: 13.5px; font-weight: 500; }
.sub { font-size: 11.5px; color: var(--muted); }
.pix { color: var(--wine); }
.empty { grid-column: 1 / -1; padding: 40px 0; color: var(--muted); text-align: center; }

/* Categorias em arco */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.2vw, 30px); padding-inline: clamp(0px, 4vw, 56px); }
.cat { text-align: center; }
.cat__img { aspect-ratio: 4 / 5; background: var(--sand); border-radius: 999px 999px 0 0; overflow: hidden; }
.cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat:hover .cat__img img { transform: scale(1.02); }
.cat__name { display: block; margin-top: 12px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }

/* Mosaico de campanha */
.mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px); max-width: 1020px; margin-inline: auto; }
.tile { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--sand); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover img { transform: scale(1.02); }
.tile:nth-child(1) { border-top-left-radius: 72px; }
.tile:nth-child(2) { border-top-right-radius: 72px; }
.tile:nth-child(3) { border-bottom-left-radius: 72px; }
.tile:nth-child(4) { border-bottom-right-radius: 72px; }
.tile span { position: absolute; right: 14px; bottom: 14px; padding: 6px 14px; background: var(--bg); border-radius: 2px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

/* Material */
.material__in { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 7vw, 96px); align-items: start; max-width: 1020px; margin-inline: auto; }
.material .title { text-align: left; }
.material__in > div > p { color: var(--muted); max-width: 36ch; margin-top: 12px; }
.rows { border-top: 1px solid var(--line); }
.row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.row span:last-child { color: var(--muted); text-align: right; }
.note { font-size: 11.5px; color: var(--muted); margin-top: 12px; }

/* Newsletter e rodapé */
.news { background: var(--wine); color: #fff; border-radius: 72px 72px 0 0; }
.news__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 5vw, 72px); align-items: center; padding-block: clamp(36px, 4vw, 52px); }
.news .title { text-align: left; }
.news form { display: flex; border-bottom: 1px solid rgba(255, 255, 255, .6); }
.news input { flex: 1; min-width: 0; height: 42px; border: 0; background: none; color: #fff; }
.news input::placeholder { color: #e3d3d7; }
.news input:focus { outline: 0; }
.news button { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding-inline: 4px; }
.footer { background: var(--sand); color: var(--muted); font-size: 12.5px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 28px clamp(24px, 4vw, 56px); padding-block: 44px 28px; }
.footer .logo { display: block; color: var(--ink); padding: 0; }
.footer h3 { color: var(--ink); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.footer__grid a:not(.logo) { display: block; padding: 3px 0; }
.footer__grid a:not(.logo):hover { color: var(--ink); }
.footer__pay { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px; padding-block: 16px; border-top: 1px solid #e0dbd2; }
.footer__pay h3 { margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chips span { padding: 2px 8px; border: 1px solid #d9d3c8; border-radius: 2px; font-size: 11px; }
.footer__end { padding-block: 14px; border-top: 1px solid #e0dbd2; font-size: 11.5px; }

/* Produto */
.crumbs { display: flex; flex-wrap: wrap; gap: 7px; padding-block: 14px; font-size: 11.5px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.pdp { display: grid; grid-template-columns: minmax(0, 6.4fr) minmax(320px, 4fr); gap: clamp(24px, 4.4vw, 60px); align-items: start; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(6px, .8vw, 10px); }
.shot { position: relative; background: var(--sand); overflow: hidden; aspect-ratio: 4 / 5; }
.shot:only-child { grid-column: 1 / -1; aspect-ratio: 1 / 1; }
.shot:first-child { border-top-left-radius: 56px; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.buy { position: sticky; top: 72px; padding-block: 4px 40px; }
.buy h1 { font: 400 clamp(26px, 2.4vw, 34px)/1.15 var(--display); margin-bottom: 10px; }
.buy__price { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.buy__price .price { font-size: 16px; }
.buy__desc { color: var(--muted); margin-bottom: 20px; }
.opt { margin-bottom: 18px; }
.opt__label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 12.5px; }
.opt__label b { font-weight: 400; color: var(--muted); }
.swatches, .sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 1px solid #d9d3c8; outline: 1px solid transparent; outline-offset: 2px; transition: outline-color .25s; }
.swatch[aria-pressed="true"] { outline-color: var(--ink); }
.swatch--gold { background: linear-gradient(135deg, #f1e0ac, #c9a35a); }
.swatch--silver { background: linear-gradient(135deg, #fbfbfb, #b4b8bd); }
.size { min-width: 40px; min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 2px; font-size: 12.5px; transition: border-color .25s; }
.size:hover { border-color: var(--ink); }
.size[aria-pressed="true"] { border-color: var(--wine); color: var(--wine); box-shadow: inset 0 0 0 .5px var(--wine); }
.tip { margin-top: 7px; font-size: 11.5px; color: var(--muted); }
.error { margin-top: 7px; font-size: 12.5px; color: var(--wine); }
.buy .btn { width: 100%; min-height: 48px; }
.buy__wa { display: block; margin: 12px auto 18px; }
.buy__facts { padding: 10px 0; border-block: 1px solid var(--line); font-size: 11.5px; color: var(--muted); text-align: center; }
.cep { padding-block: 14px; }
.cep label { display: block; font-size: 12.5px; }
.cep form { display: flex; border-bottom: 1px solid var(--line); }
.cep input { flex: 1; min-width: 0; height: 36px; border: 0; background: none; }
.cep input:focus { outline: 0; }
.cep button { font-size: 12.5px; color: var(--wine); }
.cep__out { margin-top: 8px; font-size: 12.5px; }
.cep__out div { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.cep__out b { font-weight: 500; }
.cep__out small { color: var(--muted); }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; padding: 11px 0; list-style: none; cursor: pointer; font-size: 12.5px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 15px; line-height: 1.3; font-weight: 300; }
details[open] summary::after { content: "–"; }
details p, details ul { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
details ul { padding-left: 18px; }
.sticky-buy { display: none; }

/* WhatsApp discreto */
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 20; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); transition: bottom .3s var(--ease), border-color .3s; }
.wa:hover { border-color: var(--wine); }
.wa svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.2; }

/* Sacola e menu */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(46, 42, 38, .3); }
.drawer { position: fixed; top: 0; bottom: 0; right: 0; z-index: 50; width: min(420px, 100%); display: flex; flex-direction: column; background: var(--bg); animation: slide-r .4s var(--ease); }
.drawer--left { right: auto; left: 0; width: min(320px, 88%); animation-name: slide-l; }
@keyframes slide-r { from { transform: translateX(100%); } }
@keyframes slide-l { from { transform: translateX(-100%); } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font: 400 20px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.drawer__body { flex: 1; overflow: auto; padding: 16px 20px; }
.drawer__foot { padding: 16px 20px; border-top: 1px solid var(--line); }
.mobnav a { display: block; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; }
.ship { margin-bottom: 12px; font-size: 12.5px; }
.ship b { font-weight: 500; }
.ship__bar { height: 1px; margin-top: 8px; background: var(--line); }
.ship__bar i { display: block; height: 100%; background: var(--wine); transition: width .5s var(--ease); }
.line { display: grid; grid-template-columns: 68px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.line__img { width: 68px; height: 85px; background: var(--sand); }
.line__img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.line small { display: block; color: var(--muted); font-size: 12px; }
.line button { margin-top: 4px; min-height: 24px; font-size: 12px; color: var(--muted); text-decoration: underline; }
.total { display: flex; justify-content: space-between; font-weight: 500; }
.drawer__foot .sub { margin: 2px 0 14px; }
.drawer__foot .btn { width: 100%; }
.toast { position: fixed; left: 50%; bottom: 20px; z-index: 60; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 10px 16px; background: var(--ink); color: var(--bg); font-size: 13px; border-radius: 2px; }

@media (max-width: 1000px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .header__in { min-height: 58px; }
  .tools .hide-sm { display: none; }
  .search-toggle { display: grid; }
  .search { display: none; width: 100%; margin: 0 0 10px; }
  .search.is-open { display: flex; }
  .search input { font-size: 16px; }
  .shop, .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .material__in, .pdp, .news__in { grid-template-columns: 1fr; }
  .buy { position: static; padding-top: 0; }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .promo { padding-inline: 6px; font-size: 11px; letter-spacing: 0; }
  .hero__frames { display: block; }
  .frame--side { display: none; }
  .frame--main { height: auto; min-height: 0; aspect-ratio: 4 / 5; width: 84%; margin-inline: auto; }
  .hero .btn { width: 100%; }
  .cats { padding-inline: 0; }
  .tile:nth-child(1) { border-top-left-radius: 44px; }
  .tile:nth-child(2) { border-top-right-radius: 44px; }
  .tile:nth-child(3) { border-bottom-left-radius: 44px; }
  .tile:nth-child(4) { border-bottom-right-radius: 44px; }
  .tile span { right: 8px; bottom: 8px; padding: 4px 9px; font-size: 10px; }
  .news { border-radius: 44px 44px 0 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-auto-flow: column; grid-auto-columns: 86%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .shot, .shot:only-child { grid-column: auto; aspect-ratio: 4 / 5; scroll-snap-align: center; }
  .shot:only-child { width: 100%; }
  .sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 16px; background: var(--bg); border-top: 1px solid var(--line); transform: translateY(100%); transition: transform .3s var(--ease); }
  .sticky-buy.is-on { transform: none; }
  .sticky-buy .btn { min-height: 42px; padding: 0 22px; }
  body.has-sticky .wa { bottom: 72px; }
}

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