/* =========================================================================
   STOCKTODOS — B2B Wholesale Design System
   =========================================================================
   A premium pharmaceutical / supplement wholesale aesthetic.
   Dominant navy + cobalt/teal accents on warm off-white paper.
   Typography: Instrument Serif (display) · Figtree (body) · JetBrains Mono (data)
   ========================================================================= */


/* -------------------------------------------------------------------------
   §1  MODERN CSS RESET
   ------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  scroll-behavior: smooth;
}

body, h1, h2, h3, h4, h5, h6, p,
figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}

ul, ol {
  list-style: none;
}

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

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

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}


/* -------------------------------------------------------------------------
   §2  CSS CUSTOM PROPERTIES
   ------------------------------------------------------------------------- */
:root {
  /* — Palette — */
  --ink:        #0B0F19;
  --navy:       #1B2A4A;
  --cobalt:     #2E5AAC;
  --teal:       #0D9488;
  --amber:      #D97706;
  --crimson:    #DC2626;
  --paper:      #FAFBFC;
  --slate-50:   #F1F5F9;
  --slate-200:  #E2E8F0;
  --slate-500:  #64748B;
  --white:      #FFFFFF;

  /* — Typography — */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'Figtree', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* — Radii — */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  /* — Shadows — */
  --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md:  0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg:  0 8px 30px rgba(0, 0, 0, 0.12);

  /* — Motion — */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* — Spacing scale (internal) — */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-8: 3rem;
  --sp-10: 4rem;
  --sp-12: 5rem;
  --sp-16: 8rem;
}


/* -------------------------------------------------------------------------
   §3  BASE STYLES
   ------------------------------------------------------------------------- */
html,
body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* -------------------------------------------------------------------------
   §4  TYPOGRAPHY
   ------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 0.95rem; font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 600; }

code, .mono,
.product-card__price,
.product-card__sku,
.price-tiers {
  font-family: var(--font-mono);
}

small { font-size: 0.85em; }

::selection {
  background-color: var(--cobalt);
  color: var(--white);
}


/* -------------------------------------------------------------------------
   §5  CONTAINER & LAYOUT
   ------------------------------------------------------------------------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--sp-12) 0;
}

.container.section {
  padding-left: 24px;
  padding-right: 24px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--navy);
  margin-bottom: var(--sp-3);
}

.section__subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--slate-500);
  max-width: 600px;
  margin-bottom: var(--sp-8);
}


/* -------------------------------------------------------------------------
   §6  BUTTONS
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.7em 1.6em;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.4;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.12), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}

.btn:hover::after { opacity: 1; }

/* Primary — Navy */
.btn--primary {
  background-color: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn--primary:hover {
  background-color: #243a62;
  border-color: #243a62;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn--primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Secondary — Cobalt */
.btn--secondary {
  background-color: var(--cobalt);
  color: var(--white);
  border-color: var(--cobalt);
}
.btn--secondary:hover {
  background-color: #3668c4;
  border-color: #3668c4;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn--secondary:active {
  transform: translateY(0);
}

/* Outline */
.btn--outline {
  background-color: transparent;
  color: var(--navy);
  border-color: var(--slate-200);
}
.btn--outline:hover {
  border-color: var(--navy);
  background-color: rgba(27, 42, 74, 0.04);
}

/* Disabled */
.btn--disabled,
.btn:disabled {
  background-color: var(--slate-200);
  color: var(--slate-500);
  border-color: var(--slate-200);
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}
.btn--disabled::after { display: none; }

/* Sizes */
.btn--small {
  padding: 0.4em 1em;
  font-size: 0.8rem;
}

.btn--large {
  padding: 0.9em 2.2em;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}


/* -------------------------------------------------------------------------
   §7  BADGES
   ------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.2em 0.65em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.5;
  border-radius: var(--radius-sm);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* Stock — Teal */
.badge--stock {
  background-color: rgba(13, 148, 136, 0.1);
  color: var(--teal);
  border: 1px solid rgba(13, 148, 136, 0.2);
}

/* MOQ — Amber */
.badge--moq {
  background-color: rgba(217, 119, 6, 0.1);
  color: var(--amber);
  border: 1px solid rgba(217, 119, 6, 0.2);
}

/* SKU — Slate */
.badge--sku {
  background-color: rgba(100, 116, 139, 0.08);
  color: var(--slate-500);
  border: 1px solid rgba(100, 116, 139, 0.15);
}


/* -------------------------------------------------------------------------
   §8  LOADING SPINNER
   ------------------------------------------------------------------------- */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-16) 0;
  gap: var(--sp-4);
}

.loading-spinner__ring {
  width: 40px;
  height: 40px;
  border: 3px solid var(--slate-200);
  border-top-color: var(--cobalt);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-spinner__text {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--slate-500);
  letter-spacing: 0.02em;
}


