/* Ateliê das Graças: loja. Azul e branco da logo, fundo marfim do papel da logo. */
@font-face { font-family: "Bochan Serif"; src: local("Bochan Serif"), local("BochanSerif"); font-display: swap; }
:root {
  --navy: #1f3a68; --blue: #2f5597; --sky: #dfe8f5; --mist: #eef3fa;
  --ivory: #f9f6f1; --paper: #fffdf9; --ink: #1b2537; --muted: #66708a; --line: #e4e0d8;
  --serif: "Bochan Serif", "Cormorant Garamond", Georgia, serif;
  --sans: Montserrat, system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --hdr: 68px;
}
* { box-sizing: border-box; }
html { touch-action: manipulation; } /* sem zoom de toque duplo */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; color: var(--navy); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 14px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- Faixa de avisos ---------- */
.announce { background: var(--navy); color: #eaf0fa; font-size: 12px; letter-spacing: .08em; overflow: hidden; white-space: nowrap; }
.announce__track { display: inline-flex; animation: marquee 38s linear infinite; padding: 9px 0; }
.announce__track span { padding-right: 4rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 40; height: var(--hdr); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 0 clamp(16px, 4vw, 48px);
  background: rgba(255, 253, 249, .92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: translate .5s var(--ease), border-color .4s; }
.hdr[data-scrolled="true"] { border-color: var(--line); }
.hdr[data-hidden="true"] { translate: 0 -100%; }
.hdr__nav { display: flex; gap: 26px; font-size: 12.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.hdr__nav a, .hdr__link { position: relative; }
.hdr__nav a::after, .hdr__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; scale: 0 1; transform-origin: right; transition: scale .5s var(--ease); }
.hdr__nav a:hover::after, .hdr__link:hover::after { scale: 1 1; transform-origin: left; }
.hdr__brand { font-family: var(--serif); font-size: 26px; color: var(--navy); text-align: center; line-height: 1; }
.hdr__brand small { display: block; font: 500 9.5px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.hdr__actions { display: flex; justify-content: flex-end; align-items: center; gap: 22px; font-size: 12.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.hdr__bag { position: relative; width: 40px; height: 40px; display: grid; place-items: center; color: var(--navy); }
.hdr__bag svg { width: 24px; }
.hdr__count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; border-radius: 9px; background: var(--navy); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.hdr__count.pop { animation: pop .5s var(--ease); }
@keyframes pop { 40% { scale: 1.45; } }
.hdr__progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--blue); transform-origin: left; scale: var(--progress, 0) 1; }
.hdr__toggle { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 6px; }
.hdr__toggle span { display: block; height: 1.5px; width: 22px; background: var(--navy); }

.menu { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.menu__backdrop { position: absolute; inset: 0; background: rgba(15, 28, 52, .4); opacity: 0; transition: opacity .4s; }
.menu__panel { position: absolute; inset: 0 auto 0 0; width: min(86vw, 360px); background: var(--paper); padding: 72px 28px 28px; display: flex; flex-direction: column; gap: 6px;
  translate: -100% 0; transition: translate .6s var(--ease); }
.menu__panel > a { font-family: var(--serif); font-size: 30px; color: var(--navy); padding: 4px 0; }
.menu__close { position: absolute; top: 14px; right: 16px; font-size: 32px; line-height: 1; color: var(--navy); }
.menu__foot { margin-top: auto; font-size: 13px; color: var(--muted); }
.menu[data-open="true"] { pointer-events: auto; }
.menu[data-open="true"] .menu__backdrop { opacity: 1; }
.menu[data-open="true"] .menu__panel { translate: 0 0; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100svh - var(--hdr) - 34px); background: var(--ivory); display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 16px 80px; text-align: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: radial-gradient(60% 80% at 50% 100%, rgba(47, 85, 151, .10), transparent 70%); }
/* Marca da abertura: figura (PNG transparente em alta) + nome e frase em texto, nítidos em qualquer tela. */
.hero__logo { position: relative; display: flex; flex-direction: column; align-items: center; margin-bottom: 30px; color: var(--navy); }
.hero__heart { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.hero__heart i { width: clamp(64px, 13vw, 160px); height: 1.3px; background: currentColor; opacity: .75; }
.hero__heart svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.hero__logo img { width: clamp(118px, 14vw, 168px); height: auto; }
.hero__logo h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 7.2vw, 92px); line-height: 1; margin-top: 18px; color: var(--navy); }
.hero__logo p { margin: 12px 0 0; font-family: var(--serif); font-size: clamp(15px, 1.8vw, 22px); letter-spacing: .28em; }
.hero__verse { position: relative; margin: 0 auto 28px; max-width: 640px; }
.hero__verse p { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 3vw, 31px); line-height: 1.3; color: var(--navy); margin: 0 0 10px; }
.hero__verse cite { font-style: normal; font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.hero__cta { position: relative; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero__stars, .verse__stars { position: absolute; inset: 0; pointer-events: none; }
.star { position: absolute; width: 10px; height: 10px; color: var(--blue); opacity: 0; animation: twinkle 5s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .55; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 30px; border-radius: 999px; background: var(--navy); color: #fff;
  font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--navy);
  transition: background-color .4s, color .4s, translate .45s var(--ease), box-shadow .45s var(--ease); }
.btn:hover { translate: 0 -3px; box-shadow: 0 14px 28px -16px rgba(31, 58, 104, .7); background: var(--blue); }
.btn:active { scale: .97; }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--block { width: 100%; }

/* ---------- Faixa de vantagens ---------- */
.perks { background: var(--sky); display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 40px clamp(16px, 6vw, 110px); }
.perk { display: flex; align-items: center; gap: 16px; }
.perk i { flex: none; width: 74px; height: 74px; border-radius: 50%; border: 1.3px solid var(--navy); display: grid; place-items: center; transition: background-color .4s, color .4s; color: var(--navy); }
.perk:hover i { background: var(--navy); color: #fff; }
.perk svg { width: 32px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.perk p { margin: 0; font-size: 13.5px; line-height: 1.35; color: var(--navy); }
.perk b { display: block; font-weight: 700; font-size: 14.5px; }

/* ---------- Blocos ---------- */
.block { padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 48px); }
.block--tint { background: var(--ivory); }
.block__title { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
.block__title span { font-size: 11.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--blue); }
.block__title h2 { font-size: clamp(36px, 5vw, 54px); line-height: 1.05; margin-top: 6px; }
.block__title p { margin: 8px 0 0; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 19px; }
.block__title::after { content: ""; display: block; width: 56px; height: 14px; margin: 14px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 14'%3E%3Cpath d='M0 7h20M36 7h20' stroke='%231f3a68' stroke-opacity='.5'/%3E%3Cpath d='M28 12s-5-3-5-6.2A2.5 2.5 0 0 1 28 4.3a2.5 2.5 0 0 1 5 1.5C33 9 28 12 28 12z' fill='none' stroke='%231f3a68' stroke-width='1.2'/%3E%3C/svg%3E") center/contain no-repeat; }

.vazio { grid-column: 1 / -1; margin: 0; padding: 26px 16px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 28px); max-width: 1320px; margin: 0 auto; }

.rail { position: relative; max-width: 1400px; margin: 0 auto; }
.rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 24px) / 4); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
  overscroll-behavior-x: contain; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > * { scroll-snap-align: start; scroll-snap-stop: normal; }
