:root {
  --ivory: #f9f5ef;
  --ink: #3b3b3b;
  --muted: #7a7a7a;
  --sage: #c3d9b0;
  --olive: #9ca88e;
  --gold: #b5834c;
  --nude: #e8cfc4;
  --sand: #e2d4ba;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(59, 59, 59, 0.1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.topbar {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 8px 16px;
  background: var(--sand);
  color: var(--ink);
  font-size: 13px;
}

.nav-shell {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 18px min(5vw, 72px);
  background: linear-gradient(180deg, var(--sage), var(--olive));
  color: var(--white);
}

.brand, .nav-links, .footer, .hero-actions, .product-footer, .cart-line {
  display: flex;
  align-items: center;
}

.brand { gap: 12px; font-weight: 700; font-size: 20px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ivory);
  box-shadow: 0 8px 22px rgba(59, 59, 59, 0.16);
  overflow: hidden;
}

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

.nav-links { justify-content: center; gap: 28px; font-weight: 600; }
.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--white);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: 520px;
  padding: 70px min(5vw, 72px);
  background:
    linear-gradient(120deg, rgba(195, 217, 176, 0.82), rgba(232, 207, 196, 0.7)),
    var(--ivory);
}

.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.6fr);
  gap: 40px;
  align-items: center;
}

.hero.compact { min-height: 360px; grid-template-columns: minmax(0, 760px); }
.hero h1, .page-intro h1 { margin: 0; font-size: clamp(42px, 6vw, 82px); line-height: 1; }
.hero p { max-width: 660px; font-size: 18px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-visual {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 300px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--nude), var(--sage));
  box-shadow: var(--shadow);
  color: var(--white);
  font-size: 28px;
  font-weight: 800;
  text-align: center;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}
.hero-dots {
  position: absolute;
  left: min(5vw, 72px);
  bottom: 28px;
  display: flex;
  gap: 9px;
}
.hero-dots button {
  width: 11px;
  height: 11px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.hero-dots button.is-active { background: var(--gold); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--olive);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.button.primary { background: var(--sage); border-color: var(--olive); }
.button.primary:hover, .button.small:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.button.secondary { border-color: var(--gold); color: var(--gold); }
.button.small { min-height: 36px; padding: 0 12px; background: var(--sage); }
.button.danger {
  border-color: #b94a48;
  background: #f2dede;
  color: #7a1f1d;
}
.hero-actions { gap: 12px; flex-wrap: wrap; }

.section, .page-intro, .shop-layout, .cart-page, .product-detail {
  padding: 56px min(5vw, 72px);
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 32px;
  align-items: center;
}

.about-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.about-content {
  max-width: 920px;
  font-size: 18px;
}

.narrow { max-width: 560px; }
.auth-form {
  padding: 24px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.auth-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.auth-actions a {
  color: var(--gold);
  font-weight: 700;
}

.auth-secondary-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(59, 59, 59, 0.12);
}

.field-error {
  color: var(--gold);
  font-weight: 700;
}

.field-error {
  display: block;
  margin-top: 6px;
  color: #7a1f1d;
}

.form-errors {
  padding: 10px 12px;
  border-radius: 6px;
  background: #f2dede;
  color: #7a1f1d;
  font-weight: 700;
}

.band { background: rgba(226, 212, 186, 0.45); }
.section-heading { margin-bottom: 24px; }
.section-heading h2, .filters h2, .cart-total h2 { margin: 0; font-size: 30px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.product-card {
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.product-media {
  display: grid;
  place-items: center;
  min-height: 210px;
  background: linear-gradient(135deg, var(--nude), var(--sage));
  color: var(--white);
  font-weight: 800;
}

.product-body { padding: 18px; }
.product-body h3 { margin: 4px 0 8px; font-size: 19px; }
.product-body p { color: var(--muted); }
.product-category { color: var(--gold); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.product-footer { justify-content: space-between; gap: 12px; margin-top: 18px; }

.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

.filters, .cart-total {
  padding: 20px;
  border-radius: 8px;
  background: var(--nude);
}

label { display: grid; gap: 8px; margin: 16px 0; font-weight: 700; }
input, select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(59, 59, 59, 0.18);
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
}

.cart-page { display: grid; grid-template-columns: 1fr 320px; gap: 28px; }
.cart-lines { display: grid; gap: 14px; }
.cart-line {
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-radius: 8px;
  background: var(--white);
}
.cart-line h2 { margin: 0; font-size: 18px; }
.muted { color: var(--muted); }

.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}
.detail-media {
  display: grid;
  place-items: center;
  min-height: 420px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--nude), var(--sage));
  color: var(--white);
  font-weight: 800;
}
.product-characteristics {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(59, 59, 59, 0.12);
}
.product-characteristics h2 {
  margin: 0 0 8px;
  font-size: 18px;
}
.product-characteristics p {
  margin: 0 0 8px;
  color: var(--muted);
}
.price { display: block; margin: 20px 0; font-size: 28px; color: var(--gold); }
.buy-box { display: flex; gap: 12px; max-width: 360px; }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.plan, .order-row {
  padding: 18px;
  border-radius: 8px;
  background: var(--white);
}
.partners-band { background: rgba(226, 212, 186, 0.35); }
.partner-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}
.partner-logo-card {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 150px;
  padding: 18px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}
