/*
Theme Name: Haidar & Co. Luxury
Theme URI: https://h-boutique.com
Author: AFK Design Group
Author URI: https://afkdesigngroup.com
Description: A bespoke luxury jewelry theme for Haidar & Co. — inspired by Cartier, Tiffany & Co., Van Cleef & Arpels, and Apple. Cinematic, minimal, immersive.
Version: 3.3.2
Requires at least: 6.0
Tested up to: 6.7
WC requires at least: 8.0
WC tested up to: 9.4
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: haidar-luxury
Tags: woocommerce, luxury, jewelry, minimal, dark, custom-logo, custom-menu, featured-images, full-site-editing
*/

/* ============================================================
   DESIGN TOKENS & CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Palette */
  --color-obsidian:    #0a0a0a;
  --color-ink:         #111111;
  --color-charcoal:    #1a1a1a;
  --color-steel:       #2c2c2c;
  --color-mist:        #888888;
  --color-silver:      #b8b8b8;
  --color-alabaster:   #f0ede8;
  --color-ivory:       #f8f6f2;
  --color-white:       #ffffff;
  --color-gold:        #c4952a;
  --color-gold-light:  #e8c96b;
  --color-gold-muted:  #8a6520;
  --color-champagne:   #f5e6c8;

  /* Semantic */
  --bg-primary:        var(--color-ivory);
  --bg-dark:           var(--color-obsidian);
  --bg-card:           var(--color-white);
  --text-primary:      var(--color-ink);
  --text-secondary:    #4a4a4a;
  --text-muted:        var(--color-mist);
  --text-inverse:      var(--color-ivory);
  --accent:            var(--color-gold);
  --accent-hover:      var(--color-gold-light);
  --border-subtle:     rgba(0,0,0,0.08);
  --border-light:      rgba(0,0,0,0.12);
  --border-gold:       rgba(196,149,42,0.35);

  /* Typography */
  --font-display:      'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body:         'Jost', 'Gill Sans', 'Century Gothic', sans-serif;
  --font-mono:         'Courier New', monospace;

  /* Spacing */
  --space-xs:    0.375rem;
  --space-sm:    0.75rem;
  --space-md:    1.25rem;
  --space-lg:    2rem;
  --space-xl:    3.5rem;
  --space-2xl:   6rem;
  --space-3xl:   9rem;

  /* Transitions */
  --ease-luxury: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast:   180ms;
  --duration-base:   380ms;
  --duration-slow:   700ms;
  --duration-xslow: 1200ms;

  /* Sizes */
  --nav-height: 80px;
  --container:  1280px;
  --container-sm: 860px;

  /* Radii */
  --radius-sm:  2px;
  --radius-md:  6px;
  --radius-lg:  12px;
  --radius-xl:  24px;
  --radius-full:9999px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;  /* fallback for very old browsers */
  overflow-x: clip;    /* does NOT create a scroll container -> page can never slide sideways */
}

html {
  overflow-x: hidden;
  overflow-x: clip;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.8rem, 7vw, 6.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 4rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.7rem); }
h5 { font-size: 1.15rem; font-family: var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 300; }
h6 { font-size: 0.75rem; font-family: var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; font-weight: 400; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--accent);
}

p { max-width: 68ch; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.container--sm {
  max-width: var(--container-sm);
}

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

.text-center { text-align: center; }
.text-gold { color: var(--accent); }
.bg-dark { background-color: var(--bg-dark); color: var(--text-inverse); }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--text-inverse); }

/* Gold divider */
.divider-gold {
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin: var(--space-md) auto;
}
.divider-gold--left { margin-left: 0; }

/* Fade-up animation trigger */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--duration-slow) var(--ease-luxury),
              transform var(--duration-slow) var(--ease-luxury);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal--delay-1 { transition-delay: 120ms; }
.reveal--delay-2 { transition-delay: 240ms; }
.reveal--delay-3 { transition-delay: 360ms; }
.reveal--delay-4 { transition-delay: 480ms; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 0.95em 2.4em;
  border: 1px solid currentColor;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-luxury);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  transform: translateY(100%);
  transition: transform var(--duration-base) var(--ease-luxury),
              opacity var(--duration-fast) var(--ease-luxury);
}

.btn:hover::after {
  transform: translateY(0);
  opacity: 0.07;
}

