:root {
  --ink: #191917;
  --muted: #5d5d59;
  --navy: #0b2a72;
  --section: #f1f0ec;
  --card: #f6f5f1;
  --line: #e5e2db;
  --serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

svg {
  display: block;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 1.5px solid var(--navy);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- announcement ---------- */

.announcement {
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.012em;
  text-align: center;
}

/* ---------- header ---------- */

.site-header {
  background: #fff;
}

.header-inner {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0 22px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #1b1b19;
  transition: background-color 0.2s ease;
}

.icon-button:hover {
  background: #f3f1ec;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 4px;
}

.bag-link {
  position: relative;
  text-decoration: none;
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  display: grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
}

.brand {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  text-align: center;
}

.brand-name {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.005em;
}

.brand-tagline {
  color: #6c6c66;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 42px;
  padding: 0 24px 30px;
}

.nav-link {
  position: relative;
  padding-bottom: 6px;
  color: #1f1f1c;
  font-size: 13px;
  letter-spacing: 0.012em;
  text-decoration: none;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-link--menu {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 40;
  width: max-content;
  min-width: 220px;
  padding-top: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%);
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.nav-dropdown.is-open .nav-menu {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown.is-open .nav-link--menu .chevron {
  transform: rotate(180deg);
}

@media (hover: hover) {
  .nav-dropdown:hover .nav-menu {
    opacity: 1;
    visibility: visible;
  }

  .nav-dropdown:hover .nav-link--menu .chevron {
    transform: rotate(180deg);
  }
}

.nav-menu-panel {
  padding: 10px 0;
  border: 1px solid #e3dfd6;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(30, 26, 18, 0.12);
}

.nav-menu-item {
  display: block;
  width: 100%;
  padding: 10px 26px;
  border: 0;
  background: none;
  color: #33322d;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  white-space: nowrap;
}

.nav-menu-item:hover,
.nav-menu-item.is-selected {
  background: #f4f2ec;
}

/* ---------- collection ---------- */

.collection {
  padding: 42px 0 88px;
  background: var(--section);
}

.container {
  width: min(1180px, calc(100% - 80px));
  margin: 0 auto;
}

.collection-title {
  margin: 0 0 36px;
  font-family: var(--serif);
  font-size: clamp(38px, 3.6vw, 48px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.012em;
}

.collection-title:focus {
  outline: none;
}

/* ---------- toolbar ---------- */

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

.toolbar-label {
  color: #3a3a35;
  font-size: 13px;
}

.dropdown {
  position: relative;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: #3a3a35;
  font-size: 13px;
  white-space: nowrap;
}

.dropdown-trigger:hover {
  color: var(--ink);
}

.chevron {
  flex: none;
  transition: transform 0.2s ease;
}

.dropdown.is-open .chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  z-index: 20;
  display: none;
  min-width: 210px;
  max-width: calc(100vw - 36px);
  padding: 7px;
  border: 1px solid #e3dfd6;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(30, 26, 18, 0.12);
}

.dropdown.is-open .dropdown-menu {
  display: block;
}

.dropdown-menu--right {
  right: 0;
  left: auto;
}

.dropdown-option {
  display: block;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 2px;
  background: none;
  color: #33322d;
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
}

.dropdown-option:hover {
  background: #f5f3ee;
}

.dropdown-option.is-selected {
  background: #f3f1eb;
}

.product-count {
  margin-left: 16px;
  color: #3a3a35;
  font-size: 13px;
  white-space: nowrap;
}

/* ---------- product grid ---------- */

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

.product-card {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(35, 31, 23, 0.08);
}

.product-media,
.product-detail-media,
.cart-thumb,
.account-collage-tile {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(65% 50% at 18% 14%, rgba(255, 255, 255, 0.5), transparent 70%),
    radial-gradient(72% 58% at 20% 18%, var(--p1), transparent 72%),
    radial-gradient(68% 56% at 82% 26%, var(--p2), transparent 70%),
    radial-gradient(85% 70% at 52% 96%, var(--p3), transparent 74%),
    linear-gradient(150deg, var(--p4), var(--p1));
  box-shadow: inset 0 0 0 1px rgba(40, 36, 28, 0.045);
}

.product-media {
  aspect-ratio: 6 / 7;
}

.product-detail-media {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
}

.product-media::after,
.product-detail-media::after,
.cart-thumb::after,
.account-collage-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.24),
    rgba(255, 255, 255, 0) 38%,
    rgba(255, 255, 255, 0) 62%,
    rgba(255, 255, 255, 0.14)
  );
  pointer-events: none;
}

.product-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  color: rgba(38, 35, 30, 0.62);
}

.product-art::before {
  content: "";
  position: absolute;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0));
}

.product-art svg {
  position: relative;
  width: 74px;
  height: 74px;
}

.product-art--large::before {
  width: 260px;
  height: 260px;
}

.product-art--large svg {
  width: 120px;
  height: 120px;
}

.product-art--thumb::before {
  width: 76px;
  height: 76px;
}

.product-art--thumb svg {
  width: 38px;
  height: 38px;
}

.product-art--collage::before {
  width: 80px;
  height: 80px;
}

.product-art--collage svg {
  width: 38px;
  height: 38px;
}

.product-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 2px;
  background: #1a2f86;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.01em;
}

.product-detail-media .product-badge {
  bottom: 16px;
  left: 16px;
}

.product-info {
  padding: 16px 16px 20px;
}

.product-name {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.002em;
}

.product-price {
  margin: 8px 0 0;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 72px 20px;
  color: #55554f;
  font-family: var(--serif);
  font-size: 22px;
  text-align: center;
}

/* ---------- product detail ---------- */

.product-page {
  padding: 30px 0 92px;
  background: var(--section);
}

.product-shell {
  width: min(1040px, 100%);
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 26px;
  color: #5d5d57;
  font-size: 12px;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.back-link:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(48px, 7.5vw, 120px);
}

.product-detail-info {
  max-width: 460px;
  padding-top: 8px;
}

.detail-vendor {
  margin: 0 0 18px;
  color: #6b6b64;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.detail-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 3.3vw, 42px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.01em;
}

.detail-title:focus {
  outline: none;
}

.detail-price {
  margin: 16px 0 0;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.detail-note {
  margin: 7px 0 0;
  color: #4f4f49;
  font-size: 12.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.quantity {
  margin-top: 30px;
}

.quantity-label {
  display: block;
  margin-bottom: 8px;
  color: #3a3a35;
  font-size: 12px;
}

.quantity-control {
  display: grid;
  grid-template-columns: 44px 48px 44px;
  width: max-content;
  height: 46px;
  border: 1px solid #cfccc4;
  border-radius: 3px;
}

.qty-button {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: #23231f;
  font-size: 18px;
  line-height: 1;
}

.qty-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.55);
}

