:root {
  --bg: #0c0b0a;
  --panel: #161412;
  --panel-light: #1a1815;
  --border: #2a271f;
  --gold: #c9a227;
  --wine: #7a2340;
  --wine-text: #f3d9e3;
  --text: #f2ead9;
  --text-muted: #a89a78;
  --text-faint: #5f5a4c;
  --green: #639922;
  --green-text: #97c459;
  --red: #a32d2d;
  --red-text: #f09595;
  --font-body:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-voice: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

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

/* ---------- Layout centralizado ---------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: 24px;
}

.promo-bar {
  background: var(--wine);
  color: var(--wine-text);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 16px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}
.brand {
  font-family: var(--font-voice);
  font-size: 26px;
  color: var(--gold);
  white-space: nowrap;
  text-decoration: none;
}
.search-box {
  flex: 1;
  max-width: 460px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text-muted);
  font-size: 18px;
}
.search-box:focus-within {
  border-color: var(--gold);
}
.search-box input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 16px;
  height: 42px;
}
.nav-categories {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  padding-block: 4px 0;
}
.nav-categories button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 12px 0;
  border-bottom: 2px solid transparent;
}
.nav-categories button:hover {
  color: var(--gold);
}
.nav-categories button.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }
  .search-box {
    order: 3;
    max-width: none;
    flex-basis: 100%;
  }
  .nav-categories {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
  }
  .nav-categories button {
    white-space: nowrap;
  }
}
.cart-icon-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--wine);
  color: var(--wine-text);
  font-size: 11px;
  border-radius: 10px;
  padding: 1px 6px;
}

/* ---------- Loja: coluna de filtros + vitrine ---------- */
.shop-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  padding-block: 32px 48px;
}
@media (max-width: 900px) {
  .shop-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-block: 20px 36px;
  }
}
.sidebar-section {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.sidebar-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 12px;
}
.price-range {
  display: flex;
  gap: 10px;
}
.price-range label {
  flex: 1;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.price-range input {
  width: 100%;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 8px;
  font-size: 16px;
}
.price-range input:focus {
  outline: none;
  border-color: var(--gold);
}
@media (max-width: 900px) {
  .sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
  }
  .sidebar-section {
    border: none;
    padding: 0;
    margin: 0;
  }
}

.shop-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  scroll-margin-top: 16px;
}
.shop-title {
  font-family: var(--font-voice);
  font-weight: 400;
  font-size: 28px;
  color: var(--text);
  margin: 0;
}
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.result-count {
  font-size: 12px;
  color: var(--text-muted);
}

.best-sellers {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.best-sellers-title {
  font-family: var(--font-voice);
  font-weight: 400;
  font-size: 30px;
  color: var(--gold);
  margin: 0 0 20px;
}

.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  font-size: 12px;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 20px;
  padding: 6px 14px;
  min-height: 36px;
  background: none;
  cursor: pointer;
}
.chip.active {
  background: var(--gold);
  color: var(--bg);
}
.sort-select {
  background: var(--panel);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
}

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 20px;
}
@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .container {
    padding-inline: 16px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 12px;
  }
  .card-price {
    font-size: 17px;
  }
  .best-sellers-title,
  .shop-title {
    font-size: 24px;
  }
}
.product-card {
  cursor: pointer;
  color: var(--text);
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  outline: none;
}
.product-card:focus-visible {
  box-shadow: 0 0 0 2px var(--gold);
}
.product-thumb {
  position: relative;
  background: #fff;
  border-radius: 10px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}
.product-card:hover .product-thumb {
  box-shadow:
    0 0 0 2px var(--gold),
    0 0 18px rgba(201, 162, 39, 0.45);
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform 0.3s ease;
}
.product-card:hover .product-thumb img {
  transform: scale(1.05);
}
.thumb-placeholder {
  color: var(--gold);
  font-size: 64px;
}
.badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 5px;
}
.badge-wine {
  background: var(--wine);
  color: var(--wine-text);
}
.badge-gold {
  background: var(--gold);
  color: var(--bg);
}
.product-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}
.card-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 8px 0 2px;
}
.pix-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  margin: 0;
}
.pix-price span {
  font-weight: 400;
  font-size: 12px;
}
.btn-buy {
  margin-top: auto;
  align-self: stretch;
  background: var(--gold);
  color: var(--bg);
  border: none;
  border-radius: 6px;
  height: 38px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.15s;
}
.btn-buy:hover {
  filter: brightness(1.1);
}
.btn-buy.added {
  background: var(--green);
  color: #fff;
}
.product-info .product-installments {
  margin-bottom: 12px;
}
.badge-source {
  background: var(--wine);
  color: var(--wine-text);
  display: flex;
  align-items: center;
  gap: 4px;
}
.product-name {
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}
.product-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  margin: 0;
}
.product-price small {
  font-size: 12px;
  font-weight: 400;
}
.pix-tag {
  display: inline-block;
  vertical-align: middle;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 5px;
  padding: 2px 6px;
}
.price-pix .pix-tag {
  font-size: 12px;
  padding: 3px 8px;
  margin-left: 8px;
}
.product-installments {
  font-size: 12px;
  color: var(--text-muted);
  margin: 2px 0 0;
}