.rail__btn { position: absolute; top: 38%; z-index: 2; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--navy); font-size: 26px; line-height: 1;
  box-shadow: 0 10px 26px -12px rgba(31, 58, 104, .45); transition: scale .3s var(--ease), background-color .3s, color .3s; }
.rail__btn:hover { background: var(--navy); color: #fff; }
.rail__btn[data-dir="-1"] { left: -12px; } .rail__btn[data-dir="1"] { right: -12px; }

/* ---------- Card de produto ---------- */
.card { position: relative; }
.card__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ivory); clip-path: inset(0 round 18px); border-radius: 18px; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__media .b { opacity: 0; transition: opacity .7s ease; }
.card.alt .card__media .b { opacity: 1; }
@media (hover: hover) {
  .card:hover .card__media .b { opacity: 1; }
}
.card__tag { position: absolute; top: 12px; left: 12px; z-index: 2; background: #fff; color: var(--navy); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.card__tag--off { background: var(--navy); color: #fff; }
.card__add { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px; height: 44px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--navy);
  font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: 0; translate: 0 10px; transition: opacity .4s, translate .5s var(--ease), background-color .3s, color .3s; }
.card:hover .card__add, .card__add:focus-visible { opacity: 1; translate: 0 0; }
.card__add:hover { background: var(--navy); color: #fff; }
.card__add:disabled { opacity: .9; background: #eee; color: #888; cursor: not-allowed; }
.card__info { padding: 14px 2px 0; }
.card__info h3 { font-size: 21px; font-weight: 600; line-height: 1.2; color: var(--navy); }
.card__cat { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.price { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.price s { color: var(--muted); font-weight: 400; margin-right: 6px; }
.price small { display: block; font-weight: 500; color: var(--blue); font-size: 12px; }
.esgotado { color: #a33; font-size: 12px; font-weight: 600; }

/* ---------- Coleções ---------- */
.cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1320px; margin: 0 auto; }
.col { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 22px; clip-path: inset(0 round 22px); color: #fff; }
.col img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Escurece só a parte de baixo, onde fica o nome, para ele ler bem sobre qualquer foto. */
.col::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(12, 24, 48, .55) 62%, rgba(12, 24, 48, .9)); }
.col div { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 22px; text-shadow: 0 2px 14px rgba(0, 0, 0, .55); transition: translate .6s var(--ease); }
.col:hover div { translate: 0 -4px; }
.col h3 { color: #fff; font-size: 32px; font-weight: 600; line-height: 1.05; }
.col p { margin: 6px 0 0; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #dfe8f5; }

/* ---------- Versículo ---------- */
.verse { position: relative; overflow: hidden; background: var(--navy); color: #fff; text-align: center; padding: clamp(70px, 10vw, 130px) 16px; }
.verse p { position: relative; max-width: 820px; margin: 0 auto 18px; font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3.6vw, 42px); line-height: 1.25; }
.verse span { position: relative; font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--sky); }
.verse .star { color: #dfe8f5; }

/* ---------- Rodapé ---------- */
.ftr { background: #172c50; color: #c9d4e6; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding: 56px clamp(16px, 4vw, 48px) 28px; font-size: 14px; }
.ftr strong { font-family: var(--serif); font-weight: 500; font-size: 30px; color: #fff; }
.ftr nav { display: flex; flex-direction: column; gap: 8px; }
.ftr nav b { color: #fff; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 4px; }
.ftr nav a { transition: opacity .3s, translate .4s var(--ease); }
.ftr nav a:hover { opacity: .6; translate: 3px 0; }
.ftr__copy { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 20px; margin: 8px 0 0; font-size: 12px; opacity: .75; }
.ftr__copy a { text-decoration: underline; }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .45); transition: translate .45s var(--ease), box-shadow .45s var(--ease); }
.wa-float svg { width: 30px; }
.wa-float:hover { translate: 0 -4px; }

/* ---------- Sacola ---------- */
.drawer { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(15, 28, 52, .45); opacity: 0; transition: opacity .4s; }
.drawer__panel { position: absolute; inset: 0 0 0 auto; width: min(100vw, 430px); background: var(--paper); display: flex; flex-direction: column; overflow-y: auto; translate: 100% 0; transition: translate .6s var(--ease); }
.drawer[data-open="true"] { pointer-events: auto; }
.drawer[data-open="true"] .drawer__backdrop { opacity: 1; }
.drawer[data-open="true"] .drawer__panel { translate: 0 0; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer h3 { font-size: 28px; }
.drawer__close { font-size: 30px; line-height: 1; color: var(--navy); }
.drawer__items { flex: 1 0 auto; padding: 8px 22px; }
.drawer__empty { text-align: center; padding: 60px 10px; color: var(--muted); font-family: var(--serif); font-size: 21px; font-style: italic; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line img { width: 72px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.line h4 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 18px; color: var(--navy); line-height: 1.2; }
.line p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; margin-top: 6px; }
.qty button { width: 28px; height: 28px; color: var(--navy); }
.qty span { min-width: 18px; text-align: center; font-size: 13px; }
.line__rm { font-size: 11px; color: var(--muted); text-decoration: underline; align-self: start; }
.drawer__foot { border-top: 1px solid var(--line); padding: 16px 22px 22px; display: grid; gap: 10px; background: #fff; }
.row { display: flex; justify-content: space-between; font-size: 13.5px; }
.row--total { font-size: 17px; font-weight: 700; color: var(--navy); }
.row--pix { color: var(--blue); }
.coupon { display: flex; gap: 8px; }
.field { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; font: inherit; font-size: 16px; background: var(--paper); }
.field:focus { outline: none; border-color: var(--blue); }
.coupon .btn { height: 44px; padding: 0 18px; }
.msg { font-size: 12px; margin: -4px 0 0; }
.msg--ok { color: #2a7a4a; } .msg--err { color: #b03a3a; }
.pixnote { display: flex; gap: 10px; align-items: center; background: var(--mist); color: var(--navy); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; }
.pixnote b { font-weight: 700; }
.ship { height: 6px; background: var(--mist); border-radius: 3px; overflow: hidden; }
.ship i { display: block; height: 100%; background: var(--blue); transition: width .6s var(--ease); }

/* ---------- Visualização rápida ---------- */
.qv { width: min(940px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 22px; background: var(--paper); overflow: auto; }
.qv::backdrop { background: rgba(15, 28, 52, .5); }
.qv[open] { animation: qvIn .6s var(--ease); }
@keyframes qvIn { from { opacity: 0; translate: 0 24px; } }
.qv__wrap { display: grid; grid-template-columns: 1.1fr 1fr; }
.qv__gal { position: relative; aspect-ratio: 4 / 5; background: var(--ivory); }
.qv__gal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s; }
.qv__thumbs { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 8px; z-index: 2; }
.qv__thumbs button { width: 54px; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; }
.qv__thumbs button[aria-current="true"] { border-color: #fff; }
.qv__thumbs img { position: static; }
.qv__body { padding: 40px 34px; display: flex; flex-direction: column; gap: 14px; }
.qv__body h2 { font-size: 36px; line-height: 1.1; }
.qv__body .price { font-size: 20px; }
.qv__body p { margin: 0; color: var(--muted); }
.qv__close { position: absolute; top: 10px; right: 14px; z-index: 3; font-size: 30px; color: var(--navy); }

.toast { position: fixed; left: 50%; bottom: 26px; z-index: 90; width: max-content; max-width: calc(100vw - 32px); text-align: center; translate: -50% 20px; opacity: 0; background: var(--navy); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 13.5px;
  transition: opacity .4s, translate .5s var(--ease); pointer-events: none; }
.toast.on { opacity: 1; translate: -50% 0; }

/* ---------- Entradas (só com JS ativo) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.motion .rv:not(.in) { opacity: 0; translate: 0 28px; }
  html.motion .rv { transition: opacity .9s ease var(--d, 0s), translate 1.1s var(--ease) var(--d, 0s); }
  html.motion :is(.card__media, .col) img { transition: translate 1.4s var(--ease) var(--d, 0s), opacity .7s ease; }
  html.motion :is(.card__media, .col):not(.in) img { translate: 0 100%; }
  html.motion .hero__logo { animation: logoIn 2.2s var(--ease) both; }
  @keyframes logoIn { from { opacity: 0; filter: blur(6px); } }
  html.carregando .hero__logo, html.carregando .star { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .announce__track, .star { animation: none; } }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .hdr__nav, .hdr__link { display: none; }
  .hdr__toggle { display: flex; }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .grid, .cols { grid-template-columns: repeat(3, 1fr); }
  .rail__track { grid-auto-columns: calc((100% - 2 * 24px) / 3); }
}
@media (max-width: 720px) {
  .hdr__brand { font-size: 21px; }
  .perks { gap: 18px 12px; padding: 28px 16px; }
  .perk { flex-direction: column; text-align: center; gap: 10px; }
  .perk i { width: 58px; height: 58px; }
  .perk svg { width: 26px; }
  .grid, .cols { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .rail__track { grid-auto-columns: 68%; gap: 12px; }
  .rail__btn { display: none; }
  .card__add { opacity: 1; translate: 0 0; height: 34px; font-size: 9.5px; letter-spacing: .05em; white-space: nowrap; left: 8px; right: 8px; bottom: 8px; }
  .card__info h3 { font-size: 18px; }
  .col h3 { font-size: 23px; } .col p { display: none; }
  .col div { left: 14px; right: 14px; bottom: 14px; }
  .card__media { border-radius: 16px; clip-path: inset(0 round 16px); }
  .qv__wrap { grid-template-columns: 1fr; }
  .qv__body { padding: 24px 20px; }
  .ftr { grid-template-columns: 1fr; }
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}