.btn--gold {
  background: var(--accent);
  color: var(--color-white);
  border-color: var(--accent);
}
.btn--gold:hover {
  background: var(--color-gold-muted);
  border-color: var(--color-gold-muted);
  color: var(--color-white);
}

.btn--outline-dark {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-light);
}
.btn--outline-dark:hover {
  border-color: var(--text-primary);
}

.btn--outline-light {
  background: transparent;
  color: var(--color-ivory);
  border-color: rgba(255,255,255,0.4);
}
.btn--outline-light:hover {
  border-color: var(--color-ivory);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}
.btn--ghost:hover { color: var(--accent); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--duration-slow) var(--ease-luxury),
              box-shadow var(--duration-slow) var(--ease-luxury);
}

.site-header.is-scrolled {
  background: rgba(248,246,242,0.95);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 1px 0 var(--border-subtle);
}

.site-header.is-transparent {
  background: transparent;
}

.site-header.is-dark-hero .nav-link,
.site-header.is-dark-hero .nav-actions a {
  color: var(--color-ivory);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.nav-logo {
  flex: 0 0 auto;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-logo .logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-primary);
  font-weight: 400;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--duration-base) var(--ease-luxury);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--duration-base) var(--ease-luxury);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mega menu dropdown */
.nav-item--has-mega {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--color-white);
  border: 1px solid var(--border-subtle);
  padding: var(--space-xl);
  display: grid;
  grid-template-columns: repeat(4, 180px);
  gap: var(--space-lg);
  opacity: 0;
  pointer-events: none;
  transition: all var(--duration-base) var(--ease-luxury);
  min-width: 720px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.nav-item--has-mega:hover .mega-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.mega-category-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
  font-weight: 400;
}

.mega-link {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.25rem 0;
  transition: color var(--duration-fast);
}

.mega-link:hover { color: var(--text-primary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-actions a,
.nav-actions button,
.nav-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--duration-fast);
  text-decoration: none;
}

.nav-actions a:hover,
.nav-actions button:hover,
.nav-icon:hover { color: var(--accent); }

.nav-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--accent);
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-size: 0.6rem;
  font-weight: 500;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text-primary);
  transition: all var(--duration-base) var(--ease-luxury);
}

/* ============================================================
   HERO — FULLSCREEN CINEMATIC
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-obsidian);
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  transform: scale(1.05);
  animation: heroReveal var(--duration-xslow) var(--ease-luxury) forwards;
}

@keyframes heroReveal {
  from { opacity: 0; transform: scale(1.1); }
  to   { opacity: 0.62; transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,0.88) 0%,
    rgba(10,10,10,0.35) 50%,
    rgba(10,10,10,0.12) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg) var(--space-3xl);
}

.hero-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-luxury) 0.5s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 8.5rem);
  font-weight: 300;
  line-height: 0.95;
  color: var(--color-ivory);
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeUp 1s var(--ease-luxury) 0.7s forwards;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: italic;
  color: var(--color-champagne);
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(240,237,232,0.7);
  max-width: 420px;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  opacity: 0;
  animation: fadeUp 1s var(--ease-luxury) 0.9s forwards;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  opacity: 0;
  animation: fadeUp 1s var(--ease-luxury) 1.1s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-xl);
  right: var(--space-lg);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeIn 1s var(--ease-luxury) 1.8s forwards;
}

.hero-scroll span {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(240,237,232,0.5);
  writing-mode: vertical-lr;
}

.hero-scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s var(--ease-luxury) infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.6); opacity: 0.4; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   MARQUEE STRIP
   ============================================================ */
.marquee-strip {
  background: var(--color-charcoal);
  padding: 14px 0;
  overflow: hidden;
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 2.4rem;
  padding-right: 2.4rem;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-silver);
}

.marquee-item::before {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--accent);
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SECTION FRAMEWORK
   ============================================================ */
.section {
  padding: var(--space-3xl) 0;
}

.section--compact {
  padding: var(--space-2xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header .eyebrow {
  display: block;
  margin-bottom: var(--space-sm);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  color: var(--text-secondary);
  margin: 0 auto;
  font-size: 1rem;
  max-width: 52ch;
}

/* ============================================================
   FEATURED COLLECTIONS — EDITORIAL GRID
   ============================================================ */
.collections-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 2px;
}

.collection-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-steel);
  aspect-ratio: 3/4;
}

