/* ── LOJA (esqueleto com fillers) ── */
#loja { padding: 7rem 1.5rem 3rem; }

/* Modo loja: header do site some, entra a barra própria */
body.loja-mode #nav,
body.loja-mode .mobile-nav { display: none; }
body.loja-mode #loja { padding-top: 7rem; }

.store-bar {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  align-items: center; justify-content: center;
  padding: 1.8rem;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: opacity 0.5s ease;
}
.store-bar.scrolled { opacity: 0; pointer-events: none; }
body.loja-mode .store-bar { display: flex; }
.store-back {
  position: absolute; left: 1.5rem;
  background: none; border: none; cursor: pointer; padding: 4px;
  color: #777; display: flex; align-items: center; justify-content: center;
  transition: color 0.3s;
}
.store-back:hover { color: #fff; }
.store-back svg { width: 28px; height: 28px; }
.store-cart {
  position: absolute; right: 1.5rem;
  background: none; border: none; cursor: pointer; padding: 4px;
  color: #777; display: flex; align-items: center; justify-content: center;
  transition: color 0.3s;
}
.store-cart:hover { color: #fff; }
.store-cart svg { width: 26px; height: 26px; }
.store-cart .cart-count { margin-left: 0.35em; }
.store-title {
  font-family: 'ClassyVogue', Georgia, serif; font-weight: normal;
  font-size: 2.4rem; letter-spacing: 0.14em; color: #fff;
}

.loja-head { text-align: center; margin-bottom: 2rem; }
.loja-sub {
  font-family: 'NexaHeavy', Georgia, serif;
  font-size: 0.72rem; letter-spacing: 0.3em; color: #777;
}

/* Categorias (fillers, sem ação) */
.loja-cats {
  display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap;
  margin-bottom: 2rem;
}
.loja-pill {
  background: none; border: 1px solid rgba(255,255,255,0.15);
  color: #777; font-family: 'NexaHeavy', Georgia, serif;
  font-size: 0.72rem; letter-spacing: 0.18em;
  padding: 0.55rem 1.2rem; border-radius: 999px;
  cursor: default; transition: color 0.3s ease, border-color 0.3s ease;
}
.loja-pill.active { color: #000; background: #fff; border-color: #fff; }

/* Grid de produtos */
.loja-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px;
  max-width: 1200px; margin: 0 auto;
}
.loja-card { background: #050505; overflow: hidden; }
.loja-ph {
  aspect-ratio: 4 / 5; position: relative;
  background: linear-gradient(160deg, #161616 0%, #050505 80%);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 0.6rem;
  transition: border-color 0.4s ease;
}
.loja-card:hover .loja-ph { border-color: rgba(255,255,255,0.18); }
.loja-ph-em {
  font-family: 'ClassyVogue', Georgia, serif; font-style: italic;
  font-size: 1.4rem; color: #2e2e2e; letter-spacing: 0.08em;
}
.loja-ph-ref {
  font-family: 'NexaHeavy', Georgia, serif;
  font-size: 0.62rem; letter-spacing: 0.3em; color: #3a3a3a;
}
.loja-info { padding: 0.9rem 0.2rem 1.2rem; text-align: center; }
.loja-name {
  font-family: 'ClassyVogue', Georgia, serif;
  font-size: 1.1rem; letter-spacing: 0.06em; color: #e8e8e8;
}
.loja-price {
  margin-top: 0.4rem;
  font-family: 'NexaHeavy', Georgia, serif;
  font-size: 0.72rem; letter-spacing: 0.25em; color: #777;
}
.loja-frete {
  margin-top: 0.35rem;
  font-family: 'NexaHeavy', Georgia, serif;
  font-size: 0.62rem; letter-spacing: 0.22em; color: #555;
}

.loja-note {
  margin-top: 2.5rem; text-align: center;
  font-family: 'NexaHeavy', Georgia, serif;
  font-size: 0.65rem; letter-spacing: 0.3em; color: #444;
}

/* Mobile */
@media (max-width: 768px) {
  #loja { padding: 5.5rem 0.5rem 2rem; }
  body.loja-mode #loja { padding-top: 5.5rem; }
  .store-bar { padding: 1.4rem 1.2rem; }
  .store-title { font-size: 1.8rem; }
  .soon-overlay { top: 5.5rem; }
  .soon-title { font-size: 2rem; }
  .loja-grid { grid-template-columns: repeat(2, 1fr); gap: 3px; }
  .loja-ph-em { font-size: 1.1rem; }
}

/* ── Pop-up Em breve: trava a loja, só o voltar fica acessível ── */
.soon-overlay {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; top: 7rem; z-index: 150;
  background: rgba(0,0,0,0.92);
  align-items: center; justify-content: center;
}
body.soon-open { overflow: hidden; }
body.soon-open .soon-overlay { display: flex; }
body.soon-open .store-cart { display: none; }
.soon-title {
  font-family: 'ClassyVogue', Georgia, serif; font-style: italic; font-weight: normal;
  font-size: 3rem; letter-spacing: 0.08em; color: #e8e8e8;
  animation: soonIn 0.6s ease;
}
@keyframes soonIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── CTA / badge ── */
.loja-cta {
  display: block; width: 100%; max-width: 340px; margin: 1.2rem auto 0;
  background: #fff; color: #000; border: 1px solid #fff; border-radius: 999px;
  font-family: 'NexaHeavy', Georgia, serif;
  font-size: 0.75rem; letter-spacing: 0.25em;
  padding: 0.9rem 1rem; cursor: pointer;
  transition: opacity 0.3s ease, transform 0.2s ease;
}
.loja-cta:hover { opacity: 0.88; }
.loja-cta:active { transform: scale(0.98); }
.loja-cta-sm { max-width: 240px; padding: 0.7rem 1rem; font-size: 0.68rem; }
.cart-count {
  display: inline-block; min-width: 1.3em; text-align: center;
  background: #fff; color: #000; border-radius: 999px;
  font-size: 0.62rem; letter-spacing: 0; padding: 0.1em 0.3em; margin-left: 0.4em;
  vertical-align: 0.15em;
}

/* ── Detalhe do produto ── */
.pd-wrap {
  max-width: 1000px; margin: 0 auto; padding: 7rem 1.5rem 3rem;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: start;
}
.pd-main {
  background: #050505; border: 1px solid rgba(255,255,255,0.06);
  aspect-ratio: 4 / 5; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.pd-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pd-count {
  margin-top: 0.6rem; text-align: center;
  font-family: 'NexaHeavy', Georgia, serif;
  font-size: 0.62rem; letter-spacing: 0.3em; color: #555;
}
.pd-thumbs { display: flex; gap: 5px; margin-top: 0.6rem; flex-wrap: wrap; }
.pd-thumb {
  position: relative; width: 64px; height: 80px; padding: 0;
  background: #050505; border: 1px solid rgba(255,255,255,0.12); cursor: pointer;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb.active { border-color: #fff; }
.pd-num {
  position: absolute; left: 4px; bottom: 4px;
  background: rgba(0,0,0,0.75); color: #fff; border-radius: 999px;
  font-family: 'NexaHeavy', Georgia, serif; font-size: 0.6rem;
  min-width: 1.4em; text-align: center; padding: 0.15em 0.3em;
}
.pd-cat {
  font-family: 'NexaHeavy', Georgia, serif;
  font-size: 0.65rem; letter-spacing: 0.3em; color: #777;
}
.pd-title {
  font-family: 'ClassyVogue', Georgia, serif; font-weight: normal;
  font-size: 2.2rem; letter-spacing: 0.06em; color: #fff; margin-top: 0.5rem;
}
.pd-price {
  margin-top: 0.6rem;
  font-family: 'NexaHeavy', Georgia, serif;
  font-size: 1rem; letter-spacing: 0.15em; color: #e8e8e8;
}
.pd-desc {
  margin-top: 1rem; color: #aaa; font-size: 0.95rem; line-height: 1.7;
  white-space: pre-wrap;
}
.pd-frete {
  margin-top: 1.4rem; padding: 1rem;
  border: 1px solid rgba(255,255,255,0.12);
}
.pd-frete-tit {
  font-family: 'NexaHeavy', Georgia, serif;
  font-size: 0.65rem; letter-spacing: 0.3em; color: #777; margin-bottom: 0.7rem;
}
.pd-frete-row { display: flex; gap: 0.6rem; }
.pd-frete-row input {
  flex: 1; min-width: 0;
  background: #0a0a0a; border: 1px solid rgba(255,255,255,0.15);
  color: #e8e8e8; padding: 0.7rem 0.8rem;
  font-family: 'NexaHeavy', Georgia, serif; font-size: 0.75rem; letter-spacing: 0.15em;
}
.pd-frete-row .loja-cta { margin: 0; width: auto; }
.pd-frete-result {
  margin-top: 0.7rem; color: #aaa;
  font-family: 'NexaHeavy', Georgia, serif;
  font-size: 0.68rem; letter-spacing: 0.12em; line-height: 1.8;
}

/* ── Carrinho ── */
.cart-wrap { max-width: 720px; margin: 0 auto; padding: 0 1.5rem 3rem; }
.cart-row {
  display: flex; gap: 1rem; align-items: center;
  padding: 1rem 0; border-bottom: 1px solid #1a1a1a;
}
.cart-thumb { width: 64px; height: 80px; object-fit: cover; display: block; background: #050505; }
.cart-mid { flex: 1; min-width: 0; }
.cart-name { font-family: 'ClassyVogue', Georgia, serif; font-size: 1.05rem; color: #e8e8e8; }
.cart-foto {
  margin-top: 0.2rem;
  font-family: 'NexaHeavy', Georgia, serif;
  font-size: 0.62rem; letter-spacing: 0.25em; color: #777;
}
.cart-qty { display: flex; align-items: center; gap: 0.7rem; margin-top: 0.5rem; }
.cart-qty button {
  width: 26px; height: 26px; border-radius: 50%;
  background: none; border: 1px solid rgba(255,255,255,0.25);
  color: #fff; cursor: pointer; font-size: 0.9rem; line-height: 1;
}
.cart-qty span { font-family: 'NexaHeavy', Georgia, serif; font-size: 0.75rem; color: #fff; }
.cart-right { text-align: right; }
.cart-val { font-family: 'NexaHeavy', Georgia, serif; font-size: 0.8rem; color: #e8e8e8; }
.cart-rm {
  margin-top: 0.4rem; background: none; border: none; cursor: pointer;
  color: #555; font-size: 0.7rem; letter-spacing: 0.1em;
}
.cart-rm:hover { color: #fff; }
.cart-empty { text-align: center; color: #777; padding: 2rem 0; }
.cart-foot { margin-top: 1.5rem; }
.cart-line {
  display: flex; justify-content: space-between;
  font-family: 'NexaHeavy', Georgia, serif;
  font-size: 0.72rem; letter-spacing: 0.2em; color: #aaa; margin-bottom: 0.5rem;
}
.cart-total { color: #fff; font-size: 0.85rem; margin: 0.8rem 0 0.4rem; }

/* ── Checkout / andamento ── */
.co-wrap, .and-wrap { max-width: 560px; margin: 0 auto; padding: 0 1.5rem 3rem; }
.co-resumo {
  border: 1px solid rgba(255,255,255,0.12); padding: 1rem; margin-bottom: 1.4rem;
  font-size: 0.85rem; color: #aaa; line-height: 2;
}
.co-total { margin-top: 0.6rem; color: #fff; font-family: 'NexaHeavy', Georgia, serif; font-size: 0.75rem; letter-spacing: 0.15em; }
#co-form label {
  display: block; margin-bottom: 0.9rem;
  font-family: 'NexaHeavy', Georgia, serif;
  font-size: 0.65rem; letter-spacing: 0.25em; color: #777;
}
#co-form input {
  display: block; width: 100%; margin-top: 0.35rem;
  background: #0a0a0a; border: 1px solid rgba(255,255,255,0.15);
  color: #e8e8e8; padding: 0.75rem 0.8rem; font-size: 0.9rem; letter-spacing: 0.02em;
}
.co-row { display: flex; gap: 0.6rem; align-items: flex-end; margin-bottom: 0.9rem; }
.co-row label { flex: 1; margin-bottom: 0 !important; }
.co-row .loja-cta { margin: 0; width: auto; flex-shrink: 0; }
.co-row2 { display: flex; gap: 0.6rem; }
.co-row2 label { flex: 1; }
.co-addr, .co-erro {
  font-family: 'NexaHeavy', Georgia, serif;
  font-size: 0.68rem; letter-spacing: 0.12em; margin-bottom: 0.9rem;
}
.co-addr { color: #777; }
.co-erro { color: #ff9a9a; }
.and-line {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.8rem 0; border-bottom: 1px solid #1a1a1a;
  font-size: 0.85rem; color: #aaa;
}
.and-line span:first-child {
  font-family: 'NexaHeavy', Georgia, serif;
  font-size: 0.65rem; letter-spacing: 0.25em; color: #777; flex-shrink: 0;
}
.and-code {
  text-align: center;
  font-family: 'NexaHeavy', Georgia, serif;
  font-size: 1.1rem; letter-spacing: 0.2em; color: #fff;
  border: 1px solid rgba(255,255,255,0.2); padding: 1rem; margin-bottom: 1rem;
}
.and-vazio { text-align: center; color: #777; }

@media (max-width: 768px) {
  .pd-wrap { grid-template-columns: 1fr; padding: 6rem 0.5rem 2rem; }
  .pd-title { font-size: 1.7rem; }
}
