/* ===== Tule Semijoias e Pratas ===== */
:root {
  --rose: #C1837A;
  --rose-dark: #A4685F;
  --rose-light: #F3E4E0;
  --beige: #E4DED5;
  --cream: #F8F4EF;
  --sage: #8C9C88;
  --ink: #4A3D39;
  --muted: #8A7D78;
  --white: #fff;
  --line: #E9E2DA;
  --whats: #25D366;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Josefin Sans", "Segoe UI", sans-serif;
  --script: "Pinyon Script", cursive;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(74, 61, 57, .10);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* ---------- Topbar & header ---------- */
.topbar {
  background: var(--rose);
  color: var(--white);
  text-align: center;
  font-size: .78rem;
  letter-spacing: .08em;
  padding: 9px 16px 7px;
}
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
}
.logo img { height: 46px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 0; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--rose); transform: scaleX(0); transition: transform .25s;
}
.nav a:hover::after, .nav a.ativo::after { transform: scaleX(1); }
.header__actions { display: flex; gap: 6px; }

.icon-btn {
  width: 42px; height: 42px; border: 0; background: none; border-radius: 50%;
  display: inline-grid; place-items: center; position: relative;
  transition: background .2s;
}
.icon-btn:hover { background: var(--rose-light); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.menu-toggle { display: none; }
.cart-count {
  position: absolute; top: 3px; right: 1px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--rose); color: var(--white);
  font-size: .68rem; font-weight: 600; line-height: 19px; text-align: center;
  transition: transform .25s;
}
.cart-count.pulse { transform: scale(1.35); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px 12px; border-radius: 999px; border: 1px solid transparent;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 400;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--rose); color: var(--white); }
.btn--primary:hover { background: var(--rose-dark); }
.btn--ghost { border-color: var(--rose); color: var(--rose-dark); background: transparent; }
.btn--ghost:hover { background: var(--rose); color: var(--white); }
.btn--whats { background: var(--whats); color: var(--white); }
.btn--whats:hover { background: #1fb457; }
.btn--whats svg { width: 18px; height: 18px; }
.btn--block { width: 100%; }
.btn--grow { flex: 1; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--beige);
  padding: clamp(80px, 12vw, 150px) 0;
  text-align: center;
}
.hero__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__lines path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.hero__inner { position: relative; }
.hero__script { font-family: var(--script); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--rose); margin: 0 0 4px; }
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); color: var(--ink); font-weight: 400; }
.hero__text { max-width: 520px; margin: 22px auto 34px; color: var(--muted); font-size: 1.05rem; }
.hero__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: clamp(60px, 8vw, 96px) 0; }
.section.container { padding-inline: 0; }
.section--cream { background: var(--cream); }
.section--beige { background: var(--beige); }
.section__head { text-align: center; margin-bottom: 40px; }
.section__head h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.eyebrow {
  display: block; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--rose); margin-bottom: 8px;
}

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 3 / 4; background: var(--beige); border: 0; padding: 0; text-align: left;
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.cat-card:hover img { transform: scale(1.06); }
.cat-card span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 18px;
  background: linear-gradient(transparent, rgba(74,61,57,.55));
  color: var(--white); font-family: var(--serif); font-size: 1.6rem;
}

