@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --green-deep: #2f4a3c;
  --green: #3f6650;
  --green-light: #e8efe9;
  --gold: #b98a3d;
  --cream: #faf7f2;
  --ink: #262420;
  --muted: #6b675f;
  --border: #e5e0d8;
  --error: #a3312a;
  --radius: 10px;
  --royal-black: #1b1712;
  --royal-black-2: #2a2119;
  --maroon: #5c1a2b;
  --maroon-deep: #3a0f1c;
  --gold-bright: #d4af37;
  --gold-pale: #f0d999;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
}
h1, h2, h3, .brand {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--green-deep);
  margin: 0 0 0.5em;
}
a { color: var(--green-deep); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  background-color: var(--royal-black);
  background-image: linear-gradient(135deg, var(--royal-black) 0%, var(--maroon-deep) 100%);
  border-bottom: 2px solid var(--gold-bright);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  position: sticky; top: 0; z-index: 50;
  transition: background-color .25s ease, background-image .25s ease, border-color .25s ease, box-shadow .25s ease;
}
/* Homepage only: header floats transparent over the hero video, then solidifies on scroll */
body.has-hero-header .site-header {
  position: absolute;
  background-color: transparent;
  background-image: none;
  border-bottom-color: transparent;
  box-shadow: none;
}
body.has-hero-header .site-header.scrolled {
  position: fixed;
  background-color: var(--royal-black);
  background-image: linear-gradient(135deg, var(--royal-black) 0%, var(--maroon-deep) 100%);
  border-bottom-color: var(--gold-bright);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; }
.brand { font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; }
.brand span { color: var(--gold); }
.brand-logo { height: 70px; width: auto; display: block; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-weight: 500; color: #ecdfc8; position: relative; }
.main-nav a.active, .main-nav a:hover { color: var(--gold-bright); }
.main-nav a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--gold-bright); }
.cart-link { position: relative; }
.cart-badge { background: var(--gold); color: #fff; font-size: 0.7rem; font-weight: 700; border-radius: 999px; padding: 1px 7px; margin-left: 6px; }
.lang-switch select { border: 1px solid var(--gold-bright); border-radius: 6px; padding: 5px 8px; font-family: inherit; font-size: 0.82rem; font-weight: 600; color: var(--gold-pale); background: var(--royal-black-2); cursor: pointer; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--gold-bright); }

