/* Mirror House Melbourne storefront theme.
   Layout: editorial catalogue. Plaster-toned ground, espresso bands for the banner and footer,
   brass used only for small marks (tags, progress, focus). One deliberate light look. */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Jost:wght@400;500;600&display=swap");

:root {
  --bg: #F7F3ED;          /* plaster */
  --surface: #FFFDF9;     /* card */
  --sand: #EEE6DA;        /* image wells, inset areas */
  --line: #E2D9CC;
  --ink: #1D1A17;
  --ink-2: #4A433C;
  --muted: #6B6259;
  --brass: #A8823A;
  --brass-deep: #7A5C22;
  --espresso: #26201B;
  --on-dark: #F3ECE2;
  --on-dark-muted: #B9AEA1;
  --overlay: rgba(29, 26, 23, 0.48);
  --good: #2F6B45;

  --font-serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-sans: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --radius: 3px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
body.no-scroll { overflow: hidden; }

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- announcement + header ---------- */
.announcement-bar {
  background: var(--espresso);
  color: var(--on-dark);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px;
  padding: 9px max(16px, env(safe-area-inset-right, 0px)) 9px max(16px, env(safe-area-inset-left, 0px));
  font-size: 0.78rem; letter-spacing: 0.06em; text-align: center;
}
.announcement-bar strong { color: #E3C98F; font-weight: 600; letter-spacing: 0.1em; }

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 28px; padding-block: 16px; }
.brand-logo { display: grid; gap: 2px; min-width: 0; }
.brand-title {
  font-family: var(--font-serif); font-weight: 600; font-size: 1.55rem; line-height: 1;
  letter-spacing: 0.24em; text-decoration: none;
}
.brand-subtitle { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.site-nav { min-width: 0; justify-self: center; }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.nav-link {
  text-decoration: none; font-size: 0.86rem; letter-spacing: 0.04em; color: var(--ink-2);
  padding-block: 6px; border-bottom: 1px solid transparent; white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--ink); border-bottom-color: var(--brass); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.admin-link-pill {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  font-size: 0.74rem; letter-spacing: 0.06em; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
}
.admin-link-pill:hover { color: var(--ink); border-color: var(--ink-2); }
.action-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 50%;
}
.action-btn:hover { background: var(--sand); }
.cart-count-badge {
  position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding-inline: 5px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--ink); color: var(--on-dark); font-size: 0.68rem; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.cart-count-badge[data-empty="true"] { background: var(--line); color: var(--muted); }

@media (max-width: 1280px) { .admin-link-pill .label { display: none; } .admin-link-pill { padding: 8px; } }
@media (max-width: 1100px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; overflow-x: auto; scrollbar-width: none; margin-inline: -4px; }
  .site-nav::-webkit-scrollbar { display: none; }
  .nav-links { gap: 20px; padding-inline: 4px; }
}
@media (max-width: 520px) {
  .brand-subtitle { display: none; }
  .brand-title { font-size: 1.22rem; letter-spacing: 0.16em; white-space: nowrap; }
  .admin-link-pill { padding: 8px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--radius); border: 1px solid transparent;
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--on-dark); }
.btn-primary:hover { background: var(--brass-deep); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--on-dark); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero-section { padding-block: clamp(72px, 11vw, 128px); }
.hero-content { max-width: 560px; display: grid; gap: 18px; justify-items: start; }
.hero-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass-deep); background: color-mix(in srgb, var(--brass) 12%, transparent);
  padding: 6px 12px; border-radius: 999px;
}
.hero-title {
  font-family: var(--font-serif); font-weight: 500; margin: 0;
  font-size: clamp(2.6rem, 5.6vw, 4.4rem); line-height: 1.02; letter-spacing: -0.01em;
}
.hero-desc { margin: 0; font-size: 1.06rem; max-width: 46ch; color: var(--ink-2); }
.hero-cta-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- trust bar ---------- */
.trust-bar { background: var(--surface); border-block: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 20px 32px; padding-block: 26px; }
.trust-item { display: flex; align-items: center; gap: 14px; min-width: 0; }
.trust-icon { flex-shrink: 0; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--sand); }
.trust-info h4 { margin: 0; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.01em; }
.trust-info p { margin: 0; font-size: 0.8rem; color: var(--muted); line-height: 1.45; }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 104px); }
.section-header { text-align: center; max-width: 660px; margin: 0 auto 44px; display: grid; gap: 10px; justify-items: center; }
.section-subtitle { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass-deep); }
.section-title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.08; margin: 0; }
.section-desc { margin: 0; color: var(--muted); max-width: 52ch; }

