/* Lightweight premium base. Placeholder visual language — final UI comes later. */
:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --ink: #1a1714;
  --muted: #8a807a;
  --line: #e8e2da;
  --accent: #1a1714;
  --gold: #b08d57;
  --radius: 10px;
  --maxw: 1180px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* ensure the attribute wins over display:flex/grid */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: .2px; margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; color: var(--gold); margin: 0 0 .5rem; }

/* Buttons */
.btn { display: inline-block; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  padding: .7rem 1.4rem; border-radius: var(--radius); font-size: .9rem; cursor: pointer;
  transition: background .2s ease, color .2s ease; }
.btn:hover { background: var(--ink); color: #fff; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-sm { padding: .45rem .9rem; font-size: .8rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,248,245,.92);
  backdrop-filter: saturate(140%) blur(6px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1rem; height: 64px; }
.brand { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: .5px; }
.nav { display: flex; gap: 1.6rem; margin-left: 2rem; font-size: .92rem; }
.nav a:hover { color: var(--gold); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 1.2rem; font-size: .9rem; }
.cart-link { border: 1px solid var(--line); padding: .4rem .9rem; border-radius: var(--radius); }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); }

/* Hero */
.hero { background: linear-gradient(180deg, #f3ede4, #faf8f5); }
.hero-inner { padding: 5rem 20px; text-align: center; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); line-height: 1.02; }
.hero-sub { max-width: 540px; margin: 1rem auto 1.8rem; color: var(--muted); }

/* Sections */
.section { padding: 3.5rem 20px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.6rem; }
.section-head h2 { font-size: 1.8rem; }
.link { font-size: .9rem; color: var(--gold); }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.product-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.product-media { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4/5;
  background: transparent; overflow: visible; }
.product-media img { width: 74%; height: 88%; object-fit: contain; display: block;
  filter: drop-shadow(0 18px 22px rgba(60,40,20,.16)); transition: transform .4s ease; }
.product-card:hover .product-media img { transform: translateY(-6px) scale(1.03); }
.badge { position: absolute; top: 10px; left: 10px; background: var(--ink); color: #fff;
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .55rem; border-radius: 999px; }
.product-body { padding: 1rem; }
.product-body h3 { font-size: 1.15rem; }
.notes { font-size: .82rem; margin: .25rem 0 .8rem; }
.product-foot { display: flex; align-items: center; justify-content: space-between; }
.price { font-weight: 500; }

/* Strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 1.5rem 20px; text-align: center; }
.strip-grid strong { display: block; font-size: .95rem; }
.strip-grid span { font-size: .82rem; }

/* Footer */
.site-footer { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 2.5rem; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 1.5rem; padding-bottom: 2rem; }
.footer-grid h4 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .8rem; color: var(--muted); }
.footer-grid a { display: block; font-size: .9rem; padding: .2rem 0; color: var(--ink); }
.footer-grid a:hover { color: var(--gold); }
.footer-brand { font-size: 1.4rem; margin-bottom: .4rem; }
.footer-bottom { padding: 1.2rem 20px; border-top: 1px solid var(--line); font-size: .82rem; }

/* Reveal animation */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Error page */
.error-page { text-align: center; padding: 5rem 20px; }
.error-page h1 { font-size: 2.4rem; margin: .4rem 0; }

