:root {
  color-scheme: light;
  --ink: #111313;
  --muted: #6d7270;
  --line: rgba(17, 19, 19, 0.14);
  --surface: #f8f7f4;
  --panel: #fbfaf7;
  --panel-strong: #ffffff;
  --sage: #dce7e3;
  --rose: #7a2144;
  --plum: #31131f;
  --gold: #9c7a39;
  --shadow: 0 18px 54px rgba(17, 19, 19, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.48;
  background: linear-gradient(180deg, #ffffff 0, var(--surface) 460px);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 22px;
  padding: 16px clamp(16px, 3vw, 38px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  min-width: 0;
  text-decoration: none;
}

.brand-living-logo {
  --living-logo-size: 52px;
}

.brand-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04rem;
  font-weight: 700;
}

.brand strong {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.muted {
  color: var(--muted);
}

.primary-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.primary-nav a,
.site-footer a {
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 760;
  padding: 8px 10px;
  text-decoration: none;
}

.primary-nav a.active,
.primary-nav a:hover,
.site-footer a:hover {
  background: var(--sage);
}

.preview-ribbon {
  max-width: 330px;
  padding: 8px 12px;
  border: 1px solid rgba(166, 66, 97, 0.34);
  border-radius: 8px;
  background: #fff7fa;
  color: var(--rose);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-align: center;
}

.cart-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--ink);
  padding: 0 12px;
  font-weight: 850;
}

.cart-button strong {
  min-width: 26px;
  min-height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
}

.storefront-shell {
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 38px);
}

.page-view {
  display: none;
}

.page-view.active-view {
  display: block;
}

.hero {
  min-height: min(760px, calc(100vh - 96px));
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  padding: clamp(22px, 5vw, 68px) 0 34px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.85rem;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.35rem;
  font-weight: 500;
  line-height: 1.02;
}

.hero p:not(.eyebrow),
.shop-heading p,
.info-page p {
  color: #49544f;
  font-size: 1.06rem;
}

.hero-actions,
.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.primary-link,
.secondary-link,
.pager button,
.detail-actions button,
.detail-actions a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 15px;
  font-weight: 850;
  text-decoration: none;
}

.primary-link {
  background: var(--ink);
  color: #fff;
}

.secondary-link,
.pager button,
.detail-actions button,
.detail-actions a {
  background: var(--panel-strong);
  color: var(--ink);
}

.hero-gallery {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  min-width: 0;
}

.hero-gallery .image-frame {
  border: 1px solid rgba(17, 19, 19, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-image-button {
  display: grid;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 0;
  text-align: left;
}

.hero-gallery .image-frame:first-child {
  grid-row: span 2;
}

.section-band {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.category-tiles,
.reassurance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.category-tile,
.reassurance-grid article,
.status-card,
.owner-note,
.policy-list,
.delivery-check {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.category-tile {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 20px;
  text-decoration: none;
}

.category-tile strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 500;
}

.category-tile span,
.status-card span,
.detail-meta,
.detail-note,
.card-copy span,
.footer-note {
  color: var(--muted);
  font-size: 0.86rem;
}

.reassurance-grid {
  margin: 28px 0 12px;
}

.reassurance-grid article {
  padding: 18px;
}

.reassurance-grid h3 {
  margin-bottom: 8px;
}

.shop-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 18px;
  align-items: end;
  margin-bottom: 22px;
}

.status-card {
  display: grid;
  gap: 4px;
  padding: 14px;
}

.toolbar,
.pager {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.beauty-subcategory-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: -4px 0 18px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.beauty-filter-pill {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--ink);
  padding: 0 12px;
  font-size: 0.84rem;
  font-weight: 850;
}

.beauty-filter-pill[data-active="true"] {
  border-color: rgba(122, 33, 68, 0.42);
  background: #fff7fa;
  color: var(--rose);
}

.sandbox-cart {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
}

.cart-heading,
.cart-line,
.cart-total-row,
.cart-actions,
.purchase-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.cart-heading h2 {
  margin: 0;
  font-size: 1.45rem;
}

.cart-heading button,
.cart-actions button,
.purchase-controls button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--ink);
  padding: 0 12px;
  font-weight: 850;
}

.cart-actions button {
  background: var(--ink);
  color: #fff;
}

.cart-lines {
  display: grid;
  gap: 10px;
}

