/* ================================================================
   LUST STORE — CSS principal inspirado no design HOPERS
   ================================================================ */

/* ── Reset & Variáveis ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

:root {
  --c-bg:       #ffffff;
  --c-bg-soft:  #f1f0fa;
  --c-ink:      #0f0f0f;
  --c-ink-mid:  #393939;
  --c-ink-soft: #616161;
  --c-accent:   #000000;
  --c-account:  #b5651a;
  --c-line:     #e8e8e8;
  --c-sale:     #e00000;
  --c-green:    #1a8a4a;
  --font-main:  'Source Sans Pro', 'Plus Jakarta Sans', system-ui, sans-serif;
  --radius-sm:  4px;
  --radius-md:  8px;
  --shadow-card: 0 2px 12px rgba(0,0,0,.08);
  --shadow-hover: 0 8px 24px rgba(0,0,0,.14);
  --container:  1260px;
  --header-h:   82px;
  --nav-h:      48px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
ul  { list-style: none; }

/* ── Container ──────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ── Skip link ──────────────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 100;
  background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--radius-sm); padding: .4rem .8rem; font-size: .9rem;
}
.skip-link:focus { top: .75rem; }

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-bg); border-bottom: 1px solid var(--c-line);
  height: var(--header-h);
}

.header-row {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 2rem;
  height: var(--header-h);
}

/* Logo + subtítulo (estilo HOPERS) */
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-decoration: none;
}
.brand img {
  height: 46px; width: auto; object-fit: contain;
}
.brand-sub {
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  font-weight: 400;
  line-height: 1;
}

