/* ================================================================
   NATURE'S CURE — DESIGN SYSTEM 2025
   Bootstrap 5.3 + Custom Design Tokens
   ================================================================ */

/* ── 1. DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Brand Palette */
  --nc-primary:       #14B8A6;
  --nc-primary-dark:  #0D9488;
  --nc-primary-light: #CCFBF1;
  --nc-accent:        #F59E0B;
  --nc-accent-dark:   #D97706;

  /* Neutrals */
  --nc-dark:    #0F172A;
  --nc-900:     #1E293B;
  --nc-700:     #334155;
  --nc-500:     #64748B;
  --nc-300:     #CBD5E1;
  --nc-200:     #E2E8F0;
  --nc-100:     #F1F5F9;
  --nc-50:      #F8FAFC;
  --nc-white:   #FFFFFF;

  /* Semantic aliases */
  --color-text:        var(--nc-dark);
  --color-text-muted:  var(--nc-500);
  --color-bg:          var(--nc-white);
  --color-surface:     var(--nc-50);
  --color-border:      var(--nc-200);

  /* Shadows */
  --shadow-xs:   0 1px 2px rgba(15,23,42,.06);
  --shadow-sm:   0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.06);
  --shadow-md:   0 4px 6px rgba(15,23,42,.07), 0 2px 4px rgba(15,23,42,.06);
  --shadow-lg:   0 10px 15px rgba(15,23,42,.07), 0 4px 6px rgba(15,23,42,.05);
  --shadow-xl:   0 20px 25px rgba(15,23,42,.08), 0 10px 10px rgba(15,23,42,.04);
  --shadow-glow: 0 0 0 3px rgba(20,184,166,.18);

  /* Typography */
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* Spacing */
  --space-1: .25rem;  --space-2: .5rem;  --space-3: .75rem;
  --space-4: 1rem;    --space-6: 1.5rem; --space-8: 2rem;
  --space-10: 2.5rem; --space-12: 3rem;  --space-16: 4rem;
  --space-20: 5rem;   --space-24: 6rem;

  /* Radii */
  --r-sm: 6px;  --r-md: 12px;  --r-lg: 20px;  --r-xl: 28px;  --r-full: 9999px;

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
  --t-slow: 400ms cubic-bezier(.4,0,.2,1);
}

/* ── 2. DARK MODE ─────────────────────────────────────────────── */
[data-theme="dark"] {
  --color-text:       #E2E8F0;
  --color-text-muted: #94A3B8;
  --color-bg:         #0F172A;
  --color-surface:    #1E293B;
  --color-border:     #334155;
  --nc-white:         #1E293B;
  --nc-50:            #0F172A;
  --nc-100:           #1E293B;
  --nc-200:           #334155;
  --nc-300:           #475569;
  --nc-500:           #94A3B8;
  --nc-700:           #CBD5E1;
  --nc-900:           #E2E8F0;
  --nc-dark:          #F8FAFC;
}

/* ── 3. RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background var(--t-slow), color var(--t-slow);
}

::selection { background: var(--nc-primary); color: #fff; }

a {
  color: var(--nc-primary-dark);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--nc-primary); }

img { max-width: 100%; height: auto; display: block; }

/* ── 4. TYPOGRAPHY ────────────────────────────────────────────── */
.font-display { font-family: var(--font-display); }