/* Flash messages */
.flash { padding: 12px 0; text-align: center; font-weight: 500; }
.flash .container { padding: 10px 24px; border-radius: var(--radius); }
.flash.success { background: var(--green-light); color: var(--green-deep); }
.flash.error { background: #f7e3e1; color: var(--error); }

/* Buttons */
.btn { display: inline-block; padding: 12px 26px; border-radius: 999px; font-weight: 600; cursor: pointer; border: none; font-size: 0.95rem; transition: transform .15s ease, background .15s ease; }
.btn-primary { background: var(--green-deep); color: #fff; }
.btn-primary:hover { background: var(--green); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--green-deep); border: 1.5px solid var(--green-deep); }
.btn-outline:hover { background: var(--green-deep); color: #fff; }
.btn-small { padding: 8px 16px; font-size: 0.85rem; }
.btn-danger { background: transparent; color: var(--error); border: 1.5px solid var(--error); }
.btn-danger:hover { background: var(--error); color: #fff; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--royal-black) 0%, var(--maroon-deep) 100%); color: #fff; padding: 90px 0; text-align: left; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-slider { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.active { opacity: 1; }
.hero-slider-dots { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.hero-dot { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.75); background: rgba(255,255,255,0.4); cursor: pointer; transition: background .2s ease, transform .2s ease; }
.hero-dot.active { background: #fff; transform: scale(1.2); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(27,23,18,0.6), rgba(58,15,28,0.5)); z-index: 1; }
.hero-content { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: 2.6rem; margin-bottom: 0.3em; }
.hero p { max-width: 560px; margin: 0 0 2em; font-size: 1.1rem; color: #e8efe9; }
.hero-eyebrow { font-family: 'Playfair Display', Georgia, serif; font-style: italic; color: var(--gold); text-transform: none; letter-spacing: 0.02em; margin-bottom: 0.4em; font-size: 1rem; }
.hero-ctas { display: flex; gap: 14px; justify-content: flex-start; flex-wrap: wrap; }
.hero-ctas .btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.hero-ctas .btn-outline:hover { background: rgba(255,255,255,0.12); }

.narrow-copy { max-width: 720px; margin: 0 auto; text-align: center; }

.story-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.story-copy { text-align: center; }
.story-copy p { text-align: center; }
.story-portrait-wrap { display: flex; justify-content: center; }
.story-portrait { max-width: 380px; width: 100%; padding: 10px; background: #fff; border: 3px solid var(--gold); border-radius: var(--radius); box-shadow: 0 16px 32px rgba(0,0,0,0.12); }
.story-portrait img { width: 100%; border-radius: 6px; aspect-ratio: 4 / 4.7; object-fit: cover; object-position: center bottom; }
.narrow-copy .lede { font-size: 1.2rem; line-height: 1.7; color: var(--ink); }
.narrow-copy h2 { margin-bottom: 0.4em; }
.narrow-copy p { color: var(--muted); margin-bottom: 1.4em; font-size: 1.02rem; line-height: 1.7; }

.collections-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.collection-intro-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 44px 40px 40px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  color: var(--ink);
  border: 2px solid var(--gold-bright);
  box-shadow: 0 18px 40px rgba(27,23,18,0.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.collection-intro-card:hover { transform: translateY(-5px); box-shadow: 0 26px 52px rgba(27,23,18,0.14); }
.collection-intro-card--classic,
.collection-intro-card--wellbeing { background: var(--cream); }
.collection-intro-num {
  position: absolute;
  top: 26px;
  right: 30px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 3.4rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212,175,55,0.5);
  text-stroke: 1px rgba(212,175,55,0.5);
  user-select: none;
}
.collection-intro-card h3 { color: var(--ink); font-size: 1.6rem; margin: 0; position: relative; z-index: 1; }
.collection-intro-rule { width: 42px; height: 2px; background: var(--gold-bright); margin: 16px 0; }
.collection-intro-card p { color: var(--muted); margin: 0 0 26px; max-width: 320px; font-size: 0.95rem; position: relative; z-index: 1; }
.collection-intro-link { display: inline-flex; align-items: center; gap: 8px; align-self: center; color: var(--gold-bright); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 1px solid rgba(212,175,55,0.4); padding-bottom: 4px; transition: gap .2s ease, border-color .2s ease, color .2s ease; }
.collection-intro-link:hover { color: var(--maroon); gap: 12px; border-color: var(--maroon); }
.collection-intro-link .arrow { transition: transform .2s ease; }
.collection-intro-link:hover .arrow { transform: translateX(3px); }

/* Homepage "Trust Features" row (Admin -> Site Content -> Homepage -> Trust
 * Features) — an admin-managed list (table: trust_features, see
 * get_trust_features() in functions.php), each with its own icon, optional
 * photo, and "Display on website" checkbox; an admin can add or remove as
 * many as they like. --tf-cols (set inline per-render in index.php) caps
 * desktop at min(count, 6) columns per row, sized smaller than the original
 * 3-column design (2026-09-11) so up to 6 fit on one line; fewer than 6
 * visible share the row evenly instead of leaving gaps, more than 6 wrap to
 * additional rows. */
.trust-features { display: grid; grid-template-columns: repeat(var(--tf-cols, 6), minmax(0, 1fr)); gap: 18px; text-align: center; }
.trust-feature { display: flex; flex-direction: column; align-items: center; }
.trust-feature-icon { width: 24px; height: 24px; color: var(--gold-bright); margin-bottom: 10px; }
.trust-feature-icon svg { width: 100%; height: 100%; }
.trust-feature h3 { margin: 0 0 6px; font-family: 'Playfair Display', Georgia, serif; font-size: 0.78rem; }
.trust-feature p { margin: 0; color: var(--muted); font-size: 0.68rem; line-height: 1.4; overflow-wrap: break-word; }
.trust-feature-photo { display: block; margin: 14px auto 0; width: 70%; height: 70%; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; border: 1px solid var(--gold-pale); box-shadow: 0 8px 20px rgba(27,23,18,0.08); }
.trust-feature-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 1000px) {
  .trust-features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .trust-feature-icon { width: 32px; height: 32px; margin-bottom: 14px; }
  .trust-feature h3 { font-size: 0.95rem; }
  .trust-feature p { font-size: 0.82rem; }
}
/* Below 800px: one feature shown at a time (a small swipeable carousel) instead
 * of stacking every card vertically — tap a dot, or swipe left/right, to move
 * between them. JS in js/main.js toggles the ".active" card and dot; this CSS
 * only needs to hide the inactive cards and lay out the dot row. */
.trust-features-dots { display: none; }
@media (max-width: 800px) {
  .trust-features { grid-template-columns: 1fr; gap: 0; position: relative; touch-action: pan-y; }
  .trust-feature { display: none; }
  .trust-feature.active { display: flex; animation: trustFeatureFade .25s ease; }
  .trust-feature-icon { width: 38px; height: 38px; }
  .trust-feature h3 { font-size: 1.1rem; }
  .trust-feature p { font-size: 0.9rem; }
  .trust-features-dots { display: flex; justify-content: center; align-items: center; gap: 9px; margin-top: 28px; }
  .trust-features-dot { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 1.5px solid var(--gold); background: transparent; cursor: pointer; transition: background .2s ease, transform .2s ease; }
  .trust-features-dot.active { background: var(--gold); transform: scale(1.2); }
}
@keyframes trustFeatureFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ritual-list { list-style: none; padding: 0; margin: 0 0 24px; }
.ritual-list li { padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--ink); }
.ritual-list li:last-child { border-bottom: none; }
.ritual-list strong { color: var(--green-deep); }
.story-prep { font-style: italic; color: var(--muted); text-align: center; }

/* Legal / policy pages (Terms, Privacy, Returns, Shipping, Cookies, Subscription) */
.policy-page { max-width: 760px; margin: 0 auto; padding: 48px 0 64px; }
.policy-page h1 { text-align: center; margin-bottom: 1.4em; }
.policy-content h2 { color: var(--green-deep); font-size: 1.2rem; margin: 1.8em 0 0.6em; }
.policy-content h2:first-child { margin-top: 0; }
.policy-content p { color: var(--ink); margin: 0 0 1.1em; line-height: 1.75; font-size: 0.98rem; }
.policy-content ul { margin: 0 0 1.1em; padding-left: 1.25em; }
.policy-content li { color: var(--ink); line-height: 1.7; margin-bottom: 0.5em; font-size: 0.98rem; }

/* Checkout "our policies" popup — a plain, dependency-free modal. */
.policy-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(27,23,18,0.55); z-index: 200; align-items: center; justify-content: center; padding: 20px; }
.policy-modal-overlay.open { display: flex; }
.policy-modal { background: #fff; border-radius: var(--radius); max-width: 440px; width: 100%; max-height: 80vh; overflow-y: auto; padding: 28px; position: relative; box-shadow: 0 24px 60px rgba(0,0,0,0.3); }
.policy-modal h3 { margin: 0 0 0.3em; }
.policy-modal .policy-modal-intro { color: var(--muted); font-size: 0.92rem; margin: 0 0 18px; }
.policy-modal-list { list-style: none; margin: 0; padding: 0; }
.policy-modal-list li { border-bottom: 1px solid var(--border); }
.policy-modal-list li:last-child { border-bottom: none; }
.policy-modal-list a { display: block; padding: 12px 2px; color: var(--ink); font-weight: 500; }
.policy-modal-list a:hover { color: var(--gold); }
.policy-modal-close { position: absolute; top: 14px; right: 14px; background: none; border: none; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; }
.policy-modal-close:hover { color: var(--ink); }
.checkout-agree-row { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 18px; font-size: 0.88rem; color: var(--muted); }
.checkout-agree-row input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }
.checkout-agree-row a, .checkout-agree-row button.link-btn { color: var(--gold); font-weight: 600; background: none; border: none; padding: 0; font-size: inherit; cursor: pointer; text-decoration: underline; }

/* Shop page "quick add" size popup — reuses .policy-modal-overlay/.policy-modal
   for the same look, just with a list of variant buttons instead of links. */
.variant-modal .policy-modal-intro { margin-bottom: 14px; }
.variant-options { display: flex; flex-direction: column; gap: 10px; }
.variant-option-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  text-align: left;
  transition: border-color .15s ease, background .15s ease;
}
.variant-option-btn:hover:not(:disabled) { border-color: var(--gold); background: var(--cream); }
.variant-option-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.variant-option-label { font-weight: 600; color: var(--ink); }
.variant-option-stock { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 2px; font-weight: 400; }
.variant-option-price { white-space: nowrap; font-weight: 600; color: var(--ink); }
.variant-option-price .price-original { text-decoration: line-through; color: var(--muted); margin-right: 6px; font-size: 0.85em; font-weight: 400; }
.variant-option-price .price-discounted { color: var(--maroon); font-weight: 700; }

/* Quiet confirmation toast after an AJAX "quick add" — no page reload. */
.cart-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--ink);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 14px 32px rgba(0,0,0,0.28);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  max-width: calc(100vw - 40px);
}
.cart-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.cart-toast.error { background: #8a2a2a; }

/* Sections */
section { padding: 20px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-head::after { content: '\2756'; display: block; color: var(--gold-bright); font-size: 1rem; margin-top: 14px; }
.section-head p { color: var(--muted); }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px; }
.product-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s ease, transform .15s ease; }
.product-card:hover { box-shadow: 0 12px 24px rgba(47,74,60,0.1); transform: translateY(-3px); }
.product-thumb { aspect-ratio: 1 / 1; background: var(--green-light); display: block; position: relative; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s ease; }
.product-badge-vertical {
  position: absolute;
  top: 0;
  left: 14px;
  z-index: 2;
  width: 30px;
  padding: 10px 0 15px;
  background: var(--maroon);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-orientation: upright;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), 50% 100%, 0 calc(100% - 15px));
  filter: drop-shadow(1px 3px 4px rgba(0,0,0,0.25));
}
.product-badge-vertical::before {
  content: "";
  position: absolute;
  top: -9px;
  right: -9px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 9px 0 0;
  border-color: var(--maroon-deep) transparent transparent transparent;
}