/* Busca com botão */
.search { position: relative; }
.search input {
  width: 100%; height: 44px;
  background: var(--c-bg-soft);
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0 3rem 0 1.2rem;
  font-size: .95rem;
  outline: none;
  transition: border-color .15s, background .15s;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.search input::placeholder { color: var(--c-ink-soft); letter-spacing: .04em; }
.search input:focus { border-color: #ccc; background: #fff; }

.search-btn {
  position: absolute; right: 0; top: 0; height: 44px; width: 44px;
  background: none; border: none; cursor: pointer;
  display: grid; place-items: center;
  color: var(--c-ink-soft); transition: color .15s;
}
.search-btn:hover { color: var(--c-ink); }

/* Ações do header */
.header-actions { display: flex; align-items: center; gap: 1.4rem; }

.account-link {
  display: flex; align-items: center; gap: .6rem;
  color: var(--c-ink-mid); transition: color .15s;
}
.account-link:hover { color: var(--c-ink); }
.header-icon { width: 24px; height: 24px; flex-shrink: 0; color: var(--c-ink-mid); }
.header-icon svg { width: 100%; height: 100%; }
.account-text { display: grid; line-height: 1.25; }
.account-text strong { font-size: .97rem; font-weight: 700; color: var(--c-account); }
.account-text small  { font-size: .82rem; color: var(--c-ink-soft); }

.logout-link { font-size: .85rem; color: var(--c-ink-soft); }
.logout-link:hover { color: var(--c-ink); text-decoration: underline; }

/* Carrinho com badge sobreposto — estilo HOPERS */
.cart-link { display: flex; align-items: center; color: var(--c-ink-mid); transition: color .15s; }
.cart-link:hover { color: var(--c-ink); }

.cart-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-count {
  position: absolute;
  top: -7px; right: -9px;
  min-width: 20px; height: 20px;
  background: var(--c-ink); color: #fff;
  border-radius: 999px; font-size: .72rem; font-weight: 800;
  display: grid; place-items: center; padding: 0 3px;
  border: 2px solid var(--c-bg);
  line-height: 1;
}

.flash { border: 1px solid; border-radius: var(--radius-md); padding: .7rem 1rem; margin-top: .9rem; font-size: .95rem; }
.flash-success { background: #ecf8ef; border-color: #bbe4c5; color: #1f5930; }
.flash-error   { background: #fff1f0; border-color: #ffc2bc; color: #8f2f25; }

.pwa-install-prompt {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(15, 15, 15, 0.96);
  color: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.26);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

.pwa-install-prompt.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pwa-install-prompt__content {
  min-width: 0;
}

.pwa-install-prompt__eyebrow {
  display: inline-block;
  margin-bottom: .25rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
}

.pwa-install-prompt__title {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.pwa-install-prompt__text {
  margin-top: .25rem;
  font-size: .9rem;
  line-height: 1.45;
  color: rgba(255,255,255,.78);
  max-width: 52ch;
}

.pwa-install-prompt__actions {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-shrink: 0;
}

.pwa-install-prompt__btn,
.pwa-install-prompt__dismiss {
  border-radius: 999px;
  padding: .78rem 1.1rem;
  font-size: .88rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, border-color .15s ease, background-color .15s ease;
}

.pwa-install-prompt__btn {
  background: #fff;
  color: #111;
}

.pwa-install-prompt__dismiss {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.14);
}

.pwa-install-prompt__btn:hover,
.pwa-install-prompt__dismiss:hover {
  opacity: .92;
  transform: translateY(-1px);
}

/* ================================================================
   NAVEGAÇÃO DE CATEGORIAS
   ================================================================ */
.main-nav-shell {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  transition: top .3s ease, opacity .25s ease;
}

.main-nav-shell.nav-hidden {
  top: calc(var(--header-h) - var(--nav-h) - 2px);
  opacity: 0;
  pointer-events: none;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--nav-h);
  overflow-x: auto;
  scrollbar-width: none;
  gap: .25rem;
  flex-wrap: nowrap;
}
.main-nav::-webkit-scrollbar { display: none; }

/* Mobile menu - fit all items */
@media (max-width: 768px) {
  .main-nav {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--nav-h);
    padding: .4rem 0;
    gap: .15rem .4rem;
    overflow-x: visible;
  }
  .main-nav-shell {
    height: auto;
  }
  .category-chip {
    padding: .35rem .7rem;
    font-size: .82rem;
  }
  /* Dynamic sizing classes added via JS */
  .main-nav.menu-items-5 .category-chip { font-size: .78rem; padding: .32rem .55rem; }
  .main-nav.menu-items-6 .category-chip { font-size: .74rem; padding: .3rem .5rem; }
  .main-nav.menu-items-7 .category-chip { font-size: .7rem; padding: .28rem .45rem; }
  .main-nav.menu-items-8 .category-chip { font-size: .66rem; padding: .26rem .4rem; }
  .main-nav.menu-items-9 .category-chip { font-size: .62rem; padding: .24rem .35rem; }
  .main-nav.menu-items-10 .category-chip { font-size: .58rem; padding: .22rem .3rem; }
}

.category-chip {
  display: inline-block;
  padding: .5rem 1.2rem;
  font-size: .92rem; font-weight: 600;
  color: var(--c-ink-mid);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  letter-spacing: .01em;
  transition: color .15s;
}
.category-chip:hover      { color: var(--c-ink); }
.category-chip.is-active  { color: var(--c-ink); border-bottom-color: var(--c-ink); }
.category-chip.chip-sale  { color: var(--c-sale); font-weight: 700; }
.category-chip.chip-sale:hover { color: #b00; }
.main-nav .category-chip:first-child { color: #dc2626; }
.main-nav .category-chip:first-child:hover { color: #b91c1c; }

/* ================================================================
   HERO SLIDER
   ================================================================ */
.hero-slider-wrap { position: relative; overflow: hidden; background: #111; }
.hero-slider-track { display: flex; transition: transform .5s ease; }
.hero-slide { flex: 0 0 100%; min-height: 520px; position: relative; }
.hero-slide-media { position: absolute; inset: 0; background-position: center; background-size: cover; }
.hero-slide-content {
  position: relative; z-index: 1;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 5vw, 5rem);
  display: grid; gap: 1rem; max-width: 660px; color: #fff;
}
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.hero-slide-content h1 {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700; line-height: 1; text-transform: uppercase;
}
.hero-slide-content p { font-size: 1.05rem; color: rgba(255,255,255,.85); max-width: 44ch; }

.cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: #111; border-radius: 999px;
  padding: .7rem 1.6rem; font-weight: 700; font-size: 1rem;
  width: fit-content; transition: filter .15s;
}
.cta:hover { filter: brightness(.93); }

.hero-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; background: rgba(255,255,255,.9); border: none;
  border-radius: 999px; cursor: pointer; font-size: 1.5rem; font-weight: 700;
  display: grid; place-items: center; transition: background .15s;
}
.hero-nav-btn:hover { background: #fff; }
.hero-nav-btn.prev  { left: 1rem; }
.hero-nav-btn.next  { right: 1rem; }
.hero-dots { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; z-index: 3; }
.hero-dot {
  width: 8px; height: 8px; border-radius: 999px; border: none;
  background: rgba(255,255,255,.45); cursor: pointer; padding: 0;
  transition: background .15s, width .2s;
}
.hero-dot.is-active { background: #fff; width: 24px; }

/* ================================================================
   SECTIONS
   ================================================================ */
.section { padding: 2.5rem 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.4rem; }
.section-head h2 { font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.section-head a  { font-size: .9rem; color: var(--c-ink-soft); }
.section-head a:hover { text-decoration: underline; }

/* ================================================================
   PRODUCT GRID — 4 colunas
   ================================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* ================================================================
   PRODUCT CARD — estilo HOPERS
   ================================================================ */
.product-card {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }

.product-card-image { position: relative; overflow: hidden; background: var(--c-bg-soft); }
.product-card-image a { display: block; }
.product-image {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  display: block; transition: transform .35s ease;
}
.product-card:hover .product-image { transform: scale(1.04); }

.product-badges { position: absolute; top: .6rem; left: .6rem; display: flex; flex-direction: column; gap: .3rem; z-index: 2; }
.badge { display: inline-block; padding: .2rem .55rem; font-size: .75rem; font-weight: 700; border-radius: var(--radius-sm); text-transform: uppercase; line-height: 1.3; }
.badge-sale    { background: var(--c-sale); color: #fff; }
.badge-new     { background: var(--c-ink); color: #fff; }
.badge-esgotado { background: #777; color: #fff; }

.product-card-info { padding: .8rem .9rem .3rem; flex: 1; display: flex; flex-direction: column; gap: .25rem; }
.product-name {
  font-size: .97rem; font-weight: 600; color: var(--c-ink); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Preços — igual HOPERS */
.product-price-box { display: flex; flex-direction: column; gap: .1rem; margin-top: .25rem; }
.price-original    { font-size: .82rem; color: var(--c-ink-soft); text-decoration: line-through; }
.price-current     { font-size: 1.15rem; font-weight: 700; color: var(--c-ink); }
.price-pix         { font-size: .82rem; color: var(--c-green); font-weight: 600; }
.price-installments{ font-size: .82rem; color: var(--c-ink-soft); }

.product-card-actions { padding: .7rem .9rem .9rem; }
.btn-card {
  display: block; width: 100%; text-align: center;
  padding: .6rem 1rem; background: var(--c-bg); color: var(--c-ink);
  border: 1px solid var(--c-ink); border-radius: var(--radius-sm);
  font-size: .92rem; font-weight: 600; cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-card:hover { background: var(--c-ink); color: #fff; }

/* ================================================================
   FAIXAS PROMOCIONAIS
   ================================================================ */
.promos { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; padding: 2rem 0; }
.promo  { border-radius: var(--radius-md); padding: 2rem 1.8rem; }
.promo h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: .4rem; }
.promo p  { font-size: .97rem; }
.promo-dark  { background: #111; color: #fff; }
.promo-light { background: var(--c-bg-soft); border: 1px solid var(--c-line); }

/* ================================================================
   NEWSLETTER
   ================================================================ */
.newsletter-section {
  background: var(--c-bg-soft); border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line); padding: 2.5rem 0; text-align: center;
}
.newsletter-section h3 { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .4rem; }
.newsletter-section p  { color: var(--c-ink-soft); font-size: .95rem; margin-bottom: 1rem; }
.newsletter-form { display: flex; gap: .5rem; justify-content: center; max-width: 440px; margin-inline: auto; }
.newsletter-form input { flex: 1; padding: .7rem 1rem; border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: #fff; outline: none; font-size: .95rem; }
.newsletter-form input:focus { border-color: #999; }
.newsletter-form button { padding: .7rem 1.4rem; background: var(--c-ink); color: #fff; border: none; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 700; cursor: pointer; transition: opacity .15s; }
.newsletter-form button:hover { opacity: .85; }
.newsletter-form__status { min-height: 1.2rem; margin-top: .75rem; font-size: .9rem; color: var(--c-ink-soft); }
.newsletter-form__status.is-success { color: var(--c-green); }
.newsletter-form__status.is-error { color: var(--c-sale); }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer { background: #fcfcfe; border-top: 1px solid var(--c-line); padding-top: 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; }
.footer-grid h4 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--c-ink); margin-bottom: .9rem; }
.footer-grid p, .footer-grid li { font-size: .92rem; color: var(--c-ink-soft); line-height: 1.6; }
.footer-grid a:hover { color: var(--c-ink); text-decoration: underline; }
.footer-grid li + li { margin-top: .3rem; }
.footer-brand-logo { height: 44px; margin-bottom: .8rem; }
.footer-social { display: flex; gap: .7rem; margin-top: .8rem; }
.footer-social a {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--c-line); border-radius: 999px; color: var(--c-ink-soft);
  transition: border-color .15s, color .15s, background-color .15s;
}
.footer-social a svg { width: 18px; height: 18px; }
.footer-social a:hover { border-color: var(--c-ink); color: var(--c-ink); background-color: rgba(0,0,0,.03); }
.copyright { border-top: 1px solid var(--c-line); padding: 1.1rem 0; text-align: center; font-size: .85rem; color: var(--c-ink-soft); }

/* ================================================================
   BREADCRUMB
   ================================================================ */
.breadcrumb { padding: .8rem 0; font-size: .88rem; color: var(--c-ink-soft); display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.breadcrumb a { color: var(--c-ink-soft); }
.breadcrumb a:hover { color: var(--c-ink); text-decoration: underline; }
.breadcrumb .sep { color: #bbb; }

/* ================================================================
   PÁGINA DE PRODUTO (PDP)
   ================================================================ */
.pdp-section { padding: 2rem 0 3rem; }
.pdp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }

.pdp-gallery { display: flex; flex-direction: column; gap: .7rem; }
.pdp-zoom-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  border-radius: var(--radius-md); border: 1px solid var(--c-line);
  background: var(--c-bg-soft); cursor: zoom-in;
  -webkit-user-select: none; user-select: none;
  isolation: isolate;
}
.pdp-main-image {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transform-origin: 0 0;
  transition: transform .06s linear;
  will-change: transform;
  pointer-events: none;
}
.pdp-zoom-wrap.is-zoomed { cursor: crosshair; }
.pdp-thumbnails { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.pdp-thumb {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius-sm); border: 2px solid transparent;
  cursor: pointer; transition: border-color .15s; background: var(--c-bg-soft);
}
.pdp-thumb:hover  { border-color: #aaa; }
.pdp-thumb.active { border-color: var(--c-ink); }

.pdp-buybox { position: sticky; top: calc(var(--header-h) + var(--nav-h) + .5rem); }

.pdp-category-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--c-ink-soft); margin-bottom: .4rem; }
.pdp-title { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 700; line-height: 1.15; margin-bottom: .4rem; }
.pdp-sku   { font-size: .82rem; color: var(--c-ink-soft); margin-bottom: 1rem; }

.pdp-price-box    { margin-bottom: 1.2rem; }
.pdp-price-original { font-size: .9rem; color: var(--c-ink-soft); text-decoration: line-through; }
.pdp-price-current  { font-size: 2rem; font-weight: 700; line-height: 1.15; }
.pdp-price-pix {
  display: inline-block; font-size: .88rem; color: var(--c-green); font-weight: 600;
  background: #edfaf3; border-radius: var(--radius-sm); padding: .2rem .5rem; margin-top: .3rem;
}
.pdp-price-installments { font-size: .88rem; color: var(--c-ink-soft); margin-top: .25rem; }

.pdp-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-label { font-size: .9rem; font-weight: 700; }

.pdp-select {
  width: 100%; padding: .7rem .9rem;
  border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  background: #fff; font-size: .97rem; outline: none; cursor: pointer;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.5rem;
  transition: border-color .15s;
}
.pdp-select:focus { border-color: var(--c-ink); }

.qty-wrapper { display: inline-flex; align-items: center; border: 1px solid var(--c-line); border-radius: var(--radius-sm); overflow: hidden; }
.qty-btn {
  width: 40px; height: 42px; background: #f7f7f7; border: none;
  font-size: 1.2rem; font-weight: 700; cursor: pointer;
  display: grid; place-items: center; transition: background .15s;
}
.qty-btn:hover { background: #eee; }
.qty-input {
  width: 52px; height: 42px; border: none;
  border-left: 1px solid var(--c-line); border-right: 1px solid var(--c-line);
  text-align: center; font-size: 1rem; font-weight: 600; outline: none;
}

.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; padding: .9rem 1.2rem;
  background: var(--c-ink); color: #fff; border: none; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 700; cursor: pointer; transition: opacity .15s;
}
.btn-primary:hover { opacity: .85; }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; }

.btn-secondary {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; padding: .9rem 1.2rem;
  background: #fff; color: var(--c-ink); border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s;
}
.btn-secondary:hover { border-color: var(--c-ink); }

.stock-ok   { color: var(--c-green); font-size: .9rem; font-weight: 600; }
.stock-none { color: var(--c-sale);  font-size: .9rem; font-weight: 600; }

.variant-info {
  font-size: .85rem; color: var(--c-ink-soft);
  display: flex; flex-wrap: wrap; gap: .5rem 1.2rem;
  padding: .5rem 0;
}
.variant-info span:not(:empty)::before {
  content: '•'; margin-right: .4rem; opacity: .5;
}

.pdp-benefits { display: flex; flex-direction: column; gap: .6rem; padding: 1rem; background: var(--c-bg-soft); border-radius: var(--radius-md); border: 1px solid var(--c-line); }
.pdp-benefit { display: flex; align-items: center; gap: .7rem; font-size: .9rem; }
.pdp-benefit-icon { font-size: 1.1rem; flex-shrink: 0; }

/* ── Option Groups (cor, tamanho, etc.) ─────────────────────── */
.opt-group { display: flex; flex-direction: column; gap: .5rem; }
.opt-group-label {
  font-size: .9rem; font-weight: 700; color: var(--c-ink);
  display: flex; align-items: baseline; gap: .45rem;
}
.opt-group-selected {
  font-size: .85rem; font-weight: 500; color: var(--c-ink-soft);
}
.opt-btns { display: flex; flex-wrap: wrap; gap: .45rem; }

/* Size chips */
.opt-btn {
  min-width: 42px; height: 38px; padding: 0 .9rem;
  border: 1.5px solid var(--c-line); border-radius: var(--radius-sm);
  background: #fff; font-size: .88rem; font-weight: 600; color: var(--c-ink);
  cursor: pointer; transition: border-color .12s, background .12s, color .12s;
  display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap; user-select: none;
}
.opt-btn:hover { border-color: var(--c-ink); }
.opt-btn.is-selected {
  background: var(--c-ink); color: #fff; border-color: var(--c-ink);
}
.opt-btn.is-disabled,
.opt-swatch.is-disabled {
  opacity: .35; cursor: not-allowed; pointer-events: none;
  position: relative;
}
.opt-btn.is-disabled::after,
.opt-swatch.is-disabled::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 45%, var(--c-line) 45%, var(--c-line) 55%, transparent 55%);
}
.opt-btn-delta {
  font-size: .72rem; font-weight: 400; opacity: .8; margin-left: .25rem;
}

/* Color swatches */
.opt-swatch {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--c-line);
  cursor: pointer; transition: transform .12s, box-shadow .12s;
  position: relative; flex-shrink: 0;
}
.opt-swatch:hover { transform: scale(1.1); }
.opt-swatch.is-selected {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c-ink);
  border-color: transparent;
}
.opt-swatch-label {
  position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
  font-size: .68rem; white-space: nowrap; color: var(--c-ink-soft);
  pointer-events: none; opacity: 0; transition: opacity .12s;
}
.opt-swatch:hover .opt-swatch-label { opacity: 1; }

/* ── Freight Calculator ──────────────────────────────────────── */
.freight-calc {
  border: 1px solid var(--c-line); border-radius: var(--radius-md);
  padding: 1rem 1.1rem; background: var(--c-bg-soft);
}
.freight-calc__title {
  font-size: .88rem; font-weight: 700; color: var(--c-ink); margin-bottom: .65rem;
  display: flex; align-items: center; gap: .4rem;
}
.freight-calc__row { display: flex; gap: .5rem; }
.freight-calc__input {
  flex: 1; padding: .6rem .85rem;
  border: 1.5px solid var(--c-line); border-radius: var(--radius-sm);
  font-size: .92rem; outline: none; transition: border-color .15s;
  min-width: 0;
}
.freight-calc__input:focus { border-color: var(--c-ink); }
.freight-calc__btn {
  padding: .6rem 1.1rem;
  background: var(--c-ink); color: #fff; border: none; border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: opacity .15s; flex-shrink: 0;
}
.freight-calc__btn:hover { opacity: .82; }
.freight-calc__btn:disabled { opacity: .45; cursor: default; }
.freight-calc__result {
  margin-top: .65rem; font-size: .9rem; display: none;
}
.freight-calc__result.is-visible { display: block; }
.freight-calc__result-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .5rem .65rem; background: #fff; border-radius: var(--radius-sm);
  border: 1px solid var(--c-line); gap: .75rem;
}
.freight-calc__carrier { font-weight: 600; color: var(--c-ink); }
.freight-calc__price   { font-weight: 800; color: var(--c-ink); white-space: nowrap; }
.freight-calc__price.is-free { color: var(--c-green); }
.freight-calc__deadline { font-size: .78rem; color: var(--c-ink-soft); white-space: nowrap; }
.freight-calc__error   { color: var(--c-sale); font-size: .85rem; padding: .35rem 0; }

.tabs-section { border-top: 1px solid var(--c-line); padding: 2rem 0; }
.tabs-nav { display: flex; border-bottom: 2px solid var(--c-line); margin-bottom: 1.5rem; }
.tab-btn {
  padding: .7rem 1.5rem; background: none; border: none;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  font-size: .97rem; font-weight: 600; color: var(--c-ink-soft);
  cursor: pointer; transition: color .15s;
}
.tab-btn:hover  { color: var(--c-ink); }
.tab-btn.active { color: var(--c-ink); border-bottom-color: var(--c-ink); }
.tab-panel             { display: none; }
.tab-panel.active      { display: block; animation: fadeIn .2s ease; }
.tab-panel p           { color: var(--c-ink-soft); line-height: 1.7; }
.tab-panel dt          { font-weight: 700; margin-top: .6rem; }
.tab-panel dd          { color: var(--c-ink-soft); }

/* ================================================================
   CHECKOUT — checkout.php
   ================================================================ */
.checkout-fieldset {
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.25rem;
}
.checkout-legend {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--c-ink-soft);
  padding: 0 .5rem;
}

.form-row        { display: grid; gap: .9rem; }
.form-row--2     { grid-template-columns: 1fr 1fr; }

.checkout-input {
  width: 100%; padding: .75rem 1rem;
  border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  background: #fff; font-size: .97rem; outline: none;
  transition: border-color .15s, box-shadow .15s;
  color: var(--c-ink);
}
.checkout-input::placeholder { color: #bbb; }
.checkout-input:focus {
  border-color: var(--c-ink);
  box-shadow: 0 0 0 3px rgba(0,0,0,.07);
}

/* Opções de pagamento */
.payment-options { display: flex; flex-direction: column; gap: .7rem; }
.payment-option {
  display: flex; align-items: center; gap: 1rem;
  padding: .9rem 1rem;
  border: 1.5px solid var(--c-line); border-radius: var(--radius-md);
  cursor: pointer; transition: border-color .15s, background .15s;
  user-select: none;
}
.payment-option input[type=radio] { display: none; }
.payment-option:hover   { border-color: #aaa; background: var(--c-bg-soft); }
.payment-option.is-active { border-color: var(--c-ink); background: var(--c-bg-soft); }
.payment-icon { font-size: 1.5rem; flex-shrink: 0; width: 36px; text-align: center; }
.payment-info { display: flex; flex-direction: column; gap: .1rem; }
.payment-info strong { font-size: .97rem; font-weight: 700; }
.payment-info small  { font-size: .82rem; color: var(--c-ink-soft); }

.checkout-submit-row {
  display: flex; flex-direction: column; gap: .75rem; margin-top: 1.5rem;
}

/* Itens no resumo do checkout (versão compacta) */
.checkout-item--sm {
  grid-template-columns: 52px 1fr auto;
  padding: .7rem;
  gap: .75rem;
  align-items: start;
}
.checkout-item--sm > img { display: none; } /* usamos wrap abaixo */
.checkout-item-img-wrap {
  position: relative; width: 52px; height: 52px; flex-shrink: 0;
}
.checkout-item-img-wrap img {
  width: 52px; height: 52px; object-fit: cover;
  border-radius: var(--radius-sm); background: var(--c-bg-soft);
}
.checkout-item-qty {
  position: absolute; top: -7px; right: -7px;
  background: var(--c-ink); color: #fff;
  border-radius: 999px; font-size: .72rem; font-weight: 700;
  min-width: 18px; height: 18px;
  display: grid; place-items: center; padding: 0 4px;
}
.checkout-item-meta {
  display: flex; flex-direction: column; gap: .15rem; min-width: 0;
}
.checkout-item--sm .checkout-item-img-wrap {
  display: block;
  align-self: start;
}
.checkout-item--sm .checkout-item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: .22rem;
  min-width: 0;
}
.checkout-item--sm .checkout-item-meta > p {
  font-size: .92rem;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.25;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.checkout-item--sm .checkout-item-meta > small {
  display: block;
  font-size: .8rem;
  color: var(--c-ink-soft);
  line-height: 1.3;
  text-align: left;
}
.checkout-item-meta > p {
  font-size: .9rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.checkout-item-meta > small { font-size: .8rem; color: var(--c-ink-soft); }
.checkout-item--sm > strong {
  font-size: .97rem; font-weight: 700; flex-shrink: 0; align-self: start; justify-self: end; text-align: right; white-space: nowrap;
}

.checkout-security {
  display: flex; align-items: center; gap: .5rem;
  margin-top: 1.2rem;
  padding: .8rem 1rem;
  background: var(--c-bg-soft); border-radius: var(--radius-sm);
  font-size: .85rem; color: var(--c-ink-soft); font-weight: 600;
}

/* ── Login nudge (para visitantes no checkout) ───────────────── */
.checkout-login-nudge {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 1.1rem;
  background: #f5f8ff;
  border: 1px solid #d0daf5;
  border-radius: var(--radius-md);
  margin-bottom: 1.2rem;
}
.checkout-login-nudge__info {
  display: flex; align-items: center; gap: .8rem;
}
.checkout-login-nudge__icon { font-size: 1.4rem; flex-shrink: 0; }
.checkout-login-nudge__info strong { display: block; font-size: .97rem; font-weight: 700; }
.checkout-login-nudge__info span  { font-size: .88rem; color: var(--c-ink-soft); }
.checkout-login-nudge__toggle { white-space: nowrap; }

/* Mini-form de login embutido no checkout */
.checkout-inline-login {
  display: none; overflow: hidden;
  background: var(--c-bg-soft); border: 1px solid var(--c-line);
  border-radius: var(--radius-md); padding: 1.2rem 1.3rem;
  margin-bottom: 1.2rem;
  animation: fadeIn .2s ease;
}
.checkout-inline-login.is-open { display: block; }

/* Saudação do usuário logado */
.checkout-user-greeting {
  display: flex; align-items: center; gap: .8rem;
  padding: .85rem 1.1rem;
  background: #edfaf3; border: 1px solid #b8e8ce;
  border-radius: var(--radius-md);
  margin-bottom: 1.2rem;
}
.checkout-user-greeting__icon {
  width: 30px; height: 30px; border-radius: 999px;
  background: var(--c-green); color: #fff;
  display: grid; place-items: center; font-size: .9rem; font-weight: 700;
  flex-shrink: 0;
}
.checkout-user-greeting strong { display: block; font-size: .97rem; font-weight: 700; color: var(--c-ink); }
.checkout-user-greeting span   { font-size: .86rem; color: var(--c-ink-soft); }
.checkout-user-greeting a { color: var(--c-ink-soft); text-decoration: underline; }

/* Campo travado (pré-preenchido pela conta) */
.checkout-locked-field {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1rem;
  background: #f7f7f7; border: 1px solid var(--c-line);
  border-radius: var(--radius-sm); font-size: .97rem; color: var(--c-ink);
  gap: .5rem;
}
.checkout-locked-badge {
  font-size: .75rem; color: var(--c-ink-soft);
  background: #ebebeb; border-radius: var(--radius-sm);
  padding: .15rem .5rem; white-space: nowrap; flex-shrink: 0;
}

/* ================================================================
   MISC
   ================================================================ */
.empty-state    { text-align: center; padding: 4rem 0; }
.empty-state h1 { font-size: 1.5rem; margin-bottom: .5rem; }
.empty-state p  { color: var(--c-ink-soft); margin-bottom: 1.5rem; }
.empty-message  { color: var(--c-ink-soft); font-size: .95rem; grid-column: 1/-1; }
.product-shell  { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius-md); padding: 1.5rem; }
.checkout-layout{ display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; padding: 2rem 0; align-items: start; }
.full { width: 100%; }

/* ================================================================
   CARRINHO — cart.php
   ================================================================ */
.checkout-panel h1 {
  font-size: 1.6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .02em; margin-bottom: 1.5rem;
  padding-bottom: .75rem; border-bottom: 2px solid var(--c-ink);
}

.checkout-items { display: flex; flex-direction: column; gap: .75rem; }

.checkout-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  transition: box-shadow .15s;
}
.checkout-item:hover { box-shadow: var(--shadow-card); }

.checkout-item > img {
  width: 90px; height: 90px; object-fit: cover;
  border-radius: var(--radius-sm); background: var(--c-bg-soft);
  flex-shrink: 0;
}

.checkout-item > div:first-of-type {
  display: flex; flex-direction: column; gap: .2rem; min-width: 0;
}
.checkout-item > div:first-of-type > p {
  font-size: 1rem; font-weight: 600; color: var(--c-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.checkout-item > div:first-of-type > small {
  font-size: .82rem; color: var(--c-ink-soft);
}

.checkout-item > div:last-of-type {
  display: flex; flex-direction: column; align-items: flex-end; gap: .5rem;
  flex-shrink: 0;
}
.checkout-item > div:last-of-type > strong {
  font-size: 1.1rem; font-weight: 700; color: var(--c-ink);
}
.checkout-item .qty-input {
  width: 64px; height: 40px; text-align: center;
  border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  font-size: .97rem; font-weight: 600; outline: none;
  padding: 0 .5rem;
}
.checkout-item .qty-input:focus { border-color: var(--c-ink); }

.checkout-form-footer {
  display: flex; justify-content: flex-end; margin-top: 1rem;
}

/* Resumo do carrinho */
.checkout-summary {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + var(--nav-h) + .5rem);
}
.checkout-summary h2 {
  font-size: 1.1rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: 1.2rem;
  padding-bottom: .6rem; border-bottom: 1px solid var(--c-line);
}
.summary-lines { display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1rem; }
.summary-lines > p {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .95rem; color: var(--c-ink-mid);
}
.summary-lines > p span { font-weight: 600; }
.summary-total {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1rem; border-top: 2px solid var(--c-ink);
  font-size: 1rem; font-weight: 700;
}
.summary-total strong { font-size: 1.3rem; }
.summary-actions { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.2rem; }
.summary-actions > form { margin: 0; }

/* Botões gerais tipo "small" */
.small-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .65rem 1.2rem; font-size: .92rem; font-weight: 600;
  border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  background: var(--c-bg); color: var(--c-ink-mid);
  cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.small-btn:hover { border-color: var(--c-ink); color: var(--c-ink); }
.small-btn.primary {
  background: var(--c-ink); color: #fff; border-color: var(--c-ink);
}
.small-btn.primary:hover { opacity: .85; }

/* ================================================================
   SUGGESTIONS SECTION (bottom of cart)
   ================================================================ */
.suggestions-section {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--c-line);
  margin-top: 3rem;
}
.suggestions-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.suggestions-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) {
  .suggestions-track {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .suggestions-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: .5rem;
  }
  .suggestions-track .product-card {
    flex: 0 0 62vw;
    scroll-snap-align: start;
  }
}
.suggestion-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--c-ink-soft);
  background: var(--c-bg-soft);
  border-radius: 99px;
  padding: .15rem .55rem;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  margin-bottom: .5rem;
}

/* ================================================================
   SEARCH RESULTS LAYOUT
   ================================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  color: var(--c-ink-soft);
  padding: 1.25rem 0 .75rem;
}
.breadcrumb a { color: var(--c-ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-ink); text-decoration: underline; }
.breadcrumb .sep { color: var(--c-line); }

.search-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  padding: 1.25rem 0 4rem;
  align-items: start;
}
@media (max-width: 860px) {
  .search-layout {
    grid-template-columns: 1fr;
  }
}

/* Sidebar */
.search-sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--nav-h) + 1rem);
}

