:root {
  --bg: #050505;
  --bg-soft: #101010;
  --panel: #161616;
  --panel-alt: #1f1f1f;
  --text: #f5f2ea;
  --muted: #bcae88;
  --line: rgba(212, 175, 55, 0.18);
  --gold: #d4af37;
  --gold-strong: #f1cf6c;
  --danger: #d66a6a;
  --success: #79d0a5;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

/* Reset simples para manter consistencia entre navegadores */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.92)),
    radial-gradient(circle at top left, rgba(212, 175, 55, 0.1), transparent 30%),
    radial-gradient(circle at top right, rgba(79, 98, 110, 0.14), transparent 28%),
    linear-gradient(180deg, #060606 0%, #111111 100%);
  min-height: 100vh;
}

body[data-page="armani"] {
  background:
    linear-gradient(rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.9)),
    radial-gradient(circle at top left, rgba(212, 175, 55, 0.14), transparent 30%),
    url("../assets/logo.png") center / cover fixed no-repeat;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.page-shell {
  padding-bottom: 48px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(5, 5, 5, 0.9);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: linear-gradient(145deg, rgba(15, 15, 15, 0.92), rgba(29, 29, 29, 0.92));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy strong,
.brand-copy span {
  display: block;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.8rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  color: #f0e7d2;
  font-size: 0.95rem;
  padding: 9px 10px;
  border-radius: 999px;
  transition: color 0.25s ease, transform 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold-strong);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.nav-pill {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(255, 255, 255, 0.02);
}

.account-menu {
  position: relative;
}

.account-menu > a::after {
  content: "▾";
  margin-left: 7px;
  font-size: 0.7rem;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 236px;
  padding: 8px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 14px;
  background: #11110f;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.38);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 30;
}

.account-dropdown-divider {
  height: 1px;
  margin: 6px 2px;
  background: rgba(212, 175, 55, 0.18);
}

.account-dropdown .account-admin-link {
  color: var(--gold-strong);
}

.account-menu:hover .account-dropdown,
.account-menu:focus-within .account-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.account-dropdown-header {
  display: grid;
  gap: 3px;
  padding: 9px 10px 11px;
  border-bottom: 1px solid var(--line);
}

.account-dropdown-header strong {
  font-size: 0.88rem;
}

.account-dropdown-header span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-dropdown a,
.account-dropdown button {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #f0e7d2;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  text-align: left;
}

.account-dropdown a:hover,
.account-dropdown button:hover {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-strong);
  transform: none;
}

.pix-qr-code {
  display: block;
  width: min(240px, 100%);
  margin: 16px auto;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.delivery-address-grid { margin-top: 10px; }
.admin-orders-list { display: grid; gap: 18px; }
.admin-order-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)); }
.admin-order-header { display: flex; justify-content: space-between; gap: 20px; align-items: start; padding-bottom: 18px; border-bottom: 1px solid rgba(212,175,55,.14); }
.admin-order-header h2 { margin: 8px 0 0; }
.admin-order-details { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 18px; padding-top: 18px; }
.admin-order-details > div { display: grid; gap: 7px; }
.admin-order-details span { color: var(--gold-strong); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.admin-order-details small { color: var(--muted); }

.hero {
  padding: 72px 0 36px;
}

.hero-panel,
.glass-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  overflow: hidden;
}

.hero-copy,
.hero-visual {
  padding: 42px;
}

.eyebrow {
  color: var(--gold-strong);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.hero h1,
.section-heading h2,
.page-title {
  margin: 14px 0;
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.hero p,
.section-heading p,
.page-subtitle,
.muted-text {
  color: #d8cfbc;
  line-height: 1.7;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn,
.btn-secondary,
.btn-danger,
.btn-ghost {
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  border-radius: 999px;
  padding: 13px 22px;
}

.btn {
  color: #070707;
  background: linear-gradient(135deg, var(--gold-strong), var(--gold));
  box-shadow: 0 14px 26px rgba(212, 175, 55, 0.22);
}

.btn-secondary,
.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.btn-danger {
  color: #fff;
  background: rgba(214, 106, 106, 0.22);
  border: 1px solid rgba(214, 106, 106, 0.32);
}

.btn:hover,
.btn-secondary:hover,
.btn-danger:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  display: grid;
  align-content: stretch;
  gap: 18px;
  background:
    radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.28), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.hero-showcase {
  position: relative;
  min-height: 280px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background:
    radial-gradient(circle at 50% 28%, rgba(212, 175, 55, 0.16), transparent 42%),
    #090909;
}

.hero-showcase img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  padding: 26px;
  object-fit: contain;
}

.hero-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.76));
}