/* -------------------------------------------------------------------------
   §9  HEADER
   ------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--transition);
}

.header--scrolled {
  box-shadow: var(--shadow-md);
}

/* ---- Top bar (dark navy strip) ---- */
.header__top-bar {
  background-color: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  padding: 0.4rem 0;
}

.header__top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__top-bar a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition);
}

.header__top-bar a:hover {
  color: var(--white);
}

.header__top-bar-left {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.header__top-bar-right {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

/* ---- Main header row ---- */
.header__main {
  padding: 0.75rem 0;
}

.header__main .container {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

/* Logo */
.header__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: opacity var(--transition);
}

.header__logo:hover {
  opacity: 0.8;
}

.header__logo em {
  font-style: italic;
  color: var(--cobalt);
}

/* Navigation */
.header__nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.header__nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
  white-space: nowrap;
}

.header__nav-link:hover {
  color: var(--cobalt);
  background-color: rgba(46, 90, 172, 0.05);
}

.header__nav-link--active {
  color: var(--cobalt);
}

/* Header actions (search, cart, auth) */
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.header__search {
  position: relative;
}

/* ---- Search bar ---- */
.search-bar {
  display: flex;
  align-items: center;
  background-color: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 0.4rem 0.75rem;
  gap: 0.4rem;
  transition: all var(--transition);
  width: 220px;
}

.search-bar:focus-within {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(46, 90, 172, 0.1);
  background-color: var(--white);
  width: 280px;
}

.search-bar__icon {
  color: var(--slate-500);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.search-bar__input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.85rem;
  width: 100%;
  color: var(--ink);
}

.search-bar__input::placeholder {
  color: var(--slate-500);
}

/* ---- Sort bar ---- */
.sort-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.sort-bar select {
  padding: 0.45rem 2rem 0.45rem 0.75rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  background-color: var(--white);
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  transition: border-color var(--transition);
}

.sort-bar select:focus {
  border-color: var(--cobalt);
  outline: none;
}

/* ---- Language toggle ---- */
.lang-toggle {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.lang-toggle__btn {
  padding: 0.2rem 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 1.1rem;
  line-height: 1;
  filter: grayscale(100%);
  opacity: 0.5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-toggle__btn--active {
  filter: grayscale(0%);
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.15);
}

.lang-toggle__btn:not(.lang-toggle__btn--active):hover {
  filter: grayscale(30%);
  opacity: 0.8;
  background-color: rgba(255, 255, 255, 0.08);
}

/* ---- Auth status ---- */
.auth-status {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.85rem;
}

.auth-status__user {
  font-weight: 500;
  color: var(--navy);
}

/* ---- Mega dropdown ---- */
.mega-dropdown {
  position: static;
}

.mega-dropdown__trigger {
  display: flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.5rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.mega-dropdown__trigger:hover {
  color: var(--cobalt);
  background-color: rgba(46, 90, 172, 0.05);
}

.mega-dropdown__trigger svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.mega-dropdown:hover .mega-dropdown__trigger svg,
.mega-dropdown--open .mega-dropdown__trigger svg {
  transform: rotate(180deg);
}

.mega-dropdown__panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 960px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.03);
  padding: var(--sp-5);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  align-items: start !important;
  gap: var(--sp-5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1001;
}

.mega-dropdown:hover .mega-dropdown__panel,
.mega-dropdown--open .mega-dropdown__panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.mega-dropdown__group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  align-self: start;
}

.mega-dropdown__title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--slate-200);
}

.mega-dropdown__link {
  font-size: 0.88rem;
  color: var(--ink);
  padding: 0.3rem 0;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.mega-dropdown__link:hover {
  color: var(--cobalt);
  padding-left: 6px;
}

.mega-dropdown__link-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--slate-500);
}

/* ---- Hamburger ---- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
  z-index: 1010;
  flex-shrink: 0;
}

.hamburger__line {
  width: 100%;
  height: 2px;
  background-color: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

.hamburger--active .hamburger__line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger--active .hamburger__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger--active .hamburger__line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Mobile menu ---- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(85vw, 380px);
  height: 100dvh;
  background-color: var(--white);
  z-index: 1005;
  padding: var(--sp-10) var(--sp-5) var(--sp-5);
  overflow-y: auto;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  visibility: hidden;
}

body.mobile-menu--open .mobile-menu {
  right: 0;
  visibility: visible;
}

.mobile-menu__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.mobile-menu__close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--navy);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu__backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(11, 15, 25, 0.5);
  z-index: 1004;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

body.mobile-menu--open .mobile-menu__backdrop {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--slate-50);
  transition: color var(--transition);
}

.mobile-menu__link:hover {
  color: var(--cobalt);
}

.mobile-menu__section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
  margin-top: var(--sp-4);
}


/* -------------------------------------------------------------------------
   §10  HERO
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  background-image: linear-gradient(rgba(11, 15, 25, 0.8), rgba(27, 42, 74, 0.8)), url('../hero%20(2).jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  padding: var(--sp-16) 0 var(--sp-12);
  overflow: hidden;
}

/* Noise texture overlay */
.hero::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)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.03;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

