/* ===================================================
   GEMMA GARY — Shared Stylesheet
   Approved design: dark mystical aesthetic
   Cinzel + Cormorant Garamond typography
   Aged gold + dark green accents
   =================================================== */

/* --- Variables --- */
:root {
  --deep-black: #0a0a0a;
  --deep-black-rgb: 10 10 10;
  --page-header-bg: transparent;
  --page-header-bg-rgb: var(--deep-black-rgb);
  --ritual-black: #111111;
  --ritual-black-rgb: 17 17 17;
  --dark-earth: #1a1510;
  --dark-earth-rgb: 26 21 16;
  --moor-brown: #2a2218;
  --moor-brown-rgb: 42 34 24;
  --aged-gold: #c9a84c;
  --aged-gold-rgb: 201 168 76;
  --pale-gold: #d4b860;
  --pale-gold-rgb: 212 184 96;
  --warm-cream: #e8dcc8;
  --warm-cream-rgb: 232 220 200;
  --mist-grey: #9a928a;
  --mist-grey-rgb: 154 146 138;
  --candle-glow: #f0e0b8;
  --candle-glow-rgb: 240 224 184;
  --parchment: #f5eed8;
  --parchment-rgb: 245 238 216;
  --deep-green: #1e2e1a;
  --deep-green-rgb: 30 46 26;
  --forest-green: #2a3d24;
  --forest-green-rgb: 42 61 36;
  --moss: #4a5a3a;
  --moss-rgb: 74 90 58;
  --ember: #8a3a1a;
  --ember-rgb: 138 58 26;
  --thorn-red: #6e2c1c;
  --thorn-red-rgb: 110 44 28;
  --background-tint: #2d3a2a;
  --background-tint-rgb: 45 58 42;
  --nav-height: 70px;
  --page-header-padding: 40px;
  --nav-optical-lift: 0.15;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Cormorant Garamond', Georgia, serif;
  --font-hero-title: var(--font-heading);
  --font-wordmark: var(--font-heading);
  --texture-opacity: 0.025;
  --page-header-texture-opacity: 0;
  --texture-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Tarot offering: hidden by default; shown only when site-config enables it */
[data-tarot-link] { display: none; }
html.tarot-enabled [data-tarot-link] { display: revert; }

body {
  background: var(--deep-black);
  color: var(--warm-cream);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== CART DRAWER ===== */
.gemma-cart-drawer[hidden],
#gemma-cart-drawer[hidden] {
  display: none !important;
}
body.gemma-cart-open {
  overflow: hidden;
}
.gemma-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 250;
}
.gemma-cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(var(--deep-black-rgb) / 0.65);
}
.gemma-cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(440px, 92vw);
  background: rgb(var(--ritual-black-rgb) / 0.98);
  border-left: 1px solid rgb(var(--aged-gold-rgb) / 0.22);
  box-shadow: -24px 0 80px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}
.gemma-cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgb(var(--aged-gold-rgb) / 0.12);
}
.gemma-cart-drawer__title {
  font-family: var(--font-heading);
  letter-spacing: 0.12em;
  color: var(--candle-glow);
  text-transform: uppercase;
  font-size: 0.95rem;
}
.gemma-cart-drawer__close {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgb(var(--aged-gold-rgb) / 0.35);
  background: rgb(var(--ritual-black-rgb) / 0.6);
  color: var(--aged-gold);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.gemma-cart-drawer__close:hover {
  background: rgb(var(--aged-gold-rgb) / 0.12);
  border-color: var(--aged-gold);
  color: var(--pale-gold);
}
.gemma-cart-drawer__body {
  padding: 1rem 1.2rem;
  overflow: auto;
  flex: 1;
}
.gemma-cart-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgb(var(--aged-gold-rgb) / 0.08);
}
.gemma-cart-row__thumb {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  background: var(--dark-earth);
  border: 1px solid rgb(var(--aged-gold-rgb) / 0.08);
}
.gemma-cart-row__main {
  flex: 1;
  min-width: 0;
}
.gemma-cart-row__title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--candle-glow);
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}
.gemma-cart-row__meta {
  color: var(--mist-grey);
  font-size: 0.9rem;
  line-height: 1.5;
}
.gemma-cart-row__right {
  text-align: right;
  min-width: 92px;
}
.gemma-cart-row__price {
  font-family: var(--font-heading);
  color: var(--aged-gold);
  margin-bottom: 0.35rem;
}
.gemma-cart-row__remove {
  border: none;
  background: transparent;
  color: var(--mist-grey);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
  padding: 0;
  font: inherit;
}
.gemma-cart-row__remove:hover {
  color: var(--pale-gold);
}
.gemma-cart-drawer__footer {
  padding: 1rem 1.2rem 1.2rem;
  border-top: 1px solid rgb(var(--aged-gold-rgb) / 0.12);
  background: linear-gradient(180deg, rgb(var(--ritual-black-rgb) / 0.65) 0%, rgb(var(--deep-black-rgb) / 0.85) 100%);
}
.gemma-cart-drawer__total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--warm-cream);
  margin-bottom: 0.85rem;
}
.gemma-cart-drawer__total strong {
  font-family: var(--font-heading);
  letter-spacing: 0.06em;
  color: var(--aged-gold);
}
.gemma-cart-drawer__note {
  margin: 0 0 1.2rem;
  color: var(--warm-cream);
  font-size: inherit;
  line-height: inherit;
}
.gemma-cart-drawer__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}
.gemma-cart-drawer__checkout--disabled {
  opacity: 0.5;
  pointer-events: none;
  filter: grayscale(0.15);
}