h1, .h1 { font-family: var(--font-display); font-size: clamp(2rem,5vw,3.5rem); line-height: 1.1; font-weight: 700; }
h2, .h2 { font-family: var(--font-display); font-size: clamp(1.5rem,3vw,2.25rem); line-height: 1.2; font-weight: 700; }
h3, .h3 { font-size: clamp(1.1rem,2vw,1.35rem); font-weight: 600; line-height: 1.3; }
h4, .h4 { font-size: 1.1rem; font-weight: 600; }
h5, .h5 { font-size: .95rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
h6, .h6 { font-size: .875rem; font-weight: 500; }

.display-hero {
  font-family: var(--font-display);
  font-size: clamp(2.5rem,7vw,5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.text-muted { color: var(--color-text-muted) !important; }
.text-primary { color: var(--nc-primary) !important; }
.text-accent  { color: var(--nc-accent) !important; }

/* ── 5. BOOTSTRAP OVERRIDES ───────────────────────────────────── */

/* Primary colour override */
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--nc-primary);
  --bs-btn-border-color: var(--nc-primary);
  --bs-btn-hover-bg: var(--nc-primary-dark);
  --bs-btn-hover-border-color: var(--nc-primary-dark);
  --bs-btn-active-bg: var(--nc-primary-dark);
  --bs-btn-focus-shadow-rgb: 20,184,166;
}

.btn-outline-primary {
  --bs-btn-color: var(--nc-primary);
  --bs-btn-border-color: var(--nc-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--nc-primary);
  --bs-btn-hover-border-color: var(--nc-primary);
  --bs-btn-active-bg: var(--nc-primary-dark);
}

.btn {
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: .875rem;
  letter-spacing: .025em;
  padding: .625rem 1.5rem;
  transition: all var(--t-base);
}

.btn-lg { padding: .875rem 2.25rem; font-size: 1rem; border-radius: var(--r-md); }
.btn-sm { padding: .4rem 1rem; font-size: .8125rem; }

.btn:focus-visible { box-shadow: var(--shadow-glow); outline: none; }

.btn-dark {
  --bs-btn-bg: var(--nc-dark);
  --bs-btn-border-color: var(--nc-dark);
  --bs-btn-hover-bg: var(--nc-900);
  --bs-btn-color: #fff;
}

/* Accent button */
.btn-accent {
  background: var(--nc-accent);
  border-color: var(--nc-accent);
  color: #fff;
  font-weight: 700;
}
.btn-accent:hover {
  background: var(--nc-accent-dark);
  border-color: var(--nc-accent-dark);
  color: #fff;
}

/* Form controls */
.form-control, .form-select {
  border-color: var(--color-border);
  border-radius: var(--r-sm);
  padding: .625rem .875rem;
  font-size: .9375rem;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-control:focus, .form-select:focus {
  border-color: var(--nc-primary);
  box-shadow: var(--shadow-glow);
  background: var(--color-bg);
  color: var(--color-text);
}

/* Checkbox/radio inputs (delivery method, payment method, etc.) default
   to Bootstrap's blue — recolor to match the site's teal. */
.form-check-input:checked {
  background-color: var(--nc-primary);
  border-color: var(--nc-primary);
}
.form-check-input:focus {
  border-color: var(--nc-primary);
  box-shadow: 0 0 0 .25rem rgba(20, 184, 166, .25);
}

/* Cards */
.card {
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  background: var(--nc-white);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.card:hover { box-shadow: var(--shadow-lg); }
.card-body { padding: 1.5rem; }

/* Badges */
.badge-new {
  background: var(--nc-primary);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .25rem .6rem;
  border-radius: var(--r-full);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.badge-sale {
  background: var(--nc-accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .25rem .6rem;
  border-radius: var(--r-full);
}

/* ── 6. LAYOUT UTILITIES ──────────────────────────────────────── */
.section { padding: var(--space-16) 0; }
.section-sm { padding: var(--space-12) 0; }
.section-lg { padding: var(--space-24) 0; }

@media (max-width: 767px) {
  .section { padding: var(--space-12) 0; }
  .section-lg { padding: var(--space-16) 0; }
}

.surface { background: var(--color-surface); }
.bg-primary-soft { background: var(--nc-primary-light); }

/* ── 7. NAVBAR ────────────────────────────────────────────────── */
.nc-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: .15rem 0;
  transition: background var(--t-slow), box-shadow var(--t-base);
}

[data-theme="dark"] .nc-navbar {
  background: rgba(15,23,42,.92);
}

.nc-navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nc-navbar .navbar-brand img {
  height: 44px;
  width: auto;
}

.nc-navbar .nav-link {
  color: var(--nc-700);
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .02em;
  padding: .5rem .875rem;
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
  position: relative;
}

.nc-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: .875rem;
  right: .875rem;
  height: 2px;
  background: var(--nc-primary);
  border-radius: var(--r-full);
  transform: scaleX(0);
  transition: transform var(--t-base);
}

.nc-navbar .nav-link:hover,
.nc-navbar .nav-link.active { color: var(--nc-primary); }
.nc-navbar .nav-link:hover::after,
.nc-navbar .nav-link.active::after { transform: scaleX(1); }

/* Icon buttons in nav */
.nc-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  color: var(--nc-700);
  transition: background var(--t-fast), color var(--t-fast);
  position: relative;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.15rem;
}
.nc-nav-icon:hover {
  background: var(--nc-100);
  color: var(--nc-primary);
}
[data-theme="dark"] .nc-nav-icon:hover {
  background: var(--nc-200);
}

.nc-cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  background: var(--nc-primary);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Dark mode toggle */
.nc-theme-toggle {
  background: var(--nc-100);
  border: 1px solid var(--color-border);
  border-radius: var(--r-full);
  width: 44px;
  height: 24px;
  position: relative;
  cursor: pointer;
  transition: background var(--t-base);
}
.nc-theme-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base);
}
[data-theme="dark"] .nc-theme-toggle { background: var(--nc-primary); }
[data-theme="dark"] .nc-theme-toggle::after { transform: translateX(20px); }

/* Mobile offcanvas nav */
.nc-offcanvas {
  width: 320px !important;
  background: var(--color-bg) !important;
}
.nc-offcanvas .offcanvas-header {
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 1.5rem;
}
.nc-offcanvas .nav-link {
  padding: .875rem 1.5rem;
  border-radius: 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 1rem;
  color: var(--color-text);
}
[data-theme="dark"] .nc-offcanvas {
  background: #0F172A !important;
}
[data-theme="dark"] .nc-offcanvas .offcanvas-header {
  border-color: rgba(255,255,255,.1);
}
[data-theme="dark"] .nc-offcanvas .offcanvas-title,
[data-theme="dark"] .nc-offcanvas .btn-close {
  color: #fff;
  filter: invert(1);
}
[data-theme="dark"] .nc-offcanvas .nav-link {
  color: #fff;
  border-color: rgba(255,255,255,.1);
}
[data-theme="dark"] .nc-offcanvas .nav-link:hover,
[data-theme="dark"] .nc-offcanvas .nav-link.active {
  color: var(--nc-primary);
  background: rgba(20,184,166,.12);
}

/* ── 8. HERO ─────────────────────────────────────────────────── */
.nc-hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.nc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15,23,42,.72) 0%,
    rgba(15,23,42,.35) 60%,
    transparent 100%
  );
  z-index: 1;
}

.nc-hero > .container { position: relative; z-index: 2; }

.nc-hero .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  max-width: 100%;
  white-space: nowrap;
  background: rgba(20,184,166,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(20,184,166,.3);
  color: var(--nc-primary-light);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .375rem 1rem;
  border-radius: var(--r-full);
  margin-bottom: 1.5rem;
  animation: eyebrow-pulse-cyan 2.4s ease-in-out infinite;
}

