:root {
  --bg: #f6f0e7;
  --bg-deep: #e8dbc9;
  --paper: rgba(255, 250, 243, 0.86);
  --paper-strong: #fffaf2;
  --line: rgba(106, 75, 43, 0.18);
  --line-strong: rgba(106, 75, 43, 0.3);
  --ink: #2d241c;
  --muted: #6e6255;
  --accent: #7a5531;
  --accent-deep: #57381e;
  --accent-soft: #f0dfcd;
  --success: #2f6a53;
  --shadow: 0 24px 60px rgba(61, 41, 23, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.7), transparent 34%),
    radial-gradient(circle at 10% 20%, rgba(207, 178, 145, 0.35), transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

body.site-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent 85%);
  z-index: 0;
}

a {
  color: inherit;
}

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

.site-shell {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(246, 240, 231, 0.72);
  border-bottom: 1px solid rgba(106, 75, 43, 0.08);
}

.site-nav {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 18px 20px;
}

.site-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 14px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
  flex: 0 1 auto;
  max-width: 34%;
}

.brand-logo {
  height: 54px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(51, 34, 19, 0.12));
}

.brand-copy {
  min-width: 0;
}

.brand-name {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.45rem, 2vw, 2rem);
  letter-spacing: 0.04em;
  line-height: 0.92;
}

.brand-subtitle {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.nav-link-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 0 1 auto;
  white-space: nowrap;
}

.nav-link-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.nav-link-pill:hover,
.nav-link-pill.is-active {
  color: var(--ink);
  background: rgba(255, 250, 243, 0.8);
  transform: translateY(-1px);
}

.nav-search {
  min-width: min(180px, 22vw);
  flex: 0 1 min(180px, 22vw);
}

.nav-search-field {
  width: 100%;
  border: 1px solid rgba(106, 75, 43, 0.14);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.75);
  padding: 11px 16px;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.nav-search-field:focus {
  border-color: rgba(122, 85, 49, 0.34);
  box-shadow: 0 0 0 4px rgba(122, 85, 49, 0.08);
  background: rgba(255, 250, 243, 0.95);
}

.cart-chip {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 52px;
  height: 52px;
  min-width: 52px;
  padding: 0 14px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 24px rgba(87, 56, 30, 0.18);
  transition: width 220ms ease, transform 180ms ease, box-shadow 180ms ease, background-color 220ms ease, color 220ms ease;
  flex: 0 0 auto;
}

.cart-chip:hover,
.cart-chip:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 28px rgba(87, 56, 30, 0.22);
}

.cart-chip.is-success {
  width: 146px;
  background: linear-gradient(135deg, #4f9f76 0%, #2f6a53 100%);
  box-shadow: 0 18px 32px rgba(47, 106, 83, 0.28);
}

.cart-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.cart-chip-icon svg {
  width: 24px;
  height: 24px;
}

.cart-chip-status {
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 160ms ease, transform 180ms ease;
}

.cart-chip.is-success .cart-chip-status {
  opacity: 1;
  transform: translateX(0);
}

.site-main {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 28px 20px 54px;
}

.hero-panel,
.surface-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-panel::after,
.surface-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.36), transparent 42%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.hero-side {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 5vw, 48px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(240, 223, 205, 0.6);
  color: var(--accent-deep);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.display-title {
  margin: 18px 0 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  max-width: 8ch;
}

.lede {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.hero-actions,
.stack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.stack-actions--stacked {
  display: grid;
  gap: 24px;
  margin-top: 0;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  box-shadow: 0 16px 28px rgba(87, 56, 30, 0.18);
}

.button-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 30px rgba(87, 56, 30, 0.22);
}

.button-secondary {
  background: rgba(255, 250, 243, 0.72);
  color: var(--ink);
  border-color: rgba(106, 75, 43, 0.12);
}

.button-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(106, 75, 43, 0.22);
}

.hero-stat-list {
  display: grid;
  gap: 14px;
}

.hero-stat {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 250, 243, 0.74);
  border: 1px solid rgba(106, 75, 43, 0.1);
}

.hero-stat strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  line-height: 0.9;
}

.hero-stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.section-block {
  margin-top: 28px;
}

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

.section-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.96;
}

.section-note {
  margin: 0;
  color: var(--muted);
  max-width: 48ch;
  line-height: 1.7;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.72);
  border: 1px solid rgba(106, 75, 43, 0.12);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.category-pill:hover,
.category-pill.is-active {
  color: var(--ink);
  border-color: rgba(106, 75, 43, 0.26);
  transform: translateY(-1px);
}

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

.product-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 250, 243, 0.78);
  box-shadow: 0 14px 36px rgba(61, 41, 23, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 44px rgba(61, 41, 23, 0.14);
}

.product-media {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(240, 223, 205, 0.3), rgba(245, 236, 222, 0.2));
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.product-card:hover .product-media img {
  transform: scale(1.04);
}