.qty-button:disabled {
  color: #b5b2aa;
  cursor: default;
}

.qty-value {
  display: grid;
  place-items: center;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.detail-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  padding: 0 20px;
  border-radius: 3px;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button--outline {
  border: 1px solid #cfccc4;
  background: #fff;
  color: #1d1d19;
}

.button--outline:hover:not(:disabled) {
  border-color: #8e8a80;
}

.button--solid {
  border: 1px solid #1e2422;
  background: #1e2422;
  color: #fff;
}

.button--solid:hover:not(:disabled) {
  border-color: #2e3834;
  background: #2e3834;
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pickup {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

.pickup-icon {
  flex: none;
  margin-top: 2px;
  color: #3b7a4d;
}

.pickup-copy p {
  margin: 0;
}

.pickup-copy .pickup-meta {
  margin-top: 2px;
}

.pickup-title {
  color: #2b2b26;
  font-size: 13px;
  line-height: 1.55;
}

.pickup-title strong {
  font-weight: 500;
}

.pickup-meta {
  color: #6c6c65;
  font-size: 12.5px;
}

.text-link {
  display: inline-block;
  margin-top: 7px;
  padding: 0;
  border: 0;
  background: none;
  color: #4b4b45;
  font-size: 12.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--ink);
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  padding: 0;
  border: 0;
  background: none;
  color: #3d3d37;
  font-size: 13px;
}

.share-button:hover {
  color: var(--ink);
}

.cart-status {
  margin: 12px 0 0;
  color: #3b7a4d;
  font-size: 12.5px;
}

.cart-status a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- cart ---------- */

.cart-page {
  padding: 42px 0 92px;
  background: var(--section);
}

.cart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.cart-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 3.6vw, 48px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.012em;
}

.cart-title:focus {
  outline: none;
}

.continue-link {
  color: #3f3f39;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.continue-link:hover {
  color: var(--ink);
}

.cart-table-head {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 150px 40px 120px;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dcd8d0;
  color: #6d6d66;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cart-head-product {
  grid-column: 1 / 3;
}

.cart-head-total {
  text-align: right;
}

.cart-item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 150px 40px 120px;
  gap: 20px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid #dcd8d0;
}

.cart-item:last-child {
  border-bottom: 0;
}

.cart-thumb {
  display: block;
  width: 104px;
  aspect-ratio: 4 / 5;
  border-radius: 3px;
  color: inherit;
  text-decoration: none;
}

.cart-product-name {
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.45;
  text-decoration: none;
}

.cart-product-name:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-product-price {
  margin: 7px 0 0;
  color: #3f3f39;
  font-size: 13.5px;
}

.quantity-control--cart {
  grid-template-columns: 40px 44px 40px;
  height: 42px;
}

.cart-remove {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #62625c;
}

.cart-remove:hover {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
}

.cart-line-total {
  margin: 0;
  font-size: 14.5px;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cart-footer {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-top: 26px;
  border-top: 1px solid #dcd8d0;
}

.cart-instructions {
  width: min(340px, 100%);
}

.cart-instructions-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.cart-instructions textarea {
  width: 100%;
  min-height: 96px;
  padding: 10px 12px;
  border: 1px solid #cfccc4;
  border-radius: 2px;
  background: #fbfaf7;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
}

.cart-summary {
  width: min(344px, 100%);
  margin-left: auto;
}

.cart-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.cart-tax-note {
  margin: 7px 0 0;
  color: #5d5d57;
  font-size: 11.5px;
  text-align: right;
}

.underline {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cart-checkout {
  margin-top: 18px;
}

.cart-empty {
  padding: 64px 0 72px;
  border-top: 1px solid #dcd8d0;
}

.cart-empty-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
}

.cart-empty-copy {
  margin: 8px 0 0;
  color: #5d5d57;
  font-size: 13px;
}

.cart-empty-button {
  display: inline-flex;
  width: auto;
  margin-top: 22px;
  padding: 0 24px;
  text-decoration: none;
}

/* ---------- account / sign in ---------- */

body.auth-mode {
  background: #fff;
}

body.auth-mode .announcement,
body.auth-mode .site-header,
body.auth-mode .site-footer {
  display: none;
}

.auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 34px 20px 26px;
  background: #fff;
}

.auth-brand {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.auth-panel {
  width: min(340px, 100%);
  margin: auto 0;
  padding: 54px 0;
}

.auth-title {
  margin: 0;
  color: #171715;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.auth-title:focus {
  outline: none;
}

.auth-subtitle {
  margin: 7px 0 0;
  color: #6a6a64;
  font-size: 14px;
  line-height: 1.5;
}

.auth-subtitle strong {
  color: #2b2b27;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.auth-google {
  margin-top: 24px;
}

.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #cfccc4;
  border-radius: 8px;
  background: #fff;
  color: #1f1f1c;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.google-button:hover:not(:disabled) {
  border-color: #8e8a80;
  background: #faf9f6;
}

.google-button:disabled {
  cursor: default;
  opacity: 0.6;
}

.google-button svg {
  flex: none;
}

.auth-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 120px;
  color: #6a6a64;
  font-size: 13px;
}

.auth-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #ddd9d1;
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: auth-spin 0.8s linear infinite;
}

@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  color: #2c2c27;
  font-size: 13px;
  cursor: pointer;
}

.auth-check input {
  appearance: none;
  display: grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1px solid #b8b5ad;
  border-radius: 50%;
  background: #fff;
}

.auth-check input:checked {
  border-color: var(--navy);
}

.auth-check input:checked::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy);
}

.auth-terms {
  margin: 20px 0 0;
  color: #75756e;
  font-size: 11.5px;
  line-height: 1.6;
  text-align: center;
}

.auth-link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.auth-link:hover {
  color: var(--ink);
}

.auth-error {
  margin: 12px 0 0;
  color: #a33a32;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
}

.auth-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 40px;
  color: #33332e;
  font-size: 12.5px;
}

.auth-footer-dot {
  color: #a3a199;
}

.auth-footer .auth-link {
  color: inherit;
}

/* ---------- signed-in account ---------- */

.account-page {
  background: #fff;
}