/* --- Texture overlays --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgb(var(--aged-gold-rgb) / 0.03) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgb(var(--background-tint-rgb) / 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: var(--texture-opacity, 0.025);
  background-image: var(--texture-image);
  pointer-events: none;
  z-index: 1;
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  box-sizing: border-box;
  padding: 0 3rem calc(var(--nav-height) * var(--nav-optical-lift, 0.15));
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgb(var(--deep-green-rgb) / 0.97) 0%, rgb(var(--deep-green-rgb) / 0.85) 70%, rgb(var(--deep-green-rgb) / 0) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.4s ease;
}
nav.scrolled {
  background: rgb(var(--deep-green-rgb) / 0.98);
  box-shadow: 0 1px 0 rgb(var(--aged-gold-rgb) / 0.2);
}

.nav-brand {
  font-family: var(--font-wordmark);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--aged-gold);
  text-decoration: none;
  position: relative;
  max-width: min(24rem, calc(100% - 6.5rem));
  min-width: 0;
  flex-shrink: 1;
}
.nav-brand img.nav-brand-logo {
  /* Inner nav height is --nav-height * (1 - optical-lift); logo is 85% of that. */
  height: calc(var(--nav-height) * (1 - var(--nav-optical-lift, 0.15)) * 0.85);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  flex-shrink: 1;
  min-width: 0;
}
.nav-brand img.nav-brand-logo:not(.is-ready) {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  visibility: hidden;
  pointer-events: none;
}
.nav-brand.nav-brand--has-logo {
  display: flex;
  align-items: center;
  font-size: 0;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  flex-shrink: 0;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--warm-cream);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 1px;
  background: var(--aged-gold);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--aged-gold);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.header-currency-toggle {
  display: inline-flex;
  align-items: stretch;
  gap: 3px;
  flex-shrink: 0;
  padding: 2px;
  border: 1px solid rgba(201, 169, 98, 0.35);
  border-radius: 4px;
  background: rgba(13, 13, 15, 0.55);
}
.currency-toggle-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mist-grey);
  background: transparent;
  border: none;
  padding: 0.2rem 0.3rem 0.15rem;
  cursor: pointer;
  border-radius: 3px;
  line-height: 1.1;
}
.currency-toggle-flag {
  display: block;
  line-height: 0;
  flex-shrink: 0;
  pointer-events: none;
}
.currency-toggle-label {
  display: block;
  pointer-events: none;
}
.currency-flag-svg {
  display: block;
  width: 20px;
  height: auto;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.currency-toggle-btn:hover {
  color: var(--warm-cream);
}
.currency-toggle-btn:focus-visible {
  outline: 2px solid rgba(201, 169, 98, 0.65);
  outline-offset: 2px;
}
.currency-toggle-btn.is-active {
  color: var(--deep-black);
  background: var(--aged-gold);
}
@media (max-width: 700px) {
  .header-currency-toggle {
    gap: 2px;
    padding: 2px;
  }
  .currency-flag-svg {
    width: 18px;
  }
  .currency-toggle-btn {
    padding: 0.15rem 0.25rem 0.12rem;
  }
}

.nav-cart {
  color: var(--warm-cream);
  text-decoration: none;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.3s;
}
.nav-cart:hover { color: var(--aged-gold); }
.cart-count {
  font-size: 0.75rem;
  background: var(--aged-gold);
  color: var(--deep-black);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--warm-cream);
  margin: 5px 0;
  transition: 0.3s;
}

/* ===== HERO (Home page) ===== */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 26px) 2rem 6rem;
  background:
    radial-gradient(ellipse at center, rgb(var(--deep-green-rgb) / 0.15) 0%, transparent 70%),
    var(--deep-black);
}
.hero.hero--has-image {
  background: var(--deep-black);
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-backdrop[hidden] {
  display: none !important;
}
.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-backdrop-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 10, 8, 0.5) 0%, rgba(8, 10, 8, 0.68) 42%, rgb(var(--deep-black-rgb) / 0.88) 100%),
    radial-gradient(ellipse at 50% 35%, rgb(var(--deep-green-rgb) / 0.35) 0%, transparent 62%);
}
.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 2;
}
.hero-tagline {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--mist-grey);
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}
.hero.hero--has-image .hero-tagline {
  color: rgb(var(--warm-cream-rgb) / 0.94);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.88), 0 1px 2px rgba(0, 0, 0, 0.9);
}
.hero.hero--has-image h1 {
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 1);
}
.hero.hero--has-image .subtitle {
  color: rgb(var(--candle-glow-rgb) / 0.95);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.88);
}
.hero.hero--has-image .hero-sigil {
  color: rgb(var(--aged-gold-rgb) / 0.28);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.75);
}
.hero.hero--has-image .gemma-cms-intro {
  color: rgb(var(--warm-cream-rgb) / 0.92);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85);
}
.hero.hero--has-image .gemma-cms-intro a {
  color: var(--pale-gold);
}
.hero.hero--has-image .btn-primary {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}
.hero-sigil {
  font-size: 3rem;
  color: rgb(var(--aged-gold-rgb) / 0.15);
  margin-bottom: 2rem;
  letter-spacing: 1rem;
}
.hero .hero-sigil.hero-sigil--image {
  --hero-sigil-box: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--hero-sigil-box);
  max-width: min(100%, 18rem);
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  letter-spacing: 0;
  font-size: 0;
  line-height: 0;
  color: transparent;
  text-shadow: none;
}
.hero .hero-sigil.hero-sigil--image img {
  display: block;
  height: auto;
  width: auto;
  max-height: var(--hero-sigil-box);
  max-width: 100%;
  min-width: 0;
  object-fit: contain;
}
.hero .hero-sigil.hero-sigil--hidden {
  display: none;
  margin: 0;
  height: 0;
  min-height: 0;
}
.hero h1 {
  font-family: var(--font-hero-title);
  font-size: var(--gemma-text-size-px, 2.8rem);
  font-weight: 400;
  color: var(--candle-glow);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  max-width: 100%;
  overflow-wrap: break-word;
}
.hero .subtitle {
  font-family: var(--font-body);
  font-size: var(--gemma-text-size-px, 1.2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--mist-grey);
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}
.hero-border {
  position: absolute;
  inset: 2rem;
  border: 1px solid rgb(var(--aged-gold-rgb) / 0.08);
  pointer-events: none;
  z-index: 1;
}

