/* ═══════════════════════════════════════════════════════════════
   LUNOVA GIFT — Shared Stylesheet
   Palette: Navy Blue · Gold · White · Black
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@200;300;400;500&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ========================== BRAND COLOR UPDATE ========================== */
:root {
  /* ── Gold palette ── */
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-pale: #F5E9CA;
  --gold-dark: #8B6914;
  --gold-darker: #5A4209;
  --gold-xlight: #F8F0DC;
  --gold-grad: linear-gradient(135deg, #8B6914, #C9A84C, #E8C97A);
  --gold-grad-2: linear-gradient(135deg, #8B6914, #C9A84C);

  /* ── Brand Navy Blues (replaces dark-brown & dark-olive) ── */
  --navy-primary: #0a2c4a;
  --navy-secondary: #0c3a5d;
  --navy-light: #0e4878;
  --navy-muted: rgba(10, 44, 74, 0.85);

  /* ── Dark tones (legacy aliases mapped to navy) ── */
  --black: #0A0A0A;
  --off-black: #111111;
  --charcoal: #1a2a3a;
  --dark-brown: var(--navy-primary);   /* replaces #1A0E02 */
  --dark-olive: var(--navy-secondary); /* replaces #1A1A0A */

  /* ── Light tones — brighter for readability ── */
  --white: #FFFFFF;
  --off-white: #F7F9FC;        /* cooler, cleaner than warm cream */
  --warm-white: #EFF4FA;       /* light navy-tinted white */
  --parchment: #E4EDF5;

  /* ── Text — navy-based for better contrast ── */
  --text: #0a1f35;
  --text-mid: #2d4a63;
  --text-light: #6b8ca8;

  /* ── On-dark text ── */
  --text-on-dark: #F0F6FF;
  --text-mid-on-dark: rgba(220, 235, 255, 0.78);
  --text-light-on-dark: rgba(220, 235, 255, 0.48);

  /* ── Fonts ── */
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;

  /* ── Shadows & borders ── */
  --shadow-sm: 0 2px 12px rgba(10, 44, 74, .07);
  --shadow-md: 0 8px 32px rgba(10, 44, 74, .11);
  --shadow-lg: 0 20px 60px rgba(10, 44, 74, .15);
  --border-gold: 1px solid rgba(201, 168, 76, .25);
  --border-navy: 1px solid rgba(10, 44, 74, .12);

  /* ── Image bg ── */
  --img-bg: #EFF4FA;
}
/* ========================== END BRAND COLOR UPDATE ========================== */

html {
  scroll-behavior: smooth;
}

body {
  background: var(--off-white);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  /* overflow-x: hidden on body breaks position:fixed pointer events
     on iOS Safari and Android Chrome — use a wrapper div instead   */
  overflow-x: clip; /* 'clip' does NOT create a stacking context — safe replacement */
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--parchment); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); }

/* ══════════════════════════════════════════════════════════════
   TYPOGRAPHY UTILITIES
   ══════════════════════════════════════════════════════════════ */

.section-label {
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  font-weight: 400;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.on-dark .section-label,
.section-label--light {
  color: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--text);
}

.section-title em {
  font-style: italic;
  color: var(--gold-dark);
}

/* ══════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════ */

.btn-primary {
  background: var(--gold-grad-2);
  color: var(--white);
  padding: .95rem 2.6rem;
  font-family: var(--font-body);
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  transition: opacity .25s, transform .25s;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  opacity: .88;
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--gold-dark);
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 105, 20, .35);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
  font-weight: 400;
}

.btn-ghost:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* ══════════════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════════════ */

nav#mainNav {
  pointer-events: auto;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 0 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  transition: background .35s, border-color .35s, box-shadow .35s;
  border-bottom: 1px solid transparent;
}

nav#mainNav.scrolled,
nav#mainNav.solid {
  background: rgba(247, 249, 252, .97);
  border-bottom-color: rgba(201, 168, 76, .22);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(10, 44, 74, .08);
}

.nav-logo img {
  height: 38px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2.6rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--navy-primary);
  text-decoration: none;
  transition: color .2s;
  font-weight: 400;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-dark);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
   pointer-events: auto;
  position: relative;
  z-index: 9999;
}

/* ========================== HAMBURGER FIX ========================== */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 12px 8px;
  /* Stack above everything including hero overlays */
  z-index: 9999;
  position: relative;
  /* Force pointer events — some hero/parallax layers set pointer-events:none
     on a parent which can inadvertently cancel children on certain browsers */
  pointer-events: auto !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  /* Prevent hero or full-bleed sections from swallowing clicks */
  isolation: isolate;
}
 