@keyframes eyebrow-pulse-cyan {
  0%, 100% { color: var(--nc-primary-light); text-shadow: none; }
  50% { color: #22D3EE; text-shadow: 0 0 10px rgba(34,211,238,.7); }
}

/* Longer badge text ("100% CBD · 0% THC · Lab Tested · Ships Nationwide")
   needs to shrink slightly on narrow screens to stay on one line, and
   reads better centered rather than pinned to the left edge. */
@media (max-width: 575.98px) {
  .nc-hero .hero-eyebrow {
    display: flex;
    width: max-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(.5625rem, 3vw, .75rem);
    letter-spacing: .02em;
    gap: .3rem;
    padding: .4rem .8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nc-hero .hero-eyebrow { animation: none; }
}

.nc-hero h1 { color: #fff; margin-bottom: 1.25rem; }
.nc-hero .hero-sub { color: rgba(255,255,255,.8); font-size: clamp(1rem,2vw,1.2rem); margin-bottom: 2.5rem; }

.nc-hero .hero-cta-group { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Scroll indicator */
.nc-scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.6);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Inner-page hero (smaller) */
.nc-hero-inner {
  padding: var(--space-20) 0 var(--space-16);
  min-height: 0;
  background: linear-gradient(135deg, var(--nc-50) 0%, var(--nc-white) 100%);
  border-bottom: 1px solid var(--color-border);
}
.nc-hero-inner h1 { color: var(--color-text); font-size: clamp(1.75rem,4vw,3rem); }
.nc-hero-inner p { color: var(--color-text-muted); }

/* ── 9. FEATURE CARDS (Trust bar) ────────────────────────────── */
.nc-trust-bar {
  background: var(--nc-white);
  border-bottom: 1px solid var(--color-border);
}
.nc-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 2rem 1rem;
}
.nc-trust-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--nc-primary-light);
  color: var(--nc-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.nc-trust-item h3 {
  font-size: .9375rem;
  font-weight: 700;
  margin-bottom: .25rem;
  color: var(--color-text);
}
.nc-trust-item p {
  font-size: .875rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ── 10. CATEGORY CARDS ──────────────────────────────────────── */
.nc-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) {
  .nc-category-grid { grid-template-columns: repeat(4, 1fr); }
}

.nc-cat-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  display: block;
  color: #fff;
  text-decoration: none;
}
.nc-cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,.85) 0%, transparent 55%);
  z-index: 1;
  transition: opacity var(--t-base);
}
.nc-cat-card:hover::before { opacity: .7; }
.nc-cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.nc-cat-card:hover img { transform: scale(1.06); }
.nc-cat-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  z-index: 2;
}
.nc-cat-card-body span {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--nc-primary-light);
  margin-bottom: .25rem;
}
.nc-cat-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

/* Solid category cards (homepage promo blocks) */
.nc-promo-card {
  border-radius: var(--r-lg);
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.nc-promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.nc-promo-card .promo-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  opacity: .9;
}
.nc-promo-card h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.nc-promo-card p { font-size: .9rem; opacity: .85; margin: 0; }
.nc-promo-card .promo-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 1.25rem;
  color: inherit;
  text-decoration: none;
  opacity: .9;
}
.nc-promo-card .promo-link:hover { opacity: 1; text-decoration: underline; }

.nc-promo-teal   { background: linear-gradient(135deg, #065f55 0%, #0a7970 100%); color: #fff; }
.nc-promo-slate  { background: linear-gradient(135deg, var(--nc-900) 0%, var(--nc-700) 100%); color: #fff; }
.nc-promo-amber  { background: linear-gradient(135deg, var(--nc-accent-dark) 0%, var(--nc-accent) 100%); color: #fff; }
.nc-promo-forest { background: linear-gradient(135deg, #166534 0%, #16a34a 100%); color: #fff; }

/* Photo variant — card uses a category photo (set inline via style=)
   instead of the flat gradient above. Tinted overlay keeps each card's
   original brand colour as a wash over the image for legibility/identity. */
.nc-promo-card.has-photo { background-size: cover; background-position: center; }
.nc-promo-card.has-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
}
.nc-promo-card.has-photo > * { position: relative; z-index: 1; }
.nc-promo-teal.has-photo::before   { background: linear-gradient(135deg, rgba(6,95,85,.82) 0%, rgba(10,121,112,.55) 100%); }
.nc-promo-slate.has-photo::before  { background: linear-gradient(135deg, rgba(30,41,59,.82) 0%, rgba(51,65,85,.55) 100%); }
.nc-promo-amber.has-photo::before  { background: linear-gradient(135deg, rgba(217,119,6,.82) 0%, rgba(245,158,11,.55) 100%); }
.nc-promo-forest.has-photo::before { background: linear-gradient(135deg, rgba(22,101,52,.90) 0%, rgba(22,163,74,.72) 100%); transition: background var(--t-base); }
.nc-promo-forest.has-photo:hover::before { background: linear-gradient(135deg, rgba(20,83,45,.94) 0%, rgba(22,163,74,.80) 100%); }

/* ── 11. PRODUCT CARDS ───────────────────────────────────────── */
.nc-product-card {
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  background: var(--nc-white);
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.nc-product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.nc-product-card .card-img-wrap {
  position: relative;
  background: var(--nc-50);
  aspect-ratio: 1/1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.nc-product-card .card-img-wrap img {
  max-height: 180px;
  object-fit: contain;
  transition: transform var(--t-slow);
}
.nc-product-card:hover .card-img-wrap img { transform: scale(1.08); }

/* Zoomable image indicator */
.card-img-wrap.nc-zoomable { cursor: zoom-in; }
.nc-zoom-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15,23,42,.55);
  color: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  opacity: 0;
  transition: opacity var(--t-fast);
  pointer-events: none;
}
.nc-product-card:hover .nc-zoom-hint { opacity: 1; }

.nc-product-card .card-badges {
  position: absolute;
  top: .75rem;
  left: .75rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.nc-product-card .card-actions {
  position: absolute;
  bottom: .75rem;
  right: .75rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-base), transform var(--t-base);
}
.nc-product-card:hover .card-actions {
  opacity: 1;
  transform: translateY(0);
}
.nc-product-card .card-actions .btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
}

.nc-product-card .card-body {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.nc-product-card .product-category-label {
  font-size: .7rem;
  font-weight: 700;
  color: var(--nc-primary-dark);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .35rem;
}
.nc-product-card .product-name {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: .5rem;
  line-height: 1.3;
  flex: 1;
}
.nc-product-card .product-name a {
  color: inherit;
  text-decoration: none;
}
.nc-product-card .product-name a:hover { color: var(--nc-primary); }
.nc-product-card .product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--nc-dark);
  margin-bottom: .875rem;
}
.nc-product-card .product-price del {
  font-size: .85rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-right: .35rem;
}
.nc-product-card .btn-add {
  width: 100%;
  font-size: .8125rem;
  white-space: nowrap;
  padding: .5rem 1rem;
}

/* ── 12. SECTION HEADINGS ─────────────────────────────────────── */
.nc-section-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 700;
  color: var(--nc-primary-dark);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .875rem;
}
.nc-section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--nc-primary);
  border-radius: var(--r-full);
}