.collection-card:first-child {
  grid-row: 1 / 3;
  aspect-ratio: 3/5;
}

.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-xslow) var(--ease-luxury);
}

.collection-card:hover img {
  transform: scale(1.04);
}

.collection-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.75) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-xl);
  transition: background var(--duration-slow) var(--ease-luxury);
}

.collection-card:hover .collection-overlay {
  background: linear-gradient(to top, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.1) 55%);
}

.collection-info .eyebrow { color: var(--color-gold-light); margin-bottom: var(--space-xs); }
.collection-info h3 { color: var(--color-ivory); margin-bottom: var(--space-sm); }

.collection-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240,237,232,0.6);
  transition: all var(--duration-base) var(--ease-luxury);
  transform: translateY(6px);
  opacity: 0;
}

.collection-card:hover .collection-link {
  transform: translateY(0);
  opacity: 1;
  color: var(--color-ivory);
}

.collection-link::after {
  content: '→';
  transition: transform var(--duration-fast);
}

.collection-card:hover .collection-link::after {
  transform: translateX(4px);
}

/* ============================================================
   STORYTELLING SECTIONS
   ============================================================ */
.story-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
  align-items: stretch;
}

.story-section--reversed {
  direction: rtl;
}
.story-section--reversed > * {
  direction: ltr;
}

.story-visual {
  position: relative;
  overflow: hidden;
}

.story-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-3xl) var(--space-2xl);
  background: var(--color-white);
}

.story-content.bg-dark {
  background: var(--color-obsidian);
}

.story-content .eyebrow {
  margin-bottom: var(--space-md);
}

.story-content h2 {
  margin-bottom: var(--space-lg);
}

.story-content p {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  font-size: 1.05rem;
  line-height: 1.8;
}

.story-content.bg-dark p {
  color: var(--color-silver);
}

/* ============================================================
   PRODUCTS — LUXURY GRID
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px;
}

.products-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.product-card {
  position: relative;
  background: var(--color-white);
  group: true;
}

.product-card-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--color-alabaster);
}

.product-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-xslow) var(--ease-luxury);
}

.product-card:hover .product-card-visual img {
  transform: scale(1.06);
}

.product-card-img-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-luxury);
}

.product-card:hover .product-card-img-hover {
  opacity: 1;
}

.product-card-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  display: flex;
  gap: 8px;
  transform: translateY(100%);
  transition: transform var(--duration-base) var(--ease-spring);
}

.product-card:hover .product-card-actions {
  transform: translateY(0);
}

.product-card-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--accent);
  color: var(--color-white);
}

.product-card-badge--new {
  background: var(--color-ink);
}

.product-card-wishlist {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--duration-fast), transform var(--duration-fast);
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.product-card:hover .product-card-wishlist {
  opacity: 1;
}

.product-card-wishlist:hover {
  transform: scale(1.1);
  color: var(--accent);
}

.product-card-info {
  padding: var(--space-md) var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border-subtle);
}

.product-card-category {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.product-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-card-price {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-card-price del {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.product-card-price ins {
  text-decoration: none;
  color: var(--text-primary);
}

/* ============================================================
   GEMSTONE EXPLORER
   ============================================================ */
.gemstone-explorer {
  background: var(--color-obsidian);
  padding: var(--space-3xl) 0;
  color: var(--text-inverse);
}

.gemstone-explorer h2 { color: var(--color-ivory); }
.gemstone-explorer .section-header p { color: var(--color-silver); }

.gem-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: var(--space-2xl);
}

.gem-filter-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--color-silver);
  padding: 0.5em 1.4em;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-luxury);
  font-family: var(--font-body);
}

.gem-filter-btn:hover,
.gem-filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--color-white);
}

.gem-filter-btn.active {
  color: var(--color-white);
}

.gem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.04);
}

.gem-card {
  background: var(--color-charcoal);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  cursor: pointer;
  transition: background var(--duration-base) var(--ease-luxury);
  position: relative;
  overflow: hidden;
}

.gem-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--border-gold);
  opacity: 0;
  transition: opacity var(--duration-base);
}

.gem-card:hover {
  background: #1e1a12;
}

.gem-card:hover::before {
  opacity: 1;
}