/* ---------- catalogue ---------- */
.category-filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 40px; }
.filter-pill {
  border: 1px solid var(--line); background: transparent; border-radius: 999px;
  padding: 8px 18px; font-size: 0.84rem; cursor: pointer; color: var(--ink-2);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter-pill:hover { border-color: var(--ink-2); color: var(--ink); }
.filter-pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.filter-pill .count { color: inherit; opacity: 0.6; margin-left: 4px; font-variant-numeric: tabular-nums; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 48px 28px; }
@media (max-width: 700px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; } .product-name { font-size: 1.12rem; } .product-row { flex-wrap: wrap; } }
.product-card { display: grid; gap: 14px; align-content: start; min-width: 0; }
.product-media { position: relative; aspect-ratio: 4 / 5; max-width: 100%; background: var(--sand); overflow: hidden; border-radius: var(--radius); }
.product-media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.7s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.035); }
.product-badge {
  position: absolute; top: 12px; left: 12px; background: var(--surface); color: var(--ink);
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
}
.product-badge.low { color: var(--brass-deep); }
.product-quick {
  position: absolute; inset: auto 12px 12px 12px; border: 0; cursor: pointer;
  background: color-mix(in srgb, var(--surface) 94%, transparent); color: var(--ink);
  padding: 11px; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; border-radius: var(--radius);
  opacity: 0; transform: translateY(6px); transition: opacity 0.25s, transform 0.25s var(--ease);
}
.product-card:hover .product-quick, .product-quick:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .product-quick { opacity: 1; transform: none; } }
.product-info { display: grid; gap: 4px; }
.product-cat { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.product-name { font-family: var(--font-serif); font-size: 1.36rem; font-weight: 500; line-height: 1.15; margin: 0; }
.product-name a { text-decoration: none; }
.product-name a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.product-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.product-price { font-variant-numeric: tabular-nums; font-weight: 500; }
.link-btn {
  border: 0; background: none; padding: 6px 0; cursor: pointer; font-size: 0.76rem; letter-spacing: 0.14em;
  text-transform: uppercase; border-bottom: 1px solid var(--ink); color: var(--ink);
}
.link-btn:hover { color: var(--brass-deep); border-color: var(--brass-deep); }
.link-btn[disabled] { color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.grid-note { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 32px 0; }

/* ---------- curated banner ---------- */
.collection-banner-section { padding-block: 0 clamp(48px, 6vw, 72px); }
.curated-banner {
  display: grid; grid-template-columns: 1.05fr 1fr; background: var(--espresso); color: var(--on-dark);
  border-radius: var(--radius); overflow: hidden;
}
.curated-content { padding: clamp(32px, 6vw, 80px); align-self: center; display: grid; justify-items: start; }
.curated-banner .btn-primary { background: var(--on-dark); color: var(--ink); }
.curated-banner .btn-primary:hover { background: #E3C98F; }
.curated-banner > div:last-child { min-height: 100%; }
.curated-img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .curated-banner { grid-template-columns: 1fr; } .curated-img { max-height: 520px; } }

/* ---------- guarantee ---------- */
.guarantee-box {
  display: flex; align-items: center; gap: 32px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px);
}

/* ---------- footer ---------- */
.site-footer { background: var(--espresso); color: var(--on-dark); padding-block: 72px 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-col { min-width: 0; }
.footer-col h3 { font-family: var(--font-serif); font-weight: 500; font-size: 1.3rem; margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--on-dark-muted); text-decoration: none; font-size: 0.9rem; }
.footer-col a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.newsletter-box { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.newsletter-input {
  flex: 1 1 180px; min-width: 0; background: transparent; color: var(--on-dark);
  border: 1px solid #5A5047; border-radius: var(--radius); padding: 11px 14px; font: inherit; font-size: 0.9rem;
}
.newsletter-input::placeholder { color: var(--on-dark-muted); }
.site-footer .btn-primary { background: var(--on-dark); color: var(--ink); }
.site-footer .btn-primary:hover { background: #E3C98F; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid #3E352E; font-size: 0.8rem; color: var(--on-dark-muted);
}
.payment-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.payment-badge-pill { border: 1px solid #4A4038; border-radius: 999px; padding: 4px 10px; font-size: 0.7rem; letter-spacing: 0.06em; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- cart drawer ---------- */
.cart-drawer-overlay {
  position: fixed; inset: 0; z-index: 60; background: var(--overlay);
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.cart-drawer-overlay.is-open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(430px, 100%);
  background: var(--bg); display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px); padding-right: env(safe-area-inset-right, 0px);
  transform: translateX(100%); visibility: hidden;
  transition: transform 0.38s var(--ease), visibility 0s linear 0.38s;
  box-shadow: -18px 0 40px rgba(29, 26, 23, 0.12);
}
.cart-drawer.is-open { transform: none; visibility: visible; transition: transform 0.38s var(--ease), visibility 0s; }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-title { font-family: var(--font-serif); font-weight: 500; font-size: 1.7rem; margin: 0; }
.drawer-close, .modal-close-btn {
  width: 40px; height: 40px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; font-size: 1.05rem;
}
.drawer-close:hover, .modal-close-btn:hover { background: var(--sand); }
.free-shipping-goal { padding: 14px 24px; background: var(--sand); display: grid; gap: 8px; }
.shipping-bar-text { font-size: 0.84rem; }
.shipping-progress-track { height: 4px; background: var(--line); border-radius: 999px; overflow: hidden; }
.shipping-progress-fill { height: 100%; width: 0; background: var(--brass); transition: width 0.4s var(--ease); }
.drawer-items { flex: 1; overflow-y: auto; padding: 4px 24px; }
.drawer-empty { text-align: center; color: var(--muted); padding: 48px 8px; display: grid; gap: 14px; justify-items: center; }
.drawer-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding-block: 18px; border-bottom: 1px solid var(--line); align-items: start; }
.drawer-item img { width: 76px; aspect-ratio: 4 / 5; object-fit: contain; border-radius: var(--radius); background: var(--sand); }
.drawer-item-name { font-family: var(--font-serif); font-size: 1.12rem; line-height: 1.2; margin: 0 0 6px; }
.drawer-item-price { font-variant-numeric: tabular-nums; font-weight: 500; font-size: 0.92rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); }
.qty button { width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer; }
.qty button:hover { background: var(--sand); }
.qty span { min-width: 24px; text-align: center; font-variant-numeric: tabular-nums; font-size: 0.9rem; }
.remove-btn { border: 0; background: none; color: var(--muted); font-size: 0.76rem; text-decoration: underline; cursor: pointer; padding: 4px 0; margin-top: 6px; }
.drawer-footer {
  padding: 20px 24px calc(20px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line);
  display: grid; gap: 10px; background: var(--surface);
}
.drawer-subtotal-line { display: flex; justify-content: space-between; align-items: baseline; }
.drawer-subtotal-label { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.drawer-subtotal-val { font-family: var(--font-serif); font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.drawer-tax-note { margin: 0; font-size: 0.8rem; color: var(--muted); }
.drawer-checkout-btn { width: 100%; }

/* ---------- quick view ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 70; background: var(--overlay);
  display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0s linear 0.25s;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; transition: opacity 0.25s, visibility 0s; }
.quickview-card {
  position: relative; width: min(940px, 100%); max-height: calc(100% - 8px); overflow: auto;
  background: var(--bg); border-radius: var(--radius); display: grid; grid-template-columns: 1fr 1fr;
}
.modal-close-btn { position: absolute; top: 10px; right: 10px; z-index: 2; background: var(--surface); }
.qv-media { background: var(--sand); min-height: 100%; }
.qv-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; max-width: 100%; }
.qv-body { padding: clamp(24px, 4vw, 44px); display: grid; gap: 14px; align-content: center; min-width: 0; }
.qv-body h2 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.08; margin: 0; }
.qv-price { font-size: 1.15rem; font-variant-numeric: tabular-nums; font-weight: 500; }
.qv-desc { margin: 0; color: var(--ink-2); }
.spec-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 0.86rem; color: var(--muted); }
.spec-list li { display: flex; gap: 10px; }
.spec-list li::before { content: ""; width: 5px; height: 5px; margin-top: 0.62em; flex-shrink: 0; background: var(--brass); border-radius: 50%; }
.qv-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
.qv-actions .qty button { width: 40px; height: 46px; }
@media (max-width: 720px) { .quickview-card { grid-template-columns: 1fr; } .qv-media img { max-height: 46vh; } }

/* ---------- product page ---------- */
.product-page { padding-block: clamp(32px, 5vw, 64px) clamp(64px, 8vw, 96px); }
.breadcrumbs { font-size: 0.8rem; color: var(--muted); margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.product-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.product-layout .qv-media { border-radius: var(--radius); overflow: hidden; }
.product-layout .qv-body { padding: 0; align-content: start; position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); }
@media (max-width: 820px) { .product-layout { grid-template-columns: 1fr; } .product-layout .qv-body { position: static; } }

/* ---------- checkout ---------- */
.checkout-page { padding-block: clamp(32px, 5vw, 64px) clamp(64px, 8vw, 96px); }
.checkout-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .checkout-layout { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; min-width: 0; }
.panel h2 { font-family: var(--font-serif); font-weight: 500; font-size: 1.7rem; margin: 0; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink);
}
.option {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; background: var(--bg);
}
.option:has(input:checked) { border-color: var(--brass); background: color-mix(in srgb, var(--brass) 7%, var(--bg)); }
.option input { margin-top: 4px; accent-color: var(--brass-deep); width: 18px; height: 18px; }
.option strong { display: block; font-weight: 600; font-size: 0.95rem; }
.option small { display: block; color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
.option .price { font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
.summary-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.summary-lines li { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
.summary-lines li span:first-child { color: var(--ink-2); min-width: 0; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--line); }
.summary-total span:last-child { font-family: var(--font-serif); font-size: 1.9rem; font-variant-numeric: tabular-nums; }
.form-msg { margin: 0; font-size: 0.88rem; min-height: 1.3em; }
.form-msg.error { color: #9A2E22; }
.confirmation { text-align: center; display: grid; gap: 14px; justify-items: center; padding-block: 24px; }
.confirmation .tick { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 80;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--on-dark); padding: 12px 18px; border-radius: var(--radius); font-size: 0.88rem;
  transition: opacity 0.25s, transform 0.25s var(--ease); max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

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

/* Friendlier buy buttons - sage green */
.link-btn,
#drawer-checkout-btn {
  background: #5E7A5A;
  color: #fff;
  border-color: #5E7A5A;
}
.link-btn:hover,
#drawer-checkout-btn:hover {
  background: #4A6247;
  border-color: #4A6247;
  color: #fff;
}

/* No free-freight progress bar */
.shipping-progress-track { display: none; }

/* Checkout: delivery or pick-up, discount code */
.co-method { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.co-method legend { display: block; margin-bottom: 8px; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; min-width: 0; }
.code-row .btn { flex: none; }
.option input:disabled ~ span { opacity: 0.5; }

/* Signature piece: single mirror + pair photos */
.curated-gallery { display: grid; grid-template-rows: 3fr 2fr; gap: 4px; height: 100%; min-height: 640px; }
.curated-gallery .curated-img { min-height: 0; object-position: center; }
@media (max-width: 820px) {
  .curated-gallery { grid-template-rows: auto auto; min-height: 0; }
  .curated-gallery .curated-img { max-height: 420px; }
}

/* Signature piece: gold / black finish switch */
.finish-switch { display: flex; gap: 8px; margin: 4px 0 20px; }
.finish-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(243, 236, 226, 0.35); background: transparent; color: inherit; font: inherit; font-size: 0.85rem; cursor: pointer; }
.finish-btn:hover { border-color: rgba(243, 236, 226, 0.7); }
.finish-btn.is-active { border-color: #F3ECE2; background: rgba(243, 236, 226, 0.12); }
.finish-btn:focus-visible { outline: 2px solid #E3C98F; outline-offset: 2px; }
.finish-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(243, 236, 226, 0.6); }
.finish-dot-gold { background: #C9A24D; }
.finish-dot-black { background: #111; }

/* Screen-reader-only text (was missing on some pages, which made 'Store information' show in the footer) */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- checkout (full) ---------- */
.co-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.co-main { display: grid; gap: 16px; min-width: 0; }
.co-side { position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); min-width: 0; }
.co-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.co-span { grid-column: 1 / -1; }
.co-f input, .co-f select, .co-f textarea, .field select, .field textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); width: 100%; }
.co-f input[aria-invalid="true"] { border-color: #9A2E22; background: #FDF6F4; }
.co-err { margin: 0; font-size: 0.82rem; color: #9A2E22; min-height: 0; }
.co-err:empty { display: none; }
.co-help { margin: 0; font-size: 0.82rem; color: var(--muted); }
.co-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 0.92rem; }
.co-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brass-deep); flex: none; }
.co-check small { display: block; color: var(--muted); font-size: 0.82rem; }
.co-ins { padding: 4px 0; }
.co-link { border: 0; background: none; padding: 0; color: var(--brass-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 0.88rem; }
.co-zone p { margin: 0; padding: 12px 14px; border-radius: var(--radius); background: var(--sand); font-size: 0.9rem; }
.co-zone .co-ok { background: color-mix(in srgb, var(--good) 10%, var(--bg)); color: #1F4B30; }
.co-zone .co-warn { background: #FBF3E4; color: #5E4200; }
.co-zone:empty { display: none; }
.co-express { gap: 12px; }
.co-express-title { margin: 0; text-align: center; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.co-express-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.co-wallet { height: 48px; border-radius: var(--radius); border: 0; cursor: pointer; font-weight: 600; font-size: 1rem; }
.co-apple { background: #000; color: #fff; }
.co-google { background: #fff; color: #3c4043; box-shadow: inset 0 0 0 1px #dadce0; }
.co-or { margin: 0; text-align: center; font-size: 0.82rem; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.co-or::before, .co-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.co-pay { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.co-pay-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: color-mix(in srgb, var(--brass) 7%, var(--bg)); border-bottom: 1px solid var(--line); font-weight: 600; font-size: 0.92rem; }
.co-pay-head > span:first-child { display: inline-flex; gap: 8px; align-items: center; }
.co-cards { display: inline-flex; gap: 4px; }
.co-cards span { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; border: 1px solid var(--line); border-radius: 3px; padding: 2px 5px; background: var(--surface); color: var(--ink-2); }
.co-card-box { min-height: 90px; padding: 16px 14px; background: var(--surface); }
.co-card-box p { margin: 0; font-size: 0.88rem; color: var(--ink-2); }
.co-pay .co-check { padding: 12px 14px; border-top: 1px solid var(--line); }
.co-submit { width: 100%; padding-block: 18px; font-size: 0.86rem; background: #5E7A5A; border-color: #5E7A5A; color: #fff; }
.co-submit:hover { background: #4A6247; }
.co-terms { margin: 0; font-size: 0.8rem; color: var(--muted); text-align: center; }
.co-summary summary { display: flex; justify-content: space-between; align-items: baseline; cursor: pointer; list-style: none; font-family: var(--font-serif); font-size: 1.7rem; }
.co-summary summary::-webkit-details-marker { display: none; }
.co-summary summary span:last-child { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.co-summary[open] summary span:last-child { display: none; }
.co-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.co-items li { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; }
.co-thumb { position: relative; }
.co-thumb img { width: 64px; height: 80px; object-fit: contain; border-radius: var(--radius); background: var(--sand); border: 1px solid var(--line); }
.co-thumb b { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; border-radius: 999px; background: var(--ink-2); color: #fff; font-size: 0.72rem; display: grid; place-items: center; padding-inline: 6px; }
.co-item-name { font-family: var(--font-serif); font-size: 1.1rem; line-height: 1.2; }
.co-item-price { font-variant-numeric: tabular-nums; font-weight: 500; }
.summary-total small { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.1em; }
.co-trust { list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 0.84rem; color: var(--ink-2); }
.co-trust li::before { content: "✓"; color: var(--good); margin-right: 8px; font-weight: 700; }
.co-confirm { max-width: 720px; margin-inline: auto; }
.co-confirm h2 { font-size: 2rem; }
.co-confirm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: left; width: 100%; border-block: 1px solid var(--line); padding-block: 16px; }
.co-confirm-grid h3 { margin: 0 0 4px; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.co-confirm-grid p { margin: 0 0 4px; }
.co-preview-note { margin: 0; font-size: 0.86rem; background: var(--sand); padding: 12px 14px; border-radius: var(--radius); }
@media (max-width: 860px) {
  .co-layout { grid-template-columns: 1fr; }
  .co-side { position: static; order: -1; }
  .co-summary:not([open]) { padding-block: 16px; }
  .co-summary summary { font-size: 1.3rem; }
}
@media (max-width: 560px) { .co-grid, .co-confirm-grid { grid-template-columns: 1fr; } .co-express-btns { grid-template-columns: 1fr; } }
.co-layout [hidden] { display: none !important; }
.co-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); font-size: 0.92rem; }

/* Product photo thumbnails */
.qv-media .qv-thumbs { display: flex; gap: 8px; padding: 10px; background: var(--bg); overflow-x: auto; }
.qv-media .qv-thumbs button { flex: none; width: 68px; height: 68px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; background: var(--sand); }
.qv-media .qv-thumbs button[aria-pressed="true"] { border: 2px solid var(--ink); }
.qv-media .qv-thumbs img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }

/* Whole-mirror photo in quick view and product page, tap to enlarge */
.qv-zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--sand); cursor: zoom-in; }
.qv-media .qv-zoom img.qv-main { object-fit: contain; width: 100%; height: auto; aspect-ratio: 4 / 5; }
.qv-zoom-hint { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--ink); font-size: 0.75rem; letter-spacing: 0.04em; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.quickview-card .qv-media { display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 720px) {
  .quickview-card { max-height: calc(100% - 8px); }
  .quickview-card .qv-media .qv-zoom img.qv-main { height: 44vh; max-height: none; aspect-ratio: auto; }
}
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(20, 17, 15, 0.94); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px)); cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 80px); object-fit: contain; border-radius: var(--radius); }
.lightbox-close { position: absolute; top: max(14px, env(safe-area-inset-top, 0px)); right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); font-size: 1.1rem; cursor: pointer; }
.lightbox-hint { position: absolute; bottom: max(12px, env(safe-area-inset-bottom, 0px)); left: 0; right: 0; margin: 0; text-align: center; color: #d8cfc4; font-size: 0.8rem; }

/* Colour options (one card per mirror, colour dots switch the photo) */
.card-swatches { display: flex; align-items: center; gap: 8px; margin: -2px 0 2px; }
.card-swatches .swatch-name { font-size: 0.8rem; color: var(--ink-2); min-width: 3.2em; }
.swatch { width: 22px; height: 22px; border-radius: 999px; background: var(--sw); border: 1px solid rgba(0,0,0,0.22); box-shadow: inset 0 0 0 2px var(--surface, #fff); padding: 0; cursor: pointer; position: relative; }
.swatch::after { content: ''; position: absolute; inset: -11px; }
.swatch[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }
.swatch:focus-visible { outline: 2px solid var(--brass-deep, #8a6a2f); outline-offset: 3px; }
.detail-swatches { display: grid; gap: 10px; margin: 4px 0 6px; }
.detail-swatches .swatch-label { font-size: 0.95rem; color: var(--ink-2); }
.detail-swatches .swatch-label strong { color: var(--ink); font-weight: 600; }
.detail-swatches .swatch-row { display: flex; gap: 14px; }
.detail-swatches .swatch { width: 32px; height: 32px; }

/* Zoom in the enlarged photo */
.lb-stage { width: 100%; height: calc(100vh - 80px); display: grid; place-items: center; overflow: hidden; touch-action: none; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius); cursor: zoom-in; transform-origin: center center; transition: transform 0.18s ease-out; user-select: none; -webkit-user-drag: none; }
.lightbox.is-zoomed .lb-stage img { cursor: grab; transition: none; border-radius: 0; }
.lb-tools { position: absolute; top: max(14px, env(safe-area-inset-top, 0px)); right: 68px; display: flex; gap: 8px; }
.lb-zoom { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.lb-zoom:focus-visible, .lightbox-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Sold out: a band across the photo; the mirror stays visible but can't be bought */
.product-media.is-sold-out img, .qv-media.is-sold-out .qv-main { filter: grayscale(0.35) opacity(0.78); }
.qv-media.is-sold-out { position: relative; overflow: hidden; }
.sold-out-band { position: absolute; z-index: 3; top: 50%; left: -20%; right: -20%; transform: translateY(-50%) rotate(-28deg); background: rgba(28, 25, 23, 0.86); color: #fff; text-align: center; padding: 10px 0; font-size: 0.95rem; letter-spacing: 0.32em; text-transform: uppercase; font-weight: 600; pointer-events: none; }
.qv-media .sold-out-band { font-size: 1.15rem; padding: 14px 0; }
.link-btn[disabled], .btn[disabled] { background: #8a837c !important; border-color: #8a837c !important; color: #fff !important; opacity: 1; cursor: not-allowed; }
.card-dims { font-size: 0.85rem; color: var(--ink-2); margin: -4px 0 2px; letter-spacing: 0.02em; }
.stock-low { margin: 10px 0 0; color: #8A6A2F; font-weight: 600; font-size: 0.92rem; }