.partner-logo-card img {
  max-width: 130px;
  max-height: 72px;
  object-fit: contain;
}
.partner-logo-card span {
  display: grid;
  place-items: center;
  min-height: 72px;
  color: var(--gold);
  font-size: 20px;
  font-weight: 800;
}
.partner-directory {
  display: grid;
  gap: 18px;
}
.partner-directory-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  align-items: center;
  padding: 20px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.partner-directory-logo {
  display: grid;
  place-items: center;
  min-height: 130px;
  border-radius: 8px;
  background: var(--ivory);
}
.partner-directory-logo img {
  max-width: 150px;
  max-height: 90px;
  object-fit: contain;
}

.footer {
  justify-content: space-between;
  gap: 24px;
  padding: 36px min(5vw, 72px);
  background: var(--sand);
}
.footer div:last-child { display: flex; gap: 18px; flex-wrap: wrap; }
.mobile-only { display: none; }

.account-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  padding: 56px min(5vw, 72px);
}

.account-nav,
.account-card {
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.account-nav {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
}

.account-nav a,
.link-button {
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.account-nav a:hover,
.link-button:hover {
  background: var(--ivory);
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.account-list {
  display: grid;
  gap: 16px;
}

.account-card {
  padding: 20px;
}

.account-form {
  display: grid;
  gap: 18px;
}

.account-form label {
  margin: 0 0 14px;
}

.account-form label span {
  font-weight: 700;
}

.account-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.two-factor-qr {
  width: min(100%, 260px);
  margin: 12px 0;
  border-radius: 8px;
  background: var(--white);
}

.account-row,
.account-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.account-actions {
  justify-content: flex-end;
}

@media (max-width: 820px) {
  .topbar { display: none; }
  .nav-shell { grid-template-columns: 1fr auto; }
  .mobile-only { display: inline-grid; gap: 4px; border: 0; background: transparent; }
  .mobile-only span { width: 24px; height: 2px; background: var(--white); }
  .nav-links {
    display: none;
    grid-column: 1 / -1;
    align-items: flex-start;
  }
  .nav-links.is-open { display: grid; }
  #cart-summary { grid-column: 1 / -1; }
  .hero-slide, .shop-layout, .cart-page, .product-detail, .account-shell, .about-hero {
    grid-template-columns: 1fr;
  }
  .hero h1, .page-intro h1 { font-size: 42px; }
  .footer { align-items: flex-start; flex-direction: column; }
  .partner-directory-card { grid-template-columns: 1fr; }
  .cart-line { align-items: flex-start; flex-direction: column; }
}
