/* ============================================================
   O COVIL DA MEDUSA — design system
   ============================================================ */

:root {
  --bg:          #0a0908;
  --bg-2:        #100e0d;
  --surface:     #16130f;
  --surface-2:   #1d1915;
  --line:        rgba(201, 162, 74, .16);
  --line-strong: rgba(201, 162, 74, .34);

  --gold:        #c9a24a;
  --gold-bright: #e8c874;
  --gold-deep:   #8a6d24;
  --bone:        #ded7c7;
  --text:        #cec7b8;
  --muted:       #8a8175;
  --danger:      #c0524a;
  --success:     #6f9d5e;

  --ff-display: "Cinzel", "Times New Roman", serif;
  --ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1280px;
  --r: 4px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .9);
  --t: .22s cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  color: var(--bone);
  letter-spacing: .02em;
  line-height: 1.2;
  margin: 0;
}

::selection { background: var(--gold); color: #0a0908; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.section { padding: 84px 0; }
.section--tight { padding: 52px 0; }

.eyebrow {
  font-family: var(--ff-display);
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 40px); }
.section-head p { color: var(--muted); margin: 14px 0 0; }

.rule {
  width: 130px; height: 1px; margin: 22px auto 0;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  position: relative;
}
.rule::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 5px; height: 5px; background: var(--gold);
  transform: rotate(45deg);
}

/* ---------- topbar ---------- */
.topbar {
  background: linear-gradient(90deg, #0d0b09, #1a1510, #0d0b09);
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.topbar .wrap { display: flex; justify-content: center; gap: 28px; padding: 9px 0; flex-wrap: wrap; }
.topbar b { color: var(--gold); font-weight: 500; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10, 9, 8, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__in {
  display: flex; align-items: center; gap: 28px;
  padding: 12px 0; min-height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 48px; height: 48px; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand__txt strong {
  font-family: var(--ff-display); font-size: 16px; font-weight: 700;
  letter-spacing: .16em; color: var(--bone); text-transform: uppercase;
}
.brand__txt span { font-size: 9.5px; letter-spacing: .3em; color: var(--gold); text-transform: uppercase; }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text); padding: 6px 0; position: relative; transition: color var(--t);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width var(--t);
}
.nav a:hover, .nav a.is-active { color: var(--gold-bright); }
.nav a:hover::after, .nav a.is-active::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  background: none; border: 1px solid transparent; width: 42px; height: 42px;
  display: grid; place-items: center; border-radius: var(--r);
  color: var(--text); transition: var(--t); position: relative;
}
.icon-btn:hover { color: var(--gold-bright); border-color: var(--line-strong); background: var(--surface); }
.icon-btn svg { width: 20px; height: 20px; }

.cart-count {
  position: absolute; top: 4px; right: 4px;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--gold); color: #0a0908;
  font-size: 10px; font-weight: 700; border-radius: 9px;
  display: grid; place-items: center; line-height: 1;
}
.cart-count[hidden] { display: none; }