.account-shell {
  display: flex;
  flex-direction: column;
  width: min(1120px, calc(100% - 80px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 30px 0 26px;
}

.account-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.account-brand {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.account-layout {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: clamp(40px, 8vw, 120px);
  margin-top: 52px;
}

.account-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: 2px;
}

.account-tab {
  padding: 0;
  border: 0;
  background: none;
  color: #7a7a72;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.account-tab:hover {
  color: var(--ink);
}

.account-tab.is-active {
  color: var(--ink);
  font-weight: 600;
}

.account-content {
  width: 100%;
  max-width: 660px;
}

.account-card {
  border: 1px solid #e7e4dd;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(35, 31, 23, 0.04);
}

.account-welcome {
  overflow: hidden;
  padding: 24px 24px 0;
}

.account-welcome-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.account-welcome-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.account-welcome-copy {
  margin: 3px 0 0;
  color: #7a7a72;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.account-shop-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 15px;
  border-radius: 999px;
  background: #1e2422;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.account-shop-now:hover {
  background: #2e3834;
}

.account-collage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  height: 178px;
  margin-top: 18px;
}

.account-collage-tile {
  flex: none;
  width: 118px;
  height: 94px;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(28, 24, 18, 0.12);
}

.account-collage-tile:nth-child(1) {
  transform: rotate(-8deg) translateY(12px);
}

.account-collage-tile:nth-child(2) {
  transform: rotate(4deg) translateY(-4px);
}

.account-collage-tile:nth-child(3) {
  transform: rotate(9deg) translateY(4px);
}

.account-collage-tile:nth-child(4) {
  transform: rotate(-5deg) translateY(14px);
}

.account-section {
  margin-bottom: 28px;
}

.account-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.account-section-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.account-small-button {
  height: 30px;
  padding: 0 13px;
  border: 1px solid #e0ddd5;
  border-radius: 999px;
  background: #fff;
  color: #2b2b26;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.account-small-button:hover {
  border-color: #a8a49a;
}

.account-small-button--dark {
  border-color: #1e2422;
  background: #1e2422;
  color: #fff;
}

.account-small-button--dark:hover {
  border-color: #2e3834;
  background: #2e3834;
}

.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid #e7e4dd;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
}

.account-row-label {
  flex: none;
  color: #8a8a82;
}

.account-row-value {
  color: #2b2b26;
  text-align: right;
  overflow-wrap: anywhere;
}

.account-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #55554f;
}

.account-icon-circle {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f6f4ef;
  color: #8a8a82;
}

.account-inline-note,
.account-notice {
  margin: 8px 2px 0;
  color: #6b6b64;
  font-size: 12px;
  line-height: 1.5;
}

.account-address-list {
  display: grid;
  gap: 8px;
}

.account-address-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border: 1px solid #e7e4dd;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  line-height: 1.5;
}

.account-address-item strong {
  display: block;
  font-weight: 600;
}

.account-address-item p {
  margin: 2px 0 0;
  color: #6a6a64;
}

.account-address-remove {
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  color: #6a6a64;
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.account-address-form {
  margin-top: 10px;
  padding: 16px;
  border: 1px solid #e7e4dd;
  border-radius: 10px;
  background: #fbfaf7;
}

.account-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.account-form-grid label {
  display: grid;
  gap: 4px;
  color: #6a6a64;
  font-size: 11.5px;
}

.account-form-grid .account-form-wide {
  grid-column: 1 / -1;
}

.account-form-grid input {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #ddd9d0;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.account-form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.account-text-button {
  padding: 0;
  border: 0;
  background: none;
  color: #4f4f49;
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.account-address-note {
  margin: 8px 2px 0;
  color: #8a8a82;
  font-size: 11px;
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.account-signout {
  height: 38px;
  padding: 0 18px;
  border: 1px solid #dcd8d0;
  border-radius: 999px;
  background: #fff;
  color: #1f1f1c;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.account-signout:hover:not(:disabled) {
  border-color: #a8a49a;
}

.account-signout:disabled {
  opacity: 0.5;
  cursor: default;
}

.account-signout-all {
  padding: 0;
  border: 0;
  background: none;
  color: #4f4f49;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.account-signout-all:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 48px;
  color: #33332e;
  font-size: 12px;
}

.account-footer-link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* ---------- checkout ---------- */

.checkout-page {
  padding: 42px 0 92px;
  background: var(--section);
}

.checkout-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.checkout-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 3.6vw, 48px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.012em;
}

.checkout-title:focus {
  outline: none;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.checkout-card {
  padding: 24px;
  border: 1px solid #e7e4dd;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(35, 31, 23, 0.04);
}

.checkout-kicker {
  margin: 0 0 4px;
  color: #8a8a82;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.checkout-email {
  margin: 0 0 26px;
  font-size: 14px;
}

.checkout-subtitle {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
}

.checkout-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkout-field {
  display: grid;
  gap: 5px;
  color: #6a6a64;
  font-size: 11.5px;
}

.checkout-field--wide {
  grid-column: 1 / -1;
}

.checkout-field input,
.checkout-field textarea {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid #ddd9d0;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
}

.checkout-field textarea {
  min-height: 80px;
  padding: 10px 11px;
  resize: vertical;
}

.checkout-pay {
  margin-top: 20px;
}

.checkout-error {
  margin: 14px 0 0;
  color: #a33a32;
  font-size: 12.5px;
  line-height: 1.5;
}

.checkout-legal {
  margin: 12px 0 0;
  color: #7a7a72;
  font-size: 11px;
  line-height: 1.55;
}

.checkout-summary {
  position: sticky;
  top: 24px;
}

.checkout-lines {
  display: grid;
  gap: 10px;
  margin: 4px 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e7e4dd;
}

.checkout-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #3f3f39;
  font-size: 13px;
}

.checkout-line span:last-child {
  white-space: nowrap;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 0;
  color: #4f4f49;
  font-size: 13px;
}

.checkout-total-row em {
  color: #9a978e;
  font-size: 10.5px;
  font-style: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.checkout-total-row--grand {
  margin-top: 8px;
  padding-top: 13px;
  border-top: 1px solid #e7e4dd;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.checkout-gate {
  max-width: 460px;
  margin: 20px auto;
  padding: 34px 28px;
  text-align: center;
}

.checkout-gate-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
}

.checkout-gate-copy {
  margin: 0 0 22px;
  color: #6a6a64;
  font-size: 13px;
}

.checkout-google {
  max-width: 300px;
  margin: 0 auto 18px;
}

.checkout-gate .continue-link {
  display: inline-block;
  margin-top: 6px;
}

.checkout-success {
  max-width: 560px;
  margin: 20px auto;
  padding: 34px 28px;
  text-align: center;
}

.checkout-success-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
}

.checkout-success-copy {
  margin: 0 0 10px;
  color: #5d5d57;
  font-size: 13px;
  line-height: 1.6;
}

.checkout-success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.checkout-success-actions .button {
  width: auto;
  padding: 0 20px;
  text-decoration: none;
}

.account-orders {
  margin-top: 24px;
}

.account-orders-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
}

