/* C&C Joias — vitrine */

:root {
  --navy: #1B2348;
  --navy-deep: #141A38;
  --magenta: #A51C68;
  --magenta-deep: #86134F;
  --accent: var(--magenta);
  --cream: #F7F4EE;
  --paper: #FBF9F5;
  --sand: #ECE6DA;
  --line: #E2DCD0;
  --ink: #252525;
  --muted: #5F5A52;
  --on-navy: #F7F4EE;
  --on-navy-muted: #BEC2DA;
  --gold: #E4D6BC;
  --ok: #2F6B4F;

  --serif: 'Bodoni Moda', 'Didot', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --section: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--navy); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
ul { list-style: none; margin: 0; padding: 0; }
[hidden] { display: none !important; }

::selection { background: var(--navy); color: var(--on-navy); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
html { scrollbar-color: #B8B0A2 var(--cream); }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: var(--on-navy); padding: 10px 16px; }
.skip:focus { top: 12px; }

/* ---- botões ---------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 0;
  font-weight: 600; font-size: 14px; letter-spacing: .04em; text-decoration: none;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-light { background: var(--on-navy); color: var(--navy); }
.btn-light:hover { background: #fff; color: var(--navy); }
.btn-ghost-light { border-color: rgba(247, 244, 238, .55); color: var(--on-navy); }
.btn-ghost-light:hover { background: rgba(247, 244, 238, .1); color: var(--on-navy); }
.btn-dark { background: var(--navy); color: var(--on-navy); }
.btn-dark:hover { background: var(--navy-deep); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 82%, #000); color: #fff; }
.btn-line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-line:hover { background: var(--navy); color: var(--on-navy); }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--sand); color: var(--muted); border-color: var(--sand); cursor: not-allowed; }
.btn-block { width: 100%; }

.linkish { border: 0; background: none; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: .2em; font-weight: 600; }

.icon-btn {
  display: inline-grid; place-items: center; position: relative;
  width: 44px; height: 44px; border: 0; background: none; color: var(--navy);
}
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { color: var(--accent); }

.round-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid rgba(247, 244, 238, .4); border-radius: 50%; background: none; color: var(--on-navy);
  transition: border-color .2s, background-color .2s;
}
.round-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.round-btn:hover { border-color: var(--on-navy); background: rgba(247, 244, 238, .08); }

/* ---- topo ------------------------------------------------------------ */

.storebar {
  display: flex; justify-content: center; align-items: center; gap: 4px 14px; flex-wrap: wrap;
  min-height: 36px; padding: 4px var(--gutter);
  background: var(--navy-deep); color: var(--on-navy); font-size: 13px;
}
.storebar strong { font-weight: 700; }
.storebar .linkish { min-height: 32px; color: var(--gold); }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 244, 238, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(8px);
}
.header-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; min-height: 76px; }
.logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--navy); line-height: 1; }
.logo:hover { color: var(--navy); }
.logo-mark { font-family: var(--serif); font-size: 30px; letter-spacing: .04em; }
.logo-sub { font-size: 9px; font-weight: 600; letter-spacing: .5em; text-transform: uppercase; margin-top: 4px; padding-left: .5em; }
.logo-light, .logo-light:hover { color: var(--on-navy); }

.header-nav { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.header-nav a { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink); padding: 8px 0; border-bottom: 1px solid transparent; }
.header-nav a:hover, .header-nav a[aria-current="true"] { color: var(--navy); border-bottom-color: var(--navy); }
.header-actions { display: flex; gap: 2px; }

.bag-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums;
}
.bag-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.35); } }

@media (max-width: 899px) {
  .header-row { grid-template-columns: 1fr auto; min-height: 64px; }
  .header-nav { display: none; }
  .logo { align-items: flex-start; }
  .logo-mark { font-size: 24px; }
  .logo-sub { font-size: 8px; padding-left: 0; }
}

/* ---- hero ------------------------------------------------------------ */