.burger { display: none; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 30px; border: 1px solid var(--gold); border-radius: var(--r);
  background: transparent; color: var(--gold-bright);
  font-family: var(--ff-display); font-size: 12.5px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  transition: var(--t); position: relative; overflow: hidden;
}
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  transform: translateY(101%); transition: transform var(--t); z-index: -1;
}
.btn:hover { color: #0a0908; border-color: var(--gold-bright); }
.btn:hover::before { transform: translateY(0); }
.btn > * { position: relative; z-index: 1; }

.btn--solid { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #0a0908; }
.btn--solid::before { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); }
.btn--solid:hover { color: #0a0908; }

.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { color: var(--gold-bright); border-color: var(--gold); }
.btn--ghost::before { display: none; }

.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: 11px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: min(88vh, 740px); display: grid; place-items: center;
  text-align: center; overflow: hidden; padding: 76px 0;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(201, 162, 74, .12), transparent 70%),
    radial-gradient(ellipse 120% 80% at 50% 100%, rgba(0, 0, 0, .9), transparent),
    var(--bg);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(201, 162, 74, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 74, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 45%, #000, transparent 75%);
}
.hero__in { position: relative; z-index: 2; }
.hero__logo {
  width: min(215px, 45vw); margin: 0 auto 26px;
  filter: drop-shadow(0 0 60px rgba(201, 162, 74, .3));
  animation: rise .9s ease both;
}
.hero h1 {
  font-size: clamp(34px, 7vw, 76px); letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 8px;
  background: linear-gradient(180deg, #f3e6c4 10%, var(--gold) 55%, #7c6122 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise .9s .08s ease both;
}
.hero__sub {
  font-family: var(--ff-display); font-size: clamp(11px, 1.6vw, 14px);
  letter-spacing: .42em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 26px; animation: rise .9s .16s ease both;
}
.hero p.lede {
  max-width: 620px; margin: 0 auto 40px; color: var(--muted); font-size: 16px;
  animation: rise .9s .24s ease both;
}
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; animation: rise .9s .32s ease both; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- selos ---------- */
.trust { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.trust__item {
  background: var(--bg-2); padding: 26px 22px; display: flex; gap: 14px; align-items: center;
}
.trust__item svg { width: 26px; height: 26px; color: var(--gold); flex-shrink: 0; }
.trust__item strong {
  display: block; font-family: var(--ff-display); font-size: 12.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--bone);
}
.trust__item span { font-size: 12px; color: var(--muted); }

/* ---------- grid de produtos ---------- */
.grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
}

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
  display: flex; flex-direction: column; position: relative;
  transition: var(--t);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: var(--shadow); }

.card__media {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #221d18, #0c0a09);
}
.card__media img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}
.card:hover .card__media img { transform: scale(1.06); }
.card__media img.alt {
  position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
}
.card:hover .card__media img.alt { opacity: 1; }

.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 5px 11px; font-family: var(--ff-display);
  font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #0a0908;
  border-radius: 2px; font-weight: 700;
}
.badge--dark { background: rgba(10, 9, 8, .86); color: var(--gold); border: 1px solid var(--line-strong); }
.badge--right { left: auto; right: 12px; }

.card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card__cat {
  font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 7px;
}
.card__title {
  font-family: var(--ff-display); font-size: 16px; color: var(--bone);
  margin: 0 0 6px; line-height: 1.28;
}
.card__tag { font-size: 12.5px; color: var(--muted); margin: 0 0 14px; flex: 1; }
.card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.price { display: flex; flex-direction: column; }
.price s { font-size: 12px; color: var(--muted); }
.price b { font-family: var(--ff-display); font-size: 20px; color: var(--gold-bright); font-weight: 600; }
.price small { font-size: 10.5px; color: var(--muted); letter-spacing: .04em; }

