/* ============================================================
   Nova Arte's Tech S.A. — Loja (catálogo, carrinho, checkout)
   Usa as mesmas variáveis de cor/fonte de style.css - sem cor nova aqui,
   só os componentes que faltavam (card de produto com preço, carrinho,
   formulário de checkout).
   ============================================================ */

.nav-cart {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  color: var(--white-soft);
  text-decoration: none;
  transition: var(--transition);
}
.nav-cart:hover { color: var(--gold-light); }
.nav-cart-count {
  position: absolute; top: -2px; right: -4px;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: var(--purple); color: var(--white);
  font-family: var(--font-body); font-size: 0.65rem; font-weight: 800;
}

.loja-main { padding: 120px 0 80px; min-height: 60vh; }

.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: 0.82rem; color: var(--white-soft);
  margin-bottom: 20px;
}
.breadcrumbs a { color: var(--white-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-light); }
.breadcrumbs__sep { opacity: 0.5; }
.breadcrumbs [aria-current="page"] { color: var(--gold-light); }

.loja-filters-panel {
  background: var(--bg-card); border: 1px solid rgba(220,184,78,0.14); border-radius: 16px;
  padding: 22px 24px; margin: 0 0 36px;
}
.loja-toolbar { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: flex-end; }
.loja-toolbar-field { display: flex; flex-direction: column; gap: 7px; flex: 1 1 200px; min-width: 0; }
.loja-toolbar-field label { font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; color: var(--white-soft); text-transform: uppercase; letter-spacing: 0.03em; }
.loja-toolbar-field input {
  padding: 11px 14px; border-radius: 10px; width: 100%; box-sizing: border-box;
  background: var(--bg-dark); border: 1px solid rgba(220,184,78,0.2); color: var(--white);
  font-family: var(--font-body); font-size: 0.88rem;
}
.loja-toolbar-field input:focus { outline: none; border-color: var(--gold-mid); }
.loja-toolbar-field--search { flex: 2 1 260px; }
.loja-toolbar-prices { display: flex; align-items: center; gap: 8px; }
.loja-toolbar-prices input { width: 0; flex: 1; }
.loja-toolbar-prices-sep { color: var(--white-soft); flex-shrink: 0; }

.loja-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding-top: 18px; border-top: 1px solid rgba(220,184,78,0.12); }