/* Subtle gradient accent */
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 70%;
  height: 180%;
  background: radial-gradient(
    ellipse at center,
    rgba(46, 90, 172, 0.2) 0%,
    rgba(13, 148, 136, 0.05) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  color: var(--white);
  line-height: 1.08;
  margin-bottom: var(--sp-5);
  letter-spacing: -0.02em;
}

.hero__title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--teal) 0%, #5BC0B5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: var(--sp-6);
  max-width: 540px;
}

.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.hero__stat-bar {
  display: flex;
  gap: var(--sp-8);
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__stat {
  text-align: left;
}

.hero__stat-number {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--white);
}

.hero__stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* Advantage Cards Styling */
.advantage-card__icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(46, 90, 172, 0.06);
  display: grid;
  place-items: center;
  margin: 0 auto var(--sp-4) auto;
  color: var(--navy);
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
}

.card:hover .advantage-card__icon-wrap {
  background-color: rgba(13, 148, 136, 0.1);
  color: var(--teal);
  transform: scale(1.05);
}

.advantage-card__icon-wrap svg {
  width: 32px !important;
  height: 32px !important;
  stroke-width: 1.5 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block;
}


/* -------------------------------------------------------------------------
   §11  SECTION STYLES
   ------------------------------------------------------------------------- */
/* (Already defined in §5 — .section, .section__title, .section__subtitle) */
/* Additional section modifiers */

.section--alt {
  background-color: var(--slate-50);
}

.section--navy {
  background-color: var(--navy);
  color: var(--white);
}

.section--navy .section__title {
  color: var(--white);
}

.section--navy .section__subtitle {
  color: rgba(255, 255, 255, 0.7);
}


/* -------------------------------------------------------------------------
   §11.5 PROMO BANNERS
   ------------------------------------------------------------------------- */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-6);
}

.promo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 340px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  border: 1px solid var(--slate-200);
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.promo-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 15, 25, 0.95) 0%, rgba(11, 15, 25, 0.4) 60%, rgba(11, 15, 25, 0.1) 100%);
  z-index: 1;
}

.promo-card__content {
  position: relative;
  z-index: 2;
  padding: var(--sp-6) var(--sp-8);
  width: 100%;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.promo-card__badge {
  display: inline-block;
  background-color: var(--teal);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--sp-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.promo-card__title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1.1;
  margin-bottom: var(--sp-2);
  color: var(--white);
}

.promo-card__subtitle {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--sp-4);
  line-height: 1.4;
}

.promo-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  transition: gap var(--transition);
}

.promo-card__link::after {
  content: ' →';
  transition: transform var(--transition);
}

.promo-card:hover .promo-card__link::after {
  transform: translateX(4px);
}


/* -------------------------------------------------------------------------
   §12  COLLECTION GRID
   ------------------------------------------------------------------------- */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-5);
}

.collection-card {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--cobalt);
}

.collection-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  padding: var(--sp-4);
  background-color: var(--white);
  transition: transform var(--transition);
}

.collection-card:hover .collection-card__image {
  transform: scale(1.03);
}

.collection-card__body {
  padding: var(--sp-4);
}

.collection-card__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: var(--sp-1);
}

.collection-card__count {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slate-500);
}


/* -------------------------------------------------------------------------
   §13  PRODUCT GRID
   ------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}


/* -------------------------------------------------------------------------
   §14  PRODUCT CARD
   ------------------------------------------------------------------------- */
.product-card {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(46, 90, 172, 0.25);
}

.product-card__image-wrap {
  position: relative;
  overflow: hidden;
  background-color: var(--slate-50);
}

.product-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: var(--sp-3);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-card__body {
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--sp-1);
}

.product-card__brand {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cobalt);
}

.product-card__name {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.product-card__sku {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--slate-500);
}

.product-card__price {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--navy);
  margin-top: auto;
  padding-top: var(--sp-2);
}

.product-card__price-from {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--slate-500);
}

.product-card__moq {
  margin-top: var(--sp-2);
}

.product-card__login-prompt {
  font-size: 0.82rem;
  color: var(--cobalt);
  font-weight: 500;
  margin-top: auto;
  padding-top: var(--sp-2);
  cursor: pointer;
  transition: color var(--transition);
}

.product-card__login-prompt:hover {
  color: var(--navy);
  text-decoration: underline;
}


/* -------------------------------------------------------------------------
   §15  PRODUCT DETAIL
   ------------------------------------------------------------------------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  padding: var(--sp-6) 0;
}

/* Gallery (left) */
.product-detail__gallery {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  position: sticky;
  top: 120px;
  align-self: start;
}