.nc-section-heading {
  font-family: var(--font-display);
  color: var(--color-text);
  margin-bottom: .875rem;
}

.nc-section-sub {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  max-width: 560px;
}
.text-center .nc-section-sub { margin-left: auto; margin-right: auto; }

/* ── 13. TESTIMONIALS ─────────────────────────────────────────── */
.nc-testimonial {
  background: var(--nc-white);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  padding: 2rem;
  position: relative;
  transition: box-shadow var(--t-base), transform var(--t-base);
  /* Equal-height cards — quote text grows, reviewer stays at bottom */
  display: flex;
  flex-direction: column;
  height: 100%;
}
.nc-testimonial:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }


.nc-testimonial .stars {
  color: var(--nc-accent);
  font-size: 1rem;
  letter-spacing: .1em;
  position: relative;
  z-index: 1;
  margin-bottom: .75rem;
}

.nc-testimonial p {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--nc-700);
  font-style: italic;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
  flex: 1; /* pushes reviewer to the bottom of every card */
}

.nc-testimonial .reviewer {
  display: flex;
  align-items: center;
  gap: .875rem;
  position: relative;
  z-index: 1;
}
.nc-testimonial .reviewer img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--nc-primary-light);
}
.nc-testimonial .reviewer strong {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: var(--color-text);
}

/* ── 14. BREADCRUMB ───────────────────────────────────────────── */
.nc-breadcrumb {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: .875rem 0;
}
.nc-breadcrumb .breadcrumb {
  margin: 0;
  background: none;
  padding: 0;
  font-size: .8125rem;
}
.nc-breadcrumb .breadcrumb-item a { color: var(--color-text-muted); }
.nc-breadcrumb .breadcrumb-item.active { color: var(--color-text); font-weight: 600; }
.nc-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--nc-300); }

/* ── 15. PRODUCT DETAIL PAGE ──────────────────────────────────── */
.nc-product-gallery {
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--nc-50);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  min-height: 380px;
  cursor: zoom-in;
}
.nc-product-gallery img {
  max-height: 300px;
  object-fit: contain;
  transition: transform var(--t-slow);
}
.nc-product-gallery:hover img { transform: scale(1.05); }

.nc-product-detail .product-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem,3vw,2rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: .75rem;
}
.nc-product-detail .product-price-display {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--nc-accent-dark);
  margin-bottom: 1rem;
}
.nc-product-detail .product-desc {
  color: var(--color-text-muted);
  font-size: .9375rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.nc-qty-group {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--r-sm);
  overflow: hidden;
  width: fit-content;
}
.nc-qty-group button {
  border: none;
  background: var(--nc-100);
  color: var(--color-text);
  width: 40px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--t-fast);
}
.nc-qty-group button:hover { background: var(--nc-primary-light); color: var(--nc-primary-dark); }
.nc-qty-group input {
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  width: 56px;
  height: 44px;
  text-align: center;
  font-size: .9375rem;
  font-weight: 600;
  background: var(--color-bg);
  color: var(--color-text);
}
.nc-qty-group input:focus { outline: none; }

/* Spec list */
.nc-spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nc-spec-list li {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: .9rem;
  color: var(--nc-700);
}
.nc-spec-list li:last-child { border-bottom: none; }
.nc-spec-list li i { color: var(--nc-primary); margin-top: 2px; flex-shrink: 0; }

/* ── 16. CART & TABLE STYLES ──────────────────────────────────── */
.nc-cart-table { width: 100%; border-collapse: collapse; }
.nc-cart-table th {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-text-muted);
  padding: 1rem;
  border-bottom: 2px solid var(--color-border);
  text-align: left;
}
.nc-cart-table td {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
  color: var(--color-text);
}
.nc-cart-table td:last-child { text-align: right; }
.nc-cart-table th:last-child { text-align: right; }

.nc-cart-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--r-sm);
  object-fit: contain;
  background: var(--nc-50);
  padding: .375rem;
  border: 1px solid var(--color-border);
}

/* Mobile: force the table to a fixed layout so its total width can never
   exceed the screen, no matter how long a product name is — long names
   wrap inside their column instead of pushing the table wider. */
