/* ─── JEWELLERY THEME — fine jewellery, gems, premium accessories ─── */

body.theme-jewellery {
  /* ── Typography — Swiss 721 Std Roman throughout ─────────────────────── */
  --font-family: 'Swiss 721 Std Roman', 'Swiss 721 BT', 'Swiss721 BT', 'Swiss 721', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-heading: 'Swiss 721 Std Roman', 'Swiss 721 BT', 'Swiss721 BT', 'Swiss 721', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-sans: var(--font-family);

  /* ── Brand — warm gold on cream ─────────────────────────────────────── */
  --color-primary: #C9A052;
  --color-primary-hover: #A88542;
  --color-accent: #D4AF37;
  --color-on-primary: #ffffff;

  /* ── Surfaces — cream and ivory ─────────────────────────────────────── */
  --color-bg: #F5F3EF;
  --color-surface: #ffffff;
  --color-surface-elevated: #FFF9F5;

  /* ── Text ────────────────────────────────────────────────────────────── */
  --color-text: #1A1A1A;
  --color-muted: #7A6F5D;
  --color-border: #E5E1DA;

  /* ── Geometry — softly rounded ───────────────────────────────────────── */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --radius-pill: 999px;
  --border-radius: var(--radius-md);

  /* ── Shadows — very subtle, airy ─────────────────────────────────────── */
  --shadow-header: 0 1px 0 rgba(201, 160, 82, 0.15);
  --shadow-pcard: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-pcard-hover: 0 8px 24px rgba(201, 160, 82, 0.18);
  --shadow-xs: 0 1px 4px rgba(0, 0, 0, 0.03);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.07);
  --shadow-toast: 0 4px 12px rgba(0, 0, 0, 0.10);
  --shadow-drawer: -8px 0 32px rgba(0, 0, 0, 0.08);
  --shadow-offcanvas: -8px 0 32px rgba(0, 0, 0, 0.06);
  --shadow-bottom-bar: 0 -2px 10px rgba(0, 0, 0, 0.05);

  /* ── Header — frosted cream ──────────────────────────────────────────── */
  --color-header-bg: #FAFAF8;
  --color-header-text: #1A1A1A;
  --color-header-icon: #C9A052;
  --color-header-icon-hover-bg: rgba(201, 160, 82, 0.08);
  --color-header-logo: #1A1A1A;
  --color-header-nav: #5A5248;
  --color-header-nav-hover: #C9A052;
  --color-header-nav-active: #C9A052;
  --color-header-border: rgba(201, 160, 82, 0.18);
  --color-header-search-bg: rgba(255, 255, 255, 0.80);
  --color-header-search-text: #1A1A1A;
  --color-header-search-border: #E5E1DA;
  --color-header-search-placeholder: #9B9181;

  /* ── Navigation — clean, elegant ────────────────────────────────────── */
  --nav-text-transform: none;
  --nav-letter-spacing: 0.01em;
  --nav-font-weight: 500;
  --nav-font-size: 0.82rem;

  /* ── Footer — dark contrast ──────────────────────────────────────────── */
  --color-footer-bg: #1A1A1A;
  --color-footer-text: rgba(245, 243, 239, 0.65);
  --color-footer-heading: #C9A052;
  --color-footer-border: rgba(201, 160, 82, 0.15);
  --color-footer-link: rgba(245, 243, 239, 0.55);
  --color-footer-link-hover: #C9A052;
  --color-footer-logo: #ffffff;

  /* ── Section headings — elegant row layout ───────────────────────────── */
  --section-head-direction: row;
  --section-head-align: flex-end;
  --section-head-justify: space-between;
  --section-title-font: var(--font-heading);
  --section-title-size: clamp(1.2rem, 3.2vw, 2rem);
  --section-title-weight: 500;
  --section-title-transform: none;
  --section-title-spacing: 0.01em;
  --section-title-color: #1A1A1A;
  --section-subtitle-color: var(--color-muted);

  /* ── Product cards — portrait, white, softly rounded ────────────────── */
  --pcard-radius: 12px;
  --pcard-bg: var(--color-surface);
  --pcard-border-color: #E5E1DA;
  --pcard-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  --pcard-shadow-hover: 0 8px 24px rgba(201, 160, 82, 0.18);
  --pcard-hover-shadow: var(--pcard-shadow-hover);
  --pcard-aspect-ratio: 4 / 5;
  --pcard-gallery-bg: #F8F6F3;
  --pcard-title-font: var(--font-heading);
  --pcard-title-weight: 400;
  --pcard-title-size: 0.88rem;
  --pcard-price-color: #A88542;
  --pcard-btn-radius: 8px;
  --pcard-btn-transform: none;
  --pcard-btn-spacing: 0.01em;
  --pcard-btn-size: 0.75rem;

  /* ── Buttons — warm gold, refined ───────────────────────────────────── */
  --btn-radius: 8px;
  --btn-font-weight: 500;
  --btn-text-transform: none;
  --btn-letter-spacing: 0.02em;
  --btn-font-size: 0.84rem;
  --btn-padding-x: 1.5rem;
  --btn-padding-y: 0.65rem;

  /* ── Inputs ──────────────────────────────────────────────────────────── */
  --input-radius: 8px;

  /* ── Badges ──────────────────────────────────────────────────────────── */
  --badge-radius: 8px;

  /* ── Hero — light, elegant cross-fade ───────────────────────────────── */
  --hero-mode: stacked-fade;
  --hero-autoplay-ms: 5500;
  --hero-text-align: center;
  --hero-overlay: rgba(26, 26, 26, 0.12);
  --hero-title-font: var(--font-heading);
  --hero-title-size: clamp(1.4rem, 4.5vw, 3.2rem);
  --hero-title-weight: 400;
  --hero-title-transform: none;
  --hero-shell-radius: 0px;
  --hero-max-height: min(72vh, 560px);
  --hero-dot-color: rgba(201, 160, 82, 0.35);
  --hero-dot-active-color: #C9A052;

  /* ── Component-specific overrides ───────────────────────────────────── */
  --color-overlay-scrim: rgba(26, 26, 26, 0.50);
  --color-option-selected-bg: rgba(201, 160, 82, 0.10);
  --color-pcard-wishlist-bg: rgba(255, 255, 255, 0.92);
  --color-pill-accent-bg: rgba(201, 160, 82, 0.10);
}