.hamburger span {
  width: 28px;
  height: 1.5px;
  background: var(--text);
  display: block;
  transition: transform .32s ease, opacity .22s ease;
  transform-origin: center;
  pointer-events: none; /* clicks pass through to the button */
}
 
.hamburger.is-open span:nth-child(1) {
  transform: translateY(8.75px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-8.75px) rotate(-45deg);
}
/* ========================== END HAMBURGER FIX ========================== */

/* ── Mobile overlay menu ── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;   /* must be above hamburger (300) so close btn is always tappable */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--navy-primary);
  background-image:
    repeating-linear-gradient(0deg, rgba(201, 168, 76, .04) 0px, rgba(201, 168, 76, .04) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(90deg, rgba(201, 168, 76, .04) 0px, rgba(201, 168, 76, .04) 1px, transparent 1px, transparent 60px);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu::before,
.mobile-menu::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  border-color: rgba(201, 168, 76, .18);
  border-style: solid;
  pointer-events: none;
}

.mobile-menu::before {
  top: 2rem; left: 2rem;
  border-width: 1px 0 0 1px;
}
.mobile-menu::after {
  bottom: 2rem; right: 2rem;
  border-width: 0 1px 1px 0;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 3rem);
  font-weight: 300;
  color: var(--text-on-dark);
  text-decoration: none;
  transition: color .2s;
  padding: .9rem 0;
  border-bottom: 1px solid rgba(201, 168, 76, .1);
  width: 60%;
  text-align: center;
}

.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu a:hover { color: var(--gold-light); }

.mobile-close {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  background: none;
  border: none;
  color: var(--gold-light) !important;   /* force gold on dark navy — never inherit */
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 401;                           /* above menu overlay */
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ══════════════════════════════════════════════════════════════
   PRODUCT CARD  (shared across home / shop / related)
   ══════════════════════════════════════════════════════════════ */

.product-card {
  background: var(--white);
  cursor: pointer;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
  transition: box-shadow .3s;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
}

.product-img {
  position: relative;
  overflow: hidden;
  background: var(--img-bg);
  width: 100%;
  display: block;
}

.product-img-inner {
  position: relative;
  width: 100%;
  padding-top: 110%;
  overflow: hidden;
}

.product-img-inner img,
.product-img-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;      /* no cropping, no distortion */
  object-position: center;
  transition: transform .55s cubic-bezier(.25, .46, .45, .94);
  background: var(--img-bg);
}

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

/* Badge / tag */
.product-tag {
  position: absolute;
  top: .8rem;
  right: .8rem;
  font-family: var(--font-body);
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  font-weight: 500;
  pointer-events: none;
  border-radius: 0; /* sharp corners — brand aesthetic */
}

/* ── Unified tag palette: navy · gold · white only ── */
.tag-featured  { background: var(--gold-grad-2);    color: var(--white); }
.tag-new       { background: var(--navy-primary);   color: var(--gold-light); }
.tag-sale      { background: var(--navy-secondary); color: var(--gold-pale); }
.tag-bs        { background: var(--gold-grad-2);    color: var(--white); }
.tag-fave      { background: var(--white);          color: var(--navy-primary); border: 1px solid rgba(10,44,74,.18); }
.tag-limited   { background: var(--navy-primary);   color: var(--gold-light); }

/* Product card info */
.product-info-card {
  padding: 1.2rem 1.4rem 1.6rem;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: .7rem;
}

.product-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
}

.product-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .35rem;
}

.price-was {
  font-family: var(--font-body);
  font-size: .78rem;
  color: var(--text-light);
  text-decoration: line-through;
  letter-spacing: .04em;
}

/* ========================== ETB CURRENCY UPDATE ========================== */
/* All price displays now use ETB prefix instead of $ */
.price-now {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--gold-dark);
}

.price-save {
  font-family: var(--font-body);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  background: #a83232;
  padding: .18rem .6rem;
  align-self: center;
}
/* ========================== END ETB CURRENCY UPDATE ========================== */