.showcase-badge {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.showcase-badge strong {
  color: var(--gold-strong);
  font-size: 1.25rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.stat-card,
.feature-card,
.brand-card,
.product-card,
.summary-card,
.admin-card,
.info-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border-radius: var(--radius);
}

.stat-card {
  padding: 18px 20px;
}

.stat-card strong {
  display: block;
  font-size: 1.7rem;
  color: var(--gold-strong);
}

.grid-3,
.grid-4,
.feature-grid,
.brand-grid,
.product-grid,
.summary-grid,
.admin-grid,
.form-grid {
  display: grid;
  gap: 22px;
}

.grid-3,
.feature-grid,
.summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4,
.brand-grid,
.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.section {
  padding: 28px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 22px;
}

.feature-card,
.brand-card,
.summary-card,
.admin-card,
.info-card {
  padding: 24px;
}

.brand-card {
  min-height: 180px;
  position: relative;
  overflow: hidden;
}

.brand-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.24), transparent 70%);
}

.brand-card span,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--gold-strong);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.18);
  font-size: 0.85rem;
}

.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.product-image {
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  background: linear-gradient(135deg, #101010, #242424);
}

.product-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  flex: 1;
}

.product-content .button-row {
  margin-top: auto;
}

.product-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.product-price {
  color: var(--gold-strong);
  font-size: 1.25rem;
  font-weight: 700;
}

.detail-row {
  color: #d7c89d;
  font-size: 0.92rem;
  line-height: 1.6;
}

.tag-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stock-tag {
  color: #f5eedb;
  background: rgba(121, 208, 165, 0.1);
  border-color: rgba(121, 208, 165, 0.26);
}

.stock-tag.low {
  color: #ffe0aa;
  background: rgba(241, 176, 93, 0.12);
  border-color: rgba(241, 176, 93, 0.3);
}

.stock-tag.out {
  color: #ffd6d6;
  background: rgba(214, 106, 106, 0.14);
  border-color: rgba(214, 106, 106, 0.34);
}

.tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #f2ead8;
  font-size: 0.82rem;
}

.page-hero {
  padding: 52px 0 22px;
}

.page-banner {
  padding: 38px;
  display: grid;
  gap: 20px;
}

.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.catalog-filter-stack {
  display: grid;
  gap: 18px;
}

.catalog-tools {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.admin-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.admin-tab {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.24);
  color: #f5eedb;
  background: rgba(255, 255, 255, 0.03);
}

.admin-tab.active {
  color: #080808;
  background: linear-gradient(135deg, var(--gold-strong), var(--gold));
}

.filter-chip {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.24);
  color: #f5eedb;
  background: rgba(255, 255, 255, 0.03);
}

.filter-chip.active {
  color: #080808;
  background: linear-gradient(135deg, var(--gold-strong), var(--gold));
}

.form-card {
  width: min(560px, calc(100% - 32px));
  margin: 52px auto;
  padding: 32px;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field,
.field-full {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label,
.field-full label {
  color: #f4e8c3;
  font-weight: 600;
}

.input,
.select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: #080808;
  color: var(--text);
  outline: none;
  color-scheme: dark;
}

.select option {
  color: #f5f2ea;
  background: #080808;
}

.select option:checked,
.select option:hover {
  color: #070707;
  background: var(--gold-strong);
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.inline-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.option-toggle-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.option-toggle {
  cursor: pointer;
}

.option-checklist {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.option-checklist .tag,
.option-toggle {
  cursor: pointer;
}

.admin-choice-group {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.16);
  background: rgba(255, 255, 255, 0.03);
}

.taxonomy-card {
  display: grid;
  gap: 18px;
}

.taxonomy-block {
  display: grid;
  gap: 10px;
}

.input:focus,
.select:focus {
  border-color: rgba(241, 207, 108, 0.55);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.08);
}

.auth-note,
.empty-state,
.feedback {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: #f1e5c5;
}

.feedback.success {
  border-color: rgba(121, 208, 165, 0.3);
  color: #d9ffea;
}

.feedback.error {
  border-color: rgba(214, 106, 106, 0.4);
  color: #ffd6d6;
}

.cart-layout,
.payment-layout,
.admin-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.cart-layout > .summary-grid {
  grid-template-columns: minmax(0, 1fr);
}

.admin-layout {
  grid-template-columns: minmax(0, 1fr) minmax(440px, 0.86fr);
}

.admin-layout .admin-card,
.cart-item > div {
  min-width: 0;
}

#admin-products {
  overflow-x: auto;
}

#admin-products .order-table {
  min-width: 680px;
}

.admin-main-column,
.admin-side-column {
  display: grid;
  gap: 24px;
}

.admin-finance-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  margin-top: 8px;
}

.billing-filter {
  min-width: 210px;
}

.finance-kpi {
  display: block;
  margin-top: 12px;
  font-size: 2rem;
  color: var(--gold-strong);
}

.finance-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.finance-row:last-child {
  border-bottom: none;
}

