/* =========================================================
   Camilô — vitrine
   Pérola + veludo bordô + dourado. Fotos em molduras de arco.
   ========================================================= */
:root {
  --pearl: #f4efed;
  --pearl-2: #ebe3e0;
  --blush: #e6d5d0;
  --ink: #33232a;
  --muted: #7a656c;
  --gold: #9c7843;
  --gold-soft: #c8ab7a;
  --velvet: #4a2633;
  --velvet-2: #5e3443;
  --line: rgba(74, 38, 51, .14);

  --serif: 'Marcellus', 'Times New Roman', serif;
  --sans: 'Jost', system-ui, sans-serif;

  --wrap: 1180px;
  --gut: clamp(1.1rem, 4vw, 2.5rem);
  --arch: 999px 999px 4px 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--pearl);
  color: var(--ink);
  font: 300 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--velvet); color: #fff; padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.6rem;
  background: var(--velvet); color: var(--pearl);
  border: 1px solid var(--velvet); border-radius: 999px;
  font: 400 .95rem/1 var(--sans); letter-spacing: .02em; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--velvet-2); border-color: var(--velvet-2); }
.btn--ghost { background: transparent; color: var(--velvet); border-color: rgba(74,38,51,.35); }
.btn--ghost:hover { background: var(--velvet); color: var(--pearl); }
.btn--small { min-height: 38px; padding: 0 1.1rem; font-size: .88rem; }
.btn--whats { width: 100%; min-height: 54px; font-size: 1rem; }
.link { background: none; border: 0; padding: 0; color: var(--gold); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; font-size: .92rem; }

/* ---------- topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem var(--gut);
  background: rgba(244, 239, 237, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.wordmark { display: flex; flex-direction: column; line-height: 1; text-decoration: none; }
.wordmark__name { font: 1.65rem/1 var(--serif); letter-spacing: .14em; color: var(--gold); text-transform: uppercase; }
.wordmark__sub { margin-top: .3rem; font-size: .68rem; letter-spacing: .32em; color: var(--muted); }
.topbar__nav { display: flex; align-items: center; gap: 1.6rem; font-size: .95rem; }
.topbar__nav a:not(.btn) { text-decoration: none; }
.topbar__nav a:not(.btn):hover { color: var(--gold); }
@media (max-width: 640px) { .topbar__nav a:not(.btn) { display: none; } .wordmark__name { font-size: 1.35rem; } }

/* ---------- hero ---------- */
.hero {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(1.5rem, 5vw, 4rem);
  padding: clamp(2.5rem, 7vw, 5.5rem) var(--gut) clamp(2rem, 5vw, 4rem);
}
.hero__title {
  margin: 0; font: clamp(2.5rem, 5.4vw, 4.4rem)/1.06 var(--serif); color: var(--velvet);
  letter-spacing: -.005em; max-width: 13ch;
}
.hero__lead { margin: 1.4rem 0 2rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero__art { position: relative; display: grid; justify-items: center; }
.hero__logo {
  width: min(250px, 60%); margin-bottom: -1.2rem; position: relative; z-index: 2;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 52%, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 60% 62% at 50% 52%, #000 55%, transparent 100%);
}
.hero__arches { display: flex; align-items: flex-end; justify-content: center; gap: clamp(.5rem, 1.5vw, 1rem); width: 100%; }
.arch--hero { width: 31%; }
.arch--hero:nth-child(2) { width: 36%; }
.arch--hero:nth-child(1), .arch--hero:nth-child(3) { margin-bottom: 1.6rem; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero__title, .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__art { order: -1; }
  .hero__logo { width: 190px; }
}

/* ---------- arco (moldura das fotos) ---------- */
.arch {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 5; border-radius: var(--arch);
  background: var(--pearl-2);
}
.arch img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.arch::after {
  content: ''; position: absolute; inset: 6px; border-radius: inherit; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .55);
}

/* ---------- títulos de seção ---------- */
.section-title { margin: 0; font: clamp(1.7rem, 3vw, 2.3rem)/1.15 var(--serif); color: var(--velvet); }