/* ===== PAGE HEADER (inner pages) ===== */
.page-header {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-height) + var(--page-header-padding)) 2rem var(--page-header-padding);
  text-align: center;
  background: var(--page-header-bg);
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 2rem;
  border: 1px solid rgb(var(--forest-green-rgb) / 0.2);
  pointer-events: none;
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: var(--page-header-texture-opacity, 0);
  background-image: var(--texture-image);
  background-repeat: repeat;
  background-attachment: fixed;
  pointer-events: none;
}
.page-header h1 {
  font-family: var(--font-heading);
  font-size: var(--gemma-text-size-px, var(--gemma-text-size, 2.2rem));
  font-weight: 400;
  color: var(--candle-glow);
  letter-spacing: 0.15em;
}
.page-subtitle {
  font-family: var(--font-body);
  font-size: var(--gemma-text-size-px, var(--gemma-text-size, 1.1rem));
  font-weight: 300;
  font-style: italic;
  color: var(--mist-grey);
  margin-top: 0.5rem;
}

/* ===== EDITOR-CONTROLLED FONT SIZES ===== */
.gemma-fs-sm { --gemma-text-size: 1.4rem; }
.gemma-fs-md { --gemma-text-size: 1.8rem; }
.gemma-fs-lg { --gemma-text-size: 2.4rem; }
.gemma-fs-xl { --gemma-text-size: 3rem; }

/* ===== SECTIONS ===== */
section {
  position: relative;
  z-index: 2;
  padding: 5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== HOME: TAROT SECTION ===== */
.gemma-home-tarot {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

/* ===== HOME: INTRO (photo + intro text) ===== */
.gemma-home-intro {
  /* Use margin (not padding) because the HTML currently sets inline padding-top:0 */
  margin-top: 2.5rem;
  padding-top: 0;
  padding-bottom: 2.5rem;
}
.gemma-home-intro.gemma-home-intro--hidden,
.gemma-home-intro[hidden] {
  display: none;
  margin: 0;
  padding: 0;
  height: 0;
  min-height: 0;
}
.gemma-home-intro__inner {
  max-width: 900px;
  margin: 0 auto;
}
.gemma-home-intro__inner--has-photo {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 2.5rem;
  align-items: start;
}
.gemma-home-intro__frame {
  border: 1px solid rgb(var(--aged-gold-rgb) / 0.28);
  background: radial-gradient(circle at 20% 20%, rgb(var(--aged-gold-rgb) / 0.08), transparent 55%), var(--dark-earth);
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
}
.gemma-home-intro__frame img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgb(var(--forest-green-rgb) / 0.25);
  filter: saturate(0.95) contrast(1.05);
}
.gemma-home-intro__text {
  text-align: left;
  margin: 0;
}

@media (max-width: 860px) {
  .gemma-home-intro__inner--has-photo {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
  .gemma-home-intro__photo {
    width: min(100%, 380px);
    margin: 0 auto;
  }
  .gemma-home-intro__text {
    text-align: center;
  }
}
.gemma-home-tarot__inner {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 3rem;
  align-items: center;
  background: linear-gradient(180deg, rgb(var(--ritual-black-rgb) / 0.85) 0%, rgb(var(--deep-black-rgb) / 0.92) 100%);
  border: 1px solid rgb(var(--aged-gold-rgb) / 0.12);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
}
.gemma-home-tarot__inner::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgb(var(--forest-green-rgb) / 0.22);
  pointer-events: none;
}
.gemma-home-tarot__photo {
  position: relative;
  z-index: 1;
}
.gemma-home-tarot__frame {
  border: 1px solid rgb(var(--aged-gold-rgb) / 0.28);
  background: radial-gradient(circle at 20% 20%, rgb(var(--aged-gold-rgb) / 0.08), transparent 55%), var(--dark-earth);
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
}
.gemma-home-tarot__frame img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgb(var(--forest-green-rgb) / 0.25);
  filter: saturate(0.95) contrast(1.05);
}
.gemma-home-tarot__text {
  position: relative;
  z-index: 1;
  text-align: center;
}
.gemma-home-tarot__heading {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: var(--gemma-text-size-px, var(--gemma-text-size, inherit));
  color: var(--candle-glow);
  letter-spacing: 0.12em;
  margin-bottom: 0.9rem;
  text-align: center;
}
.gemma-home-tarot__body {
  color: var(--warm-cream);
  font-weight: 300;
  line-height: 1.85;
  margin-bottom: 1.4rem;
  text-align: center;
}
.gemma-home-tarot__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 860px) {
  .gemma-home-tarot__inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 1.6rem;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--candle-glow);
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}
.section-header p {
  font-size: 1rem;
  font-weight: 300;
  font-style: italic;
  color: var(--mist-grey);
}

.section-divider {
  text-align: center;
  padding: 2rem 0;
  color: rgb(var(--forest-green-rgb) / 0.4);
  font-size: 0.8rem;
  letter-spacing: 0.5rem;
}

/* ===== PRODUCT CARDS ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--ritual-black);
  border: 1px solid rgb(var(--aged-gold-rgb) / 0.08);
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.product-card a {
  text-decoration: none;
  color: inherit;
}
.product-card:hover {
  border-color: rgb(var(--forest-green-rgb) / 0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 20px rgb(var(--forest-green-rgb) / 0.1);
}

.product-image {
  aspect-ratio: 3/4;
  background: var(--dark-earth);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-image .placeholder {
  font-size: 2rem;
  color: rgb(var(--aged-gold-rgb) / 0.1);
}

.product-info {
  padding: 1.2rem 1.5rem;
}
.product-info h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  color: var(--candle-glow);
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}
.product-info .price {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--aged-gold);
}
.product-info .category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mist-grey);
  margin-bottom: 0.3rem;
}

/* Art listing: square contain box so landscape and portrait A3 letterbox, never crop.
   Reuses .products-grid. Image box is 1:1 of the card column:
   desktop auto-fill minmax(200px, 1fr) → at 1280px typically 4 columns ≈ 246×246px;
   below 900px minmax(240px, 1fr); at 375px one column ≈ 327×327px. */