/* ---------- Filters ---------- */
.filtros { display: grid; gap: 18px; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  border: 1px solid var(--line); background: var(--white); border-radius: 999px;
  padding: 9px 20px 7px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  transition: all .2s;
}
.chip:hover { border-color: var(--rose); }
.chip[aria-selected="true"] { background: var(--rose); border-color: var(--rose); color: var(--white); }
.filtros__linha { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.campo-busca {
  display: flex; align-items: center; gap: 8px; flex: 1 1 260px; max-width: 380px;
  border: 1px solid var(--line); border-radius: 999px; padding: 0 16px;
}
.campo-busca:focus-within { border-color: var(--rose); }
.campo-busca svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.6; }
.campo-busca input { border: 0; outline: 0; padding: 12px 0 10px; width: 100%; font: inherit; background: none; }
.filtros select, .checkout select {
  border: 1px solid var(--line); border-radius: 999px; padding: 11px 38px 10px 18px;
  font: inherit; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23C1837A' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center / 14px;
  appearance: none; color: var(--ink);
}
.resultado { text-align: center; color: var(--muted); font-size: .85rem; margin: 0 0 28px; }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 22px; }
.card { display: flex; flex-direction: column; }
.card__img {
  position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
  background: var(--beige); border: 0; padding: 0;
}
.card__img-btn { display: block; width: 100%; height: 100%; border: 0; padding: 0; background: none; }
.card__img-btn:focus-visible { outline: 2px solid var(--rose); outline-offset: -4px; border-radius: var(--radius); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card__img img { transform: scale(1.05); }
.card__tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.tag {
  background: var(--white); color: var(--rose-dark); border-radius: 999px;
  font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px 3px;
}
.tag--promo { background: var(--rose); color: var(--white); }
.tag--esgotado { background: var(--ink); color: var(--white); }
.card__add {
  position: absolute; right: 12px; bottom: 12px;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--white); color: var(--rose-dark); box-shadow: var(--shadow);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(8px); transition: all .25s;
}
.card:hover .card__add, .card__add:focus-visible { opacity: 1; transform: none; }
.card__add:hover { background: var(--rose); color: var(--white); }
.card__add svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.card__body { padding: 14px 4px 0; text-align: center; }
.card__material { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage); }
.card__nome { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; margin: 4px 0; background: none; border: 0; padding: 0; }
.card__nome:hover { color: var(--rose-dark); }
.preco { margin: 0; font-weight: 400; color: var(--ink); }
.preco s { color: var(--muted); font-size: .85em; margin-right: 6px; }
.card--esgotado .card__img img { filter: grayscale(.6) opacity(.7); }
.vazio { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- Steps ---------- */
.passos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.passos li { background: var(--white); border-radius: var(--radius); padding: 34px 28px; text-align: center; }
.passo__num {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--rose); color: var(--rose); font-family: var(--serif); font-size: 1.4rem; margin-bottom: 14px;
}
.passos h3 { font-size: 1.5rem; margin-bottom: 8px; }
.passos p { margin: 0; color: var(--muted); }

/* ---------- Instagram band ---------- */
.insta { padding: clamp(60px, 8vw, 90px) 0; text-align: center; background: var(--white); }
.insta h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 26px; }

/* ---------- Footer ---------- */
.footer { background: var(--cream); border-top: 1px solid var(--line); padding: 50px 0 30px; text-align: center; }
.footer__logo { height: 60px; width: auto; margin: 0 auto 22px; }
.footer__links { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-bottom: 22px; }
.footer__links a { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.footer__links a:hover { color: var(--rose); }
.footer__copy { font-size: .78rem; color: var(--muted); margin: 0; }

/* ---------- WhatsApp float ---------- */
.whats-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; background: var(--whats); color: var(--white);
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.4);
  transition: transform .2s;
}
.whats-float:hover { transform: scale(1.08); }
.whats-float svg { width: 30px; height: 30px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(74,61,57,.45); animation: fade .25s; }
.modal__box {
  position: relative; background: var(--white); border-radius: 20px; overflow: hidden;
  width: min(900px, 100%); max-height: calc(100vh - 40px); overflow-y: auto;
  display: grid; grid-template-columns: 1fr 1fr; animation: sobe .3s;
}
.modal__fechar { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(255,255,255,.85); }
.modal__img { background: var(--beige); aspect-ratio: 1; position: relative; }
.modal__thumbs { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 8px; }
.modal__thumbs button {
  width: 56px; height: 56px; padding: 0; border-radius: 10px; overflow: hidden;
  border: 2px solid rgba(255,255,255,.7); background: var(--beige); box-shadow: var(--shadow);
}
.modal__thumbs button[aria-current="true"] { border-color: var(--rose); }
.consulta { font-size: .85em; letter-spacing: .06em; color: var(--rose-dark); }
.modal__img img { width: 100%; height: 100%; object-fit: cover; }
.modal__info { padding: 44px 36px 32px; display: flex; flex-direction: column; }
.modal__info h3 { font-size: 2.1rem; }
.modal__material { color: var(--sage); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin: 8px 0 14px; }
.modal__info .preco { font-size: 1.4rem; }
.modal__desc { color: var(--muted); margin: 16px 0 26px; }
.modal__acoes { display: flex; gap: 12px; margin-top: auto; }
.modal__nota { font-size: .82rem; color: var(--rose-dark); margin: 16px 0 0; }
.qtd { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qtd button { width: 40px; height: 44px; border: 0; background: none; font-size: 1.2rem; }
.qtd button:hover { color: var(--rose); }
.qtd span { min-width: 24px; text-align: center; }
.qtd--sm button { width: 30px; height: 32px; font-size: 1rem; }

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(74,61,57,.4); opacity: 0; transition: opacity .3s; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: var(--white); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.drawer.aberto { pointer-events: auto; }
.drawer.aberto .drawer__overlay { opacity: 1; }
.drawer.aberto .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 1.7rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 10px 22px; }
.drawer__foot { border-top: 1px solid var(--line); padding: 18px 22px 22px; display: grid; gap: 10px; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; }
.total strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.total__nota { margin: -6px 0 4px; font-size: .78rem; color: var(--muted); }