/* ---------- vitrine (categorias) ---------- */
.vitrine { max-width: var(--wrap); margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem) var(--gut); }
.vitrine__rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(132px, 19%, 200px); gap: clamp(.9rem, 2vw, 1.6rem);
  margin-top: 1.6rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .6rem;
  scrollbar-width: thin; scrollbar-color: var(--blush) transparent;
}
.medal { scroll-snap-align: start; text-decoration: none; text-align: center; }
.medal__img {
  display: block; aspect-ratio: 3 / 4; border-radius: var(--arch); overflow: hidden;
  background: var(--blush); border: 1px solid var(--gold-soft); padding: 5px; background-clip: content-box;
}
.medal__img img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--arch); transition: transform .5s ease; }
.medal:hover .medal__img img { transform: scale(1.05); }
.medal__name { display: block; margin-top: .8rem; font: 1.1rem/1.2 var(--serif); color: var(--velvet); }
.medal__count { display: block; font-size: .82rem; color: var(--muted); }

/* ---------- catálogo ---------- */
.catalogo { max-width: var(--wrap); margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) var(--gut) 1rem; }
.catalogo__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.catalogo__count { margin: 0; color: var(--muted); font-size: .92rem; }

.filters {
  position: sticky; top: 64px; z-index: 10;
  margin: 1.2rem calc(var(--gut) * -1) 0; padding: .8rem var(--gut);
  background: rgba(244, 239, 237, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.filters__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .6rem; }
.chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 40px; padding: 0 1.1rem; border-radius: 999px;
  border: 1px solid rgba(74, 38, 51, .25); background: transparent; font-size: .93rem; font-weight: 400;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--velvet); }
.chip[aria-selected="true"], .chip[aria-pressed="true"] { background: var(--velvet); border-color: var(--velvet); color: var(--pearl); }
.chip--quiet { min-height: 34px; font-size: .84rem; padding: 0 .9rem; border-color: rgba(74,38,51,.16); }
.chip--quiet[aria-pressed="true"] { background: var(--blush); color: var(--velvet); border-color: var(--blush); }
.sort select {
  min-height: 36px; padding: 0 2rem 0 .9rem; border-radius: 999px; border: 1px solid rgba(74,38,51,.2);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%234a2633'/%3E%3C/svg%3E") no-repeat right .8rem center;
  font: 400 .86rem var(--sans); color: var(--ink); appearance: none;
}

.group { margin-top: clamp(2rem, 5vw, 3.2rem); }
.group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.group__title { margin: 0; font: 1.45rem/1.2 var(--serif); color: var(--velvet); }
.group__desc { margin: 1.5rem 0 0; color: var(--muted); max-width: 60ch; }
#results > .grid { margin-top: 1.8rem; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2rem) clamp(.8rem, 2vw, 1.6rem); }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card__btn { position: relative; display: flex; flex-direction: column; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.card__btn:hover .arch img { transform: scale(1.04); }
.card__name { margin-top: .8rem; font: 1.02rem/1.25 var(--serif); color: var(--ink); }
.card__meta { margin-top: .15rem; font-size: .82rem; color: var(--muted); }
.card__price { margin-top: .3rem; font-weight: 500; font-size: 1rem; color: var(--gold); }
.card--out .arch img { filter: grayscale(.6) opacity(.7); }
.card--out .card__price { color: var(--muted); text-decoration: line-through; }
.tag {
  position: absolute; top: 12%; left: 50%; transform: translateX(-50%);
  padding: .25rem .8rem; border-radius: 999px; background: var(--pearl); color: var(--velvet);
  font-size: .75rem; font-weight: 500; letter-spacing: .03em; white-space: nowrap;
}
.tag--out { background: var(--velvet); color: var(--pearl); }

.card--skel span:not(.arch) { display: block; height: .8rem; margin-top: .7rem; width: 70%; border-radius: 4px; background: var(--pearl-2); }
.card--skel span:last-child { width: 40%; }
.card--skel .arch { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }

.empty { padding: 3rem 1rem; text-align: center; color: var(--muted); }
.empty p { margin: 0 0 1.2rem; }

/* ---------- como comprar ---------- */
.steps { max-width: var(--wrap); margin: clamp(3rem, 7vw, 5rem) auto 0; padding: clamp(2rem, 5vw, 3.5rem) var(--gut); border-top: 1px solid var(--line); }
.steps__list { list-style: none; counter-reset: s; margin: 1.8rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2.5rem); }
.steps__list li { counter-increment: s; }
.steps__list li::before { content: counter(s); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--gold-soft); color: var(--gold); font: 1.1rem var(--serif); }
.steps__list h3 { margin: .9rem 0 .3rem; font: 1.2rem/1.3 var(--serif); color: var(--velvet); }
.steps__list p { margin: 0; color: var(--muted); max-width: 34ch; }
@media (max-width: 760px) { .steps__list { grid-template-columns: 1fr; } }