.gem-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.gem-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gem-card-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-ivory);
  margin-bottom: 4px;
}

.gem-card-origin {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.gem-card-desc {
  font-size: 0.85rem;
  color: var(--color-mist);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.gem-card-count {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

/* Gem detail strip */
.gem-attributes {
  display: flex;
  gap: 1px;
  margin-top: 1px;
  background: rgba(255,255,255,0.04);
}

.gem-attribute {
  flex: 1;
  background: var(--color-charcoal);
  padding: var(--space-lg);
  text-align: center;
}

.gem-attribute-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-mist);
  margin-bottom: 6px;
}

.gem-attribute-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-ivory);
}

/* ============================================================
   SINGLE PRODUCT
   ============================================================ */
.product-page {
  padding-top: calc(var(--nav-height) + var(--space-2xl));
  padding-bottom: var(--space-3xl);
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

/* Product Gallery */
.product-gallery {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-lg));
}

.product-gallery-main {
  position: relative;
  overflow: hidden;
  background: var(--color-alabaster);
  aspect-ratio: 1;
  margin-bottom: 2px;
  cursor: zoom-in;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-luxury);
}

.product-gallery-main.is-zoomed img {
  transform: scale(1.8);
  cursor: zoom-out;
}

.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.product-gallery-thumb {
  background: var(--color-alabaster);
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--duration-fast);
}

.product-gallery-thumb.active {
  border-color: var(--accent);
}

.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-base) var(--ease-luxury);
}

.product-gallery-thumb:hover img {
  transform: scale(1.08);
}

/* Product Info */
.product-info-wrap {
  padding-top: var(--space-lg);
}

.product-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

.product-breadcrumbs a { transition: color var(--duration-fast); }
.product-breadcrumbs a:hover { color: var(--accent); }
.product-breadcrumbs span { color: var(--border-light); }

.product-category-tag {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

/* Scoped to the single-product H1 only — WooCommerce sidebar widgets
   also output a .product-title span, which this rule used to hijack,
   blowing widget product names up to 3rem display serif. */
h1.product-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-lg);
}

.product-stars {
  display: flex;
  gap: 2px;
  color: var(--accent);
  font-size: 0.85rem;
}

.product-review-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.product-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.product-price del {
  font-size: 1.3rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-right: 8px;
}

.product-price ins {
  text-decoration: none;
}

.product-divider {
  width: 100%;
  height: 1px;
  background: var(--border-subtle);
  margin: var(--space-lg) 0;
}

/* Stone attributes */
.stone-attributes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  background: var(--color-alabaster);
  border-left: 2px solid var(--accent);
}

.stone-attr-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.stone-attr-value {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 400;
}

/* Variation selectors */
.product-variations {
  margin-bottom: var(--space-xl);
}

.variation-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.variation-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.swatch-btn {
  min-width: 52px;
  padding: 0.5em 1em;
  border: 1px solid var(--border-light);
  background: transparent;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--duration-fast);
  font-family: var(--font-body);
  color: var(--text-secondary);
}

.swatch-btn:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.swatch-btn.active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--color-white);
}

.swatch-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Add to cart */
.product-form {
  margin-bottom: var(--space-xl);
}

.product-quantity-atc {
  display: flex;
  gap: 12px;
  margin-top: var(--space-lg);
}

.quantity-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-light);
  height: 50px;
}

.quantity-btn {
  width: 44px;
  height: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--duration-fast);
}

.quantity-btn:hover {
  background: var(--color-alabaster);
  color: var(--text-primary);
}

.quantity-input {
  width: 50px;
  height: 100%;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
}

.atc-btn {
  flex: 1;
  height: 50px;
  background: var(--color-ink);
  color: var(--color-ivory);
  border: none;
  cursor: pointer;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-body);
  transition: background var(--duration-base) var(--ease-luxury);
  position: relative;
  overflow: hidden;
}

.atc-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  transition: transform var(--duration-slow) var(--ease-luxury);
}

.atc-btn:hover::before { transform: translateX(0); }
.atc-btn span { position: relative; }

.wishlist-btn {
  width: 50px;
  height: 50px;
  border: 1px solid var(--border-light);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast);
  font-size: 1.1rem;
}

.wishlist-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.wishlist-btn.is-wishlisted {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--color-white);
}

/* Product trust signals */
.product-trust {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  text-align: center;
  padding: var(--space-md);
}