.product-body {
  padding: 18px 18px 20px;
}

.product-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  line-height: 0.96;
}

.product-title a {
  text-decoration: none;
}

.product-summary {
  margin: 10px 0 14px;
  color: var(--muted);
  line-height: 1.65;
  min-height: 4.9em;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.82rem;
}

.meta-chip {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(240, 223, 205, 0.48);
}

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

.price-mark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.15rem;
  line-height: 0.9;
}

.inline-form {
  margin: 0;
}

.ghost-panel {
  padding: 18px;
  border: 1px dashed rgba(106, 75, 43, 0.2);
  border-radius: var(--radius-md);
  color: var(--muted);
  background: rgba(255, 250, 243, 0.42);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
}

.detail-gallery,
.detail-summary {
  padding: 22px;
}

.main-photo {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 8px);
  cursor: zoom-in;
}

.photo-wrap {
  position: relative;
}

.photo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(45, 36, 28, 0.48);
  color: #fff;
  backdrop-filter: blur(8px);
  transition: background-color 180ms ease, transform 180ms ease;
}

.photo-nav:hover {
  background: rgba(45, 36, 28, 0.66);
  transform: translateY(-50%) scale(1.03);
}

.photo-nav.left {
  left: 14px;
}

.photo-nav.right {
  right: 14px;
}

.thumb-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.thumb-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid rgba(106, 75, 43, 0.12);
  opacity: 0.78;
  transition: opacity 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.thumb-photo:hover,
.thumb-photo.is-active {
  opacity: 1;
  border-color: rgba(106, 75, 43, 0.34);
  transform: translateY(-1px);
}

.detail-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 0.95;
}

.detail-copy {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.detail-stack {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.detail-note {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(240, 223, 205, 0.42);
  color: var(--muted);
  line-height: 1.7;
}

.cart-item-thumb {
  width: 72px;
  min-width: 72px;
  max-width: none;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}

.cart-action-cell {
  width: 1%;
  white-space: nowrap;
}

.icon-delete-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border: 1px solid rgba(170, 49, 49, 0.18);
  border-radius: 999px;
  background: rgba(183, 54, 54, 0.1);
  color: #b73636;
  font-size: 1.15rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.icon-delete-btn:hover {
  transform: translateY(-1px);
  background: rgba(183, 54, 54, 0.16);
  border-color: rgba(170, 49, 49, 0.26);
}

.page-columns {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

.story-block,
.stack-card {
  padding: 22px;
}

.stack-card h2,
.story-block h2 {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
}

.story-block p,
.stack-card p,
.stack-card li {
  color: var(--muted);
  line-height: 1.8;
}

.stack-card ul {
  margin: 0;
  padding-left: 18px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 16, 12, 0.9);
}

.lightbox img {
  max-width: min(92vw, 1320px);
  max-height: 90vh;
  border-radius: 20px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
}

.site-footer {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 20px 24px;
}

.footer-panel {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 250, 243, 0.66);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.6fr;
  gap: 20px;
  align-items: end;
}

.footer-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  line-height: 0.9;
  margin: 0;
}

.footer-copy,
.footer-links a,
.footer-meta {
  color: var(--muted);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  text-decoration: none;
}

.footer-meta {
  text-align: right;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 991px) {
  .site-nav-top {
    flex-wrap: nowrap;
    align-items: center;
  }

  .site-nav-links {
    width: auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 8px;
  }

  .nav-link-group {
    flex-wrap: nowrap;
    gap: 4px;
  }

  .nav-link-pill {
    padding: 9px 11px;
    font-size: 0.78rem;
  }

  .nav-search {
    min-width: min(132px, 18vw);
    flex: 0 1 min(132px, 18vw);
  }

  .hero-grid,
  .detail-grid,
  .page-columns,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 767px) {
  .site-main {
    padding-top: 18px;
  }

  .brand-logo {
    height: 42px;
  }

  .brand-mark {
    gap: 8px;
    max-width: 40%;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .brand-subtitle {
    display: none;
  }

  .site-nav-top {
    gap: 8px;
    align-items: center;
  }

  .site-nav-links {
    gap: 6px;
    justify-content: flex-end;
  }

  .nav-link-group {
    width: auto;
    gap: 4px;
    flex: 0 0 auto;
  }

  .nav-link-pill {
    padding: 7px 9px;
    font-size: 0.72rem;
  }

  .nav-search {
    display: none;
  }

  .cart-chip {
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 0 10px;
  }

  .cart-chip.is-success {
    width: 104px;
  }

  .cart-chip-status {
    font-size: 0.66rem;
  }

  .display-title {
    max-width: none;
  }

  .section-head,
  .product-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-media {
    aspect-ratio: 1 / 1;
  }

  .hero-copy,
  .hero-side,
  .detail-gallery,
  .detail-summary,
  .story-block,
  .stack-card {
    padding: 18px;
  }
}