.product-view-link {
  font-family: var(--font-body);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  white-space: nowrap;
  font-weight: 400;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */

footer.site-footer {
  background: var(--navy-primary);
  background-image:
    repeating-linear-gradient(0deg, rgba(201, 168, 76, .03) 0px, rgba(201, 168, 76, .03) 1px, transparent 1px, transparent 80px),
    repeating-linear-gradient(90deg, rgba(201, 168, 76, .03) 0px, rgba(201, 168, 76, .03) 1px, transparent 1px, transparent 80px);
}

.footer-band {
  height: 2px;
  background: var(--gold-grad);
}

.footer-inner { padding: 5rem 6vw 0; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(201, 168, 76, .12);
}

.footer-brand-logo { margin-bottom: 1.5rem; }
.footer-brand-logo img { height: 36px; filter: brightness(10); }

.footer-tagline {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-mid-on-dark);
  line-height: 1.8;
  max-width: 260px;
  margin-bottom: 2rem;
}

.footer-socials { display: flex; gap: .7rem; margin-bottom: 2rem; }

.social-link {
  width: 38px; height: 38px;
  border: 1px solid rgba(201, 168, 76, .35);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all .25s;
  background: transparent;
}

.social-link i { font-size: 15px; color: var(--gold); transition: color .25s; }

.social-link:hover {
  background: var(--gold-grad-2);
  border-color: transparent;
  transform: translateY(-2px);
}

.social-link:hover i { color: var(--black); }
.social-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.footer-col-title {
  font-family: var(--font-body);
  font-size: .75rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.8rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid rgba(201, 168, 76, .14);
  font-weight: 400;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: .85rem; }

.footer-links a {
  font-family: var(--font-body);
  font-size: .85rem;
  color: var(--text-mid-on-dark);
  text-decoration: none;
  transition: color .2s;
  letter-spacing: .02em;
}

.footer-links a:hover { color: var(--gold-light); }

.footer-contact-item {
  display: flex;
  gap: .7rem;
  font-family: var(--font-body);
  font-size: .83rem;
  color: var(--text-mid-on-dark);
  line-height: 1.6;
  margin-bottom: .75rem;
}

.footer-contact-item strong { color: var(--gold); font-weight: 400; }

.footer-bottom {
  padding: 2rem 0 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: .8rem;
  color: var(--text-light-on-dark);
  letter-spacing: .06em;
}

.footer-copy strong { color: var(--gold-light); font-weight: 500; }

.footer-legal { display: flex; gap: 1.8rem; }

.footer-legal a {
  font-family: var(--font-body);
  font-size: .75rem;
  color: var(--text-light-on-dark);
  text-decoration: none;
  letter-spacing: .06em;
  transition: color .2s;
}

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

/* ══════════════════════════════════════════════════════════════
   PAGE HEADER
   ══════════════════════════════════════════════════════════════ */
header {
  position: relative;
  z-index: 200;        /* matches nav#mainNav so they share the same layer */
  isolation: isolate;  /* explicit stacking context — no side effects */
}
 
.page-header {
  padding: calc(68px + 4.5rem) 8vw 4rem;
  background: var(--white);
  border-bottom: var(--border-gold);
  position: relative;
  overflow: hidden;
}
main {
  position: relative;
  z-index: 1;
}
.page-header::before,
.page-header::after {
  content: '';
  position: absolute;
  width: 48px; height: 48px;
  border-color: rgba(201, 168, 76, .2);
  border-style: solid;
  pointer-events: none;
}

.page-header::before {
  bottom: 1.5rem; right: 8vw;
  border-width: 0 1px 1px 0;
}
.page-header::after {
  top: calc(68px + 1.5rem); left: 8vw;
  border-width: 1px 0 0 1px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-light);
}

.breadcrumb a { color: var(--text-light); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--gold-dark); }
.breadcrumb .sep { color: var(--gold); opacity: .5; }

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 5rem);
  font-weight: 300;
  color: var(--text);
  margin-bottom: .6rem;
}

.page-title em { font-style: italic; color: var(--gold-dark); }
.page-meta { font-family: var(--font-body); font-size: .88rem; color: var(--text-light); }

/* ══════════════════════════════════════════════════════════════
   STAR RATING
   ══════════════════════════════════════════════════════════════ */

.star {
  width: 9px; height: 9px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  display: inline-block;
}

.star.empty { background: var(--parchment); }

/* ══════════════════════════════════════════════════════════════
   FADE-IN ANIMATION
   ══════════════════════════════════════════════════════════════ */

.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  nav#mainNav { padding: 0 5vw; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-header { padding: calc(68px + 3rem) 6vw 2.5rem; }
}