/* ==========================================================================
   eFrame store: product page, cart drawer, checkout, confirmation, support
   ========================================================================== */

html.is-locked { overflow: hidden; }
.toast { z-index: 90; }

/* ---------- Frame finishes ---------- */

.finish--walnut { --frame-bg: linear-gradient(135deg, #6b4a33, #3f2a1c); }
.finish--oak {
  --frame-bg:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(0, 0, 0, 0.1)),
    repeating-linear-gradient(90deg, #cfa878 0 3px, #c09464 3px 5px, #cfa878 5px 9px);
}
.finish--black { --frame-bg: linear-gradient(135deg, #34302b, #121110); }
.finish--white { --frame-bg: linear-gradient(135deg, #fdfcf9, #e4dfd4); }

.frame.frame--hero { background: var(--frame-bg, linear-gradient(135deg, #6b4a33, #3f2a1c)); transition: background 0.5s var(--ease); }
.finish--white .frame.frame--hero,
.frame.frame--hero.finish--white { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), 1px 2px 3px rgba(40, 28, 10, 0.2), 14px 22px 34px -10px rgba(60, 42, 20, 0.35); }

.mini-frame {
  display: block;
  flex: none;
  width: 72px;
  aspect-ratio: 1;
  padding: 4px;
  border-radius: 2px;
  background: var(--frame-bg, linear-gradient(135deg, #6b4a33, #3f2a1c));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 6px 14px -6px rgba(40, 28, 10, 0.4);
}
.mini-frame__mat { display: block; height: 100%; padding: 11%; background: #fbf9f4; }
.mini-frame__mat img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Buttons ---------- */

.btn--block { display: flex; width: 100%; }
.btn--grow { flex: 1; }
.btn--big { height: 60px; font-size: 16px; }
.btn--ghost-light { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px rgba(245, 241, 233, 0.35); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--paper); }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.btn.is-loading { color: transparent; position: relative; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 20px; height: 20px;
  border: 2px solid rgba(245, 241, 233, 0.35);
  border-top-color: var(--paper);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Nav: cart ---------- */

.nav__end { display: flex; align-items: center; gap: 8px; }
.nav__links a[aria-current="page"] { color: #f5efe4; }
.cart-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #f5efe4;
  cursor: pointer;
  transition: background 0.2s;
}
.cart-btn:hover { background: rgba(255, 255, 255, 0.08); }
.cart-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.cart-btn__count {
  position: absolute;
  top: 3px; right: 1px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: 600 11px/18px var(--sans);
  text-align: center;
  transition: transform 0.3s var(--ease);
}
.cart-btn__count.is-empty { transform: scale(0); }

/* ---------- Cart drawer ---------- */

.drawer { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(21, 19, 15, 0.4);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.drawer__panel {
  position: absolute;
  top: 12px; right: 12px; bottom: 12px;
  display: flex;
  flex-direction: column;
  width: min(440px, calc(100% - 24px));
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 40px 80px -30px rgba(21, 19, 15, 0.55);
  visibility: hidden;
  transform: translateX(calc(100% + 24px));
  transition: transform 0.55s var(--ease), visibility 0s linear 0.55s;
}
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { visibility: visible; transform: none; transition-delay: 0s; }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 18px 28px;
  border-bottom: 1px solid var(--line);
}
.drawer__head h2 { margin: 0; font: 400 30px/1 var(--serif); }
.drawer__close {
  width: 38px; height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--paper-2);
  font-size: 14px;
  cursor: pointer;
}
.drawer__close:hover { background: var(--paper-3); }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 28px; }
.drawer__foot { padding: 20px 28px 24px; border-top: 1px solid var(--line); }
.drawer__foot:empty { display: none; }
.drawer__foot .btn { margin-top: 16px; }
.drawer__row { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0; font-size: 15px; }
.drawer__row--muted { color: var(--muted); font-size: 14px; }
.drawer__row--total { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 16px; }
.drawer__row--total strong { font: 400 30px/1 var(--serif); }
.drawer__row--total small { margin-right: 6px; font: 500 12px var(--sans); color: var(--muted); }
.drawer__note { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.drawer__empty { display: flex; flex-direction: column; align-items: center; padding: 72px 12px; text-align: center; color: var(--muted); }
.drawer__empty .mini-frame { width: 110px; margin-bottom: 28px; }
.drawer__empty-title { margin: 0 0 4px; font: 400 32px/1.1 var(--serif); color: var(--ink); }
.drawer__empty .btn { margin-top: 24px; }

.line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.line:last-child { border-bottom: 0; }
.line__info p { margin: 0; }
.line__name { font: 400 22px/1.1 var(--serif); }
.line__name span { font: 500 12px var(--sans); color: var(--muted); margin-left: 4px; }
.line__meta { margin-top: 4px !important; font-size: 14px; color: var(--muted); }
.line__end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.line__price { margin: 0; font-weight: 500; font-size: 15px; }
.line__remove { padding: 0; border: 0; background: none; font: 400 13px var(--sans); color: var(--muted); text-decoration: underline; cursor: pointer; }
.line__remove:hover { color: var(--ink); }

.stepper {
  display: inline-flex;
  align-items: center;
  height: 52px;
  border: 1px solid rgba(27, 25, 21, 0.18);
  border-radius: 999px;
}
.stepper button {
  width: 44px; height: 100%;
  border: 0;
  background: none;
  font-size: 18px;
  color: var(--ink);
  cursor: pointer;
}
.stepper button:disabled { opacity: 0.3; cursor: default; }
.stepper span { min-width: 20px; text-align: center; font-weight: 500; }
.stepper--sm { height: 34px; margin-top: 12px; }
.stepper--sm button { width: 32px; font-size: 15px; }

/* ---------- Product page ---------- */

.page main { min-height: 60vh; }
.pdp { padding: 112px 0 96px; }
.pdp__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.pdp__media { position: sticky; top: 96px; }

.stage {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 24px;
  background: #e9e2d6;
  container-type: size;
}
.view { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s var(--ease); }
.view.is-on { opacity: 1; }
.view__room {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100cqw, 177.78cqh);
  aspect-ratio: 16 / 9;
  transform: translate(calc(-1 * var(--x)), -50%) scale(1.03);
  transform-origin: var(--x) var(--y);
  transition: transform 1.6s var(--ease);
}
.view.is-on .view__room { transform: translate(calc(-1 * var(--x)), -50%); }
.view__photo { position: absolute; inset: 0; width: 100%; height: 100%; }
.view__piece { position: absolute; left: var(--x); top: var(--y); width: var(--w); transform: translate(-50%, -50%); }
.view--studio {
  display: grid;
  place-items: center;
  background: radial-gradient(120% 90% at 50% 35%, #f8f4ec 0%, #e8e0d2 70%, #ddd3c2 100%);
}
.view--studio .frame--hero {
  width: 58%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2), 2px 4px 6px rgba(40, 28, 10, 0.18), 30px 50px 70px -24px rgba(60, 42, 20, 0.45);
}
.view__caption {
  position: absolute;
  left: 20px; bottom: 20px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 500;
}
.detail__art {
  position: absolute;
  inset: 0;
  background: url("images/sq-abstract.jpg") 48% 52% / 230% auto no-repeat;
}
.detail__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 1.5px, rgba(239, 235, 227, 0.38) 2.1px) 0 0 / 6px 6px;
}
.view--detail.is-on .detail__art { animation: lens 16s ease-in-out infinite alternate; }

.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 14px; }
.thumbs button {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  font: 500 12px var(--sans);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}
.thumbs img,
.thumbs button > span {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
  object-position: 68% 40%;
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow 0.25s;
}
.thumbs button[aria-selected="true"] { color: var(--ink); }
.thumbs button[aria-selected="true"] img,
.thumbs button[aria-selected="true"] > span { box-shadow: 0 0 0 2px var(--ink); }
.thumbs__studio > span { display: grid; place-items: center; background: radial-gradient(#f8f4ec, #e3dacb); }
.thumbs__studio > span::before {
  content: "";
  width: 46%;
  aspect-ratio: 1;
  border: 4px solid #4f3624;
  background: #fbf9f4;
  box-shadow: inset 0 0 0 5px #fbf9f4, inset 0 0 0 40px #c9a275;
}
.thumbs__detail > span {
  position: relative;
  overflow: hidden;
  background: url("images/sq-abstract.jpg") 48% 52% / 300% auto;
}
.thumbs__detail > span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 1px, rgba(239, 235, 227, 0.38) 1.5px) 0 0 / 4px 4px;
}

.try { display: flex; align-items: center; gap: 8px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.try__label { margin-right: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.try button {
  width: 44px; height: 44px;
  padding: 3px;
  border: 0;
  border-radius: 10px;
  background: none;
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
  transition: box-shadow 0.25s, transform 0.25s var(--ease);
}
.try button:hover { transform: translateY(-2px); }
.try button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.try img { width: 100%; height: 100%; border-radius: 7px; object-fit: cover; }

/* Buy box */
.buy { padding-top: 12px; }
.buy__edition {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.buy__edition span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(194, 69, 45, 0.15); }
.buy__title { margin: 0; font: 400 clamp(64px, 7vw, 96px)/0.9 var(--serif); letter-spacing: -0.02em; }
.buy__sub { margin: 10px 0 0; font: italic 400 26px/1.2 var(--serif); color: var(--ink-2); }
.buy__price { display: flex; align-items: baseline; gap: 12px; margin: 28px 0 0; }
.buy__price strong { font: 400 44px/1 var(--serif); }
.buy__price s { font-size: 18px; color: var(--muted); text-decoration-color: rgba(194, 69, 45, 0.6); }
.buy__pill {
  align-self: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(194, 69, 45, 0.1);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}
.buy__lede { margin: 22px 0 0; max-width: 30em; color: var(--ink-2); }
.buy__lede strong { font-weight: 600; color: var(--ink); }
.buy__group { margin-top: 30px; }
.buy__label { display: flex; justify-content: space-between; margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.buy__label span { font-weight: 400; color: var(--muted); }
.swatches { display: flex; gap: 12px; }
.swatch {
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--frame-bg);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15), 0 0 0 3px var(--paper), 0 0 0 4px transparent;
  cursor: pointer;
  transition: box-shadow 0.25s, transform 0.25s var(--ease);
}
.swatch:hover { transform: scale(1.06); }
.swatch[aria-checked="true"] { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15), 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
.buy__row { display: flex; gap: 10px; margin-bottom: 10px; }
.buy__reserve { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--muted); }

.perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  margin: 34px 0 0;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}
.perks li { display: flex; gap: 12px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.perks b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.perks svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }

.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--muted); transition: transform 0.3s var(--ease); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc details > :not(summary) { margin: 0 0 22px; font-size: 15px; color: var(--muted); }
.acc__list { padding-left: 18px; }
.acc__list li { margin: 4px 0; }
.acc__specs div { display: grid; grid-template-columns: 120px 1fr; padding: 6px 0; }
.acc__specs dt { font-weight: 500; color: var(--ink); }
.acc__specs dd { margin: 0; }
.acc__note { font-size: 13px !important; }

/* Why eFrame trio */
.pdp-why { border-top: 1px solid var(--line); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.trio__visual {
  position: relative;
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
  margin-bottom: 24px;
  border-radius: 20px;
  background: radial-gradient(120% 90% at 50% 30%, #f8f4ec, #e5dccd);
}
.trio__visual--cord { display: grid; place-items: center; }
.trio__visual--cord .frame--hero { width: 46%; }
.trio__nail {
  position: absolute;
  left: 50%; top: 9%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #6b6255;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}
.trio__nail::after {
  content: "";
  position: absolute;
  left: 50%; top: 3px;
  width: 1px; height: 30px;
  transform-origin: top;
  background: linear-gradient(rgba(60, 50, 40, 0.5), transparent);
}
.trio__visual--ai img {
  position: absolute;
  right: 10%; bottom: -8%;
  width: 56%;
  border: 10px solid #fbf9f4;
  box-shadow: 0 0 0 5px #4f3624, 0 30px 50px -20px rgba(40, 28, 10, 0.5);
}
.trio__prompt {
  position: absolute;
  left: 8%; top: 12%;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 40px -20px rgba(40, 28, 10, 0.4);
  font-size: 14px;
  font-weight: 500;
}
.trio__prompt span { color: var(--accent); }
.trio__item h3 { margin: 0 0 8px; font: 400 30px/1.1 var(--serif); }
.trio__item p { margin: 0; color: var(--muted); }

/* Finishes row */
.finishes { border-top: 1px solid var(--line); }
.finishes__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.finish-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.finish-card__wall {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  margin-bottom: 16px;
  border-radius: 18px;
  background: url("images/room-main.jpg") 62% 8% / 420% auto;
  transition: transform 0.6s var(--ease);
}
.finish-card__wall .frame--hero { width: 62%; }
.finish-card:hover .finish-card__wall { transform: translateY(-6px); }
.finish-card__name { font: 400 26px/1.1 var(--serif); }
.finish-card__note { font-size: 14px; color: var(--muted); }

/* Sticky buy bar */
.sticky-buy {
  position: fixed;
  left: 0; right: 0; bottom: 14px;
  z-index: 45;
  pointer-events: none;
  transform: translateY(140%);
  transition: transform 0.5s var(--ease);
}
.sticky-buy.is-on { transform: none; }
.sticky-buy__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 760px;
  padding: 10px 10px 10px 12px;
  border-radius: 999px;
  background: rgba(251, 249, 244, 0.92);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 0 0 1px var(--line), 0 24px 50px -20px rgba(40, 28, 10, 0.45);
  pointer-events: auto;
}
.sticky-buy__thumb .mini-frame { width: 44px; padding: 3px; }
.sticky-buy__info { flex: 1; min-width: 0; }
.sticky-buy__info p { margin: 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy__info p:first-child { color: var(--ink); }
.sticky-buy__price { margin: 0; font: 400 24px/1 var(--serif); }
.sticky-buy__price s { font: 400 13px var(--sans); color: var(--muted); }

/* ---------- Home: CTA buy ---------- */

.cta__price { margin: 0 0 24px; display: flex; align-items: baseline; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cta__price strong { font: 400 48px/1 var(--serif); }
.cta__price s { color: rgba(245, 241, 233, 0.5); }
.cta__price span { font-size: 14px; color: rgba(245, 241, 233, 0.65); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Site footer ---------- */

.site-footer { padding: 88px 0 32px; border-top: 1px solid var(--line); }
.site-footer__top { display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 64px; }
.site-footer__brand > p { margin: 18px 0 24px; max-width: 24em; color: var(--muted); }
.site-footer__brand .waitlist input { height: 44px; }
.site-footer__brand .waitlist .btn { height: 44px; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.site-footer__cols p { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.site-footer__cols a,
.site-footer__cols button {
  display: block;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: none;
  font: 400 15px var(--sans);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.site-footer__cols a:hover,
.site-footer__cols button:hover { color: var(--accent); }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.site-footer__bottom p { margin: 0; }

/* ---------- Checkout ---------- */

.co-head { border-bottom: 1px solid var(--line); }
.co-head__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.co-head .logo { color: var(--ink); }
.co-head__secure { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.co-head__secure svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.co-head__cart { border: 0; background: none; font: 500 14px var(--sans); text-decoration: underline; cursor: pointer; }

.co__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 72px; padding-top: 56px; padding-bottom: 96px; }
.co__title { margin: 0 0 8px; font: 400 64px/1 var(--serif); letter-spacing: -0.02em; }
.co__step { margin: 36px 0 0; padding: 0; border: 0; }
.co__step legend { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 0; font: 400 28px/1 var(--serif); }
.co__step legend span {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font: 600 13px var(--sans);
}
.co__fine { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
#placeOrder { margin-top: 36px; }

.field { display: flex; flex-direction: column; margin-bottom: 14px; }
.field label { margin-bottom: 6px; font-size: 13px; font-weight: 500; }
.field label span { font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(27, 25, 21, 0.18);
  border-radius: 12px;
  background: #fffdf9;
  font: 400 16px var(--sans);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { height: auto; padding: 14px 16px; resize: vertical; }
.field select { appearance: none; background: #fffdf9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231b1915' stroke-width='1.5'/%3E%3C/svg%3E") right 18px center no-repeat; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(27, 25, 21, 0.07); }
.field__error { margin: 6px 0 0; font-size: 13px; color: var(--accent); }
.field__error:empty { display: none; }
.field.is-invalid input { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(194, 69, 45, 0.1); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row--3 { grid-template-columns: 1.3fr 1fr 1fr; }

.check { display: flex; align-items: flex-start; gap: 10px; margin-top: 6px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.check em { font-style: normal; color: var(--muted); }

.options { display: grid; gap: 10px; margin-bottom: 16px; }
.option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(27, 25, 21, 0.18);
  border-radius: 14px;
  background: #fffdf9;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.option:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.option input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.option__body { flex: 1; display: flex; flex-direction: column; font-size: 14px; }
.option__body span { color: var(--muted); font-size: 13px; }
.option__price { font-weight: 500; font-size: 15px; }

.gift-note { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.gift-note > div { overflow: hidden; }
.gift-note.is-open { grid-template-rows: 1fr; }
.gift-note.is-open .field { margin-top: 14px; }

.paylater {
  display: flex;
  gap: 18px;
  padding: 22px;
  border-radius: 16px;
  background: var(--night);
  color: rgba(245, 241, 233, 0.75);
  font-size: 14px;
}
.paylater p { margin: 0; }
.paylater__title { margin-bottom: 4px !important; font: 400 24px/1.15 var(--serif); color: var(--paper); }
.paylater__badge {
  flex: none;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e8cd98, #b88a4a);
  color: #2b2116;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.co__summary { position: relative; }
.co__summary-inner {
  position: sticky;
  top: 32px;
  padding: 32px;
  border-radius: 24px;
  background: #fbf9f4;
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(40, 28, 10, 0.4);
}
.co__summary h2 { margin: 0 0 4px; font: 400 30px/1 var(--serif); }
.line--summary { grid-template-columns: auto 1fr auto; align-items: center; }
.line__thumb { position: relative; }
.line__thumb .mini-frame { width: 64px; }
.line__thumb b {
  position: absolute;
  top: -8px; right: -8px;
  min-width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 600 12px/22px var(--sans);
  text-align: center;
}
.co__totals { padding-top: 10px; border-top: 1px solid var(--line); }
.due-today {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(63, 122, 74, 0.1);
  color: #2f5e39;
  font-size: 14px;
  font-weight: 600;
}
.co__assure { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.co__assure li::before { content: "✓ "; color: #3f7a4a; }

.co__empty { display: none; padding: 140px 24px; text-align: center; }
.co__empty h1 { margin: 0; font: 400 56px/1 var(--serif); }
.co__empty p { color: var(--muted); }
.co.is-empty .co__empty { display: block; }
.co.is-empty .co__grid { display: none; }

/* ---------- Confirmation ---------- */

.thanks__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px 64px;
  padding-top: 64px;
  padding-bottom: 112px;
}
.thanks__hero { grid-column: 1 / -1; display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; margin-bottom: 24px; }
.thanks__wall {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 24px;
  background: url("images/room-main.jpg") 66% 22% / 520% auto;
}
.thanks__wall .frame--hero { width: 70%; animation: hang 1.4s var(--ease) both; }
@keyframes hang { from { opacity: 0; transform: translateY(-24px) rotate(-2deg); } }
.thanks__title { margin: 0; font: 400 clamp(48px, 5.6vw, 84px)/0.98 var(--serif); letter-spacing: -0.02em; }
.thanks__title em { color: var(--ink-2); }
.thanks__lede { margin: 22px 0 0; max-width: 32em; font-size: 18px; color: var(--muted); }
.thanks__lede b { color: var(--ink); font-weight: 600; }
.thanks__panel {
  align-self: start;
  padding: 32px;
  border-radius: 24px;
  background: #fbf9f4;
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(40, 28, 10, 0.4);
}
.thanks__panel h2,
.thanks__next h2 { margin: 0 0 8px; font: 400 30px/1 var(--serif); }
.thanks__ship { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.thanks__ship p { margin: 0 0 6px; font-weight: 600; }
.thanks__ship address { font-style: normal; color: var(--muted); }
.thanks__next { grid-row: 2; grid-column: 1; }
.timeline { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: step; }
.timeline li {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 0 26px 48px;
  counter-increment: step;
}
.timeline li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--paper-2);
  font: 600 13px var(--sans);
}
.timeline li:first-child::before { content: "✓"; background: #3f7a4a; color: #fff; }
.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 14.5px; top: 34px; bottom: 4px;
  width: 1px;
  background: var(--line);
}
.timeline b { font-weight: 600; }
.timeline span { color: var(--muted); }
.thanks__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.thanks__missing { display: none; padding: 140px 24px; text-align: center; }
.thanks__missing h1 { margin: 0; font: 400 52px/1 var(--serif); }
.thanks__missing p { color: var(--muted); }
.thanks.is-missing .thanks__grid { display: none; }
.thanks.is-missing .thanks__missing { display: block; }

/* ---------- Support ---------- */

.support-hero { padding: 150px 0 40px; }
.support-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.support-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 26px;
  border-radius: 20px;
  background: #fbf9f4;
  box-shadow: 0 0 0 1px var(--line);
  text-decoration: none;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.support-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 24px 40px -24px rgba(40, 28, 10, 0.35); }
.support-card b { font: 400 28px/1.1 var(--serif); }
.support-card span { font-size: 14px; color: var(--muted); }
.policy { padding-top: 56px; }
.policy__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 72px; }
.policy article { padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.policy h2 { margin: 0 0 14px; font: 400 36px/1.05 var(--serif); }
.policy p { margin: 0 0 14px; color: var(--muted); }
.policy ul { margin: 0; padding: 0; list-style: none; }
.policy li { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.policy li b { display: inline-block; min-width: 100px; color: var(--ink); font-weight: 600; }
.policy .btn { margin-top: 8px; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .pdp__grid { grid-template-columns: 1fr; gap: 40px; }
  .pdp__media { position: static; }
  .trio { grid-template-columns: 1fr; gap: 48px; }
  .finishes__row { grid-template-columns: repeat(2, 1fr); }
  .co__grid { grid-template-columns: 1fr; gap: 40px; padding-top: 32px; }
  .co__summary { order: -1; }
  .co__summary-inner { position: static; }
  .thanks__grid { grid-template-columns: 1fr; }
  .thanks__next { grid-row: auto; }
  .support-cards { grid-template-columns: repeat(2, 1fr); }
  .site-footer__top { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 760px) {
  .nav__end .btn { display: none; }
  .pdp { padding-top: 88px; }
  .stage { border-radius: 18px; margin: 0 -8px; }
  .thumbs { display: flex; overflow-x: auto; scrollbar-width: none; margin: 12px -22px 0; padding: 2px 22px; }
  .thumbs::-webkit-scrollbar { display: none; }
  .thumbs button { flex: 0 0 72px; }
  .try { flex-wrap: wrap; }
  .try__label { flex-basis: 100%; }
  .perks { grid-template-columns: 1fr; }
  .finishes__row { gap: 14px; }
  .finish-card__name { font-size: 21px; }
  .sticky-buy { bottom: 8px; padding: 0 8px; }
  .sticky-buy__inner { padding: 8px 8px 8px 10px; gap: 10px; }
  .sticky-buy__price s { display: none; }
  .sticky-buy__price { font-size: 20px; }
  .field-row, .field-row--3 { grid-template-columns: 1fr; gap: 0; }
  .co__title { font-size: 48px; }
  .co__summary-inner { padding: 22px; }
  .co-head__secure { display: none; }
  .thanks__hero { grid-template-columns: 1fr; gap: 28px; }
  .thanks__wall { max-width: 260px; }
  .support-cards { grid-template-columns: 1fr; }
  .policy__grid { grid-template-columns: 1fr; }
  .site-footer__cols { grid-template-columns: repeat(2, 1fr); }
  .site-footer__bottom { flex-direction: column; gap: 6px; }
  .drawer__panel { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 88svh; transform: translateY(calc(100% + 16px)); }
}

/* ---------- Brand logo ---------- */
.logo .logo-svg { display: block; height: 26px; width: auto; }
.site-footer .logo .logo-svg { height: 32px; }