/* Horizontal badge — the flat corner tag: a clean pill flush to the card's
   left edge, rounded on the outer end only. No pointed/notched edge, unlike
   the vertical ribbon above. */
.product-badge-horizontal {
  position: absolute;
  top: 14px;
  left: 0;
  z-index: 2;
  padding: 6px 16px 6px 14px;
  background: var(--maroon);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 0 999px 999px 0;
  filter: drop-shadow(1px 3px 4px rgba(0,0,0,0.2));
}
.thumb-hover { opacity: 0; }
/* Only fade the main photo out on hover when there's a real hover photo
   underneath to swap to — otherwise the card would just go blank on
   hover for any product that never had a second photo uploaded. */
.product-card.has-hover-img:hover .thumb-hover { opacity: 1; }
.product-card.has-hover-img:hover .thumb-main { opacity: 0; }
.product-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-body h3 { font-size: 1.05rem; margin: 0; }
.product-body .desc { color: var(--muted); font-size: 0.88rem; flex: 1; }
.product-price { font-weight: 700; color: var(--green-deep); font-size: 1.05rem; margin: 4px 0; }
.price-original { color: var(--muted); text-decoration: line-through; font-weight: 400; font-size: 0.85em; margin-right: 6px; }
.price-discounted { color: var(--maroon); font-weight: 700; }

.product-body form { margin-top: auto; }
.card-tagline { font-family: 'Playfair Display', Georgia, serif; font-style: italic; color: var(--gold); font-size: 0.85rem; margin: -4px 0 2px; }

/* Homepage "Our Bestsellers" — richer, more "royal" dressing on top of
 * the same shared .product-grid/.product-card markup used on shop and
 * collection pages. Everything here is scoped under .bestseller-section
 * so the shop/product listings elsewhere on the site are untouched. */
.bestseller-section { padding: 20px 0; border-top: 1px solid var(--gold-pale); border-bottom: 1px solid var(--gold-pale); background: var(--cream); }
.bestseller-crown-eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.76rem; font-weight: 700; color: var(--gold); margin: 0 0 10px; }
.bestseller-section .section-head { max-width: 640px; }
.bestseller-section .section-head h2 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.9rem, 2.6vw, 2.3rem); color: var(--maroon-deep); }
.bestseller-section .section-head::after { content: '\2756'; color: var(--gold-bright); font-size: 1.1rem; }
.bestseller-section .product-grid { gap: 36px; }
.bestseller-section .product-card {
  background: #fff;
  border: 1px solid var(--gold-pale);
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(27,23,18,0.07);
  transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}
