/* =============================================
   BOB FIGURES — Design System v2
   Brand: Black + Yellow + White + Cream
   Fonts: Space Grotesk (headings) + DM Sans (body)
   ============================================= */

/* === DESIGN TOKENS === */
:root {
  /* Colours */
  --clr-black:       #0a0a0a;
  --clr-yellow:      #fed531;
  --clr-yellow-dark: #e5bc24;
  --clr-white:       #ffffff;
  --clr-cream:       #fafaf7;
  --clr-grey-light:  #f4f4f0;
  --clr-grey-mid:    #e8e8e4;
  --clr-text:        #0a0a0a;
  --clr-text-muted:  #666660;
  --clr-border:      #e8e8e4;
  --clr-success:     #16a34a;
  --clr-danger:      #dc2626;
  --clr-rare:        #7c3aed;

  /* Legacy aliases (kept so existing code doesn't break) */
  --color-teal:       var(--clr-black);
  --color-coral:      var(--clr-yellow);
  --color-text:       var(--clr-text);
  --color-text-light: var(--clr-text-muted);
  --color-white:      var(--clr-white);
  --color-base:       var(--clr-white);
  --color-blue-grey:  var(--clr-grey-light);
  --color-border:     var(--clr-border);

  /* Typography */
  --font-heading: "Space Grotesk", "Inter", -apple-system, sans-serif;
  --font-body:    "DM Sans",       "Inter", -apple-system, sans-serif;

  /* Spacing */
  --section-gap:    96px;
  --section-gap-sm: 56px;

  /* Radii */
  --radius-pill: 100px;
  --radius-card: 16px;
  --radius-sm:   8px;
  --radius-xs:   4px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-xl:  0 32px 80px rgba(0,0,0,0.16), 0 8px 24px rgba(0,0,0,0.08);
  --shadow-yellow: 0 8px 28px rgba(254,213,49,0.45);

  /* Transitions */
  --transition:      all 0.25s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: all 0.4s cubic-bezier(0.4,0,0.2,1);
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--clr-text);
  background-color: var(--clr-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--clr-text);
  line-height: 1.2;
  font-weight: 700;
}

a {
  color: var(--clr-black);
  text-decoration: none;
  transition: var(--transition);
}

img { max-width: 100%; height: auto; display: block; }

/* === ACCESSIBILITY: Visible keyboard focus === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
.btn:focus-visible,
.btn-pill:focus-visible,
.nav-link:focus-visible {
  outline: 3px solid var(--clr-yellow);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(10, 10, 10, 0.22);
}

/* === SKIP LINK === */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--clr-black);
  color: var(--clr-white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; color: var(--clr-white); }

/* ===================================================
   NAVIGATION
   =================================================== */
.navbar-editorial {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--clr-border);
  padding: 0;
}

.navbar-editorial .container {
  display: flex;
  align-items: center;
  height: 68px;
}

.navbar-editorial .navbar-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--clr-black);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  margin-right: 0;
  padding: 0;
  line-height: 1;
}

.navbar-editorial .navbar-brand:hover { color: var(--clr-black); opacity: 0.75; }

.navbar-editorial .nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: var(--transition);
  position: relative;
}

.navbar-editorial .nav-link:hover {
  color: var(--clr-black);
  background: var(--clr-grey-light);
}

.navbar-editorial .nav-link.active-page {
  color: var(--clr-black);
  font-weight: 700;
  background: #f7f7f3;
  border-color: #ece9df;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.navbar-editorial .nav-link.active-page:hover {
  color: var(--clr-black);
  background: #f7f7f3;
}

.navbar-editorial .nav-link.active-page::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-yellow) 0%, var(--clr-yellow-dark) 100%);
  border-radius: 999px;
  opacity: 0.95;
}

/* Cart count bubble */
#navCartCount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-yellow);
  color: var(--clr-black);
  font-weight: 800;
  font-size: 0.68rem;
  min-width: 18px;
  height: 18px;
  border-radius: 50px;
  padding: 0 4px;
  margin-left: 4px;
  vertical-align: middle;
  line-height: 1;
}

/* Join Us CTA pill */
.btn-pill-coral {
  background: #fed531 !important;
  color: #0a0a0a !important;
  border-color: #fed531 !important;
  font-weight: 700 !important;
}
.btn-pill-coral:hover {
  background: #e5bc24 !important;
  border-color: #e5bc24 !important;
  color: #0a0a0a !important;
  transform: translateY(-1px);
}