.finance-negative {
  color: #ffb0b0;
}

.admin-profit-card {
  padding: 18px;
}

.admin-image-preview,
.product-gallery {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.admin-preview-thumb,
.product-thumb-image {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.16);
}

.product-thumb-button {
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 16px;
  cursor: pointer;
}

.product-thumb-button.active {
  border-color: rgba(241, 207, 108, 0.7);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.product-detail-layout {
  display: grid;
}

.product-detail-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  padding: 28px;
}

.product-detail-media {
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #101010, #242424);
  min-height: 520px;
}

.product-detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-content {
  display: grid;
  align-content: start;
  gap: 14px;
}

.product-purchase-form {
  margin-top: 10px;
}

.shipping-card {
  margin-top: 8px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(212, 175, 55, 0.16);
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
}

.shipping-card-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
}

.shipping-card-header h3,
.shipping-card-header h4 {
  margin: 8px 0 0;
}

.shipping-card-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.shipping-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shipping-input-wrap label {
  color: #f4e8c3;
  font-weight: 600;
}

.shipping-input {
  letter-spacing: 0.08em;
}

.shipping-action {
  min-width: 148px;
}

.shipping-result {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: #e9dcc0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shipping-result strong {
  color: var(--gold-strong);
  font-size: 1.15rem;
}

.shipping-options {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.shipping-options.compact {
  margin-top: 8px;
}

.shipping-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.14);
  background: rgba(0, 0, 0, 0.14);
  color: #f3ead2;
  cursor: pointer;
}

.shipping-option.static {
  grid-template-columns: 1fr;
  cursor: default;
}

.shipping-option input {
  margin-top: 4px;
}

.shipping-option span,
.shipping-option small {
  display: block;
}

.shipping-option small {
  margin-top: 4px;
  color: #d8cfbc;
  line-height: 1.5;
}

.shipping-result.success {
  border-color: rgba(212, 175, 55, 0.28);
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.12), transparent 34%),
    rgba(8, 8, 8, 0.92);
}

.shipping-result.error {
  border-color: rgba(214, 106, 106, 0.32);
  background: rgba(214, 106, 106, 0.08);
  color: #ffd7d7;
}

.cart-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 18px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.cart-thumb {
  width: 110px;
  height: 130px;
  object-fit: cover;
  border-radius: 16px;
}

.qty-control {
  width: 90px;
}

.summary-list,
.admin-list {
  display: grid;
  gap: 14px;
}

.summary-line,
.table-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.order-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

.order-table th,
.order-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.order-table th {
  color: var(--gold-strong);
  font-weight: 600;
}

.inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 42px;
  background: rgba(5, 5, 5, 0.82);
}

.store-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 255, 255, 0.025)),
    rgba(8, 8, 8, 0.84);
  box-shadow: var(--shadow);
}

.store-panel h2 {
  margin: 12px 0;
}

.store-panel address {
  min-width: 280px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  color: #f5eedb;
  background: rgba(255, 255, 255, 0.04);
  font-style: normal;
  line-height: 1.7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr;
  gap: 18px;
  padding: 34px 0;
}

.footer-grid h4 {
  color: var(--gold-strong);
  margin-bottom: 12px;
}

.footer-copy {
  padding: 0 0 24px;
  color: var(--muted);
}

.reveal {
  animation: fadeUp 0.8s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero-panel,
  .cart-layout,
  .payment-layout,
  .admin-layout,
  .admin-finance-grid,
  .product-detail-card,
  .footer-grid,
  .grid-4,
  .brand-grid,
  .product-grid,
  .grid-3,
  .feature-grid,
  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cart-layout > .summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy,
  .hero-visual,
  .page-banner,
  .feature-card,
  .brand-card,
  .summary-card,
  .admin-card,
  .info-card {
    padding: 26px;
  }
}

@media (max-width: 1120px) {
  .admin-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .header-bar,
  .section-heading,
  .shipping-card-header,
  .table-row,
  .summary-line {
    flex-direction: column;
    align-items: stretch;
  }

  .header-bar {
    display: grid;
  }

  .main-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
    width: 100%;
  }

  .main-nav a {
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.12);
    background: rgba(255, 255, 255, 0.025);
  }

  .hero-panel,
  .cart-layout,
  .payment-layout,
  .admin-layout,
  .admin-finance-grid,
  .product-detail-card,
  .shipping-card-form,
  .footer-grid,
  .grid-4,
  .brand-grid,
  .product-grid,
  .grid-3,
  .feature-grid,
  .summary-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-thumb {
    width: 100%;
    height: 220px;
  }

  .hero {
    padding-top: 40px;
  }

  .hero-copy,
  .hero-visual,
  .form-card,
  .page-banner {
    padding: 24px;
  }

  .catalog-tools {
    grid-template-columns: 1fr;
  }

  .inline-field {
    grid-template-columns: 1fr;
  }

  .hero-stats,
  .store-panel {
    grid-template-columns: 1fr;
  }

  .store-panel address {
    min-width: 0;
  }
}