/* Botão toggle filtros — só aparece no mobile */
.filter-toggle-btn {
  display: none;
}
@media (max-width: 860px) {
  .search-sidebar {
    position: static;
  }
  .filter-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: .7rem 1rem;
    margin-bottom: .75rem;
    border: 1.5px solid var(--c-line);
    border-radius: var(--radius-sm);
    background: var(--c-bg);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--c-ink);
  }
  .filter-toggle-btn svg { transition: transform .25s; }
  .filter-toggle-btn.is-open svg { transform: rotate(180deg); }
  /* Esconde o conteúdo da sidebar enquanto fechado */
  .search-sidebar:not(.is-open) .search-filter-group,
  .search-sidebar:not(.is-open) .pagination-bar {
    display: none;
  }
}

.search-filter-group {
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}
.search-filter-title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-ink);
  margin-bottom: .65rem;
}
.search-filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.search-filter-list a {
  font-size: .875rem;
  color: var(--c-ink-soft);
  text-decoration: none;
  padding: .2rem 0;
  display: block;
  transition: color .15s;
}
.search-filter-list a:hover { color: var(--c-ink); }
.search-filter-list a.is-active {
  color: var(--c-ink);
  font-weight: 700;
}
.search-filter-list a.is-active::before {
  content: '● ';
  font-size: .6rem;
  vertical-align: .1em;
}