@media (max-width: 575.98px) {
  .nc-cart-table { table-layout: fixed; }
  .nc-cart-table th,
  .nc-cart-table td { padding: .5rem .2rem; font-size: .75rem; overflow: hidden; }
  .nc-cart-table th { font-size: .5625rem; }
  .nc-cart-table th:nth-child(1), .nc-cart-table td:nth-child(1) { width: 36px; }
  .nc-cart-table th:nth-child(2), .nc-cart-table td:nth-child(2) { width: auto; }
  .nc-cart-table th:nth-child(3), .nc-cart-table td:nth-child(3) { width: 52px; overflow: visible; }
  .nc-cart-table th:nth-child(4), .nc-cart-table td:nth-child(4) { width: 66px; }
  .nc-cart-table th:nth-child(5), .nc-cart-table td:nth-child(5) { width: 52px; overflow: visible; }
  .nc-cart-table th:nth-child(6), .nc-cart-table td:nth-child(6) { width: 24px; }
  .nc-cart-table th:nth-child(3), .nc-cart-table th:nth-child(5),
  .nc-cart-table td:nth-child(3), .nc-cart-table td:nth-child(5) { font-size: .6875rem; white-space: nowrap; }
  .nc-cart-table td.product-name {
    overflow: visible;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .nc-cart-table td.product-name h2 { font-size: .8125rem; line-height: 1.25; margin: 0; }
  .nc-cart-table .product-thumbnail img { width: 32px; height: 32px; }
  .nc-cart-table .nc-qty-ctrl { height: 24px; }
  .nc-cart-table .nc-qty-btn { flex: 0 0 16px; width: 16px; height: 24px; font-size: .6875rem; }
  .nc-cart-table .nc-qty-inp { flex: 0 0 20px; width: 20px; height: 24px; font-size: .625rem; }
  .nc-cart-table td:last-child { padding-right: 0; padding-left: 0; }
  .nc-cart-table td:last-child .btn {
    padding: 0;
    width: 20px;
    height: 20px;
    font-size: .5625rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Cart qty stepper — fully custom, no Bootstrap input-group */
.nc-qty-ctrl {
  display: inline-flex;
  align-items: stretch;
  border: 1.5px solid var(--color-border);
  border-radius: var(--r-sm);
  overflow: hidden;
  height: 34px;
}
.nc-qty-btn {
  flex: 0 0 30px;
  width: 30px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--nc-primary);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  transition: background var(--t-fast);
}
.nc-qty-btn:hover { background: var(--nc-100); }
.nc-qty-inp {
  flex: 0 0 40px;
  width: 40px;
  height: 34px;
  border: none;
  border-left: 1.5px solid var(--color-border);
  border-right: 1.5px solid var(--color-border);
  text-align: center;
  font-size: .875rem;
  font-family: inherit;
  color: var(--color-text);
  background: transparent;
  -moz-appearance: textfield;
}
.nc-qty-inp::-webkit-inner-spin-button,
.nc-qty-inp::-webkit-outer-spin-button { -webkit-appearance: none; }
.nc-qty-inp:focus { outline: none; background: var(--nc-50); }

.nc-cart-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
}
.nc-cart-summary h4 {
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--color-border);
}
.nc-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .625rem 0;
  font-size: .9375rem;
}
.nc-summary-row.total {
  font-weight: 700;
  font-size: 1.1rem;
  border-top: 2px solid var(--color-border);
  margin-top: .5rem;
  padding-top: .875rem;
  color: var(--color-text);
}

