:root {
  --bg: #F5F0EA;
  --card: #FFFFFF;
  --ink: #2A1A14;
  --muted: #7C6A5E;
  --steel: #A2917F;
  --line: #E7DCD2;
  --accent: #A5622F;
  --accent-dark: #854C22;
  --wood: #43291A;
  --wood-light: #63452E;
  --ok: #4F7A3A;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(28, 27, 26, 0.08), 0 6px 24px rgba(28, 27, 26, 0.06);
  --shadow-lg: 0 10px 40px rgba(28, 27, 26, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.mono {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.8em;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
  white-space: nowrap;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn-ink {
  background: var(--ink);
  color: #fff;
}
.btn-ink:hover { background: #000; transform: translateY(-1px); }

.btn-wood {
  background: var(--wood);
  color: #fff;
}
.btn-wood:hover { background: var(--wood-light); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-ghost-light:hover { background: #fff; color: var(--ink); }

.hero-nav.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.hero-nav.active:hover { background: var(--accent-dark); color: #fff; }

.btn-sm { padding: 10px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  border-bottom: 3px solid var(--accent);
}

.header__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.logo__mark {
  width: 34px;
  height: 34px;
  background: var(--accent);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
}

.logo__img {
  height: 40px;
  width: auto;
  border-radius: var(--radius);
  display: block;
}

.nav { display: flex; gap: 4px; flex: 1; }

.nav a {
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  color: #E8E6E2;
}
.nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav a.active { background: var(--accent); color: #fff; }

.header__actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  color: #fff;
  border: 0;
  cursor: pointer;
}
.icon-btn:hover { background: rgba(255,255,255,0.16); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .6s ease;
}
.hero__slide.active { opacity: 1; }

.hero__slide--1 {
  background-color: #232220;
  background-image:
    linear-gradient(100deg, rgba(18,17,16,0.92) 30%, rgba(18,17,16,0.35)),
    url('../img/barzinho-1.webp');
  background-size: cover;
  background-position: center;
}
.hero__slide--2 {
  background-color: #241d15;
  background-image:
    linear-gradient(100deg, rgba(18,17,16,0.92) 30%, rgba(18,17,16,0.35)),
    url('../img/rack-e40-37.webp');
  background-size: cover;
  background-position: center;
}

.hero__overlay-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: repeating-linear-gradient(45deg, #fff 0, #fff 1px, transparent 1px, transparent 14px);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 80px 0;
}

.hero__kicker {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 16px;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 18px;
}

.hero p { font-size: 1.15rem; color: #D8D5D0; max-width: 520px; margin-bottom: 28px; }

.hero__price {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 24px;
}
.hero__price span { color: var(--accent); }

.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero__dots button {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 3px;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
}
.hero__dots button.active { background: var(--accent); }

/* ---------- Trust bar ---------- */
.trust {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px 0;
}
.trust__item {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
}
.trust__item b { color: var(--ink); display: block; }
.trust__item svg { flex-shrink: 0; color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}
.section__head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section__head p { color: var(--muted); max-width: 560px; margin-top: 8px; }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

/* ---------- Category cards ---------- */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  transition: all .18s ease;
  display: block;
}
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.cat__icon {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  background: var(--bg);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--wood);
}
.cat b { font-family: 'Archivo', sans-serif; display: block; margin-bottom: 4px; }
.cat span { font-size: 0.8rem; color: var(--muted); }

/* ---------- Product grid ---------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.products--2 { grid-template-columns: repeat(2, 1fr); align-items: start; }
.products--2 > * { min-width: 0; }
.products--3 { grid-template-columns: repeat(3, 1fr); align-items: start; }
.products--3 > * { min-width: 0; }
.products--4 { grid-template-columns: repeat(4, 1fr); align-items: start; }
.products--4 > * { min-width: 0; }
.prod-head { margin-bottom: 14px; }
.prod-head__title { font-family: 'Archivo', sans-serif; font-size: 1.2rem; }
.prod-head p { color: var(--muted); font-size: 0.92rem; margin-top: 6px; max-width: 440px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }

.card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.card__media .ph { width: 100%; height: 100%; }

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 9px;
  border-radius: 4px;
  font-weight: 700;
}
.badge--stock { background: var(--ok); color: #fff; }
.badge--custom { background: var(--wood); color: #fff; }
.badge--frete {
  background: var(--ok);
  color: #fff;
  left: auto;
  right: 12px;
}

.card__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__cat { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.card__title { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 1.02rem; }

.card__meta { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--muted); }
.stars { color: var(--accent); }

.card__price { margin-top: auto; }
.card__price .from { font-size: 0.75rem; color: var(--muted); display: block; }
.card__price .value { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 1.35rem; }
.card__price .install { font-size: 0.75rem; color: var(--muted); }

.card .btn { margin-top: 12px; }

/* ---------- Placeholder image ---------- */
.ph {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #3a3a36, #232220);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.55);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph--wood { background: linear-gradient(135deg, var(--wood-light), var(--wood)); }
.ph--steel { background: linear-gradient(135deg, #8a8a86, #5c5c58); }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #BDBAB5;
  margin-top: 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 56px 0 40px;
}
.footer h4 {
  color: #fff;
  font-family: 'Archivo', sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer a:hover { color: #fff; }
.footer__brand p { margin-top: 14px; font-size: 0.9rem; max-width: 320px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #7E7A74;
}

/* ---------- Breadcrumb ---------- */
.crumbs {
  padding: 18px 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin: 0 6px; color: var(--steel); }
.crumbs .here { color: var(--ink); font-weight: 600; }

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; }

.gallery__main {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.gallery__thumbs button {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  border: 2px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  overflow: hidden;
  padding: 0;
}
.gallery__thumbs button.active { border-color: var(--accent); }
.gallery__thumbs .ph { width: 100%; height: 100%; font-size: 0.6rem; }

.pdp__cat { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 700; }
.pdp__title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 8px 0 12px; }

.pdp__rating { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--muted); margin-bottom: 20px; }
.pdp__rating .sold { color: var(--ok); font-weight: 600; }

.price-box {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  margin-bottom: 20px;
}
.price-box .value { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 2.2rem; }
.price-box .value small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price-box .install { color: var(--muted); font-size: 0.9rem; margin-top: 2px; }

.frete-gratis {
  display: inline-block;
  background: var(--ok);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 6px;
  margin: -6px 0 16px;
}
.frete-gratis svg { vertical-align: -3px; margin-right: 6px; }

.option-group { margin-bottom: 20px; }
.option-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 10px; }
.options { display: flex; gap: 10px; flex-wrap: wrap; }
.option {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  background: #fff;
}
.option:hover { border-color: var(--ink); }
.option.active { border-color: var(--accent); background: #FDF0E6; }

.qty { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: var(--radius); }
.qty button { width: 44px; height: 46px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.qty input { width: 48px; border: 0; text-align: center; font-size: 1rem; font-weight: 700; }
.qty-total { display: block; margin-top: 12px; font-size: 1.05rem; color: var(--muted); }
.qty-total b { color: var(--ink); font-size: 1.35rem; }

.pdp__cta { display: flex; gap: 12px; margin: 24px 0; }
.pdp__cta .btn { flex: 1; }

.shipping-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.shipping-box label { font-weight: 600; font-size: 0.85rem; display: block; margin-bottom: 8px; }
.shipping-box .row { display: flex; gap: 8px; }
.shipping-box input {
  flex: 1;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
}
.shipping-box .result { font-size: 0.85rem; color: var(--ok); margin-top: 10px; display: none; }

.assure { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); }
.assure span { display: inline-flex; align-items: center; gap: 6px; }
.assure svg { color: var(--ok); }

/* ---------- Tabs ---------- */
.tabs { margin-top: 56px; }
.tabs__nav { display: flex; gap: 4px; border-bottom: 2px solid var(--line); }
.tabs__nav button {
  padding: 14px 22px;
  border: 0;
  background: none;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.tabs__nav button.active { color: var(--ink); border-color: var(--accent); }
.tab-panel { display: none; padding: 28px 0; }
.tab-panel.active { display: block; }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.spec-table th { width: 240px; color: var(--muted); font-weight: 500; }
.spec-table td { font-family: 'IBM Plex Mono', monospace; font-size: 0.88rem; }

.custom-card {
  background: linear-gradient(135deg, var(--wood), #2c1f13);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.custom-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.custom-card p { color: #D8CFC4; max-width: 460px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .trust__grid { grid-template-columns: 1fr; gap: 14px; }
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-toggle { display: grid; place-items: center; width: 42px; height: 42px; }
  .section__head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .products { grid-template-columns: 1fr; }
  .products--2 { grid-template-columns: 1fr; }
  .cats { grid-template-columns: 1fr 1fr; }
  .pdp__cta { flex-direction: column; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Page head ---------- */
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-head p { color: var(--muted); margin-top: 8px; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }

.cart-list { display: flex; flex-direction: column; gap: 16px; }

.cart-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  align-items: center;
}
.cart-item__media { width: 100px; height: 100px; border-radius: var(--radius); overflow: hidden; }
.cart-item__info h3 { font-family: 'Archivo', sans-serif; font-size: 1rem; margin-bottom: 4px; }
.cart-item__info .variant { font-size: 0.82rem; color: var(--muted); }
.cart-item__info .remove { font-size: 0.8rem; color: var(--accent); background: none; border: 0; cursor: pointer; padding: 0; margin-top: 6px; }
.cart-item__right { text-align: right; }
.cart-item__price { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 1.1rem; }
.cart-item__price small { display: block; font-weight: 500; font-size: 0.72rem; color: var(--muted); }

/* ---------- Summary ---------- */
.summary {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 90px;
}
.summary h2 { font-size: 1.2rem; margin-bottom: 20px; }
.summary__row { display: flex; justify-content: space-between; font-size: 0.92rem; margin-bottom: 12px; color: var(--muted); }
.summary__row b { color: var(--ink); }
.summary__divider { border-top: 1px solid var(--line); margin: 16px 0; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; }
.summary__total span { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 1.6rem; }
.summary__total small { font-size: 0.75rem; color: var(--muted); display: block; text-align: right; }
.summary .btn { margin-top: 20px; }
.summary__note { font-size: 0.78rem; color: var(--muted); margin-top: 12px; display: flex; align-items: center; gap: 6px; }

/* ---------- Checkout ---------- */
.steps { display: flex; gap: 8px; margin: 24px 0 32px; }
.step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}
.step .num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg);
  display: grid;
  place-items: center;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--muted);
}
.step.active { border-color: var(--accent); color: var(--ink); }
.step.active .num { background: var(--accent); color: #fff; }
.step.done { color: var(--ok); }
.step.done .num { background: var(--ok); color: #fff; }

.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}
.form-card h2 { font-size: 1.15rem; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.85rem; }
.form-field input, .form-field select {
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}
.form-field input:focus, .form-field select:focus { outline: none; border-color: var(--ink); }
.form-field.error input, .form-field.error select { border-color: #D32F2F; }
.form-field .hint { font-size: 0.75rem; color: var(--muted); }

.pay-methods { display: flex; flex-direction: column; gap: 10px; }
.pay {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.pay.active { border-color: var(--accent); background: #FDF0E6; }
.pay input { accent-color: var(--accent); width: 18px; height: 18px; }
.pay b { display: block; }
.pay span { font-size: 0.8rem; color: var(--muted); }
.pay .tag { margin-left: auto; font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; text-transform: uppercase; background: var(--ok); color: #fff; padding: 4px 8px; border-radius: 4px; }

/* ---------- Pix panel ---------- */
.pix-panel { margin-top: 20px; }
.pix-result {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}
.pix-qr { text-align: center; }
.pix-qr img { width: 220px; height: 220px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.pix-qr p { font-size: 0.8rem; color: var(--muted); margin-top: 10px; }
.pix-copy label { font-weight: 600; font-size: 0.85rem; display: block; margin-bottom: 8px; }
.pix-copy textarea {
  width: 100%;
  height: 96px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  resize: none;
  margin-bottom: 10px;
}

@media (max-width: 560px) {
  .pix-result { grid-template-columns: 1fr; }
  .pix-qr img { width: 180px; height: 180px; }
}

/* ---------- Cart drawer ---------- */
.icon-btn { position: relative; }
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 17, 0.5);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: -440px;
  width: min(440px, 100vw);
  height: 100vh;
  background: #fff;
  z-index: 100;
  box-shadow: var(--shadow-lg);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { right: 0; }
.cart-drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.cart-drawer__head h3 { font-size: 1.15rem; }
.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cart-drawer__foot {
  border-top: 1px solid var(--line);
  padding: 16px 20px;
}
.d-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.d-item__media { width: 64px; height: 64px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; }
.d-item__info { flex: 1; min-width: 0; }
.d-item__info h4 { font-size: 0.86rem; font-family: 'Archivo', sans-serif; line-height: 1.2; }
.d-item__info .variant { font-size: 0.74rem; color: var(--muted); }
.d-item__price { font-weight: 800; font-size: 0.9rem; margin-top: 4px; }
.d-item .qty { margin-top: 6px; }
.d-item .qty button { width: 28px; height: 28px; font-size: 1rem; }
.d-item .qty input { width: 32px; font-size: 0.85rem; height: 28px; }
.d-item__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.d-item__remove { background: none; border: 0; color: var(--accent); cursor: pointer; font-size: 0.78rem; text-decoration: underline; }
.empty-cart { text-align: center; color: var(--muted); padding: 40px 0; }
.empty-cart a { color: var(--accent); font-weight: 600; }
.d-row { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 10px; color: var(--muted); }
.d-row b { color: var(--ink); }
.d-total { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 0 16px; }
.d-total span { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 1.4rem; }
.cart-drawer__foot .btn + .btn { margin-top: 8px; }

/* ---------- Busca ---------- */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 17, 0.5);
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  padding: 12vh 16px 16px;
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-modal {
  width: min(640px, 100%);
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.search-modal__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.search-modal__head input {
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 1.05rem;
  font-family: inherit;
  background: transparent;
  color: var(--ink);
}
.search-modal__head button {
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--muted);
}
.search-modal__results { max-height: 60vh; overflow-y: auto; }
.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.search-result:hover { background: var(--bg); }
.search-result__media {
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--bg);
}
.search-result__media img { width: 100%; height: 100%; object-fit: cover; }
.search-result__info { flex: 1; min-width: 0; }
.search-result__info b { display: block; font-size: 0.92rem; }
.search-result__info span { color: var(--muted); font-size: 0.85rem; }
.search-result__price { font-family: 'Archivo', sans-serif; font-weight: 800; color: var(--accent); white-space: nowrap; }
.search-empty { padding: 24px 14px; color: var(--muted); text-align: center; }

@media (max-width: 560px) {
  .cart-drawer { width: 100vw; }
}

/* ---------- Páginas institucionais ---------- */
.legal { max-width: 800px; margin: 0 auto; }
.legal h2 { font-size: 1.3rem; margin: 28px 0 10px; }
.legal h3 { font-size: 1.05rem; margin: 20px 0 8px; }
.legal p { margin-bottom: 12px; color: var(--muted); }
.legal ul { margin: 0 0 12px 20px; color: var(--muted); }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); font-weight: 600; }
.legal .btn { margin-top: 8px; }

/* ---------- Admin / Pedidos ---------- */
.admin-body { background: var(--bg); }
.admin-shell { min-height: calc(100vh - 70px); padding: 40px 0 64px; }
.admin-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.admin-card + .admin-card { margin-top: 24px; }
.login-card {
  max-width: 420px;
  margin: 60px auto;
  text-align: center;
}
.login-card .logo-mark-holder { margin-bottom: 8px; }
.login-card h1 { font-size: 1.5rem; margin-bottom: 6px; }
.login-card p { color: var(--muted); margin-bottom: 24px; }
.login-card input {
  width: 100%;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  text-align: center;
  margin-bottom: 14px;
}
.login-card input:focus { outline: none; border-color: var(--accent); }
.login-error { color: #D32F2F; font-size: 0.85rem; margin-top: 10px; display: none; }

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.admin-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.admin-head p { color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.stat span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); display: block; margin-bottom: 6px; }
.stat b { font-family: 'Archivo', sans-serif; font-size: 1.6rem; }

.order {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  background: #fff;
}
.order__top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.order__id { font-family: 'Archivo', sans-serif; font-weight: 800; }
.order__date { color: var(--muted); font-size: 0.82rem; }
.order__status {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 20px;
}
.status-aguardando { background: #FFF3E0; color: #B26A00; }
.status-pago { background: #E8F5E9; color: #2E7D32; }
.status-producao { background: #E3F2FD; color: #1565C0; }
.status-enviado { background: #F3E5F5; color: #6A1B9A; }
.status-concluido { background: #ECEFF1; color: #37474F; }

.order__cliente { font-size: 0.9rem; color: var(--muted); margin-bottom: 10px; }
.order__cliente b { color: var(--ink); }
.order__itens { border-top: 1px solid var(--line); padding-top: 10px; }
.order__itens .linha {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
  padding: 4px 0;
}
.order__itens .linha small { color: var(--muted); }
.order__total {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.order__total b { font-family: 'Archivo', sans-serif; font-size: 1.2rem; }
.order select {
  padding: 8px 12px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.85rem;
  background: #fff;
}

.prod-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.prod-row:last-child { border-bottom: 0; }

@media (max-width: 700px) {
  .stats { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .steps { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-item__right { grid-column: 2; text-align: left; }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
  padding: 14px 18px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.cookie-banner__text {
  flex: 1 1 320px;
  font-size: 0.9rem;
  line-height: 1.45;
}
.cookie-banner__text a {
  color: var(--accent);
  text-decoration: underline;
}
.cookie-banner__actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}
@media (max-width: 600px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 12px 14px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; }
}

/* Admin toolbar */
.admin-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.admin-toolbar input[type="search"],
.admin-toolbar select {
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font: inherit;
}
.admin-toolbar input[type="search"] { flex: 1 1 240px; }