/* Results panel */
.search-results-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: .5rem;
}
.search-results-title {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
}
.search-sort-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--c-ink-soft);
}
.search-sort-select {
  padding: .45rem .8rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  background: var(--c-bg);
  color: var(--c-ink);
  cursor: pointer;
}
.search-sort-select:focus { outline: none; border-color: var(--c-ink); }
.search-results-count {
  font-size: .82rem;
  color: var(--c-ink-soft);
  margin-bottom: 1.5rem;
}

/* 3-column grid override for search */
.product-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 860px) {
  .product-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .product-grid--3 { grid-template-columns: 1fr; }
}

/* Circular sale badge on product cards in search */
.badge-sale--circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  padding: 0;
  text-align: center;
}

/* ================================================================
   KEYFRAMES
   ================================================================ */
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ================================================================
   RESPONSIVO
   ================================================================ */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .header-row { grid-template-columns: 130px 1fr auto; gap: .8rem; }
  .brand img  { height: 36px; }
  .brand-sub  { display: none; }
  .account-text { display: none; }
  .search input { height: 40px; font-size: .88rem; padding: 0 2.8rem 0 1rem; }
  .search-btn { height: 40px; width: 40px; }
  .hero-slide { min-height: 360px; }
  .hero-nav-btn { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .promos { grid-template-columns: 1fr; }
  .pdp-grid { grid-template-columns: 1fr; }
  .pdp-buybox { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary {
    order: -1;
    position: static;
    margin-bottom: 1.25rem;
  }
}

@media (max-width: 560px) {
  .container { padding-inline: .9rem; }
  .header-row { grid-template-columns: 90px 1fr auto; gap: .5rem; }
  .brand img { height: 32px; }
  .search input {
    height: 38px;
    width: 100%;
    min-width: 0;
    font-size: .82rem;
    padding: 0 2.5rem 0 .8rem;
  }
  .search-btn {
    height: 38px;
    width: 38px;
  }
  .search-btn svg { width: 16px; height: 16px; }
  .header-actions { gap: .8rem; }
  .header-icon { width: 22px; height: 22px; }
  .cart-count { min-width: 18px; height: 18px; font-size: .68rem; top: -6px; right: -7px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .pdp-thumbnails { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
  .footer-brand-logo { height: 36px; }
  .footer-social { justify-content: center; }
  .footer-grid h4 { margin-bottom: .6rem; }
  .footer-grid p, .footer-grid li { font-size: .88rem; }
  .footer-social a { width: 36px; height: 36px; }
  .footer-social a svg { width: 16px; height: 16px; }
  .copyright { font-size: .8rem; padding: 1rem 0; }
  .newsletter-section h3 { font-size: 1.1rem; }
  .newsletter-section p { font-size: .88rem; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { font-size: .9rem; }
  .newsletter-form button { width: 100%; }
  .pdp-title { font-size: 1.5rem; }
  .tab-btn { padding: .6rem .9rem; font-size: .9rem; }
  .form-row--2 { grid-template-columns: 1fr; }
  .checkout-fieldset { padding: 1rem; }
  .checkout-item--sm {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: .65rem;
    padding: .75rem;
  }
  .checkout-item--sm .checkout-item-img-wrap,
  .checkout-item--sm .checkout-item-img-wrap img {
    width: 48px;
    height: 48px;
  }
  .checkout-item--sm .checkout-item-meta > p {
    font-size: .88rem;
  }
  .checkout-item--sm .checkout-item-meta > small {
    font-size: .76rem;
  }
  .checkout-item--sm > strong {
    font-size: .95rem;
    padding-top: .1rem;
  }
  .pwa-install-prompt {
    left: .75rem;
    right: .75rem;
    bottom: calc(.75rem + env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: stretch;
    gap: .9rem;
    padding: .95rem;
    border-radius: 18px;
  }
  .pwa-install-prompt__title {
    font-size: .96rem;
  }
  .pwa-install-prompt__text {
    font-size: .84rem;
  }
  .pwa-install-prompt__actions {
    width: 100%;
  }
  .pwa-install-prompt__btn,
  .pwa-install-prompt__dismiss {
    flex: 1;
    justify-content: center;
    min-height: 46px;
  }
}

@media (max-width: 380px) {
  .header-row { grid-template-columns: 80px 1fr auto; gap: .4rem; }
  .brand img { height: 28px; }
  .search input { font-size: .78rem; padding: 0 2.2rem 0 .6rem; }
  .header-actions { gap: .6rem; }
  .header-icon { width: 20px; height: 20px; }
}

/* ================================================================
   AUTH — login.php / register.php
   ================================================================ */
.auth-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 1rem 4rem;
  min-height: calc(100vh - var(--header-h) - var(--nav-h) - 220px);
}

.auth-card {
  width: 100%;
  max-width: 500px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  padding: 2.25rem 2.5rem 2rem;
  box-shadow: var(--shadow-card);
}

.auth-card h1 {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 1.6rem;
  padding-bottom: .85rem;
  border-bottom: 2px solid var(--c-ink);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.auth-label {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--c-ink-mid);
}

.auth-label .auth-required {
  color: var(--c-sale);
  margin-left: .15rem;
}

.auth-input {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: .97rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  color: var(--c-ink);
}
.auth-input::placeholder { color: #bbb; }
.auth-input:focus {
  border-color: var(--c-ink);
  box-shadow: 0 0 0 3px rgba(0,0,0,.07);
}
.auth-input[readonly] {
  background: var(--c-bg-soft);
  color: var(--c-ink-soft);
  cursor: default;
}

.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.auth-row--3 { grid-template-columns: 1fr 1fr 1fr; }

.auth-divider {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--c-ink-soft);
  display: flex; align-items: center; gap: .75rem;
  margin: .25rem 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--c-line);
}

.auth-cep-row { display: grid; grid-template-columns: 1fr auto; gap: .75rem; align-items: end; }
.auth-cep-btn {
  padding: .75rem 1rem;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  font-size: .85rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.auth-cep-btn:hover { background: #e0dff5; border-color: #aaa; }

.auth-hint {
  font-size: .8rem;
  color: var(--c-ink-soft);
  margin-top: .1rem;
}

.auth-submit {
  display: block; width: 100%;
  padding: .9rem 1.5rem;
  background: var(--c-ink); color: #fff;
  border: none; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  cursor: pointer; margin-top: .5rem;
  transition: background .15s, transform .1s;
}
.auth-submit:hover  { background: #333; }
.auth-submit:active { transform: scale(.98); }

.auth-foot {
  margin-top: 1.25rem;
  text-align: center;
  font-size: .9rem;
  color: var(--c-ink-soft);
}
.auth-foot a {
  color: var(--c-ink);
  font-weight: 700;
  text-decoration: underline;
}

.auth-error {
  background: #fef2f2; border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: .75rem 1rem; font-size: .9rem; color: #b91c1c;
  margin-bottom: .5rem;
}

@media (max-width: 560px) {
  .auth-card { padding: 1.5rem 1.25rem; }
  .auth-row, .auth-row--3 { grid-template-columns: 1fr; }
  .auth-cep-row { grid-template-columns: 1fr; }
  .auth-cep-btn { width: 100%; }
}

/* ================================================================
   SUCCESS MODAL (login / register)
   ================================================================ */
.success-modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.52);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  animation: fadeIn .2s ease;
}
.success-modal-overlay.is-hidden { display: none; }

.success-modal {
  background: var(--c-bg);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  max-width: 400px; width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  animation: slideUp .25s ease;
}

.success-modal__icon {
  width: 72px; height: 72px;
  border-radius: 999px;
  background: #edfaf3;
  border: 3px solid #b8e8ce;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 2rem;
}

.success-modal__icon svg {
  width: 36px; height: 36px;
  stroke: var(--c-green); stroke-width: 2.5;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}

.success-modal h2 {
  font-size: 1.35rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .03em;
  margin-bottom: .5rem;
}

.success-modal p {
  font-size: .95rem; color: var(--c-ink-soft); line-height: 1.6;
  margin-bottom: 1.5rem;
}

.success-modal__btn {
  display: inline-block; width: 100%;
  padding: .85rem 1.5rem;
  background: var(--c-ink); color: #fff;
  border: none; border-radius: var(--radius-sm);
  font-size: .97rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  cursor: pointer;
  transition: background .15s;
}
.success-modal__btn:hover { background: #333; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   PAINEL DO CLIENTE — account.php
   ================================================================ */
.account-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  padding: 2.5rem 0 4rem;
  align-items: start;
}

/* Sidebar */
.account-sidebar {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + var(--nav-h) + 1rem);
}

.account-sidebar__user {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--c-line);
  display: flex; align-items: center; gap: .85rem;
}

.account-sidebar__avatar {
  width: 42px; height: 42px; border-radius: 999px;
  background: var(--c-ink); color: #fff;
  display: grid; place-items: center;
  font-size: 1.1rem; font-weight: 800;
  flex-shrink: 0;
}

.account-sidebar__info strong {
  display: block; font-size: .97rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.account-sidebar__info small {
  font-size: .78rem; color: var(--c-ink-soft);
}

.account-nav { padding: .5rem 0; }

.account-nav__item {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1.25rem;
  font-size: .93rem; font-weight: 600;
  cursor: pointer;
  transition: background .13s, color .13s;
  border: none; background: none; width: 100%; text-align: left;
  color: var(--c-ink-mid);
}
.account-nav__item svg { flex-shrink: 0; width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-nav__item:hover  { background: var(--c-bg-soft); color: var(--c-ink); }
.account-nav__item.is-active { background: var(--c-bg-soft); color: var(--c-ink); font-weight: 800; }
.account-nav__item.is-danger { color: #c0392b; }
.account-nav__item.is-danger:hover { background: #fef2f2; color: #b91c1c; }

/* Main panels */
.account-panel {
  display: none;
}
.account-panel.is-active { display: block; }

.account-panel__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.5rem;
  padding-bottom: .85rem;
  border-bottom: 2px solid var(--c-ink);
}
.account-panel__head h2 {
  font-size: 1.3rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .03em;
}
.account-panel__head span {
  font-size: .85rem; color: var(--c-ink-soft);
}

/* Order cards */
.order-card {
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1rem;
  transition: box-shadow .15s;
}
.order-card:hover { box-shadow: var(--shadow-card); }

.order-card__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .5rem 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--c-bg-soft);
  cursor: pointer;
  user-select: none;
}

/* ── Storefront Pagination ──────────────────────────────────────── */
.storefront-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .35rem;
  margin: 2rem 0 1rem;
  flex-wrap: wrap;
}
.pg-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 .6rem;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  font-size: .88rem;
  color: var(--c-ink-mid);
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.pg-link:hover {
  background: var(--c-bg-soft);
  border-color: var(--c-ink-soft);
  color: var(--c-ink);
}
.pg-link.pg-active {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
  font-weight: 600;
  pointer-events: none;
}
.pg-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 36px;
  color: var(--c-ink-soft);
  font-size: .88rem;
}
.pg-prev, .pg-next {
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .02em;
}
@media (max-width: 480px) {
  .pg-link { min-width: 32px; height: 32px; font-size: .8rem; }
  .pg-prev, .pg-next { padding: 0 .4rem; font-size: .76rem; }
}
.order-card__meta { display: flex; flex-direction: column; gap: .15rem; }
.order-card__num  { font-size: .97rem; font-weight: 800; }
.order-card__date { font-size: .82rem; color: var(--c-ink-soft); }

.order-card__badges { display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; }

.order-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .65rem;
  border-radius: 999px; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}