/* ===================== Componentes da versao 2 ===================== */

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--gold-strong);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--gold);
  color: #111;
  font-weight: 700;
}

.skip-link:focus {
  left: 8px;
}

.footer-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

.footer-grid a:hover,
.legal-page a,
.auth-note a,
.feedback a,
.empty-state a {
  color: var(--gold-strong);
}

.empty-state a {
  text-decoration: underline;
}

/* Carregamento */
.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  grid-column: 1 / -1;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(212, 175, 55, 0.25);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Avisos flutuantes */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  max-width: calc(100% - 32px);
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #1b1b1b;
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.success {
  border-color: rgba(121, 208, 165, 0.5);
}

.toast.error {
  border-color: rgba(214, 106, 106, 0.6);
}

/* WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.07);
}

/* Produto */
.breadcrumb {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: var(--gold-strong);
}

.product-card h3 a:hover {
  color: var(--gold-strong);
}

.product-card.is-sold-out .product-image {
  filter: grayscale(0.8);
  opacity: 0.6;
}

.option-picker {
  border: 0;
  margin: 0;
  padding: 0;
}

.option-picker legend {
  margin-bottom: 10px;
  font-weight: 600;
}

.option-picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-picker-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-picker-grid label {
  min-width: 52px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
}

.option-picker-grid input:checked + label {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.18);
  color: var(--gold-strong);
  font-weight: 700;
}

.option-picker-grid input:focus-visible + label {
  outline: 2px solid var(--gold-strong);
}

/* Carrinho */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin: 8px 0;
}

.qty-stepper button {
  width: 38px;
  height: 38px;
  border: 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
}

.qty-stepper button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.qty-stepper span {
  min-width: 40px;
  text-align: center;
  font-weight: 700;
}

.link-button {
  border: 0;
  padding: 0;
  background: none;
  color: var(--gold-strong);
  text-decoration: underline;
  cursor: pointer;
}

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

.checkbox-line a {
  color: var(--gold-strong);
  text-decoration: underline;
}

/* Checkout */
#customer-form h2,
#checkout-root .admin-card h2 {
  margin-top: 0;
}

#delivery-address-fields {
  margin-top: 24px;
}

#checkout-root > * + * {
  margin-top: 20px;
}

.order-result {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.order-result .pix-qr-code {
  background: #fff;
  padding: 10px;
  border-radius: 12px;
}

.order-result textarea {
  width: 100%;
  font-family: monospace;
  font-size: 0.85rem;
}

/* Status de pedido */
.status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.status-paid,
.status-preparing {
  color: #f1cf6c;
  border-color: rgba(241, 207, 108, 0.5);
}

.status-shipped,
.status-delivered {
  color: var(--success);
  border-color: rgba(121, 208, 165, 0.5);
}

.status-cancelled,
.status-refunded,
.status-rejected {
  color: var(--danger);
  border-color: rgba(214, 106, 106, 0.5);
}

.status-pending {
  color: var(--muted);
}

.account-order {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.account-order summary {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.account-order summary::-webkit-details-marker {
  display: none;
}

.account-order .summary-list {
  margin-top: 12px;
}

/* Paginas legais */
.legal-page {
  max-width: 860px;
  padding: 36px;
  line-height: 1.7;
}

.legal-page h2 {
  margin-top: 28px;
  color: var(--gold-strong);
  font-size: 1.2rem;
}

.legal-page a {
  text-decoration: underline;
}

/* Admin */
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.admin-toolbar h2 {
  margin: 0;
}

.admin-toolbar .input,
.admin-toolbar .select {
  width: auto;
  min-width: 200px;
}

.table-scroll {
  overflow-x: auto;
}

.admin-product-cell {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 220px;
}

.admin-product-cell img {
  width: 48px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
}

.admin-preview-item {
  display: grid;
  gap: 6px;
  justify-items: center;
  position: relative;
}

.admin-preview-item .btn-danger {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 50%;
}

.admin-preview-item .btn-ghost {
  padding: 4px 10px;
  font-size: 0.8rem;
}

.admin-order-total {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.admin-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.admin-order-actions label {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-order-actions .select {
  width: auto;
}

@media (max-width: 720px) {
  .admin-order-total {
    justify-items: start;
  }

  .legal-page {
    padding: 22px;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
  }

  .account-order summary {
    grid-template-columns: 1fr auto;
  }
}

.muted-text a,
.admin-card p a {
  color: var(--gold-strong);
  text-decoration: underline;
}

/* Escolha da entrega no checkout */
.checkout-shipping-form {
  margin-top: 16px;
}