/* ── 17. CHECKOUT FORM ────────────────────────────────────────── */
.nc-checkout-section {
  background: var(--nc-white);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.nc-checkout-section h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: .875rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.nc-payment-option {
  border: 2px solid var(--color-border);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
  margin-bottom: .75rem;
}
.nc-payment-option.selected, .nc-payment-option:hover {
  border-color: var(--nc-primary);
  background: var(--nc-primary-light);
}

/* EFT box */
.nc-eft-box {
  background: var(--nc-50);
  border: 1.5px solid var(--nc-primary);
  border-radius: var(--r-md);
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
}
.nc-eft-box h6 { font-weight: 700; color: var(--color-text); margin-bottom: .875rem; }
.nc-eft-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.nc-eft-table td { padding: .35rem 0; vertical-align: top; color: var(--nc-700); }
.nc-eft-table td:first-child { font-weight: 600; color: var(--color-text); width: 140px; }
.nc-ref { font-size: 1rem; font-weight: 700; color: var(--nc-primary-dark); }

/* ── 18. THANK YOU PAGE ───────────────────────────────────────── */
.nc-thankyou-card {
  background: var(--nc-white);
  border: 1px solid var(--color-border);
  border-radius: var(--r-xl);
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.nc-thankyou-icon {
  width: 72px;
  height: 72px;
  background: var(--nc-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--nc-primary-dark);
}
.nc-order-table th {
  background: var(--nc-50);
  padding: .875rem 1rem;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: left;
}
.nc-order-table td {
  padding: .75rem 1rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: .9375rem;
}
.nc-order-table tfoot td {
  font-weight: 700;
  background: var(--nc-50);
}

/* ── 19. ABOUT PAGE ───────────────────────────────────────────── */
.nc-stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
}
.nc-stat-card .stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--nc-primary);
  line-height: 1;
  margin-bottom: .5rem;
}
.nc-stat-card .stat-label {
  font-size: .875rem;
  color: var(--color-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── 20. CONTACT PAGE ─────────────────────────────────────────── */
.nc-contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}
.nc-contact-info-item:last-child { border-bottom: none; }
.nc-contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--nc-primary-light);
  color: var(--nc-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.nc-contact-info-item h6 {
  font-weight: 700;
  font-size: .875rem;
  margin-bottom: .2rem;
  color: var(--color-text);
}
.nc-contact-info-item p { color: var(--color-text-muted); font-size: .9rem; margin: 0; }

/* ── 21. FOOTER ───────────────────────────────────────────────── */
.nc-footer {
  background: var(--nc-100);
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding: 1.25rem 0 var(--space-6);
}
[data-theme="dark"] .nc-footer { background: #070d1a; color: rgba(255,255,255,.7); border-top-color: transparent; }

.nc-footer .footer-brand img { height: 44px; }
.nc-footer .footer-brand p {
  font-size: .875rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-top: 1rem;
}
[data-theme="dark"] .nc-footer .footer-brand p { color: rgba(255,255,255,.55); }

.nc-footer h6 {
  color: var(--color-text);
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1.25rem;
}
[data-theme="dark"] .nc-footer h6 { color: #fff; }

.nc-footer ul { list-style: none; padding: 0; margin: 0; }
.nc-footer ul li { margin-bottom: .625rem; }
.nc-footer ul li a {
  color: var(--color-text-muted);
  font-size: .875rem;
  transition: color var(--t-fast);
}
[data-theme="dark"] .nc-footer ul li a { color: rgba(255,255,255,.55); }
.nc-footer ul li a:hover { color: var(--nc-primary); }

.nc-footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  margin-top: var(--space-4);
  font-size: .8125rem;
  color: var(--color-text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
[data-theme="dark"] .nc-footer-bottom { border-top-color: rgba(255,255,255,.1); color: rgba(255,255,255,.4); }
.nc-footer-bottom a { color: var(--color-text-muted); }
[data-theme="dark"] .nc-footer-bottom a { color: rgba(255,255,255,.55); }
.nc-footer-bottom a:hover { color: var(--nc-primary); }

/* ── 22. SCROLL ANIMATIONS ─────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.4,0,.2,1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="fade"] { transform: none; }
[data-reveal="left"] { transform: translateX(-24px); }
[data-reveal="right"] { transform: translateX(24px); }
[data-reveal="left"].is-visible,
[data-reveal="right"].is-visible { transform: translateX(0); }

[data-delay="100"] { transition-delay: .1s; }
[data-delay="200"] { transition-delay: .2s; }
[data-delay="300"] { transition-delay: .3s; }
[data-delay="400"] { transition-delay: .4s; }
[data-delay="500"] { transition-delay: .5s; }

/* ── 23. MISC UTILITIES ───────────────────────────────────────── */
.divider-dot::after { content: '·'; margin: 0 .5rem; opacity: .4; }
.divider-dot:last-child::after { display: none; }

.nc-pill {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .3rem .875rem;
  border-radius: var(--r-full);
  font-size: .8125rem;
  font-weight: 600;
  border: 1px solid;
}
.nc-pill-teal { background: var(--nc-primary-light); color: var(--nc-primary-dark); border-color: var(--nc-primary-light); }

/* Inline search — expands between magnifier and account icons */
.nc-search-inline-input {
  max-width: 0;
  width: 0;
  border: none;
  border-bottom: 2px solid transparent;
  outline: none;
  background: transparent;
  padding: .25rem 0;
  font-size: .875rem;
  color: var(--color-text);
  opacity: 0;
  overflow: hidden;
  transition: max-width .3s ease, opacity .25s ease, border-color .25s ease, padding .25s ease;
  vertical-align: middle;
  position: relative;
}
.nc-search-inline-input.expanded {
  max-width: 220px;
  width: 220px;
  border-bottom-color: var(--nc-primary);
  padding: .25rem .625rem;
  opacity: 1;
}
@media (max-width: 575px) {
  .nc-search-inline-input.expanded { max-width: 130px; width: 130px; }
}
@media (max-width: 991px) {
  .nc-search-inline-input.expanded {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(12px);
    max-width: 200px;
    width: 200px;
    background: var(--color-bg);
    z-index: 10;
  }
}

.nc-search-inline-input::placeholder { color: var(--nc-400); }
[data-theme="dark"] .nc-search-inline-input { color: #fff; }
[data-theme="dark"] .nc-search-inline-input::placeholder { color: rgba(255,255,255,.45); }

/* Search results dropdown */
.nc-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  z-index: 2100;
  display: none;
  overflow: hidden;
}
.nc-search-dropdown.active { display: block; }
.nc-search-result-item {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .625rem 1rem;
  text-decoration: none;
  color: var(--color-text);
  transition: background var(--t-fast);
  border-bottom: 1px solid var(--color-border);
}
.nc-search-result-item:last-of-type { border-bottom: none; }
.nc-search-result-item:hover { background: var(--nc-50); color: var(--color-text); }
.nc-search-result-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: var(--r-sm);
  background: var(--nc-50);
  flex-shrink: 0;
}
.nc-search-result-info { display: flex; flex-direction: column; gap: .125rem; min-width: 0; }
.nc-search-result-name { font-size: .8125rem; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-search-result-meta { display: flex; align-items: center; gap: .5rem; font-size: .75rem; color: var(--nc-500); }
.nc-search-result-cat { background: var(--nc-primary-light); color: var(--nc-primary-dark); padding: .1rem .45rem; border-radius: 999px; font-size: .7rem; font-weight: 600; }
.nc-search-no-results { padding: 1rem; text-align: center; color: var(--nc-500); font-size: .875rem; }
.nc-search-view-all { display: block; padding: .625rem 1rem; text-align: center; font-size: .8rem; font-weight: 600; color: var(--nc-primary); text-decoration: none; border-top: 1px solid var(--color-border); }
.nc-search-view-all:hover { background: var(--nc-50); }
[data-theme="dark"] .nc-search-result-item:hover { background: rgba(20,184,166,.08); }
[data-theme="dark"] .nc-search-dropdown { background: #1e293b; border-color: rgba(255,255,255,.1); }

/* Search overlay — drops down from top-right near the search icon */
.nc-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.25);
  backdrop-filter: blur(2px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 64px;
  padding-right: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base), visibility var(--t-base);
}
.nc-search-overlay.active { opacity: 1; visibility: visible; }
.nc-search-box {
  background: var(--color-bg);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  width: min(360px, 92vw);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
}
.nc-search-box input {
  border: 2px solid var(--nc-primary);
  border-radius: var(--r-md);
  padding: .875rem 1.25rem;
  font-size: 1.1rem;
  width: 100%;
  background: var(--color-bg);
  color: var(--color-text);
}
.nc-search-box input:focus { outline: none; box-shadow: var(--shadow-glow); }

/* Login/Register page */
.nc-auth-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--nc-white);
  border: 1px solid var(--color-border);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

/* ── PRODUCT DETAIL TAB PILLS ──────────────────────────────────── */
.nav-pills .nav-link {
  color: var(--nc-primary);
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: var(--r-full);
  font-size: .875rem;
  font-weight: 500;
  padding: .4rem 1.1rem;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.nav-pills .nav-link:hover {
  background: var(--nc-100);
  border-color: var(--nc-primary);
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background: var(--nc-primary);
  color: #fff;
  border-color: var(--nc-primary);
}
[data-theme="dark"] .nav-pills .nav-link { color: var(--nc-300); }
[data-theme="dark"] .nav-pills .nav-link:hover { background: rgba(20,184,166,.15); border-color: var(--nc-primary); }
[data-theme="dark"] .nav-pills .nav-link.active { background: var(--nc-primary); color: #fff; }

/* Tab pills for auth */
.nc-auth-tabs { display: flex; gap: .5rem; margin-bottom: 2rem; }
.nc-auth-tab {
  flex: 1;
  padding: .625rem;
  text-align: center;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  transition: all var(--t-fast);
}
.nc-auth-tab.active {
  background: var(--nc-primary);
  border-color: var(--nc-primary);
  color: #fff;
}

/* Disclaimer bar */
.nc-disclaimer {
  background: rgba(20,184,166,.08);
  border-left: 3px solid var(--nc-primary);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: .875rem 1.25rem;
  font-size: .8125rem;
  color: var(--nc-700);
  margin: 1.5rem 0;
}

/* Input spinner removal */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* ── 24. RESPONSIVE TWEAKS ─────────────────────────────────────── */
@media (max-width: 767px) {
  .nc-product-gallery { min-height: 260px; padding: 1.5rem; }
  .nc-thankyou-card { padding: 2rem 1.25rem; }
  .nc-checkout-section { padding: 1.25rem; }
  .nc-footer-bottom { flex-direction: column; text-align: center; }
  .nc-trust-item { padding: 1.25rem .5rem; }
}

@media (max-width: 575px) {
  .nc-category-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .nc-hero .hero-cta-group { flex-direction: column; }
  .nc-hero .hero-cta-group .btn { width: 100%; justify-content: center; }
  [class*="col-sm-6"]:has(.nc-product-card) { flex: 0 0 auto; width: 50%; }
  .nc-hero { align-items: flex-start; padding-top: 4rem; }
}

/* ── 25. LIGHTBOX MODAL ────────────────────────────────────────── */
.nc-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgb(248,250,252);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base), visibility var(--t-base);
  cursor: zoom-out;
}
.nc-lightbox-overlay.active { opacity: 1; visibility: visible; }
.nc-lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}
.nc-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--nc-700);
  background: rgba(15,23,42,.08);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background var(--t-fast);
}
.nc-lightbox-close:hover { background: rgba(15,23,42,.15); }
[data-theme="dark"] .nc-lightbox-overlay {
  background: rgba(15,23,42,.99);
}
[data-theme="dark"] .nc-lightbox-close {
  color: #fff;
  background: rgba(255,255,255,.1);
}
[data-theme="dark"] .nc-lightbox-close:hover { background: rgba(255,255,255,.2); }