/* ---------- rodapé ---------- */
.footer {
  margin-top: clamp(2rem, 5vw, 4rem); padding: clamp(2.5rem, 6vw, 4rem) max(var(--gut), calc((100% - var(--wrap)) / 2 + var(--gut))) 6rem;
  background: var(--velvet); color: rgba(244, 239, 237, .8);
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: start;
}
.footer .wordmark__name { color: var(--gold-soft); font-size: 2rem; }
.footer__brand p { margin: .5rem 0 0; }
.footer__links { display: flex; gap: 1.5rem; }
.footer__links a { text-decoration: none; border-bottom: 1px solid rgba(200, 171, 122, .5); padding-bottom: 2px; }
.footer__links a:hover { color: var(--gold-soft); }
.footer__small { grid-column: 1 / -1; margin: 1rem 0 0; font-size: .8rem; color: rgba(244, 239, 237, .5); }
@media (max-width: 560px) { .footer { grid-template-columns: 1fr; } }

/* ---------- botão flutuante ---------- */
.whats-float {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 30;
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(51, 35, 42, .25);
}
.whats-float svg { width: 30px; height: 30px; }
[hidden] { display: none !important; }

/* ---------- modal da peça ---------- */
.modal {
  width: min(960px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 0;
  border: 0; border-radius: 18px; background: var(--pearl); color: var(--ink); overflow: auto;
}
.modal::backdrop { background: rgba(51, 35, 42, .55); backdrop-filter: blur(3px); }
.modal[open] { animation: rise .28s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.modal__close {
  position: absolute; top: .8rem; right: .8rem; z-index: 2; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(244, 239, 237, .9); font-size: 1.6rem; line-height: 1;
}
.modal__body { display: grid; grid-template-columns: 1.1fr 1fr; }
.modal__gallery { padding: clamp(1rem, 3vw, 1.8rem); background: var(--pearl-2); }
.modal__main { border-radius: var(--arch); overflow: hidden; aspect-ratio: 4/5; background: var(--blush); }
.modal__main img { width: 100%; height: 100%; object-fit: cover; }
.modal__thumbs { display: flex; gap: .5rem; margin-top: .8rem; overflow-x: auto; }
.thumb { flex: none; width: 64px; height: 78px; padding: 0; border: 1px solid transparent; border-radius: 999px 999px 3px 3px; overflow: hidden; background: none; opacity: .65; }
.thumb[aria-current="true"] { border-color: var(--gold); opacity: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal__info { padding: clamp(1.5rem, 4vw, 2.6rem); display: flex; flex-direction: column; }
.modal__cat { margin: 0; color: var(--gold); font-size: .9rem; }
.modal__title { margin: .4rem 0 0; font: clamp(1.6rem, 3vw, 2.1rem)/1.15 var(--serif); color: var(--velvet); }
.modal__price { margin: .8rem 0 1.2rem; font-size: 1.5rem; font-weight: 400; color: var(--ink); }
.modal__specs { margin: 0 0 1rem; display: grid; gap: .5rem; }
.modal__specs div { display: flex; gap: .8rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.modal__specs dt { width: 6rem; color: var(--muted); }
.modal__specs dd { margin: 0; }
.modal__desc { margin: 0 0 1.4rem; color: var(--muted); }
.modal__desc:empty { display: none; }
.modal__info .btn--whats { margin-top: auto; }
.modal__note { margin: .7rem 0 0; font-size: .82rem; color: var(--muted); text-align: center; }
@media (max-width: 720px) {
  .modal { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
  .modal__body { grid-template-columns: 1fr; }
  .modal__main { max-width: 420px; margin: 0 auto; }
  .modal__info .btn--whats { margin-top: .5rem; position: sticky; bottom: 1rem; }
}

/* =========================================================
   Sacola
   ========================================================= */
.bag-btn {
  position: relative; display: inline-flex; align-items: center; gap: .5rem;
  min-height: 42px; padding: 0 1.1rem 0 .9rem; border-radius: 999px;
  border: 1px solid var(--velvet); background: var(--velvet); color: var(--pearl);
  font: 400 .92rem var(--sans);
}
.bag-ico { width: 24px; height: 24px; flex: none; overflow: visible; }
.bag-ico__body { fill: rgba(200, 171, 122, .18); stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.bag-ico__handle { fill: none; stroke: var(--gold-soft); stroke-width: 1.5; stroke-linecap: round; }
.bag-ico__dot { fill: var(--gold-soft); }
.bag-ico--bar { width: 30px; height: 30px; margin-right: -.4rem; color: var(--pearl); }
.bag-btn:hover { background: var(--velvet-2); }
.bag-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--gold-soft); color: var(--velvet); font-size: .78rem; font-weight: 500;
}
.bag-count.bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }
@media (max-width: 640px) { .bag-btn__label { display: none; } .bag-btn { padding: 0 .8rem; } }

/* cartão: tocar adiciona; lupa abre detalhes */
.card { position: relative; }
.card__info {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: rgba(244, 239, 237, .92); color: var(--velvet);
}
.card__info svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.card__info:hover { background: var(--pearl); }
.card__add {
  position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); z-index: 1;
  padding: .45rem 1rem; border-radius: 999px; white-space: nowrap;
  background: var(--velvet); color: var(--pearl); font-size: .82rem; font-weight: 400;
  opacity: 0; transition: opacity .2s;
}
.card__btn:hover .card__add, .card__btn:focus-visible .card__add { opacity: 1; }
@media (hover: none) { .card__add { opacity: .92; padding: .35rem .8rem; font-size: .76rem; } }
.card__in:empty { display: none; }
.card__in {
  position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%);
  padding: .4rem .9rem; border-radius: 999px; background: var(--gold-soft); color: var(--velvet);
  font-size: .8rem; font-weight: 500; white-space: nowrap; z-index: 1;
}
.card--in .card__add { display: none; }
.card--in .arch { box-shadow: 0 0 0 2px var(--gold-soft); }

/* barra inferior (celular) */
.bagbar {
  position: fixed; left: .8rem; right: .8rem; bottom: max(.8rem, env(safe-area-inset-bottom)); z-index: 30;
  display: none; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 58px; padding: 0 1.2rem; border: 0; border-radius: 999px;
  background: var(--velvet); color: var(--pearl); box-shadow: 0 10px 30px rgba(51, 35, 42, .3);
}
.bagbar__info { flex: 1; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; font-size: .85rem; }
.bagbar__info strong { font-weight: 500; font-size: .95rem; }
.bagbar__cta { padding: .5rem 1rem; border-radius: 999px; background: var(--gold-soft); color: var(--velvet); font-weight: 500; font-size: .9rem; }
@media (max-width: 760px) {
  .has-bag .bagbar:not([hidden]) { display: flex; }
  .has-bag .whats-float { bottom: calc(max(.8rem, env(safe-area-inset-bottom)) + 70px); }
  .has-bag .footer { padding-bottom: 9rem; }
}

/* gaveta */
.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; width: min(440px, 100%); height: 100dvh; max-height: 100dvh;
  padding: 0; border: 0; background: var(--pearl); color: var(--ink);
  display: none; flex-direction: column;
}
.drawer[open] { display: flex; animation: slidein .28s ease-out; }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }
.drawer::backdrop { background: rgba(51, 35, 42, .5); backdrop-filter: blur(2px); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); }
.drawer__head h2 { margin: 0; font: 1.5rem var(--serif); color: var(--velvet); }
.drawer__x { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--pearl-2); font-size: 1.5rem; line-height: 1; }
.drawer__body { flex: 1; overflow: auto; padding: .6rem 1.3rem; }
.drawer__foot { padding: 1rem 1.3rem calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; display: grid; gap: .7rem; }