.hero {
  background: linear-gradient(165deg, #1E2550 0%, #262656 46%, #5E2766 80%, #8E1E62 100%);
  color: var(--on-navy);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(40px, 6vw, 88px); }
.hero-copy h1 { font-size: clamp(2.75rem, 5.6vw, 5.25rem); line-height: 1; max-width: 11ch; }
.hero-copy p { margin-top: 24px; max-width: 34ch; font-size: clamp(16px, 1.4vw, 19px); color: var(--on-navy-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-media { position: relative; }
.hero-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  aspect-ratio: 4 / 5; width: 100%;
  /* cabe na primeira tela junto com topo, barra da loja e controles */
  max-height: max(420px, min(calc(100svh - 300px), 720px));
}
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide { margin: 0; position: relative; scroll-snap-align: start; overflow: hidden; background: rgba(0, 0, 0, .15); }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide figcaption { position: absolute; inset: auto 0 0 0; padding: 48px 20px 18px; background: linear-gradient(transparent, rgba(20, 26, 56, .72)); }
.hero-slide figcaption a { color: var(--on-navy); font-size: 14px; font-weight: 500; text-decoration: none; }
.hero-slide figcaption a::after { content: ' →'; }
.hero-slide figcaption a:hover { text-decoration: underline; }
.hero-controls { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.hero-count { margin-right: auto; font-size: 13px; letter-spacing: .08em; color: var(--on-navy-muted); font-variant-numeric: tabular-nums; }

@media (min-width: 900px) {
  .hero-media { justify-self: end; width: min(100%, 560px); }
}
@media (max-width: 899px) {
  .hero-grid { grid-template-columns: 1fr; padding-block: 0 48px; gap: 28px; }
  .hero-media { order: -1; margin-inline: calc(var(--gutter) * -1); }
  .hero-track { max-height: 54svh; }
  .hero-controls { padding-inline: var(--gutter); margin-top: 12px; }
  .round-btn { width: 40px; height: 40px; }
  .hero-copy h1 { font-size: clamp(2.5rem, 11vw, 3.5rem); }
}

.promise {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 40px;
  padding-block: 20px; border-bottom: 1px solid var(--line);
  font-size: 13px; font-weight: 500; color: var(--muted); text-align: center;
}
.promise li { display: flex; align-items: center; gap: 10px; }
.promise li::before { content: ''; width: 5px; height: 5px; background: var(--accent); transform: rotate(45deg); flex: none; }

/* ---- seções ---------------------------------------------------------- */

.section { padding-top: var(--section); }
.section-head { text-align: center; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); color: var(--navy); }
.section-head p { margin-top: 12px; color: var(--muted); }

/* ---- grid de produtos ------------------------------------------------ */

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 20px; }
@media (max-width: 1099px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 719px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
  .grid-row {
    grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 62%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .grid-row::-webkit-scrollbar { display: none; }
  .grid-row > li { scroll-snap-align: start; }
}

.card { position: relative; min-width: 0; }
.card a.card-link { display: block; text-decoration: none; color: inherit; }
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-media .alt-img { clip-path: inset(100% 0 0 0); transition: clip-path .7s var(--ease); }
@media (hover: hover) {
  .card:hover .alt-img.ready { clip-path: inset(0 0 0 0); }
  .card:hover .card-name { text-decoration: underline; text-underline-offset: .2em; }
}
.card-tag {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  padding: 4px 9px; background: var(--cream); color: var(--navy);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.card.is-out .card-media img { opacity: .55; filter: grayscale(.35); }
.card.is-out .card-tag { background: var(--navy); color: var(--on-navy); }
.card-body { padding-top: 14px; display: grid; gap: 3px; }
.card-brand { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.card-name { font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--ink); }
.card-price { margin-top: 4px; font-size: 15px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }

.skeleton { aspect-ratio: 4 / 6.2; background: linear-gradient(100deg, var(--sand) 40%, #F2EDE4 50%, var(--sand) 60%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* ---- filtros --------------------------------------------------------- */

.chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  min-height: 40px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; font-size: 14px; font-weight: 500; color: var(--ink);
  transition: border-color .2s, background-color .2s, color .2s;
}
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
@media (max-width: 719px) {
  .chips {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}

.toolbar {
  display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap;
  padding-block: 14px; border-block: 1px solid var(--line); margin-bottom: 12px;
}
.search { position: relative; flex: 1 1 260px; display: flex; align-items: center; }
.search svg { position: absolute; left: 0; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; }
.search input {
  width: 100%; min-height: 44px; padding: 0 0 0 30px; border: 0; background: none; outline: none; font-size: 15px;
}
.search input::placeholder { color: var(--muted); }
.search:focus-within svg { stroke: var(--navy); }
.search:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--navy); }
.sort { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.sort select {
  min-height: 44px; padding: 0 30px 0 2px; border: 0; background: transparent; color: var(--ink); font-weight: 600;
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5 6 8.5l4-4' fill='none' stroke='%231B2348' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
}
.result-count { font-size: 13px; color: var(--muted); margin-bottom: 24px; min-height: 1.6em; }

.empty { text-align: center; padding: 64px 0; display: grid; justify-items: center; gap: 20px; color: var(--muted); }

/* ---- paginação ------------------------------------------------------- */

.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: clamp(48px, 6vw, 72px); flex-wrap: wrap; }
.pager a, .pager span {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 6px;
  font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink); font-variant-numeric: tabular-nums;
  border-bottom: 2px solid transparent;
}
.pager a:hover { color: var(--accent); }
.pager a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--navy); }
.pager .pager-step { gap: 8px; display: inline-flex; align-items: center; padding: 0 14px; font-weight: 500; }
.pager .pager-step svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.pager [aria-disabled="true"] { color: #B8B0A2; pointer-events: none; }
.pager .gap { color: var(--muted); }

/* ---- editorial ------------------------------------------------------- */

.editorial { margin-top: var(--section); background: var(--sand); }
.editorial-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 96px); padding-inline: 0; }
.editorial img { width: 100%; aspect-ratio: 4 / 5; max-height: 820px; object-fit: cover; object-position: 50% 40%; }
.editorial-copy { padding: 48px var(--gutter); max-width: 520px; }
.editorial-copy h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); color: var(--navy); }
.editorial-copy p { margin: 20px 0 32px; color: var(--muted); font-size: 17px; }
@media (max-width: 899px) {
  .editorial-grid { grid-template-columns: 1fr; gap: 0; }
  .editorial-copy { padding-block: 40px 56px; }
}