.trust-icon {
  font-size: 1.3rem;
  margin-bottom: 6px;
  display: block;
}

.trust-label {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Product tabs */
.product-tabs {
  margin-top: var(--space-3xl);
  border-top: 1px solid var(--border-subtle);
}

.tab-nav {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: var(--space-md) var(--space-lg);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--duration-base) var(--ease-luxury);
  font-family: var(--font-body);
  white-space: nowrap;
}

.tab-btn.active {
  border-bottom-color: var(--accent);
  color: var(--text-primary);
}

.tab-panel {
  padding: var(--space-2xl) 0;
  display: none;
}

.tab-panel.active { display: block; }

/* ============================================================
   FLOATING CART DRAWER
   ============================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.5);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-luxury);
}

.cart-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(480px, 100vw);
  background: var(--color-white);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-luxury);
  display: flex;
  flex-direction: column;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.cart-drawer-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
}

.cart-drawer-close {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color var(--duration-fast);
}

.cart-drawer-close:hover { color: var(--text-primary); }

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg) var(--space-xl);
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: var(--space-md);
  align-items: start;
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  background: var(--color-alabaster);
}

.cart-item-details {}

.cart-item-name {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 4px;
  line-height: 1.3;
}

.cart-item-variant {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.cart-item-price {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--duration-fast);
}

.cart-item-remove:hover { color: var(--text-primary); }

.cart-drawer-footer {
  padding: var(--space-lg) var(--space-xl) var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
  background: var(--color-white);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cart-subtotal-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.cart-footer-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: var(--space-md);
  letter-spacing: 0.08em;
}

/* ============================================================
   WISHLIST HEART
   ============================================================ */
.wishlist-notification {
  position: fixed;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--color-ink);
  color: var(--color-ivory);
  padding: 0.8em 1.6em;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  z-index: 2000;
  transition: transform var(--duration-base) var(--ease-spring),
              opacity var(--duration-base);
  opacity: 0;
}

.wishlist-notification.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.newsletter-section {
  background: var(--color-charcoal);
  padding: var(--space-3xl) 0;
  text-align: center;
}

.newsletter-section h2 { color: var(--color-ivory); }
.newsletter-section p { color: var(--color-silver); margin: var(--space-md) auto var(--space-xl); }

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.15);
}

.newsletter-input {
  flex: 1;
  padding: 0 var(--space-md);
  background: transparent;
  border: none;
  outline: none;
  color: var(--color-ivory);
  font-family: var(--font-body);
  font-size: 0.9rem;
  height: 52px;
}

.newsletter-input::placeholder {
  color: var(--color-mist);
  letter-spacing: 0.1em;
  font-size: 0.78rem;
}

.newsletter-submit {
  padding: 0 var(--space-xl);
  background: var(--accent);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-body);
  height: 52px;
  transition: background var(--duration-fast);
}

.newsletter-submit:hover { background: var(--color-gold-muted); }

/* ============================================================
   INSTAGRAM GRID
   ============================================================ */
.instagram-section {
  padding: var(--space-2xl) 0;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  margin-top: var(--space-xl);
}

.instagram-item {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.instagram-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-luxury);
}

.instagram-item:hover img { transform: scale(1.08); }

.instagram-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(196,149,42,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-luxury);
}

.instagram-item:hover .instagram-item-overlay { opacity: 1; }

.instagram-item-overlay span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-white);
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: #25D366;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform var(--duration-base) var(--ease-spring),
              box-shadow var(--duration-base);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
  color: var(--color-white);
}

.whatsapp-float::before {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 12px);
  white-space: nowrap;
  background: var(--color-ink);
  color: var(--color-ivory);
  padding: 6px 14px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-body);
  opacity: 0;
  transform: translateX(8px);
  transition: all var(--duration-base) var(--ease-luxury);
  pointer-events: none;
}

.whatsapp-float:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-obsidian);
  color: var(--color-silver);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-ivory);
  margin-bottom: var(--space-md);
  font-weight: 400;
  letter-spacing: 0.06em;
}

.footer-tagline {
  font-size: 0.82rem;
  line-height: 1.7;
  max-width: 26ch;
  margin-bottom: var(--space-lg);
  color: rgba(184,184,184,0.7);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--color-mist);
  transition: all var(--duration-base) var(--ease-luxury);
}