.bag-list { list-style: none; margin: 0; padding: 0; }
.bag-item { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.bag-item__img { width: 76px; height: 94px; border-radius: 999px 999px 4px 4px; overflow: hidden; background: var(--pearl-2); }
.bag-item__img img { width: 100%; height: 100%; object-fit: cover; }
.bag-item__info { display: grid; gap: .25rem; align-content: start; padding-right: 2rem; }
.bag-item__name { font: 1.02rem/1.25 var(--serif); color: var(--ink); }
.bag-item__meta { font-size: .8rem; color: var(--muted); }
.bag-item__size select {
  margin-top: .2rem; min-height: 34px; padding: 0 1.8rem 0 .7rem; border-radius: 8px; border: 1px solid rgba(74,38,51,.25);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%234a2633'/%3E%3C/svg%3E") no-repeat right .6rem center;
  font: 400 .85rem var(--sans); color: var(--ink); appearance: none;
}
.bag-item__size--todo select { border-color: var(--gold); background-color: #fbf6ee; }
.bag-item__row { display: flex; align-items: center; justify-content: space-between; margin-top: .35rem; }
.bag-item__price { font-weight: 500; color: var(--ink); }
.bag-item__rm { position: absolute; top: .9rem; right: 0; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--pearl-2); font-size: 1.1rem; line-height: 1; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid rgba(74,38,51,.2); border-radius: 999px; }
.qty button { width: 34px; height: 34px; border: 0; background: none; font-size: 1.1rem; color: var(--velvet); }
.qty span { min-width: 1.6rem; text-align: center; font-size: .92rem; }
.bag-empty { padding: 3rem 1rem; text-align: center; color: var(--muted); }
.bag-empty p { margin: 0 0 .4rem; }
.bag-empty__hint { font-size: .9rem; margin-bottom: 1.4rem !important; }
.bag-total { display: flex; justify-content: space-between; align-items: baseline; }
.bag-total span { color: var(--muted); }
.bag-total strong { font: 400 1.5rem var(--sans); color: var(--ink); }
.bag-name { display: grid; gap: .3rem; font-size: .82rem; color: var(--muted); }
.bag-name input { min-height: 44px; padding: 0 .9rem; border: 1px solid rgba(74,38,51,.2); border-radius: 10px; font: 400 .95rem var(--sans); color: var(--ink); background: var(--pearl); }
.bag-warn { margin: 0; font-size: .82rem; color: var(--gold); }
.bag-warn:empty { display: none; }
.bag-clear { justify-self: center; font-size: .85rem; color: var(--muted); }
#bagSend[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* detalhes da peça */
.field-size { display: grid; gap: .35rem; margin-bottom: 1rem; font-size: .88rem; color: var(--muted); }
.field-size select { min-height: 46px; padding: 0 .9rem; border-radius: 10px; border: 1px solid rgba(74,38,51,.25); background: #fff; font: 400 1rem var(--sans); color: var(--ink); }
.modal__ask { margin-top: .9rem; text-align: center; font-size: .88rem; color: var(--gold); text-underline-offset: 3px; }
.modal__ask.btn { margin-top: auto; color: var(--pearl); text-decoration: none; }

/* aviso rápido */
.toast-store {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 1.5rem; z-index: 60;
  display: flex; align-items: center; gap: 1rem; max-width: calc(100% - 1.6rem);
  padding: .75rem .8rem .75rem 1.1rem; border-radius: 14px;
  background: var(--ink); color: var(--pearl); font-size: .9rem; box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.toast-store button { flex: none; border: 0; border-radius: 999px; padding: .45rem .9rem; background: var(--gold-soft); color: var(--velvet); font-weight: 500; font-size: .85rem; }
.has-bag .toast-store { bottom: calc(1.5rem + 70px); }
@media (min-width: 761px) { .has-bag .toast-store { bottom: 1.5rem; } }

/* ---------- v5: logo em destaque no topo ---------- */
/* Mostra so a area desenhada do logo (o fundo branco some com multiply) */
.hero__brand {
  position: relative; width: min(100%, 560px); aspect-ratio: 1138 / 785; overflow: hidden;
  margin-inline: auto;
}
.hero__brand img {
  position: absolute; max-width: none; height: auto;
  width: calc(2576 / 1138 * 100%);
  left: calc(-790 / 1138 * 100%);
  top: calc(-315 / 785 * 100%);
  mix-blend-mode: multiply;
}
@media (max-width: 860px) { .hero__brand { width: min(78%, 380px); } }

/* ---------- v5: quantidade direto na peca ---------- */
.card__media { position: relative; }
.card__btn--img { display: block; }
.card__btn--txt { padding-top: 0; }
.card__btn--txt .card__name { margin-top: .8rem; }
.card__qty {
  position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); z-index: 2;
  display: inline-flex; align-items: center; gap: .1rem; padding: .2rem;
  border-radius: 999px; background: var(--velvet); color: var(--pearl);
  box-shadow: 0 6px 16px rgba(51, 35, 42, .25); white-space: nowrap;
}
.card__qty button {
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: rgba(244, 239, 237, .14); color: var(--pearl); font-size: 1.1rem; line-height: 1;
}
.card__qty button:hover { background: var(--gold-soft); color: var(--velvet); }
.card__qty-n { padding: 0 .55rem; font-size: .8rem; font-weight: 500; }
.card--in .card__add { display: none; }
@media (max-width: 420px) { .card__qty-n { padding: 0 .3rem; font-size: .74rem; } .card__qty button { width: 28px; height: 28px; } }

.modal__buy { margin-top: auto; display: grid; gap: .8rem; }
.field-qty { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .88rem; color: var(--muted); }
.qty--lg button { width: 42px; height: 42px; font-size: 1.25rem; }
.qty--lg span { min-width: 2.2rem; font-size: 1.05rem; }
.modal__info .modal__buy .btn--whats { margin-top: 0; position: static; }

/* ---------- v6: filtros numa linha so ---------- */
.filters__row--main { margin-top: 0; }
.filters__row--main .chips { flex: 1; min-width: 0; }
.filters__row--main .sort { flex: none; }
@media (max-width: 640px) {
  .filters__row--main { flex-direction: column; align-items: stretch; gap: .6rem; }
  .filters__row--main .sort select { width: 100%; }
}

/* ---------- v7: no celular as categorias quebram linha (nenhuma fica cortada) ---------- */
@media (max-width: 640px) {
  #catChips { flex-wrap: wrap; overflow: visible; gap: .45rem; }
  #catChips .chip { min-height: 36px; padding: 0 .95rem; font-size: .9rem; }
}

/* ---------- v8: aviso "na sacola" compacto ---------- */
.toast-store { width: max-content; max-width: min(520px, calc(100% - 1.6rem)); gap: .7rem; }
.toast-store__ico {
  flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%;
  background: var(--gold-soft); color: var(--velvet); font-size: .75rem; font-weight: 600;
}
.toast-store__txt { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast-store__txt strong { font-weight: 500; }
@media (max-width: 760px) {
  /* no celular: uma linha logo abaixo do topo, sem tampar as pecas; a barra de baixo ja tem "Ver sacola" */
  .toast-store, .has-bag .toast-store {
    top: calc(env(safe-area-inset-top) + 76px); bottom: auto;
    left: .8rem; right: .8rem; transform: none; width: auto; max-width: none;
    padding: .55rem .9rem; border-radius: 12px; font-size: .86rem;
    box-shadow: 0 8px 24px rgba(51, 35, 42, .22);
    animation: toastdown .22s ease-out;
  }
  .toast-store button { display: none; }
}
@keyframes toastdown { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .toast-store { animation: none; } }

/* ---------- v9: contato obrigatório na sacola ---------- */
.bag-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .6rem; align-items: end; }
.bag-contact .bag-name { min-width: 0; }
.bag-contact input { width: 100%; min-width: 0; }
@media (max-width: 380px) { .bag-contact { grid-template-columns: 1fr; } }
.bag-name input.is-invalid { border-color: #b8323f; background: #fbeff0; }
.bag-hint { margin: -.3rem 0 0; font-size: .76rem; color: var(--muted); }
.bag-warn { color: #9b2c3a; }

/* ---------- v10: confirmação depois de enviar o pedido ---------- */
.bag-done { display: grid; justify-items: center; gap: .8rem; padding: 2.2rem .4rem 1rem; text-align: center; }
.bag-done[hidden] { display: none; }
.bag-done__ico {
  width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%;
  background: var(--gold-soft); color: var(--velvet); font-size: 1.8rem; font-weight: 600;
  box-shadow: 0 0 0 8px rgba(200, 171, 122, .2);
  animation: donepop .35s ease-out;
}
@keyframes donepop { from { transform: scale(.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bag-done__ico { animation: none; } }
.bag-done__title { margin: .4rem 0 0; font: 1.45rem/1.25 var(--serif); color: var(--velvet); max-width: 22ch; }
.bag-done__no { margin: 0; padding: .3rem .9rem; border-radius: 999px; background: var(--velvet); color: var(--pearl); font-weight: 500; letter-spacing: .02em; }
.bag-done__text { margin: .2rem 0 0; color: var(--ink); max-width: 34ch; line-height: 1.55; }
.bag-done__sum { margin: 0; font-size: .9rem; color: var(--muted); }
.bag-done .btn { width: 100%; margin-top: .4rem; }
.bag-done__close { margin-top: 0 !important; }
.bag-done__note { margin: -.4rem 0 0; font-size: .8rem; color: var(--muted); max-width: 32ch; }