/* Jewellery — gentle soft dissolve, full image always visible */
body.theme-jewellery .sf-hero .sf-hero__shell .sf-hero__track {
  display: block;
  position: relative;
  overflow: hidden;
  scroll-snap-type: none;
  width: 100%;
  aspect-ratio: unset;
  height: var(--hero-max-height, min(72vh, 560px));
  max-height: var(--hero-max-height, min(72vh, 560px));
  background-color: var(--color-surface-elevated, #FFF9F5);
}

body.theme-jewellery .sf-hero .sf-hero__slide {
  position: absolute;
  inset: 0;
  flex: none;
  width: 100%;
  scroll-snap-align: unset;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.9s ease-in-out;
  pointer-events: none;
  background-color: var(--color-surface-elevated, #FFF9F5);
}

body.theme-jewellery .sf-hero .sf-hero__slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

body.theme-jewellery .sf-hero .sf-hero__slide img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Mobile: let the image set its own height — no fixed container */
@media (max-width: 640px) {
  body.theme-jewellery .sf-hero .sf-hero__shell .sf-hero__track {
    height: auto;
    max-height: none;
  }

  body.theme-jewellery .sf-hero .sf-hero__slide {
    position: relative;
    inset: auto;
    opacity: 1;
    transition: none;
    pointer-events: auto;
  }

  body.theme-jewellery .sf-hero .sf-hero__slide:not(.is-active) {
    display: none;
  }

  body.theme-jewellery .sf-hero .sf-hero__slide img {
    width: 100%;
    height: auto;
    object-fit: unset;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-jewellery .sf-hero .sf-hero__slide {
    transition: none;
  }
}

/* ── Mobile: compact token sizes for screens ≤ 640px ────────────────────── */
@media (max-width: 640px) {
  body.theme-jewellery {
    --nav-font-size: 0.76rem;
    --section-title-size: 1.15rem;
    --hero-title-size: 1.3rem;
    --pcard-title-size: 0.78rem;
    --pcard-btn-size: 0.68rem;
    --pcard-radius: 10px;
    --btn-font-size: 0.75rem;
    --btn-padding-x: 1.1rem;
    --btn-padding-y: 0.5rem;
    --btn-radius: 7px;
    --input-radius: 7px;
    --badge-radius: 7px;
  }
}

/* ── Small mobile: tighten further for screens ≤ 400px ──────────────────── */
@media (max-width: 400px) {
  body.theme-jewellery {
    --section-title-size: 1.05rem;
    --hero-title-size: 1.15rem;
    --pcard-title-size: 0.74rem;
    --pcard-btn-size: 0.64rem;
    --btn-font-size: 0.72rem;
    --btn-padding-x: 0.95rem;
    --btn-padding-y: 0.45rem;
  }
}