.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.footer-heading {
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-ivory);
  margin-bottom: var(--space-lg);
  font-family: var(--font-body);
  font-weight: 400;
}

.footer-links { display: flex; flex-direction: column; gap: var(--space-sm); }

.footer-link {
  font-size: 0.85rem;
  color: rgba(184,184,184,0.65);
  transition: color var(--duration-fast);
}

.footer-link:hover { color: var(--color-ivory); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 0.72rem;
  color: rgba(184,184,184,0.4);
  letter-spacing: 0.08em;
}

.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal a {
  font-size: 0.7rem;
  color: rgba(184,184,184,0.4);
  transition: color var(--duration-fast);
}

.footer-legal a:hover { color: var(--color-silver); }

/* ============================================================
   WOOCOMMERCE OVERRIDES
   ============================================================ */

/* Preserve all WooCommerce functionality */
.woocommerce-notices-wrapper { margin-bottom: var(--space-lg); }

.woocommerce-message,
.woocommerce-info {
  background: var(--color-champagne);
  border-top: 3px solid var(--accent);
  padding: var(--space-md) var(--space-lg);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.woocommerce-error {
  background: #fff5f5;
  border-top: 3px solid #c0392b;
  padding: var(--space-md) var(--space-lg);
  font-size: 0.85rem;
}

/* WooCommerce product loop */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce ul.products li.product {
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  width: auto !important;
  background: var(--color-white);
}

.woocommerce ul.products li.product a img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform var(--duration-xslow) var(--ease-luxury);
}

.woocommerce ul.products li.product:hover a img {
  transform: scale(1.05);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-display) !important;
  font-size: 1.15rem !important;
  font-weight: 400 !important;
  color: var(--text-primary) !important;
  padding: var(--space-md) var(--space-md) 4px !important;
}

.woocommerce ul.products li.product .price {
  padding: 0 var(--space-md) var(--space-md) !important;
  font-size: 0.9rem !important;
  color: var(--text-secondary) !important;
}

.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product .button {
  display: block !important;
  margin: 0 var(--space-md) var(--space-md) !important;
  background: var(--color-ink) !important;
  color: var(--color-ivory) !important;
  border: none !important;
  border-radius: 0 !important;
  font-family: var(--font-body) !important;
  font-size: 0.66rem !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  padding: 0.8em 1.2em !important;
  transition: background var(--duration-base) !important;
}

.woocommerce ul.products li.product a.button:hover,
.woocommerce ul.products li.product .button:hover {
  background: var(--accent) !important;
}

/* WooCommerce single product */
.woocommerce div.product div.images {
  float: none !important;
  width: auto !important;
}

.woocommerce div.product div.summary {
  float: none !important;
  width: auto !important;
}

/* WooCommerce form elements */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  border: 1px solid var(--border-light) !important;
  border-radius: 0 !important;
  padding: 0.75em 1em !important;
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  transition: border-color var(--duration-fast) !important;
  width: 100% !important;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  border-color: var(--accent) !important;
  outline: none !important;
  box-shadow: none !important;
}

/* WooCommerce buttons */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--color-ink) !important;
  color: var(--color-ivory) !important;
  border-radius: 0 !important;
  font-family: var(--font-body) !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  padding: 0.9em 2em !important;
  border: none !important;
  transition: background var(--duration-base) !important;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--accent) !important;
  color: var(--color-white) !important;
}

.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background: var(--accent) !important;
}

.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background: var(--color-gold-muted) !important;
}

/* WooCommerce checkout */
.woocommerce-checkout #payment {
  background: var(--color-alabaster) !important;
  border-radius: 0 !important;
}

.woocommerce-page .cart-collaterals .cart_totals {
  background: var(--color-alabaster) !important;
  padding: var(--space-xl) !important;
}

/* Breadcrumb */
.woocommerce .woocommerce-breadcrumb {
  font-size: 0.7rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--text-muted) !important;
  margin-bottom: var(--space-xl) !important;
}

/* Ratings */
.woocommerce .star-rating span::before,
.woocommerce .star-rating::before {
  color: var(--accent) !important;
}