.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--beige); }
.cart-item__nome { font-family: var(--serif); font-size: 1.1rem; font-weight: 500; line-height: 1.2; }
.cart-item__mat { font-size: .7rem; color: var(--sage); letter-spacing: .1em; text-transform: uppercase; }
.cart-item__lado { display: grid; justify-items: end; gap: 6px; }
.cart-item__preco { font-weight: 400; }
.cart-item__remover { border: 0; background: none; font-size: .72rem; color: var(--muted); text-decoration: underline; padding: 0; }
.cart-item__remover:hover { color: var(--rose-dark); }
.cart-item .qtd { margin-top: 6px; width: max-content; }
.cart-vazio { text-align: center; padding: 60px 0; color: var(--muted); }
.cart-vazio[hidden] { display: none; }

.checkout { display: grid; gap: 16px; align-content: start; padding-top: 18px; padding-bottom: 18px; }
.checkout[hidden] { display: none; }
.checkout label { display: grid; gap: 6px; font-size: .82rem; letter-spacing: .04em; }
.checkout input[type=text], .checkout textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 10px; font: inherit; color: var(--ink); resize: vertical;
}
.checkout select { border-radius: 10px; }
.checkout input:focus, .checkout textarea:focus, .checkout select:focus, .filtros select:focus { outline: 2px solid var(--rose-light); border-color: var(--rose); }
.checkout fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.checkout legend { font-size: .82rem; margin-bottom: 6px; }
.checkout .radio { display: flex; align-items: center; gap: 10px; font-size: .92rem; }
.checkout .radio input { accent-color: var(--rose); width: 17px; height: 17px; }
.checkout .invalido { border-color: #c0392b !important; }
.link-voltar { border: 0; background: none; padding: 0; text-align: left; color: var(--rose-dark); font-size: .85rem; }
.erro { color: #c0392b; font-size: .82rem; margin: 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--white); padding: 13px 22px 11px; border-radius: 999px;
  font-size: .88rem; transition: all .3s; max-width: calc(100% - 40px); text-align: center;
}
.toast.visivel { opacity: 1; transform: translate(-50%, 0); }

@keyframes fade { from { opacity: 0; } }
@keyframes sobe { from { opacity: 0; transform: translateY(24px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { gap: 12px; }
  .cat-card span { font-size: 1.3rem; padding: 30px 14px 12px; }
}
@media (max-width: 820px) {
  .menu-toggle { display: inline-grid; }
  .header__inner { gap: 8px; }
  .logo { margin-inline: auto; }
  .logo img { height: 38px; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; background: var(--white); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .nav.aberto { max-height: 420px; }
  .nav a { padding: 15px 20px; border-top: 1px solid var(--line); }
  .nav a::after { display: none; }
  #linkInstaHeader { display: none; }
  .header__actions { min-width: 42px; justify-content: flex-end; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .passos { grid-template-columns: 1fr; }
  .modal__box { grid-template-columns: 1fr; }
  .modal__info { padding: 26px 22px 24px; }
  .card__add { opacity: 1; transform: none; width: 38px; height: 38px; }
  .card__nome { font-size: 1.1rem; }
}
@media (max-width: 420px) {
  .filtros select { flex: 1 1 45%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