.card__link { position: absolute; inset: 0; z-index: 3; }
.card__add {
  position: relative; z-index: 4; width: 40px; height: 40px; flex-shrink: 0;
  border: 1px solid var(--line-strong); border-radius: var(--r);
  background: var(--surface-2); display: grid; place-items: center;
  color: var(--gold); transition: var(--t);
}
.card__add:hover { background: var(--gold); color: #0a0908; border-color: var(--gold); }
.card__add svg { width: 17px; height: 17px; }

/* ---------- categorias ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.cat {
  position: relative; padding: 34px 24px; text-align: center;
  border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(160deg, var(--surface), var(--bg));
  transition: var(--t);
}
.cat:hover { border-color: var(--gold); transform: translateY(-3px); }
.cat h3 { font-size: 17px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.cat p { font-size: 12.5px; color: var(--muted); margin: 0 0 14px; }
.cat span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

/* ---------- filtros do catálogo ---------- */
.shop { display: grid; grid-template-columns: 250px 1fr; gap: 42px; align-items: start; }

.filters {
  position: sticky; top: 96px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); padding: 22px;
}
.filters h3 {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.filters__group + .filters__group { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.filters label {
  display: flex; align-items: center; gap: 10px; padding: 6px 0;
  font-size: 13.5px; color: var(--text); cursor: pointer; transition: color var(--t);
}
.filters label:hover { color: var(--gold-bright); }
/* checkbox próprio — o nativo renderiza branco sobre fundo escuro */
.filters input[type=checkbox] {
  appearance: none; width: 16px; height: 16px; flex-shrink: 0;
  border: 1px solid var(--line-strong); border-radius: 2px;
  background: var(--bg); position: relative; transition: var(--t); cursor: pointer;
}
.filters input[type=checkbox]:hover { border-color: var(--gold); }
.filters input[type=checkbox]:checked { background: var(--gold); border-color: var(--gold); }
.filters input[type=checkbox]:checked::after {
  content: ""; position: absolute; left: 5px; top: 1.5px;
  width: 4px; height: 8px; border: solid #0a0908;
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.filters label span.count { margin-left: auto; font-size: 11px; color: var(--muted); }

.shop__bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-bottom: 20px; margin-bottom: 26px; border-bottom: 1px solid var(--line);
}
.shop__bar .count { font-size: 13px; color: var(--muted); margin-right: auto; }
.shop__bar .count b { color: var(--bone); }

.field {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); color: var(--text);
  padding: 11px 14px; font-family: var(--ff-body); font-size: 14px;
  width: 100%; transition: var(--t);
}
.field:focus { outline: none; border-color: var(--gold); background: var(--surface-2); }
.field::placeholder { color: var(--muted); }
select.field {
  appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a24a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 15px;
}
.field--inline { width: auto; min-width: 200px; }

.search-wrap { position: relative; flex: 1; min-width: 200px; max-width: 320px; }
.search-wrap svg {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--muted); pointer-events: none;
}
.search-wrap .field { padding-left: 38px; }

.empty { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty h3 { margin-bottom: 10px; }

/* ---------- página de produto ---------- */
.crumbs { font-size: 12px; color: var(--muted); padding: 22px 0; letter-spacing: .04em; }
.crumbs a:hover { color: var(--gold); }
.crumbs span { margin: 0 8px; opacity: .4; }

.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; padding-bottom: 70px; }