.order-badge--new        { background: #f0f0f0; color: #555; }
.order-badge--paid       { background: #edfaf3; color: #1a8a4a; }
.order-badge--processing { background: #fff7e6; color: #b45309; }
.order-badge--shipped    { background: #e0f0ff; color: #1d6fa4; }
.order-badge--delivered  { background: #edfaf3; color: #1a8a4a; }
.order-badge--cancelled  { background: #fef2f2; color: #b91c1c; }
.order-badge--pending    { background: #f0f0f0; color: #555; }
.order-badge--approved   { background: #edfaf3; color: #1a8a4a; }
.order-badge--failed, .order-badge--refunded { background: #fef2f2; color: #b91c1c; }

.order-card__total {
  font-size: 1.05rem; font-weight: 800;
  white-space: nowrap;
}

.order-card__chevron {
  transition: transform .2s ease;
  flex-shrink: 0;
}
.order-card.is-open .order-card__chevron { transform: rotate(180deg); }

.order-card__body {
  display: none;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--c-line);
}
.order-card.is-open .order-card__body { display: block; }

.order-items-list { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1rem; }

.order-item-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; font-size: .93rem; padding: .5rem 0;
  border-bottom: 1px dashed var(--c-line);
}
.order-item-row:last-child { border-bottom: none; }
.order-item-row__info { display: flex; flex-direction: column; gap: .1rem; flex: 1; min-width: 0; }
.order-item-row__info strong { font-weight: 700; }
.order-item-row__info small  { font-size: .8rem; color: var(--c-ink-soft); }
.order-item-row__price { font-weight: 800; white-space: nowrap; flex-shrink: 0; }

.order-totals { border-top: 1px solid var(--c-line); padding-top: .85rem; }
.order-totals p { display: flex; justify-content: space-between; font-size: .9rem; color: var(--c-ink-soft); padding: .2rem 0; }
.order-totals p.is-total { font-size: 1.05rem; color: var(--c-ink); font-weight: 800; border-top: 1px solid var(--c-line); margin-top: .4rem; padding-top: .6rem; }
.order-totals p span { font-weight: 600; color: var(--c-ink); }

.order-tracking {
  margin-top: .85rem; padding: .75rem 1rem;
  background: #e0f0ff; border-radius: var(--radius-sm);
  font-size: .88rem;
  display: flex; gap: .5rem; align-items: center;
}
.order-tracking strong { font-weight: 800; }
.order-tracking code {
  background: #fff; padding: .15rem .5rem;
  border-radius: 4px; font-size: .9rem; letter-spacing: .06em;
}

/* Empty orders */
.account-empty {
  text-align: center; padding: 3rem 1rem;
  color: var(--c-ink-soft);
}
.account-empty svg {
  width: 64px; height: 64px; stroke: #ccc; fill: none;
  stroke-width: 1.5; margin: 0 auto 1rem;
}
.account-empty h3 { font-size: 1.1rem; font-weight: 700; color: var(--c-ink); margin-bottom: .4rem; }
.account-empty p  { font-size: .9rem; }

/* Address / Info forms */
.account-info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.account-info-grid .span-2 { grid-column: 1 / span 2; }

.account-info-field {
  display: flex; flex-direction: column; gap: .3rem;
}
.account-info-label {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--c-ink-soft);
}
.account-info-value {
  font-size: .97rem; font-weight: 600; color: var(--c-ink);
  padding: .6rem .9rem;
  background: var(--c-bg-soft); border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  word-break: break-word;
}

.account-section-divider {
  font-size: .75rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: var(--c-ink-soft);
  border-bottom: 1px solid var(--c-line);
  padding-bottom: .5rem; margin: 1.5rem 0 1rem;
}

/* ── Account Edit Form ───────────────────────────────────────────────────── */
.account-edit-form { display: flex; flex-direction: column; gap: .6rem; }
.account-form-section {
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em;
  color: var(--c-ink-soft); padding: .5rem 0 .25rem; border-bottom: 1px solid var(--c-line);
  margin-top: .25rem;
}
.account-form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; align-items: start;
}
.account-form-row .span-2 { grid-column: 1 / span 2; }
.account-form-field {
  display: flex; flex-direction: column; gap: .35rem;
  font-size: .8rem; font-weight: 600; color: var(--c-ink-soft);
}
.account-form-field input, .account-form-field select {
  padding: .6rem .85rem; border: 1.5px solid #d1d5db; border-radius: var(--radius-sm);
  font-size: .9rem; color: var(--c-ink); background: #fafafa; outline: none;
  transition: border-color .15s, box-shadow .15s;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.account-form-field input:focus, .account-form-field select:focus {
  border-color: #111;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,0,0,.07);
}
.account-form-required { color: var(--c-sale); }

@media (max-width: 860px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .account-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .35rem; padding: .5rem 0; }
  .account-nav__item { white-space: normal; padding: .65rem .7rem; border-radius: var(--radius-sm); border-bottom: none; font-size: .82rem; text-align: center; flex-direction: column; gap: .25rem; background: var(--c-bg-soft); justify-content: center; }
  .account-nav__item svg { width: 16px; height: 16px; }
  .account-nav__item.is-active { background: var(--c-ink); color: #fff; }
  .account-sidebar__user { display: none; }
  .account-info-grid { grid-template-columns: 1fr; }
  .account-info-grid .span-2 { grid-column: 1; }
  .account-form-row { grid-template-columns: 1fr; }
  .account-form-row .span-2 { grid-column: 1; }
}