/* ---- produto --------------------------------------------------------- */

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 20px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--navy); }
.crumbs span[aria-hidden] { color: #B8B0A2; }

.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.gallery { display: grid; gap: 12px; }
.gallery-main { position: relative; aspect-ratio: 4 / 5; background: var(--sand); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s var(--ease); }
.gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.gallery-thumbs button { width: 72px; aspect-ratio: 4 / 5; padding: 0; border: 1px solid transparent; background: var(--sand); }
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }

.info { position: sticky; top: 108px; display: grid; gap: 22px; padding-bottom: 24px; }
.info-brand { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.info h1 { font-size: clamp(2rem, 3.4vw, 3rem); color: var(--navy); margin-top: 6px; }
.info-price { font-size: 26px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.info-desc { color: #3F3B36; max-width: 60ch; }
.info-sku { font-size: 12px; color: var(--muted); }
.variants { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.variants legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 10px; }
.variants-list { display: flex; flex-wrap: wrap; gap: 8px; }
.variant { position: relative; }
.variant input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.variant span { display: inline-grid; place-items: center; min-width: 52px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); font-size: 14px; }
.variant input:checked + span { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); font-weight: 600; }
.variant input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.variant.is-out span { color: var(--muted); text-decoration: line-through; }

.avail { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.avail::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.avail.is-out::before { background: #B8B0A2; }
.avail-other { font-size: 14px; color: var(--muted); margin-top: -12px; }
.buy { display: grid; gap: 10px; }

@media (max-width: 899px) {
  .product { grid-template-columns: 1fr; }
  .gallery { margin-inline: calc(var(--gutter) * -1); }
  .gallery-thumbs { padding-inline: var(--gutter); }
  .info { position: static; }
}

/* ---- atendimento ----------------------------------------------------- */

.contact { margin-top: var(--section); background: var(--navy); color: var(--on-navy); padding-block: clamp(64px, 8vw, 112px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); max-width: 14ch; }
.contact-grid > div > p { margin: 20px 0 32px; color: var(--on-navy-muted); max-width: 44ch; font-size: 17px; }
.stores { display: grid; gap: 0; }
.stores li { padding-block: 24px; border-top: 1px solid rgba(247, 244, 238, .18); display: grid; gap: 6px; }
.stores li:last-child { border-bottom: 1px solid rgba(247, 244, 238, .18); }
.stores h3 { font-size: 26px; }
.stores p { color: var(--on-navy-muted); font-size: 15px; }
.stores a { color: var(--gold); }
.stores a:hover { color: #fff; }
@media (max-width: 899px) { .contact-grid { grid-template-columns: 1fr; } }

.site-footer { background: var(--navy-deep); color: var(--on-navy-muted); font-size: 14px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 36px; }
.footer-ig { color: var(--gold); }
.footer-ig:hover { color: #fff; }

/* ---- sacola e diálogos ----------------------------------------------- */

dialog { padding: 0; border: 0; color: var(--ink); background: var(--paper); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(20, 26, 56, .45); }

.drawer {
  margin: 0 0 0 auto; height: 100dvh; width: min(440px, 100vw);
  display: flex; flex-direction: column;
  box-shadow: -12px 0 40px rgba(20, 26, 56, .18);
}
.drawer:not([open]) { display: none; }
.drawer[open] { animation: drawer-in .45s var(--ease); }
.drawer[open]::backdrop { animation: fade-in .3s ease-out; }
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes fade-in { from { opacity: 0; } }

.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 14px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 26px; color: var(--navy); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px 24px; display: flex; flex-direction: column; }

.bag-lines { display: grid; }
.bag-line { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.bag-line img { width: 76px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--sand); }
.bag-line-name { font-weight: 600; font-size: 14px; line-height: 1.4; text-decoration: none; color: var(--ink); }
.bag-line-meta { font-size: 13px; color: var(--muted); }
.bag-line-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 8px; }
.bag-line-price { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; font-size: 14px; }
.bag-line-warn { font-size: 13px; color: var(--magenta-deep); font-weight: 600; margin-top: 4px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.stepper button { width: 36px; height: 36px; border: 0; background: none; font-size: 18px; line-height: 1; color: var(--navy); }
.stepper button:disabled { color: #C9C2B5; cursor: not-allowed; }
.stepper output { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 14px; }
.remove { border: 0; background: none; padding: 6px 0; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: .2em; }
.remove:hover { color: var(--ink); }

.bag-total { display: flex; justify-content: space-between; align-items: baseline; padding-block: 20px 6px; font-size: 15px; }
.bag-total strong { font-size: 22px; color: var(--navy); font-variant-numeric: tabular-nums; }
.bag-note { font-size: 13px; color: var(--muted); margin-bottom: 18px; }

/* A mensagem que vai para o WhatsApp, mostrada como ela será enviada. */
.message {
  margin: 4px 0 18px; padding: 14px; background: #E9E3D6;
}
.message-label { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.bubble {
  position: relative; margin-left: 18px; padding: 10px 12px 8px; background: #DCF3D0; color: #1F2A1C;
  border-radius: 10px 0 10px 10px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere;
  box-shadow: 0 1px 1.5px rgba(0, 0, 0, .14);
  max-height: 220px; overflow-y: auto;
}
.bubble::after { content: ''; position: absolute; top: 0; right: -8px; border: 8px solid transparent; border-top-color: #DCF3D0; border-left-color: #DCF3D0; border-width: 8px 4px 4px 4px; }
.bag-empty { flex: 1; display: grid; place-content: center; justify-items: center; text-align: center; gap: 18px; color: var(--muted); padding-block: 48px; }
.bag-empty h3 { font-size: 26px; color: var(--navy); }
.bag-other { font-size: 13px; color: var(--muted); padding-top: 14px; }

.sheet { width: min(520px, calc(100vw - 32px)); margin: auto; box-shadow: 0 20px 60px rgba(20, 26, 56, .25); }
.sheet[open] { animation: rise .35s var(--ease); }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }
.sheet-note { padding: 18px 24px 0; font-size: 14px; color: var(--muted); }
.store-pick { padding: 12px 24px 24px; display: grid; gap: 10px; }
.store-pick button {
  width: 100%; display: grid; gap: 4px; text-align: left; padding: 16px 18px;
  border: 1px solid var(--line); background: var(--cream);
}
.store-pick button:hover { border-color: var(--navy); }
.store-pick button[aria-current="true"] { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.store-pick strong { font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--navy); }
.store-pick span { font-size: 13px; color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; translate: -50% 0;
  max-width: calc(100vw - 32px); padding: 14px 20px;
  background: var(--navy); color: var(--on-navy); font-size: 14px; font-weight: 500;
  box-shadow: 0 10px 30px rgba(20, 26, 56, .3);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.toast.show { opacity: 1; transform: none; pointer-events: auto; }
.toast button { margin-left: 12px; color: var(--gold); }

.not-found { padding-block: 96px; text-align: center; display: grid; gap: 20px; justify-items: center; }
.not-found h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--navy); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