.account-orders-status {
  margin: 14px 2px 0;
  color: #6b6b64;
  font-size: 12.5px;
  line-height: 1.5;
}

.account-orders-error {
  color: #a33a32;
}

.account-order-list {
  display: grid;
  gap: 8px;
}

.account-order {
  padding: 14px 16px;
  border: 1px solid #e7e4dd;
  border-radius: 10px;
  background: #fff;
}

.account-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-order-id {
  font-size: 13px;
  font-weight: 600;
}

.account-order-status {
  padding: 3px 9px;
  border-radius: 999px;
  background: #f3f1eb;
  color: #5d5d57;
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

.account-order-status--paid {
  background: #e8f1e9;
  color: #3b7a4d;
}

.account-order-status--failed,
.account-order-status--payment_failed,
.account-order-status--expired {
  background: #f7e9e7;
  color: #a33a32;
}

.account-order-status--pending_payment {
  background: #f7f1e2;
  color: #8a6a2f;
}

.account-order-meta {
  margin: 5px 0 0;
  color: #6a6a64;
  font-size: 12px;
}

.account-order-total {
  margin: 7px 0 0;
  font-size: 14px;
  font-weight: 500;
}

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

.site-footer {
  padding: 38px 0 44px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  width: min(1180px, calc(100% - 80px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 21px;
}

.footer-line {
  color: #6c6c66;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.footer-copy {
  margin-top: 6px;
  color: #8b8b84;
  font-size: 11px;
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .product-detail-media {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
  }

  .product-detail-info {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
  }
}

@media (max-width: 820px) {
  .header-inner {
    width: calc(100% - 40px);
    padding-top: 30px;
  }

  .brand-name {
    font-size: 30px;
  }

  .site-nav {
    gap: 32px;
    padding-bottom: 24px;
  }

  .container,
  .footer-inner {
    width: calc(100% - 48px);
  }

  .collection {
    padding-top: 34px;
  }

  .collection-title {
    margin-bottom: 28px;
  }

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

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
  }
}

@media (max-width: 760px) {
  .cart-table-head {
    display: none;
  }

  .cart-item {
    grid-template-columns: 88px minmax(0, 1fr) auto;
    grid-template-areas:
      "thumb info remove"
      "thumb qty total";
    gap: 8px 14px;
    align-items: start;
    padding: 20px 0;
  }

  .cart-thumb {
    grid-area: thumb;
    width: 88px;
  }

  .cart-product-info {
    grid-area: info;
  }

  .cart-qty {
    grid-area: qty;
    align-self: end;
  }

  .cart-remove {
    grid-area: remove;
    align-self: start;
    justify-self: end;
  }

  .cart-line-total {
    grid-area: total;
    align-self: end;
    justify-self: end;
  }

  .cart-footer {
    flex-direction: column;
    gap: 24px;
    padding-top: 24px;
  }

  .cart-instructions {
    width: 100%;
    max-width: 420px;
  }

  .cart-summary {
    width: 100%;
    margin-left: 0;
  }

  .cart-tax-note {
    text-align: left;
  }

  .product-art--thumb::before {
    width: 64px;
    height: 64px;
  }

  .product-art--thumb svg {
    width: 32px;
    height: 32px;
  }

  .account-shell {
    width: calc(100% - 48px);
    padding-top: 24px;
  }

  .account-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 34px;
  }

  .account-nav {
    flex-direction: row;
    gap: 24px;
  }

  .account-content {
    max-width: none;
  }

  .account-welcome {
    padding: 20px 20px 0;
  }

  .account-collage {
    gap: 12px;
    height: 150px;
  }

  .account-collage-tile {
    width: 96px;
    height: 78px;
  }

  .account-footer {
    gap: 10px 14px;
    padding-top: 36px;
  }
}

@media (max-width: 640px) {
  .toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .toolbar-group {
    width: 100%;
  }

  .toolbar-group--sort {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .toolbar-group--sort .dropdown-menu {
    right: auto;
    left: 0;
  }

  .product-count {
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  .announcement {
    padding: 9px 14px;
    font-size: 11px;
  }

  .header-inner {
    padding-top: 24px;
    padding-bottom: 16px;
  }

  .brand-name {
    font-size: 27px;
  }

  .brand-tagline {
    letter-spacing: 0.2em;
  }

  .icon-button {
    width: 32px;
    height: 32px;
  }

  .site-nav {
    padding-bottom: 20px;
  }

  .container,
  .footer-inner {
    width: calc(100% - 36px);
  }

  .collection {
    padding-top: 28px;
    padding-bottom: 64px;
  }

  .collection-title {
    font-size: 36px;
  }

  .product-page {
    padding-top: 22px;
    padding-bottom: 64px;
  }

  .back-link {
    margin-bottom: 18px;
  }

  .detail-title {
    font-size: 32px;
  }

  .cart-page {
    padding-top: 28px;
    padding-bottom: 64px;
  }

  .cart-title {
    font-size: 36px;
  }

  .cart-head {
    margin-bottom: 26px;
  }

  .cart-item {
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 6px 12px;
  }

  .cart-thumb {
    width: 76px;
  }

  .quantity-control--cart {
    grid-template-columns: 36px 40px 36px;
    height: 40px;
  }

  .cart-empty {
    padding: 48px 0 56px;
  }

  .cart-empty-title {
    font-size: 23px;
  }

  .auth-page {
    padding: 26px 20px 22px;
  }

  .auth-panel {
    padding: 40px 0;
  }

  .auth-brand {
    font-size: 25px;
  }

  .product-art--thumb::before {
    width: 56px;
    height: 56px;
  }

  .product-art--thumb svg {
    width: 28px;
    height: 28px;
  }

  .account-shell {
    width: calc(100% - 36px);
    padding-top: 20px;
  }

  .account-brand {
    font-size: 20px;
  }

  .account-welcome-title {
    font-size: 17px;
  }

  .account-welcome-copy {
    font-size: 15px;
  }

  .account-collage {
    gap: 8px;
    height: 130px;
  }

  .account-collage-tile {
    width: 78px;
    height: 66px;
    border-radius: 6px;
  }

  .product-art--collage::before {
    width: 54px;
    height: 54px;
  }

  .product-art--collage svg {
    width: 28px;
    height: 28px;
  }

  .account-form-grid {
    grid-template-columns: 1fr;
  }

  .account-form-grid .account-form-wide {
    grid-column: auto;
  }

  .account-footer {
    font-size: 11px;
  }

  .checkout-page {
    padding-top: 28px;
    padding-bottom: 64px;
  }

  .checkout-title {
    font-size: 36px;
  }

  .checkout-fields {
    grid-template-columns: 1fr;
  }

  .checkout-field--wide {
    grid-column: auto;
  }

  .checkout-card {
    padding: 20px;
  }

  .checkout-success-actions .button {
    width: 100%;
  }

  .product-info {
    padding: 13px 13px 16px;
  }

  .product-name,
  .product-price {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .auth-spinner {
    animation: none;
  }
}

/* ---------- magazines, product photos, query routing ---------- */

.product-media--photo {
  background: #eceae3;
}

.product-media--photo::after,
.product-detail-media--photo::after,
.cart-thumb--photo::after,
.account-collage-tile--photo::after {
  display: none;
}

.product-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.product-kicker {
  margin: 0 0 5px;
  color: #6c6c65;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-detail-media--photo {
  aspect-ratio: 3 / 4;
  background: #eceae3;
}

.product-detail-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-note--made {
  text-decoration: none;
}

.detail-description {
  margin-top: 26px;
  color: #3f3f39;
  font-size: 13.5px;
  line-height: 1.7;
}

.detail-description p {
  margin: 0 0 12px;
}

.detail-description > p:last-child {
  margin-bottom: 0;
}

.detail-customise {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #e2ded5;
  border-radius: 3px;
  background: #fbfaf6;
}

.detail-customise-title {
  margin: 0 0 6px;
  color: #5d5d57;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-customise p {
  margin: 0;
}

.cart-thumb--photo {
  background: #eceae3;
}

.cart-thumb-photo,
.account-collage-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.account-collage-tile--photo {
  background: #eceae3;
}

.subcategory-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -6px 0 26px;
}

.subcategory-chip {
  padding: 8px 14px;
  border: 1px solid #d8d4ca;
  border-radius: 999px;
  background: #fff;
  color: #3a3a35;
  font-size: 12px;
}

.subcategory-chip:hover {
  border-color: #8e8a80;
}

.subcategory-chip.is-selected {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  padding: 11px 18px;
  border-radius: 999px;
  background: #1d1d19;
  color: #fff;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 30px rgba(20, 18, 12, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 640px) {
  .subcategory-bar {
    margin-bottom: 20px;
  }
}

/* ---------- local worker banner ---------- */

.dev-banner {
  background: #fff4d6;
  border-bottom: 1px solid #ecd9a5;
  color: #5a4310;
}

.dev-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 80px));
  margin: 0 auto;
  padding: 11px 0;
}