.gallery__main {
  position: relative; aspect-ratio: 4 / 5; border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; cursor: zoom-in;
  background: radial-gradient(ellipse at 50% 40%, #241f19, #0b0a08);
}
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery__thumbs button {
  width: 74px; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 3px;
  overflow: hidden; background: var(--surface); padding: 0; transition: var(--t);
}
.gallery__thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs button:hover { border-color: var(--line-strong); }
.gallery__thumbs button.is-active { border-color: var(--gold); }

.pdp__info h1 { font-size: clamp(25px, 3.4vw, 38px); margin-bottom: 12px; }
.pdp__tag { color: var(--gold); font-size: 14px; font-style: italic; margin: 0 0 24px; }
.pdp__price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.pdp__price b { font-family: var(--ff-display); font-size: 38px; color: var(--gold-bright); font-weight: 600; }
.pdp__price s { color: var(--muted); font-size: 17px; }
.pdp__price .off {
  background: var(--gold); color: #0a0908; font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 2px; letter-spacing: .06em;
}
.pdp__parcel { color: var(--muted); font-size: 13.5px; margin: 0 0 4px; }
.pdp__pix { color: var(--success); font-size: 13.5px; margin: 0 0 26px; }
.pdp__pix b { color: var(--success); }

.stock { display: flex; align-items: center; gap: 9px; font-size: 13px; margin-bottom: 24px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); }
.dot--low { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.dot--out { background: var(--danger); box-shadow: none; }

.qty { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; }
.qty button { width: 44px; height: 50px; background: var(--surface); border: 0; color: var(--gold); font-size: 19px; transition: var(--t); }
.qty button:hover { background: var(--surface-2); }
.qty input {
  width: 54px; height: 50px; background: var(--bg); border: 0; border-inline: 1px solid var(--line);
  color: var(--bone); text-align: center; font-size: 15px; font-weight: 600;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

.pdp__buy { display: flex; gap: 12px; margin-bottom: 14px; }
.pdp__buy .btn { flex: 1; padding-block: 17px; }

.specs { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 28px; }
.specs h3 { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.specs__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.specs__list div { background: var(--surface); padding: 13px 15px; }
.specs__list dt { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.specs__list dd { margin: 0; font-size: 14px; color: var(--bone); }

.bullets { list-style: none; padding: 0; margin: 22px 0 0; }
.bullets li { position: relative; padding-left: 24px; margin-bottom: 10px; font-size: 14px; }
.bullets li::before {
  content: ""; position: absolute; left: 4px; top: 9px;
  width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg);
}

.prose { color: var(--text); font-size: 14.5px; line-height: 1.8; }
.prose p { margin: 0 0 15px; }

.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__head {
  width: 100%; background: none; border: 0; padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--ff-display); font-size: 13px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--bone); text-align: left; transition: color var(--t);
}
.accordion__head:hover { color: var(--gold); }
.accordion__head svg { width: 16px; height: 16px; color: var(--gold); transition: transform var(--t); flex-shrink: 0; }
.accordion__item.is-open .accordion__head svg { transform: rotate(180deg); }
.accordion__body { display: none; padding: 0 0 22px; }
.accordion__item.is-open .accordion__body { display: block; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(6, 5, 4, .96);
  display: none; place-items: center; padding: 40px;
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox__close { position: absolute; top: 20px; right: 24px; }

/* ---------- carrinho lateral ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(5, 4, 4, .72);
  backdrop-filter: blur(3px); opacity: 0; pointer-events: none;
  transition: opacity var(--t); z-index: 90;
}
.overlay.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 100vw);
  background: var(--bg-2); border-left: 1px solid var(--line);
  z-index: 100; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.drawer.is-open { transform: none; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; border-bottom: 1px solid var(--line);
}
.drawer__head h3 { font-size: 14px; letter-spacing: .22em; text-transform: uppercase; }
.drawer__body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.drawer__foot { border-top: 1px solid var(--line); padding: 20px 24px; background: var(--surface); }

.line {
  display: grid; grid-template-columns: 74px 1fr auto; gap: 14px;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.line__img {
  width: 74px; aspect-ratio: 3/4; border: 1px solid var(--line); border-radius: 3px;
  overflow: hidden; background: var(--surface);
}
.line__img img { width: 100%; height: 100%; object-fit: contain; }
.line__name { font-family: var(--ff-display); font-size: 13.5px; color: var(--bone); margin: 0 0 4px; line-height: 1.3; }
.line__meta { font-size: 12px; color: var(--muted); }
.line__price { font-family: var(--ff-display); color: var(--gold-bright); font-size: 15px; text-align: right; white-space: nowrap; }
.line__rm {
  background: none; border: 0; color: var(--muted); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; padding: 4px 0; margin-top: 6px; transition: color var(--t);
}
.line__rm:hover { color: var(--danger); }

.qty--mini { display: inline-flex; margin-top: 8px; }
.qty--mini button { width: 28px; height: 28px; font-size: 14px; }
.qty--mini input { width: 36px; height: 28px; font-size: 13px; }

.totals { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; font-size: 14px; }
.totals__row { display: flex; justify-content: space-between; color: var(--muted); }
.totals__row--big {
  border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px;
  color: var(--bone); font-size: 16px;
}
.totals__row--big b { font-family: var(--ff-display); font-size: 22px; color: var(--gold-bright); }

/* ---------- checkout ---------- */
.checkout { display: grid; grid-template-columns: 1fr 400px; gap: 44px; align-items: start; padding-bottom: 80px; }

.steps { display: flex; gap: 0; margin-bottom: 36px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.step {
  flex: 1; padding: 15px 12px; text-align: center; background: var(--surface);
  font-family: var(--ff-display); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
  border-right: 1px solid var(--line); position: relative;
}
.step:last-child { border-right: 0; }
.step.is-active { background: var(--surface-2); color: var(--gold-bright); }
.step.is-done { color: var(--text); }
.step i { font-style: normal; opacity: .55; margin-right: 5px; }

.panel {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); padding: 28px;
}
.panel + .panel { margin-top: 22px; }
.panel > h3 {
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.panel[hidden] { display: none; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-field label {
  display: block; font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 7px;
}
.form-field .err { color: var(--danger); font-size: 11.5px; margin-top: 5px; display: none; }
.form-field.has-error .field { border-color: var(--danger); }
.form-field.has-error .err { display: block; }

.pay-opts { display: flex; flex-direction: column; gap: 12px; }
.pay-opt {
  display: flex; gap: 14px; align-items: flex-start; padding: 17px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg-2); cursor: pointer; transition: var(--t);
}
.pay-opt:hover { border-color: var(--line-strong); }
.pay-opt.is-sel { border-color: var(--gold); background: var(--surface-2); }
.pay-opt input { accent-color: var(--gold); margin-top: 3px; width: 16px; height: 16px; }
.pay-opt strong { display: block; font-family: var(--ff-display); font-size: 14px; color: var(--bone); letter-spacing: .05em; }
.pay-opt span { font-size: 12.5px; color: var(--muted); }
.pay-opt .tag {
  margin-left: auto; font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--success); border: 1px solid rgba(111, 157, 94, .4); padding: 3px 8px; border-radius: 2px;
  white-space: nowrap;
}

.summary { position: sticky; top: 96px; }
.summary__items { max-height: 320px; overflow-y: auto; margin-bottom: 20px; }

.ship-opt {
  display: flex; align-items: center; gap: 13px; padding: 14px;
  border: 1px solid var(--line); border-radius: var(--r); cursor: pointer;
  transition: var(--t); margin-bottom: 10px; background: var(--bg-2);
}
.ship-opt.is-sel { border-color: var(--gold); background: var(--surface-2); }
.ship-opt input { accent-color: var(--gold); }
.ship-opt strong { font-size: 13.5px; color: var(--bone); font-weight: 600; }
.ship-opt span { font-size: 12px; color: var(--muted); display: block; }
.ship-opt b { margin-left: auto; color: var(--gold-bright); font-family: var(--ff-display); }

/* ---------- confirmação ---------- */
.done { text-align: center; max-width: 620px; margin: 0 auto; padding: 70px 0 90px; }
.done__seal {
  width: 92px; height: 92px; margin: 0 auto 28px; border-radius: 50%;
  border: 1px solid var(--gold); display: grid; place-items: center;
  color: var(--gold); background: radial-gradient(circle, rgba(201,162,74,.14), transparent);
}
.done__seal svg { width: 42px; height: 42px; }
.done h1 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 12px; }
.code {
  font-family: var(--ff-display); font-size: 22px; letter-spacing: .2em;
  color: var(--gold-bright); background: var(--surface); border: 1px solid var(--line);
  padding: 14px 26px; display: inline-block; border-radius: var(--r); margin: 18px 0 8px;
}
.pix-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px; margin: 30px 0; text-align: left;
}
.pix-code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 11.5px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 3px;
  padding: 13px; word-break: break-all; color: var(--muted); margin: 12px 0;
  max-height: 90px; overflow-y: auto;
}

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-top: 66px; margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 44px; padding-bottom: 48px; }
.footer h4 {
  font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer a { font-size: 13.5px; color: var(--muted); transition: color var(--t); }
.footer a:hover { color: var(--gold-bright); }
.footer p { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; }
.footer__bar {
  border-top: 1px solid var(--line); padding: 20px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted);
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px; border: 1px solid var(--line); border-radius: var(--r);
  display: grid; place-items: center; color: var(--text); transition: var(--t);
}
.socials a:hover { border-color: var(--gold); color: var(--gold-bright); background: var(--surface); }
.socials svg { width: 18px; height: 18px; }

