:root {
  --ivory: #fbf7f0;
  --cream: #f4ecdf;
  --paper: #fffdf9;
  --ink: #171512;
  --muted: #6f665c;
  --gold: #ad8541;
  --gold-deep: #8c672b;
  --rose: #d3aa9b;
  --rose-soft: #ead6cd;
  --line: rgba(23, 21, 18, 0.14);
  --shadow: 0 24px 60px rgba(44, 34, 20, 0.12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --script: "Great Vibes", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--rose-soft); color: var(--ink); }

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

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--ivory);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  transition: opacity .55s ease, visibility .55s ease;
}
.page-loader.hide { opacity: 0; visibility: hidden; }
.loader-mark {
  width: 94px;
  height: 94px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 600 42px/1 var(--serif);
  letter-spacing: -.08em;
  animation: pulse 1.2s ease-in-out infinite alternate;
}
.page-loader p { margin: 0; text-transform: uppercase; font-size: 11px; letter-spacing: .35em; }
@keyframes pulse { to { transform: scale(1.06); box-shadow: 0 0 0 12px rgba(173,133,65,.06); } }

.announcement-bar {
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.announcement-track { display: flex; align-items: center; gap: 22px; white-space: nowrap; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,247,240,.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: .3s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 30px rgba(30,20,10,.05); }
.nav-shell {
  max-width: 1480px;
  margin: 0 auto;
  height: 92px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 190px 1fr 190px;
  align-items: center;
  gap: 20px;
}
.brand { justify-self: start; width: 76px; height: 76px; overflow: hidden; border-radius: 50%; }
.brand img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.09); }
.desktop-nav { display: flex; justify-content: center; gap: clamp(18px, 2.1vw, 34px); }
.desktop-nav a {
  position: relative;
  padding: 10px 0;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 4px;
  height: 1px;
  background: var(--gold);
  transition: right .25s ease;
}
.desktop-nav a:hover::after { right: 0; }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  min-width: 42px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  font-size: 20px;
}
.cart-button { width: auto; padding: 0 4px 0 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; display: flex; gap: 8px; }
.cart-count { min-width: 23px; height: 23px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 10px; }
.menu-toggle { display: none; }
.menu-toggle span { width: 20px; height: 1px; background: var(--ink); display: block; margin: 2.5px 0; }

.search-panel {
  max-height: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  transition: max-height .35s ease, border-color .35s ease;
}
.search-panel.open { max-height: 90px; border-color: var(--line); }
.search-inner { max-width: 960px; margin: 0 auto; padding: 16px 28px 18px; display: flex; gap: 18px; }
.search-inner input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  font: 500 22px/1.2 var(--serif);
  outline: none;
  padding: 8px 0;
}
.text-btn, .link-button { border: 0; background: transparent; cursor: pointer; padding: 0; }
.text-btn { text-transform: uppercase; letter-spacing: .12em; font-size: 10px; }
.link-button { display: inline-block; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 4px; }

.mobile-menu {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(86vw, 420px);
  z-index: 260;
  background: var(--paper);
  padding: 24px 28px 40px;
  transform: translateX(-105%);
  transition: transform .35s ease;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 22px; margin-bottom: 8px; border-bottom: 1px solid var(--line); text-transform: uppercase; font-size: 11px; letter-spacing: .18em; }
.mobile-menu > a { padding: 14px 0; border-bottom: 1px solid var(--line); font: 500 26px/1 var(--serif); }
.screen-overlay { position: fixed; inset: 0; background: rgba(15,12,8,.42); z-index: 240; opacity: 0; visibility: hidden; transition: .3s ease; backdrop-filter: blur(2px); }
.screen-overlay.open { opacity: 1; visibility: visible; }