.product-image--art {
  aspect-ratio: 1 / 1;
}
.product-info .edition {
  display: block;
  font-size: 0.8rem;
  color: var(--mist-grey);
  margin: 0.15rem 0 0.35rem;
  line-height: 1.4;
}

.gemma-art-detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 42%) 1fr;
  gap: 2rem;
  align-items: start;
}
.gemma-art-detail-image {
  background: var(--dark-earth);
  border: 1px solid rgb(var(--aged-gold-rgb) / 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  width: 100%;
  overflow: hidden;
  position: relative;
}
.gemma-art-detail-image img {
  width: 100%;
  height: auto;
  max-height: min(70vh, 640px);
  object-fit: contain;
  cursor: pointer;
}
.gemma-art-detail-image .placeholder {
  font-size: 2rem;
  color: rgb(var(--aged-gold-rgb) / 0.1);
}
.product-video-slot { width: 100%; }
.product-video-slot:not([data-has-video]) { display: none !important; }
.product-video-wrap {
  --video-ar: 1;
  --video-max-h: 70vh;
  width: min(100%, calc(var(--video-max-h) * var(--video-ar)));
  max-width: 100%;
  aspect-ratio: 1;
  max-height: var(--video-max-h);
  margin-inline: auto;
  background: var(--dark-earth);
  border: 1px solid rgb(var(--aged-gold-rgb) / 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
@media (max-width: 768px) {
  .product-video-wrap {
    --video-max-h: 80vh;
  }
}
.product-video-wrap .product-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}
.gemma-art-edition {
  color: var(--mist-grey);
  font-size: 0.9rem;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}

/* ===== HOME: PROMO CARDS ===== */
#gemma-home-featured {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
/* Home: empty CMS shell between intro and tarot/promo should not reserve section padding. */
body[data-gemma-page="home"] section.reveal:has(#gemma-cms-sections:empty) {
  padding-bottom: 0;
}
body[data-gemma-page="home"] section.reveal:has(#gemma-cms-sections:empty) #gemma-cms-sections {
  margin-bottom: 0;
}
/* Home: tighten gap below About Gemma button to promo cards (~64px). */
body[data-gemma-page="home"] #gemma-home-about-teaser.pull-quote {
  padding-bottom: 1rem;
}
body[data-gemma-page="home"] #gemma-home-hero + .section-divider {
  padding-top: 1.375rem;
  padding-bottom: 1.375rem;
}
body[data-gemma-page="home"] #gemma-home-about-teaser + .section-divider {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
body[data-gemma-page="home"] #gemma-home-featured {
  padding-top: 0.75rem;
}
.gemma-promo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  align-items: stretch;
}
.gemma-promo-card {
  background: var(--ritual-black);
  border: 1px solid rgb(var(--aged-gold-rgb) / 0.08);
  transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
}
.gemma-promo-card:hover {
  border-color: rgb(var(--forest-green-rgb) / 0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 20px rgb(var(--forest-green-rgb) / 0.1);
}
.gemma-promo-card:focus-visible {
  outline: 2px solid var(--aged-gold);
  outline-offset: 3px;
}
.gemma-promo-card__image {
  aspect-ratio: 1 / 1;
  width: 100%;
  background: var(--dark-earth);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.gemma-promo-card__image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.gemma-promo-card__copy {
  padding: 1.2rem 1.5rem;
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
}
.gemma-promo-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  color: var(--candle-glow);
  letter-spacing: 0.06em;
  margin: 0;
}
.gemma-promo-card__desc {
  margin: 0.5rem 0 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--mist-grey);
  overflow-wrap: break-word;
  text-align: center;
}

/* ===== BOOK CARDS ===== */
.book-card {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  background: var(--ritual-black);
  border: 1px solid rgb(var(--aged-gold-rgb) / 0.08);
  margin-bottom: 2rem;
  transition: all 0.4s ease;
}
.book-card:hover {
  border-color: rgb(var(--forest-green-rgb) / 0.5);
}
.book-cover {
  flex: 0 0 180px;
  aspect-ratio: 2/3;
  background: var(--dark-earth);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.book-details h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--candle-glow);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.book-details .blurb {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--warm-cream);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.book-formats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.format-option {
  padding: 0.5rem 1rem;
  border: 1px solid rgb(var(--aged-gold-rgb) / 0.2);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--warm-cream);
  text-decoration: none;
  transition: all 0.3s;
}
.format-option:hover {
  background: rgb(var(--aged-gold-rgb) / 0.1);
  border-color: var(--aged-gold);
  color: var(--candle-glow);
}
.format-option.is-selected {
  background: rgb(var(--aged-gold-rgb) / 0.1);
  border-color: var(--aged-gold);
}
.edition-panel {
  border: 1px solid rgb(var(--aged-gold-rgb) / 0.08);
  background: rgb(var(--deep-black-rgb) / 0.35);
}