/* Nav-specific pill buttons (avoids Bootstrap nav-link override) */
.nav-btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 22px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none !important;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}

.nav-btn-yellow {
  background: #fed531;
  color: #0a0a0a !important;
  border-color: #fed531;
}
.nav-btn-yellow:hover {
  background: #e5bc24;
  border-color: #e5bc24;
  color: #0a0a0a !important;
  transform: translateY(-1px);
}

.nav-btn-outline {
  background: transparent;
  color: #0a0a0a !important;
  border-color: #0a0a0a;
}
.nav-btn-outline:hover {
  background: #0a0a0a;
  color: #ffffff !important;
}

/* === MARQUEE TICKER (runs just below nav on homepage) === */
.site-ticker {
  background: #0a0a0a;
  color: #fed531;
  overflow: hidden;
  padding: 11px 0;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  width: 100%;
}

.site-ticker-inner,
.site-ticker-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  animation: ticker-scroll 32s linear infinite;
}

.site-ticker-inner span,
.site-ticker-track span {
  white-space: nowrap;
  padding: 0 36px;
  display: inline-block;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===================================================
   HERO
   =================================================== */
.hero-editorial {
  background: var(--clr-black);
  color: var(--clr-white);
  padding: 120px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-editorial::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.35) 100%);
  z-index: 1;
}

/* Grain texture overlay */
.hero-editorial::after {
  content: "";
  position: absolute;
  inset: 0;
  background-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)' opacity='0.04'/%3E%3C/svg%3E");
  z-index: 1;
  opacity: 0.5;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  color: var(--clr-white);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  line-height: 1.05;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.82);
  margin-bottom: 40px;
  line-height: 1.65;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-accent {
  color: var(--clr-yellow);
  font-weight: 700;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Compact hero (sub-pages) */
.hero-compact {
  padding: 56px 24px;
}

.hero-compact h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 10px;
}

.hero-compact .hero-subtitle { margin-bottom: 0; }