/* ---------- Modal / popup (sobreposto à tela, com fundo desfocado) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  min-height: 100vh;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  overflow-y: auto;
}
.modal-box {
  background: var(--bg);
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 24px;
  max-width: 420px;
  width: 100%;
}

/* ---------- Product detail ---------- */
.detail-image {
  background: #fff;
  border-radius: 8px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  overflow: hidden;
}
.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}
.detail-name {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
}
.detail-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 16px;
}
.price-block {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-bottom: 16px;
}
.price-pix {
  font-size: 26px;
  font-weight: 600;
  color: var(--gold);
  margin: 0;
}
.price-note {
  font-size: 12px;
  color: var(--text-muted);
  margin: 4px 0 0;
}
.price-fine-print {
  font-size: 12px;
  color: var(--text-muted);
  margin: 8px 0 0;
}

.installments-list {
  margin: 10px 0;
}
.installment-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 6px;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
}
.installment-row.open {
  border-color: var(--gold);
}
.installment-detail {
  font-size: 12px;
  color: var(--text-muted);
  padding: 0 14px 10px;
}

.btn {
  width: 100%;
  border-radius: 8px;
  height: 42px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}
.btn-outline {
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
}
.btn-solid {
  background: var(--gold);
  border: none;
  color: var(--bg);
  font-weight: 600;
}

/* ---------- Aviso "Adicionado ao carrinho" ---------- */
body.no-scroll {
  overflow: hidden;
}
.cart-icon-btn {
  padding: 4px;
}
.cart-toast {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top, 0px));
  right: 16px;
  z-index: 1200;
  width: min(360px, calc(100vw - 32px));
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: toast-in 0.25s ease;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
}
.cart-toast-thumb,
.drawer-item-thumb {
  flex: none;
  width: 64px;
  height: 64px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  overflow: hidden;
}
.cart-toast-thumb img,
.drawer-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.cart-toast-info {
  flex: 1;
  min-width: 0;
}
.cart-toast-info p {
  margin: 0 0 4px;
}
.cart-toast-name {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text);
}
.cart-toast-price {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
}
.cart-toast-price span {
  font-weight: 400;
  font-size: 12px;
}
.cart-toast-ok {
  font-size: 13px;
  font-weight: 700;
  color: var(--green-text);
}
.cart-toast-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--gold);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}
.cart-toast-close,
.drawer-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.cart-toast-close:hover,
.drawer-close:hover {
  color: var(--gold);
}

/* ---------- Carrinho em aba lateral ---------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0);
  transition: background 0.25s ease;
}
.drawer-overlay.open {
  background: rgba(0, 0, 0, 0.6);
}
.cart-drawer {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(440px, 100%);
  background: var(--bg);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  padding-top: env(safe-area-inset-top, 0px);
}
.drawer-overlay.open .cart-drawer {
  transform: translateX(0);
}
@media (max-width: 640px) {
  .cart-drawer {
    width: 100%;
    border-left: none;
  }
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.drawer-header h2 {
  font-family: var(--font-voice);
  font-weight: 400;
  font-size: 22px;
  color: var(--gold);
  margin: 0;
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 20px calc(20px + env(safe-area-inset-bottom, 0px));
}
.drawer-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.drawer-item-info {
  flex: 1;
  min-width: 0;
}
.drawer-item-name {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.qty-stepper button {
  background: none;
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 30px;
  font-size: 18px;
  cursor: pointer;
}
.qty-stepper button:hover {
  color: var(--gold);
}
.qty-stepper span {
  min-width: 24px;
  text-align: center;
  font-size: 13px;
}
.drawer-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}
.drawer-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 0;
}
.drawer-remove:hover {
  color: var(--red-text);
}
.drawer-item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
}
.drawer-summary {
  padding-top: 16px;
}
.drawer-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 12px;
}
.drawer-row small {
  color: var(--text-muted);
}
.drawer-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 4px 0 8px;
}
.drawer-shipping {
  padding: 14px 0;
  margin-bottom: 12px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cep-form {
  display: flex;
  gap: 8px;
}
.cep-form input {
  flex: 1;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 0 12px;
  height: 40px;
  font-size: 16px;
}
.cep-form input:focus {
  outline: none;
  border-color: var(--gold);
}
.cep-form button {
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 6px;
  padding: 0 16px;
  font-weight: 600;
  cursor: pointer;
}
.shipping-msg {
  font-size: 12px;
  color: var(--text-muted);
  margin: 10px 0 0;
}
.shipping-error {
  color: var(--red-text);
}
.shipping-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}
.shipping-option.selected {
  border-color: var(--gold);
}
.shipping-option input {
  accent-color: var(--gold);
}
.shipping-name {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.shipping-name small {
  color: var(--text-muted);
  font-size: 12px;
}
.shipping-price {
  font-weight: 700;
}
.drawer-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  margin-top: 4px;
}
.drawer-card-total {
  font-size: 12px;
  color: var(--text-muted);
  margin: 6px 0 16px;
  line-height: 1.6;
}
.drawer-summary .btn-solid {
  height: 48px;
  margin-top: 6px;
}
.drawer-continue {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: underline;
}

/* ---------- Cart page ---------- */
.cart-page {
  max-width: 480px;
  margin: 30px auto;
  padding: 0 16px;
}
.cart-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
}
.cart-remove-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 20px;
  height: 20px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.cart-remove-btn:hover {
  background: #b23b3b;
  border-color: #b23b3b;
  color: #fff;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 22px;
  font-weight: 600;
  color: var(--gold);
}