/* ---------- whatsapp flutuante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  width: 54px; height: 54px; border-radius: 50%;
  background: #1f8a4c; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .8); transition: var(--t);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 27px; height: 27px; }

/* ---------- toast ---------- */
.toast-wrap { position: fixed; top: 92px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--surface-2); border: 1px solid var(--gold);
  border-left-width: 3px; border-radius: var(--r); padding: 14px 18px;
  min-width: 240px; max-width: 330px; box-shadow: var(--shadow);
  animation: toastIn .3s cubic-bezier(.4, 0, .2, 1);
}
.toast strong { display: block; font-family: var(--ff-display); font-size: 13px; color: var(--gold-bright); margin-bottom: 2px; }
.toast span { font-size: 12.5px; color: var(--muted); }
.toast.out { animation: toastOut .25s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* ---------- utilitários ---------- */
.text-c { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-3 { margin-top: 24px; }
.mb-3 { margin-bottom: 24px; }
.hide { display: none !important; }
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%; animation: sk 1.4s infinite;
}
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- responsivo ---------- */
@media (max-width: 1060px) {
  .shop { grid-template-columns: 1fr; }
  .filters { position: static; }
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; gap: 32px; }
  .nav {
    position: fixed; inset: 74px 0 auto; flex-direction: column; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px; transform: translateY(-120%); transition: transform .3s;
    z-index: 55; margin: 0;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
  .burger { display: grid; }
  .header__in { gap: 12px; }
}

@media (max-width: 620px) {
  .section { padding: 58px 0; }
  .wrap { width: calc(100% - 32px); }
  .grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 14px; }
  .card__body { padding: 13px; }
  .card__title { font-size: 13.5px; }
  .card__tag { display: none; }
  .price b { font-size: 16px; }
  .trust__grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .specs__list { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .topbar .wrap { gap: 14px; font-size: 10px; }
  .brand img { width: 42px; height: 42px; }
  .brand__txt strong { font-size: 13.5px; }
  .steps { flex-direction: column; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .pdp__buy { flex-direction: column; }
  .toast-wrap { left: 16px; right: 16px; top: 84px; }
  .toast { max-width: none; }
}

/* ---------- checkbox/radio dos demais formulários ---------- */
.pay-opt input[type=radio],
.ship-opt input[type=radio],
.form-field input[type=checkbox] {
  appearance: none; width: 16px; height: 16px; flex-shrink: 0;
  border: 1px solid var(--line-strong); background: var(--bg);
  position: relative; cursor: pointer; transition: var(--t);
}
.pay-opt input[type=radio], .ship-opt input[type=radio] { border-radius: 50%; }
.form-field input[type=checkbox] { border-radius: 2px; }

.pay-opt input[type=radio]:checked,
.ship-opt input[type=radio]:checked { border-color: var(--gold); }
.pay-opt input[type=radio]:checked::after,
.ship-opt input[type=radio]:checked::after {
  content: ""; position: absolute; inset: 3px;
  background: var(--gold); border-radius: 50%;
}
.form-field input[type=checkbox]:checked { background: var(--gold); border-color: var(--gold); }
.form-field input[type=checkbox]:checked::after {
  content: ""; position: absolute; left: 5px; top: 1.5px;
  width: 4px; height: 8px; border: solid #0a0908;
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}

textarea.field { resize: vertical; min-height: 96px; font-family: var(--ff-body); line-height: 1.7; }