.loja-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.loja-card {
  background: var(--bg-card);
  border: 1px solid rgba(220,184,78,0.14);
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: var(--transition);
}
.loja-card:hover { border-color: rgba(220,184,78,0.4); transform: translateY(-4px); }
.loja-card-img { display: block; aspect-ratio: 1; overflow: hidden; background: var(--bg-dark); }
.loja-card-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.loja-card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.loja-card-name { font-family: var(--font-title); font-size: 1.02rem; font-weight: 700; color: var(--white); margin: 0; }
.loja-card-desc { font-family: var(--font-body); font-size: 0.85rem; color: var(--white-soft); margin: 0; flex: 1; }
.loja-card-price { font-family: var(--font-title); font-size: 1.2rem; font-weight: 800; color: var(--gold-light); margin: 4px 0 0; }
.loja-card-price-muted { font-size: 0.85rem; font-weight: 700; color: var(--white-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.loja-card-btn {
  margin-top: 10px; width: 100%; padding: 11px; border-radius: 10px; border: none;
  background: var(--purple); color: var(--white); font-family: var(--font-body);
  font-weight: 700; font-size: 0.88rem; cursor: pointer; transition: var(--transition);
  display: block; text-align: center; text-decoration: none; box-sizing: border-box;
}
.loja-card-btn:hover { background: var(--purple-mid); box-shadow: 0 0 24px var(--purple-glow); }
.loja-card-btn:disabled { opacity: 0.6; cursor: default; }
.loja-card-btn-wa { background: #1f9e58; }
.loja-card-btn-wa:hover { background: #18834a; box-shadow: 0 0 24px rgba(31,158,88,0.4); }

.loja-empty {
  text-align: center; padding: 60px 20px; color: var(--white-soft);
  font-family: var(--font-body);
}
.loja-empty strong { display: block; color: var(--gold-light); font-family: var(--font-title); font-size: 1.1rem; margin-bottom: 8px; }

/* ---------- Carrinho ---------- */
.cart-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.cart-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-card); border: 1px solid rgba(220,184,78,0.14); border-radius: 14px;
  padding: 14px 16px;
}
.cart-item-img { width: 68px; height: 68px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--bg-dark); }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-family: var(--font-title); font-weight: 700; color: var(--white); font-size: 0.95rem; }
.cart-item-note { font-family: var(--font-body); font-size: 0.78rem; color: var(--white-soft); margin-top: 2px; }
.cart-item-price { font-family: var(--font-body); color: var(--gold-light); font-weight: 700; font-size: 0.88rem; margin-top: 4px; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; }
.cart-item-qty button {
  width: 28px; height: 28px; border-radius: 8px; border: 1px solid rgba(220,184,78,0.3);
  background: var(--bg-dark); color: var(--white); font-size: 1rem; cursor: pointer;
}
.cart-item-qty span { min-width: 20px; text-align: center; font-family: var(--font-body); font-weight: 700; color: var(--white); }
.cart-item-remove { background: none; border: none; color: var(--white-soft); cursor: pointer; padding: 6px; }
.cart-item-remove:hover { color: #ff6b6b; }

.cart-summary {
  background: var(--bg-card); border: 1px solid rgba(220,184,78,0.2); border-radius: 16px;
  padding: 24px; max-width: 380px; margin-left: auto;
}
.cart-summary-row { display: flex; justify-content: space-between; font-family: var(--font-body); color: var(--white-soft); margin-bottom: 8px; }
.cart-summary-total { display: flex; justify-content: space-between; font-family: var(--font-title); font-size: 1.3rem; font-weight: 800; color: var(--gold-light); margin: 14px 0 20px; }

/* ---------- Checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .checkout-grid { grid-template-columns: 1fr; } }

.checkout-field { margin-bottom: 16px; }
.checkout-field label { display: block; font-family: var(--font-body); font-size: 0.82rem; font-weight: 700; color: var(--white-soft); margin-bottom: 6px; }
.checkout-field input, .checkout-field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: var(--bg-card); border: 1px solid rgba(220,184,78,0.2); color: var(--white);
  font-family: var(--font-body); font-size: 0.92rem;
}
.checkout-field input:focus, .checkout-field textarea:focus { outline: none; border-color: var(--gold-mid); }

.checkout-payment-options { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 24px; }
.checkout-payment-option {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card); border: 1px solid rgba(220,184,78,0.14); border-radius: 10px;
  padding: 12px 14px; cursor: pointer; font-family: var(--font-body); color: var(--white-soft);
}
.checkout-payment-option input { accent-color: var(--purple); }
.checkout-payment-option.active { border-color: var(--gold-mid); color: var(--white); }

.checkout-status { margin-top: 16px; font-family: var(--font-body); font-size: 0.88rem; }
.checkout-status.error { color: #ff6b6b; }
.checkout-status.ok { color: var(--blue-mid); }

.pix-box { text-align: center; padding: 20px; background: var(--bg-card); border-radius: 14px; margin-top: 16px; }
.pix-box img { max-width: 220px; border-radius: 8px; margin: 0 auto 12px; }
.pix-copy { word-break: break-all; font-size: 0.75rem; color: var(--white-soft); background: var(--bg-dark); padding: 10px; border-radius: 8px; }

/* ---------- Detalhe do produto ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail__media { border-radius: 18px; overflow: hidden; aspect-ratio: 1; background: var(--bg-card); }
.product-detail__media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-detail__cat { font-family: var(--font-body); font-size: 0.82rem; color: var(--white-soft); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 6px; }
.product-detail__info h1 { font-family: var(--font-title); font-size: 1.8rem; color: var(--white); margin: 0 0 10px; }
.product-detail__price { font-family: var(--font-title); font-size: 1.7rem; font-weight: 800; color: var(--gold-light); margin: 0 0 16px; }
.product-detail__price-muted { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--white-soft); }
.product-detail__desc { font-family: var(--font-body); color: var(--white-soft); line-height: 1.6; margin: 0 0 24px; }

.variant-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-btn {
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  background: var(--bg-dark); border: 1px solid rgba(220,184,78,0.25); color: var(--white-soft);
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; transition: var(--transition);
}
.variant-btn:hover { border-color: var(--gold-mid); color: var(--white); }
.variant-btn.active { background: var(--purple); border-color: var(--purple); color: var(--white); }

.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.qty-row label { font-family: var(--font-body); font-size: 0.85rem; font-weight: 700; color: var(--white-soft); }
.qty-control { display: flex; align-items: center; gap: 10px; }
.qty-control button {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(220,184,78,0.3);
  background: var(--bg-dark); color: var(--white); font-size: 1.1rem; cursor: pointer;
}
.qty-control input {
  width: 52px; text-align: center; padding: 8px 6px; border-radius: 8px;
  background: var(--bg-card); border: 1px solid rgba(220,184,78,0.2); color: var(--white);
  font-family: var(--font-body); font-weight: 700;
}

.product-detail__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.product-detail__actions .btn-primary, .product-detail__actions .btn-outline { flex: 1; min-width: 200px; text-align: center; }
.product-added-alert {
  margin-top: 14px; padding: 12px 14px; border-radius: 10px;
  background: rgba(31,158,88,0.15); border: 1px solid rgba(31,158,88,0.4);
  color: #4fd184; font-family: var(--font-body); font-size: 0.85rem;
  display: none;
}
.product-added-alert.is-visible { display: block; }