.product-detail__main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background-color: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  cursor: zoom-in;
}

.product-detail__thumbs {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.product-detail__thumb {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 4px;
  cursor: pointer;
  transition: all var(--transition);
  background-color: var(--white);
}

.product-detail__thumb:hover {
  border-color: var(--cobalt);
}

.product-detail__thumb--active {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 2px rgba(46, 90, 172, 0.15);
}

/* Info (right) */
.product-detail__info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.product-detail__brand {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cobalt);
}

.product-detail__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  line-height: 1.2;
}

.product-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.product-detail__price {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--navy);
}

.product-detail__price-note {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--slate-500);
}

.product-detail__tiers {
  margin: var(--sp-3) 0;
}

.product-detail__qty {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.product-detail__qty-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
}

.product-detail__qty-input {
  width: 90px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  text-align: center;
  transition: border-color var(--transition);
}

.product-detail__qty-input:focus {
  border-color: var(--cobalt);
  outline: none;
  box-shadow: 0 0 0 3px rgba(46, 90, 172, 0.1);
}

.product-detail__qty-warning {
  font-size: 0.82rem;
  color: var(--crimson);
  font-weight: 500;
}

.product-detail__actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.product-detail__description {
  padding-top: var(--sp-5);
  border-top: 1px solid var(--slate-200);
  line-height: 1.7;
  color: var(--ink);
}

.product-detail__description h3,
.product-detail__description h4 {
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-2);
}

.product-detail__description ul {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1em;
}

.product-detail__description li {
  margin-bottom: 0.3em;
}


/* -------------------------------------------------------------------------
   §16  CART PAGE
   ------------------------------------------------------------------------- */
.cart-page {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--sp-8);
  align-items: start;
  padding: var(--sp-6) 0;
}

/* Cart table (desktop) */
.cart-table {
  width: 100%;
}

.cart-table thead {
  border-bottom: 2px solid var(--slate-200);
}

.cart-table th {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-500);
  padding: 0.75rem 0.5rem;
  text-align: left;
}

.cart-table td {
  padding: 1rem 0.5rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--slate-50);
}

/* Cart item (row) */
.cart-item {
  transition: background-color var(--transition);
}

.cart-item:hover {
  background-color: var(--slate-50);
}

.cart-item__image {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200);
  background: var(--white);
}

.cart-item__info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cart-item__name {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink);
}

.cart-item__sku {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--slate-500);
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.cart-item__qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--ink);
}

.cart-item__qty-btn:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
}

.cart-item__qty-input {
  width: 50px;
  text-align: center;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.cart-item__qty-input:focus {
  border-color: var(--cobalt);
  outline: none;
}

.cart-item__price,
.cart-item__total {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}

.cart-item__remove {
  color: var(--slate-500);
  font-size: 0.82rem;
  cursor: pointer;
  transition: color var(--transition);
  background: none;
  border: none;
  padding: 0.3rem;
}

.cart-item__remove:hover {
  color: var(--crimson);
}

/* Cart summary (sticky sidebar) */
.cart-summary {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.cart-summary__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--slate-200);
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--ink);
}

.cart-summary__row span:last-child {
  font-family: var(--font-mono);
  font-weight: 500;
}

.cart-summary__total {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  padding-top: var(--sp-3);
  border-top: 2px solid var(--navy);
  margin-top: var(--sp-2);
}

.cart-summary__total span:last-child {
  font-family: var(--font-mono);
}

.cart-summary__note {
  font-size: 0.78rem;
  color: var(--slate-500);
  line-height: 1.5;
}

.cart-summary__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}


/* -------------------------------------------------------------------------
   §17  SIDEBAR & FILTERS
   ------------------------------------------------------------------------- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.sidebar__section {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  background-color: var(--white);
  overflow: hidden;
}

.sidebar__title {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  padding: 0.75rem 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color var(--transition);
}

.sidebar__title:hover {
  background-color: var(--slate-50);
}

.sidebar__title::after {
  content: '▾';
  font-size: 0.7rem;
  color: var(--slate-500);
  transition: transform var(--transition);
}

.sidebar__section--collapsed .sidebar__title::after {
  transform: rotate(-90deg);
}

.sidebar__section--collapsed .sidebar__list,
.sidebar__section--collapsed .sidebar__content {
  display: none !important;
}

.sidebar__list {
  padding: 0 1rem 0.75rem;
  display: flex;
  flex-direction: column;
}

.sidebar__item {
  padding: 0.4rem 0.5rem;
  font-size: 0.88rem;
  color: var(--ink);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar__item:hover {
  background-color: var(--slate-50);
  color: var(--cobalt);
}

.sidebar__item--active {
  background-color: rgba(46, 90, 172, 0.08);
  color: var(--cobalt);
  font-weight: 500;
}

.sidebar__item-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--slate-500);
}


/* -------------------------------------------------------------------------
   §18  PAGINATION
   ------------------------------------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  padding: var(--sp-6) 0 var(--sp-2);
}

.pagination__btn {
  min-width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
  background: var(--white);
  transition: all var(--transition);
}

.pagination__btn:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
  background-color: rgba(46, 90, 172, 0.04);
}

.pagination__btn--active {
  background-color: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.pagination__btn--active:hover {
  background-color: #243a62;
  color: var(--white);
}

.pagination__dots {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--slate-500);
}


/* -------------------------------------------------------------------------
   §19  PRICE TIERS TABLE
   ------------------------------------------------------------------------- */