.dev-banner-copy {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
}

.dev-banner-copy strong {
  font-weight: 500;
}

.dev-banner-copy code,
.checkout-preview-note code {
  padding: 2px 6px;
  border: 1px solid #eadfbf;
  border-radius: 3px;
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  white-space: nowrap;
}

.dev-banner-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
}

.dev-banner-retry {
  padding: 6px 14px;
  border: 1px solid #c9ab62;
  border-radius: 3px;
  background: #fff;
  color: #5a4310;
  font-size: 12px;
}

.dev-banner-retry:hover {
  background: #fffaf0;
}

.dev-banner-close {
  padding: 0 4px;
  border: 0;
  background: none;
  color: #5a4310;
  font-size: 20px;
  line-height: 1;
}

/* ---------- search overlay ---------- */

body.search-open,
body.cart-drawer-open,
body.policy-open {
  overflow: hidden;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
}

.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 12, 0.42);
}

.search-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(720px, calc(100% - 32px));
  max-height: min(76vh, 720px);
  margin: 86px auto 0;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(20, 18, 12, 0.28);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.search-icon {
  flex: none;
  color: #6b6b64;
}

.search-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.search-bar input::placeholder {
  color: #9a968c;
}

.search-bar input[type="search"]::-webkit-search-cancel-button,
.search-bar input[type="search"]::-webkit-search-decoration {
  display: none;
  -webkit-appearance: none;
  appearance: none;
}

.search-close {
  flex: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f3f1eb;
  color: #33322d;
  font-size: 18px;
  line-height: 1;
}

.search-results {
  overflow-y: auto;
  padding: 6px 8px;
}

.search-result {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 8px;
  border-radius: 4px;
  color: inherit;
  text-decoration: none;
}

.search-result:hover,
.search-result:focus-visible {
  background: #f6f4ee;
  outline: none;
}

.search-result-thumb {
  position: relative;
  display: block;
  width: 52px;
  height: 64px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--card);
}

.search-result-thumb--photo,
.cart-drawer-thumb--photo {
  background: #ece9e2;
}

.search-result-photo,
.cart-drawer-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.search-result-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.search-result-name {
  font-size: 13.5px;
  line-height: 1.35;
}

.search-result-meta {
  color: #6c6c65;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.search-result-price {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.search-hint {
  margin: 0;
  padding: 10px 18px 16px;
  border-top: 1px solid var(--line);
  color: #6c6c65;
  font-size: 12px;
}

.search-hint[hidden] {
  display: none;
}

/* ---------- cart drawer ---------- */

.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 96;
  background: rgba(20, 18, 12, 0.45);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.cart-drawer-backdrop.is-open {
  opacity: 1;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 97;
  display: flex;
  flex-direction: column;
  width: min(430px, 100%);
  height: 100%;
  background: #fff;
  box-shadow: -20px 0 60px rgba(20, 18, 12, 0.18);
  transform: translateX(100%);
  transition: transform 0.24s ease;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--line);
}

.cart-drawer-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
}

.cart-drawer-count {
  color: #6c6c65;
  font-family: var(--sans);
  font-size: 13px;
}

.cart-drawer-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f3f1eb;
  color: #33322d;
  font-size: 20px;
  line-height: 1;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 22px;
}

.cart-drawer-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cart-drawer-thumb {
  position: relative;
  display: block;
  width: 68px;
  height: 86px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--card);
}

.cart-drawer-item-main {
  min-width: 0;
}

.cart-drawer-item-name {
  display: block;
  color: inherit;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}

.cart-drawer-item-name:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-drawer-item-price {
  margin: 3px 0 0;
  color: #6c6c65;
  font-size: 12px;
}

.cart-drawer-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 9px;
}

.quantity-control--drawer {
  grid-template-columns: 30px 34px 30px;
  height: 32px;
}

.quantity-control--drawer .qty-button {
  font-size: 15px;
}

.quantity-control--drawer .qty-value {
  font-size: 12px;
}