.hero {
  min-height: calc(100vh - 126px);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(340px,.8fr);
  align-items: center;
  gap: 40px;
  padding: clamp(70px, 9vw, 130px) max(28px, calc((100vw - 1380px)/2));
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 45%, rgba(211,170,155,.32), transparent 26%),
    radial-gradient(circle at 14% 20%, rgba(173,133,65,.12), transparent 25%),
    linear-gradient(135deg, #fffdf8 0%, #f6eee4 48%, #ead9ce 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(173,133,65,.28);
  pointer-events: none;
  z-index: -1;
}
.hero-content { max-width: 760px; padding-left: 32px; }
.eyebrow { margin: 0 0 16px; text-transform: uppercase; letter-spacing: .28em; font-size: 10px; font-weight: 600; color: var(--gold-deep); }
.hero h1, .section h2, .editorial-band h2, .queen-banner h2, .checkout-modal h2, .product-modal h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.035em;
}
.hero h1 { margin: 0; font-size: clamp(58px, 7.5vw, 116px); line-height: .82; }
.hero h1 em { color: var(--gold-deep); font-family: var(--script); font-weight: 400; font-style: normal; font-size: 1.08em; }
.hero-copy { max-width: 560px; margin: 32px 0; color: var(--muted); font-size: clamp(15px, 1.3vw, 18px); line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  min-height: 52px;
  border: 1px solid var(--ink);
  padding: 0 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.btn-ghost { background: transparent; }
.btn-light { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn.full { width: 100%; }
.hero-emblem { justify-self: center; text-align: center; position: relative; }
.crest-ring {
  width: clamp(250px, 28vw, 450px);
  aspect-ratio: 1;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: inset 0 0 0 13px rgba(255,255,255,.35), inset 0 0 0 14px rgba(173,133,65,.22);
}
.crest-ring::before, .crest-ring::after { content: ""; position: absolute; width: 9px; height: 9px; border: 1px solid var(--gold); transform: rotate(45deg); background: var(--ivory); }
.crest-ring::before { top: -5px; }
.crest-ring::after { bottom: -5px; }
.crest-monogram { font: 600 clamp(116px, 14vw, 225px)/1 var(--serif); letter-spacing: -.13em; transform: translateX(-.06em); color: rgba(23,21,18,.93); }
.crest-crown { position: absolute; top: 16%; right: 25%; color: var(--gold-deep); font-size: clamp(26px,3vw,48px); }
.hero-emblem > span { font-family: var(--script); font-size: clamp(31px, 3vw, 48px); color: var(--gold-deep); display: block; margin-top: 18px; }
.hero-note { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); text-transform: uppercase; letter-spacing: .3em; font-size: 9px; white-space: nowrap; }
.hero-orbit { position: absolute; border: 1px solid rgba(173,133,65,.22); border-radius: 50%; z-index: -2; }
.orbit-one { width: 430px; height: 430px; right: -220px; top: -90px; }
.orbit-two { width: 280px; height: 280px; left: -140px; bottom: 10%; }

.section { max-width: 1480px; margin: 0 auto; padding: clamp(85px, 9vw, 145px) 28px; }
.section-heading { text-align: center; max-width: 720px; margin: 0 auto 58px; }
.section h2 { margin: 0; font-size: clamp(44px, 5vw, 74px); line-height: .95; }

.category-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.category-card {
  position: relative;
  min-height: 390px;
  border: 0;
  padding: 28px;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  transition: transform .3s ease, box-shadow .3s ease;
}
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.category-card::before, .category-card::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; transition: transform .5s ease; }
.category-card:hover::before { transform: scale(1.08); }
.category-card > div { position: absolute; left: 28px; right: 28px; bottom: 28px; }
.category-card p { margin: 0 0 3px; font-size: 10px; text-transform: uppercase; letter-spacing: .2em; }
.category-card h3 { font: 500 clamp(38px,4vw,58px)/.95 var(--serif); margin: 0 0 14px; }
.category-card span { font-size: 12px; }
.cat-number { position: absolute; top: 25px; right: 25px; font: 500 13px/1 var(--serif); }
.cat-lashes { grid-column: span 5; background: #ead7ce; }
.cat-lashes::before { width: 290px; height: 190px; border: 2px solid rgba(23,21,18,.4); border-top-color: transparent; right: -30px; top: 70px; transform: rotate(-8deg); }
.cat-lashes::after { width: 180px; height: 90px; border-bottom: 12px double rgba(23,21,18,.2); right: 20px; top: 125px; transform: rotate(-8deg); }
.cat-hair { grid-column: span 7; background: #d2b99a; }
.cat-hair::before { width: 420px; height: 420px; right: -80px; top: -100px; background: repeating-radial-gradient(ellipse at center, transparent 0 12px, rgba(23,21,18,.10) 13px 15px); }
.cat-fragrance { grid-column: span 4; background: #d9c6b7; }
.cat-fragrance::before { width: 170px; height: 230px; right: 45px; top: 65px; border: 1px solid rgba(23,21,18,.25); border-radius: 16px 16px 35px 35px; box-shadow: inset 0 0 0 18px rgba(255,255,255,.18); }
.cat-fragrance::after { width: 55px; height: 26px; right: 102px; top: 40px; background: rgba(23,21,18,.22); border-radius: 3px; }
.cat-gym { grid-column: span 4; background: #c7c1b5; }
.cat-gym::before { width: 280px; height: 280px; right: -70px; top: 15px; border: 55px solid rgba(255,255,255,.22); }
.cat-pj { grid-column: span 4; background: #e7d8c7; }
.cat-pj::before { width: 210px; height: 260px; right: 30px; top: 40px; background: linear-gradient(110deg, rgba(255,255,255,.18), rgba(255,255,255,.55), rgba(255,255,255,.08)); border-radius: 45% 55% 20% 45%; transform: rotate(14deg); }
.editorial-band {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ink);
  color: var(--ivory);
}
.editorial-copy { padding: clamp(60px,8vw,130px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.editorial-copy .eyebrow { color: #d4b47d; }
.editorial-copy h2 { font-size: clamp(58px,6vw,94px); line-height: .88; margin: 0 0 30px; }
.editorial-copy p:not(.eyebrow) { max-width: 480px; color: rgba(255,255,255,.66); line-height: 1.8; }
.editorial-copy .link-button { color: #fff; margin-top: 15px; }
.editorial-art { min-height: 520px; background: linear-gradient(145deg,#d8b7a7,#f0dfd6 55%,#b88d78); position: relative; overflow: hidden; }
.art-word { position: absolute; font: 500 clamp(100px,14vw,240px)/1 var(--serif); color: rgba(255,255,255,.18); transform: rotate(-90deg); right: -80px; top: 35%; }
.art-bottle { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-47%); width: min(34vw,300px); height: min(44vw,410px); border: 1px solid rgba(23,21,18,.45); border-radius: 18px 18px 70px 70px; background: linear-gradient(130deg, rgba(255,255,255,.18), rgba(255,255,255,.52), rgba(255,255,255,.08)); box-shadow: 0 60px 80px rgba(50,30,20,.2); }
.art-bottle::before { content: "PALAY"; position: absolute; left: 50%; top: 47%; transform: translate(-50%,-50%); font: 500 30px/1 var(--serif); letter-spacing: .2em; }
.art-bottle::after { content: ""; width: 42%; height: 58px; position: absolute; left: 29%; top: -55px; background: rgba(23,21,18,.72); border-radius: 4px 4px 0 0; box-shadow: inset 0 0 0 9px rgba(255,255,255,.10); }
.art-line { position: absolute; width: 150%; height: 1px; background: rgba(23,21,18,.3); left: -25%; top: 60%; transform: rotate(-18deg); }

.shop-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 35px; }
.shop-tools select { border: 1px solid var(--line); background: transparent; padding: 13px 40px 13px 14px; color: var(--ink); }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-chip { border: 1px solid var(--line); background: transparent; padding: 10px 16px; border-radius: 999px; font-size: 11px; cursor: pointer; transition: .2s; }
.filter-chip:hover, .filter-chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.results-text { font-size: 11px; color: var(--muted); margin: 14px 0 28px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 34px 16px; }
.product-card { min-width: 0; }
.product-image {
  position: relative;
  aspect-ratio: .82;
  background: var(--cream);
  overflow: hidden;
  margin-bottom: 15px;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-image img { transform: scale(1.035); }
.product-badge { position: absolute; left: 12px; top: 12px; background: var(--paper); padding: 7px 9px; text-transform: uppercase; letter-spacing: .12em; font-size: 8px; z-index: 2; }
.quick-view { position: absolute; left: 12px; right: 12px; bottom: 12px; border: 0; background: rgba(255,253,249,.94); min-height: 44px; cursor: pointer; text-transform: uppercase; font-size: 9px; letter-spacing: .14em; transform: translateY(60px); transition: transform .3s ease; }
.product-image:hover .quick-view, .quick-view:focus { transform: translateY(0); }
.product-meta { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: start; }
.product-category { margin: 0 0 5px; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: 8px; }
.product-name { margin: 0; font: 500 22px/1.05 var(--serif); }
.product-price { font-size: 12px; font-weight: 600; padding-top: 4px; white-space: nowrap; }
.add-button { grid-column: 1 / -1; margin-top: 5px; border: 0; border-bottom: 1px solid var(--ink); background: transparent; padding: 7px 0 5px; text-align: left; cursor: pointer; text-transform: uppercase; font-size: 9px; letter-spacing: .14em; width: max-content; }
.no-results { grid-column: 1/-1; padding: 80px 20px; text-align: center; border: 1px solid var(--line); }
.no-results h3 { font: 500 36px/1 var(--serif); margin: 0 0 8px; }
.no-results p { color: var(--muted); }

.queen-banner { min-height: 580px; padding: 70px 28px; display: grid; place-items: center; text-align: center; color: #fff; background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.20), transparent 34%), linear-gradient(130deg, #8c672b, #b79055 46%, #78531e); position: relative; overflow: hidden; }
.queen-banner::before { content: "♕"; position: absolute; font-size: min(52vw,680px); color: rgba(255,255,255,.055); line-height: 1; top: 50%; left: 50%; transform: translate(-50%,-49%); }
.queen-banner-inner { position: relative; max-width: 760px; }
.script-line { font: 400 clamp(44px,5vw,72px)/1 var(--script); margin: 0 0 6px; }
.queen-banner h2 { margin: 0; font-size: clamp(55px,6.5vw,96px); line-height: .88; }
.queen-banner-inner > p:not(.script-line) { opacity: .78; margin: 24px 0 30px; }

.story-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(55px,9vw,150px); align-items: center; }
.story-mark { aspect-ratio: 1; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; position: relative; font: 500 clamp(100px,13vw,205px)/1 var(--serif); letter-spacing: -.28em; padding-right: .23em; }
.story-mark::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(173,133,65,.25); border-radius: 50%; }
.story-mark i { position: absolute; top: 17%; left: 50%; transform: translateX(-15%); font: normal 36px/1 var(--serif); color: var(--gold); }
.story-copy h2 { margin-bottom: 26px; }
.story-copy > p:not(.eyebrow) { max-width: 610px; color: var(--muted); line-height: 1.85; }
.story-copy .link-button { margin-top: 18px; }

.service-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(3,1fr); }
.service-strip article { padding: 34px clamp(24px,4vw,65px); border-right: 1px solid var(--line); display: grid; gap: 7px; }
.service-strip article:last-child { border-right: 0; }
.service-strip strong { font: 500 24px/1 var(--serif); }
.service-strip span { color: var(--muted); font-size: 11px; line-height: 1.5; }

.newsletter { text-align: center; max-width: 820px; }
.newsletter p:not(.eyebrow) { color: var(--muted); }
.newsletter-form { display: flex; margin: 32px auto 10px; max-width: 580px; border-bottom: 1px solid var(--ink); }
.newsletter-form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 16px 4px; outline: none; }
.newsletter-form button { border: 0; background: transparent; text-transform: uppercase; letter-spacing: .14em; font-size: 9px; font-weight: 600; cursor: pointer; }
.newsletter small { color: var(--gold-deep); }

.site-footer { background: #11100e; color: rgba(255,255,255,.78); padding: 75px max(28px, calc((100vw - 1380px)/2)) 26px; display: grid; grid-template-columns: 2fr repeat(3,1fr); gap: 50px; }
.footer-brand img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; filter: saturate(.8); }
.footer-brand p { font: 400 34px/1 var(--script); color: #d6b576; }
.footer-column { display: flex; flex-direction: column; gap: 12px; }
.footer-column h3 { color: #fff; font: 500 22px/1 var(--serif); margin: 0 0 12px; }
.footer-column a { font-size: 11px; }
.footer-column a:hover { color: #d6b576; }
.footer-bottom { grid-column: 1/-1; display: flex; justify-content: space-between; gap: 20px; padding-top: 32px; margin-top: 20px; border-top: 1px solid rgba(255,255,255,.12); text-transform: uppercase; letter-spacing: .12em; font-size: 8px; }

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(92vw, 500px);
  z-index: 300;
  background: var(--paper);
  transform: translateX(105%);
  transition: transform .35s ease;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 26px;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; justify-content: space-between; align-items: start; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 0; font: 500 40px/1 var(--serif); }
.cart-items { overflow-y: auto; padding: 8px 0; }
.cart-item { display: grid; grid-template-columns: 86px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 86px; height: 105px; object-fit: cover; background: var(--cream); }
.cart-item h4 { margin: 0 0 5px; font: 500 19px/1.05 var(--serif); }
.cart-item p { margin: 0 0 8px; color: var(--muted); font-size: 10px; }
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty-control button { width: 27px; height: 27px; border: 0; background: transparent; cursor: pointer; }
.qty-control span { min-width: 24px; text-align: center; font-size: 10px; }
.cart-item-price { text-align: right; font-size: 11px; }
.remove-item { display: block; border: 0; background: none; color: var(--muted); text-decoration: underline; font-size: 9px; margin: 12px 0 0 auto; cursor: pointer; }
.cart-empty { display: none; text-align: center; place-content: center; padding: 60px 20px; }
.cart-empty.show { display: grid; }
.empty-crown { font-size: 52px; color: var(--gold); }
.cart-empty h3 { margin: 10px 0 5px; font: 500 32px/1 var(--serif); }
.cart-empty p { color: var(--muted); }
.cart-footer { padding-top: 20px; border-top: 1px solid var(--line); }
.cart-footer.hidden { display: none; }
.cart-total-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.cart-total-row strong { font: 600 24px/1 var(--serif); }
.cart-footer > p { color: var(--muted); font-size: 9px; line-height: 1.5; margin-bottom: 16px; }

.product-modal, .checkout-modal {
  width: min(1060px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.product-modal::backdrop, .checkout-modal::backdrop { background: rgba(17,16,14,.58); backdrop-filter: blur(3px); }
.modal-close { position: absolute; top: 12px; right: 14px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.88); font-size: 27px; cursor: pointer; z-index: 3; }
.product-modal-grid { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 600px; }
.modal-image-wrap { background: var(--cream); min-height: 500px; }
.modal-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.modal-copy { padding: clamp(40px,6vw,80px); align-self: center; }
.modal-copy h2 { font-size: clamp(45px,5vw,72px); line-height: .9; margin: 0 0 15px; }
.modal-price { font-weight: 600; }
.modal-copy > p:not(.eyebrow,.modal-price) { color: var(--muted); line-height: 1.7; }
.modal-option { margin: 28px 0 18px; }
.modal-option label { display: block; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .12em; font-size: 9px; }
.modal-option select { width: 100%; padding: 13px; border: 1px solid var(--line); background: transparent; }
.modal-image-wrap {
  background: #f4eee6;
  display: grid;
  place-items: center;
  overflow: hidden;
  height: 5px; /* adjust to whatever height looks right in your modal */
}

.modal-image-wrap img {
  object-fit: contain;
  object-position: center;
  max-width: 100%;
  max-height: 100%;
}
.checkout-layout { display: grid; grid-template-columns: 1.15fr .85fr; }
.checkout-layout > div:first-child { padding: clamp(35px,6vw,75px); }
.checkout-modal h2 { margin: 0 0 12px; font-size: clamp(46px,5vw,74px); line-height: .9; }
.checkout-intro { color: var(--muted); line-height: 1.6; max-width: 550px; }
#checkoutForm { display: grid; gap: 15px; margin-top: 28px; }
#checkoutForm label { display: grid; gap: 7px; text-transform: uppercase; letter-spacing: .09em; font-size: 9px; }
#checkoutForm input, #checkoutForm textarea { width: 100%; border: 1px solid var(--line); background: transparent; padding: 13px; outline: none; text-transform: none; letter-spacing: normal; }
#checkoutForm input:focus, #checkoutForm textarea:focus { border-color: var(--gold); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note { color: var(--muted); line-height: 1.5; }
.checkout-summary { background: var(--cream); padding: clamp(35px,5vw,60px); max-height: 100vh; overflow: auto; }
.checkout-item { display: grid; grid-template-columns: 58px 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.checkout-item img { width: 58px; height: 70px; object-fit: cover; }
.checkout-item h4 { margin: 0; font: 500 17px/1 var(--serif); }
.checkout-item p { margin: 4px 0 0; font-size: 9px; color: var(--muted); }
.checkout-item > span { font-size: 10px; }
.checkout-total { display: flex; justify-content: space-between; margin-top: 22px; align-items: baseline; }
.checkout-total strong { font: 600 25px/1 var(--serif); }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%,30px); background: var(--ink); color: #fff; padding: 13px 18px; font-size: 10px; letter-spacing: .05em; z-index: 500; opacity: 0; visibility: hidden; transition: .3s; box-shadow: var(--shadow); }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%,0); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .nav-shell { grid-template-columns: 1fr auto 1fr; height: 78px; }
  .brand { justify-self: center; width: 62px; height: 62px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-grid; justify-self: start; }
  .hero { grid-template-columns: 1fr .75fr; }
  .hero-content { padding-left: 0; }
  .product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .site-footer { grid-template-columns: 2fr 1fr 1fr; }
  .footer-column:last-of-type { display: none; }
}

@media (max-width: 820px) {
  .announcement-track { animation: ticker 18s linear infinite; }
  @keyframes ticker { from { transform: translateX(40%); } to { transform: translateX(-40%); } }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 80px; padding-bottom: 105px; text-align: center; }
  .hero-content { max-width: 680px; margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-emblem { margin-top: 30px; }
  .hero-note { bottom: 30px; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .category-card { grid-column: auto !important; min-height: 330px; }
  .cat-pj { grid-column: 1/-1 !important; }
  .editorial-band { grid-template-columns: 1fr; }
  .editorial-art { min-height: 520px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .story-section { grid-template-columns: 1fr; }
  .story-mark { max-width: 480px; width: 88%; margin: 0 auto; }
  .service-strip { grid-template-columns: 1fr; }
  .service-strip article { border-right: 0; border-bottom: 1px solid var(--line); }
  .service-strip article:last-child { border-bottom: 0; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .footer-bottom { flex-direction: column; }
  .product-modal-grid, .checkout-layout { grid-template-columns: 1fr; }
  .modal-image-wrap { min-height: 52vh; }
  .checkout-summary { max-height: none; }
}

@media (max-width: 540px) {
  .announcement-bar { height: 30px; }
  .nav-shell { padding: 0 15px; }
  .nav-actions { gap: 0; }
  .nav-actions > .icon-btn:first-child { display: none; }
  .cart-button { padding-left: 4px; }
  .hero { padding-left: 20px; padding-right: 20px; }
  .hero::after { inset: 10px; }
  .hero h1 { font-size: clamp(52px, 17vw, 78px); }
  .hero-copy { margin: 24px auto; }
  .hero-actions { display: grid; }
  .btn { width: 100%; }
  .hero-note { font-size: 7px; letter-spacing: .2em; }
  .section { padding-left: 18px; padding-right: 18px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card, .cat-pj { grid-column: auto !important; min-height: 320px; }
  .editorial-copy { padding: 70px 24px; }
  .editorial-art { min-height: 460px; }
  .art-bottle { width: 210px; height: 310px; }
  .shop-heading { align-items: start; flex-direction: column; }
  .shop-tools, .shop-tools select { width: 100%; }
  .product-grid { gap: 28px 10px; }
  .product-name { font-size: 18px; }
  .product-price { font-size: 10px; }
  .quick-view { transform: translateY(0); min-height: 38px; }
  .queen-banner { min-height: 500px; }
  .site-footer { grid-template-columns: 1fr; padding-left: 24px; padding-right: 24px; }
  .footer-brand, .footer-bottom { grid-column: auto; }
  .footer-column:last-of-type { display: flex; }
  .cart-drawer { padding: 20px; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item img { width: 72px; height: 90px; }
  .cart-item-price { grid-column: 2; text-align: left; }
  .remove-item { margin-left: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .product-modal, .checkout-modal { width: 100%; max-width: 100%; max-height: 100vh; margin: 0; }
  .product-modal-grid { min-height: 100vh; }
  .modal-copy { padding: 35px 22px; }
}
/* =========================
   MOBILE FIXED TOP HEADER
   ========================= */

@media (max-width: 820px) {

  body {
    padding-top: 94px !important;
  }

  .announcement-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 28px !important;
    z-index: 9999 !important;
  }

  .site-header {
    position: fixed !important;
    top: 28px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9998 !important;
    background: rgba(251, 247, 240, 0.98) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  /* =========================
   MOBILE BAG CLOSE FIX
   ========================= */

@media (max-width: 820px) {

  .cart-drawer {
    padding-top: 18px !important;
    z-index: 12000 !important;
  }

  .cart-head {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--paper);
    padding-top: 6px;
  }

  #cartClose {
    position: relative !important;
    z-index: 10 !important;
    display: inline-grid !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .cart-overlay,
  #cartOverlay {
    z-index: 11999 !important;
  }
}

  .nav-shell {
    height: 66px !important;
  }
}

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


/* ============================================================
   HOUSE OF PALAY — CATEGORY PAGE + MENU UPDATE
   Requested update: solid dark menu, real-image category cards,
   category pages and a live running cart total.
   ============================================================ */

.section-subcopy {
  max-width: 680px;
  margin: 20px auto 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
}

/* Strong, non-transparent menu so page content never mixes with links. */
.mobile-menu {
  background: #171512;
  color: #fbf7f0;
  box-shadow: 30px 0 80px rgba(0,0,0,.35);
}
.mobile-menu-head {
  border-bottom-color: rgba(255,255,255,.15);
  color: #d8b66f;
}
.mobile-menu .icon-btn { color: #fff; }
.mobile-menu > a {
  color: #fffaf3;
  border-bottom-color: rgba(255,255,255,.12);
}
.mobile-menu > a:hover { color: #d8b66f; padding-left: 8px; }
.mobile-menu-tagline {
  margin: auto 0 0;
  padding-top: 30px;
  color: #d8b66f;
  font: 400 38px/1 var(--script);
}
.screen-overlay {
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(5px);
}

/* The running bag value stays visible while the customer shops. */
.cart-button { gap: 7px; white-space: nowrap; }
.cart-live-total {
  color: var(--gold-deep);
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
}

/* Category cards now use actual image slots, not abstract illustrations. */
.category-card {
  padding: 0;
  color: #fff;
  background: #9d8e7c;
  text-decoration: none;
}
.category-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform .6s ease;
}
.category-card:hover > img { transform: scale(1.045); }
.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  right: 0;
  top: 0;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(13,11,9,.10) 15%, rgba(13,11,9,.20) 48%, rgba(13,11,9,.76) 100%);
  transform: none;
  z-index: 1;
}
.category-card:hover::before { transform: none; }
.category-card::after { display: none; }
.category-card > div { z-index: 2; }
.category-card .cat-number {
  z-index: 2;
  color: #fff;
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(5px);
  padding: 8px 10px;
  border-radius: 999px;
}
.category-card p, .category-card span { color: rgba(255,255,255,.88); }
.cat-lashes, .cat-hair { grid-column: span 6; }
.cat-fragrance, .cat-gym, .cat-pj, .cat-nails { grid-column: span 3; }

/* Category shopping pages */
.category-page .site-header { background: rgba(251,247,240,.97); }
.category-hero {
  min-height: 430px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: stretch;
  background: linear-gradient(135deg, #fffdf8 0%, #f4eadc 60%, #e7d4c5 100%);
  border-bottom: 1px solid var(--line);
}
.category-hero-copy {
  padding: clamp(70px,9vw,130px) max(28px, calc((100vw - 1380px)/2));
  padding-right: clamp(28px,7vw,90px);
  align-self: center;
}
.category-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 26px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
}
.category-breadcrumb a:hover { color: var(--gold-deep); }
.category-hero h1 {
  margin: 0 0 18px;
  font: 500 clamp(62px,8vw,118px)/.82 var(--serif);
  letter-spacing: -.045em;
}
.category-hero-copy > p:not(.eyebrow) {
  max-width: 600px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
}
.category-hero-art {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: #e4d5c8;
}
.category-hero-art img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}
.category-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 40px 0 70px rgba(255,253,248,.16);
  pointer-events: none;
}
.category-products { padding-top: 70px; }
.category-products .shop-heading { margin-bottom: 20px; }
.category-note {
  border: 1px solid var(--line);
  background: #fffaf4;
  padding: 13px 16px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.category-note strong { color: var(--ink); }

/* Make product add-to-bag price logic visually obvious. */
.product-meta { grid-template-columns: 1fr auto; }
.add-button {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 9px;
  transition: .2s ease;
}
.add-button:hover { background: var(--ink); color: #fff; }

@media (max-width: 1100px) {
  .cart-live-total { display: inline; }
  .cat-lashes, .cat-hair, .cat-fragrance, .cat-gym, .cat-pj, .cat-nails { grid-column: span 6; }
}

@media (max-width: 820px) {
  .category-hero { grid-template-columns: 1fr; }
  .category-hero-copy { text-align: center; }
  .category-breadcrumb { justify-content: center; }
  .category-hero-art { min-height: 330px; }
  .category-hero-art img { min-height: 330px; }
  .cat-lashes, .cat-hair, .cat-fragrance, .cat-gym, .cat-pj, .cat-nails { grid-column: auto !important; }
}

@media (max-width: 540px) {
  .cart-button { font-size: 10px; }
  .cart-live-total { font-size: 9px; }
  .cart-label { display: none; }
  .category-hero-copy { padding: 60px 20px; }
  .category-hero h1 { font-size: clamp(58px,19vw,82px); }
  .category-hero-art, .category-hero-art img { min-height: 285px; }
}
.hero-emblem .crest-ring {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  overflow: hidden;
  padding: 0;
}

.hero-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}
/* OWNER IMAGE - OUR STORY */
.story-owner {
  overflow: hidden;
  padding: 0;
}
/* PALAY EDIT - SOFT BLENDED PERFUME IMAGE */

.editorial-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 40px;
}
.editorial-image {
  width: 85%;
  max-width: 620px;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  display: block;
  border-radius: 30px;
  opacity: 1;
}

/* MOBILE */
@media (max-width: 768px) {
  .editorial-art {
    padding: 25px;
  }

  .editorial-image {
    width: 90%;
    max-width: 480px;
    max-height: 420px;
  }
}

.owner-image {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 768px) {
  .owner-image {
    min-height: 400px;
  }
}

/* ============================================================
   FULL-SCREEN VIDEO HERO
   Add class="video-hero" to any .hero or .category-hero section
   and drop a <video class="hero-bg-video"> + <div class="hero-video-overlay">
   inside it (see Eyelashes.html for the working example).
   ============================================================ */

.video-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  border-bottom: 0;
  background-size: cover;
  background-position: center;
}

/* Category pages (e.g. Eyelashes) drop the old two-column art slot in favour
   of the video, so they need to switch from grid to a centered flex layout.
   The homepage .hero keeps its original two-column grid — the video just
   plays behind it. */
.category-hero.video-hero {
  display: flex;
  align-items: center;
  grid-template-columns: none;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    120deg,
    rgba(23, 21, 18, 0.74) 0%,
    rgba(23, 21, 18, 0.4) 45%,
    rgba(23, 21, 18, 0.6) 100%
  );
}

.video-hero .category-hero-copy,
.video-hero .hero-content,
.video-hero .hero-emblem,
.video-hero .hero-note {
  position: relative;
  z-index: 2;
}

.video-hero .category-hero-copy,
.video-hero .hero-content {
  width: 100%;
  max-width: 720px;
  padding: 0 max(28px, calc((100vw - 1380px) / 2));
  text-align: left;
  color: #fbf7f0;
}

.video-hero .eyebrow { color: #d8b66f; }
.video-hero .category-hero h1,
.video-hero h1 { color: #ffffff; }
.video-hero .category-breadcrumb,
.video-hero .category-breadcrumb a { color: rgba(255, 255, 255, 0.72); }
.video-hero .category-hero-copy > p:not(.eyebrow),
.video-hero .hero-copy { color: rgba(255, 255, 255, 0.84); }
.video-hero .hero-emblem > span { color: #d8b66f; }
.video-hero .hero-note { color: rgba(255, 255, 255, 0.75); }

/* Decorative outline rings were designed for the light hero background;
   hide them so they don't fight with the video. */
.video-hero .hero-orbit { display: none; }

/* Video hero never needs the old side-by-side art column */
.video-hero .category-hero-art { display: none; }

@media (max-width: 820px) {
  .video-hero { min-height: 86svh; }
  .category-hero.video-hero .category-hero-copy { text-align: center; margin: 0 auto; padding: 0 24px; }
}

@media (max-width: 540px) {
  .video-hero { min-height: 78svh; }
}

/* Respect reduced-motion / save data: freeze on the poster frame instead of playing */
@media (prefers-reduced-motion: reduce) {
  .hero-bg-video { display: none; }
}

/* ============================================================================
   HOUSE OF PALAY — FINAL LAUNCH OVERRIDES
   Added 2026-09-01
   ============================================================================ */

/* Loader now uses the real House of Palay logo instead of a square/text icon. */
.loader-mark {
  overflow: hidden;
  background: #fff;
}
.loader-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

/* Hero ghost button stays readable over the video. */
.video-hero .hero-ghost {
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.video-hero .hero-ghost:hover { background: rgba(255,255,255,.12); }

/* --------------------------------------------------------------------------
   MOBILE IMAGE SAFETY
   Product photography should never be chopped simply to fill the box.
   The image is contained inside a neutral background instead.
   -------------------------------------------------------------------------- */
.product-image {
  background: #f4eee6;
  display: grid;
  place-items: center;
}
.product-image img {
  object-fit: contain;
  object-position: center;
  padding: 3px;
}
.modal-image-wrap {
  background: #f4eee6;
  display: grid;
  place-items: center;
}
.modal-image-wrap img { object-fit: contain; object-position: center; }
.cart-item img,
.checkout-item img,
.checkout-page-item img {
  object-fit: contain !important;
  object-position: center;
  background: #f4eee6;
}

/* Keep category dashboard images attractive on desktop, but show the full image
   on smaller screens where portrait crops are most noticeable. */
.category-card > img { object-position: center; }
.category-hero-art { display: grid; place-items: center; }
.category-hero-art img { object-position: center; }

/* Compact desktop navigation for the full category menu. */
@media (min-width: 1101px) {
  .desktop-nav { gap: clamp(11px, 1.35vw, 24px); }
  .desktop-nav a { font-size: 10px; }
}

/* ============================================================================
   CHECKOUT + ORDER PAGES
   ============================================================================ */
.order-page {
  background: var(--ivory);
}
.order-page .nav-actions > #searchToggle { display: none; }
.order-page-hero {
  min-height: 330px;
  padding: clamp(65px, 8vw, 105px) max(28px, calc((100vw - 1380px)/2));
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 80% 25%, rgba(211,170,155,.32), transparent 28%),
    linear-gradient(135deg, #fffdf8 0%, #f4eadc 60%, #e7d4c5 100%);
  border-bottom: 1px solid var(--line);
}
.order-page-hero > div { max-width: 820px; }
.order-page-hero h1 {
  margin: 0 0 18px;
  font: 500 clamp(60px, 8vw, 112px)/.82 var(--serif);
  letter-spacing: -.045em;
}
.order-page-hero p:not(.eyebrow) {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.checkout-page-main { min-height: 70vh; }
.checkout-page-layout {
  max-width: 1380px;
  margin: 0 auto;
  padding: clamp(55px, 7vw, 95px) 28px clamp(90px, 9vw, 140px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .72fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}
.checkout-page-form { display: grid; gap: 18px; min-width: 0; }
.checkout-section-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(24px, 4vw, 42px);
  box-shadow: 0 10px 35px rgba(44,34,20,.045);
}
.checkout-section-head {
  display: flex;
  gap: 17px;
  align-items: flex-start;
  margin-bottom: 27px;
}
.checkout-section-head > span {
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font: 500 14px/1 var(--serif);
  color: var(--gold-deep);
}
.checkout-section-head .eyebrow { margin-bottom: 5px; }
.checkout-section-head h2 {
  margin: 0;
  font: 500 clamp(32px, 3vw, 45px)/.95 var(--serif);
}
.checkout-page-form label {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: 9px;
  font-weight: 600;
}
.checkout-page-form input,
.checkout-page-form select,
.checkout-page-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  background: #fffdf9;
  padding: 12px 13px;
  outline: none;
  color: var(--ink);
  text-transform: none;
  letter-spacing: normal;
  border-radius: 0;
}
.checkout-page-form textarea { min-height: 95px; resize: vertical; }
.checkout-page-form input:focus,
.checkout-page-form select:focus,
.checkout-page-form textarea:focus:focus { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(173,133,65,.08); }
.delivery-fee-note {
  margin: 10px 0 18px;
  padding: 11px 13px;
  background: #f8f1e7;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  border-left: 2px solid var(--gold);
}
.payfast-ready {
  padding: 18px;
  border: 1px solid rgba(173,133,65,.35);
  background: #fffaf3;
}
.payfast-ready strong {
  display: block;
  font: 600 28px/1 var(--serif);
  margin-bottom: 6px;
}
.payfast-ready p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 11px; }
.confirm-check {
  grid-template-columns: 20px 1fr !important;
  align-items: start;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-size: 11px !important;
  line-height: 1.5;
  font-weight: 400 !important;
  cursor: pointer;
}
.confirm-check input { width: 18px; height: 18px; min-height: 18px; margin: 1px 0 0; accent-color: var(--ink); }
.checkout-pay-button { margin-top: 18px; }
.checkout-pay-button:disabled { opacity: .55; cursor: wait; transform: none; }
.checkout-status { min-height: 20px; margin: 10px 0 0; color: var(--gold-deep); font-size: 11px; line-height: 1.5; }

.checkout-page-summary {
  position: sticky;
  top: 118px;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: clamp(25px, 4vw, 42px);
  max-height: calc(100vh - 145px);
  overflow: auto;
}
.checkout-page-summary > h2 {
  margin: 0 0 22px;
  font: 500 clamp(38px, 4vw, 56px)/.92 var(--serif);
}
.order-number-preview {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  font-size: 10px;
}
.order-number-preview strong { text-align: right; overflow-wrap: anywhere; }
.checkout-page-item {
  display: grid;
  grid-template-columns: 70px minmax(0,1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.checkout-page-item img { width: 70px; height: 88px; }
.checkout-page-item h3 { margin: 0; font: 500 18px/1.08 var(--serif); }
.checkout-page-item p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.checkout-page-item strong { font-size: 10px; white-space: nowrap; }
.checkout-totals { padding-top: 17px; }
.checkout-totals > div { display: flex; justify-content: space-between; gap: 20px; padding: 8px 0; font-size: 11px; }
.checkout-totals .grand { margin-top: 10px; padding-top: 17px; border-top: 1px solid var(--ink); align-items: baseline; }
.checkout-totals .grand span { font-weight: 600; }
.checkout-totals .grand strong { font: 600 28px/1 var(--serif); }
.summary-back-link { display: inline-block; margin-top: 22px; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.checkout-empty {
  max-width: 760px;
  margin: 80px auto 120px;
  padding: 60px 25px;
  text-align: center;
  border: 1px solid var(--line);
  background: var(--paper);
}
.checkout-empty h2 { font: 500 48px/1 var(--serif); margin: 10px 0; }
.checkout-empty p { color: var(--muted); margin-bottom: 25px; }

/* Thank-you */
.thankyou-main {
  min-height: 75vh;
  padding: clamp(65px, 9vw, 120px) 24px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 20%, rgba(211,170,155,.28), transparent 34%), var(--ivory);
}
.thankyou-card {
  width: min(840px, 100%);
  padding: clamp(38px, 7vw, 75px);
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.thankyou-crown { font-size: 58px; color: var(--gold); margin-bottom: 4px; }
.thankyou-card h1 { margin: 0; font: 500 clamp(52px, 7vw, 85px)/.88 var(--serif); letter-spacing: -.04em; }
.thankyou-copy { max-width: 620px; margin: 23px auto; color: var(--muted); line-height: 1.7; }
.thankyou-order { display: grid; gap: 8px; padding: 19px; margin: 27px auto 16px; max-width: 520px; background: var(--cream); }
.thankyou-order span { text-transform: uppercase; letter-spacing: .14em; font-size: 9px; color: var(--muted); }
.thankyou-order strong { font: 600 25px/1 var(--serif); overflow-wrap: anywhere; }
.thankyou-status { max-width: 620px; margin: 0 auto; padding: 15px; display: grid; gap: 4px; font-size: 11px; line-height: 1.5; }
.thankyou-status.success { background: #e4eee4; color: #315b35; }
.thankyou-status.pending { background: #f5ead8; color: #805b1f; }
.thankyou-actions { margin-top: 26px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.hidden { display: none !important; }

/* --------------------------------------------------------------------------
   MOBILE — checkout and image-fitting
   -------------------------------------------------------------------------- */
@media (max-width: 820px) {
  .category-card > img {
    object-fit: contain;
    background: #e8ded4;
  }
  .category-hero-art { background: #e8ded4; }
  .category-hero-art img {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: 72svh;
    object-fit: contain;
  }
  .category-hero-art { min-height: 0; padding: 10px; }

  .checkout-page-layout { grid-template-columns: 1fr; padding-left: 20px; padding-right: 20px; }
  .checkout-page-summary { position: static; max-height: none; order: -1; }
}

@media (max-width: 540px) {
  /* Two product columns still fit, but images are fully visible rather than cropped. */
  .product-image { aspect-ratio: .78; }
  .product-image img { padding: 2px; }
  .order-page-hero { min-height: 260px; padding: 55px 20px; text-align: center; }
  .order-page-hero h1 { font-size: clamp(54px, 18vw, 78px); }
  .checkout-page-layout { padding-top: 35px; gap: 18px; }
  .checkout-section-card, .checkout-page-summary { padding: 22px 17px; }
  .checkout-page-item { grid-template-columns: 58px minmax(0,1fr); }
  .checkout-page-item img { width: 58px; height: 75px; }
  .checkout-page-item > strong { grid-column: 2; }
  .thankyou-actions { display: grid; }
  .thankyou-actions .btn { width: 100%; }
  .receipt-meta-grid { grid-template-columns: 1fr; }
  .receipt-meta-grid .receipt-meta-wide { grid-column: auto; }
  .receipt-item-row { grid-template-columns: minmax(0, 1fr) auto; }
  .receipt-item-unit { display: none; }
  .receipt-item-total { grid-column: 2; }
}

/* Better tap targets and prevent accidental horizontal page zoom/overflow. */
@media (max-width: 820px) {
  button, .btn, select, input, textarea { max-width: 100%; }
  .filter-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 7px; scrollbar-width: thin; }
  .filter-chip { flex: 0 0 auto; min-height: 42px; }
  .mobile-menu > a { min-height: 48px; display: flex; align-items: center; }
}

/* ============================================================================
   FINAL POLISH UPDATE — PRODUCT CHOICES, CARD ALIGNMENT & CONNECT ICONS
   ============================================================================ */

/* Keep every product card aligned even when product names have different lengths. */
.product-grid { align-items: stretch; }
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card .product-meta {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto;
  align-items: start;
}
.product-card .product-meta > div:first-child {
  min-height: 76px;
}
.product-card .add-button {
  grid-column: 1 / -1;
  align-self: end;
  margin-top: 12px;
}

/* Separate Size / Colour / other option fields in the quick-view modal. */
.modal-option {
  gap: 14px;
}
.modal-option-field {
  min-width: 0;
}
.modal-option-field label {
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 9px;
}
.modal-option-field select {
  width: 100%;
  min-height: 46px;
  padding: 13px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

/* Site-wide Connect section icons. They remain visible before real URLs are added. */
.footer-column .connect-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  min-height: 30px;
}
.connect-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 22px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
}
.connect-icon svg {
  width: 13px;
  height: 13px;
  display: block;
}
.footer-column .connect-link:hover .connect-icon {
  border-color: #d6b576;
}
.footer-column .connect-link-disabled {
  opacity: .55;
  cursor: default;
}
.footer-column .connect-link-disabled:hover {
  color: inherit;
}

@media (max-width: 540px) {
  .product-card .product-meta > div:first-child { min-height: 66px; }
  .footer-column .connect-link { min-height: 36px; }
  .connect-icon { width: 26px; height: 26px; flex-basis: 26px; }
  .connect-icon svg { width: 15px; height: 15px; }
}


/* ============================================================================
   HOUSE OF PALAY — THANK-YOU RECEIPT + MOBILE HARDENING
   Added for payment receipt / WhatsApp / phone layouts.
   ============================================================================ */

/* Receipt preview */
.receipt-preview {
  max-width: 680px;
  margin: 26px auto 0;
  padding: clamp(20px, 4vw, 34px);
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
}
.receipt-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.receipt-preview-head .eyebrow { margin-bottom: 5px; }
.receipt-preview-head h2 {
  margin: 0;
  font: 500 clamp(30px, 5vw, 44px)/1 var(--serif);
}
.receipt-paid-badge {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e4eee4;
  color: #315b35;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
}
.receipt-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.receipt-meta-grid > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.receipt-meta-grid .receipt-meta-wide {
  grid-column: 1 / -1;
}
.receipt-meta-grid span,
.receipt-totals span {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .11em;
}
.receipt-meta-grid strong {
  overflow-wrap: anywhere;
  font-size: 12px;
}
.receipt-items {
  padding: 7px 0;
}
.receipt-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}
.receipt-item-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.receipt-item-copy strong {
  font: 500 17px/1.1 var(--serif);
  overflow-wrap: anywhere;
}
.receipt-item-copy span {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.receipt-item-qty,
.receipt-item-unit,
.receipt-item-total { white-space: nowrap; }
.receipt-empty {
  margin: 18px 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 11px;
}
.receipt-totals {
  padding-top: 14px;
}
.receipt-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 0;
  font-size: 11px;
}
.receipt-grand-total {
  margin-top: 8px;
  padding-top: 15px !important;
  border-top: 1px solid var(--ink);
  align-items: baseline;
}
.receipt-grand-total strong {
  font: 600 26px/1 var(--serif);
}
.thankyou-help {
  min-height: 18px;
  max-width: 620px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.thankyou-actions .is-disabled {
  opacity: .48;
  cursor: not-allowed;
  pointer-events: auto;
}
#downloadReceiptButton:disabled {
  opacity: .48;
  cursor: not-allowed;
}

/* Global width protection. */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
body,
main,
header,
footer,
section,
article,
aside,
nav,
form,
.product-card,
.product-meta,
.checkout-page-layout,
.checkout-page-form,
.checkout-page-summary {
  min-width: 0;
}
img,
video,
iframe,
svg {
  max-width: 100%;
}
input,
select,
textarea {
  min-width: 0;
}

/* Modern phone viewport/safe-area handling. */
.mobile-menu,
.cart-drawer {
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100dvh;
}
.mobile-menu { overflow-y: auto; }
.cart-items { overscroll-behavior: contain; }

@media (max-width: 820px) {
  /* iOS avoids zooming focused form controls at 16px. */
  input,
  select,
  textarea {
    font-size: 16px;
  }

  .nav-shell {
    width: 100%;
    grid-template-columns: minmax(44px, 1fr) auto minmax(44px, 1fr);
    gap: 8px;
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }
  .nav-actions { min-width: 0; }
  .brand { width: 58px; height: 58px; }
  .mobile-menu {
    width: min(88vw, 390px);
    padding-left: max(22px, env(safe-area-inset-left));
    padding-right: 22px;
    padding-bottom: max(32px, env(safe-area-inset-bottom));
  }

  .hero,
  .category-hero,
  .video-hero {
    width: 100%;
    max-width: 100%;
  }
  .hero-content,
  .video-hero .hero-content,
  .video-hero .category-hero-copy {
    max-width: 100%;
  }
  .hero h1,
  .category-hero h1,
  .queen-banner h2,
  .order-page-hero h1,
  .thankyou-card h1 {
    overflow-wrap: anywhere;
  }
  .hero-bg-video {
    width: 100%;
    height: 100%;
    object-position: center;
  }

  .section,
  .category-products {
    width: 100%;
  }
  .product-grid {
    width: 100%;
    min-width: 0;
  }
  .product-card,
  .product-image,
  .product-meta {
    min-width: 0;
    max-width: 100%;
  }
  .product-name {
    overflow-wrap: anywhere;
  }

  .cart-drawer {
    width: min(100vw, 500px);
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }
  .cart-item {
    min-width: 0;
  }
  .cart-item > div,
  .cart-item-price {
    min-width: 0;
  }
  .cart-item h4,
  .cart-item p {
    overflow-wrap: anywhere;
  }

  .product-modal,
  .checkout-modal {
    max-height: 100dvh;
    overflow-y: auto;
  }
  .product-modal-grid {
    min-height: 0;
  }
  .modal-image-wrap {
    min-height: 0;
    height: min(46dvh, 430px);
  }
  .modal-copy {
    min-width: 0;
  }

  .checkout-page-layout {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }
  .checkout-section-card,
  .checkout-page-summary {
    width: 100%;
    max-width: 100%;
  }
  .checkout-page-form input,
  .checkout-page-form select,
  .checkout-page-form textarea {
    width: 100%;
  }
  .checkout-page-item > div {
    min-width: 0;
  }
  .checkout-page-item h3,
  .checkout-page-item p {
    overflow-wrap: anywhere;
  }

  .site-footer {
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
    padding-bottom: max(26px, env(safe-area-inset-bottom));
  }
  .footer-column a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
  }

  .toast {
    width: calc(100% - 32px);
    max-width: 440px;
    bottom: max(16px, env(safe-area-inset-bottom));
    text-align: center;
  }

  button,
  .btn,
  .icon-btn,
  .filter-chip,
  .link-button {
    touch-action: manipulation;
  }
  .btn,
  .filter-chip {
    min-height: 44px;
  }
}

@media (max-width: 540px) {
  .announcement-track { gap: 16px; }
  .nav-shell { height: 70px; }
  .brand { width: 52px; height: 52px; }
  .cart-button { max-width: 110px; }
  .cart-live-total { display: none; }

  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }
  .hero h1 {
    font-size: clamp(48px, 16vw, 70px);
  }
  .hero-copy {
    font-size: 15px;
  }

  .newsletter-form {
    display: grid;
    border-bottom: 0;
    gap: 10px;
  }
  .newsletter-form input {
    width: 100%;
    border: 1px solid var(--line);
    padding: 14px;
  }
  .newsletter-form button {
    min-height: 46px;
    border: 1px solid var(--ink);
  }

  .checkout-page-layout {
    padding-left: 14px;
    padding-right: 14px;
  }
  .checkout-section-card,
  .checkout-page-summary {
    padding: 20px 15px;
  }
  .checkout-totals > div,
  .receipt-totals > div {
    gap: 10px;
  }

  .thankyou-main {
    padding: 34px 12px 55px;
  }
  .thankyou-card {
    padding: 30px 15px;
  }
  .thankyou-card h1 {
    font-size: clamp(44px, 15vw, 64px);
    line-height: .92;
  }
  .thankyou-copy {
    margin: 18px auto;
  }
  .thankyou-order {
    padding: 15px 10px;
  }
  .thankyou-order strong {
    font-size: 21px;
  }
  .receipt-preview {
    padding: 18px 13px;
  }
  .receipt-preview-head {
    align-items: center;
  }
  .receipt-meta-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .receipt-item-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 12px;
  }
  .receipt-item-copy {
    grid-column: 1 / -1;
  }
  .receipt-item-qty { grid-column: 1; }
  .receipt-item-unit { display: none; }
  .receipt-item-total {
    grid-column: 2;
    text-align: right;
  }
  .thankyou-actions {
    width: 100%;
    gap: 9px;
  }
  .thankyou-actions .btn {
    width: 100%;
  }

  .product-modal {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
  }
  .modal-image-wrap {
    height: min(42dvh, 360px);
  }
}

@media (max-width: 420px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .product-card .product-meta > div:first-child {
    min-height: 0;
  }
  .product-name {
    font-size: 21px;
  }
  .category-card,
  .cat-pj {
    min-height: 290px;
  }
  .footer-bottom {
    align-items: flex-start;
  }
}

@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}


/* ============================================================================
   PUBLIC-LAUNCH AUDIT — ACCESSIBILITY, IMAGE LOADING & RESPONSIVE POLISH
   ============================================================================ */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10000;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border: 1px solid #fff;
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}
button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) { outline: none; }

/* Premium but lightweight image loading. JS adds these classes at runtime. */
img.hop-image-loading {
  opacity: .28;
  filter: blur(4px);
  background: linear-gradient(110deg, #eee5da 30%, #faf6f0 45%, #eee5da 60%);
  background-size: 220% 100%;
  animation: hopImageShimmer 1.15s linear infinite;
}
img.hop-image-loaded {
  opacity: 1;
  filter: none;
  transition: opacity .38s ease, filter .38s ease;
}
@keyframes hopImageShimmer { to { background-position-x: -220%; } }

/* Product photography should show the whole product instead of being cropped. */
.product-image img,
.modal-image-wrap img,
.cart-item img,
.checkout-page-item img {
  object-fit: contain !important;
  object-position: center !important;
}
.product-image img { padding: clamp(3px, .6vw, 8px); }

/* Long names/prices and form values must never push the viewport wider. */
.product-name,
.product-price,
.cart-item h4,
.checkout-page-item h3,
.order-number-preview strong,
.receipt-item-copy,
.receipt-meta-grid strong {
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Keep disabled optional social links out of the public tab order/visual flow. */
.footer-column .connect-link-disabled { display: none; }

/* Better touch targets and form legibility across tablets/phones. */
@media (max-width: 900px) {
  .icon-btn { min-width: 44px; min-height: 44px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .checkout-page-summary { position: static; max-height: none; overflow: visible; }
}

@media (max-width: 620px) {
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 300px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .shop-heading { align-items: stretch; }
  .shop-tools, .shop-tools select { width: 100%; }
  .checkout-page-item { grid-template-columns: 58px minmax(0,1fr) auto; }
  .checkout-page-item img { width: 58px; height: 74px; }
  .checkout-page-item strong { align-self: start; }
  .order-number-preview { flex-direction: column; }
  .order-number-preview strong { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  img.hop-image-loading { animation: none; filter: none; }
  img.hop-image-loaded { transition: none; }
}
/* ============================================================================
   HOUSE OF PALAY — FINAL MOBILE-FIRST PHONE FIX
   Keeps desktop unchanged. This block intentionally sits at the VERY END
   so it overrides older phone rules.
   ============================================================================ */

@media (max-width: 820px) {
  /* ---------- Phone header: menu + centered logo + visible Bag total ---------- */
  .announcement-bar {
    height: 28px;
    font-size: 8px;
  }

  .nav-shell {
    width: 100%;
    height: 66px;
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
    grid-template-columns: minmax(44px, 1fr) auto minmax(88px, 1fr);
    gap: 6px;
  }

  .menu-toggle {
    display: inline-grid !important;
    justify-self: start;
  }

  .brand {
    width: 48px;
    height: 48px;
    justify-self: center;
  }

  .nav-actions {
    justify-self: end;
    min-width: 0;
    gap: 0;
  }

  #searchToggle,
  .nav-actions > .icon-btn:first-child {
    display: none !important;
  }

  .cart-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-end;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    min-height: 44px;
    padding: 0 !important;
    gap: 4px !important;
    white-space: nowrap;
    font-size: 9px !important;
    letter-spacing: .02em !important;
    text-transform: none;
  }

  .cart-label {
    display: inline !important;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
  }

  .cart-count {
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-size: 9px;
  }

  .cart-live-total {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: none !important;
    font-size: 9px !important;
    font-weight: 700;
    color: var(--gold-deep);
    white-space: nowrap;
  }

  /* ---------- Compact spacing across the phone ---------- */
  .section,
  .category-products {
    padding-top: 48px;
    padding-bottom: 48px;
    padding-left: 12px;
    padding-right: 12px;
  }

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

  .section h2 {
    font-size: clamp(34px, 10vw, 48px);
  }

  /* ---------- Homepage hero: premium, but not oversized ---------- */
  .hero.video-hero,
  .video-hero {
    min-height: 68svh !important;
  }

  .hero {
    padding-top: 54px;
    padding-bottom: 72px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 62px) !important;
    line-height: .88;
  }

  .hero-copy {
    margin: 18px auto 22px;
    font-size: 13px;
    line-height: 1.55;
  }

  .hero-emblem {
    margin-top: 20px;
  }

  .hero-emblem .crest-ring {
    width: 132px;
    height: 132px;
  }

  .hero-emblem > span {
    font-size: 28px;
    margin-top: 8px;
  }

  .hero-note {
    bottom: 18px;
    font-size: 6px;
    letter-spacing: .14em;
  }

  .hero-actions {
    gap: 8px;
  }

  .hero-actions .btn {
    min-height: 44px;
    padding: 0 16px;
  }

  /* ---------- Category cards: two neat cards next to each other ---------- */
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .category-card,
  .cat-lashes,
  .cat-hair,
  .cat-fragrance,
  .cat-gym,
  .cat-pj,
  .cat-nails {
    grid-column: auto !important;
    min-height: 205px !important;
  }

  .category-card > div {
    left: 13px;
    right: 13px;
    bottom: 13px;
  }

  .category-card h3 {
    font-size: clamp(24px, 7vw, 32px);
    margin-bottom: 8px;
  }

  .category-card p {
    font-size: 7px;
    letter-spacing: .14em;
  }

  .category-card span {
    font-size: 9px;
  }

  .category-card .cat-number {
    top: 10px;
    right: 10px;
    padding: 5px 7px;
    font-size: 9px;
  }

  /* ---------- Specials section: much shorter on mobile ---------- */
  .editorial-band {
    min-height: 0 !important;
  }

  .editorial-copy {
    padding: 44px 20px !important;
  }

  .editorial-copy h2 {
    font-size: clamp(42px, 12vw, 58px);
    margin-bottom: 18px;
  }

  .editorial-copy p:not(.eyebrow) {
    line-height: 1.55;
    font-size: 12px;
  }

  .editorial-art {
    min-height: 270px !important;
    padding: 16px !important;
  }

  .editorial-image {
    width: 88% !important;
    max-height: 250px !important;
  }

  /* ---------- SHOP: always TWO compact products across on phones ---------- */
  .shop-heading {
    margin-bottom: 18px;
    gap: 10px;
  }

  .shop-heading h2 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .results-text {
    margin: 10px 0 16px;
  }

  .filter-row {
    gap: 6px;
    margin-bottom: 10px;
  }

  .filter-chip {
    min-height: 36px !important;
    padding: 8px 12px;
    font-size: 9px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px 8px !important;
    align-items: stretch;
  }

  .product-card {
    min-width: 0;
    width: 100%;
  }

  .product-image {
    width: 100%;
    aspect-ratio: .88 !important;
    margin-bottom: 8px !important;
  }

  .product-image img {
    width: 100%;
    height: 100%;
    padding: 2px !important;
    object-fit: contain !important;
  }

  .product-badge {
    left: 6px;
    top: 6px;
    padding: 4px 6px;
    font-size: 6px;
    letter-spacing: .08em;
  }

  /* Quick view is redundant on a phone; Choose options/Add to bag still works. */
  .quick-view {
    display: none !important;
  }

  .product-card .product-meta,
  .product-meta {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto !important;
    gap: 3px !important;
    align-items: start;
  }

  .product-card .product-meta > div:first-child {
    min-height: 42px !important;
  }

  .product-category {
    margin-bottom: 3px;
    font-size: 6.5px;
    letter-spacing: .10em;
  }

  .product-name {
    font-size: clamp(14px, 4.4vw, 17px) !important;
    line-height: 1.05;
    min-height: 0;
  }

  .product-price {
    grid-column: 1 !important;
    display: block !important;
    padding-top: 2px;
    font-size: 10px !important;
    font-weight: 700;
    line-height: 1.2;
    white-space: normal;
  }

  .product-card .add-button,
  .add-button {
    grid-column: 1 !important;
    width: 100% !important;
    min-height: 40px !important;
    margin-top: 6px !important;
    padding: 7px 5px !important;
    text-align: center !important;
    font-size: 7.5px !important;
    letter-spacing: .08em !important;
  }

  /* ---------- Other homepage sections: remove unnecessary height ---------- */
  .queen-banner {
    min-height: 330px !important;
    padding: 48px 18px;
  }

  .queen-banner h2 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .script-line {
    font-size: clamp(34px, 10vw, 46px);
  }

  .story-section {
    gap: 28px;
  }

  .story-mark {
    width: min(78vw, 300px);
  }

  .owner-image {
    min-height: 280px !important;
  }

  .service-strip article {
    padding: 22px 18px;
  }

  .service-strip strong {
    font-size: 20px;
  }

  .newsletter {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .site-footer {
    padding-top: 48px;
    gap: 28px;
  }

  /* ---------- Shopping bag ---------- */
  .cart-drawer {
    width: 100vw !important;
    max-width: 100vw;
    padding: 16px max(14px, env(safe-area-inset-right))
             max(16px, env(safe-area-inset-bottom))
             max(14px, env(safe-area-inset-left)) !important;
  }

  .cart-head {
    padding-bottom: 13px;
  }

  .cart-head h2 {
    font-size: 32px;
  }

  .cart-item {
    grid-template-columns: 62px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 12px 0 !important;
  }

  .cart-item img {
    width: 62px !important;
    height: 76px !important;
  }

  .cart-item h4 {
    font-size: 16px;
  }

  .cart-item-price {
    grid-column: 2 !important;
    text-align: left !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
  }

  .remove-item {
    margin: 0 !important;
  }

  .cart-total-row strong {
    font-size: 21px;
  }

  /* ---------- Product options modal: image first, options BELOW it ---------- */
  .product-modal {
    width: 100vw !important;
    max-width: 100vw !important;
    max-height: 100dvh !important;
    height: auto;
    margin: 0 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }

  .product-modal-grid {
    display: block !important;
    min-height: 0 !important;
  }

  .modal-image-wrap {
    width: 100%;
    height: min(40dvh, 320px) !important;
    min-height: 0 !important;
    position: relative;
  }

  .modal-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    padding: 8px;
  }

  .modal-copy {
    width: 100%;
    padding: 22px 18px 28px !important;
    align-self: auto;
  }

  .modal-copy h2 {
    font-size: clamp(34px, 10vw, 46px) !important;
    line-height: .95;
    margin-bottom: 10px;
  }

  .modal-copy > p:not(.eyebrow,.modal-price) {
    line-height: 1.5;
    font-size: 12px;
  }

  .modal-option {
    display: grid !important;
    gap: 10px !important;
    margin: 18px 0 14px !important;
    position: static !important;
  }

  .modal-option-field,
  .modal-option-field select {
    width: 100% !important;
    max-width: 100% !important;
  }

  .modal-option-field select {
    min-height: 44px !important;
    font-size: 16px;
  }

  .modal-close {
    position: fixed;
    top: max(8px, env(safe-area-inset-top));
    right: 8px;
    z-index: 20;
  }

  /* ---------- Category pages ---------- */
  .category-hero.video-hero {
    min-height: 54svh !important;
  }

  .category-hero.video-hero .category-hero-copy {
    padding: 0 18px !important;
  }

  .category-hero h1 {
    font-size: clamp(44px, 13vw, 64px) !important;
  }

  .category-hero-copy > p:not(.eyebrow) {
    font-size: 12px;
    line-height: 1.55;
  }

  /* ---------- Checkout remains readable and compact ---------- */
  .checkout-page-layout {
    padding-left: 12px !important;
    padding-right: 12px !important;
    gap: 14px !important;
  }

  .checkout-section-card,
  .checkout-page-summary {
    padding: 18px 14px !important;
  }
}

/* Keep the two-column product/category layout even on very narrow phones.
   This intentionally overrides older max-width:420px one-column rules. */
@media (max-width: 420px) {
  .nav-shell {
    grid-template-columns: minmax(40px, 1fr) auto minmax(82px, 1fr);
    padding-left: 8px;
    padding-right: 8px;
  }

  .brand {
    width: 44px;
    height: 44px;
  }

  .cart-button {
    gap: 3px !important;
    font-size: 8px !important;
  }

  .cart-label,
  .cart-live-total {
    font-size: 8px !important;
  }

  .cart-count {
    min-width: 18px;
    height: 18px;
    font-size: 8px;
  }

  .section,
  .category-products {
    padding-left: 10px;
    padding-right: 10px;
  }

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

  .category-card,
  .cat-pj {
    min-height: 185px !important;
  }

  .product-grid {
    gap: 18px 7px !important;
  }

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

  .product-price {
    font-size: 9.5px !important;
  }

  .product-card .add-button,
  .add-button {
    min-height: 38px !important;
    font-size: 7px !important;
  }
}

/* iPhone/Android form focus should not zoom the page. */
@media (max-width: 820px) {
  input,
  select,
  textarea {
    font-size: 16px;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
}
