:root {
  color-scheme: light;
  --ink: #151515;
  --muted: #6f6a61;
  --paper: #fffdf8;
  --panel: #ffffff;
  --line: #ded6ca;
  --champagne: #c6a15b;
  --champagne-dark: #8b6725;
  --graphite: #222222;
  --soft: #f4efe7;
  --success: #17684f;
  --danger: #a9473f;
  --shadow: 0 24px 70px rgba(21, 21, 21, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

button,
input,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid rgba(222, 214, 202, 0.75);
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.cart-button,
.hero-actions,
.toolbar,
.member-tabs,
.qty-tools {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(198, 161, 91, 0.65);
  border-radius: 8px;
  background: var(--graphite);
  color: var(--champagne);
  font-size: 13px;
}

.nav-links {
  justify-content: center;
  gap: clamp(16px, 3vw, 38px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.nav-links a:hover {
  color: var(--champagne-dark);
}

.cart-button,
.quiet-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.cart-button {
  gap: 10px;
  padding: 0 14px;
}

.quiet-button {
  padding: 0 16px;
}

.cart-button strong {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--champagne);
  color: var(--ink);
  font-size: 13px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
  min-height: 690px;
  padding: clamp(56px, 7vw, 96px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(110deg, rgba(21, 21, 21, 0.96), rgba(35, 31, 25, 0.9)),
    radial-gradient(circle at 78% 44%, rgba(198, 161, 91, 0.28), transparent 32%);
  color: var(--paper);
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--champagne);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 253, 248, 0.78);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.58;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-action,
.secondary-action,
.add-button,
.qty-button {
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.primary-action {
  background: var(--champagne);
  color: var(--ink);
}

.secondary-action {
  border: 1px solid rgba(255, 253, 248, 0.28);
  color: var(--paper);
}

.primary-action.full {
  width: 100%;
}

.hero-visual {
  margin: 0;
}

.hero-visual img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border: 1px solid rgba(198, 161, 91, 0.45);
  border-radius: 8px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.service-strip article {
  min-height: 138px;
  padding: 28px clamp(18px, 3vw, 36px);
  background: var(--panel);
}

.service-strip strong,
.service-strip span {
  display: block;
}

.service-strip strong {
  margin-bottom: 8px;
  font-size: 18px;
}

.service-strip span,
.product-meta,
.spec-list,
.cart-item span,
.member-profile p,
.member-dashboard span,
.row-detail,
.summary-lines span,
.payment-note {
  color: var(--muted);
}

.products-section,
.member-section,
.checkout-section,
.admin-section {
  padding: clamp(48px, 7vw, 88px) clamp(18px, 5vw, 72px);
}

.products-section,
.admin-section {
  background: var(--soft);
}

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

.section-heading.compact {
  margin-bottom: 20px;
}

.toolbar {
  gap: 12px;
}

.toolbar label,
.payment-form label,
.admin-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

select,
input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 0 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card,
.checkout-panel,
.payment-form,
.member-profile,
.member-dashboard,
.member-panel,
.admin-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 38px rgba(21, 21, 21, 0.08);
}

.product-card {
  display: grid;
  overflow: hidden;
}

.product-image {
  position: relative;
  min-height: 230px;
  background: linear-gradient(135deg, #1f1f1f, #544a38);
}

.product-image img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--champagne-dark);
  font-size: 12px;
  font-weight: 900;
}

.product-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

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

.product-title h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.18;
}

.price {
  flex: 0 0 auto;
  color: var(--champagne-dark);
  font-size: 22px;
  font-weight: 950;
}

.product-meta,
.spec-list {
  line-height: 1.5;
}

.spec-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.product-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-stats span,
.status-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.add-button {
  min-height: 44px;
  background: var(--graphite);
  color: var(--paper);
}

.member-layout {
  display: grid;
  grid-template-columns: minmax(250px, 320px) 1fr;
  gap: 18px;
}

.member-profile,
.member-dashboard,
.member-panel {
  padding: 22px;
}

.member-profile {
  display: grid;
  align-content: start;
  gap: 12px;
}

.avatar {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: var(--graphite);
  color: var(--champagne);
  font-weight: 950;
}

.member-profile h3 {
  margin: 8px 0 0;
  font-size: 24px;
}

.tier-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.tier-progress span {
  display: block;
  height: 100%;
  background: var(--champagne);
}

.member-dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.member-dashboard article {
  display: grid;
  gap: 8px;
}

.member-dashboard strong {
  font-size: 24px;
}

.member-panel {
  grid-column: 2;
  display: grid;
  gap: 16px;
}

.member-tabs {
  flex-wrap: wrap;
  gap: 8px;
}

.member-tabs button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.member-tabs button.active {
  border-color: var(--champagne);
  background: var(--champagne);
  color: var(--ink);
}

.rows-panel {
  display: grid;
  gap: 10px;
}

.data-row,
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.data-row:last-child,
.cart-item:last-child {
  border-bottom: 0;
}

.data-row h3,
.cart-item h3 {
  margin: 0 0 5px;
  font-size: 16px;
}

.checkout-section {
  display: grid;
  grid-template-columns: minmax(290px, 0.85fr) minmax(340px, 1.15fr);
  gap: 22px;
  background: var(--paper);
}

.checkout-panel,
.payment-form {
  padding: 24px;
  box-shadow: var(--shadow);
}

.cart-list {
  display: grid;
  gap: 10px;
  min-height: 96px;
}

.empty-state {
  display: grid;
  min-height: 96px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.qty-tools {
  gap: 8px;
}

.qty-button {
  width: 30px;
  height: 30px;
  background: var(--soft);
  color: var(--ink);
}

.summary-lines {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.summary-lines div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.summary-lines .total {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 21px;
}

.payment-form {
  display: grid;
  gap: 22px;
}

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

.payment-note {
  margin: 0;
}

.payment-note.success {
  color: var(--success);
  font-weight: 900;
}

.admin-table {
  display: grid;
  gap: 12px;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(120px, 160px));
  gap: 14px;
  align-items: end;
  padding: 16px;
}

.admin-title h3 {
  margin: 0 0 6px;
}

@media (max-width: 1080px) {
  .hero,
  .checkout-section,
  .member-layout {
    grid-template-columns: 1fr;
  }

  .member-panel {
    grid-column: auto;
  }

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

  .service-strip,
  .member-dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-row {
    grid-template-columns: 1fr repeat(3, minmax(100px, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .service-strip,
  .product-grid,
  .member-dashboard,
  .form-grid,
  .admin-row {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .toolbar {
    width: 100%;
    align-items: stretch;
  }

  .toolbar label {
    flex: 1 1 0;
  }

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