.price-tiers {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.price-tiers__header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background-color: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
}

.price-tiers__header span {
  padding: 0.6rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-500);
}

.price-tiers__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--slate-50);
  transition: all var(--transition);
  border-left: 3px solid transparent;
}

.price-tiers__row:last-child {
  border-bottom: none;
}

.price-tiers__row:nth-child(even) {
  background-color: rgba(241, 245, 249, 0.5);
}

.price-tiers__row:hover {
  background-color: rgba(46, 90, 172, 0.04);
}

.price-tiers__row--active {
  background-color: rgba(13, 148, 136, 0.06) !important;
  border-left-color: var(--teal);
  font-weight: 500;
}

.price-tiers__row span {
  padding: 0.55rem 0.75rem;
}

.price-tiers__row .price-tiers__discount {
  font-size: 0.72rem;
  color: var(--teal);
}


/* -------------------------------------------------------------------------
   §20  FORMS
   ------------------------------------------------------------------------- */
.form-page {
  display: flex;
  justify-content: center;
  padding: var(--sp-8) 0;
}

.form-container {
  width: 100%;
  max-width: 520px;
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}

.form-container__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: var(--sp-5);
}

.form-group {
  margin-bottom: var(--sp-4);
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--sp-1);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  background-color: var(--white);
  transition: all var(--transition);
  color: var(--ink);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--cobalt);
  outline: none;
  box-shadow: 0 0 0 3px rgba(46, 90, 172, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--slate-500);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  padding-right: 2rem;
  cursor: pointer;
}

.form-error {
  font-size: 0.78rem;
  color: var(--crimson);
  margin-top: var(--sp-1);
  display: none;
}

.form-group--error .form-error {
  display: block;
}

.form-group--error .form-input,
.form-group--error .form-select,
.form-group--error .form-textarea {
  border-color: var(--crimson);
}

.form-success {
  padding: var(--sp-5);
  text-align: center;
  color: var(--teal);
  font-weight: 500;
}


/* -------------------------------------------------------------------------
   §21  POLICY PAGE
   ------------------------------------------------------------------------- */
.policy-page {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--sp-8) 24px;
}

.policy-page__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--navy);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-4);
  border-bottom: 2px solid var(--slate-200);
}

.policy-page__content {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--ink);
}

.policy-page__content h2 {
  font-size: 1.4rem;
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
}

.policy-page__content h3 {
  font-size: 1.15rem;
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-2);
}

.policy-page__content p {
  margin-bottom: 1.2em;
}

.policy-page__content ul,
.policy-page__content ol {
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}

.policy-page__content ul {
  list-style: disc;
}

.policy-page__content ol {
  list-style: decimal;
}

.policy-page__content li {
  margin-bottom: 0.5em;
}

.policy-page__content strong {
  color: var(--navy);
}


/* -------------------------------------------------------------------------
   §22  TOAST NOTIFICATIONS
   ------------------------------------------------------------------------- */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  z-index: 9999;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.85rem 1.25rem;
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  pointer-events: auto;
  animation: slideInRight 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  max-width: 380px;
  border-left: 4px solid var(--slate-500);
}

.toast--success {
  border-left-color: var(--teal);
  color: #065F46;
}

.toast--error {
  border-left-color: var(--crimson);
  color: #991B1B;
}

.toast--warning {
  border-left-color: var(--amber);
  color: #92400E;
}

.toast--dismiss {
  animation: slideOutRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.toast__close {
  margin-left: auto;
  cursor: pointer;
  color: var(--slate-500);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.2rem;
  transition: color var(--transition);
}

.toast__close:hover {
  color: var(--ink);
}


/* -------------------------------------------------------------------------
   §23  MODAL OVERLAY
   ------------------------------------------------------------------------- */
#modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(11, 15, 25, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

#modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-6);
  max-width: 520px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  animation: fadeIn 0.3s ease forwards;
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: var(--sp-4);
}

.modal__close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--transition);
  font-size: 1.2rem;
  color: var(--slate-500);
}

.modal__close:hover {
  background-color: var(--slate-50);
  color: var(--ink);
}


