:root {
  --bg: #f7f3ee;
  --paper: #fffaf5;
  --ink: #211915;
  --muted: #75665d;
  --accent: #7a4b2a;
  --line: #decfc1;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, Arial, sans-serif; background: var(--bg); color: var(--ink); }
a { color: inherit; text-decoration: none; }
.shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.site-header { display:flex; justify-content:space-between; align-items:center; padding:24px 0; }
.brand { font-weight:800; letter-spacing:.18em; }
nav { display:flex; gap:24px; color:var(--muted); }
.hero { display:grid; grid-template-columns:1.2fr .8fr; gap:48px; align-items:center; min-height:520px; }
.eyebrow { text-transform:uppercase; letter-spacing:.14em; font-size:12px; color:var(--accent); }
h1 { font-size: clamp(32px, 5vw, 56px); line-height:1.02; margin:12px 0 18px; }
.hero-copy { font-size:18px; line-height:1.6; color:var(--muted); max-width:560px; }
.hero-actions, .card-row { display:flex; gap:12px; align-items:center; }
.button { display:inline-flex; align-items:center; justify-content:center; border-radius:999px; padding:14px 20px; border:1px solid var(--accent); }
.button.primary { background:var(--accent); color:#fff; }
.button.ghost { color:var(--accent); }
.button.wide { width:100%; margin-top:18px; }
.hero-card { background:var(--paper); border:1px solid var(--line); border-radius:28px; min-height:340px; padding:28px; display:flex; flex-direction:column; justify-content:flex-end; gap:8px; position:relative; overflow:hidden; }
.mini-window { position:absolute; inset:28px 28px 110px; border-radius:22px; background:linear-gradient(#e9ddd1,#f5ede5); }
.mini-rail { position:absolute; left:48px; right:48px; top:70px; height:10px; background:#201915; border-radius:99px; }
.benefits { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; padding-bottom:56px; }
.benefits article { background:var(--paper); border:1px solid var(--line); border-radius:20px; padding:22px; display:grid; gap:8px; }
.benefits span, .muted { color:var(--muted); }
.page-head { padding:24px 0 18px; }
.catalog-layout { display:grid; grid-template-columns:240px 1fr; gap:24px; padding-bottom:56px; }
.filters, .product-card, .summary-card, .visual-panel, .config-panel { background:var(--paper); border:1px solid var(--line); border-radius:24px; }
.filters { padding:20px; height:max-content; display:grid; gap:16px; }
.filters label { display:grid; gap:8px; color:var(--muted); }
select, input[type="number"] { width:100%; border:1px solid var(--line); border-radius:12px; background:#fff; padding:12px; }
.product-grid { display:grid; gap:16px; }
.product-card { overflow:hidden; }
.card-visual { height:220px; background:#eadfd5; position:relative; }
.card-visual span { position:absolute; left:12%; right:12%; height:10px; background:#211915; border-radius:99px; }
.card-visual span:first-child { top:80px; }
.card-visual span:last-child { top:110px; }
.card-body { padding:20px; }
.card-body h2 { margin:8px 0; }
.empty-state { display:none; color:var(--muted); }
.product-page { display:grid; grid-template-columns:1fr 1fr; gap:24px; padding:24px 0 56px; }
.visual-panel, .config-panel { padding:24px; }
.window-scene { min-height:520px; background:linear-gradient(180deg,#efe5dc,#f9f4ef); border-radius:20px; position:relative; overflow:hidden; }
.rail-preview { position:absolute; left:10%; right:10%; top:90px; height:180px; }
.rail { position:absolute; left:0; right:0; height:12px; background:#211915; border-radius:99px; display:none; }
.rail-1 { top:0; display:block; }
.rail-2 { top:42px; }
.rail-3 { top:84px; }
.count-2 .rail-2, .count-3 .rail-2, .count-3 .rail-3 { display:block; }
.color-black .rail, .color-black .head { background:#211915; }
.color-white .rail, .color-white .head { background:#f8f7f4; border:1px solid #d9d3cc; }
.color-gold .rail, .color-gold .head { background:#b08a42; }
.shape-square .rail { border-radius:2px; }
.head { position:absolute; top:-9px; width:30px; height:30px; border-radius:50%; }
.head.left { left:-12px; }
.head.right { right:-12px; }
.head-simple .head { width:18px; height:18px; top:-3px; }
.head-medium .head { width:30px; height:30px; }
.head-large .head { width:38px; height:38px; top:-13px; }
.option-group { margin-top:20px; display:grid; gap:10px; }
.choice-row { display:flex; flex-wrap:wrap; gap:10px; }
.choice, .stacked-choices .choice { border:1px solid var(--line); background:#fff; border-radius:16px; padding:12px 14px; cursor:pointer; }
.choice.active { border-color:var(--accent); background:#f2e6db; }
.stacked-choices { display:grid; gap:10px; }
.stacked-choices .choice { display:flex; justify-content:space-between; width:100%; }
.length-row { display:grid; grid-template-columns:1fr 90px 24px; gap:10px; align-items:center; }
.price-box { margin-top:24px; padding:18px; background:#241a15; color:#fff; border-radius:20px; display:grid; gap:4px; }
.price-box strong { font-size:32px; }
.price-box small { color:#d8ccc3; }
.checkout { padding:36px 0 56px; max-width:720px; }
.summary-card { padding:24px; }
dl { margin:20px 0; }
dl div { display:flex; justify-content:space-between; padding:12px 0; border-bottom:1px solid var(--line); }
dt { color:var(--muted); }
.checkout-total { font-size:36px; }
.site-footer { color:var(--muted); padding:0 0 28px; }
@media (max-width: 800px) {
  .hero, .catalog-layout, .product-page, .benefits { grid-template-columns:1fr; }
  .hero { min-height:auto; padding:24px 0 36px; }
  .window-scene { min-height:360px; }
}
.config-shell { padding: 10px 0 64px; }
.config-topbar { display:flex; justify-content:space-between; align-items:center; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:16px 0; color:var(--muted); }
.config-topbar strong { color:var(--ink); }
.store-config-layout { display:grid; grid-template-columns:minmax(420px, 1fr) minmax(420px, 520px); gap:48px; align-items:start; padding-top:28px; }
.sticky-product { position:sticky; top:20px; }
.sticky-card { display:grid; gap:20px; }
.product-heading h1 { font-size:42px; margin:8px 0 10px; }
.premium-scene { min-height:420px; border-radius:28px; }
.selection-summary { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.selection-summary div { display:grid; gap:6px; background:var(--paper); border:1px solid var(--line); border-radius:18px; padding:14px; }
.selection-summary span { color:var(--muted); font-size:13px; }
.sticky-price-box { margin-top:0; }
.scrolling-options { display:grid; gap:18px; padding-bottom:40vh; }
.config-step { min-height:72vh; background:var(--paper); border:1px solid var(--line); border-radius:28px; padding:28px; display:grid; align-content:start; gap:10px; opacity:.72; transition:opacity .2s ease, border-color .2s ease; }
.config-step.is-active { opacity:1; border-color:#b89c84; }
.step-label { margin:0; color:var(--accent); font-size:12px; text-transform:uppercase; letter-spacing:.14em; }
.config-step h2 { font-size:30px; margin:0; }
.choice-grid { display:grid; gap:12px; margin-top:10px; }
.compact-grid { grid-template-columns:repeat(3,1fr); }
.color-grid { grid-template-columns:repeat(3,1fr); }
.tile-choice, .color-choice { min-height:96px; display:grid; gap:8px; justify-items:start; align-content:center; }
.color-choice .swatch { width:28px; height:28px; border-radius:50%; border:1px solid var(--line); }
.swatch-1 { background:#211915; }
.swatch-2 { background:#f8f7f4; }
.swatch-3 { background:#b08a42; }
.premium-choices .choice { min-height:72px; }
.length-card { margin-top:8px; border:1px solid var(--line); border-radius:20px; padding:18px; display:grid; gap:14px; }
.desktop-buy { margin-top:12px; }
.mobile-total-bar { display:none; }

@media (max-width: 900px) {
  .config-shell { padding-top:0; }
  .config-topbar { position:sticky; top:0; z-index:5; background:var(--bg); }
  .store-config-layout { display:block; padding-top:18px; }
  .sticky-product { position:static; }
  .sticky-card { gap:14px; }
  .product-heading h1 { font-size:34px; }
  .premium-scene { min-height:300px; }
  .selection-summary { grid-template-columns:repeat(2,1fr); }
  .sticky-price-box { display:none; }
  .scrolling-options { margin-top:18px; gap:14px; padding-bottom:120px; }
  .config-step { min-height:auto; padding:22px; opacity:1; }
  .compact-grid, .color-grid { grid-template-columns:1fr; }
  .mobile-total-bar { position:fixed; left:16px; right:16px; bottom:16px; z-index:10; display:flex; justify-content:space-between; align-items:center; background:#241a15; color:#fff; border-radius:22px; padding:14px 14px 14px 18px; box-shadow:0 14px 34px rgba(0,0,0,.22); }
  .mobile-total-bar div { display:grid; gap:2px; }
  .mobile-total-bar span { color:#d8ccc3; font-size:12px; }
  .mobile-total-bar strong { font-size:22px; }
  .desktop-buy { display:none; }
}
/* Product configurator polish */
.config-shell { --soft-shadow: 0 18px 60px rgba(64, 42, 24, .08); }
.config-topbar {
  margin-bottom: 8px;
  font-size: 14px;
}
.store-config-layout {
  grid-template-columns: minmax(440px, 1fr) minmax(420px, 500px);
  gap: 64px;
}
.sticky-card {
  animation: fade-rise .55s ease both;
}
.product-heading {
  max-width: 520px;
}
.product-heading h1 {
  letter-spacing: -.04em;
}
.premium-scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,.95), rgba(255,255,255,0) 36%),
    linear-gradient(180deg, #efe6dd 0%, #f8f3ee 100%);
}
.premium-scene::before {
  content:"";
  position:absolute;
  inset: 34px 14% 30px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.72)),
    linear-gradient(90deg, transparent 49.4%, rgba(205,194,183,.65) 49.4%, rgba(205,194,183,.65) 50.6%, transparent 50.6%);
  box-shadow: inset 0 0 0 1px rgba(196,181,167,.45);
}
.premium-scene::after {
  content:"";
  position:absolute;
  inset:auto 9% 0;
  height: 58%;
  background:
    linear-gradient(90deg, rgba(188,165,145,.72), rgba(188,165,145,.72)) left/18% 100% no-repeat,
    linear-gradient(90deg, rgba(188,165,145,.72), rgba(188,165,145,.72)) right/18% 100% no-repeat;
  border-radius: 0 0 28px 28px;
  filter: blur(.2px);
  opacity:.92;
}
.rail-preview {
  z-index: 2;
  transition: transform .28s ease;
}
.rail, .head {
  transition: background-color .22s ease, border-radius .22s ease, width .22s ease, height .22s ease, top .22s ease;
}
.selection-summary div {
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}
.selection-summary div:hover {
  transform: translateY(-2px);
  border-color:#c7ab92;
}
.scrolling-options {
  position: relative;
}
.scrolling-options::before {
  content:"";
  position:absolute;
  left:-27px;
  top:12px;
  bottom:12px;
  width:1px;
  background:linear-gradient(180deg, transparent, #d7c7ba 8%, #d7c7ba 92%, transparent);
}
.config-step {
  position: relative;
  transform: translateY(10px) scale(.985);
  transition: opacity .28s ease, border-color .28s ease, transform .28s ease, box-shadow .28s ease;
}
.config-step::before {
  content:"";
  position:absolute;
  left:-35px;
  top:34px;
  width:16px;
  height:16px;
  border-radius:50%;
  background:var(--bg);
  border:2px solid #d7c7ba;
  transition: background-color .22s ease, border-color .22s ease, transform .22s ease;
}
.config-step.is-active {
  transform: translateY(0) scale(1);
  box-shadow: var(--soft-shadow);
}
.config-step.is-active::before {
  background:var(--accent);
  border-color:var(--accent);
  transform: scale(1.08);
}
.tile-choice, .color-choice, .premium-choices .choice {
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.tile-choice:hover, .color-choice:hover, .premium-choices .choice:hover {
  transform: translateY(-2px);
  border-color:#c7ab92;
}
.choice.active {
  box-shadow: inset 0 0 0 1px rgba(122,75,42,.12);
}
.length-card {
  background:linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.42));
}
input[type="range"] {
  accent-color: var(--accent);
}
@keyframes fade-rise {
  from { opacity:0; transform:translateY(10px); }
  to { opacity:1; transform:translateY(0); }
}

@media (max-width: 900px) {
  .store-config-layout { gap:0; }
  .premium-scene::before { inset: 24px 14% 22px; }
  .scrolling-options::before,
  .config-step::before { display:none; }
  .config-step { transform:none; }
  .config-step.is-active { box-shadow:none; }
}