/* Shop toolbar */
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); padding: .4rem .9rem; border-radius: 999px; font-size: .85rem; }
.chip.is-active, .chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.sort-form { display: flex; align-items: center; gap: .5rem; }
.sort-form select { border: 1px solid var(--line); border-radius: var(--radius); padding: .45rem .7rem; font-family: var(--sans); background: #fff; }
.empty-state { padding: 3rem 0; text-align: center; }
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; }
.page { border: 1px solid var(--line); width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--radius); }
.page.is-active, .page:hover { background: var(--ink); color: #fff; }
a.product-media { display: flex; }

/* Product detail */
.breadcrumb { font-size: .82rem; margin-bottom: 1.2rem; }
.breadcrumb a:hover { color: var(--gold); }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.pd-main { aspect-ratio: 3/4; background: radial-gradient(120% 90% at 50% 30%, #fbf8f2 0%, #f1ebe1 70%, #e7ded1 100%); border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pd-main img { width: auto; max-width: 76%; height: 88%; object-fit: contain; display: block; filter: drop-shadow(0 22px 26px rgba(60,40,20,.2)); }
.pd-info h1 { font-size: 2.4rem; }
.pd-short { margin: .4rem 0 1rem; }
.pd-price { font-size: 1.3rem; font-weight: 500; margin-bottom: 1.2rem; }
.pd-buy { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; margin-bottom: 1.5rem; background: var(--surface); }
.pd-buy select { width: 100%; padding: .6rem; border: 1px solid var(--line); border-radius: var(--radius); margin: .35rem 0 .9rem; background: #fff; }
.pd-actions { display: flex; gap: .7rem; }
.pd-actions .btn { flex: 1; }
.pd-notes { margin: 1.2rem 0; }
.pd-notes h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.pd-notes p { margin: .2rem 0; font-size: .92rem; }
.pd-meta { display: flex; gap: 1.2rem; font-size: .85rem; flex-wrap: wrap; }
.pd-description { margin-top: 2.5rem; max-width: 720px; }
.pd-description h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.pd-description h4 { font-family: var(--sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin: 1rem 0 .3rem; }

/* Cart count badge */
.cart-count { display: inline-block; min-width: 18px; height: 18px; line-height: 18px; text-align: center;
  background: var(--gold); color: #fff; border-radius: 999px; font-size: .7rem; padding: 0 5px; }

/* Flash messages */
.flash { padding: .8rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .9rem; }
.flash-success { background: #edf6ee; color: #1f5130; border: 1px solid #cfe6d4; }
.flash-error { background: #fbecec; color: #7a2222; border: 1px solid #f0cccc; }

/* Low stock urgency */
.low-stock { color: #9a3324; font-size: .82rem; font-weight: 500; }
.pd-urgency { margin: -.4rem 0 1rem; }

/* Product attribute chips */
.pd-attrs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.attr-chip { border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; font-size: .78rem; color: var(--muted); }

/* Cart page */
.cart-page h1 { font-size: 2.2rem; margin-bottom: 1.2rem; }
.ship-bar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: 1.5rem; }
.ship-bar p { margin: 0 0 .6rem; font-size: .9rem; }
.ship-track { height: 7px; background: var(--line); border-radius: 999px; overflow: hidden; }
.ship-fill { height: 100%; background: var(--gold); transition: width .4s ease; }
.cart-grid { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
.cart-item { display: grid; grid-template-columns: 76px 1fr auto auto auto; gap: 1rem; align-items: center;
  padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 76px; height: 96px; border-radius: var(--radius); background: linear-gradient(135deg,#efe9e0,#e3d9cc); display: block; }
.cart-item-info h3 { font-size: 1.1rem; }
.cart-qty { display: flex; gap: .4rem; align-items: center; }
.cart-qty input { width: 58px; padding: .4rem; border: 1px solid var(--line); border-radius: var(--radius); }
.cart-line-price { font-weight: 500; white-space: nowrap; }
.cart-remove button { background: none; border: 0; font-size: 1.4rem; color: var(--muted); cursor: pointer; line-height: 1; }
.cart-remove button:hover { color: #9a3324; }
.cart-summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.cart-summary h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.sum-row { display: flex; justify-content: space-between; padding: .4rem 0; font-size: .92rem; }
.sum-total { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .8rem; font-size: 1.1rem; font-weight: 500; }
.cart-checkout { display: block; text-align: center; margin-top: 1rem; }
.cart-continue { display: block; text-align: center; margin-top: .8rem; }

/* Checkout */
.checkout-page h1 { font-size: 2.2rem; margin-bottom: 1.2rem; }
.checkout-grid { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
.checkout-main h3 { font-size: 1.2rem; margin: 1.4rem 0 .7rem; }
.checkout-main h3:first-child { margin-top: 0; }
.field-row { margin-bottom: .8rem; }
.field-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.field-row.three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .8rem; }
.checkout-main label { display: block; font-size: .85rem; color: var(--muted); }
.checkout-main input[type=text], .checkout-main input[type=email], .checkout-main input[type=tel] {
  width: 100%; margin-top: .3rem; padding: .65rem .7rem; border: 1px solid var(--line);
  border-radius: var(--radius); font-family: var(--sans); font-size: .95rem; color: var(--ink); }
.field-err { color: #9a3324; font-size: .78rem; }
.pay-option { display: flex; gap: .7rem; align-items: flex-start; border: 1px solid var(--line);
  border-radius: var(--radius); padding: .8rem; margin-bottom: .6rem; cursor: pointer; font-size: .9rem; color: var(--ink); }
.pay-option input { margin-top: .25rem; }
.pay-option.is-disabled { opacity: .55; cursor: not-allowed; }
.checkout-submit { width: 100%; margin-top: 1.2rem; }
.gst-note { font-size: .78rem; margin-top: .6rem; text-align: center; }
.checkout-summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.checkout-summary h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.sum-item { display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem; padding: .3rem 0; color: var(--muted); }
.sum-discount { color: #1f5130; }
.gst-line { font-size: .8rem; }
.coupon-box { margin-top: 1.5rem; max-width: 420px; }
.coupon-form { display: flex; gap: .5rem; align-items: center; }
.coupon-form input { flex: 1; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: var(--radius); }

/* Success page */
.success-page { text-align: center; max-width: 520px; margin: 0 auto; }
.success-icon { width: 64px; height: 64px; border-radius: 999px; background: #edf6ee; color: #1f5130;
  font-size: 2rem; line-height: 64px; margin: 0 auto 1rem; }
.success-page h1 { font-size: 2.2rem; }
.success-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem; margin: 1.5rem 0; text-align: left; }
.success-note { font-size: .88rem; margin-bottom: 1.5rem; }

/* Hero banner (admin image) */
.hero-banner { display: block; min-height: 360px; background-size: cover; background-position: center; position: relative; }
.hero-banner .hero-inner { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; min-height: 360px; padding-bottom: 2.5rem; }
.hero-banner h1 { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.35); font-size: clamp(2rem,5vw,3.4rem); }

/* Content / legal pages */
.content-page { max-width: 760px; }
.content-page h1 { font-size: 2.2rem; margin-bottom: .4rem; }
.content-page h3 { font-size: 1.2rem; margin: 1.6rem 0 .5rem; }
.content-page ul { padding-left: 1.2rem; }
.content-page li { margin: .35rem 0; }
.content-page a { color: var(--gold); }
.contact-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 1.2rem; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.contact-card h3 { margin: 0 0 .3rem; font-size: 1.1rem; }
.contact-card a { color: var(--gold); }

/* Cookie consent */
.cookie-banner { position: sticky; bottom: 0; z-index: 60; background: var(--ink); color: #f3ede4;
  display: flex; align-items: center; gap: 1rem; justify-content: center; padding: .8rem 1rem; font-size: .85rem; flex-wrap: wrap; }
.cookie-banner a { color: var(--gold); }
.cookie-banner .btn { border-color: #fff; color: #fff; }
.cookie-banner .btn:hover { background: #fff; color: var(--ink); }

.flash-wrap { padding-top: 1rem; }
.acct-link { font-size: .9rem; }

/* Auth pages */
.auth-page { display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 2rem; }
.auth-card h1 { font-size: 1.8rem; margin-bottom: 1rem; }
.auth-card label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .8rem; }
.auth-card input { width: 100%; margin-top: .3rem; padding: .65rem .7rem; border: 1px solid var(--line); border-radius: var(--radius); font-size: .95rem; font-family: var(--sans); }
.auth-submit { width: 100%; margin-top: .6rem; }
.auth-alt { margin-top: 1rem; text-align: center; }
.auth-foot { margin-top: 1.2rem; text-align: center; font-size: .9rem; }
.auth-foot a, .auth-alt a { color: var(--gold); }

/* Account */
.account-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.account-head h1 { font-size: 2rem; }
.account-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.6rem; align-items: start; }
.account-page .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.3rem; margin-bottom: 1.4rem; }
.account-page .panel h3 { font-size: 1.1rem; margin-bottom: .9rem; }
.loyalty-card { background: linear-gradient(135deg, #1a1714, #2c2620); color: #f3ede4; }
.loyalty-card h3 { color: #f3ede4; }
.loyalty-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.tier-badge { color: #fff; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; padding: .3rem .7rem; border-radius: 999px; }
.points-big { font-size: 1.8rem; font-weight: 500; }
.points-big span { font-size: .85rem; color: #ccc3b8; }
.tier-progress { height: 6px; background: rgba(255,255,255,.15); border-radius: 999px; overflow: hidden; margin: .3rem 0; }
.tier-progress div { height: 100%; background: var(--gold); }
.loyalty-card .small, .loyalty-card .muted { color: #cfc8bf; }
.small { font-size: .82rem; }
.acct-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.acct-table th { text-align: left; color: var(--muted); font-weight: 500; font-size: .76rem; text-transform: uppercase; padding: .4rem .5rem; border-bottom: 1px solid var(--line); }
.acct-table td { padding: .55rem .5rem; border-bottom: 1px solid var(--line); }
.addr-row { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.pill-default { background: var(--bg); border: 1px solid var(--line); font-size: .68rem; padding: .1rem .4rem; border-radius: 999px; color: var(--muted); }
.addr-add { margin-top: .8rem; }
.addr-add summary { cursor: pointer; color: var(--gold); font-size: .9rem; }
.addr-form { margin-top: .8rem; display: flex; flex-direction: column; gap: .5rem; }
.addr-form input { padding: .55rem; border: 1px solid var(--line); border-radius: var(--radius); }
.addr-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.addr-form .three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
.ref-link { width: 100%; padding: .5rem; border: 1px dashed var(--border-strong, #ccc); border-radius: var(--radius); font-size: .8rem; background: var(--bg); margin: .5rem 0; }
.profile-form { display: flex; flex-direction: column; gap: .6rem; }
.profile-form input { width: 100%; padding: .5rem; border: 1px solid var(--line); border-radius: var(--radius); }
.points-list { list-style: none; padding: 0; margin: 0; font-size: .85rem; }
.points-list li { display: flex; gap: .6rem; padding: .3rem 0; border-bottom: 1px solid var(--line); }
.points-list .pos { color: #1f5130; font-weight: 500; }
.points-list .neg { color: #9a3324; font-weight: 500; }
.link-danger { color: #9a3324; background: none; border: 0; cursor: pointer; }

/* Quiz */
.quiz-hero .hero-inner { padding: 3rem 20px; }
.quiz-form { max-width: 720px; margin: 0 auto; }
.quiz-q { border: 0; border-top: 1px solid var(--line); padding: 1.4rem 0 .4rem; margin: 0; }
.quiz-q legend { font-family: var(--serif); font-size: 1.3rem; padding: 0; margin-bottom: .9rem; display: flex; align-items: center; gap: .6rem; }
.q-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: var(--ink); color: #fff; font-family: var(--sans); font-size: .8rem; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.quiz-opt { display: flex; align-items: center; gap: .6rem; border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; cursor: pointer; font-size: .92rem; background: var(--surface); }
.quiz-opt input { accent-color: var(--ink); }
.quiz-opt:has(input:checked) { border-color: var(--ink); background: #f3ede4; }
.quiz-submit { margin-top: 1.6rem; }
.quiz-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.6rem; flex-wrap: wrap; }
.quiz-cta-inner h2 { font-size: 1.5rem; }

/* Quiz results */
.match-hero { display: grid; grid-template-columns: 360px 1fr; gap: 2rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem; margin-bottom: 2rem; }
.match-img { display: block; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg,#efe9e0,#e3d9cc); }
.match-img img { width: 100%; height: 100%; object-fit: cover; }
.match-info h2 { font-size: 2rem; }
.why-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0; }
.more-matches { margin: 1.5rem 0 1rem; font-size: 1.3rem; }

/* Points redemption */
.points-form { margin-top: .8rem; max-width: 420px; }
.points-toggle { display: flex; align-items: center; gap: .5rem; font-size: .9rem; cursor: pointer; }
.checkout-signin { margin-bottom: 1rem; font-size: .9rem; }

/* Order detail */
.order-detail-page .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.3rem; }
.od-head { display: flex; align-items: flex-start; justify-content: space-between; margin: .6rem 0 1.4rem; }
.od-head h1 { font-size: 1.8rem; }
.status-track { display: flex; justify-content: space-between; margin: 0 0 1.8rem; position: relative; }
.status-track::before { content: ''; position: absolute; top: 9px; left: 5%; right: 5%; height: 2px; background: var(--line); z-index: 0; }
.track-step { display: flex; flex-direction: column; align-items: center; gap: .4rem; position: relative; z-index: 1; flex: 1; }
.track-step .dot { width: 20px; height: 20px; border-radius: 999px; background: #fff; border: 2px solid var(--line); }
.track-step.done .dot { background: var(--gold); border-color: var(--gold); }
.track-step.current .dot { box-shadow: 0 0 0 4px rgba(176,141,87,.25); }
.track-label { font-size: .75rem; color: var(--muted); }
.track-step.done .track-label { color: var(--ink); }
.od-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.4rem; align-items: start; }
.od-grid .panel h3 { font-size: 1.1rem; margin-bottom: .8rem; }
.od-totals { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.od-field { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }

/* Scent Assistant chat */
.chat-launcher { position: fixed; bottom: 22px; right: 22px; z-index: 80; width: 58px; height: 58px;
  border-radius: 999px; background: var(--ink); color: #fff; border: 0; cursor: pointer; font-size: 1.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.22); display: grid; place-items: center; }
.chat-launcher:hover { background: #000; }
.chat-launcher-icon { color: var(--gold); }
.chat-panel { position: fixed; bottom: 22px; right: 22px; z-index: 81; width: 360px; max-width: calc(100vw - 32px);
  height: 520px; max-height: calc(100vh - 80px); background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 16px 48px rgba(0,0,0,.2); display: flex; flex-direction: column; overflow: hidden; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.1rem; background: var(--ink); color: #fff; }
.chat-head strong { font-family: var(--serif); font-size: 1.1rem; }
.chat-sub { display: block; font-size: .72rem; color: #cfc8bf; }
.chat-close { background: none; border: 0; color: #fff; font-size: 1.4rem; cursor: pointer; line-height: 1; }
.chat-body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .5rem; background: var(--bg); }
.chat-msg { max-width: 85%; padding: .55rem .8rem; border-radius: 14px; font-size: .9rem; line-height: 1.5; }
.chat-msg.bot { background: var(--surface); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--ink); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-options { padding: .7rem; display: flex; flex-wrap: wrap; gap: .4rem; border-top: 1px solid var(--line); background: var(--surface); }
.chat-opt-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .45rem .8rem; font-size: .82rem; cursor: pointer; font-family: var(--sans); color: var(--ink); }
.chat-opt-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.chat-cards { display: flex; flex-direction: column; gap: .5rem; align-self: stretch; }
.chat-card { display: flex; gap: .7rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .5rem; text-decoration: none; color: var(--ink); }
.chat-card:hover { border-color: var(--ink); }
.chat-card img { width: 46px; height: 58px; object-fit: cover; border-radius: 6px; background: #efe9e0; }
.chat-card-info { display: flex; flex-direction: column; }
.chat-card-price { font-size: .82rem; color: var(--muted); }

@media (max-width: 480px) {
  .chat-panel { bottom: 0; right: 0; width: 100vw; max-width: 100vw; height: 80vh; border-radius: 16px 16px 0 0; }
  .chat-launcher { bottom: 16px; right: 16px; }
}

/* Brand logo */
.brand-logo { height: 30px; width: auto; display: block; }
.footer-logo { height: 40px; width: auto; margin-bottom: .6rem; }

/* Buttons — light/ghost/outline variants */
.btn-light { background: #fff; color: var(--ink); border: 1px solid #fff; }
.btn-light:hover { background: transparent; color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* 1. Cinematic hero */
.r-hero { position: relative; min-height: clamp(560px, 92vh, 900px); background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.r-hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,12,.15) 0%, rgba(20,16,12,0) 35%, rgba(20,16,12,.65) 100%); }
.r-hero-inner { position: relative; z-index: 2; padding-bottom: 5rem; color: #fff; }
.eyebrow.light { color: #e6c98f; }
.r-hero h1 { color: #fff; font-size: clamp(3rem, 8vw, 6.5rem); line-height: .98; letter-spacing: -.5px; }
.r-hero-sub { color: rgba(255,255,255,.88); max-width: 440px; margin: 1.2rem 0 1.8rem; font-size: 1.05rem; }
.r-hero-ctas { display: flex; gap: .8rem; flex-wrap: wrap; }
.r-scroll-cue { position: absolute; bottom: 1.6rem; left: 50%; width: 1px; height: 46px; background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.8)); z-index: 2; }

/* 2. Manifesto */
.r-manifesto { padding: 6rem 0; text-align: center; }
.r-statement { font-size: clamp(1.9rem, 4.5vw, 3.4rem); line-height: 1.12; max-width: 900px; margin: .4rem auto 1.4rem; }
.r-statement em { color: var(--gold); font-style: italic; }
.r-manifesto-text { max-width: 560px; margin: 0 auto; color: var(--muted); font-size: 1.05rem; }

/* section heads */
.r-section-head { margin-bottom: 2rem; }
.r-section-head.centered { text-align: center; }
.r-section-head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.r-section-desc { color: var(--muted); max-width: 480px; margin: .6rem auto 0; }
.r-center { text-align: center; margin-top: 2.2rem; }

/* collection cards — transparent so only the cut-out bottle shows */
.r-collection .product-card { border-color: transparent; background: transparent; }
.r-collection .product-body { padding: 1rem .2rem 0; text-align: center; }
.r-collection .product-foot { justify-content: center; gap: 1rem; }
.r-collection .notes { min-height: 2.4em; }

/* 4. Scent families (dark) */
.r-families { background: var(--ink); color: #f3ede4; padding: 6rem 0; }
.r-families h2 { color: #fff; }
.r-family-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 1rem; }
.r-family { border-top: 1px solid rgba(255,255,255,.18); padding-top: 1.2rem; }
.r-family-no { font-family: var(--serif); font-size: 1.1rem; color: var(--gold); }
.r-family h3 { color: #fff; font-size: 1.5rem; margin: .6rem 0 .5rem; }
.r-family p { color: rgba(255,255,255,.65); font-size: .92rem; }

/* 5. Spotlight split */
.r-spotlight { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: clamp(480px, 70vh, 680px); }
.r-spotlight-media { background: #ece9f3; align-self: stretch; display: flex; align-items: center; justify-content: center; }
.r-spotlight-media img { width: 100%; height: 100%; max-height: 680px; object-fit: cover; }
.r-spotlight-text { padding: 4rem clamp(1.5rem, 6vw, 6rem); }
.r-spotlight-text h2 { font-size: clamp(2.4rem, 5vw, 4rem); margin: .3rem 0; }
.r-spotlight-desc { color: var(--muted); font-size: 1.05rem; max-width: 380px; margin-bottom: 1rem; }
.r-spotlight-price { font-size: 1.2rem; margin-bottom: 1.4rem; }

/* 6. Quote */
.r-quote { padding: 6rem 0; text-align: center; background: #f3ece2; }
.r-quote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 3.5vw, 2.4rem); line-height: 1.4; color: var(--ink); max-width: 760px; margin: 0 auto; }

/* 7. Join band */
.r-join { background: var(--ink); color: #f3ede4; padding: 4rem 0; }
.r-join-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.r-join h2 { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.muted-light { color: rgba(255,255,255,.65); }

/* ===== Reference-style landing ===== */
.spark { position: absolute; width: 26px; height: 26px; opacity: .8; z-index: 1; animation: sparkle 4s ease-in-out infinite; }
@keyframes sparkle { 0%,100% { transform: scale(.85) rotate(0); opacity:.55; } 50% { transform: scale(1.1) rotate(20deg); opacity:.9; } }

/* Hero */
.rh-hero { position: relative; overflow: hidden; background: radial-gradient(90% 80% at 78% 18%, #f6ece0 0%, var(--bg) 55%); }
.rh-hero .s1 { top: 12%; left: 46%; width: 20px; }
.rh-hero .s2 { bottom: 16%; left: 8%; width: 30px; }
.rh-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2rem; align-items: center; min-height: clamp(560px, 86vh, 820px); }
.rh-hero-text h1 { font-size: clamp(3rem, 7.5vw, 6rem); line-height: .96; letter-spacing: -1px; }
.rh-hero-text h1 em { font-style: italic; color: var(--gold); }
.rh-lead { max-width: 400px; color: var(--muted); font-size: 1.08rem; margin: 1.2rem 0 1.8rem; }
.rh-hero-ctas { display: flex; gap: .8rem; flex-wrap: wrap; }
.rh-rating { display: flex; align-items: center; gap: .6rem; margin-top: 1.6rem; font-size: .85rem; }
.stars { color: var(--gold); letter-spacing: 2px; }
.rh-hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 460px; }
.rh-glow { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 999px;
  background: radial-gradient(circle, #efe2cf 0%, #f3ece1 45%, rgba(243,236,225,0) 72%); }
.rh-hero-bottle { position: relative; z-index: 2; height: 78%; max-height: 600px; width: auto;
  filter: drop-shadow(0 34px 34px rgba(60,40,20,.26)); animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.rh-sprig { position: absolute; right: 8%; top: -4%; height: 60%; opacity: .8; z-index: 1; }
.rh-hero-visual .s3 { top: 22%; right: 14%; width: 24px; }

/* House — backgroundless AR-SHAKIR feature */
.rh-shakir { position: relative; overflow: hidden; padding: 5rem 0; background: #faf7f1; }
.rh-waves { position: absolute; top: 0; left: 0; width: 100%; opacity: .6; pointer-events: none; }
.rh-shakir-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; min-height: 540px; }
.eyebrow.amber { color: #c8893a; }
.rh-shakir-text h2 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -.5px; margin: .3rem 0 1.1rem; }
.rh-shakir-lead { color: var(--muted); max-width: 400px; margin-bottom: 1.6rem; }
.rh-shakir-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 460px; }
.rh-bigspark { position: absolute; left: 2%; top: 16%; width: 104px; z-index: 1; animation: sparkle 5s ease-in-out infinite; }
.rh-shakir-comp { position: relative; z-index: 2; width: 100%; max-width: 600px; height: auto;
  filter: drop-shadow(0 26px 28px rgba(60,40,20,.16)); }
.rh-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: .55rem; background: #fff;
  border-radius: 14px; padding: .55rem .8rem; box-shadow: 0 14px 34px rgba(60,40,20,.12); }
.chip-top { top: 12%; right: 2%; }
.chip-bot { bottom: 12%; left: 0; }
.chip-ava { width: 32px; height: 32px; border-radius: 999px; background: var(--ink); color: var(--gold);
  display: grid; place-items: center; font-family: var(--serif); font-size: .95rem; }
.chip-avas { display: inline-flex; }
.chip-avas span { width: 28px; height: 28px; border-radius: 999px; background: var(--gold); color: #fff;
  display: grid; place-items: center; font-size: .75rem; border: 2px solid #fff; margin-left: -8px; }
.chip-avas span:first-child { margin-left: 0; background: var(--ink); }
.xsmall { font-size: .72rem; }
.rh-chip .stars { font-size: .8rem; }

/* Spotlight */
.rh-spotlight { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 1rem; padding: 4rem 0; }
.rh-spotlight-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 460px; }
.glow-2 { width: 70%; background: radial-gradient(circle, #efe2cf 0%, rgba(243,236,225,0) 70%); }
.rh-spot-bottle { position: relative; z-index: 2; height: 80%; max-height: 540px; width: auto; filter: drop-shadow(0 30px 30px rgba(60,40,20,.24)); }
.rh-spotlight-visual .s4 { top: 24%; right: 26%; width: 28px; }
.rh-spotlight-text { padding: 0 clamp(1rem, 5vw, 4rem); }
.rh-spotlight-text h2 { font-size: clamp(2.4rem, 5vw, 4rem); margin: .3rem 0; }

/* Values */
.rh-values { padding: 4.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rh-values .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.rh-value { text-align: center; }
.rh-value svg { width: 34px; height: 34px; color: var(--gold); margin-bottom: .8rem; }
.rh-value h4 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: .35rem; }
.rh-value p { color: var(--muted); font-size: .88rem; }

/* Stats */
.rh-stats { background: var(--ink); color: #f3ede4; padding: 3rem 0; }
.rh-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.rh-stat-no { display: block; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); color: var(--gold); }
.rh-stat-label { font-size: .82rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .12em; }

/* Mobile-first responsiveness */
@media (max-width: 860px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pd-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 640px) {
  .nav-toggle { display: flex; order: -1; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); margin: 0; padding: 0; max-height: 0; overflow: hidden; transition: max-height .25s ease; }
  .nav.is-open { max-height: 320px; }
  .nav a { padding: .9rem 20px; border-top: 1px solid var(--line); }
  .strip-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 3.5rem 20px; }
  .contact-cards { grid-template-columns: 1fr; }
  .cart-grid { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .field-row.three { grid-template-columns: 1fr 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .quiz-options { grid-template-columns: 1fr; }
  .match-hero { grid-template-columns: 1fr; }
  .od-grid { grid-template-columns: 1fr; }
  .track-label { font-size: .68rem; }
  .r-family-grid { grid-template-columns: 1fr 1fr; gap: 1.2rem 1.5rem; }
  .r-spotlight { grid-template-columns: 1fr; min-height: 0; }
  .r-spotlight-media img { max-height: 60vh; }
  .r-manifesto, .r-families, .r-quote { padding: 4rem 0; }
  .r-hero { min-height: 88vh; }
  .r-join-inner { flex-direction: column; align-items: flex-start; }
  .rh-hero-grid { grid-template-columns: 1fr; min-height: 0; padding: 2.5rem 0; gap: 1rem; text-align: center; }
  .rh-hero-text { order: 2; }
  .rh-hero-visual { order: 1; min-height: 340px; }
  .rh-lead { margin-left: auto; margin-right: auto; }
  .rh-hero-ctas, .rh-rating { justify-content: center; }
  .rh-spotlight { grid-template-columns: 1fr; }
  .rh-spotlight-visual { min-height: 360px; order: 1; }
  .rh-spotlight-text { order: 2; text-align: center; padding: 1.5rem 0 0; }
  .rh-values .container { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .rh-stats-grid { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  .rh-shakir-grid { grid-template-columns: 1fr; gap: 1.5rem; min-height: 0; text-align: center; }
  .rh-shakir-visual { order: -1; min-height: 380px; }
  .rh-shakir-lead { margin-left: auto; margin-right: auto; }
  .chip-top { right: 0; }
  .chip-bot { left: 0; bottom: 6%; }
  .cart-item { grid-template-columns: 60px 1fr auto; grid-template-areas: "thumb info price" "thumb qty remove"; gap: .6rem 1rem; }
  .cart-thumb { grid-area: thumb; width: 60px; height: 76px; }
  .cart-item-info { grid-area: info; }
  .cart-qty { grid-area: qty; }
  .cart-line-price { grid-area: price; text-align: right; }
  .cart-remove { grid-area: remove; text-align: right; }
}

/* Online payment (Razorpay) pay page */
.pay-page { max-width: 520px; text-align: center; }
.pay-page .success-card { margin: 20px auto; }
.pay-intro { margin: 8px 0 20px; }
.pay-btn { margin-top: 8px; }
.pay-help { margin-top: 12px; font-size: 13px; }

/* ===== Storefront UI polish (2026-07) ===== */
/* Product card: add-to-cart replaces View */
.product-foot .card-add { margin: 0; }
.product-foot .card-add .btn { white-space: nowrap; }

/* Product page: size pills (replaces the select) */
.pd-buy-label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .6rem; }
.size-options { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.1rem; }
.size-pill { position: relative; display: flex; flex-direction: column; gap: .1rem; min-width: 92px; padding: .55rem .85rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.size-pill:hover { border-color: var(--ink); transform: translateY(-1px); }
.size-pill input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.size-pill:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.size-pill-ml { font-weight: 600; font-size: .95rem; color: var(--ink); }
.size-pill-price { font-size: .8rem; color: var(--muted); }
.size-pill.is-disabled { opacity: .45; cursor: not-allowed; }
.size-pill.is-disabled:hover { border-color: var(--line); transform: none; }
.size-pill.is-disabled .size-pill-price { color: #9a3324; }

/* Product page polish */
.product-detail .pd-info h1 { letter-spacing: -.01em; line-height: 1.08; }
.product-detail .pd-price { color: var(--gold); }
.pd-buy { box-shadow: 0 6px 22px rgba(60,40,20,.05); }
.pd-notes h3, .pd-description h3 { position: relative; padding-bottom: .4rem; }
.pd-notes h3::after, .pd-description h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--gold); }
.attr-chip { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; font-size: .8rem; margin: .2rem .3rem .2rem 0; color: var(--muted); }
.pd-attrs { margin-top: 1rem; }

/* Cart: coupon block */
.cart-coupon { margin: 1rem 0 .3rem; }
.cart-coupon .coupon-form { display: flex; gap: .5rem; }
.cart-coupon .coupon-form input { flex: 1; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--sans); }
.cart-coupon .coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .9rem; padding: .55rem .7rem; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); }
.coupon-hint { font-size: .78rem; margin-top: .4rem; }
.sum-discount { color: #2e7d5b; }

/* Signout button (red) */
.btn-signout { font-family: var(--sans); font-size: .8rem; padding: .4rem .95rem; border: 1px solid rgba(154,51,36,.35); border-radius: 999px; color: #9a3324; background: transparent; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.btn-signout:hover { background: #9a3324; color: #fff; border-color: #9a3324; }

/* ===== Homepage: philosophy (alternating), new arrivals, notes (2026-07) ===== */
.r-philosophy { padding: 1rem 0 1.4rem; position: relative; overflow: hidden; }
.r-philosophy > .container { max-width: 1080px; position: relative; z-index: 1; }
.r-phil-waves { position: absolute; z-index: 0; top: 5%; left: -4%; width: 108%; opacity: .28; pointer-events: none; }
.r-phil-row { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-bottom: 0.4rem; }
.r-phil-row:last-child { margin-bottom: 0; }
/* Backgroundless ingredient cutouts float on a subtle hero-style glow, no panel. */
.r-phil-media { position: relative; display: flex; align-items: center; justify-content: center; min-height: 340px; }
.r-phil-media::before { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 82%; aspect-ratio: 1; border-radius: 999px; z-index: 0;
  background: radial-gradient(circle, #efe2cf 0%, #f4ede2 48%, rgba(244,237,226,0) 72%); }
.r-phil-img { position: relative; z-index: 2; max-width: 100%; max-height: 470px; height: auto; object-fit: contain;
  filter: drop-shadow(0 24px 26px rgba(60,40,20,.18)); animation: floaty 8s ease-in-out infinite; }
.r-phil-row:not(.reverse) .r-phil-img { max-height: 390px; } /* Ivory Oud is wider — cap it smaller */
.r-phil-row.reverse .r-phil-img { animation-duration: 9s; }
.r-phil-media .spark { position: absolute; z-index: 3; width: 24px; opacity: .85; }
.r-phil-media .ps1 { top: 8%; right: 13%; }
.r-phil-media .ps2 { bottom: 10%; left: 13%; width: 18px; }
.r-phil-sprig { position: absolute; z-index: 1; width: 108px; opacity: .4; }
.r-phil-sprig.sprig-r { top: 8%; right: 2%; }
.r-phil-sprig.sprig-l { top: 8%; left: 2%; transform: scaleX(-1); }
.r-phil-text { max-width: 440px; }
.r-phil-row:not(.reverse) .r-phil-text { padding-left: 1.4rem; }
.r-phil-row.reverse .r-phil-text { padding-right: 1.4rem; margin-left: auto; }
.r-phil-kicker { display: flex; align-items: center; gap: .6rem; margin-bottom: .7rem; }
.r-phil-no { font-family: var(--serif); font-size: .95rem; color: var(--gold); letter-spacing: .1em; }
.r-phil-rule { display: inline-block; width: 30px; height: 1px; background: rgba(176,141,87,.55); }
.r-phil-kicker .eyebrow { margin: 0; font-size: .68rem; }
.r-phil-text h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.18; letter-spacing: -.01em; margin: 0 0 .7rem; }
.r-phil-text h3 em { color: var(--gold); font-style: italic; }
.r-phil-text p { color: var(--muted); font-size: .92rem; line-height: 1.65; margin: 0; }

/* New arrivals */
.r-new { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* The notes — evergreen three-movement craft (dark band, star/line decor) */
.r-notes { position: relative; overflow: hidden; background: var(--ink); color: #f3ede4; padding: 6rem 0; }
.r-notes h2 { color: #fff; }
.r-section-desc.light { color: rgba(255,255,255,.62); max-width: 620px; }
.r-notes-spark { position: absolute; width: 34px; opacity: .5; }
.r-notes-spark.ns1 { top: 12%; left: 7%; }
.r-notes-spark.ns2 { bottom: 14%; right: 8%; width: 24px; }
.r-notes-flow { display: flex; align-items: flex-start; justify-content: center; gap: 1rem; margin-top: 2.6rem; }
.r-note-step { position: relative; flex: 1 1 0; max-width: 290px; text-align: center; }
.r-note-star { width: 20px; margin: 0 auto .5rem; display: block; opacity: .9; }
.r-note-no { font-family: var(--serif); font-size: 1rem; color: var(--gold); letter-spacing: .12em; }
.r-note-step h3 { color: #fff; font-size: 1.7rem; margin: .35rem 0 .55rem; }
.r-note-step p { color: rgba(255,255,255,.6); font-size: .9rem; margin: 0 auto; max-width: 230px; }
.r-note-link { position: relative; flex: 0 0 64px; height: 1px; margin-top: 3.4rem;
  background: linear-gradient(90deg, transparent, rgba(176,141,87,.65), transparent); }
.r-note-link::after { content: ""; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px;
  transform: translateX(-50%) rotate(45deg); background: var(--gold); }

@media (max-width: 860px) {
  .r-phil-row, .r-phil-row.reverse { grid-template-columns: 1fr; gap: 1.6rem; text-align: center; }
  .r-phil-row.reverse .r-phil-media { order: -1; }
  .r-phil-text, .r-phil-row:not(.reverse) .r-phil-text, .r-phil-row.reverse .r-phil-text { max-width: 480px; margin: 0 auto; padding: 0; }
  .r-phil-kicker { justify-content: center; }
  .r-notes-flow { flex-direction: column; align-items: center; gap: 2rem; }
  .r-note-link { display: none; }
}

/* ===================================================================
   MOBILE POLISH (2026-07) — all inside media queries; desktop untouched.
   Goals: clean layout, clear info, images never oversized.
   =================================================================== */
@media (max-width: 640px) {
  /* Tighter section rhythm */
  .section { padding: 2.4rem 16px; }
  .container { padding: 0 16px; }
  .rh-values, .rh-stats, .r-quote, .r-join { padding-top: 2.8rem; padding-bottom: 2.8rem; }
  .rh-shakir, .rh-spotlight { padding: 2.6rem 0; }
  .r-notes { padding: 3.2rem 0; }

  /* Headings scaled for small screens */
  .rh-hero-text h1 { font-size: 2.5rem; line-height: 1.02; }
  .rh-lead { font-size: .96rem; }
  .r-section-head h2 { font-size: 1.75rem; }
  .r-section-desc { font-size: .9rem; }
  .rh-shakir-text h2, .rh-spotlight-text h2 { font-size: 1.9rem; }
  .pd-info h1 { font-size: 1.8rem; }
  .r-quote p { font-size: 1.35rem; }
  .r-note-step h3 { font-size: 1.4rem; }

  /* Images: never too large on mobile */
  .rh-hero-visual { min-height: 280px; }
  .rh-hero-bottle { height: auto; max-height: 240px; }
  .rh-spotlight-visual { min-height: 280px; }
  .rh-spot-bottle { height: auto; max-height: 280px; }
  .rh-shakir-visual { min-height: 260px; }
  .rh-shakir-comp { max-width: 320px; }
  .pd-main img { max-height: 340px; }

  /* Philosophy: compact, small floating images */
  .r-philosophy { padding: 1.6rem 0; }
  .r-phil-row, .r-phil-row.reverse { gap: .3rem; margin-bottom: 1.4rem; }
  .r-phil-media { min-height: 0; }
  .r-phil-img, .r-phil-row:not(.reverse) .r-phil-img { max-height: 210px; }
  .r-phil-media::before { width: 60%; }
  .r-phil-waves { display: none; }
  .r-phil-sprig { width: 60px; }
  .r-phil-text h3 { font-size: 1.3rem; }
  .r-phil-text p { font-size: .92rem; }

  /* Product cards: stack price + full-width add-to-cart for clarity */
  .product-body { padding: .85rem; }
  .product-body h3 { font-size: 1.02rem; }
  .notes { font-size: .78rem; }
  .product-foot { flex-direction: column; align-items: stretch; gap: .5rem; }
  .product-foot .price { text-align: center; }
  .product-foot .card-add, .product-foot .card-add .btn, .product-foot .btn { width: 100%; }

  /* Shop toolbar + product page */
  .shop-toolbar { flex-direction: column; align-items: stretch; gap: .7rem; }
  .sort-form { justify-content: space-between; }
  .pd-price { font-size: 1.15rem; }

  /* Forms: stack the paired fields */
  .field-row.two { grid-template-columns: 1fr; }

  /* Notes flow already stacks (860 block); keep the connector hidden */
  .r-note-link { display: none; }

  /* Footer readable */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
}

@media (max-width: 430px) {
  .product-grid { gap: .8rem; }
  .rh-hero-text h1 { font-size: 2.15rem; }
  .r-note-step { max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .rh-values .container { grid-template-columns: 1fr; gap: 1.3rem; }
}

/* ===== Mobile fixes round 2 (from device screenshots) — desktop untouched ===== */
@media (max-width: 640px) {
  /* Header: keep account/cart on one line, not wrapping */
  .header-inner { gap: .55rem; }
  .header-actions { gap: .7rem; font-size: .82rem; }
  .acct-link { white-space: nowrap; }
  .cart-link { white-space: nowrap; padding: .35rem .7rem; }

  /* Loyalty card: restore the intended dark card so the points balance is
     readable (light text was invisible on the white panel). Mobile-scoped. */
  .account-page .panel.loyalty-card { background: linear-gradient(135deg, #1a1714, #2c2620); border-color: transparent; }
  .points-big { font-size: 1.5rem; }
  .account-head h1 { font-size: 1.7rem; }

  /* Review chips: smaller so they don't crowd the bottle composition */
  .rh-chip { padding: .4rem .55rem; gap: .4rem; }
  .rh-chip .small { font-size: .7rem; }
  .rh-chip .xsmall { font-size: .62rem; }
  .rh-chip .stars { font-size: .72rem; }
  .chip-ava { width: 26px; height: 26px; }
  .chip-avas span { width: 22px; height: 22px; }
}

/* ===== Account page mobile overflow fix — desktop untouched ===== */
@media (max-width: 640px) {
  /* Let grid columns shrink so a wide table can't push the page sideways */
  .account-grid, .account-main, .account-side { min-width: 0; }
  .account-main > .panel, .account-side > .panel { max-width: 100%; overflow: hidden; }

  /* Compact orders table; hide the redundant "View" (order no. is already a link) */
  .acct-table { font-size: .78rem; }
  .acct-table th, .acct-table td { padding: .45rem .3rem; }
  .acct-table th:last-child, .acct-table td:last-child { display: none; }

  /* Inputs shrink within their grids; stack the address sub-rows */
  .ref-link, .addr-form input, .profile-form input { min-width: 0; }
  .addr-form .two { grid-template-columns: 1fr; }
  .addr-form .three { grid-template-columns: 1fr 1fr; }
}
