:root {
  --black: #111;
  --ink: #0d0712;
  --muted: #666;
  --line: #e8e8e8;
  --bg: #fafafa;
  --white: #fff;
  --accent: #ff2d6f;
  --accent-dark: #e0185a;
  --green: #0a8f4a;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.preview-banner {
  background: #111;
  color: #fff;
  font-size: 12px;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: .01em;
}
.preview-banner span { opacity: .75; margin-left: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
}
.logo img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.nav { display: flex; gap: 16px; margin-left: auto; font-size: 14px; color: #444; }
.nav a:hover { color: var(--accent); }
.cart-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent);
  color: #fff;
  border-radius: 99px;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 5px;
}

.site-main { min-height: 70vh; padding: 28px 0 64px; }
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 13px;
}
.muted { color: var(--muted); }

.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 40px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  margin: 0 0 12px;
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(120deg, #d98da3, #a8506f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { color: #555; margin: 0 0 18px; max-width: 46ch; }
.hero-art {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hero-art img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  background: #f3f3f3;
}
.hero-art img:first-child { grid-row: span 2; aspect-ratio: auto; height: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--black);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 14px;
}
.btn:hover { background: #000; }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost {
  background: #fff;
  color: var(--black);
  border: 1px solid var(--line);
}
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.section-title {
  font-family: var(--display);
  font-size: 28px;
  margin: 8px 0 16px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.06); }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f5f5f5; }
.card-body { padding: 12px 12px 14px; }
.card-cat { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.card h3 { margin: 4px 0 8px; font-size: 15px; font-weight: 650; }
.price { font-weight: 700; }
.price s { color: #999; font-weight: 500; margin-right: 6px; }
.price small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }

.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.gallery-main {
  background: #f6f6f6;
  border-radius: 18px;
  overflow: hidden;
}
.gallery-main img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumbs button {
  border: 1px solid var(--line);
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  width: 64px;
  background: #fff;
}
.thumbs img { width: 64px; height: 64px; object-fit: cover; }
.thumbs .on { outline: 2px solid var(--accent); }

.badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.product h1 { font-family: var(--display); font-size: 34px; margin: 0 0 8px; }
.field { margin: 14px 0; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff;
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

.checkout {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 24px;
  align-items: start;
}
.checkout-side {
  display: grid;
  gap: 16px;
}
.extra-info h2 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 14px;
}
.extra-info .lbl {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.extra-info textarea {
  width: 100%;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  resize: vertical;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: #fff;
}
.panel h2 { margin: 0 0 12px; font-size: 18px; }
.static-field {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  color: #444;
  background: #fafafa;
}
.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin: 8px 0 16px;
}
.radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.radio input { width: 18px; height: 18px; }
.suggest-wrap { position: relative; }
.suggest {
  position: absolute;
  left: 0; right: 0; top: calc(100% - 4px);
  z-index: 8;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  max-height: 240px;
  overflow: auto;
}
.suggest button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #f2f2f2;
  background: #fff;
}
.suggest button:hover { background: #fafafa; }
.office-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  max-height: 320px;
  overflow: auto;
  margin-bottom: 14px;
}
.office-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #f2f2f2;
  background: #fff;
}
.office-item.on { background: #f3fbf6; }
.office-item strong { font-size: 14px; }
.btn-confirm {
  width: 100%;
  background: #111;
  color: #fff;
  margin-top: 8px;
}
.btn-confirm:hover { background: #000; }
.econt-summary {
  border: 1px solid #d9f3e4;
  background: #f3fbf6;
  border-radius: 14px;
  padding: 16px;
}
.econt-summary h3 { margin: 0 0 6px; font-size: 16px; }
.econt-summary-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.econt-edit {
  background: none;
  border: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  padding: 0;
  white-space: nowrap;
}
.econt-edit:hover { text-decoration: underline; }
.payload {
  margin-top: 12px;
  background: #111;
  color: #d8ffea;
  font-size: 11px;
  padding: 12px;
  border-radius: 10px;
  overflow: auto;
  max-height: 220px;
  white-space: pre-wrap;
}
.note {
  font-size: 13px;
  color: #555;
  background: #fafafa;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
}
.summary-line { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0; font-size: 14px; }
.summary-total { font-size: 18px; font-weight: 800; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; margin-bottom: 12px; }
.cart-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.thanks { max-width: 640px; margin: 24px auto; text-align: center; }
.thanks h1 { font-family: var(--display); font-size: 36px; }
.err { color: #b00020; font-size: 13px; margin-top: 8px; }

@media (max-width: 900px) {
  .nav { display: none; }
  .hero, .product, .checkout, .grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .office-list { max-height: 240px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
}