.bestseller-section .product-card:hover {
  border-color: var(--gold-bright);
  box-shadow: 0 22px 40px rgba(185,138,61,0.24);
  transform: translateY(-5px);
}
.bestseller-section .product-thumb { border-radius: 6px 6px 0 0; border-bottom: 1px solid var(--gold-pale); }
.bestseller-section .product-body { padding: 22px 20px 24px; gap: 8px; }
.bestseller-section .product-body h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.15rem; color: var(--maroon-deep); }
.bestseller-section .product-body h3 a { color: inherit; }
.bestseller-section .card-tagline { position: relative; padding-left: 14px; color: var(--gold); }
.bestseller-section .card-tagline::before { content: '\2726'; position: absolute; left: 0; top: 1px; font-size: 0.7rem; color: var(--gold-bright); }
.bestseller-section .product-price { color: var(--maroon-deep); font-family: 'Playfair Display', Georgia, serif; font-size: 1.15rem; }
.bestseller-section .price-discounted { color: var(--maroon); }
.bestseller-section .btn-outline.btn-small {
  background: var(--gold-bright);
  color: var(--royal-black);
  border-color: var(--gold-bright);
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 10px 18px;
}
.bestseller-section .btn-outline.btn-small:hover { background: var(--maroon-deep); border-color: var(--maroon-deep); color: #fff; }
.bestseller-section > .container > div[style] a.btn-outline {
  border: 1.5px solid var(--gold);
  color: var(--maroon-deep);
}
.bestseller-section > .container > div[style] a.btn-outline:hover { background: var(--maroon-deep); border-color: var(--maroon-deep); color: #fff; }

.collection-block { margin-bottom: 56px; }
.collection-block:last-child { margin-bottom: 0; }
.collection-heading { font-size: 1.4rem; margin-bottom: 4px; }
.collection-sub { color: var(--muted); margin-bottom: 24px; }

/* Homepage "Our Story" teaser — a full-bleed two-column band (breaks out
 * to the full browser width the same way .events-fullbleed does): a deep
 * green text panel on the left (eyebrow, headline, a short rule, body
 * copy, a solid gold CTA button) and the founder photo filling the right
 * side edge to edge. */
.story-teaser {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  display: grid;
  grid-template-columns: minmax(300px, 32%) 1fr;
  /* A definite height (not min-height) so the grid row doesn't stretch to
     match the photo's own tall intrinsic aspect ratio — this is what kept
     making the whole band far taller than intended. Made substantially
     bigger per request — the growth is in the section/image size itself,
     not in extra padding around the text. */
  height: clamp(480px, 48vw, 680px);
}
.story-teaser-text {
  background: #142b1f;
  color: #e9e4d8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px clamp(24px, 4vw, 56px);
  overflow: hidden;
}
.story-teaser-eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.7rem; font-weight: 700; color: var(--gold-bright); margin: 0 0 10px; }
.story-teaser-headline { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.4rem, 2.1vw, 1.8rem); line-height: 1.25; color: #fff; margin: 0 0 14px; }
.story-teaser-rule { display: block; width: 40px; height: 1px; background: rgba(233,228,216,0.35); margin-bottom: 14px; }
.story-teaser-body { font-size: 0.82rem; line-height: 1.55; color: #cfc9ba; margin: 0 0 18px; max-width: 340px; }
.story-teaser-cta { align-self: flex-start; background: var(--gold-bright); color: #1b1712; text-transform: uppercase; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; padding: 10px 22px; border-radius: 2px; }
.story-teaser-cta:hover { background: var(--gold-pale); }
.story-teaser-photo { overflow: hidden; height: 100%; }
.story-teaser-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }

@media (max-width: 800px) {
  .story-teaser { grid-template-columns: 1fr; height: auto; }
  .story-teaser-photo { height: 440px; order: -1; }
  .story-teaser-text { padding: 32px 24px; }
  .story-teaser-body { max-width: none; }
}

/* Product detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-detail .product-thumb { border-radius: var(--radius); }
.product-media { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.product-gallery-nav { display: flex; align-items: center; gap: 8px; }
.product-gallery { display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 4px; flex: 1; min-width: 0; }
.product-gallery-icon { flex: 0 0 auto; width: 64px; height: 64px; padding: 0; border: 2px solid var(--border); border-radius: 8px; overflow: hidden; background: none; cursor: pointer; transition: border-color .2s ease; }
.product-gallery-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-gallery-icon.active, .product-gallery-icon:hover { border-color: var(--gold); }
.product-gallery-arrow { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--green-deep); font-size: 1.2rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border-color .2s ease, color .2s ease; }
.product-gallery-arrow:hover { border-color: var(--gold); color: var(--gold); }
.product-detail h1 { font-size: 2rem; }
.product-detail .product-price { font-size: 1.4rem; margin: 12px 0 20px; }
.qty-row { display: flex; align-items: center; gap: 14px; margin: 20px 0; }
.qty-row input { width: 70px; padding: 8px; border: 1px solid var(--border); border-radius: 6px; text-align: center; }
.stock-note { color: var(--muted); font-size: 0.85rem; margin-top: 10px; }

.product-tagline { font-family: 'Playfair Display', Georgia, serif; font-style: italic; color: var(--gold); font-size: 1.1rem; margin: -8px 0 12px; }
.product-flavour { font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; font-size: 0.78rem; color: var(--green); margin-bottom: 14px; }
.product-meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 14px; }
.product-ingredients { font-size: 0.92rem; margin: 16px 0; }
.product-benefits, .product-brewing { margin: 22px 0; }
.product-benefits h3, .product-brewing h3 { font-size: 1rem; margin-bottom: 10px; }
.product-benefits ul { margin: 0; padding-left: 20px; }
.product-benefits li { margin-bottom: 6px; color: var(--ink); }
.product-brewing { background: var(--green-light); border-radius: var(--radius); padding: 16px 20px; }
.product-brewing h3 { color: var(--green-deep); }
.product-regulatory { background: #fbf3e6; border: 1px solid #e8d3a8; border-radius: var(--radius); padding: 14px 18px; margin: 18px 0; font-size: 0.85rem; color: #6b4f1d; }
.product-quote { border-left: 3px solid var(--gold); border-right: 3px solid var(--gold); padding: 16px 20px; margin: 18px 0 0; font-family: 'Playfair Display', Georgia, serif; font-style: italic; color: var(--green-deep); font-size: 1.02rem; background: var(--cream); border-radius: var(--radius); text-align: center; }

.variant-picker { display: flex; gap: 12px; margin: 18px 0; flex-wrap: wrap; }
.variant-option { position: relative; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 18px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 100px; transition: border-color .15s ease, background .15s ease; }
.variant-option input { position: absolute; opacity: 0; }
.variant-option .variant-label { font-weight: 600; }
.variant-option .variant-price { color: var(--muted); font-size: 0.9rem; }
.variant-option:has(input:checked) { border-color: var(--gold); background: var(--green-light); }
.variant-option:has(input:checked) .variant-price { color: var(--green-deep); }

/* Cart */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 32px; }
.cart-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; padding: 10px 8px; border-bottom: 2px solid var(--border); }
.cart-table td { padding: 16px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-product { display: flex; align-items: center; gap: 14px; }
.cart-product img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cart-variant-label { color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.cart-table input[type=number] { width: 60px; padding: 6px; border: 1px solid var(--border); border-radius: 6px; text-align: center; }
.cart-summary { max-width: 340px; margin-left: auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.cart-summary .row { display: flex; justify-content: space-between; margin-bottom: 10px; }
.cart-summary .total { font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }

/* Forms */
.form-card { max-width: 460px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; }
.form-card h1 { text-align: center; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-row input, .form-row textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 0.95rem; }
.form-row textarea { min-height: 140px; resize: vertical; }
.form-foot { text-align: center; margin-top: 16px; font-size: 0.9rem; color: var(--muted); }
.field-error { color: var(--error); font-size: 0.85rem; margin-top: 4px; }
.checkout-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Account dashboard */
.account-grid { display: grid; grid-template-columns: 260px 1fr; gap: 40px; }
.account-nav { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; height: fit-content; }
.account-nav h3 { font-size: 1rem; }
.account-nav p { color: var(--muted); font-size: 0.9rem; }
.order-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 14px; }
.order-item .row { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.88rem; margin-bottom: 6px; }
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: var(--green-light); color: var(--green-deep); text-transform: capitalize; }
.status-badge.paid, .status-badge.delivered { background: var(--green-light); color: var(--green-deep); }
.status-badge.processing, .status-badge.shipped { background: #fbf3e6; color: var(--gold); }
.status-badge.cancelled { background: #f7e3e1; color: var(--error); }

.account-subnav { display: flex; flex-direction: column; gap: 4px; margin: 14px 0; padding-top: 14px; border-top: 1px solid var(--border); }
.account-subnav a { padding: 7px 10px; border-radius: 6px; font-weight: 600; font-size: 0.88rem; color: var(--ink); }
.account-subnav a:hover { background: var(--green-light); }
.account-subnav a.active { background: var(--green-deep); color: #fff; }

.order-progress { display: flex; margin: 16px 0; }
.order-progress-step { flex: 1; position: relative; text-align: center; font-size: 0.66rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); }
.order-progress-step .label { display: block; }
.order-progress-step::before { content: ''; position: absolute; top: 10px; left: -50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.order-progress-step:first-child::before { display: none; }
.order-progress-step .dot { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin: 0 auto 6px; border-radius: 50%; background: #fff; border: 2px solid var(--border); font-size: 0.7rem; color: #fff; position: relative; z-index: 1; }
.order-progress-step.done::before { background: var(--green-deep); }
.order-progress-step.done .dot { background: var(--green-deep); border-color: var(--green-deep); }
.order-progress-step.current .dot { background: var(--gold); border-color: var(--gold); }
.order-progress-step.done .label, .order-progress-step.current .label { color: var(--ink); }
.order-cancelled-note { color: var(--error); font-weight: 600; font-size: 0.88rem; margin: 12px 0; }
.order-ship-to { color: var(--muted); font-size: 0.82rem; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h3 { margin-top: 24px; font-size: 1rem; }
.contact-info p { color: var(--muted); }

/* Footer */
.site-footer {
  background-color: var(--royal-black);
  background-image: linear-gradient(135deg, var(--royal-black) 0%, var(--maroon-deep) 100%);
  color: #d9c9a8;
  margin-top: 48px;
  border-top: 2px solid var(--gold-bright);
}
.footer-bottom {
  padding: 18px 24px;
}

/* --- Footer row: two groups side by side, group1 (brand) at 20% and
 * group2 (follow us / legal / copyright) at 80%. Real grid tracks (not
 * auto-sized), so neither side can grow past its share and overlap the
 * other. Content inside EACH group is centered within that group's own
 * column, independent of the other group. */
.footer-row {
  display: grid;
  grid-template-columns: 20% 80%;
  align-items: start;
  gap: 16px;
  width: 100%;
}

/* --- Group 1: logo + wordmark + tagline. The lines are centered relative
 * to each other (align-items: center), but the whole block itself is
 * pinned to the left of the column (justify-self: start) rather than
 * being centered within the full column width — so it sits flush left,
 * lined up with the main header logo, while its own content stays
 * center-aligned. */
.footer-group-brand {
  grid-column: 1;
  justify-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}
.footer-logo { height: 44px; width: auto; max-width: 100%; display: block; margin-bottom: 4px; }
.site-footer .brand { color: #fff; font-size: 1.1rem; margin-bottom: 2px; }
.site-footer .brand span { color: var(--gold-bright); }
.footer-tagline { font-family: 'Playfair Display', Georgia, serif; font-style: italic; color: var(--gold-bright); margin: 0; font-size: 0.86rem; }

/* --- Group 2: Follow Us + icons, legal links, copyright — all centered
 * in its column */
.footer-group-info {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
  gap: 6px;
}
.footer-bottom-follow { color: var(--gold-pale); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-social-icons { display: flex; gap: 8px; }
.footer-social-icons a { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--gold-bright); color: var(--gold-pale); transition: background .15s ease, color .15s ease; }
.footer-social-icons a:hover { background: var(--gold-bright); color: var(--royal-black); }
.footer-social-icons svg { width: 13px; height: 13px; fill: currentColor; }
.footer-bottom-legal { font-size: 0.76rem; color: #b3a284; margin: 0; }
.footer-bottom-legal a { color: #b3a284; }
.footer-bottom-legal a:hover { color: var(--gold-bright); }
.footer-bottom-sep { margin: 0 7px; color: rgba(212,175,55,0.35); }
.footer-bottom-copyright { font-size: 0.76rem; color: #b3a284; margin: 0; }

@media (max-width: 800px) {
  .nav-toggle { display: flex; }
  .header-inner { padding: 8px 20px; }
  .brand-logo { height: 56px; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background-color: var(--royal-black); background-image: linear-gradient(135deg, var(--royal-black) 0%, var(--maroon-deep) 100%); flex-direction: column; align-items: flex-start; padding: 16px 24px; gap: 16px; border-bottom: 2px solid var(--gold-bright); display: none; }
  .main-nav.open { display: flex; }
  .product-detail, .checkout-grid, .contact-grid, .account-grid, .collections-intro, .story-hero-grid, .form-row-split { grid-template-columns: 1fr; }
  .collection-intro-card { padding: 34px 28px 30px; min-height: 240px; }
  .collection-intro-num { font-size: 2.6rem; top: 20px; right: 22px; }
  .story-hero-grid { gap: 32px; }
  .story-hero-grid .story-portrait-wrap { order: -1; }
  .hero { padding: 56px 0; }
  .hero h1 { font-size: 1.9rem; }
  .hero-slider-dots { bottom: 10px; gap: 6px; }
  .hero-dot { width: 7px; height: 7px; }
  .footer-row { grid-template-columns: 1fr; justify-items: center; gap: 12px; }
  .footer-group-brand { grid-column: 1; justify-self: center; }
  .footer-group-info { grid-column: 1; }
  .cart-summary { margin-left: 0; }
}

/* ---------------- Events page (events.php) ----------------
 * Admin-managed via Admin → Events / Admin → Event Reviews. Reuses the
 * site's existing tokens (--maroon/--gold/--cream/--border/--radius) and the
 * .policy-modal-overlay/.policy-modal pattern for the past-event popup, for
 * visual consistency with the checkout policies modal and the shop-page
 * quick-add modal.
 */
.events-empty { text-align: center; color: var(--muted); padding: 20px 0 10px; }

.events-upcoming { margin-bottom: 56px; }
.events-upcoming .collection-heading { text-align: center; margin-bottom: 24px; }

/* Upcoming-events slider — full browser width, edge to edge, exactly like
 * the homepage hero slider (no card border/corners since it now spans the
 * whole viewport) — one event visible at a time, with prev/next arrows and
 * numbered dots mirroring the hero slider's dot styling. */
.event-slider { position: relative; background: #fff; }
.event-slider-track { position: relative; }
.event-slide { display: none; }
.event-slide.active { display: block; animation: eventSlideFade .35s ease; }
@keyframes eventSlideFade { from { opacity: 0; } to { opacity: 1; } }

.event-slide-media { position: relative; }
.event-banner-image {
  width: 100%;
  aspect-ratio: 16 / 6;
  max-height: 520px;
  background-size: cover;
  background-position: center;
  background-color: var(--royal-black, #1b1712);
  background-image: linear-gradient(135deg, var(--royal-black) 0%, var(--maroon-deep) 100%);
}
.event-banner-body { padding: 30px 24px 40px; text-align: center; }
.event-banner-body h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.6rem; color: var(--ink); margin: 0 0 12px; }
.event-banner-body p { color: var(--muted); max-width: 640px; margin: 0 auto 0.8em; line-height: 1.7; }

.event-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  color: var(--maroon);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  transition: background .2s ease, color .2s ease;
  z-index: 2;
}
.event-slider-arrow:hover { background: var(--maroon); color: #fff; }
.event-slider-prev { left: clamp(14px, 3vw, 40px); }
.event-slider-next { right: clamp(14px, 3vw, 40px); }
.event-slider-dots { display: flex; justify-content: center; gap: 8px; padding: 4px 0 22px; }
.event-slider-dot { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 1.5px solid var(--gold-bright, var(--gold)); background: transparent; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.event-slider-dot.active { background: var(--gold-bright, var(--gold)); transform: scale(1.2); }

.event-countdown {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.event-countdown-item {
  min-width: 72px;
  padding: 10px 8px;
  background: var(--maroon);
  color: #fff;
  border-radius: 8px;
  border: 1px solid var(--gold-bright, var(--gold));
}
.event-countdown-num { display: block; font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--gold-pale, #fff); font-family: 'Playfair Display', Georgia, serif; }
.event-countdown-label { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; color: #fff; opacity: 0.9; }
.event-countdown-now { font-weight: 800; font-size: 1.2rem; color: var(--maroon); background: var(--gold-pale, #f0d999); padding: 10px 18px; border-radius: 8px; }

/* Recently Happened / Past Events break out to the full browser width (like
 * the homepage hero) so their horizontally-scrolling carousel tracks (see
 * .event-carousel-wrap/.event-carousel-arrow below) have room to breathe —
 * arrows only appear once there's more content than fits in one view. */
.events-fullbleed {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
  padding: 0 clamp(16px, 4vw, 56px);
}
/* The Upcoming-events slider goes fully edge-to-edge (no side padding),
 * unlike the Recently Happened / Past Events carousels above which keep a
 * little breathing room for their arrows. */
.events-fullbleed--flush { padding: 0; }
.event-carousel-wrap { display: flex; align-items: center; gap: 18px; }
.event-carousel-track { flex: 1 1 auto; min-width: 0; scroll-behavior: smooth; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.event-carousel-track::-webkit-scrollbar { display: none; }
.event-carousel-arrow {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: var(--maroon);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(58,15,28,0.28);
  transition: background-color .2s ease, color .2s ease, opacity .2s ease, transform .2s ease;
}
.event-carousel-arrow:hover { background: var(--gold-bright, var(--gold)); color: var(--maroon); transform: scale(1.06); }
.event-carousel-arrow:disabled { opacity: 0.35; cursor: default; transform: none; }
.event-carousel-arrow:disabled:hover { background: var(--maroon); color: #fff; }
.event-carousel-arrow[hidden] { display: none; }

.events-recent-grid { display: flex; gap: 24px; overflow-x: auto; }
.event-recent-card { flex: 0 0 calc(50% - 12px); scroll-snap-align: start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 22px rgba(27,23,18,0.06); }
.event-recent-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.event-recent-body { padding: 20px 22px 24px; }
.event-recent-body h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.25rem; margin: 0 0 8px; color: var(--ink); }
.event-recent-body p { color: var(--muted); margin: 0; line-height: 1.65; font-size: 0.95rem; }

.events-past-grid { display: flex; gap: 20px; overflow-x: auto; }
.event-past-card {
  position: relative;
  display: block;
  flex: 0 0 calc(25% - 15px);
  scroll-snap-align: start;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  padding: 0;
  cursor: pointer;
  background: none;
  font-family: inherit;
}
.event-past-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.event-past-card:hover .event-past-img { transform: scale(1.06); }
.event-past-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 14px;
  background: linear-gradient(180deg, rgba(27,23,18,0) 40%, rgba(27,23,18,0.78) 100%);
  color: #fff;
}
.event-past-title { font-weight: 700; font-size: 0.95rem; }
.event-past-watch { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--gold-bright, var(--gold)); padding-bottom: 2px; color: var(--gold-pale, var(--gold)); }

.event-reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.event-review-card { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: 0 10px 22px rgba(27,23,18,0.06); }
.event-review-img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--gold-bright, var(--gold)); }
.event-review-text { color: var(--ink); font-style: italic; line-height: 1.7; margin: 0 0 10px; }
.event-review-name { color: var(--muted); font-weight: 600; font-size: 0.88rem; margin: 0; }

.events-view-more-wrap { text-align: center; margin-top: 26px; }
.event-reviews-modal-list { display: flex; flex-direction: column; gap: 18px; margin-top: 16px; max-height: 60vh; overflow-y: auto; padding-right: 4px; }
.event-reviews-modal-list .event-review-card { box-shadow: none; }

.event-detail-modal { max-width: 640px; }
.event-detail-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.event-detail-gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; }
.event-detail-description p { color: var(--muted); line-height: 1.7; margin: 0 0 1em; }

@media (max-width: 800px) {
  .event-recent-card { flex-basis: 100%; }
  .event-past-card { flex-basis: calc(50% - 10px); }
  .event-reviews-grid { grid-template-columns: 1fr; }
  .event-reviews-modal-list .event-review-card { flex-direction: column; }
  .event-banner-body { padding: 22px; }
  .event-countdown { gap: 10px; }
  .event-countdown-item { min-width: 56px; padding: 8px 4px; }
  .event-countdown-num { font-size: 1.5rem; }
  .event-slider-arrow { width: 34px; height: 34px; font-size: 1.25rem; }
  .event-carousel-arrow { width: 44px; height: 44px; }
  .event-carousel-wrap { gap: 10px; }
}

@media (max-width: 600px) {
  .event-detail-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* deploy test marker 2026-09-03T14:31:56Z */

/* When a product/hero/cart image is missing and we fall back to the site
   logo, don't stretch/crop it to fill the box like a real photo (cover) —
   shrink it to a small centered icon instead so it reads as a placeholder. */
.is-fallback-img {
  object-fit: contain !important;
  padding: 18%;
  box-sizing: border-box;
  background: var(--cream);
}

/* =======================================================================
   Shop page — luxury boutique styling
   A dark banded hero, a gold pill quick-nav, and alternating full-bleed
   collection bands using the same "royal" card dressing as the homepage
   bestseller rail (.bestseller-section), so the shop feels like the rest
   of the site's premium sections rather than a plain product listing.
   ======================================================================= */
.shop-hero {
  position: relative;
  background-color: var(--royal-black);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(212,175,55,0.16) 0%, rgba(212,175,55,0) 55%),
    linear-gradient(135deg, var(--royal-black) 0%, var(--maroon-deep) 100%);
  padding: 84px 0 56px;
  text-align: center;
  overflow: hidden;
  border-bottom: 2px solid var(--gold-bright);
}
/* Parallax blob layers — driven by the scroll listener in shop.php */
.shop-hero-layer { position: absolute; inset: -18% -18% -18% -18%; pointer-events: none; will-change: transform; z-index: 0; }
.shop-hero-blob-1 { background: radial-gradient(circle at 22% 26%, rgba(212,175,55,0.32) 0%, transparent 45%); }
.shop-hero-blob-2 { background: radial-gradient(circle at 80% 72%, rgba(90,20,38,0.55) 0%, transparent 42%); }
.shop-hero .container { position: relative; z-index: 1; }
.shop-hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin: 0 0 14px;
}
.shop-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.3rem, 4.6vw, 3.2rem);
  color: #fff;
  margin: 0 0 14px;
}
.shop-hero-sub {
  color: #e7d9c4;
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}
.shop-hero-divider {
  color: var(--gold-bright);
  font-size: 1.05rem;
  margin: 26px 0 0;
}
/* Marquee ticker — scrolling trust phrases, gold strip */
.shop-marquee-wrap { position: relative; background: var(--gold-bright); color: var(--royal-black); overflow: hidden; padding: 12px 0; border-bottom: 2px solid var(--maroon-deep); }
.shop-marquee-track { display: flex; width: max-content; animation: shopMarqueeScroll 28s linear infinite; }
.shop-marquee-track span { display: inline-flex; align-items: center; font-weight: 700; font-size: 0.86rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 0 26px; white-space: nowrap; }
.shop-marquee-track span::after { content: '\2726'; margin-left: 26px; font-size: 0.78rem; color: var(--maroon-deep); }
@keyframes shopMarqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Scroll-reveal — fades/slides content in as it enters the viewport (see shop.php IntersectionObserver) */
.shop-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.shop-reveal.shop-revealed { opacity: 1; transform: translateY(0); }

/* Site-wide scroll-reveal (generalized from .shop-reveal above) — add class="reveal" to any
   element on any public page and js/main.js's shared IntersectionObserver fades/slides it in
   once. Used across home, story, events, contact and product pages. Not loaded on admin pages. */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* Quick-nav pills */
.shop-quicknav { background: var(--cream); padding: 20px 0; border-bottom: 1px solid var(--gold-pale); }
.shop-quicknav-inner { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.shop-quicknav-link {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--maroon-deep);
  border: 1.5px solid var(--gold);
  padding: 10px 22px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.shop-quicknav-link:hover { background: var(--maroon-deep); border-color: var(--maroon-deep); color: #fff; }

/* Collection bands — full-bleed alternating sections */
.shop-collection-band { padding: 64px 0; background: var(--cream); }
.shop-collection-band-alt { background: #f8efdc; }
.shop-collection-band + .shop-collection-band { border-top: 1px solid var(--gold-pale); }
.shop-collection-band .section-head h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.7rem, 2.4vw, 2.1rem);
  color: var(--maroon-deep);
}
.shop-collection-band .section-head::after { content: '\2756'; color: var(--gold-bright); font-size: 1.05rem; }
.shop-collection-band .product-grid { gap: 34px; }

/* Product cards — same royal dressing as the homepage bestseller rail */
.shop-page .product-card {
  background: #fff;
  border: 2px solid var(--gold-pale);
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(27,23,18,0.06);
  transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}
.shop-page .product-card:hover {
  border-color: var(--gold-bright);
  box-shadow: 0 22px 40px rgba(185,138,61,0.22);
  transform: translateY(-6px) rotate(-0.4deg);
}
.shop-page .product-thumb { border-radius: 6px 6px 0 0; border-bottom: 1px solid var(--gold-pale); }
.shop-page .product-body { padding: 22px 20px 24px; gap: 8px; }
.shop-page .product-body h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.15rem; }
.shop-page .product-body h3 a { color: var(--maroon-deep); }
.shop-page .card-tagline { position: relative; padding-left: 14px; color: var(--gold); }
.shop-page .card-tagline::before { content: '\2726'; position: absolute; left: 0; top: 1px; font-size: 0.7rem; color: var(--gold-bright); }
.shop-page .product-price { font-family: 'Playfair Display', Georgia, serif; color: var(--maroon-deep); font-size: 1.15rem; }
.shop-page .price-discounted { color: var(--maroon); }
.shop-page .btn-primary.btn-small {
  background: var(--gold-bright);
  color: var(--royal-black);
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 10px 18px;
}
.shop-page .btn-primary.btn-small:hover { background: var(--maroon-deep); color: #fff; transform: translateY(-1px); }

/* "The Ritual" — three-step brewing guide, new section not in the original luxury layout */
.shop-ritual { padding: 72px 0 80px; background: var(--cream); border-top: 1px solid var(--gold-pale); }
.shop-ritual .shop-ritual-eyebrow { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.74rem; font-weight: 700; color: var(--gold); margin: 0 0 10px; }
.shop-ritual .section-head h2 { font-family: 'Playfair Display', Georgia, serif; color: var(--maroon-deep); font-size: clamp(1.8rem, 3vw, 2.4rem); }
.shop-ritual-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 12px; }
.shop-ritual-step { background: #fff; border: 1.5px solid var(--gold-pale); border-radius: 10px; padding: 30px 24px; text-align: center; transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease; }
.shop-ritual-step:hover { border-color: var(--gold-bright); box-shadow: 0 18px 34px rgba(185,138,61,0.18); transform: translateY(-4px); }
.shop-ritual-step-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--gold-pale);
  -webkit-text-stroke: 1.5px var(--gold-bright);
  line-height: 1;
  margin-bottom: 14px;
}
.shop-ritual-step h3 { font-family: 'Playfair Display', Georgia, serif; color: var(--maroon-deep); font-size: 1.2rem; margin: 0 0 10px; }
.shop-ritual-step p { color: var(--muted); font-size: 0.92rem; line-height: 1.6; margin: 0; }

@media (max-width: 640px) {
  .shop-hero { padding: 60px 0 40px; }
  .shop-collection-band { padding: 44px 0; }
  .shop-ritual { padding: 52px 0 60px; }
  .shop-ritual-steps { grid-template-columns: 1fr; }
}
.cart-product img.is-fallback-img { padding: 12px; }

/* ---------------- Rituals page (rituals.php) — added 2026-09-12, replacing the
   old fixed "Maison Tulsi Ritual" section on story.php; redesigned 2026-09-12
   (Round 2) after the user shared a "Meal Planner" dashboard-app reference
   image and asked for something more visually engaging. Borrows the
   reference's STRUCTURE — a full-bleed photo with the title overlaid at the
   bottom, a small stat pill on the photo, then a clean fact list, then a
   bottom action row — reinterpreted entirely in the site's own gold/maroon/
   cream "royal" language rather than copying the dashboard-app look itself. */
.rituals-hero { padding: 70px 0 20px; }
.rituals-grid-section { padding: 20px 0 76px; }
.rituals-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
.ritual-moment-card {
  background: #fff;
  border: 1.5px solid var(--gold-pale);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
  display: flex;
  flex-direction: column;
}
.ritual-moment-card:hover { border-color: var(--gold-bright); box-shadow: 0 22px 40px rgba(185,138,61,0.18); transform: translateY(-5px); }
.ritual-moment-card:hover .ritual-moment-photo img { transform: scale(1.05); }
.ritual-moment-photo { position: relative; aspect-ratio: 4 / 3; background: var(--green-light); overflow: hidden; }
.ritual-moment-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.ritual-moment-photo-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; color: var(--gold-bright); background: linear-gradient(135deg, var(--green-light) 0%, var(--cream) 100%); }
.ritual-moment-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,14,10,0) 45%, rgba(17,14,10,0.78) 100%); pointer-events: none; }
.ritual-moment-pill {
  position: absolute; top: 16px; left: 16px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(250,247,242,0.94); color: var(--maroon-deep);
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 6px 12px 6px 8px; border-radius: 999px; border: 1px solid var(--gold-bright);
}
.ritual-moment-pill svg { width: 13px; height: 13px; color: var(--gold); flex-shrink: 0; }
.ritual-moment-title {
  position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 1;
  font-family: 'Playfair Display', Georgia, serif; color: #fff; font-size: 1.5rem; margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.ritual-moment-body { padding: 22px 24px 20px; display: flex; flex-direction: column; flex: 1; }
.ritual-moment-facts { margin: 0 0 6px; }
.ritual-moment-fact { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); }
.ritual-moment-fact:first-child { border-top: none; padding-top: 0; }
.ritual-moment-fact-icon {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--green-light); color: var(--gold); display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.ritual-moment-fact-icon svg { width: 15px; height: 15px; }
.ritual-moment-fact-label { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); margin: 0 0 3px; }
.ritual-moment-fact-value { margin: 0; color: var(--ink); font-size: 0.92rem; line-height: 1.55; }
.ritual-moment-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--gold-pale); }
.ritual-moment-shop-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--maroon-deep);
}
.ritual-moment-shop-link span { transition: transform .2s ease; }
.ritual-moment-shop-link:hover { color: var(--gold); }
.ritual-moment-shop-link:hover span { transform: translateX(3px); }

@media (max-width: 720px) {
  .rituals-grid { grid-template-columns: 1fr; }
  .rituals-hero { padding: 50px 0 10px; }
  .rituals-grid-section { padding: 10px 0 56px; }
}