/* ===== TAROT SECTION ===== */
.tarot-layout {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}
.tarot-sidebar {
  flex: 0 0 200px;
  position: sticky;
  top: calc(var(--nav-height) + 30px);
}
.tarot-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}
.tarot-card-vis {
  width: 120px;
  height: 180px;
  border: 1px solid rgb(var(--aged-gold-rgb) / 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transform: rotate(-3deg);
}
.tarot-card-vis:nth-child(2) { transform: rotate(2deg); }
.tarot-card-vis:nth-child(3) { transform: rotate(-1deg); }
.tarot-card-vis:hover {
  animation: tarot-card-wobble-1 3.5s ease-in-out infinite alternate;
}
.tarot-card-vis:nth-child(2):hover {
  animation-name: tarot-card-wobble-2;
}
.tarot-card-vis:nth-child(3):hover {
  animation-name: tarot-card-wobble-3;
}
@keyframes tarot-card-wobble-1 {
  from { transform: rotate(-4deg); }
  to { transform: rotate(-2deg); }
}
@keyframes tarot-card-wobble-2 {
  from { transform: rotate(1deg); }
  to { transform: rotate(3deg); }
}
@keyframes tarot-card-wobble-3 {
  from { transform: rotate(-2deg); }
  to { transform: rotate(0deg); }
}
.tarot-card-border {
  position: absolute;
  inset: 6px;
  border: 1px solid rgb(var(--aged-gold-rgb) / 0.08);
}
.tarot-card-inner {
  font-size: 2rem;
  color: rgb(var(--aged-gold-rgb) / 0.2);
}

/* Uploaded card photos: same column layout as placeholder outlines; full card visible (no crop) */
.tarot-card-vis.tarot-card-vis--photo {
  border: none;
  padding: 0;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tarot-card-vis.tarot-card-vis--photo img {
  display: block;
  max-height: 180px;
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 2px;
  border: 1px solid rgb(var(--aged-gold-rgb) / 0.28);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.25);
}

.tarot-main {
  flex: 1;
}
.tarot-intro p {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--warm-cream);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* Tarot booking (dynamic UI) */
.tarot-booking-messages {
  margin-bottom: 1.5rem;
}
.tarot-message {
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  font-size: 0.95rem;
}
.tarot-message.info {
  background: rgb(var(--forest-green-rgb) / 0.35);
  border: 1px solid rgb(var(--aged-gold-rgb) / 0.25);
  color: var(--warm-cream);
}
.tarot-message.error {
  background: rgb(var(--thorn-red-rgb) / 0.25);
  border: 1px solid rgb(var(--ember-rgb) / 0.4);
  color: var(--candle-glow);
}
.tarot-message.success {
  background: rgb(var(--forest-green-rgb) / 0.45);
  border: 1px solid rgb(var(--aged-gold-rgb) / 0.35);
  color: var(--candle-glow);
}
.tarot-cancel-banner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgb(var(--deep-green-rgb) / 0.55) 0%, rgb(var(--ritual-black-rgb) / 0.75) 100%);
  border: 1px solid rgb(var(--aged-gold-rgb) / 0.35);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.tarot-cancel-banner-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
  color: var(--warm-cream);
  line-height: 1.65;
  margin: 0;
  max-width: 36rem;
}
.tarot-cancel-banner-dismiss {
  flex-shrink: 0;
}
.tarot-booking-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgb(var(--aged-gold-rgb) / 0.12);
}
.tarot-booking-heading {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--candle-glow);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.tarot-booking-hint {
  font-size: 0.95rem;
  color: var(--mist-grey);
  margin-bottom: 1rem;
  font-style: italic;
}
.tarot-reading-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.tarot-reading-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1.5rem;
  background: rgb(var(--ritual-black-rgb) / 0.6);
  border: 1px solid rgb(var(--aged-gold-rgb) / 0.2);
  color: var(--warm-cream);
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.tarot-reading-card:hover {
  border-color: rgb(var(--aged-gold-rgb) / 0.45);
  background: rgb(var(--deep-green-rgb) / 0.35);
}
.tarot-reading-card.selected {
  border-color: var(--aged-gold);
  box-shadow: 0 0 0 1px rgb(var(--aged-gold-rgb) / 0.35);
  background: rgb(var(--deep-green-rgb) / 0.45);
}
.tarot-reading-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--candle-glow);
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}
.tarot-reading-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--moss);
  margin-bottom: 0.75rem;
}
.tarot-reading-card p:not(.tarot-reading-meta):not(.tarot-reading-price) {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}
.tarot-reading-price {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--aged-gold);
  margin-bottom: 0;
}
.tarot-slot-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.tarot-slot-day-header {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: var(--aged-gold);
  margin-bottom: 0.75rem;
}
.tarot-slot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tarot-slot-pill {
  padding: 0.45rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: rgb(var(--ritual-black-rgb) / 0.8);
  border: 1px solid rgb(var(--aged-gold-rgb) / 0.25);
  color: var(--warm-cream);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.tarot-slot-pill:hover {
  border-color: rgb(var(--aged-gold-rgb) / 0.5);
}
.tarot-slot-pill.selected {
  border-color: var(--aged-gold);
  background: rgb(var(--deep-green-rgb) / 0.5);
  color: var(--candle-glow);
}
.tarot-written-choice {
  max-width: 520px;
}
.tarot-written-confirm {
  margin-top: 1rem;
}
.tarot-book-button {
  margin-top: 0.5rem;
}

.reading-card {
  padding: 2rem;
  border: 1px solid rgb(var(--aged-gold-rgb) / 0.1);
  margin-bottom: 1.5rem;
  transition: all 0.3s;
}
.reading-card:hover {
  border-color: rgb(var(--forest-green-rgb) / 0.4);
  background: rgb(var(--deep-green-rgb) / 0.1);
}
.reading-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--candle-glow);
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}
.reading-meta {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--moss);
  margin-bottom: 0.8rem;
}
.reading-card p {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--warm-cream);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.reading-price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--aged-gold);
  margin-bottom: 1rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--deep-black);
  background: var(--aged-gold);
  padding: 0.8rem 2rem;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--pale-gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgb(var(--aged-gold-rgb) / 0.3);
}
.btn-primary span { margin-left: 0.5rem; }
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aged-gold);
  background: transparent;
  border: 1px solid var(--aged-gold);
  padding: 0.8rem 2rem;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
}
.btn-secondary:hover {
  background: rgb(var(--aged-gold-rgb) / 0.1);
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 250px);
  gap: 1rem;
}
.gallery-item {
  overflow: hidden;
  position: relative;
  background: var(--dark-earth);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--mist-grey);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgb(var(--ritual-black-rgb) / 0.8);
  border: 1px solid rgb(var(--aged-gold-rgb) / 0.15);
  color: var(--warm-cream);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: rgb(var(--forest-green-rgb) / 0.7);
}
.form-group textarea {
  min-height: 150px;
  resize: vertical;
}
.form-row {
  display: flex;
  gap: 1.5rem;
}
.form-row .form-group { flex: 1; }