/* -------------------------------------------------------------------------
   §24  BREADCRUMB
   ------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  padding-top: var(--sp-6);
  padding-bottom: var(--sp-3);
  font-size: 0.82rem;
}

.breadcrumb__item {
  color: var(--slate-500);
  transition: color var(--transition);
}

.breadcrumb__item:hover {
  color: var(--cobalt);
}

.breadcrumb__item--current {
  color: var(--ink);
  font-weight: 500;
  pointer-events: none;
}

.breadcrumb__separator {
  margin: 0 0.4em;
  color: var(--slate-500);
  font-size: 0.7em;
}


/* -------------------------------------------------------------------------
   §25  FOOTER
   ------------------------------------------------------------------------- */
.footer {
  background-color: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: var(--sp-10) 0 0;
  margin-top: auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-8);
  padding-bottom: var(--sp-8);
}

.footer__column {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer__title {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: var(--sp-1);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer__link {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  transition: all var(--transition);
  display: inline-block;
}

.footer__link:hover {
  color: var(--white);
  transform: translateX(3px);
}

.footer__contact-item {
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
  color: rgba(255, 255, 255, 0.65);
}

.footer__contact-item a {
  transition: color var(--transition);
}

.footer__contact-item a:hover {
  color: var(--white);
}

.footer__socials {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
}

.footer__social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition);
  font-size: 0.9rem;
}

.footer__social-icon:hover {
  border-color: var(--white);
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--sp-4) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer__payment-icons {
  display: flex;
  gap: var(--sp-2);
}

.footer__payment-icon {
  padding: 0.25em 0.6em;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.5);
}


/* -------------------------------------------------------------------------
   §26  BRAND MARQUEE
   ------------------------------------------------------------------------- */
.brand-marquee {
  overflow: hidden;
  position: relative;
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.brand-marquee::before,
.brand-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.brand-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--paper), transparent);
}

.brand-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--paper), transparent);
}

.brand-marquee__track {
  display: flex;
  gap: var(--sp-8);
  animation: marquee 40s linear infinite;
  width: max-content;
}

.brand-marquee__item {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--slate-500);
  white-space: nowrap;
  padding: 0.4rem 1rem;
  opacity: 0.6;
  transition: opacity var(--transition);
}

.brand-marquee__item:hover {
  opacity: 1;
}

.brand-marquee:hover .brand-marquee__track {
  animation-play-state: paused;
}


/* -------------------------------------------------------------------------
   §27  FEATURED PRODUCTS (horizontal scroll)
   ------------------------------------------------------------------------- */
.featured-products {
  display: flex;
  gap: var(--sp-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--sp-3);
  scrollbar-width: thin;
  scrollbar-color: var(--slate-200) transparent;
}

.featured-products::-webkit-scrollbar {
  height: 6px;
}

.featured-products::-webkit-scrollbar-track {
  background: transparent;
}

.featured-products::-webkit-scrollbar-thumb {
  background-color: var(--slate-200);
  border-radius: 10px;
}

.featured-products > .product-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
}


/* -------------------------------------------------------------------------
   §28  EMPTY STATE
   ------------------------------------------------------------------------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-12) var(--sp-5);
  text-align: center;
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: var(--sp-4);
  opacity: 0.4;
}

.empty-state__text {
  font-size: 1rem;
  color: var(--slate-500);
  max-width: 360px;
  line-height: 1.6;
}

.empty-state__text strong {
  color: var(--ink);
  display: block;
  font-size: 1.1rem;
  margin-bottom: var(--sp-2);
}


/* -------------------------------------------------------------------------
   §29  ANIMATIONS & KEYFRAMES
   ------------------------------------------------------------------------- */

/* Fade In (up) */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide In Right (toasts) */
@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide Out Right */
@keyframes slideOutRight {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(100px);
  }
}