.cart-drawer-remove {
  padding: 0;
  border: 0;
  background: none;
  color: #8a5a4a;
  font-size: 11.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-drawer-item-total {
  margin: 0;
  padding-top: 2px;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cart-drawer-empty {
  padding: 50px 10px;
  text-align: center;
}

.cart-drawer-empty-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
}

.cart-drawer-empty-copy {
  margin: 8px 0 20px;
  color: #6c6c65;
  font-size: 13px;
}

.cart-drawer-empty .button {
  display: inline-flex;
  width: auto;
}

.cart-drawer-foot {
  padding: 18px 22px 22px;
  border-top: 1px solid var(--line);
  background: #fbfaf7;
}

.cart-drawer-subtotal {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 15px;
}

.cart-drawer-note {
  margin: 6px 0 14px;
  color: #6c6c65;
  font-size: 11.5px;
}

.cart-drawer-checkout {
  width: 100%;
}

.cart-drawer-view {
  display: block;
  margin-top: 12px;
  color: #4b4b45;
  font-size: 12px;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- policies ---------- */

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-top: 6px;
}

.footer-link {
  padding: 0;
  border: 0;
  background: none;
  color: #5d5d57;
  font-size: 11.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-link:hover {
  color: var(--ink);
}

.policy-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.policy-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 12, 0.5);
}

.policy-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(680px, 100%);
  max-height: min(82vh, 780px);
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(20, 18, 12, 0.3);
}

.policy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.policy-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
}

.policy-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f3f1eb;
  color: #33322d;
  font-size: 20px;
  line-height: 1;
}

.policy-body {
  overflow-y: auto;
  padding: 22px 24px 28px;
  color: #3f3f39;
  font-size: 13.5px;
  line-height: 1.7;
}

.policy-body h3 {
  margin: 20px 0 6px;
  color: #5d5d57;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.policy-body p {
  margin: 0 0 12px;
}

.policy-body ul {
  margin: 0 0 12px;
  padding-left: 18px;
}

.policy-body li {
  margin-bottom: 4px;
}

.policy-body a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav-menu-item--parent {
  font-weight: 500;
}

.nav-menu-item--sub {
  padding-left: 42px;
  color: #5d5d57;
  font-size: 12.5px;
}

.nav-menu-divider {
  height: 1px;
  margin: 8px 14px;
  background: #ece9e1;
}