/* ===================================================
   BUTTONS
   =================================================== */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.btn-pill-primary {
  background: var(--clr-black);
  color: var(--clr-white);
  border-color: var(--clr-black);
}
.btn-pill-primary:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: var(--clr-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-pill-outline {
  background: transparent;
  color: var(--clr-white);
  border-color: rgba(255,255,255,0.6);
}
.btn-pill-outline:hover {
  background: var(--clr-white);
  color: var(--clr-black);
  border-color: var(--clr-white);
  transform: translateY(-2px);
}

.btn-pill-dark {
  background: var(--clr-black);
  color: var(--clr-white);
  border-color: var(--clr-black);
}
.btn-pill-dark:hover {
  background: #222;
  color: var(--clr-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-pill-ghost {
  background: transparent;
  color: var(--clr-black);
  border-color: var(--clr-border);
}
.btn-pill-ghost:hover {
  background: var(--clr-grey-light);
  border-color: var(--clr-grey-mid);
  color: var(--clr-black);
}

.btn-pill-lg  { padding: 16px 40px; font-size: 1rem; }
.btn-pill-sm  { padding: 8px 18px;  font-size: 0.82rem; }

/* ===================================================
   SECTIONS
   =================================================== */
.section-editorial { padding: var(--section-gap) 0; }

.section-warm {
  padding: var(--section-gap) 0;
  background-color: #fafaf7 !important;
}

.section-dark {
  padding: var(--section-gap) 0;
  background-color: #0a0a0a !important;
  color: #ffffff !important;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: #ffffff !important; }

.section-yellow {
  padding: var(--section-gap) 0;
  background-color: #fed531 !important;
  color: #0a0a0a !important;
}

.section-yellow h1,
.section-yellow h2,
.section-yellow h3 { color: #0a0a0a !important; }

/* Legacy */
.section-highlight {
  padding: var(--section-gap) 0;
  background-color: #fed531 !important;
  color: #0a0a0a;
}
.section-highlight h2 { color: #0a0a0a; }
.section-highlight .btn-pill-coral {
  background: #0a0a0a !important;
  color: #ffffff !important;
  border-color: #0a0a0a !important;
}
.section-highlight .btn-pill-coral:hover {
  background: #222222 !important;
  border-color: #222222 !important;
}

.section-heading {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-heading p {
  color: var(--clr-text-muted);
  font-size: 1.05rem;
}

.section-dark .section-heading p  { color: rgba(255,255,255,0.7); }
.section-yellow .section-heading p { color: rgba(0,0,0,0.65); }

.section-divider {
  width: 48px;
  height: 4px;
  background: var(--clr-yellow);
  margin: 16px auto 0;
  border-radius: 4px;
}

/* ===================================================
   MARQUEE BANNER (full-width CTA strip)
   =================================================== */
.marquee-banner {
  background: var(--clr-black);
  color: var(--clr-white);
  padding: 64px 0;
}

.marquee-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.marquee-banner h2 {
  color: var(--clr-yellow);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 8px;
}

.marquee-banner p {
  color: rgba(255,255,255,0.72);
  max-width: 500px;
  margin: 0;
}

@media (max-width: 768px) {
  .marquee-banner .container { flex-direction: column; text-align: center; }
}

/* ===================================================
   EDITORIAL CARDS
   =================================================== */
.card-editorial {
  background: var(--clr-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
}

.card-editorial:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.card-img-wrapper {
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--clr-grey-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img-wrapper img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

.card-editorial:hover .card-img-wrapper img { transform: scale(1.07); }

.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-text-muted);
  margin-bottom: 8px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.card-text {
  color: var(--clr-text-muted);
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

/* ===================================================
   NEW ARRIVALS
   =================================================== */
.section-new-arrivals {
  padding: var(--section-gap) 0;
  background: var(--clr-white);
}

.new-arrivals-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 12px;
}

.new-arrivals-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.new-arrivals-link {
  color: var(--clr-text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.new-arrivals-link:hover { color: var(--clr-black); }

.release-date-header {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
  gap: 16px;
}

.release-date-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
  color: var(--clr-text-muted);
}

.release-date-line {
  flex: 1;
  height: 1px;
  background: var(--clr-border);
}

.release-nav-btns { display: flex; gap: 8px; }

.release-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--clr-grey-light);
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  transition: var(--transition);
}
.release-nav-btn:hover {
  background: var(--clr-black);
  color: var(--clr-white);
  border-color: var(--clr-black);
}

/* Minimal product cards */
.product-card-minimal {
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}

.product-card-minimal .img-wrapper {
  background: var(--clr-grey-light);
  aspect-ratio: 1/1;
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  position: relative;
  transition: var(--transition);
}

.product-card-minimal:hover .img-wrapper {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-card-minimal .img-wrapper img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.product-card-minimal:hover .img-wrapper img { transform: scale(1.06); }

.tag-local-express {
  display: inline-block;
  background: var(--clr-black);
  color: var(--clr-yellow);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: var(--radius-xs);
  margin-right: 5px;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.product-title-minimal {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.product-price-minimal {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.btn-remind {
  background: transparent;
  border: 1px solid var(--clr-border);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-muted);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.btn-remind:hover {
  background: var(--clr-yellow);
  border-color: var(--clr-yellow);
  color: var(--clr-black);
}

/* ===================================================
   VALUE BLOCKS / STATS
   =================================================== */
.value-block {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-card);
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  transition: var(--transition);
}

.value-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--clr-black);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.section-dark .stat-number   { color: var(--clr-yellow); }
.section-yellow .stat-number { color: var(--clr-black); }

.value-block h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  margin-top: 4px;
}

.value-block p {
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* ===================================================
   FEATURE SPOTLIGHT
   =================================================== */
.feature-spotlight {
  display: flex;
  align-items: center;
  gap: 56px;
}

.feature-spotlight-img {
  flex: 0 0 52%;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.feature-spotlight-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  display: block;
  transition: transform 0.6s ease;
}

.feature-spotlight-img:hover img { transform: scale(1.03); }

.feature-spotlight-content { flex: 1; }

.feature-spotlight-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.feature-spotlight-content p {
  color: var(--clr-text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .feature-spotlight { flex-direction: column; gap: 28px; }
  .feature-spotlight-img { flex: none; width: 100%; }
}

/* ===================================================
   FOOTER
   =================================================== */
.footer-editorial {
  background: var(--clr-black);
  color: rgba(255,255,255,0.75);
  padding: 72px 0 36px;
  margin-top: var(--section-gap);
  border-top: 3px solid var(--clr-yellow);
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--clr-white);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.footer-editorial .footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  max-width: 280px;
  line-height: 1.65;
}

.footer-editorial .footer-heading {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--clr-white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.footer-editorial ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-editorial ul li { margin-bottom: 10px; }

.footer-editorial ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-editorial ul li a:hover { color: var(--clr-yellow); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 48px;
  padding-top: 28px;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
}

@media (max-width: 768px) {
  .footer-editorial { padding: 48px 0 28px; }
}

/* ===================================================
   ANIMATIONS
   =================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1),
              transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fallback: if JS doesn't fire, show content after 300ms */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.fade-in-group > *:nth-child(1) { transition-delay: 0s; }
.fade-in-group > *:nth-child(2) { transition-delay: 0.1s; }
.fade-in-group > *:nth-child(3) { transition-delay: 0.2s; }
.fade-in-group > *:nth-child(4) { transition-delay: 0.3s; }

/* ===================================================
   BACK TO TOP
   =================================================== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--clr-black);
  color: var(--clr-white);
  border: 2px solid var(--clr-yellow);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 900;
}

.back-to-top.is-visible { opacity: 1; visibility: visible; }

.back-to-top:hover {
  background: var(--clr-yellow);
  color: var(--clr-black);
  transform: translateY(-2px);
}

/* ===================================================
   CONTACT PAGE
   =================================================== */
.contact-form .form-group { margin-bottom: 20px; }

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--clr-text);
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: var(--clr-white);
  color: var(--clr-text);
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--clr-black);
  box-shadow: 0 0 0 3px rgba(10,10,10,0.08);
}

.form-textarea { resize: vertical; min-height: 140px; }

.contact-info-block { margin-bottom: 32px; }
.contact-info-block h3 { font-size: 1.2rem; margin-bottom: 16px; }

.contact-details li {
  list-style: none;
  padding: 9px 0;
  border-bottom: 1px solid var(--clr-border);
  font-size: 0.93rem;
}

.contact-details li strong {
  display: inline-block;
  min-width: 80px;
  color: var(--clr-text);
}

.social-links { display: flex; gap: 10px; flex-wrap: wrap; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--clr-text);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--clr-black);
  border-color: var(--clr-black);
  color: var(--clr-white);
}

/* ===================================================
   FOCUS / ACCESSIBILITY
   =================================================== */
*:focus-visible {
  outline: 3px solid var(--clr-yellow);
  outline-offset: 2px;
}

.btn-pill:focus-visible {
  outline: 3px solid var(--clr-yellow);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(254,213,49,0.3);
}

.form-input:focus-visible {
  outline: none;
  border-color: var(--clr-black);
  box-shadow: 0 0 0 3px rgba(10,10,10,0.1);
}

/* ===================================================
   IMAGE POPUP
   =================================================== */
.img-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  cursor: pointer;
  padding: 24px;
  backdrop-filter: blur(4px);
}

.img-popup img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-xl);
}

/* ===================================================
   RARITY BADGES
   =================================================== */
.rarity-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* ===================================================
   SECTION — CREAM
   =================================================== */
.section-cream {
  background: var(--clr-cream);
  color: var(--clr-text);
}

/* ===================================================
   HERO — EYEBROW LABEL
   =================================================== */
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--clr-yellow);
  background: rgba(254,213,49,0.12);
  border: 1px solid rgba(254,213,49,0.3);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

/* ===================================================
   SITE TICKER — track alias
   =================================================== */
/* Support both class names (.site-ticker-inner and .site-ticker-track) */
.site-ticker-track {
  display: inline-flex;
  gap: 0;
  animation: ticker-scroll 32s linear infinite;
  white-space: nowrap;
}

.site-ticker-track span,
.site-ticker-inner span {
  padding: 0 36px;
}

/* ===================================================
   NAV — Cart icon link
   =================================================== */
.nav-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px !important;
  position: relative;
}

.nav-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-yellow);
  color: var(--clr-black);
  font-weight: 800;
  font-size: 0.65rem;
  min-width: 18px;
  height: 18px;
  border-radius: 50px;
  padding: 0 4px;
  margin-left: 2px;
  vertical-align: middle;
  line-height: 1;
  font-family: var(--font-heading);
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 768px) {
  :root {
    --section-gap: 64px;
    --section-gap-sm: 40px;
  }

  .navbar-editorial .navbar-collapse {
    background: var(--clr-white);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-top: 10px;
    padding: 10px 12px;
  }

  .navbar-editorial .navbar-nav {
    align-items: stretch !important;
    gap: 2px;
  }

  .navbar-editorial .nav-item {
    width: 100%;
  }

  .navbar-editorial .nav-link,
  .navbar-editorial .nav-btn-pill,
  .navbar-editorial .nav-cart-link {
    width: 100%;
    justify-content: flex-start;
  }

  .navbar-editorial .nav-btn-pill {
    margin-top: 4px;
  }

  .hero-editorial { padding: 80px 20px; }
  .hero-compact { padding: 48px 20px; }
}