/* Spin (loading) */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Marquee (brands) */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Slide Up */
@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide Down */
@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation utility classes */
.fade-in {
  animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.slide-up {
  animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.slide-down {
  animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Stagger delays (.stagger-1 through .stagger-12) */
.stagger-1  { animation-delay: 0.06s; }
.stagger-2  { animation-delay: 0.12s; }
.stagger-3  { animation-delay: 0.18s; }
.stagger-4  { animation-delay: 0.24s; }
.stagger-5  { animation-delay: 0.30s; }
.stagger-6  { animation-delay: 0.36s; }
.stagger-7  { animation-delay: 0.42s; }
.stagger-8  { animation-delay: 0.48s; }
.stagger-9  { animation-delay: 0.54s; }
.stagger-10 { animation-delay: 0.60s; }
.stagger-11 { animation-delay: 0.66s; }
.stagger-12 { animation-delay: 0.72s; }


/* -------------------------------------------------------------------------
   §30  (Noise overlay already in §10 .hero::after)
   ------------------------------------------------------------------------- */
/* Additional noise utility for other sections */
.noise-overlay {
  position: relative;
}

.noise-overlay::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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.025;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}


/* -------------------------------------------------------------------------
   §31  RESPONSIVE — TABLET
   ------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------
   §31b  RESPONSIVE — MOBILE & TABLET
   ------------------------------------------------------------------------- */
@media (max-width: 1024px) {

  body {
    font-size: 14px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .breadcrumb {
    padding-top: var(--sp-4);
    padding-bottom: var(--sp-2);
  }

  .section {
    padding: var(--sp-8) 0;
  }

  .container.section {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Promo banners mobile */
  .promo-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }

  .promo-card {
    height: 280px;
  }

  .promo-card__title {
    font-size: 1.8rem;
  }

  .header__main {
    position: relative;
  }

  .header__main .header__logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
  }

  .header__nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Mobile expandable search bar */
  .search-bar {
    display: flex;
    align-items: center;
    background-color: transparent;
    border: none;
    padding: 0;
    width: auto;
    gap: 0;
    box-shadow: none !important;
  }

  .search-bar__input {
    width: 0;
    opacity: 0;
    padding: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid var(--slate-300);
    background-color: var(--white);
    border-radius: 0;
  }

  .search-bar.search-bar--open {
    background-color: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 0.4rem 0.75rem;
    gap: 0.4rem;
    position: absolute;
    left: 16px;
    right: 60px; /* Leave space for cart */
    z-index: 1020;
    box-shadow: var(--shadow-md) !important;
  }

  .search-bar.search-bar--open .search-bar__input {
    width: 100%;
    opacity: 1;
    pointer-events: auto;
    border: none;
    background: transparent;
  }

  .search-bar__btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    transition: all var(--transition);
  }
  
  .search-bar__btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }

  .header__top-bar {
    font-size: 0.72rem;
    padding: 0.3rem 0;
  }

  .header__top-bar-left,
  .header__top-bar-right {
    gap: var(--sp-2);
  }

  /* Hide some top-bar items on mobile */
  .header__top-bar .visible-desktop {
    display: none;
  }

  /* Hero mobile */
  .hero {
    padding: var(--sp-8) 0 var(--sp-6);
  }

  .hero__title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .hero__subtitle {
    font-size: 0.95rem;
  }

  .hero__stat-bar {
    flex-direction: column;
    gap: var(--sp-4);
  }

  .hero__cta-group {
    flex-direction: column;
  }

  .hero__cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  /* Product grid mobile */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-3);
  }

  .product-card__body {
    padding: var(--sp-3);
  }

  .product-card__name {
    font-size: 0.82rem;
  }

  .product-card__price {
    font-size: 0.95rem;
  }

  /* Product detail mobile */
  .product-detail {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
    padding-top: 0;
  }

  .product-detail__gallery {
    position: static;
  }

  .product-detail__thumbs {
    justify-content: center;
  }

  /* Cart mobile (card layout) */
  .cart-page {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }

  .cart-table thead {
    display: none;
  }

  .cart-table,
  .cart-table tbody,
  .cart-table tr,
  .cart-table td {
    display: block;
  }

  .cart-item {
    display: grid !important;
    grid-template-columns: 64px 1fr;
    gap: var(--sp-3);
    padding: var(--sp-4);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    margin-bottom: var(--sp-3);
    background: var(--white);
  }

  .cart-item td {
    border: none;
    padding: 0;
  }

  .cart-summary {
    position: static;
  }

  /* Collection grid mobile */
  .collection-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-3);
  }

  /* Footer mobile */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--sp-3);
    text-align: center;
  }

  /* Forms mobile */
  .form-container {
    padding: var(--sp-5);
    border-radius: var(--radius-md);
  }

  /* Sidebar mobile — grid layout instead of horizontal scroll */
  .catalog-layout {
    grid-template-columns: 1fr !important;
  }

  .sidebar {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    gap: var(--sp-4);
    width: 100%;
    margin-bottom: var(--sp-4);
    overflow-x: visible !important;
  }

  .sidebar__section {
    min-width: 0 !important;
    flex-shrink: 1 !important;
  }

  /* Mega dropdown — fullwidth on mobile handled by mobile-menu */
  .mega-dropdown__panel {
    position: fixed;
    left: 0;
    right: 0;
    top: auto;
    transform: none;
    min-width: 100%;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  /* Pagination mobile */
  .pagination {
    flex-wrap: wrap;
  }

  /* Toast mobile */
  #toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .toast {
    max-width: none;
  }

  /* Policy page mobile */
  .policy-page {
    padding: var(--sp-6) 16px;
  }

  /* Featured products mobile — slightly smaller cards */
  .featured-products > .product-card {
    flex: 0 0 220px;
  }
}


/* -------------------------------------------------------------------------
   §32  UTILITY CLASSES
   ------------------------------------------------------------------------- */

/* Text alignment */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }

/* Flexbox */
.flex         { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center  { display: flex; justify-content: center; align-items: center; }
.flex-col     { display: flex; flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }

/* Gaps */
.gap-sm { gap: var(--sp-2); }
.gap-md { gap: var(--sp-4); }
.gap-lg { gap: var(--sp-6); }

/* Margins — top */
.mt-1 { margin-top: var(--sp-2); }
.mt-2 { margin-top: var(--sp-4); }
.mt-3 { margin-top: var(--sp-5); }
.mt-4 { margin-top: var(--sp-6); }
.mt-5 { margin-top: var(--sp-8); }

/* Margins — bottom */
.mb-1 { margin-bottom: var(--sp-2); }
.mb-2 { margin-bottom: var(--sp-4); }
.mb-3 { margin-bottom: var(--sp-5); }
.mb-4 { margin-bottom: var(--sp-6); }
.mb-5 { margin-bottom: var(--sp-8); }

/* Visibility */
.hidden { display: none !important; }

.visible-mobile {
  display: none;
}

.visible-desktop {
  display: initial;
}

@media (max-width: 1024px) {
  .visible-mobile {
    display: initial;
  }
  .visible-desktop {
    display: none !important;
  }
}

/* Catalog layout (sidebar + grid) */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--sp-6);
  align-items: start;
}


/* -------------------------------------------------------------------------
   §33  SCROLLBAR STYLING
   ------------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--slate-200);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--slate-500);
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--slate-200) transparent;
}


/* -------------------------------------------------------------------------
   §34  SELECTION STYLING
   ------------------------------------------------------------------------- */
::selection {
  background-color: var(--cobalt);
  color: var(--white);
}

::-moz-selection {
  background-color: var(--cobalt);
  color: var(--white);
}


/* -------------------------------------------------------------------------
   ADDENDUM: Catalog page layout helper & misc patterns
   ------------------------------------------------------------------------- */

/* Catalog page top bar (search + sort + view count) */
.catalog-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--slate-200);
  margin-bottom: var(--sp-5);
}

.catalog-top-bar__count {
  font-size: 0.82rem;
  color: var(--slate-500);
}

/* Cart badge (header) */
.cart-badge {
  position: relative;
}

.cart-badge__count {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--cobalt);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  border-radius: 50px;
  padding: 0 4px;
  line-height: 1;
}

/* Header icon button */
.header__icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  color: var(--ink);
  position: relative;
}

.header__icon-btn:hover {
  background-color: var(--slate-50);
  color: var(--cobalt);
}

/* Price comparison (list vs. wholesale) */
.price-compare {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
}

.price-compare__list {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--slate-500);
  text-decoration: line-through;
}

.price-compare__wholesale {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--navy);
}

/* Tax note */
.tax-note {
  font-size: 0.72rem;
  color: var(--slate-500);
  font-style: italic;
}

/* Divider */
.divider {
  height: 1px;
  background-color: var(--slate-200);
  margin: var(--sp-4) 0;
}

/* Anchor-link style for inline links */
a.link {
  color: var(--cobalt);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

a.link:hover {
  color: var(--navy);
}

/* Container padding helpers for pages that use #app directly */
#app {
  min-height: 50vh;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 2px;
}

/* ---- Lucide Line Icon Styling overrides ---- */
.header__top-bar-icon {
  width: 14px !important;
  height: 14px !important;
  stroke-width: 1.5 !important;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}

.footer__contact-icon {
  width: 16px !important;
  height: 16px !important;
  stroke-width: 1.5 !important;
  margin-top: 4px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.6);
}

.header__icon-svg {
  width: 20px !important;
  height: 20px !important;
  stroke-width: 1.5 !important;
  display: inline-block;
}

.mobile-menu__icon {
  width: 16px !important;
  height: 16px !important;
  stroke-width: 1.5 !important;
  vertical-align: middle;
  margin-right: 8px;
  display: inline-block;
}

.product-card__lock-icon {
  width: 13px !important;
  height: 13px !important;
  stroke-width: 1.5 !important;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}

.toast__icon {
  width: 18px !important;
  height: 18px !important;
  stroke-width: 1.5 !important;
  flex-shrink: 0;
}

.toast--success .toast__icon {
  color: var(--teal);
}

.toast--error .toast__icon {
  color: var(--crimson);
}

.toast--warning .toast__icon {
  color: var(--amber);
}

.search-bar__btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-500);
  transition: color var(--transition);
}

.search-bar__btn:hover {
  color: var(--cobalt);
}

/* ---- Product Specs Table styles ---- */
.product-detail__specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--sp-3);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--white);
}

.product-detail__specs-table td {
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  display: table-cell !important; /* Force table layout on mobile */
  width: 50%;
}

.product-detail__specs-table tr:not(:last-child) td {
  border-bottom: 1px solid var(--slate-200);
}