/* Filters / widgets */
.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content {
  background: var(--color-alabaster) !important;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-range {
  background: var(--accent) !important;
}

.woocommerce .widget_price_filter .ui-slider-handle {
  background: var(--color-ink) !important;
  border-radius: 0 !important;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  border-radius: 0 !important;
  font-size: 0.8rem !important;
  transition: all var(--duration-fast) !important;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--color-ink) !important;
  color: var(--color-ivory) !important;
}

/* ============================================================
   SHOP / ARCHIVE PAGE
   ============================================================ */
.shop-hero {
  background: var(--color-alabaster);
  padding: calc(var(--nav-height) + var(--space-2xl)) 0 var(--space-2xl);
  text-align: center;
}

.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-2xl);
  padding: var(--space-2xl) 0;
  align-items: start;
}

.shop-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-lg));
}

.sidebar-widget {
  margin-bottom: var(--space-2xl);
}

.sidebar-widget-title {
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-subtle);
}

.filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--duration-fast);
}

.filter-option:hover { color: var(--text-primary); }

.filter-option-count {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
}

.shop-result-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.shop-sort select {
  border: 1px solid var(--border-light);
  padding: 0.5em 1em;
  font-family: var(--font-body);
  font-size: 0.78rem;
  background: transparent;
  cursor: pointer;
  outline: none;
}

/* ============================================================
   CURRENCY / LANGUAGE SWITCHER
   ============================================================ */