/* ---------- Admin ---------- */
.admin-panel {
  max-width: 640px;
  margin: 30px auto;
  padding: 0 16px;
}
.review-card {
  background: var(--panel);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}
.review-pair {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}
.review-item {
  flex: 1;
  display: flex;
  gap: 8px;
  align-items: center;
}
.review-thumb {
  width: 40px;
  height: 40px;
  background: var(--panel-light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.review-actions {
  display: flex;
  gap: 8px;
}
.review-actions button {
  flex: 1;
  border-radius: 6px;
  height: 34px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.btn-approve {
  background: none;
  border: 1px solid var(--green);
  color: var(--green-text);
}
.btn-reject {
  background: none;
  border: 1px solid var(--red);
  color: var(--red-text);
}

.login-box {
  max-width: 320px;
  margin: 60px auto;
  text-align: center;
}
.login-box input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
}

.empty-state {
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* ---------- Lightbox de imagem ---------- */
.lightbox-overlay {
  z-index: 1100;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover {
  background: var(--gold);
  color: var(--bg);
}

/* ---------- Paginação ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding-top: 36px;
  flex-wrap: wrap;
}
.page-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 6px;
  min-width: 34px;
  height: 34px;
  font-size: 13px;
  cursor: pointer;
}
.page-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.page-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
  font-weight: 600;
}
.page-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Foto que falhou: enquanto tenta de novo, não mostra o nome do produto
   (texto alternativo) por cima do quadro branco (app.js: retryImage). */
.product-thumb img,
.detail-image img,
.drawer-item-thumb img,
.cart-toast-thumb img {
  color: transparent;
}
.drawer-item-thumb .thumb-placeholder,
.cart-toast-thumb .thumb-placeholder {
  font-size: 28px;
}

/* Categoria/gênero sem produtos fica escondido (app.js: hideEmptyFilters). */
[hidden] {
  display: none !important;
}

/* No celular o menu de categorias rola para o lado: o esmaecido na borda
   mostra que tem mais opções. */
@media (max-width: 720px) {
  .nav-categories {
    -webkit-mask-image: linear-gradient(to right, #000 82%, transparent);
    mask-image: linear-gradient(to right, #000 82%, transparent);
    padding-right: 40px;
  }
}

.retry-btn {
  max-width: 220px;
  margin: 0 auto;
}

.drawer-remove {
  display: inline-flex;
  padding: 4px;
}

.login-box input {
  font-size: 16px;
}

/* ---------- Rodapé ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding-top: 36px;
  font-size: 14px;
  color: var(--text-muted);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 28px;
}
.footer-brand p {
  margin: 10px 0 0;
  line-height: 1.6;
  max-width: 320px;
}
.footer-brand .brand {
  font-size: 22px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a:hover {
  color: var(--gold);
}
.footer-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 2px;
}
.footer-copy {
  font-size: 12px;
  padding-block: 28px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* ---------- Páginas de texto (trocas, privacidade) ---------- */
.back-link {
  color: var(--text-muted);
  font-size: 14px;
}
.back-link:hover {
  color: var(--gold);
}
.policy-page {
  max-width: 720px;
  padding-block: 40px 56px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}
.policy-page h1 {
  font-family: var(--font-voice);
  font-weight: 400;
  font-size: 34px;
  color: var(--gold);
  margin: 0 0 4px;
}
.policy-page h2 {
  font-size: 18px;
  margin: 32px 0 8px;
}
.policy-page p,
.policy-page li {
  color: var(--text-muted);
}
.policy-page strong {
  color: var(--text);
}
.policy-page a {
  color: var(--gold);
  text-decoration: underline;
}
.policy-updated {
  font-size: 13px;
  margin: 0 0 24px;
}
.policy-tip {
  border-left: 3px solid var(--gold);
  padding-left: 14px;
}
