:root {
  --bg: #0d0b08;
  --panel: #171411;
  --panel-2: #201c18;
  --line: rgba(255, 209, 102, 0.18);
  --text: #f7f0e4;
  --muted: #c9baa3;
  --gold: #ffca55;
  --gold-2: #f2b12f;
  --red: #d9413a;
  --green: #2aa968;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(217, 65, 58, 0.12), transparent 28%),
    radial-gradient(circle at top left, rgba(255, 202, 85, 0.14), transparent 24%),
    var(--bg);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

.site-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 24px 48px;
}

.hero,
.content-panel,
.checkout-panel,
.card-block {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  box-shadow: var(--shadow);
}

.hero {
  border-radius: 28px;
  padding: 28px;
  display: grid;
  gap: 24px;
}

.hero-public {
  grid-template-columns: 1.3fr 0.7fr;
}

.hero-brand {
  display: flex;
  gap: 20px;
  align-items: center;
}

.hero-logo {
  width: 118px;
  height: 118px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
}

.eyebrow,
.section-tag {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1,
.section-head h2,
.card-block h3 {
  margin: 0;
}

.hero h1 {
  font-size: 2.35rem;
}

.hero-copy {
  color: var(--muted);
  margin: 10px 0 0;
  line-height: 1.5;
  max-width: 56ch;
}

.hero-meta {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.meta-card,
.summary-card {
  border-radius: 18px;
  padding: 18px;
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.meta-label,
.summary-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.meta-card strong,
.summary-card strong {
  font-size: 1.05rem;
  color: var(--text);
}

.main-grid {
  display: grid;
  gap: 24px;
  margin-top: 24px;
  grid-template-columns: minmax(0, 1.6fr) minmax(340px, 0.9fr);
}

.admin-layout {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.content-panel,
.checkout-panel {
  border-radius: 24px;
  padding: 22px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head.compact {
  margin-bottom: 14px;
}

.filters,
.form-grid,
.button-row,
.summary-grid {
  display: grid;
  gap: 14px;
}

.filters {
  grid-template-columns: 2fr 1fr 1fr;
  margin-bottom: 16px;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid .span-2 {
  grid-column: span 2;
}

label span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

input,
select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #101012;
  color: var(--text);
  padding: 13px 14px;
}

input:focus,
select:focus {
  outline: 2px solid rgba(255, 202, 85, 0.35);
  border-color: rgba(255, 202, 85, 0.45);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.combo-section {
  margin: 18px 0 22px;
}

.product-card,
.cart-item,
.table-wrap table {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.06);
}

.product-card {
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-card .product-code {
  color: var(--gold);
  font-weight: 700;
}

.product-card .product-name {
  min-height: 52px;
  line-height: 1.35;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  gap: 10px;
}

.product-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.combo-card {
  gap: 12px;
}

.combo-items {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.93rem;
}

.combo-item-line,
.combo-summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.combo-summary {
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.92rem;
  color: var(--muted);
}

.primary-button,
.secondary-button,
.ghost-button {
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.primary-button {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #241809;
  font-weight: 800;
}

.secondary-button {
  background: rgba(255, 202, 85, 0.14);
  color: var(--gold);
  border: 1px solid rgba(255, 202, 85, 0.24);
}

.ghost-button {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.08);
}

.ghost-button-danger {
  color: #ffb2ad;
}

.button-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.cart-items {
  display: grid;
  gap: 12px;
}

.cart-item {
  border-radius: 16px;
  padding: 14px;
}

.cart-line-top,
.cart-line-bottom,
.qty-control {
  display: flex;
  align-items: center;
}

.cart-line-top,
.cart-line-bottom {
  justify-content: space-between;
  gap: 12px;
}

.cart-line-bottom {
  margin-top: 10px;
}

.qty-control {
  gap: 8px;
}

.qty-control strong {
  min-width: 2rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.qty-control button {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #201b16;
  color: var(--text);
  cursor: pointer;
}

.quote-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.quote-summary > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
}

.quote-summary strong {
  color: var(--text);
}

.quote-summary .total-line {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 1.05rem;
}

.feedback-box,
.status-inline,
.empty-state {
  border-radius: 14px;
  padding: 14px 16px;
}

.status-inline,
.empty-state {
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  border: 1px dashed rgba(255,255,255,0.08);
}

.feedback-box {
  margin-top: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.feedback-box.success {
  border-color: rgba(42, 169, 104, 0.35);
  background: rgba(42, 169, 104, 0.12);
}

.feedback-box.error {
  border-color: rgba(217, 65, 58, 0.35);
  background: rgba(217, 65, 58, 0.12);
}

.whatsapp-action {
  display: grid;
  gap: 10px;
  border-color: rgba(37, 211, 102, 0.42);
  background: rgba(37, 211, 102, 0.1);
}

.whatsapp-action p {
  margin: 0;
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  background: #25d366;
  color: #071b10;
  font-weight: 800;
  text-decoration: none;
}

.whatsapp-button:hover {
  background: #4be582;
}

.hidden {
  display: none;
}

.table-wrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

th {
  background: rgba(255, 202, 85, 0.08);
  color: var(--gold);
  font-size: 0.92rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.badge-ok {
  background: rgba(42, 169, 104, 0.16);
  color: #8ee7b7;
}

.badge-erro {
  background: rgba(217, 65, 58, 0.16);
  color: #ffb2ad;
}

@media (max-width: 980px) {
  .hero-public,
  .main-grid,
  .filters,
  .button-row,
  .form-grid,
  .hero-meta {
    grid-template-columns: 1fr;
  }

  .hero-brand {
    align-items: flex-start;
  }

  .hero h1 {
    font-size: 2rem;
  }
}

/* Login administrativo */
.admin-shell {
  max-width: 980px;
  margin: 0 auto;
}

.hero-admin {
  margin-bottom: 1.4rem;
  background:
    radial-gradient(circle at 12% 10%, rgba(246, 200, 95, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(31, 26, 21, 0.98), rgba(17, 15, 13, 0.98));
}

.admin-layout {
  display: grid;
  gap: 1.2rem;
}

.admin-layout .content-panel:first-child {
  border-color: rgba(246, 200, 95, 0.28);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.25);
}

.admin-layout .content-panel:first-child .section-head {
  border-bottom: 1px solid rgba(246, 200, 95, 0.16);
  padding-bottom: 0.85rem;
}

.admin-layout input {
  min-height: 48px;
  font-size: 1rem;
}

.admin-layout .primary-button,
.admin-layout .ghost-button {
  min-height: 46px;
  font-size: 1rem;
}

#programAccess {
  line-height: 1.5;
}

#programAccess .button-row {
  margin-top: 0.85rem;
}

#programAccess .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