/* ===== ABOUT ===== */
.about-page-section {
  padding: 2rem 0 4rem;
}
.about-page-row {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 3rem;
}
.about-feature-image-wrap {
  flex: 0 0 min(380px, 42%);
  max-width: 380px;
  position: sticky;
  top: calc(var(--nav-height) + 30px);
}
.about-feature-image-wrap img {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid rgb(var(--aged-gold-rgb) / 0.22);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.about-page-main {
  flex: 1;
  min-width: 0;
}
.about-page-row--has-image .about-page-main {
  padding-top: 0.15rem;
}
.gemma-cms-intro--about,
.gemma-cms-sections--about {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}
.about-layout {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}
.about-portrait {
  flex: 0 0 300px;
  aspect-ratio: 3/4;
  background: var(--dark-earth);
  border: 1px solid rgb(var(--aged-gold-rgb) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: calc(var(--nav-height) + 30px);
  overflow: hidden;
}
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-text {
  flex: 1;
}
.about-text p {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.9;
  margin-bottom: 1.5rem;
  color: var(--warm-cream);
}
.about-text p:first-of-type::first-letter {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  float: left;
  line-height: 1;
  margin-right: 0.5rem;
  color: var(--aged-gold);
}

/* ===== PULL QUOTE ===== */
.pull-quote {
  position: relative;
  z-index: 2;
  padding: 4rem 3rem;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgb(var(--deep-green-rgb) / 0.08), transparent);
}
.section-divider[hidden] {
  display: none;
}
.pull-quote[hidden],
.pull-quote.gemma-home-about-teaser--hidden {
  display: none;
  padding: 0;
  margin: 0;
  height: 0;
  min-height: 0;
}
.pull-quote blockquote {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 300;
  color: var(--candle-glow);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===== HOW IT WORKS (Tarot) ===== */
.how-it-works {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgb(var(--aged-gold-rgb) / 0.1);
}
.how-it-works h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--candle-glow);
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}
.step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}
.step-num {
  flex: 0 0 40px;
  height: 40px;
  border: 1px solid rgb(var(--aged-gold-rgb) / 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--aged-gold);
}
.step-content h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--candle-glow);
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}
.step-content p {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--mist-grey);
  line-height: 1.7;
}

/* ===== COMING SOON ===== */
.coming-soon-wrap {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 2rem;
}
.coming-soon-icon {
  font-size: 3rem;
  color: rgb(var(--aged-gold-rgb) / 0.2);
  margin-bottom: 2rem;
}
.coming-soon-wrap h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--candle-glow);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.coming-soon-wrap p {
  font-size: 1.05rem;
  font-weight: 300;
  font-style: italic;
  color: var(--mist-grey);
  line-height: 1.8;
}

