:root {
  --bg: #f7f3ee;
  --surface: #fffdf9;
  --surface-2: #efe8de;
  --text: #1f1a17;
  --muted: #6d6259;
  --line: #ddd1c3;
  --brand: #355746;
  --brand-ink: #eef6f1;
  --accent: #8a5a32;
  --danger: #7a2b2b;
  --success: #22543d;
  --radius: 20px;
  --shadow: 0 12px 35px rgba(32, 24, 19, 0.08);
  --container: min(1180px, calc(100vw - 2rem));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f9f5ef 0%, #f4efe8 100%);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
.container { width: var(--container); margin: 0 auto; }
.section { padding: 3.5rem 0; }
.section-alt { background: rgba(255,255,255,0.45); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stack-lg > * + * { margin-top: 1rem; }
.stack-md > * + * { margin-top: .875rem; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(247,243,238,.85);
  border-bottom: 1px solid rgba(221,209,195,.9);
}
.header-bar {
  min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .85rem; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand); color: white; font-weight: 700;
}
.brand-stack { display: grid; gap: 0; }
.brand-title { font-weight: 700; letter-spacing: -.02em; }
.brand-subtitle { color: var(--muted); font-size: .92rem; }
.site-nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.site-nav a, .linklike {
  color: var(--muted); background: none; border: 0; cursor: pointer; padding: 0;
}
.site-nav a:hover, .linklike:hover { color: var(--text); }
.inline-form { display: inline; }

.hero-grid, .split-grid, .cart-layout, .product-layout, .footer-grid, .account-grid {
  display: grid; gap: 1.25rem;
}
.hero-grid { grid-template-columns: 1.2fr .8fr; align-items: stretch; }
.hero {
  padding: 4rem 0 3rem;
}
.hero-copy h1, .page-head h1, .auth-card h1, .purchase-panel h1 {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -.03em;
  line-height: 1.02;
}
.hero-copy h1 { font-size: clamp(2.6rem, 5vw, 5rem); max-width: 11ch; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; color: var(--accent);
  margin: 0 0 .75rem; font-weight: 700;
}
.lede { max-width: 58ch; color: var(--muted); font-size: 1.05rem; }
.hero-card, .content-card, .summary-card, .auth-card, .purchase-panel, .gallery-main {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card, .content-card, .summary-card, .auth-card, .purchase-panel { padding: 1.5rem; }
.hero-panel { display: flex; }
.hero-card { align-self: stretch; width: 100%; background: linear-gradient(180deg, #fffdf8 0%, #f4eee5 100%); }
.feature-list { margin: 1rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.feature-list li + li { margin-top: .55rem; }

.button-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 999px; padding: .85rem 1.15rem; border: 1px solid transparent;
  font-weight: 600;
}
.button-block { width: 100%; }
.button-primary { background: var(--brand); color: var(--brand-ink); }
.button-primary:hover { filter: brightness(1.03); }
.button-secondary { background: transparent; border-color: var(--line); }
.text-link { color: var(--brand); font-weight: 600; }

.section-head, .page-head {
  display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.25rem;
}
.toolbar { display: flex; gap: .75rem; flex-wrap: wrap; }
.input {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  min-height: 48px;
  border-radius: 14px;
  padding: .8rem .95rem;
  color: var(--text);
}
.qty-input { max-width: 120px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.product-card {
  background: rgba(255,255,255,.75);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}
.product-card__image {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #e6ddd1 0%, #cdbda8 100%);
  display: flex; align-items: end; justify-content: space-between; padding: 1rem;
}
.product-card__placeholder {
  font-family: Georgia, serif; font-size: 1.5rem; color: rgba(31, 26, 23, .75);
}
.product-card__badge, .availability-chip {
  display: inline-flex; align-items: center; padding: .35rem .65rem; border-radius: 999px;
  background: rgba(255,255,255,.9); font-size: .78rem; text-transform: capitalize; border: 1px solid rgba(0,0,0,.06);
}
.product-card__body { padding: 1rem; }
.product-card__body h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.product-card__body p { color: var(--muted); margin: 0; min-height: 3em; }
.product-card__meta { display: flex; justify-content: space-between; align-items: center; margin-top: .85rem; }

.product-layout { grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); align-items: start; }
.gallery-main { aspect-ratio: 1 / 1.05; display: grid; place-items: center; }
.gallery-placeholder { font-family: Georgia, serif; font-size: 2rem; color: rgba(31,26,23,.65); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: .75rem; }
.thumb {
  background: var(--surface-2); border-radius: 14px; padding: .85rem; min-height: 68px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--muted);
}
.purchase-panel { position: sticky; top: 100px; }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1rem 0; }
.price-lg { font-size: 1.9rem; letter-spacing: -.03em; }
.body-copy, .muted { color: var(--muted); }
.option-group + .option-group { margin-top: 1rem; }
.option-label { display: block; font-size: .95rem; font-weight: 600; margin-bottom: .45rem; }
.chip-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: white; border-radius: 999px;
  padding: .65rem .85rem; cursor: pointer;
}
.chip-active { background: var(--brand); color: white; border-color: var(--brand); }
.note-card {
  margin-top: 1rem; background: #f7f4ef; border: 1px dashed var(--line); padding: 1rem; border-radius: 16px;
}
.tabs-shell .content-card + .content-card { margin-top: 1rem; }

.cart-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.cart-item {
  display: grid; grid-template-columns: 70px 1fr auto; gap: 1rem; align-items: center;
  background: rgba(255,255,255,.78); border: 1px solid var(--line); border-radius: 20px; padding: 1rem;
}
.cart-item__media {
  width: 70px; height: 70px; border-radius: 16px; background: var(--surface-2); display: grid; place-items: center; font-weight: 700;
}
.cart-item__price { font-weight: 700; }
.summary-card { position: sticky; top: 100px; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; color: var(--muted); }
.summary-total { border-top: 1px solid var(--line); margin-top: .75rem; padding-top: 1rem; color: var(--text); }

.auth-shell { max-width: 560px; }
.auth-card { margin: 0 auto; display: grid; gap: .7rem; }

.account-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.account-tile {
  display: grid; gap: .4rem; background: rgba(255,255,255,.78); border: 1px solid var(--line);
  border-radius: 20px; padding: 1.2rem;
}
.account-tile span { color: var(--muted); }

.flash {
  margin-top: 1rem; padding: .9rem 1rem; border-radius: 16px; border: 1px solid var(--line);
}
.flash-success { background: rgba(34,84,61,.08); color: var(--success); }
.flash-error { background: rgba(122,43,43,.08); color: var(--danger); }

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.48);
  margin-top: 3rem;
}
.footer-grid { grid-template-columns: 1.2fr .8fr .8fr; padding: 2rem 0; }
.site-footer h3, .site-footer h4 { margin-top: 0; }
.site-footer ul { padding-left: 1rem; margin: 0; color: var(--muted); }
.site-footer p, .site-footer li { color: var(--muted); }

@media (max-width: 1024px) {
  .hero-grid, .product-layout, .cart-layout, .footer-grid { grid-template-columns: 1fr; }
  .purchase-panel, .summary-card { position: static; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .header-bar, .section-head, .page-head { align-items: start; flex-direction: column; }
  .site-nav { gap: .75rem; }
  .product-grid, .account-grid, .gallery-thumbs { grid-template-columns: 1fr; }
  .hero { padding-top: 2rem; }
  .hero-copy h1 { font-size: clamp(2.2rem, 10vw, 3.2rem); }
}
