:root {
  --bg-cream: #f9f8f6;
  --charcoal: #121212;
  --amber: #d4a373;
  --amber-glow: rgba(212, 163, 115, 0.35);
  --muted: #6b6560;
  --border: rgba(18, 18, 18, 0.08);
  --radius: 4px;
  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --max: 1200px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-cream);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 248, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1.5rem;
}

.logo {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logo span {
  color: var(--amber);
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}

.nav-main a {
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}

.nav-main a:hover,
.nav-main a.active {
  opacity: 1;
  color: var(--charcoal);
}

.nav-main a.nav-b2b {
  color: var(--amber);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.2s;
}

.cart-link:hover {
  border-color: var(--charcoal);
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.25rem;
  font-size: 0.65rem;
  font-weight: 600;
  background: var(--charcoal);
  color: var(--bg-cream);
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  margin: 5px 0;
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(420px, 72vh, 640px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: #2a2622 72% center / cover no-repeat;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(18, 18, 18, 0.88) 0%,
    rgba(18, 18, 18, 0.72) 38%,
    rgba(18, 18, 18, 0.25) 62%,
    rgba(18, 18, 18, 0.08) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem 4.5rem;
  max-width: 36rem;
  margin-right: auto;
  color: var(--bg-cream);
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-lead {
  font-size: 1.05rem;
  color: rgba(249, 248, 246, 0.92);
  margin-bottom: 2rem;
  max-width: 32rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--charcoal);
  color: var(--bg-cream);
}

.btn-primary:hover {
  background: #2a2a2a;
  box-shadow: 0 0 24px var(--amber-glow);
}

.btn-outline-light {
  background: transparent;
  color: var(--bg-cream);
  border-color: rgba(249, 248, 246, 0.5);
}

.btn-outline-light:hover {
  border-color: var(--bg-cream);
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.btn-outline:hover {
  background: var(--charcoal);
  color: var(--bg-cream);
}

.btn-amber {
  background: var(--amber);
  color: var(--charcoal);
}

.btn-amber:hover {
  filter: brightness(1.05);
  box-shadow: 0 0 20px var(--amber-glow);
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-head {
  margin-bottom: 3rem;
  max-width: 36rem;
}

.section-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

/* Value props */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 3rem 0 0;
  border-top: 1px solid var(--border);
}

.value-item h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.value-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
}

.product-card:hover {
  box-shadow: 0 12px 40px rgba(18, 18, 18, 0.06);
  transform: translateY(-2px);
}

.product-visual {
  aspect-ratio: 4 / 3;
  background: #f3f1ed;
  position: relative;
  overflow: hidden;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

.product-card:hover .product-visual img {
  transform: scale(1.03);
}

.product-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-tag {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.5rem;
}

.product-body h3 {
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1rem;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}

.product-price {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}

.product-price small {
  display: inline;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: 0.2rem;
  white-space: nowrap;
}

.btn-add {
  padding: 0.625rem 0.85rem;
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 7.75rem;
  text-align: center;
}

/* Smart home teaser */
.smart-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.smart-features {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.smart-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  display: flex;
  gap: 0.75rem;
}

.smart-features li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

.smart-visual {
  aspect-ratio: 1;
  background: linear-gradient(160deg, #1a1a1a 0%, #2d2824 100%);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.smart-visual::after {
  content: "";
  position: absolute;
  inset: 20%;
  border: 1px solid rgba(212, 163, 115, 0.3);
  border-radius: var(--radius);
  box-shadow: inset 0 0 60px var(--amber-glow);
}

/* B2B section */
.b2b-section {
  background: #fff;
  border-block: 1px solid var(--border);
}

.b2b-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.b2b-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(18, 18, 18, 0.08);
}

.b2b-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.b2b-points {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}

.b2b-points li {
  padding: 0.5rem 0 0.5rem 1.25rem;
  position: relative;
  font-size: 0.9375rem;
  color: var(--muted);
}

.b2b-points li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--amber);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.about-card {
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.about-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.about-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: rgba(249, 248, 246, 0.85);
  padding: 4rem 0 2rem;
  font-size: 0.8125rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  color: var(--bg-cream);
  margin-bottom: 1rem;
  display: block;
}

.footer-brand p {
  margin: 0;
  line-height: 1.7;
  color: rgba(249, 248, 246, 0.65);
  max-width: 22rem;
}

.footer-col h4 {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1rem;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a:hover {
  color: var(--bg-cream);
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(249, 248, 246, 0.5);
  font-size: 0.75rem;
}

/* Cart drawer */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 18, 0.4);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: var(--bg-cream);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.cart-drawer-head h2 {
  margin: 0;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cart-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  color: var(--charcoal);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.cart-empty {
  text-align: center;
  color: var(--muted);
  padding: 3rem 1rem;
  font-size: 0.9rem;
}

.cart-line {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-line-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius);
  background: #f3f1ed;
  flex-shrink: 0;
}

.cart-line-info {
  flex: 1;
}

.cart-line-info h4 {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.cart-line-info .price {
  font-size: 0.85rem;
  color: var(--muted);
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.cart-qty button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.cart-line-remove {
  background: none;
  border: none;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  cursor: pointer;
  align-self: flex-start;
}

.cart-drawer-foot {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  background: #fff;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Checkout */
.checkout-page {
  min-height: 100vh;
  padding: 2rem 0 4rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

.checkout-form section {
  padding: 0 0 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.checkout-form h2 {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font-size: 0.9375rem;
}

.checkout-summary {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.checkout-summary h2 {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
}

.summary-lines {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1.125rem;
  padding-top: 1rem;
}

.payment-notice {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(212, 163, 115, 0.12);
  border-left: 3px solid var(--amber);
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--charcoal);
}

.payment-method-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 2px solid var(--charcoal);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.checkout-success {
  text-align: center;
  max-width: 32rem;
  margin: 4rem auto;
  padding: 2rem;
}

.checkout-success h1 {
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.checkout-success p {
  color: var(--muted);
  line-height: 1.7;
}

/* Corporate wholesale page */
.page-hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  margin: 0 0 1rem;
  max-width: 28rem;
}

.page-hero--wholesale h1 {
  max-width: min(100%, 42rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.page-hero-lead {
  max-width: 40rem;
  color: var(--muted);
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.section-head--compact {
  margin-bottom: 2rem;
}

.section-head--compact h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.02em;
}

.tier-section {
  padding: 3.5rem 0 4rem;
}

.wholesale-form {
  max-width: 640px;
  margin: 3rem auto;
  padding: 2.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.wholesale-form h2 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.wholesale-form .intro {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}

.tier-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.tier-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}

.tier-card:hover {
  box-shadow: 0 16px 48px rgba(18, 18, 18, 0.07);
  transform: translateY(-2px);
}

.tier-card--featured {
  border-color: rgba(212, 163, 115, 0.45);
  box-shadow: 0 0 0 1px rgba(212, 163, 115, 0.15);
}

.tier-card-media {
  aspect-ratio: 16 / 10;
  background: #f3f1ed;
  overflow: hidden;
}

.tier-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tier-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem 1.5rem 1.625rem;
}

.tier-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.tier-card .tier-range {
  font-size: 0.75rem;
  color: var(--amber);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  font-weight: 500;
}

.tier-card-body > p:not(.tier-range) {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.tier-link {
  margin-top: auto;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: 0.85;
  transition: color 0.2s, opacity 0.2s;
}

.tier-link:hover {
  opacity: 1;
  color: var(--amber);
}

@media (max-width: 960px) {
  .nav-main {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--bg-cream);
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }

  .nav-main.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .value-grid,
  .smart-split,
  .b2b-layout,
  .about-grid,
  .footer-grid,
  .checkout-grid,
  .tier-cards {
    grid-template-columns: 1fr;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-lead {
    color: rgba(249, 248, 246, 0.88);
  }
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .product-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-add {
    width: 100%;
    min-width: 0;
  }
}