.checkout-preview-note {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid #ecd9a5;
  border-radius: 3px;
  background: #fff8e6;
  color: #5a4310;
  font-size: 12.5px;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .dev-banner-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    width: calc(100% - 40px);
  }

  .dev-banner-copy code {
    white-space: normal;
  }

  .search-panel {
    margin-top: 60px;
    max-height: 82vh;
  }

  .cart-drawer-item {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .cart-drawer-thumb {
    width: 60px;
    height: 78px;
  }

  .cart-drawer-item-total {
    grid-column: 2;
    justify-self: end;
  }

  .policy-modal {
    padding: 12px;
  }

  .policy-head,
  .policy-body {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* ============================================================
   Mobile-first interface
   Phone layout is the baseline: compact sticky header, bottom
   sheets, full-screen search, edge-to-edge product media and
   44px touch targets. The desktop rules above remain the
   enhanced layout at 761px and up.
   ============================================================ */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.nav-scrim {
  display: none;
}

.nav-menu-panel {
  max-height: min(70vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Tablets get a third column between the desktop and phone grids. */
@media (min-width: 761px) and (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-card {
    display: flex;
    flex-direction: column;
  }

  .product-info {
    display: flex;
    flex: 1;
    flex-direction: column;
  }

  .product-price {
    margin-top: auto;
    padding-top: 8px;
  }
}

@media (max-width: 760px) {
  :root {
    --page-gutter: 16px;
  }

  body.nav-open {
    overflow: hidden;
  }

  /* --- announcement + local Worker banner --- */
  .announcement {
    padding: 8px 16px;
    font-size: 10.5px;
    letter-spacing: 0.08em;
  }

  .dev-banner-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    width: calc(100% - 32px);
    padding: 8px 0;
  }

  .dev-banner-copy {
    font-size: 11px;
    line-height: 1.45;
  }

  .dev-banner-copy code {
    padding: 1px 4px;
    font-size: 10px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .dev-banner-actions {
    flex-direction: row;
    align-items: flex-start;
    gap: 2px;
  }

  .dev-banner-retry {
    min-height: 32px;
    padding: 4px 10px;
    font-size: 11px;
  }

  .dev-banner-close {
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    font-size: 18px;
  }

  /* --- compact sticky header --- */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #ece9e1;
    box-shadow: 0 1px 0 rgba(30, 26, 18, 0.02);
  }

  .header-inner {
    width: calc(100% - 24px);
    padding: 8px 0 4px;
  }

  .brand {
    gap: 4px;
  }

  .brand-name {
    font-size: 26px;
  }

  .brand-tagline {
    font-size: 8px;
    letter-spacing: 0.22em;
  }

  .icon-button {
    width: 44px;
    height: 44px;
  }

  .header-actions {
    gap: 0;
  }

  .site-nav {
    gap: 26px;
    padding: 0 16px 8px;
  }

  .nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding-bottom: 0;
    font-size: 13px;
  }

  .nav-link::after {
    bottom: 2px;
  }

  /* --- category menu: scrollable bottom sheet --- */
  .nav-scrim:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(20, 18, 12, 0.4);
  }

  .nav-menu {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 70;
    width: 100%;
    min-width: 0;
    padding: 0;
    transform: translateY(calc(100% + 24px));
    transition: opacity 0.18s ease, transform 0.24s ease, visibility 0.24s ease;
  }

  .nav-dropdown.is-open .nav-menu {
    transform: translateY(0);
  }

  .nav-menu-panel {
    max-height: min(72dvh, 560px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0 calc(14px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -22px 60px rgba(30, 26, 18, 0.22);
  }

  .nav-menu-panel::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    margin: 6px auto 8px;
    border-radius: 999px;
    background: #d8d4ca;
  }

  .nav-menu-item {
    min-height: 48px;
    padding: 12px 22px;
    font-size: 14px;
    white-space: normal;
  }

  .nav-menu-item--parent {
    font-weight: 500;
  }

  .nav-menu-item--sub {
    min-height: 44px;
    padding: 10px 22px 10px 38px;
    font-size: 13px;
  }

  .nav-menu-divider {
    margin: 6px 18px;
  }

  /* --- page gutters --- */
  .container,
  .footer-inner {
    width: calc(100% - (var(--page-gutter) * 2));
  }

  /* --- collection --- */
  .collection {
    padding: 18px 0 40px;
  }

  .collection-title {
    margin-bottom: 16px;
    font-size: 32px;
    line-height: 1.08;
  }

  /* --- filters / sort --- */
  .toolbar {
    gap: 6px 12px;
    margin-bottom: 14px;
  }

  .toolbar-group {
    gap: 8px;
  }

  .toolbar-label {
    font-size: 12px;
  }

  .dropdown-trigger {
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid #ddd9d0;
    border-radius: 999px;
    background: #fff;
    font-size: 12.5px;
    gap: 6px;
  }

  .dropdown-menu {
    top: calc(100% + 6px);
    max-width: calc(100vw - 32px);
  }

  .dropdown-option {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 14px;
    white-space: normal;
  }

  .toolbar-group--sort {
    row-gap: 6px;
  }

  .product-count {
    margin-left: auto;
    font-size: 12px;
  }

  /* --- magazine subcategory strip --- */
  .subcategory-bar {
    flex-wrap: nowrap;
    gap: 8px;
    margin: 2px 0 16px;
    padding-bottom: 2px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .subcategory-bar::-webkit-scrollbar {
    display: none;
  }

  .subcategory-chip {
    flex: none;
    min-height: 40px;
    padding: 0 16px;
    font-size: 13px;
    scroll-snap-align: start;
  }

  /* --- product grid --- */
  .product-grid {
    gap: 10px;
  }

  .product-card {
    display: flex;
    flex-direction: column;
    border-radius: 6px;
  }

  .product-media {
    aspect-ratio: 4 / 5;
  }

  .product-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 10px 10px 12px;
  }

  .product-kicker {
    margin-bottom: 4px;
    font-size: 9.5px;
    letter-spacing: 0.045em;
  }

  .product-name {
    font-size: 13px;
    line-height: 1.4;
  }

  .product-price {
    margin-top: auto;
    padding-top: 6px;
    font-size: 13px;
  }

  .product-badge {
    bottom: 8px;
    left: 8px;
    padding: 4px 8px;
    font-size: 10px;
  }

  .empty-state {
    padding: 48px 16px;
    font-size: 20px;
  }

  /* --- product detail --- */
  .product-page {
    padding: 12px 0 44px;
  }

  .back-link {
    min-height: 44px;
    margin-bottom: 6px;
    font-size: 13px;
  }

  .product-detail {
    gap: 16px;
  }

  .product-detail-media {
    width: auto;
    max-width: none;
    margin: 0 calc(-1 * var(--page-gutter));
    border-radius: 0;
    aspect-ratio: 3 / 4;
  }

  .product-detail-photo {
    object-position: center center;
  }

  .product-detail .product-badge {
    bottom: 12px;
    left: 12px;
  }

  .product-detail-info {
    width: 100%;
    max-width: none;
    padding-top: 0;
  }

  .detail-vendor {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .detail-title {
    font-size: 30px;
    line-height: 1.16;
  }

  .detail-price {
    margin-top: 10px;
    font-size: 16px;
  }

  .detail-note {
    margin-top: 6px;
    font-size: 12.5px;
  }

  .quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
  }

  .quantity-label {
    margin-bottom: 0;
    font-size: 12.5px;
  }

  .quantity-control {
    grid-template-columns: 44px 46px 44px;
    height: 44px;
  }

  .detail-actions {
    gap: 8px;
    margin-top: 12px;
  }

  .button {
    height: 50px;
    font-size: 14px;
  }

  .detail-description {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.65;
  }

  .detail-customise {
    margin-top: 14px;
    padding: 12px 14px;
  }

  .pickup {
    margin-top: 22px;
  }

  .share-button {
    min-height: 44px;
    padding: 10px 0;
    font-size: 13px;
  }

  /* --- cart page --- */
  .cart-page {
    padding: 18px 0 44px;
  }

  .cart-head {
    margin-bottom: 18px;
    gap: 4px 14px;
  }

  .cart-title {
    font-size: 32px;
  }

  .continue-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 12.5px;
  }

  .cart-item {
    grid-template-columns: 80px minmax(0, 1fr) auto;
    grid-template-areas:
      "thumb info remove"
      "thumb qty total";
    gap: 8px 12px;
    align-items: start;
    padding: 18px 0;
  }

  .cart-thumb {
    width: 80px;
  }

  .cart-product-name {
    font-size: 14px;
  }

  .cart-product-price {
    font-size: 13px;
  }

  .cart-remove {
    width: 44px;
    height: 44px;
  }

  .quantity-control--cart {
    grid-template-columns: 38px 40px 38px;
    height: 40px;
  }

  .cart-line-total {
    font-size: 14px;
  }

  .cart-instructions {
    width: 100%;
    max-width: none;
  }

  .cart-instructions textarea {
    font-size: 16px;
  }

  .cart-footer {
    gap: 20px;
    padding-top: 20px;
  }

  .cart-summary {
    width: 100%;
  }

  .cart-tax-note {
    text-align: left;
  }

  .cart-checkout {
    height: 52px;
    margin-top: 14px;
  }

  .cart-empty {
    padding: 40px 0 48px;
  }

  .cart-empty-title {
    font-size: 24px;
  }

  /* --- checkout --- */
  .checkout-page {
    padding: 18px 0 44px;
  }

  .checkout-head {
    margin-bottom: 18px;
    gap: 4px 14px;
  }

  .checkout-title {
    font-size: 32px;
  }

  .checkout-layout {
    gap: 14px;
  }

  .checkout-card {
    padding: 16px;
    border-radius: 10px;
  }

  .checkout-fields {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .checkout-field--wide {
    grid-column: auto;
  }

  .checkout-field {
    font-size: 12px;
  }

  .checkout-field input,
  .checkout-field textarea {
    min-height: 48px;
    padding: 0 12px;
    font-size: 16px;
  }

  .checkout-field textarea {
    min-height: 88px;
    padding: 12px;
  }

  .checkout-pay {
    height: 52px;
    margin-top: 16px;
  }

  .checkout-summary {
    position: static;
  }

  .checkout-gate {
    margin: 8px auto;
    padding: 24px 18px;
  }

  .checkout-gate-title {
    font-size: 24px;
  }

  .checkout-success {
    padding: 24px 18px;
  }

  .checkout-success-title {
    font-size: 24px;
  }

  .checkout-success-actions .button {
    width: 100%;
  }

  /* --- auth --- */
  .auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 20px 20px calc(18px + env(safe-area-inset-bottom));
  }

  .auth-brand {
    font-size: 24px;
  }

  .auth-panel {
    padding: 28px 0;
  }

  .auth-title {
    font-size: 20px;
  }

  .auth-google {
    margin-top: 20px;
  }

  .auth-check {
    min-height: 44px;
    gap: 10px;
  }

  .auth-check input {
    width: 20px;
    height: 20px;
  }

  .auth-footer {
    gap: 0 2px;
    padding-top: 24px;
  }

  .auth-footer .auth-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 8px;
  }

  /* --- account --- */
  .account-shell {
    width: calc(100% - 32px);
    min-height: 100vh;
    min-height: 100dvh;
    padding: 12px 0 calc(18px + env(safe-area-inset-bottom));
  }

  .account-brand {
    font-size: 20px;
  }

  .account-layout {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 20px;
  }

  .account-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    padding: 4px;
    border: 1px solid #e7e4dd;
    border-radius: 999px;
    background: #f7f5f0;
  }

  .account-tab {
    display: grid;
    place-items: center;
    min-height: 40px;
    border-radius: 999px;
    font-size: 13px;
  }

  .account-tab.is-active {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 1px 5px rgba(35, 31, 23, 0.08);
  }

  .account-content {
    max-width: none;
  }

  .account-card {
    border-radius: 10px;
  }

  .account-welcome {
    padding: 18px 16px 0;
  }

  .account-row {
    flex-wrap: wrap;
    min-height: 44px;
    padding: 9px 14px;
    gap: 4px 12px;
  }

  .account-row-label {
    flex: 0 0 100%;
  }

  .account-row-value {
    text-align: left;
  }

  .account-section {
    margin-bottom: 22px;
  }

  .account-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 12px;
    padding-top: 30px;
  }

  .account-footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    font-size: 11.5px;
  }

  .account-form-grid {
    grid-template-columns: 1fr;
  }

  .account-form-grid .account-form-wide {
    grid-column: auto;
  }

  .account-page input,
  .account-page textarea,
  .account-page select {
    font-size: 16px;
  }

  .account-page input:not([type="checkbox"]),
  .account-page select {
    min-height: 44px;
  }

  .account-page textarea {
    min-height: 80px;
  }

  .account-small-button {
    min-height: 40px;
  }

  /* --- footer --- */
  .site-footer {
    padding: 28px 0 calc(30px + env(safe-area-inset-bottom));
  }

  .footer-inner {
    gap: 4px;
  }

  .footer-brand {
    font-size: 20px;
  }

  .footer-line {
    font-size: 12px;
  }

  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 12px;
    width: 100%;
    max-width: 360px;
    margin-top: 8px;
  }

  .footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    font-size: 11.5px;
  }

  .footer-copy {
    margin-top: 6px;
    font-size: 10.5px;
  }

  /* --- full-screen search --- */
  .search-overlay {
    display: block;
  }

  .search-backdrop {
    display: none;
  }

  .search-panel {
    width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .search-bar {
    flex: none;
    gap: 10px;
    padding: 10px 14px;
    padding-top: calc(10px + env(safe-area-inset-top));
    background: #fff;
  }

  .search-bar input {
    font-size: 16px;
  }

  .search-close {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .search-results {
    flex: 1;
    min-height: 0;
    padding: 4px 8px;
  }

  .search-result {
    min-height: 76px;
    gap: 12px;
    padding: 8px;
  }

  .search-result-name {
    font-size: 14px;
  }

  .search-result-meta {
    font-size: 10px;
  }

  .search-result-price {
    font-size: 13px;
  }

  .search-hint {
    flex: none;
    padding: 10px 16px calc(14px + env(safe-area-inset-bottom));
    font-size: 12px;
  }

  /* --- full-width bag drawer --- */
  .cart-drawer {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
  }

  .cart-drawer-head {
    padding: 14px 20px 12px;
    padding-top: calc(14px + env(safe-area-inset-top));
  }

  .cart-drawer-title {
    font-size: 24px;
  }

  .cart-drawer-close {
    width: 44px;
    height: 44px;
  }

  .cart-drawer-body {
    padding: 0 20px;
  }

  .cart-drawer-item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 0;
  }

  .cart-drawer-thumb {
    width: 72px;
    height: 90px;
  }

  .cart-drawer-item-actions {
    flex-wrap: wrap;
    gap: 8px 10px;
  }

  .quantity-control--drawer {
    grid-template-columns: 40px 42px 40px;
    height: 40px;
  }

  .cart-drawer-remove {
    min-height: 40px;
    font-size: 12px;
  }

  .cart-drawer-item-total {
    grid-column: 2;
    justify-self: end;
    font-size: 13px;
  }

  .cart-drawer-foot {
    padding: 14px 20px calc(16px + env(safe-area-inset-bottom));
  }

  .cart-drawer-checkout {
    height: 50px;
  }

  .cart-drawer-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
  }

  .cart-drawer-empty {
    padding: 40px 8px;
  }

  /* --- policy bottom sheet --- */
  .policy-modal {
    align-items: flex-end;
    padding: 0;
  }

  .policy-dialog {
    width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: 16px 16px 0 0;
  }

  .policy-head {
    flex: none;
    padding: 14px 20px;
    padding-top: calc(14px + env(safe-area-inset-top));
  }

  .policy-title {
    font-size: 24px;
  }

  .policy-close {
    width: 44px;
    height: 44px;
  }

  .policy-body {
    padding: 18px 20px calc(24px + env(safe-area-inset-bottom));
    font-size: 14px;
    line-height: 1.65;
  }

  /* --- stop iOS input zoom --- */
  .search-bar input,
  .checkout-field input,
  .checkout-field textarea,
  .cart-instructions textarea,
  .cart-page input,
  .cart-page textarea {
    font-size: 16px;
  }

  .toast {
    bottom: calc(24px + env(safe-area-inset-bottom));
    max-width: calc(100% - 32px);
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  :root {
    --page-gutter: 14px;
  }

  .header-inner {
    width: calc(100% - 20px);
  }

  .brand-name {
    font-size: 24px;
  }

  .brand-tagline {
    font-size: 7.5px;
  }

  .site-nav {
    gap: 22px;
    padding-bottom: 6px;
  }

  .collection-title,
  .cart-title,
  .checkout-title {
    font-size: 30px;
  }

  .product-grid {
    gap: 8px;
  }

  .product-info {
    padding: 9px 9px 11px;
  }

  .product-kicker {
    font-size: 9px;
  }

  .product-name,
  .product-price {
    font-size: 12.5px;
  }

  .cart-item {
    grid-template-columns: 74px minmax(0, 1fr) auto;
    gap: 6px 10px;
  }

  .cart-thumb {
    width: 74px;
  }

  .detail-title {
    font-size: 28px;
  }

  .quantity-control {
    grid-template-columns: 42px 42px 42px;
  }

  .account-shell {
    width: calc(100% - 28px);
  }
}

@media (max-width: 340px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 761px) {
  .nav-scrim {
    display: none !important;
  }
}