/* ===== FOOTER ===== */
footer {
  position: relative;
  z-index: 2;
  padding: 3rem 2rem 2rem;
  border-top: 1px solid rgb(var(--forest-green-rgb) / 0.3);
  background: linear-gradient(180deg, var(--deep-black) 0%, var(--deep-green) 100%);
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--mist-grey);
}
.footer-content a {
  color: var(--aged-gold);
  text-decoration: none;
}
.footer-content a:hover {
  color: var(--pale-gold);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== DYNAMIC GALLERY (gemma-gallery-masonry + lightbox) ===== */
body.gemma-lb-open {
  overflow: hidden;
}
.gemma-gallery-section {
  padding: 2rem 3rem 5rem;
  max-width: 1400px;
  margin: 0 auto;
}
.gemma-gallery-empty {
  text-align: center;
  color: var(--mist-grey);
  font-size: 1.05rem;
  max-width: 36rem;
  margin: 2rem auto;
  line-height: 1.6;
}
.gemma-gallery-empty strong {
  color: var(--aged-gold);
  font-weight: 500;
}
.gemma-gallery-masonry {
  column-count: 3;
  column-gap: 1.25rem;
}
.gemma-gallery-masonry.reveal.visible {
  animation: gemma-gallery-fade 0.9s ease forwards;
}
@keyframes gemma-gallery-fade {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.gemma-gallery-tile {
  display: block;
  width: 100%;
  break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 1.25rem;
  padding: 0;
  border: none;
  border-radius: 0;
  overflow: visible;
  cursor: pointer;
  position: relative;
  background: transparent;
  box-shadow: none;
  font: inherit;
  color: inherit;
  text-align: left;
}
.gemma-gallery-tile:focus {
  outline: 2px solid var(--aged-gold);
  outline-offset: 3px;
}
.gemma-gallery-tile-media {
  display: block;
  overflow: hidden;
  border-radius: 2px;
  background: var(--dark-earth);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.45s ease, transform 0.45s ease;
}
.gemma-gallery-tile:hover .gemma-gallery-tile-media {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgb(var(--aged-gold-rgb) / 0.2);
  transform: translateY(-2px);
}
.gemma-gallery-tile img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
  filter: brightness(0.97);
}
.gemma-gallery-tile:hover img {
  transform: scale(1.04);
  filter: brightness(1.02);
}
.gemma-gallery-tile-cap {
  display: block;
  margin: 0.55rem 0 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  color: var(--warm-cream);
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Category landing — fixed-size tiles (CSS grid, not masonry) */
.gemma-gallery-back-wrap {
  margin: 0 0 1.1rem;
}
.gemma-gallery-back {
  color: var(--aged-gold);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.gemma-gallery-back:hover {
  text-decoration: underline;
}
.gemma-gallery-cat-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.65rem;
  letter-spacing: 0.06em;
  color: var(--warm-cream);
  margin: 0 0 1.5rem;
}
.gemma-gallery-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.gemma-gallery-cats.reveal.visible {
  animation: gemma-gallery-fade 0.9s ease forwards;
}
.gemma-gallery-cat-tile {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.gemma-gallery-cat-tile:focus {
  outline: 2px solid var(--aged-gold);
  outline-offset: 3px;
}
.gemma-gallery-cat-tile-media {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 2px;
  background: var(--dark-earth);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.45s ease, transform 0.45s ease;
}
.gemma-gallery-cat-tile-media--empty {
  background:
    linear-gradient(180deg, rgb(var(--moor-brown-rgb) / 0.9), var(--dark-earth));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgb(var(--aged-gold-rgb) / 0.18);
}
.gemma-gallery-cat-tile:hover .gemma-gallery-cat-tile-media {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgb(var(--aged-gold-rgb) / 0.2);
  transform: translateY(-2px);
}
.gemma-gallery-cat-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
  filter: brightness(0.97);
}
.gemma-gallery-cat-tile:hover img {
  transform: scale(1.04);
  filter: brightness(1.02);
}
.gemma-gallery-cat-tile-name {
  display: block;
  margin: 0.55rem 0 0;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--warm-cream);
  line-height: 1.35;
}

.gemma-lb {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 4rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.gemma-lb--open {
  opacity: 1;
  visibility: visible;
}
.gemma-lb-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgb(var(--deep-green-rgb) / 0.5), rgba(5, 5, 5, 0.94));
  cursor: zoom-out;
}
.gemma-lb-content {
  position: relative;
  z-index: 2;
  max-width: min(96vw, 1200px);
  text-align: center;
}
.gemma-lb-frame {
  position: relative;
  border: 1px solid rgb(var(--aged-gold-rgb) / 0.22);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.4);
  background: var(--ritual-black);
  padding: 0.35rem;
  border-radius: 2px;
}
.gemma-lb-img {
  display: block;
  max-width: 90vw;
  max-height: calc(100vh - 10rem);
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  transition: opacity 0.32s ease, transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
.gemma-lb-img--leave {
  opacity: 0;
  transform: scale(0.96) translateY(6px);
}
.gemma-lb-img--enter {
  animation: gemma-lb-pop 0.45s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}
@keyframes gemma-lb-pop {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.gemma-lb-caption {
  margin-top: 1.25rem;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--warm-cream);
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
.gemma-lb-close,
.gemma-lb-nav {
  position: absolute;
  z-index: 3;
  border: 1px solid rgb(var(--aged-gold-rgb) / 0.35);
  background: rgb(var(--ritual-black-rgb) / 0.75);
  color: var(--aged-gold);
  font-family: var(--font-heading);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.gemma-lb-close:hover,
.gemma-lb-nav:hover {
  background: rgb(var(--aged-gold-rgb) / 0.12);
  border-color: var(--aged-gold);
  color: var(--pale-gold);
}
.gemma-lb-close {
  top: 1.25rem;
  right: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  font-size: 1.75rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.gemma-lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 1.5rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gemma-lb-prev {
  left: 1rem;
}
.gemma-lb-next {
  right: 1rem;
}

/* ===== CMS (Gemma Hub) ===== */
.gemma-cms-intro {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: var(--gemma-text-size-px, inherit);
  font-weight: 300;
  color: var(--warm-cream);
  line-height: 1.85;
}
.gemma-cms-intro--tarot {
  text-align: left;
  max-width: none;
}
.gemma-cms-intro.gemma-cms-intro--about,
.gemma-cms-intro.gemma-cms-intro--tarot {
  text-align: left;
}
.gemma-cms-intro p {
  margin: 0 0 1rem;
}
.gemma-cms-intro p:last-child {
  margin-bottom: 0;
}
.gemma-cms-sections {
  max-width: 900px;
  margin: 0 auto 3rem;
}
.gemma-cms-section {
  margin-bottom: 2.5rem;
}
.gemma-cms-section:last-child {
  margin-bottom: 0;
}
.gemma-cms-h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--gemma-text-size-px, var(--gemma-text-size, 1.35rem));
  color: var(--aged-gold);
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}
.gemma-cms-body {
  font-size: var(--gemma-text-size-px, var(--gemma-text-size, 1rem));
}
.gemma-cms-body p {
  margin: 0 0 1rem;
  font-weight: 300;
  color: var(--warm-cream);
  line-height: 1.85;
}
.gemma-cms-body p:last-child {
  margin-bottom: 0;
}
.gemma-cms-body strong {
  font-weight: 600;
  color: var(--candle-glow);
}
.gemma-cms-body em {
  font-style: italic;
  color: var(--mist-grey);
}
.gemma-cms-body h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--aged-gold);
  margin: 1.25rem 0 0.75rem;
  letter-spacing: 0.04em;
}
.gemma-cms-body h3:first-child {
  margin-top: 0;
}
.gemma-cms-body a {
  color: var(--aged-gold);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.gemma-cms-body a:hover {
  color: var(--pale-gold);
}

/* CMS text alignment (optional; unset leaves page defaults) */
.gemma-cms-intro.gemma-text-align-left,
.gemma-cms-body.gemma-text-align-left,
.gemma-text-align-left { text-align: left; }
.gemma-cms-intro.gemma-text-align-center,
.gemma-cms-body.gemma-text-align-center,
.gemma-text-align-center { text-align: center; }
.gemma-cms-intro.gemma-text-align-right,
.gemma-cms-body.gemma-text-align-right,
.gemma-text-align-right { text-align: right; }
.gemma-cms-intro.gemma-text-align-justify,
.gemma-cms-body.gemma-text-align-justify,
.gemma-text-align-justify { text-align: justify; }
@media (max-width: 540px) {
  .gemma-cms-intro.gemma-text-align-justify,
  .gemma-cms-body.gemma-text-align-justify,
  .gemma-text-align-justify {
    text-align: left;
  }
}

.gemma-cms-intro a {
  color: var(--aged-gold);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.gemma-cms-intro strong,
.gemma-cms-sections strong {
  font-weight: 600;
  color: var(--candle-glow);
}
.gemma-cms-intro em,
.gemma-cms-sections em {
  font-style: italic;
}
.gemma-cms-intro h3,
.gemma-cms-sections h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--aged-gold);
  margin: 1rem 0 0.5rem;
}
.gemma-cms-section--full .gemma-cms-img-wrap {
  margin: 1rem 0 1.25rem;
  text-align: center;
}
.gemma-cms-section--full .gemma-cms-img-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid rgb(var(--aged-gold-rgb) / 0.2);
}
.gemma-cms-img-wrap--sized {
  aspect-ratio: var(--gemma-img-ar-w) / var(--gemma-img-ar-h);
  max-width: 100%;
}
.gemma-cms-intro-block.gemma-cms-section--full .gemma-cms-img-wrap--full-intro {
  width: min(100%, calc(min(70vh, 560px) * var(--gemma-img-ar-w) / var(--gemma-img-ar-h)));
  max-height: min(70vh, 560px);
  margin-left: auto;
  margin-right: auto;
}
.gemma-cms-intro-block.gemma-cms-section--full .gemma-cms-img-wrap--full-intro img {
  width: 100%;
  height: 100%;
  max-height: none;
}
.gemma-cms-section--inline {
  display: grid;
  gap: 1.5rem; align-items: start;
}
.gemma-cms-section--img-left {
  grid-template-columns: minmax(220px, 1fr) 1.4fr;
}
.gemma-cms-section--img-right {
  grid-template-columns: 1.4fr minmax(220px, 1fr);
}
.gemma-cms-section--inline .gemma-cms-img-wrap img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid rgb(var(--aged-gold-rgb) / 0.2);
}
.gemma-cms-placeholder {
  text-align: center;
  padding: 2rem 1rem 0;
  max-width: 520px;
  margin: 0 auto 2rem;
}
.gemma-cms-soon {
  font-style: italic;
  color: var(--mist-grey);
  font-weight: 300;
  letter-spacing: 0.02em;
}
@media (max-width: 700px) {
  .gemma-cms-section--img-left,
  .gemma-cms-section--img-right {
    grid-template-columns: 1fr;
  }
}