.cart-line {
  align-items: stretch;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.cart-line-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.cart-line-copy strong,
.cart-line-copy span {
  overflow-wrap: anywhere;
}

.cart-line-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.cart-line-controls input {
  width: 76px;
}

.cart-totals {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.cart-total-row strong {
  font-size: 1.05rem;
}

.cart-actions {
  align-items: start;
}

.cart-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.purchase-controls {
  align-items: end;
  justify-content: start;
  flex-wrap: wrap;
  margin-top: 2px;
}

.quantity-field {
  min-width: 120px;
  max-width: 140px;
}

.destination-field {
  min-width: 190px;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 180px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.wide-field {
  flex: 1 1 340px;
}

input,
select {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--ink);
  padding: 0 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  min-height: 180px;
}

.compact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card,
.product-detail {
  border: 1px solid rgba(17, 19, 19, 0.11);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-card {
  display: grid;
  text-align: left;
  min-width: 0;
  box-shadow: none;
}

.product-card button {
  display: grid;
  gap: 12px;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
}

.image-frame {
  aspect-ratio: 1 / 1.24;
  background: #edf0ed;
  overflow: hidden;
}

.image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-placeholder {
  display: grid;
  height: 100%;
  place-items: center;
  padding: 16px;
  color: var(--muted);
  text-align: center;
}

.card-copy {
  display: grid;
  gap: 9px;
  padding: 16px;
  min-width: 0;
}

.card-copy h2 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.16;
  min-height: 3.48em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.price {
  margin: 0;
  font-weight: 850;
  letter-spacing: 0;
}

.pager {
  justify-content: center;
  margin: 22px 0;
}

.product-detail {
  display: none;
  margin-top: 22px;
}

.product-detail.active {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
}

.detail-gallery {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.detail-gallery .image-frame {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
}

.thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.thumbs button {
  width: 58px;
  height: 58px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel-strong);
}

.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-copy {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: clamp(18px, 3vw, 30px);
  min-width: 0;
}

.detail-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.55rem;
  font-weight: 500;
  line-height: 1.03;
  overflow-wrap: anywhere;
}

.variant-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.variant-list select {
  min-width: 0;
  max-width: 100%;
  text-overflow: ellipsis;
}

.description {
  max-height: 8.4em;
  overflow: hidden;
}

.description.expanded {
  max-height: none;
}

.disabled-action {
  opacity: 0.72;
}

.delivery-check {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.delivery-check button {
  width: fit-content;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sage);
  color: var(--ink);
  font-weight: 850;
  padding: 0 12px;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  text-align: center;
}

.info-page {
  max-width: 860px;
  padding: clamp(34px, 7vw, 86px) 0;
}

.policy-list {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 18px;
}

.market-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.market-item {
  display: grid;
  gap: 6px;
  min-height: 98px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  padding: 14px;
}

.market-item strong {
  color: var(--rose);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.market-item span {
  color: var(--ink);
}

.policy-list p {
  margin: 0;
}

.owner-note {
  padding: 14px;
  color: var(--plum);
  font-size: 0.96rem;
  font-weight: 800;
}

.site-footer {
  width: min(1220px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px auto 0;
  padding: 24px clamp(18px, 3vw, 36px) 34px;
  border-top: 1px solid var(--line);
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer span {
  color: var(--muted);
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
    align-items: stretch;
  }

  .brand,
  .primary-nav {
    grid-column: 1 / -1;
  }

  .primary-nav {
    justify-content: flex-start;
  }

  .preview-ribbon {
    max-width: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  h1 {
    font-size: 3.65rem;
  }

  .product-grid,
  .compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-tiles,
  .reassurance-grid,
  .market-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .shop-heading,
  .product-detail.active {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 3rem;
  }

  h2,
  .detail-copy h2 {
    font-size: 2rem;
  }
}

@media (max-width: 620px) {
  .storefront-shell {
    padding-inline: 14px;
  }

  .brand-living-logo {
    --living-logo-size: 44px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .primary-nav {
    gap: 4px;
  }

  .primary-nav a {
    padding: 7px 8px;
  }

  .hero-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .product-grid,
  .compact-grid,
  .category-tiles,
  .reassurance-grid,
  .market-list {
    grid-template-columns: 1fr;
  }

  .toolbar,
  .cart-line,
  .cart-actions,
  .purchase-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .cart-line-controls,
  .cart-line-controls input,
  .purchase-controls .field {
    width: 100%;
    max-width: none;
  }

  .beauty-subcategory-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .field {
    min-width: 0;
  }
}
