/* NOVA Living storefront components. */

/* ---------- Announcement + header ---------- */
.announce {
  background: var(--oat);
  font-size: 0.875rem;
  line-height: 1.4;
}
.announce__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 10px;
}
.announce__inner p { margin: 0; max-width: none; }
.announce__demo { color: var(--stone); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}
.wordmark svg { width: 86px; height: auto; overflow: visible; }
.wordmark__sub {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1;
  letter-spacing: 0.01em;
}
.nav { justify-self: center; }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
  list-style: none;
}
.nav a {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}
.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px; height: 24px;
  padding: 0 7px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.nav-toggle { display: none; }

@media (max-width: 1020px) {
  .site-header__inner { grid-template-columns: 1fr auto 1fr; }
  .nav-toggle { display: inline-grid; justify-self: start; margin-left: -10px; }
  .wordmark { grid-column: 2; }
  .cart-link { justify-self: end; }
  /* Open menu: a solid full-width sheet that fills the screen below the header. */
  .nav {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    top: var(--nav-top, 0px);
    width: auto;
    justify-self: stretch;
    background: var(--white);
    padding: 8px var(--gutter) 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .site-header.is-open { background: var(--white); }
  .site-header.is-open .nav { display: block; }
  html.nav-open { overflow: hidden; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav a {
    display: block;
    padding: 16px 0;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
  }
  .nav a::after { display: none; }
  .announce__demo { display: none; }
  .announce__inner { justify-content: center; text-align: center; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 136px) clamp(56px, 7vw, 96px); }
.section--flush-top { padding-top: clamp(32px, 4vw, 56px); }
.section--oat { background: var(--oat); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head p { margin: 0; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(24px, 3.5vw, 48px) 0; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}
.hero__title { margin-bottom: clamp(20px, 2.4vw, 32px); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__title .line > span { display: block; }
.hero__copy .lede { margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero__media {
  position: relative;
  height: clamp(460px, 76vh, 800px);
  background: var(--oat);
  overflow: hidden;
  border-radius: var(--r-sm);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.hero__caption {
  border-bottom-left-radius: var(--r-sm);
  position: absolute;
  left: 0; bottom: 0;
  max-width: min(90%, 360px);
  padding: 14px 20px;
  background: var(--paper);
  font-size: 0.9rem;
  line-height: 1.45;
}
.hero__caption p { margin: 0; }
.hero__caption a { font-weight: 550; }

.js .hero--intro .line > span { transform: translateY(108%); animation: reveal-failsafe 0.01s 2.6s forwards; }
.js .hero--intro .hero__copy .lede,
.js .hero--intro .hero__actions { opacity: 0; animation: reveal-failsafe 0.01s 2.6s forwards; }
.js .hero--intro .hero__media img { opacity: 0; animation: reveal-failsafe 0.01s 2.6s forwards; }
@keyframes reveal-failsafe { to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__media { height: auto; aspect-ratio: 4 / 5; max-height: 76vh; }
}

/* ---------- Promises ---------- */
.promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.promises > div { padding: 24px clamp(16px, 2.4vw, 36px); }
.promises > div + div { border-left: 1px solid var(--line); }
.promises > div:first-child { padding-left: 0; }
.promises h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.promises p { margin: 0; color: var(--stone); font-size: 0.95rem; }
@media (max-width: 760px) {
  .promises { grid-template-columns: 1fr; }
  .promises > div { padding: 18px 0; }
  .promises > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Collections ---------- */
.collections {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(20px, 2.4vw, 36px) clamp(16px, 2vw, 28px);
}
.ctile { display: flex; flex-direction: column; text-decoration: none; min-width: 0; }
.ctile__media {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--oat);
  border-radius: var(--r-sm);
  aspect-ratio: 1 / 1;
}
.ctile--beds { grid-row: 1 / 3; }
.ctile--beds .ctile__media { aspect-ratio: auto; min-height: 420px; }
.ctile--walking { grid-column: 2 / 4; }
.ctile--walking .ctile__media { aspect-ratio: 2 / 1; }
.ctile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
@media (hover: hover) { .ctile:hover .ctile__media img { transform: scale(1.025); } }
.ctile__text { padding-top: 14px; display: block; }
.ctile__name { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; }
.ctile__blurb { margin: 4px 0 0; font-size: 0.9rem; color: var(--stone); }
@media (max-width: 800px) {
  .collections { grid-template-columns: 1fr 1fr; }
  .ctile--beds { grid-column: 1 / 3; grid-row: auto; }
  .ctile--beds .ctile__media { aspect-ratio: 4 / 3; min-height: 0; }
  .ctile--walking { grid-column: 1 / 3; }
  .ctile--walking .ctile__media { aspect-ratio: 16 / 9; }
  .ctile__name { font-size: 1.4rem; }
}

/* ---------- Product cards and grids ---------- */
.pgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 56px) clamp(16px, 2vw, 28px);
  list-style: none;
}
.pgrid > li { min-width: 0; }
@media (max-width: 1100px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .pgrid { grid-template-columns: 1fr; } }

.pcard { display: flex; flex-direction: column; height: 100%; }
.pcard__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  background: var(--oat);
  overflow: hidden;
  border-radius: var(--r-sm);
}
.pcard__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pcard__img--alt { opacity: 0; transition: opacity 0.45s ease; }
@media (hover: hover) {
  .pcard:hover .pcard__img--alt { opacity: 1; }
}
.is-broken { opacity: 0; }
.pcard__body { display: flex; flex-direction: column; flex: 1; padding-top: 14px; }
.pcard__name { font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.35; }
.pcard__name a { text-decoration: none; }
.pcard__name a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.pcard__desc {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: var(--stone);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin: auto 0 0;
  padding-top: 12px;
}
.pcard__meta + .pcard__add { margin-top: 16px; }

.promo-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 14px;
  height: 100%;
  padding: clamp(24px, 3vw, 40px);
  background: var(--oat);
  border-radius: var(--r-sm);
}
.promo-tile p { margin: 0; color: var(--stone); max-width: 30ch; }
.pgrid__promo { display: none; grid-column: span 2; }
@media (min-width: 1101px) { .pgrid__promo { display: block; } }

/* ---------- Editorial ---------- */
.editorial {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.editorial__media {
  grid-column: 1 / 8;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--oat-deep);
  border-radius: var(--r-sm);
}
.editorial__media img { width: 100%; height: 100%; object-fit: cover; }
.editorial__copy { grid-column: 9 / 13; }
.editorial__copy .h2 { margin-bottom: 20px; }
.facts { margin: 28px 0 32px; }
.facts div { display: grid; grid-template-columns: 7rem 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-strong); }
.facts div:last-child { border-bottom: 1px solid var(--line-strong); }
.facts dt { font-weight: 600; font-size: 0.95rem; }
.facts dd { margin: 0; color: var(--stone); font-size: 0.95rem; }
@media (max-width: 960px) {
  .editorial__media, .editorial__copy { grid-column: 1 / -1; }
}

/* ---------- Brand statement ---------- */
.statement {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px clamp(24px, 4vw, 64px);
}
.statement__text { grid-column: 1 / 9; font-size: clamp(2rem, 1.2rem + 3.2vw, 4rem); line-height: 1.08; font-family: var(--font-display); letter-spacing: -0.008em; }
.statement__aside { grid-column: 9 / 13; align-self: end; }
.statement__images {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(24px, 4vw, 56px);
  align-items: start;
}
.statement__images figure { margin: 0; overflow: hidden; background: var(--oat); border-radius: var(--r-sm); }
.statement__images img { width: 100%; height: 100%; object-fit: cover; }
.statement__images figure:nth-child(1) { grid-column: 1 / 8; aspect-ratio: 16 / 10; }
.statement__images figure:nth-child(2) { grid-column: 9 / 13; aspect-ratio: 4 / 5; margin-top: clamp(24px, 6vw, 96px); }
@media (max-width: 860px) {
  .statement__text, .statement__aside { grid-column: 1 / -1; }
  .statement__images figure:nth-child(1) { grid-column: 1 / 9; }
  .statement__images figure:nth-child(2) { grid-column: 9 / 13; margin-top: 40px; }
}

/* ---------- Newsletter ---------- */
.newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px clamp(32px, 6vw, 96px);
  align-items: center;
  padding-block: clamp(40px, 6vw, 80px);
}
.newsletter p { margin: 12px 0 0; }
.newsletter__row { display: flex; gap: 12px; }
.newsletter__row .input { flex: 1; }
@media (max-width: 800px) {
  .newsletter { grid-template-columns: 1fr; }
  .newsletter__row { flex-direction: column; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 88px); font-size: 0.95rem; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: clamp(40px, 5vw, 72px);
}
.footer__brand p { color: var(--stone); max-width: 34ch; margin-top: 16px; }
.footer__col h2 { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; margin-bottom: 14px; }
.footer__col ul { list-style: none; display: grid; gap: 8px; }
.footer__col a { text-decoration: none; color: var(--stone); }
.footer__col a:hover { color: var(--ink); text-decoration: underline; }
.footer__col address { font-style: normal; color: var(--stone); }
.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  padding-block: 22px 28px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--stone);
}
.footer__base p { margin: 0; max-width: none; }
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---------- Page heads and breadcrumbs ---------- */
.page-head { padding-block: clamp(40px, 6vw, 88px) clamp(24px, 3vw, 40px); }
.page-head .h2 { font-size: clamp(2.6rem, 1.4rem + 4vw, 4.6rem); margin-bottom: 22px; }
.crumbs { font-size: 0.875rem; color: var(--stone); margin-bottom: 20px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line-strong); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Shop toolbar ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-block: 16px;
  margin-bottom: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chip {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip__n { margin-left: 6px; opacity: 0.7; font-variant-numeric: tabular-nums; }
.toolbar__right { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
.toolbar__count { margin: 0; font-size: 0.9rem; color: var(--stone); }
.toolbar__sort { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.toolbar__sort .select { width: auto; min-width: 200px; min-height: 42px; padding-block: 8px; }

/* ---------- Product detail ---------- */
.pdp {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
  padding-top: clamp(16px, 3vw, 32px);
}
.gallery { grid-column: 1 / 8; display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 16px); }
.gallery__main {
  position: relative;
  aspect-ratio: 5 / 6;
  max-height: 82vh;
  width: 100%;
  background: var(--oat);
  overflow: hidden;
  border-radius: var(--r-sm);
}
.gallery__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; list-style: none; flex-wrap: wrap; }
.thumb {
  width: 76px;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 1px solid transparent;
  outline: 1px solid var(--line);
  outline-offset: -1px;
  background: var(--oat);
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--r-sm);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border: 2px solid var(--ink); outline: none; }
.pdp__info { grid-column: 8 / 13; min-width: 0; }
.pdp__title { font-family: var(--font-display); font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.4rem); line-height: 1.05; margin-bottom: 18px; }
.pdp__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 20px; }
.pdp__price .price { font-size: 1.5rem; }
.pdp__price small { color: var(--stone); font-size: 0.85rem; }
.pdp__buy { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 12px; }
.pdp__buy .btn { flex: 1; min-width: 180px; }
.pdp__note { font-size: 0.9rem; color: var(--stone); margin: 0 0 32px; }
@media (max-width: 960px) {
  .gallery, .pdp__info { grid-column: 1 / -1; }
  .gallery { position: static; }
  .gallery__main { aspect-ratio: 4 / 5; }
}