.gemma-cms-intro-block {
  max-width: 900px;
  margin: 0 auto 2rem;
}
.gemma-cms-intro-block .gemma-cms-intro {
  max-width: none;
  margin: 0;
}
.gemma-cms-intro-block.gemma-cms-section--full .gemma-cms-img-wrap img {
  max-height: min(70vh, 560px);
  width: auto;
  object-fit: contain;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .tarot-layout { flex-direction: column; }
  .tarot-sidebar { flex: none; position: static; }
  .about-page-row { flex-direction: column; align-items: stretch; }
  .about-feature-image-wrap { flex: none; max-width: none; position: static; margin: 0 auto 1.5rem; width: min(100%, 360px); }
  .about-layout { flex-direction: column; }
  .about-portrait { flex: none; position: static; width: 100%; max-width: 300px; margin: 0 auto 2rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, 200px); }
  .gemma-gallery-masonry { column-count: 2; }
  .gemma-gallery-cats { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; }
  .gemma-gallery-section { padding: 2rem 2rem 4rem; }
  .gemma-lb { padding: 2rem 3rem; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .gemma-promo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-card { flex-direction: column; }
  .book-cover { flex: none; width: 180px; }
}
@media (max-width: 700px) {
  .gemma-jewellery-detail-grid,
  .gemma-art-detail-grid {
    grid-template-columns: 1fr !important;
  }
  nav { padding: 0 1.5rem calc(var(--nav-height) * var(--nav-optical-lift, 0.15)); }
  .nav-brand { max-width: calc(100% - 6.5rem); }
  .nav-links { display: none; }
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgb(var(--deep-green-rgb) / 0.98);
    padding: 1.5rem 2rem;
    gap: 1.2rem;
    border-bottom: 1px solid rgb(var(--forest-green-rgb) / 0.4);
  }
  .nav-toggle { display: block; }
  .form-row { flex-direction: column; }
  section { padding: 4rem 1.5rem; }
  .page-header { padding: calc(var(--nav-height) + var(--page-header-padding)) 1.5rem var(--page-header-padding); }
  .page-header::before { inset: 1rem; }
  .hero h1 { font-size: 2rem; }
  .hero .hero-sigil.hero-sigil--image { --hero-sigil-box: calc(3rem * 2 / 2.8); }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, 180px); }
  .gemma-gallery-masonry { column-count: 1; column-gap: 1rem; }
  .gemma-gallery-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .gemma-gallery-section { padding: 1.5rem 1.25rem 3rem; }
  .gemma-lb-nav { width: 2.5rem; height: 2.5rem; font-size: 1.25rem; }
  .gemma-lb-prev { left: 0.35rem; }
  .gemma-lb-next { right: 0.35rem; }
}
@media (max-width: 500px) {
  .gemma-promo-grid { grid-template-columns: minmax(0, 1fr); }
  .gemma-gallery-cats { grid-template-columns: minmax(0, 1fr); }
}
