:root {
  --bg: #F6F4EF;
  --surface: #EFECE5;
  --ink: #141311;
  --muted: #767068;
  --line: #DFDAD0;
  --err: #9B2C2C;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-weight: 300; font-size: 14px;
  line-height: 1.65; -webkit-font-smoothing: antialiased;
}
header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(246, 244, 239, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: 1360px; margin: 0 auto; padding: 18px 32px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a, .nav-right button, .nav-right a {
  background: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 11px; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.nav-links a:hover, .nav-right button:hover { opacity: 0.55; }
.nav-links a.active { font-weight: 500; border-bottom: 1.5px solid var(--ink); padding-bottom: 3px; }
.brand {
  font-family: var(--serif); font-size: 24px; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
}
.nav-right { display: flex; justify-content: flex-end; gap: 24px; align-items: center; }

.wrap { max-width: 1360px; margin: 0 auto; padding: 0 32px; }
.kicker {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}
h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(42px, 5vw, 68px); line-height: 1.04; margin-bottom: 24px;
}
h1 em { font-style: italic; font-weight: 300; }
h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 3vw, 40px); }

/* Hero */
.hero {
  max-width: 1360px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.1fr;
  border-bottom: 1px solid var(--line); min-height: 76vh;
}
.hero-copy {
  padding: 68px 52px 68px 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  border-right: 1px solid var(--line);
}
.lead { color: var(--muted); max-width: 390px; font-size: 15px; margin-bottom: 32px; }
.link-cta {
  display: inline-block; color: var(--ink); text-decoration: none;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  padding-bottom: 6px; border-bottom: 1px solid var(--ink);
}
.link-cta:hover { opacity: 0.55; }
.hero-meta {
  display: flex; gap: 32px; padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.hero-media { position: relative; background: var(--surface); overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-caption {
  position: absolute; bottom: 20px; left: 24px;
  background: rgba(246, 244, 239, 0.92);
  padding: 8px 14px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
}

/* Grid */
.sec-bar {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 68px 0 32px;
}
.count { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.edit-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 44px 28px; padding-bottom: 88px;
}
.item { display: flex; flex-direction: column; }
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.frame {
  position: relative; background: var(--surface); overflow: hidden;
  aspect-ratio: 1 / 1; margin-bottom: 14px; display: block;
}
.frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.7s cubic-bezier(.22,1,.36,1);
}
.item:hover .frame img { transform: scale(1.035); }
.quick-add {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(20, 19, 17, 0.9); color: var(--bg);
  border: 0; padding: 14px; cursor: pointer;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s;
}
.item:hover .quick-add { opacity: 1; transform: translateY(0); }
.meta-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.item-name { font-size: 14px; font-weight: 400; color: var(--ink); text-decoration: none; }
.item-price { font-size: 13px; color: var(--muted); white-space: nowrap; }
.item-note { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* PDP */
.pdp {
  max-width: 1280px; margin: 0 auto; padding: 56px 32px 88px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: start;
}
.pdp-media { position: sticky; top: 90px; aspect-ratio: 1 / 1; background: var(--surface); overflow: hidden; }
.pdp-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-title { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.08; margin-bottom: 10px; }
.pdp-price { font-size: 16px; color: var(--ink); margin-bottom: 20px; }
.pdp-price span { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-left: 10px; }
.pdp-desc { color: var(--muted); margin-bottom: 24px; }
.specs { list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; margin-bottom: 28px; }
.specs li { font-size: 13px; color: var(--muted); padding: 4px 0; }
.specs li::before { content: "— "; color: var(--ink); }

/* Forms & Buttons */
.btn-flat {
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
  padding: 14px 26px; cursor: pointer; font-family: var(--sans);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  transition: background .2s, color .2s;
}
.btn-flat:hover { background: transparent; color: var(--ink); }
.btn-flat:disabled { opacity: 0.5; cursor: wait; }
.cod-form { display: grid; gap: 12px; }
.cod-form input {
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 10px 2px; font-family: var(--sans); font-size: 13px; color: var(--ink); outline: none;
}
.cod-form input:focus { border-bottom-color: var(--ink); }
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.err-msg { color: var(--err); font-size: 12px; min-height: 18px; }
.ok-box {
  display: none; padding: 20px 0; border-top: 1px solid var(--line);
  font-family: var(--serif); font-size: 21px; line-height: 1.4;
}

/* Drawer */
.backdrop {
  position: fixed; inset: 0; background: rgba(20, 19, 17, 0.35);
  display: none; justify-content: flex-end; z-index: 60;
}
.backdrop.open { display: flex; }
.drawer {
  background: var(--bg); width: 100%; max-width: 440px; height: 100%;
  padding: 28px 32px; display: flex; flex-direction: column;
  overflow-y: auto; border-left: 1px solid var(--line);
}
.drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px;
}
.drawer-head span { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.close { background: none; border: 0; font-size: 20px; cursor: pointer; color: var(--ink); }
.bag-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px;
}
.bag-row button {
  background: none; border: 0; color: var(--muted); cursor: pointer;
  font-size: 11px; margin-left: 10px; text-transform: uppercase;
}
.summary { padding: 16px 0; font-size: 13px; }
.summary div { display: flex; justify-content: space-between; margin: 5px 0; color: var(--muted); }
.summary .total { color: var(--ink); font-weight: 500; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 10px; }

footer {
  border-top: 1px solid var(--line); padding: 40px 32px;
  max-width: 1360px; margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
footer a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }

@media (max-width: 900px) {
  .nav { padding: 14px 16px; grid-template-columns: auto 1fr auto; gap: 12px; }
  .nav-links { gap: 14px; }
  .nav-links a, .nav-right button, .nav-right a { font-size: 10px; letter-spacing: 0.1em; }
  .brand { font-size: 18px; text-align: center; }
  .hero, .pdp { grid-template-columns: 1fr; min-height: auto; gap: 28px; }
  .hero-copy { padding: 40px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-media { aspect-ratio: 1 / 1; }
  .pdp { padding: 28px 20px 64px; }
  .pdp-media { position: static; }
  .wrap { padding: 0 20px; }
  .span-7, .span-5, .span-4 { grid-column: span 12; }
  .quick-add { opacity: 1; transform: none; }
}