.acc { border-top: 1px solid var(--line-strong); }
.acc:last-of-type { border-bottom: 1px solid var(--line-strong); }
.acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "";
  flex: none;
  width: 12px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%2325231f' stroke-width='1.5'%3E%3Cpath d='M7 1v12M1 7h12'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}
.acc[open] summary::after { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%2325231f' stroke-width='1.5'%3E%3Cpath d='M1 7h12'/%3E%3C/svg%3E") center / 12px 12px no-repeat; }
.acc__body { padding: 0 0 22px; color: var(--stone); }
.acc__body p:last-child { margin-bottom: 0; }
.specs { display: grid; gap: 0; margin: 0; }
.specs div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.specs div:first-child { border-top: 0; padding-top: 0; }
.specs dt { color: var(--ink); font-weight: 550; font-size: 0.95rem; }
.specs dd { margin: 0; font-size: 0.95rem; }

/* ---------- Cart ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.clines { list-style: none; }
.cline {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.clines .cline:last-child { border-bottom: 1px solid var(--line); }
.cline__media { display: block; aspect-ratio: 4 / 5; background: var(--oat); overflow: hidden; border-radius: var(--r-sm); }
.cline__media img { width: 100%; height: 100%; object-fit: cover; }
.cline__name { font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.35; }
.cline__name a { text-decoration: none; }
.cline__name a:hover { text-decoration: underline; }
.cline__unit { margin: 2px 0 12px; color: var(--stone); font-size: 0.9rem; }
.cline__warn { margin: -4px 0 10px; color: var(--danger); font-size: 0.9rem; font-weight: 550; }
.cline__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.cline__total { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cline--compact { grid-template-columns: 72px minmax(0, 1fr) auto; padding: 18px 0; gap: 14px; }
.cline--compact .qty__btn { height: 38px; width: 36px; }

.summary {
  background: var(--oat);
  padding: clamp(22px, 2.6vw, 36px);
  border-radius: var(--r-sm);
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.summary h2 { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.1; margin-bottom: 18px; }
.summary__rows { display: grid; gap: 12px; margin: 0 0 20px; }
.summary__rows div { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
.summary__rows dt { color: var(--stone); }
.summary__rows dd { margin: 0; font-weight: 550; text-align: right; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--line-strong); font-size: 1.2rem; font-weight: 600; }
.summary__vat { margin: 6px 0 22px; font-size: 0.85rem; color: var(--stone); }
.summary .btn + .btn { margin-top: 10px; }
.est { margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line-strong); }
.est .field { margin-bottom: 12px; }
.est__eta { margin: 0; font-size: 0.9rem; color: var(--stone); }
@media (max-width: 960px) {
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 520px) {
  .cline { grid-template-columns: 80px minmax(0, 1fr); }
  .cline__total { grid-column: 2; }
}

.free-note { margin-bottom: 20px; font-size: 0.9rem; }
.free-note p { margin: 0 0 8px; }
.free-note.is-met { color: var(--moss); font-weight: 550; }
.meter { height: 4px; background: var(--oat-deep); border-radius: 2px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--moss); transition: width 0.4s var(--ease); }

.empty { padding: clamp(40px, 8vw, 96px) 0; text-align: left; }
.empty__title { font-family: var(--font-display); font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1.1; margin: 0 0 8px; }
.empty__text { color: var(--stone); margin-bottom: 24px; }

/* ---------- Drawer ---------- */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  padding: 0;
  width: min(460px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  border: 0;
  background: transparent;
  overflow: visible;
}
.drawer[open]::backdrop { animation: fade-in 0.28s ease; }
.drawer.is-closing::backdrop { animation: fade-out 0.3s ease forwards; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.drawer__panel { display: flex; flex-direction: column; height: 100%; background: var(--paper); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 14px 28px; border-bottom: 1px solid var(--line); }
.drawer__title { font-family: var(--font-display); font-size: 1.8rem; line-height: 1; }
.drawer__body { flex: 1; overflow-y: auto; padding: 22px 28px; overscroll-behavior: contain; }
.drawer__body .empty { padding: 32px 0; }
.drawer__foot { padding: 20px 28px 28px; border-top: 1px solid var(--line); background: var(--paper); }
.drawer__foot:empty { display: none; }
.drawer__sub { display: flex; justify-content: space-between; margin: 0 0 4px; font-size: 1.1rem; max-width: none; }
.drawer__note { margin: 0 0 18px; font-size: 0.85rem; color: var(--stone); }
.drawer__actions { display: grid; gap: 10px; }
.drawer .clines .cline:last-child { border-bottom: 0; }

/* ---------- Checkout ---------- */
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.demo-note {
  padding: 18px 20px;
  background: var(--oat);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  margin-bottom: 36px;
}
.demo-note strong { display: block; margin-bottom: 4px; }
.demo-note p { margin: 0; color: var(--stone); max-width: none; }
.cpanel { padding: 32px 0; border-top: 1px solid var(--line); border-left: 0; border-right: 0; border-bottom: 0; margin: 0; min-width: 0; }
.cpanel > legend { float: left; width: 100%; padding: 0; margin: 0 0 22px; }
.cpanel > legend + * { clear: both; }
.cpanel__title { display: flex; align-items: center; gap: 14px; font-family: var(--font-display); font-size: 1.9rem; line-height: 1.1; }
.cpanel__step {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; align-items: start; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.opts { display: grid; gap: 10px; }
.opt {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 4px 14px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.opt:hover { border-color: var(--ink); }
.opt:has(input:checked) { border-color: var(--ink); background: var(--moss-tint); box-shadow: inset 0 0 0 1px var(--ink); }
.opt:has(input:focus-visible) { outline: 2px solid var(--moss); outline-offset: 3px; }
.opt input {
  appearance: none;
  width: 20px; height: 20px;
  margin: 2px 0 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
  grid-row: 1 / 3;
}
.opt input:checked::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.opt__title { font-weight: 600; }
.opt__detail { grid-column: 2; font-size: 0.9rem; color: var(--stone); margin: 0; }
.opt__price { grid-row: 1; grid-column: 3; font-weight: 600; font-variant-numeric: tabular-nums; }
.opt.is-disabled { opacity: 0.55; cursor: not-allowed; }
.opt.is-disabled:hover { border-color: var(--line-strong); }
.error-summary {
  padding: 16px 20px;
  background: var(--danger-tint);
  border: 1px solid var(--danger);
  border-radius: var(--r-sm);
  margin-bottom: 28px;
}
.error-summary h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-bottom: 6px; color: var(--danger); }
.error-summary ul { padding-left: 20px; }
.error-summary a { color: var(--danger); }
.checkout-summary .cline { grid-template-columns: 64px minmax(0, 1fr) auto; padding: 14px 0; gap: 14px; }
.checkout-summary .cline__unit { margin: 2px 0 0; }
.checkout-summary .clines { margin-bottom: 20px; }
.badge-qty { color: var(--stone); font-size: 0.9rem; }
.place-order { margin-top: 28px; }
@media (max-width: 960px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { order: -1; }
}

/* ---------- Success ---------- */
.success-head { padding-block: clamp(48px, 7vw, 104px) clamp(24px, 3vw, 40px); }
.success-head .ref { display: inline-block; margin-top: 8px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font-weight: 600; letter-spacing: 0.04em; background: var(--white); }
.success-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.info-list { display: grid; gap: 22px; margin: 0; }
.info-list dt { font-weight: 600; margin-bottom: 4px; }
.info-list dd { margin: 0; color: var(--stone); }
.sline { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.sline:last-child { border-bottom: 1px solid var(--line); }
.sline p { margin: 0; }
@media (max-width: 860px) { .success-grid { grid-template-columns: 1fr; } }

/* ---------- About / Contact ---------- */
.feature-image { position: relative; aspect-ratio: 21 / 9; overflow: hidden; background: var(--oat); border-radius: var(--r-sm); }
.feature-image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .feature-image { aspect-ratio: 4 / 3; } }
.prose { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px clamp(24px, 4vw, 64px); }
.prose__lead { grid-column: 1 / 6; }
.prose__body { grid-column: 7 / 13; }
.prose__body p { font-size: 1.0625rem; line-height: 1.7; }
@media (max-width: 860px) { .prose__lead, .prose__body { grid-column: 1 / -1; } }
.values { list-style: none; }
.values li {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px clamp(24px, 4vw, 64px);
  padding: 28px 0;
  border-top: 1px solid var(--line-strong);
}
.values li:last-child { border-bottom: 1px solid var(--line-strong); }
.values h3 { grid-column: 1 / 6; font-family: var(--font-display); font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.1; }
.values p { grid-column: 7 / 13; margin: 0; color: var(--stone); }
@media (max-width: 860px) { .values h3, .values p { grid-column: 1 / -1; } }
.duo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: end; }
.duo figure { margin: 0; overflow: hidden; background: var(--oat); border-radius: var(--r-sm); }
.duo img { width: 100%; height: 100%; object-fit: cover; }
.duo figure:nth-child(1) { grid-column: 1 / 6; aspect-ratio: 4 / 5; }
.duo figure:nth-child(2) { grid-column: 6 / 13; aspect-ratio: 4 / 3; }
@media (max-width: 760px) {
  .duo figure:nth-child(1), .duo figure:nth-child(2) { grid-column: 1 / -1; }
}

.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 7vw, 120px); align-items: start; }
.contact-details { display: grid; gap: 26px; }
.contact-details h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.contact-details p { margin: 0; color: var(--stone); }
.contact-details address { font-style: normal; color: var(--stone); }
.contact-details a { color: var(--ink); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 22px 0; font-size: 1.05rem; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%2325231f' stroke-width='1.5'%3E%3Cpath d='M7 1v12M1 7h12'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}
.faq details[open] summary::after { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%2325231f' stroke-width='1.5'%3E%3Cpath d='M1 7h12'/%3E%3C/svg%3E") center / 14px 14px no-repeat; }
.faq .faq__a { padding: 0 0 24px; color: var(--stone); max-width: 70ch; }
.faq .faq__a p:last-child { margin-bottom: 0; }

.not-found { padding: clamp(56px, 10vw, 140px) 0; }