.switcher-bar {
  background: var(--color-charcoal);
  padding: 8px var(--space-lg);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.sw-select,
.switcher-select {
  background: transparent;
  border: none;
  color: var(--color-mist);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  font-family: var(--font-body);
  transition: color var(--duration-fast);
}

.sw-select:hover,
.switcher-select:hover { color: var(--color-ivory); }
.sw-select option,
.switcher-select option { background: var(--color-charcoal); }

.sw-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-mist);
  font-family: var(--font-body);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --nav-height: 70px; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .story-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .story-visual {
    height: 50vw;
    min-height: 300px;
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-sidebar {
    position: static;
  }

  .instagram-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --space-3xl: 5rem;
    --space-2xl: 3.5rem;
  }

  .nav-menu { display: none; }

  .nav-hamburger { display: flex; }

  .collections-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .collection-card:first-child {
    grid-row: auto;
  }

  .collection-card { aspect-ratio: 4/3; }

  .products-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .product-gallery {
    position: static;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .gem-attributes {
    grid-template-columns: repeat(2, 1fr);
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-input {
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }

  .instagram-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stone-attributes {
    grid-template-columns: 1fr;
  }

  .product-trust {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gem-grid {
    grid-template-columns: 1fr 1fr;
  }

  .products-grid--3 {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: clamp(2.8rem, 13vw, 5rem);
  }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .site-header,
  .whatsapp-float,
  .cart-drawer,
  .cart-overlay,
  .switcher-bar,
  .marquee-strip {
    display: none !important;
  }
}

/* ============================================================
   SCHEMA / ACCESSIBLE HELPERS
   ============================================================ */
[data-schema] { display: none; }

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

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Selection */
::selection {
  background: var(--color-champagne);
  color: var(--color-ink);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Custom cursor — luxury jewelry sites */
@media (pointer: fine) {
  body { cursor: none; }

  .cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--accent);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 80ms, width 280ms var(--ease-spring), height 280ms var(--ease-spring), background 200ms;
    mix-blend-mode: multiply;
  }

  .cursor-follower {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(196,149,42,0.5);
    border-radius: var(--radius-full);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 300ms var(--ease-luxury), width 300ms var(--ease-spring), height 300ms var(--ease-spring), border-color 200ms;
  }

  a:hover ~ .cursor,
  button:hover ~ .cursor { background: var(--color-ink); width: 6px; height: 6px; }
}

/* ============================================================
   MOBILE MENU DRAWER (single source — rendered in header.php)
   ============================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--color-obsidian, #0a0a0a);
  padding: calc(var(--nav-height, 80px) + 2rem) 2rem 3rem;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
  overflow-y: auto;
  display: none;
}

.mobile-menu.is-open { transform: translateX(0); }

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-menu-link {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--color-ivory, #f0ede8);
  text-decoration: none;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 1rem;
  transition: color 0.2s;
}

.mobile-menu-link:hover { color: var(--accent, #c4952a); }

.mobile-menu-link--sub {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-mist, #9a958d);
  border-bottom: none;
  padding-bottom: 0;
  padding-left: 1rem;
}

@media (max-width: 768px) {
  .mobile-menu { display: block; }
}

/* ============================================================
   PRODUCT IMAGE OPTIMIZATION (square, cover, lazy-friendly)
   ============================================================ */
.product-card-visual img,
.products-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.product-card-noimg {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--color-alabaster, #f4f1ec);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-noimg span {
  color: var(--accent, #c4952a);
  font-size: 2rem;
  opacity: 0.3;
}

/* Hero video behaves exactly like the hero image */
video.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

/* ============================================================
   WOOCOMMERCE SIDEBAR WIDGETS (Products / Top Rated / Recent)
   Image-first compact rows: large square thumbnail left,
   small body-font title + price right.
   ============================================================ */
.shop-sidebar ul.product_list_widget,
ul.product_list_widget {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.product_list_widget li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle, rgba(0,0,0,0.07));
}

ul.product_list_widget li:last-child { border-bottom: none; }

ul.product_list_widget li a {
  display: contents; /* lets image + title occupy the grid cells */
  text-decoration: none;
  color: var(--text-primary);
}

ul.product_list_widget li img {
  float: none !important;          /* kill Woo's float:right */
  width: 88px !important;
  height: 88px !important;
  margin: 0 !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  grid-row: 1 / span 3;
  grid-column: 1;
  display: block;
}

ul.product_list_widget li .product-title {
  grid-column: 2;
  font-family: var(--font-body) !important;
  font-size: 0.82rem !important;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.01em;
  margin: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

ul.product_list_widget li .star-rating {
  grid-column: 2;
  font-size: 0.62rem;
  margin: 2px 0 0;
}

ul.product_list_widget li .amount,
ul.product_list_widget li del,
ul.product_list_widget li ins {
  grid-column: 2;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

ul.product_list_widget li ins {
  text-decoration: none;
  color: var(--accent, #c4952a);
}

ul.product_list_widget li del { opacity: 0.55; margin-right: 6px; }

/* Widget titles inside the shop sidebar (from any plugin/widget) */
.shop-sidebar .widget h2,
.shop-sidebar .widget h3,
.shop-sidebar .widgettitle,
.shop-sidebar .widget-title {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--text-primary);
  margin: 0 0 var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-subtle);
}

/* ============================================================
   MOBILE SHOP LAYOUT — products first, filters/widgets after
   ============================================================ */
@media (max-width: 1024px) {
  .shop-layout { display: flex; flex-direction: column; }
  .shop-main    { order: 1; width: 100%; }
  .shop-sidebar { order: 2; width: 100%; max-width: 560px; }
}

/* ============================================================
   CURCY (WooCommerce Multi Currency) — tidy its built-in lists
   so a 22-currency block can never render as huge plain text.
   ============================================================ */
.wmc-currency-wrapper,
.woo-multi-currency,
.wmc-list-currencies {
  font-size: 0.75rem !important;
  font-family: var(--font-body) !important;
}

.woo-multi-currency .wmc-currency a,
.wmc-currency-wrapper .wmc-currency a {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

/* ============================================================
   MOBILE HEADER OVERFLOW FIX
   The header is position:fixed, so body{overflow-x:...} can never
   clip it. Its content has to fit on its own: the logo must be
   allowed to shrink, and the actions row must stay compact.
   ============================================================ */
.nav-inner {
  gap: var(--space-md);
  min-width: 0;
}

.nav-logo {
  flex: 0 1 auto;   /* was 0 0 auto -> could not shrink */
  min-width: 0;
  overflow: hidden;
}

.nav-logo .logo-text {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-logo img {
  max-width: 100%;
  object-fit: contain;
}

.nav-actions {
  flex: 0 0 auto;
}

/* Keep the mega menu inside the viewport on tablet widths */
.mega-menu {
  min-width: 0;
  width: max-content;
  max-width: calc(100vw - var(--space-lg) * 2);
}

@media (max-width: 768px) {
  .nav-inner {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .nav-actions { gap: var(--space-sm); }

  .nav-logo .logo-text {
    font-size: 1.05rem;
    letter-spacing: 0.03em;
  }

  .nav-logo img { height: 28px; }
}

@media (max-width: 420px) {
  .nav-logo .logo-text { font-size: 0.95rem; }
}