/* ── SECTION BANNERS ─────────────────────────────────────────────── */
.nc-section-banner {
  --nc-banner-grad: linear-gradient(135deg, rgba(15,23,42,.78) 0%, rgba(20,184,166,.42) 100%);
  position: relative;
  width: 100%;
  min-height: 200px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Centered layout — used for Best Sellers & Testimonials */
.nc-section-banner-overlay {
  position: absolute;
  inset: 0;
  background: var(--nc-banner-grad);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  text-align: center;
}
/* Split layout — label on left, View All on right */
.nc-section-banner--split .nc-section-banner-overlay {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  padding: 1.75rem 2rem;
  min-height: 120px;
}
.nc-section-banner--split { min-height: 120px; }
.nc-section-banner .nc-section-label { color: rgba(255,255,255,.78); }
.nc-section-banner .nc-section-label::before { background: rgba(255,255,255,.5); }
.nc-section-banner .nc-section-heading { color: #fff; margin-bottom: .25rem; }
.nc-section-banner .nc-section-sub { color: rgba(255,255,255,.82); max-width: 520px; }
.nc-section-banner .btn-outline-light { border-color: rgba(255,255,255,.7); white-space: nowrap; flex-shrink: 0; }
.nc-section-banner .btn-outline-light:hover { background: #fff; color: var(--nc-dark); }
@media (max-width: 575px) {
  .nc-section-banner { min-height: 0; }
  .nc-section-banner-overlay {
    position: relative;
    inset: auto;
    padding: 2rem 1.25rem;
  }
  .nc-section-banner--split { min-height: 0; }
  .nc-section-banner--split .nc-section-banner-overlay {
    position: relative;
    inset: auto;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
    padding: 1.5rem 1.25rem;
  }
}

/* ── MOBILE NAVBAR: fit logos + icons in one row ────────────── */
@media (max-width: 575.98px) {
  .nc-navbar .navbar-brand img { height: 32px; }
  .nc-navbar .navbar-brand { gap: 0.375rem !important; }
  .nc-nav-icon { width: 32px; height: 32px; font-size: 1rem; }
  .nc-navbar .container > .d-flex { gap: 0.25rem !important; }
}

/* ── LEAF WATERMARK ──────────────────────────────────────────── */
.section, .nc-trust-bar {
  position: relative;
  isolation: isolate;
}

.section::after, .nc-trust-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/images/Leaf.png');
  background-size: 220px 220px;
  background-repeat: repeat;
  opacity: 0.05;
  pointer-events: none;
  z-index: -1;
}

[data-theme="dark"] .section::after,
[data-theme="dark"] .nc-trust-bar::after {
  opacity: 0.12;
  filter: invert(1);
}


/* ── DARK MODE: STRUCTURAL FIXES ────────────────────────────────
   --nc-dark / --nc-900 / --nc-700 invert to light values in dark mode.
   Components that use these tokens as BACKGROUNDS need hardcoded overrides.
   ──────────────────────────────────────────────────────────────── */

/* Inner-page hero: dark mode restores dark gradient + white text */
[data-theme="dark"] .nc-hero-inner {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-bottom-color: transparent;
}
[data-theme="dark"] .nc-hero-inner h1 { color: #fff; }
[data-theme="dark"] .nc-hero-inner p { color: rgba(255,255,255,.7); }

/* Slate promo card: --nc-900/--nc-700 flip to light gray in dark mode.
   Excludes .has-photo — that variant uses an inline background-image
   (the Pet Wellness bento photo); this shorthand would reset its
   background-size/position back to auto, making the photo invisible. */
[data-theme="dark"] .nc-promo-slate:not(.has-photo) {
  background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
}

/* Product title uses Bootstrap's .text-black utility (hardcoded #000
   !important) — invisible on the dark background. Dark-mode only; light
   mode keeps the original black unchanged. */
[data-theme="dark"] .text-black {
  color: var(--color-text) !important;
}

/* Section labels: use brighter teal for better contrast on dark surfaces */
[data-theme="dark"] .nc-section-label {
  color: var(--nc-primary);
}
[data-theme="dark"] .nc-section-label::before {
  background: var(--nc-primary);
}

/* ── DARK MODE: BOOTSTRAP COMPONENT OVERRIDES ───────────────────
   Bootstrap 5.3 components use their own CSS variable system and
   don't auto-adapt to data-theme="dark". These overrides fix every
   Bootstrap component used across the site.
   ──────────────────────────────────────────────────────────────── */

/* Accordion (FAQ on contact page, any other accordions) */
[data-theme="dark"] .accordion-item {
  background-color: var(--nc-white);
  border-color: var(--color-border) !important;
  color: var(--color-text);
}
[data-theme="dark"] .accordion-button {
  background-color: var(--nc-white);
  color: var(--color-text);
}
[data-theme="dark"] .accordion-button:not(.collapsed) {
  background-color: var(--nc-100);
  color: var(--nc-primary);
  box-shadow: inset 0 -1px 0 var(--color-border);
}
[data-theme="dark"] .accordion-button::after {
  filter: invert(1) brightness(1.5);
}
[data-theme="dark"] .accordion-body {
  background-color: var(--nc-white);
  color: var(--color-text-muted);
}

/* Form inputs and selects (contact form, checkout) */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
  background-color: var(--nc-100);
  border-color: var(--color-border);
  color: var(--color-text);
}
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
  background-color: var(--nc-100);
  border-color: var(--nc-primary);
  color: var(--color-text);
  box-shadow: var(--shadow-glow);
}
[data-theme="dark"] .form-control::placeholder { color: var(--color-text-muted); }
[data-theme="dark"] .form-select option { background-color: var(--nc-100); color: var(--color-text); }
[data-theme="dark"] .form-label { color: var(--color-text); }

/* Bootstrap utility classes that don't adapt to custom dark mode */
[data-theme="dark"] .bg-white { background-color: var(--nc-white) !important; }
[data-theme="dark"] .bg-light { background-color: var(--nc-100) !important; }
[data-theme="dark"] .text-muted { color: var(--color-text-muted) !important; }
[data-theme="dark"] .border { border-color: var(--color-border) !important; }

/* EFT / shipping info box: --nc-50 equals body bg in dark mode, loses contrast */
[data-theme="dark"] .nc-eft-box { background: var(--nc-100); }

/* Payment option selected/hover: --nc-primary-light stays light teal in dark mode */
[data-theme="dark"] .nc-payment-option.selected,
[data-theme="dark"] .nc-payment-option:hover {
  background: rgba(20, 184, 166, 0.15);
  border-color: var(--nc-primary);
}

/* Second logo: invert black text to white in dark mode; hue-rotate preserves green leaf */
[data-theme="dark"] .nc-second-logo {
  filter: invert(1) hue-rotate(180deg);
}

