/*
Theme Name: Impex Trade Portal
Theme URI: https://trade.impexfurniture.co.uk
Author: Impex Furniture UK
Author URI: https://impexfurniture.co.uk
Description: Custom B2B trade portal theme for Impex Furniture UK. Gated buyer registration, factory-direct delivered prices, container reservation system.
Version: 0.21.6
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: impex-trade
*/

/* ─── DESIGN TOKENS ────────────────────────────────────────────────────── */
:root {
  /* Brand */
  --brand-red: #E63027;
  --brand-red-dark: #C42820;
  --brand-red-light: #FFEEEC;
  --brand-black: #0C0C0E;

  /* Neutrals */
  --white: #FFFFFF;
  --cream: #F8F7F5;
  --grey-50: #F4F3F1;
  --grey-100: #E8E7E5;
  --grey-200: #D5D3D0;
  --grey-300: #B8B5B1;
  --grey-500: #8A8784;
  --grey-700: #4A4A4A;
  --grey-900: #1A1A1A;

  /* Status — kept distinct from brand red */
  --green: #2D6A4F;
  --green-bg: #EAF4EE;
  --green-text: #1B4D38;
  --amber: #92520A;
  --amber-bg: #FEF3E2;
  --amber-text: #7A420A;
  --blue: #1A4A7A;
  --blue-bg: #EAF1FA;
  --blue-text: #153D65;

  /* Typography */
  --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing & Radius — more generous */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 24px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 120px;
}

/* ─── RESET ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--grey-700);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ─── TYPOGRAPHY ────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--grey-900); font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(36px, 5vw, 52px); letter-spacing: -0.03em; }
h2 { font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.025em; }
h3 { font-size: 22px; }
h4 { font-size: 16px; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: none;
  font-weight: 500;
  color: var(--brand-red);
}

.price {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--grey-900);
}

.muted { color: var(--grey-500); }

/* ─── LAYOUT ────────────────────────────────────────────────────────────── */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ─── TOPBAR ────────────────────────────────────────────────────────────── */
.topbar {
  background: #F8F7F5;
  color: #1A1A1A;
  border-bottom: 1px solid #E8E7E5;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
  flex-wrap: nowrap;
}
/* v0.17.3: logo stays left; nav + search + actions flow to the right.
   Everything is forced onto a single line — no wrapping. */
.topbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  flex: 0 0 auto;
  min-width: 0;
}
.topbar-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--brand-red);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  font-style: italic;
}
.topbar-logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}
.footer-logo-img {
  height: 52px;
}
.topbar-logo-text {
  font-family: var(--font-display);
  color: #1A1A1A;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.15;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.topbar-logo-name {
  display: block;
}
.topbar .topbar-logo-text > small:not(.topbar-logo-subtitle) {
  display: none !important;
}
.topbar-logo-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-top: 2px;
  white-space: nowrap;
}
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 0 0 auto;
}
.topbar-nav a {
  font-size: 14px;
  color: #4A4A4A;
  transition: color 0.15s;
  font-weight: 400;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.topbar-nav a:hover { color: #1A1A1A; }
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.topbar-actions .btn { white-space: nowrap; }

/* Nav count badge — smaller, subtler */
.topbar-nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  padding: 0 5px;
  height: 18px;
  background: var(--brand-red);
  color: #FFFFFF;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
  margin-left: 5px;
  line-height: 1;
}

/* ─── BUTTONS ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand-red);
  color: var(--white);
}
a.btn-primary,
a.btn-primary:link,
a.btn-primary:visited,
a.btn-primary:hover,
a.btn-primary:active { color: var(--white); }
.btn-primary:hover { background: var(--brand-red-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(230,48,39,0.25); }
.btn-primary:disabled,
.btn-primary[disabled],
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-ghost-light {
  color: #1A1A1A;
  border: 1px solid #D5D3D0;
}
a.btn-ghost-light,
a.btn-ghost-light:link,
a.btn-ghost-light:visited,
a.btn-ghost-light:hover,
a.btn-ghost-light:active { color: #1A1A1A; }
.btn-ghost-light:hover {
  border-color: #B8B5B1;
  background: rgba(0,0,0,0.03);
}

.btn-ghost-dark {
  color: var(--grey-900);
  border: 1px solid var(--grey-300);
  background: var(--white);
}
a.btn-ghost-dark,
a.btn-ghost-dark:link,
a.btn-ghost-dark:visited,
a.btn-ghost-dark:hover,
a.btn-ghost-dark:active { color: var(--grey-900); }
.btn-ghost-dark:hover {
  border-color: var(--grey-900);
}

.btn:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 2px;
}

.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }

/* ─── HERO ──────────────────────────────────────────────────────────────── */
.hero {
  background: #F8F7F5;
  color: #1A1A1A;
  padding: var(--space-2xl) 0 140px;
  position: relative;
  overflow: hidden;
}
/* Gradient mesh background for depth */
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60%; height: 100%;
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(230,48,39,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 90% 80%, rgba(230,48,39,0.04) 0%, transparent 50%);
  pointer-events: none;
}
/* Abstract container illustration — CSS shape */
/* v0.14.2: removed decorative ::after rectangle that was rendering as an empty
   box on the right side of the hero. Was intended as an abstract container
   illustration but the contrast was too low to read as anything meaningful. */
.hero::after { content: none; }
.hero-inner { position: relative; max-width: 900px; }
.hero h1 {
  color: #1A1A1A;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.08;
  margin: 24px 0 28px;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.hero h1 em {
  color: var(--brand-red);
  font-style: italic;
}
.hero p {
  font-size: 19px;
  color: #4A4A4A;
  margin-bottom: 12px;
  max-width: 580px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.hero-eyebrow {
  color: var(--brand-red) !important;
  font-size: 12px !important;
  letter-spacing: 0.12em !important;
  text-transform: none !important;
}

/* v0.17.1: product search lives in the topbar nav. Compact icon expands
   into a search field; results drop down below it. */
.topbar-search {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  transition: width 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}
.topbar-search.is-open,
.topbar-search:focus-within {
  flex-basis: 260px;
  width: 260px;
}
.topbar-search-field {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
}
.topbar-search.is-open .topbar-search-field,
.topbar-search:focus-within .topbar-search-field {
  gap: 10px;
}
.topbar-search-toggle {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #4A4A4A;
  background: transparent;
  transition: background 0.15s, color 0.15s;
}
.topbar-search-toggle:hover,
.topbar-search-toggle:focus-visible {
  background: rgba(0,0,0,0.05);
  color: #1A1A1A;
  outline: none;
}
.topbar-search-icon {
  display: block;
}
.topbar-search-input {
  width: 0;
  min-width: 0;
  height: 40px;
  padding: 0;
  opacity: 0;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  background: #FFFFFF;
  color: #1A1A1A;
  font-size: 13px;
  font-family: var(--font-body);
  pointer-events: none;
  transition: width 0.24s cubic-bezier(0.4, 0, 0.2, 1), padding 0.24s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s, border-color 0.15s, background 0.15s;
}
.topbar-search.is-open .topbar-search-input,
.topbar-search:focus-within .topbar-search-input {
  width: 210px;
  padding: 0 14px;
  opacity: 1;
  border-color: var(--brand-red);
  pointer-events: auto;
}
.topbar-search-input::placeholder { color: #4A4A4A; }
.topbar-search-input:focus {
  outline: none;
  border-color: var(--brand-red);
  background: #FFFFFF;
}
.topbar-search-results {
  display: none;
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 340px; max-width: 80vw;
  background: #fff;
  border-radius: var(--r-md, 12px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.28);
  overflow: hidden;
  max-height: 64vh; overflow-y: auto;
  z-index: 200;
}
.topbar-search-results.open { display: block; }

/* Shared search-result row styles (topbar + mobile drawer) */
.impex-search-result {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--grey-100);
  transition: background 0.1s;
}
.impex-search-result:last-child { border-bottom: 0; }
.impex-search-result:hover,
.impex-search-result.is-active { background: var(--brand-red-light); }
.impex-search-thumb {
  flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 8px;
  background-size: cover; background-position: center;
  background-color: var(--grey-100);
}
.impex-search-thumb-empty { background-color: var(--grey-200); }
.impex-search-result-text { flex: 1 1 auto; min-width: 0; }
.impex-search-result-name {
  display: block;
  font-size: 14px; font-weight: 600; color: var(--grey-900);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.impex-search-result-supplier {
  display: block;
  font-size: 12px; color: var(--grey-500);
}
.impex-search-go {
  flex: 0 0 auto;
  font-size: 12px; font-weight: 600; color: var(--brand-red-dark);
}
.impex-search-empty {
  padding: 16px 14px;
  font-size: 13px; color: var(--grey-500);
}
.impex-search-suggest {
  background: none; border: 0; padding: 0; margin: 0;
  color: var(--brand-red-dark); font: inherit; font-weight: 600;
  cursor: pointer; text-decoration: underline;
}
.impex-search-suggest:hover { color: var(--brand-red); }

.hero-trade-tag {
  font-size: 13px;
  color: #8A8784;
  letter-spacing: 0.04em;
  margin-top: 4px !important;
  margin-bottom: 0 !important;
}

/* Hero stats — thin bar with dividers */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: var(--space-5xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid #E8E7E5;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  flex: 1;
  padding: 0 24px;
  position: relative;
}
.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child  { padding-right: 0; }
.hero-stat-value {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: #1A1A1A;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-stat-value span { color: var(--brand-red); }
.hero-stat-divider {
  /* v0.14.7: now a vertical line between stats (sits between siblings),
     not between value+label within a single stat */
  width: 1px;
  background: #D5D3D0;
  position: absolute;
  top: 6px;
  bottom: 6px;
  right: 0;
  display: none;
}
.hero-stat:not(:last-child) .hero-stat-divider { display: block; }
.hero-stat-label {
  font-size: 11px;
  color: #8A8784;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0;
  white-space: nowrap;
  font-weight: 500;
}

/* ─── SECTION ───────────────────────────────────────────────────────────── */
.section {
  padding: var(--space-5xl) 0;
  position: relative;
}
/* Subtle gradient divider between sections */
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--grey-300) 50%, transparent 100%);
}
.section:first-child::before { display: none; }
.section--bordered {
  background: var(--white);
  border-top: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
}
.section--bordered::before { display: none; }
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-3xl);
}
.section-header .eyebrow { margin-bottom: 16px; display: block; }
.section-header h2 { margin-bottom: 16px; }
.section-header p {
  color: var(--grey-500);
  font-size: 17px;
  line-height: 1.7;
}

/* ─── FEATURES STRIP ────────────────────────────────────────────────────── */
.features-strip {
  background: var(--white);
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.feature-item {
  text-align: left;
  padding: var(--space-lg) var(--space-xl);
  position: relative;
}
.feature-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--grey-200);
}
.feature-accent {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--brand-red);
  border-radius: 2px;
  margin-bottom: 18px;
}
.feature-item h4 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--grey-900);
  letter-spacing: -0.01em;
}
.feature-item p {
  font-size: 16px;
  color: var(--grey-500);
  line-height: 1.6;
  margin: 0;
}

/* ─── SUPPLIER CARDS GRID ───────────────────────────────────────────────── */
.suppliers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  justify-items: start;
  align-items: stretch;
}
.suppliers-grid > * { width: 100%; height: 100%; }
.suppliers-grid > * {
  width: 100%;
  max-width: 400px;
}
.supplier-card {
  background: var(--white);
  border: none;
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.03);
}
.supplier-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.06), 0 24px 48px rgba(0,0,0,0.06);
}
.supplier-card-image {
  aspect-ratio: 16 / 10;
  background: var(--grey-100);
  background-size: cover;
  background-position: center;
  position: relative;
}
/* Image overlay gradient for badge readability */
.supplier-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
}
.supplier-card-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.supplier-card-body {
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.supplier-card h3 {
  font-size: 22px;
  margin-bottom: 6px;
}
.supplier-card-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--grey-700);
  margin-bottom: var(--space-lg);
  flex: 1;
}
/* v0.18.4: product-categories line under the supplier name on the card. */
.supplier-card-categories {
  font-size: 13px;
  line-height: 1.5;
  color: var(--grey-600);
  margin: 0 0 var(--space-md);
  font-weight: 500;
}
.supplier-card-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--grey-500);
  padding-top: 16px;
  border-top: 1px solid var(--grey-100);
  margin-bottom: var(--space-md);
}
.supplier-card-meta strong {
  display: block;
  color: var(--grey-900);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin-top: 2px;
}
.supplier-card-cta {
  margin-top: 14px;
}

/* ─── BADGES ────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  /* v0.17.1: a touch more vertical padding + fixed line-height so badges of
     different text lengths share the same height and align cleanly when they
     wrap onto multiple lines inside a card. */
  padding: 5px 11px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex: 0 0 auto;
  vertical-align: middle;
}
.badge-green { background: var(--green-bg); color: var(--green-text); }
.badge-amber { background: var(--amber-bg); color: var(--amber-text); }
.badge-blue  { background: var(--blue-bg);  color: var(--blue-text); }
.badge-red   { background: var(--brand-red-light); color: var(--brand-red-dark); }
/* v0.17.0: solid brand-red badge with white text — used for "Accepting
   Reservations" and "Filling up" status badges to match the brand colour.
   v0.17.1: force white on the badge and every child so text never falls back
   to black regardless of inherited colour rules. */
.badge-red-solid,
.badge-red-solid * { color: #fff !important; }
.badge-red-solid { background: var(--brand-red); }
.badge-orange    { background: #FFEAD5; color: #8C4A0C; }
.badge-greyblue  { background: #E8EEF5; color: #3A5273; }
.badge-lightgrey { background: #F0F0F0; color: #5A5A5A; }
.badge-darkgrey  { background: #4A4A4A; color: #F0F0F0; }
.badge-black     { background: #1A1A1A; color: #FFFFFF; }
.badge-purple    { background: #ECE3F5; color: #5D3A8E; }
.badge-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}
/* Defensive: keep colour-coded badges legible */
.badge,
.badge * {
  color: inherit;
}

/* ─── HOW IT WORKS — Timeline ───────────────────────────────────────────── */
.how-section {
  background: var(--white);
  border-top: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
}
.how-section::before { display: none; }

.how-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
/* Vertical connecting line */
.how-timeline::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--grey-200) 0%, var(--brand-red) 25%, var(--brand-red) 75%, var(--grey-200) 100%);
  border-radius: 1px;
}

.how-timeline-step {
  display: flex;
  gap: 28px;
  padding: 24px 0;
  align-items: flex-start;
}
.how-timeline-marker {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.how-timeline-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-red);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 0 0 6px var(--white);
}
.how-timeline-content {
  flex: 1;
  padding-top: 4px;
}
.how-timeline-content h4 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--grey-900);
  margin-bottom: 8px;
}
.how-timeline-content p {
  font-size: 16px;
  color: var(--grey-500);
  line-height: 1.7;
}

/* Legacy how-step classes (kept for compatibility) */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  position: relative;
}
.how-step { position: relative; }
.how-step-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: rgba(230,48,39,0.12);
  line-height: 1;
  margin-bottom: 20px;
}
.how-step h4 {
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--grey-900);
}
.how-step p {
  font-size: 16px;
  color: var(--grey-500);
  line-height: 1.65;
}
.how-headline { white-space: nowrap; }
.how-cta-row {
  text-align: center;
  margin-top: var(--space-3xl);
}

/* ─── REGISTER CTA — Split Layout ───────────────────────────────────────── */
.cta-section {
  background: #F8F7F5;
  color: #1A1A1A;
  padding: 120px var(--space-xl);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -40%; left: -10%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(230,48,39,0.1) 0%, transparent 55%);
  pointer-events: none;
}
.cta-section-inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}
.cta-left {
  position: relative;
}
.cta-left .eyebrow { display: block; margin-bottom: 16px; }
.cta-left h2 {
  color: #1A1A1A;
  margin-bottom: 16px;
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: -0.02em;
}
.cta-left p {
  color: #4A4A4A;
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}
.cta-right {
  display: flex;
  gap: var(--space-xl);
  justify-content: center;
  align-items: stretch;  /* v0.14.13: equal height for both stat blocks */
}
.cta-stat-block {
  background: #FFFFFF;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  text-align: center;
  /* v0.14.13: equal width + equal height via flex; content centered vertically
     so short and long descriptions both look balanced inside the box */
  flex: 1 1 0;
  min-width: 0;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.cta-stat-number {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  color: #1A1A1A;
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
}
.cta-stat-pct {
  font-size: 32px;
  color: var(--brand-red);
}
.cta-stat-unit {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4A4A4A;
  margin-top: 10px;
}
.cta-stat-desc {
  display: block;
  font-size: 13px;
  color: #8A8784;
  margin-top: 12px;
  line-height: 1.4;
}
.trust-row {
  display: flex;
  justify-content: flex-start;
  gap: 28px;
  margin-top: var(--space-xl);
  flex-wrap: wrap;
  font-size: 13px;
  color: #8A8784;
}
.trust-row span::before {
  content: '✓';
  color: var(--brand-red);
  margin-right: 8px;
  font-weight: 700;
}

/* ─── FOOTER ────────────────────────────────────────────────────────────── */
.footer {
  background: #F8F7F5;
  color: #4A4A4A;
  padding: var(--space-2xl) 0 var(--space-lg);
  border-top: 3px solid var(--brand-red);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}
.footer-logo {
  margin-bottom: var(--space-md);
}
.footer-logo .topbar-logo-text { color: #1A1A1A; }
.footer-logo .topbar-logo-text small { color: #8A8784; }
.footer-desc {
  font-size: 13px;
  max-width: 320px;
  line-height: 1.6;
  color: #4A4A4A;
}
.footer h5 {
  color: #1A1A1A;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; font-size: 13px; }
.footer a:hover { color: #1A1A1A; }
.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid #E8E7E5;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
/* v0.15.8: footer cookie-settings link (replaces the floating CookieYes circle) */
.footer-cookie-link {
  color: var(--grey-500);
  text-decoration: none;
}
.footer-cookie-link:hover { color: #1A1A1A; text-decoration: underline; }
/* Hide the CookieYes floating "revisit consent" badge — it overlapped the
   WhatsApp button. Consent can still be reopened via the footer link above. */
.cky-btn-revisit-wrapper { display: none !important; }
.footer-whatsapp-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: #25D366;
  color: #FFFFFF !important;
  border-radius: var(--r-md);
  font-weight: 500;
  font-size: 13px;
  text-decoration: none !important;
  transition: background 0.15s;
}
.footer-whatsapp-link:hover {
  background: #1FB855;
}

/* ─── MEMBER LOCK BLUR ──────────────────────────────────────────────────── */
.locked-price {
  filter: blur(8px);
  user-select: none;
  pointer-events: none;
}
.member-lock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--brand-red);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── RESPONSIVE — core ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { padding: var(--space-xl) 0 80px; }
  .hero h1 { font-size: clamp(32px, 6vw, 44px); }
  .hero-stats { flex-wrap: wrap; gap: var(--space-md); }
  .hero-stat { padding: 0 16px; }
  .hero-stat:first-child { padding-left: 0; }
  .hero-stat:last-child { padding-right: 0; }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
  .topbar-nav { display: none; }
  .section { padding: var(--space-4xl) 0; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .cta-section { padding: 80px var(--space-lg); }
  .cta-section-inner { grid-template-columns: 1fr; gap: var(--space-3xl); }
  .cta-right { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .hero-stats { flex-wrap: wrap; }
  .hero-stat { flex: 1 1 40%; padding: var(--space-sm) 0; }
  .hero-stat-divider { display: none !important; }
  .how-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--space-sm); }
  .features-grid { grid-template-columns: 1fr; gap: 0; }
  .features-strip { padding: var(--space-xl) 0; }
  .feature-item { padding: var(--space-md) 0; }
  .feature-item::after { display: none; }
  .cta-section { padding: 64px var(--space-lg); }
  .how-timeline::before { left: 17px; }
}
@media (max-width: 720px) {
  .how-headline { white-space: normal; }
}
@media (max-width: 480px) {
  .how-headline { font-size: 22px; }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* SUPPLIER PAGE STYLES                                                    */
/* ═══════════════════════════════════════════════════════════════════════ */

/* ─── BREADCRUMB ────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 13px;
  color: var(--grey-500);
  margin-bottom: var(--space-lg);
  padding-top: var(--space-lg);
}
.breadcrumb a { color: var(--grey-500); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--brand-red); }
.breadcrumb .current { color: var(--grey-900); font-weight: 500; }

/* ─── SUPPLIER HERO ─────────────────────────────────────────────────── */
.supplier-hero {
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  padding-bottom: var(--space-xl);
}
.supplier-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
  margin-bottom: var(--space-lg);
}
.supplier-hero-info h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin: 12px 0 16px;
  letter-spacing: -0.02em;
}
.supplier-hero-lede {
  font-size: 16px;
  line-height: 1.7;
  color: var(--grey-700);
  margin: 0;
  max-width: 560px;
  text-align: justify;
}
/* v0.19.8: clamp to 4 lines with a soft fade until expanded */
.supplier-hero-lede-wrap {
  max-width: 560px;
  margin-bottom: var(--space-lg);
}
.supplier-hero-lede.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
}
/* Soft fade-out on the last visible line to hint at more text */
.supplier-hero-lede.is-clamped::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.7em;
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--white, #fff));
  pointer-events: none;
}
.supplier-bio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px 0 0;
  margin-top: 10px;
  color: var(--brand-red);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-family: inherit;
  transition: gap 0.15s ease;
}
.supplier-bio-toggle::after {
  content: '↓';
  font-size: 12px;
  transition: transform 0.2s ease;
}
.supplier-bio-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}
.supplier-bio-toggle:hover { gap: 8px; }
.supplier-bio-toggle:focus-visible { outline: 2px solid var(--brand-red); outline-offset: 3px; border-radius: 3px; }
.supplier-hero-cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.cert-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: 20px;
  font-size: 12px;
  color: var(--grey-700);
}
.cert-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}

/* v0.14.18: reverted to the original simple stats box (grey panel, no cell
   separators / accent badge). Four stats in a 2-column grid; label on top,
   value below. Mixed Load is now an ordinary free-text stat like the others. */
.supplier-hero-stats {
  background: var(--white, #fff);
  border-radius: var(--r-lg);
  border: 1px solid var(--grey-200);
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
  overflow: hidden;
}
.supplier-hero-stats-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-500);
  padding: 14px 22px;
  border-bottom: 1px solid var(--grey-100);
  background: var(--grey-50);
}
.supplier-hero-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.hero-stat-mini {
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
  position: relative;
}
/* subtle dividers between the four cells */
.hero-stat-mini:nth-child(odd)  { border-right: 1px solid var(--grey-100); }
.hero-stat-mini:nth-child(1),
.hero-stat-mini:nth-child(2)    { border-bottom: 1px solid var(--grey-100); }
.hero-stat-mini-label {
  font-size: 11px;
  color: var(--grey-500);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-stat-mini-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--grey-900);
  letter-spacing: -0.01em;
  margin-top: 8px;
  line-height: 1.1;
}
/* small red accent under each value */
.hero-stat-mini-value::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brand-red);
  margin-top: 10px;
  border-radius: 2px;
  opacity: 0.85;
}

.price-strip {
  background: var(--green-bg);
  color: var(--green-text);
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}
.price-strip span:first-child {
  color: var(--green);
  font-weight: 700;
}

/* ─── TAB NAVIGATION ────────────────────────────────────────────────── */
.tab-nav-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  position: sticky;
  top: 102px;  /* account for announce-bar (~30px) + topbar (72px) */
  z-index: 50;
}
.tab-nav {
  display: flex;
  gap: 0;
  overflow-x: auto;
}
.tab-link {
  padding: 18px var(--space-lg);
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-500);
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tab-link:hover { color: var(--grey-900); }
.tab-link.active {
  color: var(--brand-red);
  border-bottom-color: var(--brand-red);
}
.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--grey-100);
  color: var(--grey-700);
  font-size: 11px;
  border-radius: 10px;
  font-weight: 500;
}
.tab-link.active .tab-count {
  background: var(--brand-red-light);
  color: var(--brand-red-dark);
}

/* ─── TAB CONTENT ───────────────────────────────────────────────────── */
.tab-content-wrap {
  background: var(--cream);
  padding: var(--space-xl) 0 var(--space-4xl);
  min-height: 60vh;
}
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn 0.25s; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── PRODUCTS GRID ─────────────────────────────────────────────────── */
.products-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  gap: 12px;
}
.products-toolbar-info { font-size: 14px; color: var(--grey-700); }
.products-toolbar-info strong { color: var(--grey-900); }
.products-toolbar-sort {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 13px;
  color: var(--grey-500);
}
.sort-select {
  padding: 8px 12px;
  border: 1px solid var(--grey-200);
  border-radius: var(--r-md);
  font: inherit;
  background: var(--white);
  font-size: 13px;
  cursor: pointer;
}

.member-locked-notice {
  background: var(--brand-red-light);
  color: var(--brand-red-dark);
  border: 1px solid #FFCCC9;
  padding: 14px 20px;
  border-radius: var(--r-lg);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: 16px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--white);
  border: none;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.03);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.product-card-image {
  aspect-ratio: 1 / 1;
  background: var(--grey-100);
  background-size: cover;
  background-position: center;
  position: relative;
}
.product-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(26,26,26,0.75);
  color: var(--white);
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  font-weight: 500;
}
.product-card-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--grey-900);
  margin-bottom: 4px;
  line-height: 1.4;
  min-height: 38px;
  transition: color 0.15s;
}
.product-card-style {
  font-size: 12px;
  color: var(--grey-500);
  margin-bottom: 14px;
}
.product-card-meta {
  margin-bottom: var(--space-sm);
}
.product-card-meta .price {
  font-size: 18px;
}
.product-card-specs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--grey-500);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.product-card-image-link { display: block; text-decoration: none; color: inherit; }
.product-card-name-link { text-decoration: none; color: inherit; display: block; }
.product-card-name-link:hover .product-card-name { color: var(--brand-red); }
.product-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}
.product-card-actions .btn { flex: 1; justify-content: center; padding: 8px 10px; font-size: 12px; white-space: nowrap; }

/* ─── FACTORY TOUR ──────────────────────────────────────────────────── */
.factory-notice {
  background: var(--amber-bg);
  border: 1px solid #F4D9A8;
  padding: var(--space-md) 20px;
  border-radius: var(--r-lg);
  margin-bottom: var(--space-2xl);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 13px;
  color: var(--amber-text);
  line-height: 1.55;
}
.factory-notice strong { display: block; color: var(--amber); margin-bottom: 4px; font-size: 14px; }
.factory-notice .cert-dot {
  flex-shrink: 0;
  width: 8px; height: 8px; margin-top: 5px;
}

.factory-section { margin-bottom: var(--space-2xl); }
.factory-h2 { margin: 8px 0 12px; font-size: 30px; }
.factory-lead { font-size: 15px; color: var(--grey-500); margin-bottom: var(--space-xl); max-width: 640px; }

.video-placeholder {
  background: var(--grey-900);
  border-radius: var(--r-lg);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  margin-bottom: var(--space-xl);
  position: relative;
  overflow: hidden;
}
.video-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(230,48,39,0.15), transparent 60%);
}
.video-play-btn {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--brand-red);
  color: var(--white);
  display: grid; place-items: center;
  font-size: 28px;
  cursor: pointer;
  position: relative; z-index: 1;
  padding-left: 4px;
  transition: transform 0.2s;
}
.video-play-btn:hover { transform: scale(1.05); }
.video-caption { color: rgba(255,255,255,0.65); font-size: 13px; position: relative; z-index: 1; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}
.photo-tile { display: flex; flex-direction: column; gap: var(--space-sm); }
.photo-tile-img {
  aspect-ratio: 4 / 3;
  background-color: var(--grey-100);
  background-size: cover;
  background-position: center;
  border-radius: var(--r-md);
  border: 1px solid var(--grey-200);
}
.photo-tile figcaption { font-size: 11px; color: var(--grey-500); letter-spacing: 0.04em; text-align: center; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.process-step {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--r-lg);
  padding: var(--space-lg);
}
/* Subtle step numbers in factory tour — outlined circle style */
.process-step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--brand-red);
  color: var(--brand-red);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}
.process-step h4 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--grey-900);
}
.process-step p { font-size: 13px; color: var(--grey-500); line-height: 1.55; }

.factory-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--r-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.factory-stat { display: flex; flex-direction: column; }
.factory-stat-value { font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--grey-900); letter-spacing: -0.01em; }
.factory-stat-label { font-size: 11px; color: var(--grey-500); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }

.factory-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── CONTAINERS TAB ────────────────────────────────────────────────── */
.containers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 20px;
  justify-items: start;
}
.containers-grid > * { width: 100%; max-width: 560px; }
.container-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--r-lg);
  padding: var(--space-lg);
}
.container-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 12px;
}
.container-card-title { font-size: 20px; margin-top: 4px; }
.container-card-fillbar { margin-bottom: var(--space-md); }
.fill-bar-track {
  background: var(--grey-100);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: var(--space-sm);
}
.fill-bar-fill {
  background: var(--brand-red);
  height: 100%;
  transition: width 0.4s ease-out;
}
.fill-bar-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--grey-700);
}
.fill-bar-meta strong { color: var(--grey-900); }
/* v0.16.0: CBM shown as a small secondary detail next to the lead percentage */
.fill-cbm-detail, .cart-fill-cbm {
  font-size: 11px;
  color: var(--grey-500);
  margin-left: 6px;
  font-weight: 400;
}
.container-card-btn { width: 100%; justify-content: center; }
.container-card-locked {
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--r-md);
  padding: 12px var(--space-md);
  font-size: 13px;
  color: var(--grey-500);
  text-align: center;
  line-height: 1.6;
}

/* ─── EMPTY STATE ───────────────────────────────────────────────────── */
.empty-state {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--r-lg);
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}
.empty-state h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--grey-900);
}
.empty-state p {
  font-size: 16px;
  color: var(--grey-700);
  line-height: 1.6;
  margin: 0 0 20px;
}
.empty-state a { color: var(--brand-red); }
.empty-state a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════════ */
/* CART PANEL                                                              */
/* ═══════════════════════════════════════════════════════════════════════ */

.cart-toggle {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  background: var(--brand-red);
  color: var(--white);
  border-radius: 999px;
  padding: 14px 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(230,48,39,0.25);
  z-index: 90;
  transition: all 0.2s;
}
.cart-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(230,48,39,0.35);
}
.cart-toggle-icon { font-size: 16px; }
.cart-toggle-count {
  background: var(--white);
  color: var(--brand-red);
  border-radius: 999px;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

.cart-panel {
  position: fixed;
  top: 0; right: 0;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;  /* v0.17.4: dynamic vh so the footer/confirm button isn't hidden behind mobile browser chrome */
  background: var(--white);
  border-left: 1px solid var(--grey-200);
  box-shadow: -16px 0 48px rgba(0,0,0,0.06);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
  display: flex;
  flex-direction: column;
}
.cart-panel.open { transform: translateX(0); }

.cart-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px var(--space-lg);
  border-bottom: 1px solid var(--grey-200);
}
.cart-panel-header h3 {
  font-size: 18px;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 2px;
}
.cart-panel-header .cart-supplier-name {
  font-size: 13px;
  color: var(--grey-500);
}
.cart-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--grey-100);
  display: grid; place-items: center;
  color: var(--grey-700);
  font-size: 18px;
  transition: background 0.15s;
}
.cart-close:hover { background: var(--grey-200); }

.cart-fill-summary {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--grey-100);
  background: var(--grey-50);
}
.cart-fill-bar {
  background: var(--white);
  border: 1px solid var(--grey-200);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: var(--space-sm);
}
.cart-fill-bar-fill {
  background: var(--brand-red);
  height: 100%;
  transition: width 0.3s ease-out, background 0.2s;
}
.cart-fill-bar-fill.cart-fill-met { background: #2D6A4F; }
.cart-fill-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--grey-500);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md) var(--space-lg);
}
.cart-empty {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  color: var(--grey-500);
}
.cart-empty p { margin: 0 0 var(--space-sm); }
.cart-empty .cart-empty-hint {
  font-size: 13px;
  color: var(--grey-500);
  margin-top: var(--space-sm);
}
.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--grey-100);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 60px; height: 60px;
  background-size: cover;
  background-position: center;
  border-radius: var(--r-md);
  background-color: var(--grey-100);
  flex-shrink: 0;
  border: 1px solid var(--grey-200);
}
.cart-item-body { flex: 1; min-width: 0; }
.cart-item-name { font-size: 13px; font-weight: 600; color: var(--grey-900); margin-bottom: 4px; line-height: 1.4; }
.cart-item-price { font-size: 11px; color: var(--grey-500); margin-bottom: var(--space-sm); }
.cart-item-controls { display: flex; align-items: center; gap: var(--space-sm); }
.qty-btn-group {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--grey-200);
  border-radius: var(--r-md);
  overflow: hidden;
}
.qty-btn {
  width: 28px; height: 28px;
  background: var(--white);
  font-size: 14px;
  color: var(--grey-700);
  transition: background 0.15s;
}
.qty-btn:hover { background: var(--grey-50); }
.qty-display,
.qty-input {
  min-width: 48px; width: 56px;
  text-align: center;
  font-size: 13px; font-weight: 500;
  color: var(--grey-900);
  border-left: 1px solid var(--grey-200);
  border-right: 1px solid var(--grey-200);
  border-top: none; border-bottom: none;
  padding: 4px 0;
  background: transparent;
  font-family: inherit;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input:focus { outline: 1px solid var(--brand-red); outline-offset: -1px; background: rgba(230,48,39,0.04); }
.cart-item-line-total {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--grey-900);
  margin-left: auto;
}
.cart-item-remove {
  width: 24px; height: 24px;
  font-size: 16px;
  color: var(--grey-500);
  border-radius: 50%;
  transition: all 0.15s;
}
.cart-item-remove:hover { background: var(--grey-100); color: var(--brand-red); }

.cart-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 11px;
  color: var(--grey-500);
  margin-top: 6px;
}

.cart-footer {
  padding: 20px var(--space-lg);
  border-top: 1px solid var(--grey-200);
  background: var(--white);
}
.cart-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--grey-700);
}
.cart-footer-row .price { font-size: 18px; }
.cart-footer-detail {
  font-size: 11px;
  color: var(--grey-500);
  margin-bottom: var(--space-md);
}
.cart-footer-legal {
  font-size: 11px;
  color: var(--grey-500);
  margin-top: 12px;
  text-align: center;
  line-height: 1.5;
}

/* Cart confirm button states */
#cart-confirm-btn.confirming {
  background: var(--brand-red-dark);
  animation: confirm-pulse 0.6s ease-in-out infinite alternate;
}
#cart-confirm-btn:disabled { opacity: 0.45; cursor: not-allowed; }
@keyframes confirm-pulse {
  from { box-shadow: 0 0 0 0 rgba(230,48,39,0.4); }
  to   { box-shadow: 0 0 0 8px rgba(230,48,39,0); }
}

/* Cart container indicator */
.cart-container-indicator {
  background: var(--cream);
  border-radius: var(--r-md);
  padding: 14px var(--space-md);
  margin: 0 var(--space-lg) var(--space-md);
  border: 1px solid rgba(230,48,39,0.1);
}
.cci-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
}
.cci-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grey-500); font-weight: 600; }
.cci-ref { font-size: 14px; font-weight: 600; margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.cci-ref code { background: var(--white); padding: 2px 6px; border-radius: 3px; font-size: 12px; }
.cci-tag {
  background: var(--brand-red);
  color: white;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.cci-eta { font-size: 11px; color: var(--grey-500); text-align: right; max-width: 50%; }
.cci-bar {
  height: 10px;
  background: var(--grey-200);
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  margin-bottom: var(--space-sm);
}
.cci-bar-others { background: #1A4A7A; height: 100%; transition: width 0.3s; }
.cci-bar-yours { background: var(--brand-red); height: 100%; transition: width 0.3s; }
.cci-stats { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: var(--grey-700); }
.cci-stats .cci-remaining { color: var(--grey-500); margin-left: auto; }
.cci-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.cci-dot-others { background: #1A4A7A; }
.cci-dot-yours { background: var(--brand-red); }
.cci-warning { margin-top: var(--space-sm); background: #FEF3C7; border-left: 3px solid #92520A; padding: 6px 10px; font-size: 11px; color: #92520A; border-radius: 0 4px 4px 0; }
.cci-buyers { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--grey-700); flex-wrap: wrap; }
.cci-buyers strong { color: var(--grey-900); font-weight: 600; }
.cci-buyers .muted { color: var(--grey-300); }

/* Min order notice */
.cart-min-notice {
  margin: 0 var(--space-lg) 12px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.5;
}
.cart-min-pending { background: #FFF7ED; border-left: 3px solid #E63027; color: #7A2520; }
.cart-min-pending strong { color: #5A1A18; font-weight: 600; }
.cart-min-met { background: #E8F5E9; border-left: 3px solid #2D6A4F; color: #2D6A4F; font-weight: 500; }

/* Colour tags in cart/modal */
.cart-item-colour,
.modal-line-colour,
.line-colour-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--grey-700);
  background: var(--grey-100);
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 4px;
  white-space: nowrap;
}
.cart-item-colour strong,
.modal-line-colour strong,
.line-colour-tag strong { color: var(--grey-900); font-weight: 600; }
/* v0.15.12: SKU tag in reservation line items */
.line-sku-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--grey-500);
  margin-top: 4px;
  margin-left: 6px;
  letter-spacing: 0.02em;
}
.modal-line-colour { display: block; margin-top: 4px; max-width: fit-content; }
.line-colour-tag { display: block; margin-top: 4px; max-width: fit-content; font-size: 10px; }

/* ═══════════════════════════════════════════════════════════════════════ */
/* TOAST                                                                    */
/* ═══════════════════════════════════════════════════════════════════════ */

.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--grey-900);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
  z-index: 200;
  max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--green); }
.toast.warning { background: var(--amber); }

/* ═══════════════════════════════════════════════════════════════════════ */
/* RESPONSIVE — supplier page                                              */
/* ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .supplier-hero-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .supplier-hero-info h1 { font-size: 32px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .factory-stats-grid { grid-template-columns: 1fr 1fr; }
  .containers-grid { grid-template-columns: 1fr; }
  .cart-panel { width: 100%; }
}
@media (max-width: 600px) {
  .process-grid { grid-template-columns: 1fr; }
  .factory-stats-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .supplier-hero-stats-grid { grid-template-columns: 1fr 1fr; }
  .cart-toggle { padding: 12px 16px; font-size: 13px; bottom: var(--space-md); right: var(--space-md); }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* REGISTRATION FORM, ACCOUNT STATUS                                        */
/* ═══════════════════════════════════════════════════════════════════════ */

.page-template-default .entry-content,
.page .entry-content { margin: 0; padding: 0; }

/* Page hero strip */
.impex-page-hero {
  background: #F8F7F5;
  color: #1A1A1A;
  padding: var(--space-2xl) 0 48px;
  text-align: center;
  margin-bottom: 0;
}
.impex-page-hero .container { max-width: 720px; }
.impex-page-hero .eyebrow { color: var(--brand-red); }
.impex-page-hero h1 { color: #1A1A1A; font-size: 38px; margin: 12px 0 12px; }
.impex-page-hero p { color: #4A4A4A; font-size: 17px; line-height: 1.6; max-width: 580px; margin: 0 auto; }
.impex-dashboard-hero p { max-width: none; }

/* Registration form */
.impex-register-form {
  max-width: 720px;
  margin: -32px auto var(--space-4xl);
  background: var(--white);
  padding: var(--space-xl) 48px;
  border-radius: var(--r-lg);
  border: none;
  box-shadow: 0 8px 40px rgba(0,0,0,0.05);
  position: relative;
  z-index: 2;
}

.form-section {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--grey-100);
}
.form-section:last-of-type { border-bottom: none; }
.form-section-title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--grey-500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}
/* v0.15.3: lighter sub-heading within a form section (e.g. "Help Us Verify Your Business") */
.form-subsection-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--grey-700);
  margin: var(--space-lg) 0 var(--space-sm);
}

.form-row { display: grid; gap: var(--space-md); }
.form-row.two-col { grid-template-columns: 1fr 1fr; }

.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-md); }
.form-field label { font-size: 13px; font-weight: 500; color: var(--grey-900); }
.form-field .req { color: var(--brand-red); margin-left: 2px; }
.form-hint { font-size: 12px; color: var(--grey-500); margin-top: 4px; line-height: 1.4; }

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="url"],
.form-field input[type="number"],
.form-field select,
.form-field textarea {
  font: inherit;
  padding: 11px 14px;
  border: 1px solid var(--grey-200);
  border-radius: var(--r-md);
  background: var(--white);
  font-size: 14px;
  color: var(--grey-900);
  transition: all 0.15s;
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(230,48,39,0.08);
}

.pill-multi-group { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.pill-multi-option {
  display: inline-flex;
  align-items: center;
  padding: 8px var(--space-md);
  border: 1px solid var(--grey-200);
  border-radius: 20px;
  font-size: 13px;
  color: var(--grey-700);
  cursor: pointer;
  transition: all 0.15s;
  background: var(--white);
  user-select: none;
}
.pill-multi-option:hover { border-color: var(--grey-300); }
.pill-multi-option input { display: none; }
.pill-multi-option.selected,
.pill-multi-option:has(input:checked) {
  background: var(--brand-red);
  color: var(--white);
  border-color: var(--brand-red);
}

.form-submit-row { margin-top: var(--space-lg); padding-top: var(--space-lg); border-top: 1px solid var(--grey-100); text-align: center; }
.form-submit-row .btn { padding: 14px 32px; }
.form-disclaimer { font-size: 12px; color: var(--grey-500); margin-top: var(--space-md); line-height: 1.5; }

/* v0.15.5: registration consent checkboxes */
.form-consents { display: flex; flex-direction: column; gap: 12px; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--grey-700);
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  margin: 2px 0 0;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: var(--brand-red);
  cursor: pointer;
}
.form-check a { color: var(--brand-red); text-decoration: underline; }
.form-check .req { color: var(--brand-red); }

.form-errors { background: #FEF2F2; border: 1px solid #FCA5A5; color: #991B1B; padding: var(--space-md) 20px; border-radius: var(--r-md); margin-bottom: var(--space-lg); font-size: 14px; }
.form-errors strong { display: block; margin-bottom: 6px; }
.form-errors ul { list-style: disc; padding-left: 20px; font-size: 13px; }
.form-errors li { margin: 2px 0; }

/* Registration success and account-status cards */
.impex-register-success,
.impex-status-card {
  max-width: 560px;
  margin: 56px auto 80px;
  background: var(--white);
  border: none;
  border-radius: var(--r-lg);
  padding: 48px 48px 40px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.05);
}
.impex-register-success h2,
.impex-status-card h2 { margin-bottom: 12px; font-size: 28px; }
.impex-register-success .lead { font-size: 16px; color: var(--grey-700); margin-bottom: var(--space-md); }
.impex-register-success p,
.impex-status-card p { color: var(--grey-700); font-size: 16px; line-height: 1.6; margin-bottom: 12px; }
.impex-register-success p:last-of-type,
.impex-status-card p:last-of-type { margin-bottom: 0; }

.success-icon {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  background: var(--green-bg);
  color: var(--green);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 28px; font-weight: 700;
}

.pending-spinner {
  width: 48px; height: 48px;
  margin: 0 auto 20px;
  border: 3px solid var(--grey-100);
  border-top-color: var(--brand-red);
  border-radius: 50%;
  animation: pending-spin 1s linear infinite;
}
@keyframes pending-spin { to { transform: rotate(360deg); } }

.status-action-row { margin-top: var(--space-lg); display: flex; gap: var(--space-sm); justify-content: center; flex-wrap: wrap; }

.status-declined { border-top: 4px solid var(--grey-500); }
.status-pending  { border-top: 4px solid var(--brand-red); }

@media (max-width: 600px) {
  .impex-register-form { padding: 28px 20px; margin: -16px 16px 64px; }
  .form-row.two-col { grid-template-columns: 1fr; }
  .impex-register-success,
  .impex-status-card { margin: 32px 16px 64px; padding: 32px var(--space-lg); }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* RESERVATIONS: MODAL, MY-RESERVATIONS PAGE                                 */
/* ═══════════════════════════════════════════════════════════════════════ */

.impex-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.impex-modal-backdrop.open { display: flex; }

.impex-modal {
  background: var(--white);
  border-radius: var(--r-lg);
  max-width: 580px;
  width: 100%;
  padding: var(--space-xl);
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
  margin: auto;
}
.impex-modal h2 { font-size: 24px; margin: 0 0 20px; }
.impex-modal-close {
  position: absolute; top: var(--space-md); right: var(--space-md);
  background: transparent; border: none;
  font-size: 28px; color: var(--grey-500); cursor: pointer;
  width: 36px; height: 36px; border-radius: 50%;
}
.impex-modal-close:hover { background: var(--grey-100); }

.modal-supplier-row { background: #FAFAFA; border: 1px solid var(--grey-200); border-radius: var(--r-md); padding: var(--space-md); margin-bottom: 12px; }
.modal-supplier-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.modal-supplier-head h4 { margin: 0; font-size: 16px; }
.modal-supplier-head code { background: var(--white); padding: 2px 8px; border-radius: 4px; font-size: 12px; border: 1px solid var(--grey-200); }
.modal-supplier-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; font-size: 13px; }
.modal-supplier-stats > div { display: flex; flex-direction: column; gap: 2px; }
.modal-supplier-stats .muted { color: var(--grey-500); font-size: 11px; }
.modal-supplier-stats strong { font-size: 15px; }

.modal-lines { border: 1px solid var(--grey-200); border-radius: 6px; background: var(--white); overflow: hidden; margin-bottom: 12px; }
.modal-lines-head,
.modal-line {
  display: grid;
  grid-template-columns: 2.5fr 0.7fr 0.7fr 1.1fr 1.3fr 1.2fr;
  gap: 12px; padding: 8px 12px; align-items: baseline;
}
.modal-lines-head {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--grey-500); font-weight: 600;
  background: var(--grey-100); border-radius: 4px; padding: 8px 12px;
}
.modal-line { font-size: 13px; border-bottom: 1px solid var(--grey-100); }
.modal-line:last-child { border-bottom: none; }
.modal-line-name { font-weight: 500; }

.modal-supplier-totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  background: var(--cream);
  border-radius: 6px;
}
.modal-supplier-totals > div { display: flex; flex-direction: column; gap: 2px; }
.modal-supplier-totals .muted { color: var(--grey-500); font-size: 11px; }
.modal-supplier-totals strong { font-size: 15px; color: var(--grey-900); }
.modal-split-note { background: #FEF3C7; border-left: 3px solid #92520A; padding: 10px 12px; font-size: 12px; color: #92520A; margin: 12px 0 0; border-radius: 4px; }

.impex-modal-notes { margin: 20px 0; }
.impex-modal-notes label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.impex-modal-notes textarea { width: 100%; font: inherit; font-size: 13px; padding: 10px 12px; border: 1px solid var(--grey-200); border-radius: var(--r-md); resize: vertical; }
.impex-modal-notes textarea:focus { outline: none; border-color: var(--brand-red); box-shadow: 0 0 0 3px rgba(230,48,39,0.08); }

.impex-modal-info { background: #FAFAFA; border-radius: var(--r-md); padding: var(--space-md); font-size: 13px; line-height: 1.5; margin-bottom: 20px; }
.impex-modal-info p { margin: 0 0 var(--space-sm); }
.impex-modal-info ol { margin: 0 0 0 20px; padding: 0; }
.impex-modal-info li { margin-bottom: 4px; color: var(--grey-700); }

.impex-modal-actions { display: flex; gap: var(--space-sm); justify-content: flex-end; }
.impex-modal-actions .btn { padding: 11px 22px; }

.impex-modal .muted { color: var(--grey-500); font-weight: 400; }
.impex-modal .error { color: #991B1B; padding: 12px; background: #FEF2F2; border-radius: 4px; font-size: 13px; }

/* Modal payment schedule timeline */
.modal-pay-stages { display: grid; gap: 0; margin-top: var(--space-sm); }
.modal-pay-stage { display: grid; grid-columns: 28px 1fr auto; gap: 12px; padding: 10px 0; border-top: 1px solid var(--grey-100); align-items: center; }
.modal-pay-stage:first-child { border-top: none; padding-top: 4px; }
.mps-num { width: 24px; height: 24px; border-radius: 50%; background: var(--grey-300); color: var(--grey-700); display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.modal-pay-stage:first-child .mps-num { background: var(--brand-red); color: white; }
.mps-body { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mps-body strong { font-size: 13px; color: var(--grey-900); }
.mps-when { font-size: 11px; color: var(--grey-500); }
.mps-detail { font-size: 11px; color: var(--grey-500); }
.mps-amt { text-align: right; font-size: 13px; font-weight: 600; color: var(--grey-900); font-variant-numeric: tabular-nums; white-space: nowrap; }
.modal-pay-footnote { font-size: 10px; color: var(--grey-500); margin: 10px 0 0; padding-top: var(--space-sm); border-top: 1px solid var(--grey-100); line-height: 1.4; }

@media (max-width: 720px) {
  .modal-lines-head,
  .modal-line { grid-template-columns: 1.6fr 0.5fr 0.6fr 1fr 1.1fr 1fr; gap: var(--space-sm); font-size: 11px; padding: var(--space-sm); }
  .impex-modal { padding: var(--space-lg) 20px; }
  .impex-modal h2 { font-size: 20px; }
  .modal-supplier-stats { grid-template-columns: 1fr 1fr 1fr; font-size: 12px; }
}
@media (max-width: 540px) {
  .modal-pay-stage { grid-template-columns: 24px 1fr; gap: var(--space-sm); }
  .mps-amt { grid-column: 2; text-align: left; margin-top: 4px; }
}

/* ─── My Reservations page ─────────────────────────────────────────── */
.my-reservations-page { max-width: 960px; margin: var(--space-xl) auto var(--space-4xl); padding: 0 20px; }
.my-res-header { margin-bottom: var(--space-xl); }
.my-res-header h2 { font-size: 28px; margin-bottom: 6px; }
.my-res-header p { color: var(--grey-500); font-size: 16px; margin: 0; }

.my-res-section { margin-bottom: var(--space-2xl); }
.my-res-section-header { margin-bottom: var(--space-md); }
.my-res-section-header h3 { font-family: var(--font-body); font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grey-700); margin: 0; }
.my-res-section-header .section-hint { font-size: 13px; color: var(--grey-500); margin: 6px 0 0; }
.my-res-count { background: var(--grey-100); color: var(--grey-700); border-radius: 20px; padding: 2px 10px; font-size: 12px; margin-left: 6px; font-weight: 500; }

.my-res-empty { background: var(--grey-100); border-radius: var(--r-md); padding: var(--space-xl); text-align: center; color: var(--grey-500); }

/* Reservation card */
.reservation-card {
  background: var(--white);
  border: none;
  border-radius: var(--r-md);
  padding: 20px var(--space-lg);
  margin-bottom: var(--space-md);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
}
.reservation-card.section-active  { border-left: 4px solid #1A4A7A; }
.reservation-card.section-production { border-left: 4px solid #2D6A4F; }
.reservation-card.section-past { border-left: 4px solid var(--grey-300); opacity: 0.85; }

.res-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: var(--space-md); }
.res-card-eyebrow { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-red); font-weight: 500; }
.res-card-supplier h4 { margin: 4px 0 0; font-family: var(--font-body); font-size: 18px; font-weight: 600; }
.res-card-status .badge { padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; }

.res-card-summary-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--grey-100);
  border-bottom: 1px solid var(--grey-100);
}
.res-card-summary-row > div { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.res-card-key { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grey-500); font-weight: 500; }
.res-card-val { color: var(--grey-900); }
.res-card-val code { background: var(--grey-100); padding: 2px 6px; border-radius: 3px; font-size: 12px; }
.res-card-faint { color: var(--grey-500); font-size: 11px; font-weight: 400; }

/* Container fill bar within reservation card */
.res-card-fill { margin: var(--space-md) 0; padding: 14px var(--space-md); background: var(--grey-100); border-radius: var(--r-md); }
.res-card-fill-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--grey-700); margin-bottom: var(--space-sm); }
.res-card-fill-bar { height: 12px; background: var(--grey-200); border-radius: 6px; position: relative; overflow: visible; }
.res-card-fill-fill { background: var(--brand-red); height: 100%; border-radius: 6px; transition: width 0.4s; }
.res-card-fill-marker { position: absolute; left: 75%; top: -2px; bottom: -2px; width: 2px; background: #1A4A7A; }
.res-card-fill-foot { font-size: 11px; color: var(--grey-500); margin-top: 6px; }

/* Delivery tracker */
.res-card-tracker { margin: 20px 0; padding: 20px; background: linear-gradient(180deg, #FAFAFA 0%, var(--white) 100%); border: 1px solid var(--grey-200); border-radius: var(--r-md); }
.res-card-tracker-stages { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; position: relative; }
.res-card-tracker-stages::before { content: ''; position: absolute; top: 18px; left: 6%; right: 6%; height: 2px; background: var(--grey-200); z-index: 0; }
.tracker-stage { position: relative; z-index: 1; text-align: center; }
.tracker-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--grey-200); margin: 0 auto 6px; display: grid; place-items: center; font-size: 16px; border: 2px solid var(--white); }
.tracker-stage.done .tracker-icon { background: #2D6A4F; color: var(--white); }
.tracker-check { font-size: 18px; font-weight: 700; line-height: 1; }
.tracker-stage.current .tracker-icon { background: var(--brand-red); color: var(--white); box-shadow: 0 0 0 4px rgba(230,48,39,0.15); animation: tracker-pulse 2s ease-in-out infinite; }
@keyframes tracker-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(230,48,39,0.15); }
  50% { box-shadow: 0 0 0 8px rgba(230,48,39,0.05); }
}
.tracker-label { font-size: 10px; color: var(--grey-700); line-height: 1.3; padding: 0 2px; }
.tracker-stage.current .tracker-label { color: var(--brand-red); font-weight: 600; }
.tracker-stage.pending .tracker-label { color: var(--grey-500); }
.tracker-date { font-size: 9.5px; color: var(--grey-500); margin-top: 4px; letter-spacing: 0.02em; }
.tracker-stage.done .tracker-date { color: #2D6A4F; font-weight: 500; }
.tracker-date-active { color: var(--brand-red) !important; font-style: italic; font-weight: 500; }
.res-card-tracker-eta { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--grey-100); font-size: 13px; color: var(--grey-700); text-align: center; }

/* Items details */
.res-card-items { margin-top: var(--space-md); }
.res-card-items summary { cursor: pointer; font-size: 13px; color: var(--brand-red); padding: var(--space-sm) 0; user-select: none; }
.res-card-items summary:hover { text-decoration: underline; }
.res-card-items-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 12px; }
.res-card-items-table th, .res-card-items-table td { padding: 8px 6px; text-align: right; border-bottom: 1px solid var(--grey-100); }
.res-card-items-table th:first-child, .res-card-items-table td:first-child { text-align: left; }
.res-card-items-table th { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--grey-500); font-weight: 600; background: var(--grey-100); }
.res-card-items-table td { font-variant-numeric: tabular-nums; }

.res-card-notes { background: var(--cream); border-left: 3px solid var(--brand-red); padding: 10px 14px; font-size: 13px; margin: var(--space-md) 0; border-radius: 0 4px 4px 0; }

.res-card-foot { display: flex; justify-content: space-between; align-items: center; padding-top: var(--space-md); margin-top: var(--space-md); border-top: 1px solid var(--grey-100); }
/* v0.15.12: reservation footer actions row */
.res-card-foot-actions { display: flex; gap: 8px; }
.btn.btn-sm { padding: 6px 14px; font-size: 12px; }

/* Payment schedule */
.res-payment-schedule { margin: var(--space-md) 0; background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--r-md); padding: var(--space-md) 20px; }
.res-payment-schedule-head { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; color: var(--grey-700); margin: 0 0 12px; }
.payment-stages { display: grid; gap: 0; }
.payment-stage { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; padding: 10px 0; border-top: 1px solid var(--grey-100); align-items: center; }
.payment-stage:first-child { border-top: none; }
.payment-stage-num { width: 28px; height: 28px; border-radius: 50%; background: var(--grey-100); color: var(--grey-700); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.payment-stage.done .payment-stage-num { background: #2D6A4F; color: white; }
.payment-stage.active .payment-stage-num { background: var(--brand-red); color: white; }
.payment-stage-body { min-width: 0; }
.payment-stage-label { font-size: 13px; font-weight: 600; color: var(--grey-900); display: block; }
.payment-stage-when { font-size: 11px; color: var(--grey-500); display: block; margin-top: 2px; }
.payment-stage-detail { font-size: 11px; color: var(--grey-500); display: block; margin-top: 1px; }
.payment-stage-amount { text-align: right; font-size: 14px; font-weight: 600; color: var(--grey-900); font-variant-numeric: tabular-nums; white-space: nowrap; }
.payment-stage-amount .currency-tag { display: block; font-size: 10px; font-weight: 500; color: var(--grey-500); text-transform: uppercase; letter-spacing: 0.05em; }
.payment-stage-amount-secondary { display: block; font-size: 11px; color: var(--grey-700); font-weight: 500; margin-top: 2px; }

@media (max-width: 700px) {
  .res-card-summary-row { grid-template-columns: 1fr 1fr; }
  .res-card-tracker-stages { grid-template-columns: repeat(4, 1fr); gap: var(--space-md) var(--space-sm); }
  .res-card-tracker-stages::before { display: none; }
  .tracker-label { font-size: 11px; }
  .res-card-items-table { font-size: 11px; }
  .res-card-items-table th, .res-card-items-table td { padding: 6px 3px; }
}
@media (max-width: 540px) {
  .payment-stage { grid-template-columns: 28px 1fr; gap: var(--space-sm); }
  .payment-stage-amount { grid-column: 2; text-align: left; margin-top: 4px; }
}

/* Deposit deadline banner */
.res-deposit-banner {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFE8DD 100%);
  border: 1px solid #F4A03F;
  border-radius: var(--r-md);
  padding: 14px 18px;
  margin-bottom: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.res-deposit-banner-text { font-size: 13px; color: #7A4720; line-height: 1.5; }
.res-deposit-banner-text strong { color: #5A2A10; }
.res-deposit-banner-amount { font-size: 20px; font-weight: 700; color: var(--brand-red); font-variant-numeric: tabular-nums; white-space: nowrap; }
.res-deposit-banner-amount-meta { display: block; font-size: 11px; font-weight: 500; color: var(--grey-500); text-transform: uppercase; letter-spacing: 0.04em; }

/* ═══════════════════════════════════════════════════════════════════════ */
/* CONTAINER DEALS PAGE, READY STOCK PAGE                                    */
/* ═══════════════════════════════════════════════════════════════════════ */

.container-deals-page,
.ready-stock-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px var(--space-4xl);
}

.deals-summary {
  display: flex;
  gap: var(--space-xl);
  padding: 20px var(--space-lg);
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--r-lg);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}
.deals-summary-stat { display: flex; flex-direction: column; gap: 2px; }
.deals-summary-num { font-size: 24px; font-weight: 600; color: var(--grey-900); font-family: var(--font-display); }
.deals-summary-label { font-size: 11px; color: var(--grey-500); text-transform: uppercase; letter-spacing: 0.06em; }

.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
  justify-items: start;
}
.deals-grid > * { width: 100%; max-width: 420px; }

.deal-card {
  background: var(--white);
  border: none;
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
}
.deal-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.deal-card-image { aspect-ratio: 4/3; background-size: cover; background-position: center; position: relative; }
.deal-card-badges { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; z-index: 4; }
.deal-card-body { padding: 20px var(--space-lg) var(--space-lg); }
.deal-card-eyebrow { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grey-500); font-weight: 500; margin-bottom: 4px; }
.deal-card h3 { font-family: var(--font-display); font-size: 20px; margin: 0 0 4px; color: var(--grey-900); }
.deal-card-spec { font-size: 13px; color: var(--grey-500); margin: 0 0 18px; }
.deal-card-fill { margin-bottom: var(--space-md); }
.deal-card-fill-bar { height: 8px; background: var(--grey-200); border-radius: 4px; position: relative; margin-bottom: 6px; overflow: visible; }
.deal-card-fill-bar-fg { background: var(--brand-red); height: 100%; border-radius: 4px; transition: width 0.4s; }
.deal-card-fill-bar-marker { position: absolute; left: 75%; top: -2px; bottom: -2px; width: 2px; background: #1A4A7A; }
.deal-card-fill-stats { font-size: 11px; display: flex; justify-content: space-between; color: var(--grey-700); }
.deal-card-fill-stats .muted { color: var(--grey-500); }
.deal-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--grey-100);
  border-bottom: 1px solid var(--grey-100);
  font-size: 12px;
  margin-bottom: var(--space-md);
}
.deal-card-meta > div { display: flex; flex-direction: column; gap: 3px; }
/* v0.18.1: status cell has no label above it, so push its text to the bottom
   so it lines up horizontally with the Container code chip opposite it,
   instead of floating mid-cell and looking misaligned between cards. */
.deal-card-meta-status {
  justify-content: flex-end;
  align-items: flex-end;
  text-align: right;
  font-weight: 500;
  color: var(--grey-700);
  line-height: 1.3;
}
/* Match the Container code chip's vertical box (2px padding + 11px font) so the
   status text and the code chip share a baseline across every card. */
.deal-card-meta-status-val { display: inline-block; padding: 2px 0; }
.deal-card-meta > div > .muted { min-height: 13px; }
.deal-card-meta .muted { font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--grey-500); }
.deal-card-meta code { background: var(--grey-100); padding: 2px 6px; border-radius: 3px; font-size: 11px; }
.deal-card-cta { width: 100%; justify-content: center; }
/* v0.15.9: greyed-out, non-clickable CTA for In Production containers */
.deal-card-cta.is-disabled {
  background: var(--grey-200);
  color: var(--grey-500);
  border-color: var(--grey-200);
  cursor: not-allowed;
  pointer-events: none;
}

/* Ready Stock page */
.ready-stock-intro {
  background: #FDFAF5;
  border-radius: var(--r-md);
  padding: var(--space-md) 20px;
  margin-bottom: var(--space-lg);
  font-size: 16px;
  color: var(--grey-700);
  border-left: 3px solid var(--brand-red);
}
.ready-stock-intro p { margin: 0; }

.ready-stock-supplier {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--grey-200);
}
.ready-stock-supplier:first-of-type { border-top: none; padding-top: var(--space-md); }
.ready-stock-supplier-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; gap: var(--space-lg); flex-wrap: wrap; }
.ready-stock-supplier-head h3 { font-family: var(--font-display); font-size: 24px; margin: 4px 0 6px; }
.ready-stock-supplier-head p { margin: 0; color: var(--grey-500); font-size: 13px; }
.ready-stock-empty { background: var(--grey-100); padding: var(--space-lg); border-radius: var(--r-md); text-align: center; color: var(--grey-500); font-size: 16px; }
.ready-stock-empty p { margin: 0; }

.ready-stock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
  justify-items: start;
}
.ready-stock-grid > * { width: 100%; max-width: 320px; }

.ready-stock-card {
  background: var(--white);
  border: none;
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ready-stock-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.ready-stock-card-image { aspect-ratio: 1/1; background-size: cover; background-position: center; }
.ready-stock-card-body { padding: 14px var(--space-md) var(--space-md); display: flex; flex-direction: column; gap: var(--space-sm); flex: 1; }
.ready-stock-card-body h4 { font-family: var(--font-body); font-size: 14px; font-weight: 600; margin: 0; color: var(--grey-900); line-height: 1.3; }
.ready-stock-stock { margin-bottom: var(--space-sm); }
.ready-stock-price { margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.ready-stock-price-terms { font-size: 11px; color: var(--grey-500); }
.ready-stock-locked { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-red); }
.ready-stock-lock-icon { font-size: 12px; line-height: 1; color: #F59E0B; }

/* ═══════════════════════════════════════════════════════════════════════ */
/* PRODUCT DETAIL PAGE, GALLERY, LIGHTBOX, RELATED                          */
/* ═══════════════════════════════════════════════════════════════════════ */

/* Breadcrumb */
.product-breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  padding: 14px 0;
  font-size: 13px;
}
.product-breadcrumb .container { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; }
.product-breadcrumb a { color: var(--grey-700); text-decoration: none; transition: color 0.15s; }
.product-breadcrumb a:hover { color: var(--brand-red); }
.product-breadcrumb .sep { color: var(--grey-300); }
.product-breadcrumb span:last-child { color: var(--grey-900); font-weight: 500; }

/* Product detail layout */
.product-detail { padding: var(--space-xl) 0 var(--space-4xl); }
.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: start;
}
@media (max-width: 920px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
}

/* Gallery */
.product-gallery { position: sticky; top: 110px; } /* account for announce-bar (~30px) + topbar (72px) + spacing (8px) */
@media (max-width: 920px) { .product-gallery { position: static; } }

.gallery-main {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--grey-100);
  border-radius: var(--r-md);
  overflow: hidden;
  outline: none;
  cursor: zoom-in;
}
.gallery-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.25s ease-in-out; pointer-events: none; }
.gallery-slide.active { opacity: 1; pointer-events: auto; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gallery-empty { aspect-ratio: 4/3; background: var(--grey-100); border-radius: var(--r-md); display: grid; place-items: center; color: var(--grey-500); font-size: 16px; }

.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: none; border-radius: 50%;
  background: rgba(255,255,255,0.92); color: var(--grey-900); font-size: 28px;
  cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: background 0.15s, transform 0.1s;
  z-index: 2; line-height: 1;
}
.gallery-nav:hover { background: white; transform: translateY(-50%) scale(1.05); }
.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }

.gallery-counter {
  position: absolute; bottom: 14px; right: 14px;
  background: rgba(0,0,0,0.6); color: white;
  padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; z-index: 2;
}

.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: var(--space-sm); margin-top: 12px; }
.gallery-thumb { aspect-ratio: 1; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; padding: 0; background: var(--grey-100); transition: border-color 0.15s, transform 0.1s; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover { border-color: var(--grey-300); transform: scale(1.02); }
.gallery-thumb.active { border-color: var(--brand-red); }

/* Lightbox */
.gallery-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 99999; display: grid; place-items: center; padding: var(--space-lg); cursor: zoom-out; }
.gallery-lightbox-img-wrap { max-width: 90vw; max-height: 85vh; cursor: default; }
.gallery-lightbox img { max-width: 100%; max-height: 85vh; display: block; border-radius: 4px; }
.gallery-lightbox-close,
.gallery-lightbox-prev,
.gallery-lightbox-next {
  position: absolute; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3);
  color: white; font-size: 28px; cursor: pointer; border-radius: 50%;
  display: grid; place-items: center; transition: background 0.15s; line-height: 1;
}
.gallery-lightbox-close:hover,
.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover { background: rgba(255,255,255,0.2); }
.gallery-lightbox-close { top: var(--space-lg); right: var(--space-lg); width: 48px; height: 48px; }
.gallery-lightbox-prev, .gallery-lightbox-next { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; }
.gallery-lightbox-prev { left: var(--space-lg); }
.gallery-lightbox-next { right: var(--space-lg); }
.gallery-lightbox-counter { position: absolute; bottom: var(--space-lg); left: 50%; transform: translateX(-50%); color: white; font-size: 13px; letter-spacing: 0.04em; }

/* Product info side */
.product-supplier-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 13px;
  margin-bottom: var(--space-md);
  padding: 6px 12px;
  background: var(--cream);
  border-radius: 20px;
}
.product-supplier-tag img { width: 24px; height: 24px; border-radius: 50%; object-fit: contain; }
.product-supplier-tag a { color: var(--grey-900); font-weight: 600; text-decoration: none; }
.product-supplier-tag a:hover { color: var(--brand-red); }
.product-supplier-tag .muted { color: var(--grey-500); }

.product-title { font-family: var(--font-display); font-size: clamp(26px, 3vw, 32px); line-height: 1.2; margin: 0 0 var(--space-sm); letter-spacing: -0.01em; }
.product-subtitle { color: var(--grey-500); font-size: 15px; margin: 0 0 var(--space-xl); }

.product-price-block { padding: var(--space-md) 0; border-top: 1px solid var(--grey-100); border-bottom: 1px solid var(--grey-100); margin-bottom: var(--space-lg); }
.product-price-value { font-family: var(--font-display); font-size: 36px; font-weight: 600; color: var(--grey-900); }
.product-price-value.muted { color: var(--grey-400, #999); }
.product-price-meta { font-size: 13px; color: var(--grey-500); }
.product-price-meta a { color: var(--brand-red); font-weight: 500; }
.product-price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.product-price-delivered { display: block; margin-top: var(--space-sm); font-size: 13px; color: var(--grey-700); background: var(--grey-100); padding: var(--space-sm) 12px; border-radius: 6px; width: fit-content; }
.product-price-delivered .muted { color: var(--grey-500); font-size: 11px; display: block; margin-top: 2px; }
.product-price-gbp { display: block; font-size: 18px; font-weight: 500; color: var(--grey-500); margin-top: 4px; margin-bottom: 12px; font-family: var(--font-display); letter-spacing: 0.01em; }

.product-quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, max-content));
  gap: var(--space-md);
  padding: var(--space-md) 20px;
  background: var(--grey-100);
  border-radius: var(--r-md);
  margin-bottom: 20px;
}
.product-quick-stats > div { display: flex; flex-direction: column; gap: 2px; }
.qs-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grey-500); font-weight: 600; }
.qs-value { font-size: 14px; color: var(--grey-900); font-weight: 500; }
.qs-success { color: #2D6A4F; }

/* Container info card on product page */
.product-container-info { background: linear-gradient(135deg, #FFF7ED 0%, #FFFFFF 100%); border: 1px solid rgba(230,48,39,0.15); border-radius: var(--r-md); padding: 14px var(--space-md); margin-bottom: 20px; }
.pci-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.pci-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grey-500); font-weight: 600; display: block; }
.pci-head code { background: var(--white); padding: 2px 6px; border-radius: 3px; font-size: 13px; }
.pci-pct { font-size: 13px; font-weight: 600; color: var(--brand-red); }
.pci-bar { height: 8px; background: var(--grey-200); border-radius: 4px; overflow: hidden; margin-bottom: 6px; }
.pci-bar-fill { background: var(--brand-red); height: 100%; transition: width 0.3s; }
.pci-meta { font-size: 11px; color: var(--grey-500); margin: 0; }

.product-cta-locked { background: var(--cream); border-left: 3px solid var(--brand-red); padding: var(--space-md) 20px; border-radius: 0 var(--r-md) var(--r-md) 0; margin-bottom: 20px; }
.product-cta-locked p { margin: 4px 0 0; font-size: 13px; }

.product-add-btn { width: 100%; justify-content: center; margin-bottom: var(--space-xl); }

/* Colour selector */
.product-colour-selector { margin-bottom: 20px; padding: 14px var(--space-md); background: var(--grey-100); border-radius: var(--r-md); }
.pcs-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; gap: 12px; }
.pcs-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grey-500); font-weight: 600; }
.pcs-selected { font-size: 14px; font-weight: 600; color: var(--grey-900); }
.pcs-options { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.pcs-option { border: 2px solid transparent; background: var(--white); border-radius: 50%; padding: 2px; cursor: pointer; transition: border-color 0.15s, transform 0.1s; display: inline-block; line-height: 0; }
.pcs-option:hover { transform: scale(1.05); border-color: var(--grey-300); }
.pcs-option.active { border-color: var(--brand-red); transform: scale(1.05); }
.pcs-swatch { display: block; width: 36px; height: 36px; border-radius: 50%; background-size: cover; background-position: center; background-color: var(--grey-200); }
.pcs-swatch-dot { background: linear-gradient(135deg, #E0DCD0 0%, #B8B0A0 100%); }
@media (max-width: 540px) {
  .pcs-swatch { width: 32px; height: 32px; }
  .product-specs dl { grid-template-columns: 1fr; gap: 4px 0; }
  .product-specs dt { padding-top: 12px; }
  .product-specs dd { padding-bottom: var(--space-sm); border-bottom: 1px solid var(--grey-100); margin-bottom: 4px; }
  .product-title { font-size: 26px; }
  .product-price-value { font-size: 28px; }
}

/* Description + specs */
.product-description,
.product-specs { padding: var(--space-lg) 0; border-top: 1px solid var(--grey-100); }
.product-description h3,
.product-specs h3 { font-family: var(--font-body); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--grey-700); margin: 0 0 14px; }
.product-description p { line-height: 1.7; color: var(--grey-700); }

.product-specs dl { display: grid; grid-template-columns: 160px 1fr; gap: var(--space-sm) var(--space-xl); margin: 0; }
.product-specs dt { font-size: 13px; font-weight: 500; color: var(--grey-500); }
.product-specs dd { margin: 0; font-size: 16px; color: var(--grey-900); line-height: 1.5; }

/* Related products */
.product-related { margin-top: var(--space-2xl); padding-top: var(--space-xl); border-top: 1px solid var(--grey-200); }
.product-related h2 { font-family: var(--font-display); font-size: 22px; margin: 0 0 var(--space-lg); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; justify-items: start; }
.related-grid > * { width: 100%; max-width: 280px; }
.related-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--white);
  border: none;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
  transition: transform 0.15s, box-shadow 0.15s;
}
.related-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.related-card-img { aspect-ratio: 4/3; background-size: cover; background-position: center; background-color: var(--grey-100); }
.related-card-body { padding: 14px var(--space-md); }
.related-card-body h4 { font-size: 14px; margin: 0 0 6px; line-height: 1.3; font-weight: 500; }
.related-card-price { font-weight: 600; color: var(--grey-900); }
.related-card-body .muted { color: var(--grey-500); font-size: 12px; }

/* ═══════════════════════════════════════════════════════════════════════ */
/* WHATSAPP FLOATING BUTTON                                                  */
/* ═══════════════════════════════════════════════════════════════════════ */

.whatsapp-float {
  position: fixed;
  bottom: var(--space-lg);
  left: var(--space-lg);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  background: #25D366;
  color: #FFFFFF;
  border-radius: 999px;
  box-shadow: 0 8px 24px -6px rgba(37,211,102,0.45), 0 2px 6px rgba(0,0,0,0.1);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background 0.15s;
}
.whatsapp-float:hover,
.whatsapp-float:focus {
  background: #1FB855;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(37,211,102,0.5), 0 4px 10px rgba(0,0,0,0.12);
  color: #FFFFFF;
  text-decoration: none;
}
.whatsapp-float-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex-shrink: 0; }
.whatsapp-float-label { white-space: nowrap; }

@media (max-width: 540px) {
  .whatsapp-float { bottom: 18px; left: 18px; padding: 12px; border-radius: 50%; }
  .whatsapp-float-icon { width: 26px; height: 26px; }
  .whatsapp-float-icon svg { width: 26px; height: 26px; }
  .whatsapp-float-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* HOW IT WORKS (FAQ) + TERMS & CONDITIONS PAGES                             */
/* ═══════════════════════════════════════════════════════════════════════ */

.hiw-hero { padding: var(--space-4xl) 0 60px; background: linear-gradient(180deg, #FAFAFA 0%, #FFFFFF 100%); border-bottom: 1px solid var(--grey-200); }
.hiw-hero h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; margin: 12px 0 18px; font-family: var(--font-display); color: var(--grey-900); max-width: 820px; }
.hiw-hero-sub { font-size: 17px; line-height: 1.65; color: var(--grey-700); max-width: 680px; }

.hiw-steps-section { padding: var(--space-4xl) 0; background: var(--white); }
.hiw-faq-section { padding: var(--space-4xl) 0; background: var(--cream); }

.hiw-h2 { font-size: 30px; margin: 0 0 12px; font-family: var(--font-display); color: var(--grey-900); }
.hiw-h2-sub { font-size: 15px; color: var(--grey-700); margin-bottom: 40px; max-width: 640px; }
.hiw-h2-sub a { color: var(--brand-red); font-weight: 500; }

.hiw-faq-category { margin-bottom: var(--space-2xl); }
.hiw-cat-head { font-size: 22px; font-weight: 600; color: var(--grey-900); margin: 0 0 var(--space-md); padding-bottom: 12px; border-bottom: 2px solid var(--grey-200); display: flex; align-items: baseline; gap: 12px; }
.hiw-cat-num {
  display: inline-block;
  width: 36px; height: 36px;
  background: rgba(230,48,39,0.08);
  color: var(--brand-red);
  border-radius: var(--r-md);
  text-align: center;
  line-height: 36px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: var(--font-display);
}

.hiw-faq { background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--r-md); margin-bottom: 10px; overflow: hidden; transition: box-shadow 0.15s; }
.hiw-faq[open] { box-shadow: 0 4px 16px -4px rgba(0,0,0,0.06); }
.hiw-faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-size: 15px; font-weight: 600; color: var(--grey-900); position: relative; user-select: none; transition: background 0.15s; }
.hiw-faq summary::-webkit-details-marker { display: none; }
.hiw-faq summary:hover { background: var(--grey-100); }
.hiw-faq summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 300; color: var(--brand-red); line-height: 1; transition: transform 0.2s; }
.hiw-faq[open] summary::after { content: '−'; }
.hiw-faq-body { padding: 4px 22px 22px; font-size: 16px; line-height: 1.65; color: var(--grey-700); border-top: 1px solid var(--grey-100); padding-top: 18px; margin-top: 4px; }
.hiw-faq-body p { margin: 0 0 12px; }
.hiw-faq-body p:last-child { margin-bottom: 0; }
.hiw-faq-body ul, .hiw-faq-body ol { margin: var(--space-sm) 0 12px 22px; padding: 0; }
.hiw-faq-body li { margin-bottom: 6px; line-height: 1.55; }
.hiw-faq-body a { color: var(--brand-red); font-weight: 500; }
.hiw-faq-body strong { color: var(--grey-900); font-weight: 600; }

.hiw-cta-block { margin-top: var(--space-2xl); padding: 40px var(--space-xl); background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--r-lg); text-align: center; }
.hiw-cta-block h3 { font-size: 24px; margin: 0 0 var(--space-sm); font-family: var(--font-display); color: var(--grey-900); }
.hiw-cta-block p { color: var(--grey-700); margin: 0 0 20px; }
.hiw-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Terms & Conditions page */
.terms-page { padding: 60px 0 var(--space-4xl); background: var(--white); }
.terms-header { max-width: 800px; margin: 0 auto var(--space-2xl); border-bottom: 1px solid var(--grey-200); padding-bottom: var(--space-lg); }
.terms-header h1 { font-size: clamp(32px, 4vw, 44px); margin: var(--space-sm) 0 var(--space-sm); font-family: var(--font-display); color: var(--grey-900); }
.terms-updated { font-size: 13px; color: var(--grey-500); margin: 0; }
.terms-content { max-width: 800px; margin: 0 auto; font-size: 15px; line-height: 1.7; color: var(--grey-700); }
.terms-content section { margin-bottom: 40px; scroll-margin-top: 130px; } /* account for announce-bar (~30px) + topbar (72px) + spacing (28px) */
.terms-content h2 { font-size: 22px; margin: 0 0 14px; font-family: var(--font-display); color: var(--grey-900); }
.terms-content h3 { font-size: 16px; margin: 22px 0 var(--space-sm); color: var(--grey-900); font-weight: 600; }
.terms-content p { margin: 0 0 14px; }
.terms-content ul { margin: 6px 0 var(--space-md) 22px; padding: 0; }
.terms-content li { margin-bottom: 6px; }
.terms-content a { color: var(--brand-red); font-weight: 500; }
.terms-content strong { color: var(--grey-900); font-weight: 600; }

@media (max-width: 720px) {
  .hiw-hero { padding: var(--space-3xl) 0 40px; }
  .hiw-faq summary { padding: var(--space-md) 50px var(--space-md) 18px; font-size: 14px; }
  .hiw-faq-body { padding: 4px 18px 18px; font-size: 13px; }
  .hiw-cta-block { padding: 28px 20px; }
  .terms-content { font-size: 16px; }
}

/* ─── Programs filter tabs ──────────────────────────────────────────── */
.programs-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--grey-200); margin-bottom: 28px; padding: 0; }
.programs-tab { display: inline-flex; align-items: center; gap: var(--space-sm); padding: 12px 18px; color: var(--grey-700); text-decoration: none; font-size: 14px; font-weight: 500; border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s; white-space: nowrap; }
.programs-tab:hover { color: var(--brand-red); }
.programs-tab.is-active { color: var(--brand-red); border-bottom-color: var(--brand-red); }
.programs-tab-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; padding: 2px 7px; background: var(--grey-100); color: var(--grey-700); border-radius: 11px; font-size: 11px; font-weight: 600; line-height: 1.4; }
.programs-tab.is-active .programs-tab-count { background: var(--brand-red); color: #FFFFFF; }
@media (max-width: 700px) {
  .programs-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .programs-tab { padding: 10px 14px; font-size: 13px; }
}

/* ─── Made-to-Order placeholder ────────────────────────────────────── */
.mto-placeholder { text-align: center; padding: var(--space-4xl) var(--space-xl); background: linear-gradient(135deg, #FAFAFA 0%, #F4F4F4 100%); border-radius: var(--r-lg); border: 1px solid var(--grey-200); max-width: 720px; margin: 0 auto; }
.mto-placeholder-icon { font-size: 48px; margin-bottom: var(--space-md); }
.mto-placeholder h2 { font-family: Georgia, serif; font-size: 28px; margin: 0 0 var(--space-md); color: var(--grey-900); }
.mto-placeholder p { color: var(--grey-700); font-size: 15px; line-height: 1.6; margin: 0 auto 14px; max-width: 540px; }
.mto-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 28px 0 var(--space-md); }
.mto-footnote { font-size: 13px !important; color: var(--grey-500) !important; margin-top: var(--space-md) !important; }
@media (max-width: 700px) {
  .mto-placeholder { padding: 48px 20px; }
  .mto-placeholder h2 { font-size: 22px; }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* CUSTOM PRODUCT ENQUIRY FORM                                               */
/* ═══════════════════════════════════════════════════════════════════════ */

.ce-form-wrap { max-width: 760px; margin: 0 auto; padding: 40px 20px var(--space-4xl); }
.ce-header { text-align: center; margin-bottom: 40px; }
.ce-eyebrow { display: inline-block; color: var(--brand-red); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 var(--space-sm); }
.ce-header h1 { font-family: var(--font-display);;font-size: 32px; margin: 0 0 12px; color: var(--grey-900); }
.ce-lead { color: var(--grey-700); font-size: 15px; line-height: 1.6; max-width: 580px; margin: 0 auto; }

.ce-form { background: #FFFFFF; border-radius: var(--r-lg); border: 1px solid var(--grey-200); padding: 8px var(--space-xl) var(--space-xl); }
.ce-section { border: none; border-bottom: 1px solid var(--grey-200); padding: var(--space-lg) 0; margin: 0; }
.ce-section:last-of-type { border-bottom: none; }
.ce-section legend { font-family: var(--font-display); font-size: 18px; color: var(--grey-900); padding: 0; margin: 0 0 var(--space-md); font-weight: 600; }

.ce-field { margin-bottom: 18px; }
.ce-field:last-child { margin-bottom: 0; }
.ce-field label { display: block; font-size: 13px; font-weight: 500; color: var(--grey-900); margin-bottom: 6px; }
.ce-req { color: var(--brand-red); margin-left: 2px; }
.ce-field input[type="text"],
.ce-field input[type="date"],
.ce-field input[type="file"],
.ce-field textarea,
.ce-field select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--grey-200); border-radius: 6px;
  font-size: 14px; font-family: inherit; background: #FFFFFF; color: var(--grey-900);
  box-sizing: border-box; transition: border-color .15s, box-shadow .15s;
}
.ce-field input[type="text"]:focus,
.ce-field input[type="date"]:focus,
.ce-field textarea:focus,
.ce-field select:focus { outline: none; border-color: var(--brand-red); box-shadow: 0 0 0 3px rgba(230,48,39,0.08); }
.ce-field textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.ce-field input[type="file"] { padding: 8px; font-size: 13px; cursor: pointer; }
.ce-help { margin: 6px 0 0; font-size: 12px; color: var(--grey-500); line-height: 1.5; }

.ce-multi { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
.ce-multi-opt { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) 10px; border: 1px solid var(--grey-200); border-radius: 6px; cursor: pointer; transition: background .15s, border-color .15s; font-weight: 400 !important; margin: 0 !important; font-size: 13px !important; }
.ce-multi-opt:hover { background: var(--grey-50); border-color: var(--grey-300); }
.ce-multi-opt input[type="checkbox"] { margin: 0; width: auto; accent-color: var(--brand-red); }
.ce-multi-opt input[type="checkbox"]:checked + span { font-weight: 500; color: var(--brand-red); }
@media (max-width: 600px) { .ce-multi { grid-template-columns: 1fr; } }

.ce-your-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; background: var(--grey-50); border-radius: var(--r-md); padding: var(--space-md); margin-top: var(--space-sm); }
.ce-your-details > div { display: flex; flex-direction: column; }
.ce-your-details span { font-size: 11px; color: var(--grey-500); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
.ce-your-details strong { font-size: 14px; color: var(--grey-900); }
@media (max-width: 600px) { .ce-your-details { grid-template-columns: 1fr; } }

.ce-submit-row { text-align: center; padding: var(--space-lg) 0 8px; }
.ce-submit-row .btn { min-width: 280px; }
.ce-submit-meta { margin: 12px 0 0; font-size: 12px; color: var(--grey-500); }

.ce-errors { background: #FFEEEC; border: 1px solid var(--brand-red); border-radius: var(--r-md); padding: var(--space-md) 20px; margin-bottom: var(--space-lg); color: var(--brand-red-dark); font-size: 14px; }
.ce-errors strong { display: block; margin-bottom: var(--space-sm); }
.ce-errors ul { margin: 0; padding-left: 20px; }
.ce-errors p { margin: var(--space-sm) 0 0; }
.ce-errors a { color: var(--brand-red-dark); font-weight: 500; }

.ce-success { max-width: 600px; margin: 0 auto; padding: 60px var(--space-xl); text-align: center; background: linear-gradient(135deg, #F5FBF8 0%, #EAF4EE 100%); border-radius: var(--r-lg); border: 1px solid #B5DCC4; }
.ce-success-icon { font-size: 56px; margin-bottom: 12px; line-height: 1; }
.ce-success h2 { font-family: var(--font-display); font-size: 28px; color: #1B4D38; margin: 0 0 var(--space-md); }
.ce-success p { color: var(--grey-700); font-size: 15px; line-height: 1.6; margin: 0 0 12px; }
.ce-success-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 500px) { .ce-success { padding: 40px 20px; } .ce-success h2 { font-size: 22px; } }

.ce-gate { max-width: 540px; margin: 0 auto; padding: 60px var(--space-xl); text-align: center; background: var(--grey-50); border-radius: var(--r-lg); border: 1px solid var(--grey-200); }
.ce-gate-icon { font-size: 48px; margin-bottom: var(--space-md); }
.ce-gate h2 { font-family: var(--font-display); font-size: 26px; margin: 0 0 var(--space-md); }
.ce-gate p { color: var(--grey-700); font-size: 14px; line-height: 1.6; margin: 0 0 12px; }
.ce-gate-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: var(--space-lg); }

/* My Reservations: enquiries section */
.my-enquiries { margin-top: var(--space-2xl); padding-top: var(--space-xl); border-top: 1px solid var(--grey-200); }
.my-enquiries-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: var(--space-md); gap: var(--space-md); flex-wrap: wrap; }
.my-enquiries-head h2 { margin: 0; font-size: 22px; font-family: var(--font-display); }
.my-enquiry-card { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); background: #FFFFFF; border: 1px solid var(--grey-200); border-radius: var(--r-md); padding: 14px 18px; margin-bottom: 10px; }
.my-enquiry-card-left { flex: 1; min-width: 0; }
.my-enquiry-id { font-size: 11px; color: var(--grey-500); text-transform: uppercase; letter-spacing: 0.05em; }
.my-enquiry-title { font-size: 14px; font-weight: 500; color: var(--grey-900); margin: 2px 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-enquiry-meta { font-size: 12px; color: var(--grey-500); }
.my-enquiry-status { display: inline-block; padding: 4px 10px; border-radius: 11px; font-size: 11px; font-weight: 600; color: #FFFFFF; white-space: nowrap; }
.my-enquiry-status { color: #FFFFFF !important; }

/* ═══════════════════════════════════════════════════════════════════════ */
/* HOMEPAGE FEATURED DEALS                                                   */
/* ═══════════════════════════════════════════════════════════════════════ */

.featured-deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  justify-items: start;
  align-items: stretch;
}
.featured-deals-grid > * { width: 100%; max-width: 400px; height: 100%; }

.featured-deal-card {
  background: var(--white);
  border: none;
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.03);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.featured-deal-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.08); }

.featured-deal-card-image { display: block; aspect-ratio: 4/3; background-size: cover; background-position: center; background-color: var(--grey-100); position: relative; }
/* Image overlay for better badge readability */
.featured-deal-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
}
.featured-deal-card-badges { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; z-index: 4; }
.featured-deal-card-fill-badge { display: inline-block; padding: 6px 14px; background: var(--brand-red); color: #FFFFFF; border-radius: 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; box-shadow: 0 2px 8px rgba(230,48,39,0.3); }

.featured-deal-card-body { padding: var(--space-lg) 24px 24px; display: flex; flex-direction: column; flex: 1; }
.featured-deal-card-supplier { font-size: 11px; color: var(--grey-500); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-bottom: 6px; }
.featured-deal-card-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--grey-900); margin: 0 0 4px; line-height: 1.3; }
.featured-deal-card-style { font-size: 12px; color: var(--grey-500); margin: 0 0 16px; line-height: 1.4; }

.featured-deal-card-fillbar { background: var(--grey-100); height: 8px; border-radius: 4px; overflow: hidden; margin-bottom: 6px; }
.featured-deal-card-fillbar-fg { background: var(--brand-red); height: 100%; border-radius: 4px; transition: width 0.3s ease; }
.featured-deal-card-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--grey-500); margin-bottom: 18px; }
.featured-deal-card-price { margin-bottom: 14px; }

.section-cta-row { text-align: center; margin-top: var(--space-xl); }

@media (max-width: 600px) {
  .featured-deals-grid { gap: var(--space-md); }
  .featured-deal-card-body { padding: 14px var(--space-md) var(--space-md); }
  .featured-deal-card-title { font-size: 16px; }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* UTILITY & ACCESSIBILITY                                                    */
/* ═══════════════════════════════════════════════════════════════════════ */

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 1px;
}

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

/* Card image: prevent layout shift */
.deal-card-image,
.product-card-image,
.ready-stock-card-image,
.supplier-card-image {
  background-color: var(--grey-100);
}

/* Index page: generic content article */
.impex-generic-article {
  margin-bottom: var(--space-2xl);
}
.impex-generic-article header {
  margin-bottom: var(--space-lg);
}
.impex-generic-article-header h1 {
  margin-top: 12px;
}
.impex-generic-article-body {
  font-size: 16px;
  line-height: 1.7;
}

/* Index page: narrow content container */
.impex-content-narrow {
  max-width: 800px;
}

/* Index page: 404 / empty state */
.impex-empty-msg {
  margin-top: var(--space-md);
  color: var(--grey-500);
}
.impex-empty-msg a {
  color: var(--brand-red);
}

/* Footer grid spacing on narrow */
@media (max-width: 480px) {
  .footer-grid { gap: var(--space-lg); }
  .footer h5 { margin-bottom: var(--space-sm); }
}

/* Supplier card image is a link — make it block-level */
.supplier-card-image {
  display: block;
}

/* Brand-red inline links (replaces inline style="color:var(--brand-red)") */
.link-brand-red {
  color: var(--brand-red);
  font-weight: 500;
}
.link-brand-red:hover {
  text-decoration: underline;
}

/* Footer WhatsApp row spacing */
.footer-whatsapp-row {
  margin-top: 10px;
}

/* Footer WhatsApp SVG alignment */
.footer-whatsapp-link svg {
  vertical-align: middle;
  margin-right: 6px;
}

/* Cart supplier name in header */
.cart-supplier-name {
  font-size: 13px;
  color: var(--grey-500);
}

/* Supplier page helpers (replaces inline styles) */
.impex-center {
  text-align: center;
  padding: 80px 24px;
}
.impex-center-heading {
  margin: 12px 0;
}
.impex-center-desc {
  color: var(--grey-500);
  margin-bottom: var(--space-lg);
}
.member-locked-register {
  margin-left: 12px;
}
.fill-bar-meta-eta {
  color: var(--grey-500);
}
.empty-state-compact {
  padding: 48px 32px;
}
.documents-register {
  margin-top: var(--space-md);
}

/* Product page: add-card overrides (transparent wrapper, no card style) */
.product-card.add-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
}
.product-card.add-card:hover {
  transform: none;
  box-shadow: none;
}

/* Product page: not-found state */
.impex-product-not-found {
  padding: 80px 24px;
}

/* Mobile polish */
@media (max-width: 600px) {
  .container-deals-page,
  .ready-stock-page { padding: var(--space-lg) var(--space-md) 48px; }
  .container-deals-page .deals-summary { gap: 20px; padding: 14px 18px; }
  .ready-stock-supplier { padding: 20px 0; }
  .ready-stock-supplier-head h3 { font-size: 20px; }
  .empty-state { padding: 48px 20px; }
  .empty-state h3 { font-size: 18px; }
}
/* ═══════════════════════════════════════════════════════════════════════════
 * v0.12.9 — MOBILE RESPONSIVENESS
 * The friend's v0.14.0 has partial mobile work — this completes it.
 *
 * Breakpoints used:
 *   ≤900px — tablets + large phones in landscape (hide desktop nav)
 *   ≤768px — tablets in portrait, phones in landscape
 *   ≤600px — phones in portrait (default mobile)
 *   ≤400px — small phones (iPhone SE, older Android)
 *
 * Touch target rule: interactive elements ≥44×44px (Apple HIG, WCAG 2.5.5).
 * ═══════════════════════════════════════════════════════════════════════════ */

/* ─── A. Mobile hamburger button + drawer ──────────────────────────────── */

/* v0.17.4: Mobile search icon button (between logo and hamburger) */
.mobile-search-toggle {
  display: none;  /* shown via media query below */
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  color: #1A1A1A;
  transition: background 0.15s;
}
.mobile-search-toggle:hover,
.mobile-search-toggle:focus-visible {
  background: rgba(0,0,0,0.05);
  outline: none;
}

/* Slide-down search strip below the topbar */
.mobile-search-bar {
  position: sticky;
  top: 102px;  /* account for announce-bar (~30px) + topbar (72px) */
  z-index: 99;
  background: #F8F7F5;
  border-bottom: 1px solid #E8E7E5;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.25s ease;
  padding: 0 0;
}
.mobile-search-bar.is-open {
  max-height: 70vh;
  opacity: 1;
  padding: 12px 0;
  overflow: visible;
}
.mobile-search-bar-inner { position: relative; }
.mobile-search-bar-field {
  position: relative;
  display: flex;
  align-items: center;
}
.mobile-search-bar-field .topbar-search-icon {
  position: absolute;
  left: 14px;
  color: #8A8784;
  pointer-events: none;
}
.mobile-search-bar-input {
  flex: 1;
  width: 100%;
  padding: 12px 44px 12px 42px;
  border-radius: 999px;
  border: 1px solid #D5D3D0;
  background: rgba(0,0,0,0.05);
  color: #fff;
  font-size: 16px;  /* 16px avoids iOS zoom-on-focus */
  font-family: var(--font-body);
}
.mobile-search-bar-input::placeholder { color: #4A4A4A; }
.mobile-search-bar-input:focus {
  outline: none;
  border-color: var(--brand-red);
  background: #FFFFFF;
}
.mobile-search-bar-close {
  position: absolute;
  right: 8px;
  width: 32px; height: 32px;
  border: 0; background: transparent;
  color: #1A1A1A;
  font-size: 24px; line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}
.mobile-search-bar-close:hover { background: rgba(0,0,0,0.06); color: #1A1A1A; }
.mobile-search-bar-results {
  display: none;
  margin-top: 10px;
  background: #fff;
  border-radius: var(--r-md, 12px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  overflow: hidden;
  max-height: 56vh; overflow-y: auto;
}
.mobile-search-bar-results.open { display: block; }

.mobile-menu-toggle {
  display: none;  /* shown via media query below */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 10px;
  margin: 0;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  transition: background 0.15s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible {
  background: rgba(0,0,0,0.05);
  outline: none;
}
.mobile-menu-icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #1A1A1A;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.mobile-menu-toggle.is-active .mobile-menu-icon-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle.is-active .mobile-menu-icon-bar:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.is-active .mobile-menu-icon-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Drawer overlay */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  visibility: hidden;
  pointer-events: none;
}
.mobile-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}
.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.2s ease;
}
.mobile-drawer.is-open .mobile-drawer-backdrop {
  background: rgba(0,0,0,0.5);
}
.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  height: 100dvh;  /* dynamic viewport — accounts for mobile browser chrome */
  width: 88vw;
  max-width: 360px;
  background: #F8F7F5;
  color: #1A1A1A;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 0;
  -webkit-overflow-scrolling: touch;
}
.mobile-drawer.is-open .mobile-drawer-panel {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #E8E7E5;
}
.mobile-drawer-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: #1A1A1A;
}
.mobile-drawer-close {
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: #1A1A1A;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
  padding: 0;
}
.mobile-drawer-close:hover,
.mobile-drawer-close:focus-visible {
  background: rgba(0,0,0,0.05);
  outline: none;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  flex: 1;
}
.mobile-drawer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  color: #1A1A1A;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid #E8E7E5;
  text-decoration: none;
  min-height: 56px;  /* touch target */
}
.mobile-drawer-links a:hover,
.mobile-drawer-links a:focus-visible {
  background: rgba(0,0,0,0.04);
  color: #1A1A1A;
  outline: none;
}
.mobile-drawer-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  background: var(--brand-red);
  color: var(--white);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px 28px;
  border-top: 1px solid #E8E7E5;
}
.mobile-drawer-actions .btn {
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  min-height: 48px;
}
.mobile-drawer-actions .btn-ghost-dark,
.mobile-drawer-actions a.btn-ghost-dark,
.mobile-drawer-actions a.btn-ghost-dark:link,
.mobile-drawer-actions a.btn-ghost-dark:visited,
.mobile-drawer-actions a.btn-ghost-dark:hover,
.mobile-drawer-actions a.btn-ghost-dark:active {
  background: rgba(0,0,0,0.04);
  color: #1A1A1A;
  border-color: #E8E7E5;
}
.mobile-drawer-actions .btn-ghost-dark:hover {
  background: rgba(0,0,0,0.05);
  border-color: #D5D3D0;
}

/* Lock body scroll when drawer is open */
body.mobile-drawer-locked {
  overflow: hidden;
}

/* Show hamburger + search icon + hide desktop topbar-actions on small screens */
@media (max-width: 900px) {
  .mobile-menu-toggle { display: flex; }
  .mobile-search-toggle { display: inline-flex; }  /* v0.17.4 */
  .topbar-nav { display: none; }
  .topbar-actions { display: none; }  /* hide the desktop buttons; drawer has them */
  .topbar-search { display: none; }   /* desktop search; mobile uses the strip */
  .topbar-inner { gap: 8px; }
  .topbar-logo { margin-right: auto; }
  .topbar-logo-text { display: block; font-size: 16px; }
  .topbar-logo-text small { display: block; }
}
/* v0.17.3: progressive tightening so the single row always fits cleanly.
   1080–1320px: drop the brand sub-line and shrink the search.
   below 1080px: also hide the wordmark text, leaving just the logo image. */
@media (max-width: 1320px) and (min-width: 901px) {
  .topbar-inner { gap: 18px; }
  .topbar-nav { gap: 20px; }
  .topbar-search.is-open,
  .topbar-search:focus-within { flex-basis: 218px; width: 218px; }
  .topbar-search.is-open .topbar-search-input,
  .topbar-search:focus-within .topbar-search-input { width: 168px; }
  .topbar-logo-text small { display: block; font-size: 8px; letter-spacing: 0.1em; }
}
@media (max-width: 1080px) and (min-width: 901px) {
  .topbar-inner { gap: 14px; }
  .topbar-nav { gap: 16px; }
  .topbar-nav a { font-size: 13px; }
  .topbar-search.is-open,
  .topbar-search:focus-within { flex-basis: 190px; width: 190px; }
  .topbar-search.is-open .topbar-search-input,
  .topbar-search:focus-within .topbar-search-input { width: 140px; }
  .topbar-logo-text { display: block; }
  .topbar-logo-name { display: none; }
  .topbar-logo-text small { display: block; font-size: 8px; letter-spacing: 0.08em; }
}

/* ─── B. Topbar logo: shorten + tighten on mobile ──────────────────────── */

@media (max-width: 600px) {
  .topbar-inner { height: 60px; }
  .topbar-logo-img { width: 32px; height: 32px; }
  .topbar-logo-text { font-size: 15px; line-height: 1.2; }
  .topbar-logo-text small { font-size: 10px; }
  .mobile-search-bar { top: 90px; }  /* account for announce-bar (~30px) + shorter topbar (60px) */
  .tab-nav-wrap { top: 90px; }       /* account for announce-bar (~30px) + shorter topbar (60px) */
}
@media (max-width: 400px) {
  /* Tiny screens — keep the red sub-label but shrink it so it still fits */
  .topbar-logo-text small { display: block; font-size: 8px; letter-spacing: 0.1em; }
}

/* ─── C. Hero (new structure with <br>s in headline) ───────────────────── */

@media (max-width: 768px) {
  .hero { padding: 28px 0 56px; }
  .hero h1 {
    font-size: clamp(28px, 7.5vw, 40px);
    line-height: 1.15;
  }
  /* Convert <br>s in the headline into natural wraps on mobile if too long */
  .hero h1 br { display: none; }
  .hero p { font-size: 16px; line-height: 1.6; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { padding: 12px 18px; font-size: 14px; min-height: 46px; }
  /* Full-width primary CTA on tiny screens for tap accuracy */
  .hero-actions .btn-primary { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ─── D. Hero stats: 2×2 grid on phones, with dividers hidden ──────────── */

@media (max-width: 600px) {
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .hero-stat { padding: 8px 0 !important; flex: none; text-align: left; }
  .hero-stat-number { font-size: 28px; }
  .hero-stat-label { font-size: 11px; }
}

/* ─── E. Container Programs filter tabs — horizontal scroll on mobile ──── */

@media (max-width: 768px) {
  .programs-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap !important;
    scrollbar-width: thin;
    padding-bottom: 4px;  /* breathing room for scrollbar */
  }
  .programs-tabs::-webkit-scrollbar { height: 4px; }
  .programs-tabs::-webkit-scrollbar-thumb { background: var(--grey-300); border-radius: 2px; }
  .programs-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* ─── F. Container cards: stack to 1-column on phones ──────────────────── */

@media (max-width: 540px) {
  .containers-grid {
    grid-template-columns: 1fr;
  }
  .containers-grid > * { max-width: 100%; }
  .container-card { padding: 18px; }
  .container-card-title { font-size: 17px; }
  .container-card-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .fill-bar-meta { flex-direction: column; gap: 4px; align-items: flex-start; font-size: 12px; }
}

/* ─── G. Featured deals + supplier cards: tighten on mobile ────────────── */

@media (max-width: 600px) {
  .featured-deals-grid,
  .suppliers-grid,
  .deals-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .featured-deals-grid > *,
  .suppliers-grid > *,
  .deals-grid > * {
    max-width: 100%;
  }
  .featured-deal-card-body,
  .deal-card-body,
  .supplier-card-body { padding: 16px 18px 18px; }
  .featured-deal-card-title,
  .supplier-card-body h3 { font-size: 16px; }
}

/* ─── H. Products grid on supplier page ────────────────────────────────── */

@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);  /* keep 2-column for product browsing */
    gap: 12px;
  }
  .product-card-body { padding: 12px; }
  .product-card-name { font-size: 13px; }
  .product-card-specs { font-size: 11px; }
}
@media (max-width: 400px) {
  .products-grid { grid-template-columns: 1fr; gap: 14px; }
  .product-card-body { padding: 14px; }
  .product-card-name { font-size: 14px; }
}

/* ─── I. Supplier page hero + tabs ─────────────────────────────────────── */

@media (max-width: 768px) {
  .supplier-hero { padding: 32px 0 24px; }
  .supplier-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .supplier-hero-name { font-size: 26px; }
  .supplier-hero-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tab-link {
    padding: 14px 16px;
    font-size: 13px;
    flex: 0 0 auto;  /* no shrink — let the scroll handle overflow */
  }
}

/* ─── J. Single product page ───────────────────────────────────────────── */

@media (max-width: 920px) {
  .product-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 28px;
  }
  .product-gallery { position: static; }
}
@media (max-width: 600px) {
  .product-main-image { aspect-ratio: 1 / 1; }
  .product-gallery-thumbs { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .product-title { font-size: 24px; }
  .product-cta-bar { flex-direction: column; gap: 12px; }
  .product-cta-bar .btn { width: 100%; min-height: 48px; }
  .product-quick-stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px 16px;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ─── K. Forms: register, login, custom enquiry ─────────────────────────── */

@media (max-width: 600px) {
  .form-row.two-col,
  .form-row-2col,
  .ce-multi,
  .ce-your-details {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  .impex-register-form,
  .impex-status-card,
  .impex-register-success {
    margin: 24px 16px 56px;
    padding: 24px 20px;
  }
  .form-field input,
  .form-field textarea,
  .form-field select {
    font-size: 16px;  /* prevents iOS zoom on focus */
    min-height: 44px;
  }
  .btn-lg { padding: 14px 20px; font-size: 15px; }
}

/* ─── L. Cart drawer ───────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .cart-drawer {
    width: 100vw !important;
    max-width: 100vw;
  }
  .cart-header { padding: 16px 18px; }
  .cart-header h3 { font-size: 16px; }
  .cart-body { padding: 16px 18px; }
  .cart-footer { padding: 14px 18px 18px; }
  .cart-toggle {
    bottom: 16px;
    right: 16px;
    padding: 14px 18px;
    font-size: 14px;
  }
}

/* ─── M. My Reservations — 8-stage tracker on mobile ──────────────────── */

@media (max-width: 768px) {
  .delivery-stage-tracker {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }
  .delivery-stage-track {
    min-width: 600px;  /* let it scroll horizontally on phones */
  }
  .my-reservation-card { padding: 18px; }
  .my-reservation-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ─── N. Container Programs / Ready Stock page intros ──────────────────── */

@media (max-width: 600px) {
  .container-deals-page,
  .ready-stock-page { padding: 24px 14px 48px; }
  .container-deals-page .deals-summary {
    grid-template-columns: 1fr 1fr;
    padding: 14px 16px;
    gap: 16px;
  }
  .ready-stock-supplier-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ─── O. CTA section split-layout on mobile ────────────────────────────── */

@media (max-width: 768px) {
  .cta-section-inner {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }
  .cta-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    justify-content: stretch !important;
  }
  .cta-stat-block { padding: 18px; }
  .cta-stat-number { font-size: 36px; }
}
@media (max-width: 480px) {
  .cta-right { grid-template-columns: 1fr; }
  .cta-left h2 { font-size: 28px; }
}

/* ─── P. Footer cleanup on mobile ──────────────────────────────────────── */

@media (max-width: 600px) {
  .footer { padding: 48px 0 32px; }
  .footer-grid { gap: 24px; }
  .footer-logo .topbar-logo-text { font-size: 16px; }
  .footer h5 { font-size: 13px; margin-bottom: 10px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
  }
}

/* ─── Q. Buttons + touch targets globally ──────────────────────────────── */

@media (max-width: 600px) {
  .btn { min-height: 44px; }
  .btn-sm { min-height: 38px; padding: 8px 14px; font-size: 13px; }
}

/* ─── R. Section headings / typography on small screens ────────────────── */

@media (max-width: 600px) {
  h2 { font-size: 24px; line-height: 1.2; }
  h3 { font-size: 20px; }
  .section-header { margin-bottom: 32px; }
  .section { padding: 48px 0; }
  .section-header p { font-size: 14px; }
}

/* ─── S. iPhone safe area + bottom inset for cart toggle ───────────────── */

@supports (padding: max(0px)) {
  @media (max-width: 600px) {
    .cart-toggle {
      bottom: max(16px, env(safe-area-inset-bottom));
    }
    .mobile-drawer-panel {
      padding-bottom: env(safe-area-inset-bottom);
    }
  }
}

/* ─── T. Container padding on small screens (universal) ────────────────── */

@media (max-width: 600px) {
  .container { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 380px) {
  .container { padding-left: 12px; padding-right: 12px; }
}

/* ─── U. Admin-only diagnostic + audit pages on mobile (just allow scroll) */

@media (max-width: 768px) {
  .ica-table,
  .widefat {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* ─── V. Quick utility — prevent horizontal overflow on body globally ──── */
html, body { overflow-x: hidden; max-width: 100vw; }
img, video, iframe { max-width: 100%; height: auto; }

/* ═══════════════════════════════════════════════════════════════════════════
 * v0.14.3 — UI changes
 * ═══════════════════════════════════════════════════════════════════════════ */

/* ─── WhatsApp button — official WhatsApp brand green (#25D366) ────────── */
.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  border: 1px solid #25D366;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
a.btn-whatsapp,
a.btn-whatsapp:link,
a.btn-whatsapp:visited,
a.btn-whatsapp:hover,
a.btn-whatsapp:active { color: #FFFFFF; }
.btn-whatsapp:hover {
  background: #1FAD52;
  border-color: #1FAD52;
}
.btn-whatsapp:focus-visible {
  outline: 2px solid #25D366;
  outline-offset: 2px;
}

/* ─── CTA stat blocks — restyled for neutral value-prop content ─────────── */
/* Replaces the old number-led blocks ("34 CBM", "30% Deposit") */
.cta-stat-block .cta-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--brand-red);
  color: var(--white);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-display);
  margin-bottom: 14px;
}
.cta-stat-block .cta-stat-title {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 6px;
  line-height: 1.3;
}
.cta-stat-block .cta-stat-desc {
  display: block;
  font-size: 13px;
  color: #4A4A4A;
  line-height: 1.55;
}
/* The old .cta-stat-number / .cta-stat-unit / .cta-stat-pct classes are no
   longer rendered after v0.14.3 — leaving their old rules in place is harmless. */

/* ═══════════════════════════════════════════════════════════════════════════
 * v0.14.4 — copy updates
 * ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Logo: all-caps variant + bumped letter-spacing ───────────────────── */
.topbar-logo-text--caps {
  letter-spacing: 0.04em;
  font-weight: 700;
}
.topbar-logo-text--caps small {
  letter-spacing: 0.1em;
  opacity: 0.8;
  font-weight: 500;
}

/* ─── How It Works page — new long-form layout ─────────────────────────── */
.hiw-content-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}
.hiw-section {
  position: relative;
  padding: 36px 0 28px;
  border-top: 1px solid var(--grey-200);
}
.hiw-section:first-child { border-top: none; padding-top: 8px; }
.hiw-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-red);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.hiw-section h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--grey-900);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.hiw-section h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--grey-900);
  margin: 20px 0 10px;
}
.hiw-section p {
  color: var(--grey-700);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 14px;
}
.hiw-section p:last-child { margin-bottom: 0; }
.hiw-section strong { color: var(--grey-900); font-weight: 600; }
.hiw-section a {
  color: var(--brand-red);
}
.hiw-section a.btn { text-decoration: none; }
.hiw-section a.btn-primary,
.hiw-section a.btn-primary:link,
.hiw-section a.btn-primary:visited,
.hiw-section a.btn-primary:hover,
.hiw-section a.btn-primary:active { color: var(--white); }

/* Important Notes callout */
.hiw-important-notes {
  margin: 56px 0 0;
  padding: 28px 32px;
  background: #FDF7E8;
  border-left: 4px solid #C47A1F;
  border-radius: 4px;
}
.hiw-important-notes h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: #7A4C12;
  margin: 0 0 12px;
}
.hiw-important-notes ul {
  margin: 0;
  padding-left: 18px;
  color: #5A3A0E;
}
.hiw-important-notes li {
  margin-bottom: 8px;
  line-height: 1.6;
  font-size: 14px;
}
.hiw-important-notes li:last-child { margin-bottom: 0; }

/* Final CTA */
.hiw-final-cta {
  margin: 56px 0 24px;
  padding: 40px 32px;
  background: #000;
  color: var(--white);
  border-radius: var(--r-lg);
  text-align: center;
}
.hiw-final-cta h2 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 10px;
}
.hiw-final-cta p {
  color: rgba(255,255,255,.78);
  font-size: 15px;
  margin: 0 0 22px;
}

@media (max-width: 600px) {
  .hiw-section { padding: 28px 0 22px; }
  .hiw-section h2 { font-size: 22px; }
  .hiw-important-notes { padding: 22px; margin-top: 40px; }
  .hiw-final-cta { padding: 28px 22px; }
  .hiw-final-cta h2 { font-size: 24px; }
}

/* v0.14.5: cart-item colour shown inline with product name */
.cart-item-colour-inline {
  color: var(--grey-500);
  font-weight: 400;
  font-size: 13px;
  margin-left: 4px;
}
/* Legacy .cart-item-colour rule kept for backwards compatibility but no
   longer rendered after v0.14.5 — colour is now inline with the name. */

/* v0.14.8: empty thumbs container hides itself so it doesn't leave whitespace
   when a product has only 1 image. JS populates it when a colour with a
   per-colour gallery is selected. */
.gallery-thumbs:empty { display: none; }

/* ═══════════════════════════════════════════════════════════════════════════
 * v0.14.9 — Product page About block with inline Materials + SKU
 * ═══════════════════════════════════════════════════════════════════════════ */

.product-about-block .product-about-meta {
  margin-top: 20px;
  padding-top: 0;
}
.product-meta-row {
  margin: 0;
  padding: 14px 0;
  font-size: 14px;
  color: var(--grey-700);
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.product-meta-label {
  font-weight: 600;
  color: var(--grey-900);
  letter-spacing: 0.02em;
  flex: 0 0 auto;
}
.product-meta-value {
  color: var(--grey-700);
  flex: 1 1 auto;
  min-width: 0;
  word-break: break-word;
}
.product-meta-divider {
  border: none;
  border-top: 1px solid var(--grey-200);
  margin: 0;
  height: 0;
}

/* ════════════════════════════════════════════════════════════════════════
 * v0.16.1 — CONTAINER BUILDER (all-in-one supplier-page reservation builder)
 * Product cards with inline steppers + sets badge, live fill panel,
 * payment schedule panel, submit bar. Brand red/black, matches the approved
 * mockup. Builds on the existing reservation engine (no backend change).
 * ════════════════════════════════════════════════════════════════════════ */

/* Card grid in builder mode */
.builder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.builder-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--r-lg);
  overflow: visible;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.builder-card.builder-card-active {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 1px var(--brand-red);
}
.builder-card.builder-card-moq-warn {
  border-color: #B57514;
  box-shadow: 0 0 0 1px #B57514;
}
/* Floating "X sets" badge, top-right, proud of the card edge */
.builder-card-badge {
  position: absolute;
  top: -10px;
  right: 14px;
  z-index: 2;
  background: var(--brand-red);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.builder-card .product-card-image {
  height: 150px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background-size: cover;
  background-position: center;
  background-color: var(--grey-100);
}
.builder-card .product-card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.builder-card .product-card-name { font-size: 15px; line-height: 1.25; margin: 0; }
.builder-card-sku { font-size: 11px; color: var(--grey-500); letter-spacing: 0.02em; }

.builder-card-priceline { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.builder-card-price { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--grey-900); }
.builder-card-per { font-size: 12px; color: var(--grey-500); font-family: var(--font-body); font-weight: 400; }
.builder-card-locked { font-size: 13px; color: var(--grey-500); font-family: var(--font-body); }
.builder-card-moq {
  font-size: 11px; font-weight: 600;
  color: var(--brand-red-dark);
  background: var(--brand-red-light);
  padding: 3px 9px; border-radius: 999px;
}

/* Per-card running total (red-tinted box) */
.builder-card-total {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--brand-red-light);
  color: var(--brand-red-dark);
  padding: 7px 11px; border-radius: var(--r-md);
  font-size: 12px; font-weight: 500;
}
.builder-card-total-val { font-weight: 700; }

/* Stepper */
.builder-stepper {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  border: 1px solid var(--grey-200);
  border-radius: var(--r-md);
  overflow: hidden;
}
.builder-step-btn {
  border: 0; background: var(--grey-50);
  font-size: 20px; line-height: 1; color: var(--grey-900);
  cursor: pointer; padding: 10px 0;
  transition: background 0.12s;
}
.builder-step-btn:hover { background: var(--brand-red-light); color: var(--brand-red-dark); }
.builder-step-input {
  border: 0; border-left: 1px solid var(--grey-200); border-right: 1px solid var(--grey-200);
  text-align: center; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; width: 100%;
}
.builder-step-input::-webkit-outer-spin-button,
.builder-step-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.builder-card-details { margin-top: 2px; }

/* ── Fill panel ── */
.builder-fill-panel {
  background: var(--grey-900);
  color: var(--white);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  margin-top: 32px;
}
.bfp-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.bfp-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.bfp-cap { font-size: 13px; color: var(--grey-200); font-variant-numeric: tabular-nums; }
.bfp-bar-wrap { position: relative; height: 14px; background: rgba(255,255,255,0.12); border-radius: 999px; overflow: hidden; }
/* v0.16.3: committed segment (already reserved by all buyers) sits behind the
   customer's own additions, which stack on top from the committed offset. */
.bfp-bar-committed { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: rgba(255,255,255,0.35); border-radius: 999px; transition: width 0.25s ease; }
/* v0.16.4: already-reserved fill shows green so it's clearly "secured" */
.bfp-bar-committed-reserved { background: #2D8A4F; }
.bfp-bar-fill { position: absolute; top: 0; height: 100%; width: 0; left: 0; background: var(--brand-red); border-radius: 999px; transition: width 0.25s ease, left 0.25s ease; }
.bfp-bar-fill.bfp-bar-met { background: #2D8A4F; }
.bfp-ticks { display: flex; justify-content: space-between; font-size: 11px; color: var(--grey-500); margin: 6px 2px 0; }
/* v0.16.6: emphasise the minimum-order tick — larger and white so it stands out */
.bfp-tick-min { font-size: 13px; font-weight: 600; color: #fff; }
.bfp-status {
  margin-top: 14px; padding: 12px 16px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 500; text-align: center;
}
.bfp-status-empty { background: rgba(255,255,255,0.06); color: var(--grey-200); }
.bfp-status-ok { background: rgba(45,138,79,0.18); color: #7BE0A0; }
.bfp-status-warn { background: rgba(230,48,39,0.18); color: #FF9C94; }
.bfp-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 16px; background: rgba(255,255,255,0.10); border-radius: var(--r-md); overflow: hidden; }
.bfp-met { background: var(--grey-900); padding: 14px; text-align: center; }
.bfp-met-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grey-500); margin-bottom: 5px; }
.bfp-met-val { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--white); }

/* ── Payment panel ── */
.builder-pay-panel { background: var(--grey-50); border: 1px solid var(--grey-200); border-radius: var(--r-lg); padding: 22px 24px; margin-top: 24px; }
.bpp-header { margin-bottom: 16px; }
.bpp-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--grey-900); }
.bpp-sub { font-size: 13px; color: var(--grey-500); margin-top: 2px; }
.bpp-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.bpp-tab {
  flex: 1; border: 1px solid var(--grey-200); background: var(--white);
  border-radius: var(--r-md); padding: 12px; font-size: 14px; font-weight: 500;
  color: var(--grey-700); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.bpp-tab.active { border-color: var(--brand-red); color: var(--brand-red-dark); background: var(--brand-red-light); }
.bpp-tab-badge { background: var(--brand-red); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.bpp-tab.active .bpp-tab-badge { background: var(--brand-red-dark); }
.bpp-body { padding: 4px 2px; }
.bpp-row-title { font-size: 15px; font-weight: 600; color: var(--grey-900); margin-bottom: 6px; }
.bpp-amount { color: var(--brand-red-dark); font-family: var(--font-display); margin-left: 8px; }
.bpp-row-desc { font-size: 13px; color: var(--grey-700); line-height: 1.55; margin: 0; }
.bpp-total { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--grey-200); margin-top: 16px; padding-top: 14px; font-weight: 600; color: var(--grey-900); }
.bpp-total-val { font-family: var(--font-display); font-size: 22px; color: var(--grey-900); }

/* ── Submit bar ── */
.builder-submit-bar { margin-top: 24px; }
.builder-submit-legal { font-size: 12px; color: var(--grey-500); line-height: 1.55; margin: 0 0 14px; }

@media (max-width: 600px) {
  .bfp-metrics { grid-template-columns: 1fr 1fr; }
  .builder-fill-panel, .builder-pay-panel { padding: 18px; }
}

/* ════════════════════════════════════════════════════════════════════════
 * v0.16.2 — Builder fixes: card colour line, image, note field, detail panel
 * ════════════════════════════════════════════════════════════════════════ */

/* Card colour line (above SKU) */
.builder-card-colour { font-size: 11px; color: var(--grey-700); font-weight: 500; }
.builder-card-sku { font-size: 11px; color: var(--grey-500); letter-spacing: 0.02em; }

/* Card image — fill the card width, centred, taller, cover */
.builder-card .product-card-image-link { display: block; width: 100%; }
.builder-card .product-card-image {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--grey-100);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

/* Note to seller */
.builder-note { margin-top: 24px; }
.builder-note-label { display: block; font-size: 14px; font-weight: 600; color: var(--grey-900); margin-bottom: 8px; }
.builder-note-optional { font-weight: 400; color: var(--grey-500); font-size: 12px; }
.builder-note-input {
  width: 100%;
  border: 1px solid var(--grey-200);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  resize: vertical;
}
.builder-note-input:focus { outline: none; border-color: var(--brand-red); }

/* ── Product detail slide-out panel ── */
.detail-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s;
  z-index: 9000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.detail-overlay.open { opacity: 1; visibility: visible; }
/* Keep the product popup below the WordPress admin bar while previewing as admin. */
body.admin-bar .detail-overlay { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .detail-overlay { top: 46px; }
}
.detail-panel {
  position: relative;
  width: min(760px, 100%);
  max-width: 100%;
  height: 86vh;
  height: min(760px, calc(100dvh - 48px));
  max-height: 100%;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 70px rgba(0,0,0,0.32);
  transform: translateY(14px) scale(0.98);
  opacity: 0;
  transition: transform 0.24s ease, opacity 0.2s ease;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.detail-overlay.open .detail-panel { transform: translateY(0) scale(1); opacity: 1; }
@media (max-width: 600px) {
  .detail-overlay { padding: 12px; }
  .detail-panel {
    width: 100%;
    height: calc(100dvh - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: var(--r-md);
  }
}
.detail-close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,0.9);
  font-size: 24px; line-height: 1; cursor: pointer; color: var(--grey-900);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
/* v0.17.0: gallery sits at the top and does NOT shrink; the body below it scrolls. */
.detail-gallery { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 45vh; background: var(--grey-100); overflow: hidden; flex: 0 0 auto; cursor: zoom-in; }
.detail-gallery-track { display: flex; height: 100%; transition: transform 0.3s ease; }
/* v0.17.0: contain (not cover) so the full product image is visible, not cropped. */
.detail-slide { flex: 0 0 100%; height: 100%; background-position: center; background-repeat: no-repeat; }
.detail-gallery-hint {
  position: absolute; bottom: 10px; right: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 999px;
  background: rgba(0,0,0,0.55); color: #fff;
  font-size: 11px; font-weight: 500; pointer-events: none;
}
.detail-gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,0.9); font-size: 24px; line-height: 1;
  cursor: pointer; color: var(--grey-900); z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.detail-gallery-prev { left: 12px; }
.detail-gallery-next { right: 12px; }
.detail-gallery-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; z-index: 2; }
.detail-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.55); cursor: pointer; padding: 0; }
.detail-dot.active { background: #fff; }
/* v0.17.0: body is the scrolling region inside the panel. */
.detail-body { padding: 24px; flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; }
html.detail-panel-locked,
body.detail-panel-locked { overflow: hidden; }
.detail-colour { font-size: 12px; color: var(--grey-700); font-weight: 500; }
.detail-sku { font-size: 12px; color: var(--grey-500); margin-top: 2px; }
.detail-name { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin: 8px 0 4px; color: var(--grey-900); }
.detail-style { font-size: 14px; color: var(--grey-500); margin-bottom: 14px; }
.detail-priceline { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.detail-price { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--grey-900); }
.detail-per { font-size: 14px; color: var(--grey-500); font-family: var(--font-body); font-weight: 400; }
.detail-moq { font-size: 12px; font-weight: 600; color: var(--brand-red-dark); background: var(--brand-red-light); padding: 4px 10px; border-radius: 999px; }
.detail-section { border-top: 1px solid var(--grey-100); padding-top: 16px; margin-top: 16px; }
.detail-section h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grey-500); margin: 0 0 8px; font-family: var(--font-body); }
.detail-desc { font-size: 14px; line-height: 1.65; color: var(--grey-700); }
.detail-desc p { margin: 0 0 10px; }
.detail-materials { font-size: 14px; line-height: 1.6; color: var(--grey-700); }

/* v0.17.0: full-screen image lightbox (expand gallery image to fit screen) */
.detail-lightbox {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.2s;
}
.detail-lightbox.open { opacity: 1; visibility: visible; }
.detail-lightbox-img {
  max-width: 94vw; max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.detail-lightbox-close {
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,0.15); color: #fff;
  font-size: 28px; line-height: 1; cursor: pointer;
}
.detail-lightbox-close:hover { background: rgba(255,255,255,0.28); }
.detail-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,0.15); color: #fff;
  font-size: 30px; line-height: 1; cursor: pointer; z-index: 2;
}
.detail-lightbox-nav:hover { background: rgba(255,255,255,0.28); }
.detail-lightbox-prev { left: 18px; }
.detail-lightbox-next { right: 18px; }
.detail-lightbox-counter {
  position: absolute; bottom: 22px; left: 0; right: 0; text-align: center;
  color: rgba(255,255,255,0.85); font-size: 13px; letter-spacing: 0.04em;
}

/* v0.16.4: image/name as buttons that open the detail sidebar (reset button chrome) */
.builder-card-image-btn, .builder-card-name-btn {
  display: block; width: 100%; text-align: left;
  background: none; border: 0; padding: 0; margin: 0; cursor: pointer; font: inherit; color: inherit;
}
.builder-card-image-btn { border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; }
.builder-card-image-btn .product-card-image { cursor: pointer; }
.builder-card-name-btn .product-card-name { cursor: pointer; }
.builder-card-name-btn:hover .product-card-name { color: var(--brand-red); }

/* v0.16.6: Container Programmes category search */
.programs-search { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: -12px 0 28px; }
.programs-search-label { font-size: 13px; color: var(--grey-500); font-weight: 500; margin-right: 4px; }
.programs-search-pill {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--grey-200); background: var(--white);
  font-size: 13px; font-weight: 500; color: var(--grey-700); text-decoration: none;
  transition: all 0.12s;
}
.programs-search-pill:hover { border-color: var(--brand-red); color: var(--brand-red-dark); }
.programs-search-pill.is-active { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }
.programs-search-clear { font-size: 12px; color: var(--grey-500); text-decoration: none; margin-left: 4px; }
.programs-search-clear:hover { color: var(--brand-red); }
.badge-match { background: var(--green-bg, #EAF4EE); color: var(--green, #2D6A4F); font-weight: 600; }

/* ─── v0.17.0: Terms & Conditions (members-only page + registration modal) ── */
.terms-page { max-width: 820px; margin: 0 auto; padding: 48px 0 64px; }
.terms-page-head { border-bottom: 2px solid var(--brand-red); padding-bottom: 20px; margin-bottom: 32px; }
.terms-page-head h1 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); color: var(--grey-900); margin: 0 0 8px; }
.terms-page-intro { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-red-dark); font-weight: 600; margin: 0; }
.terms-page-body { font-size: 15px; line-height: 1.7; color: var(--grey-800); }
.terms-page-body h2,
.terms-page-body h3 { font-family: var(--font-display); color: var(--grey-900); margin: 28px 0 10px; font-size: 19px; }
.terms-page-body p { margin: 0 0 14px; }
.terms-page-body ul { margin: 0 0 16px; padding-left: 22px; }
.terms-page-body li { margin-bottom: 6px; }
.terms-page-body a { color: var(--brand-red-dark); }

/* Guest gate */
.terms-gate { max-width: 560px; margin: 0 auto; padding: 64px 0; text-align: center; }
.terms-gate h2 { font-family: var(--font-display); color: var(--grey-900); margin: 0 0 16px; }
.terms-gate-lead { font-size: 16px; color: var(--grey-800); margin: 0 0 8px; }
.terms-gate p { color: var(--grey-600); }
.terms-gate-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* Registration: inline T&C link button (looks like a link, not a button) */
.impex-terms-link {
  background: none; border: 0; padding: 0; margin: 0;
  color: var(--brand-red-dark); font: inherit; cursor: pointer;
  text-decoration: underline;
}
.impex-terms-link:hover { color: var(--brand-red); }

/* Registration: T&C modal */
.impex-terms-modal {
  position: fixed; inset: 0; z-index: 10000;
  display: none; align-items: center; justify-content: center;
}
.impex-terms-modal.open { display: flex; }
.impex-terms-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.impex-terms-modal-panel {
  position: relative;
  width: min(720px, 94vw); max-height: 88vh;
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--r-md, 12px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  overflow: hidden;
}
.impex-terms-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--grey-200);
  flex: 0 0 auto;
}
.impex-terms-modal-head h3 { margin: 0; font-family: var(--font-display); font-size: 18px; color: var(--grey-900); }
.impex-terms-modal-close {
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: var(--grey-100); font-size: 22px; line-height: 1; cursor: pointer; color: var(--grey-700);
}
.impex-terms-modal-close:hover { background: var(--grey-200); }
.impex-terms-modal-body {
  flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 22px; font-size: 14px; line-height: 1.65; color: var(--grey-800);
}
.impex-terms-modal-body h2,
.impex-terms-modal-body h3 { font-family: var(--font-display); color: var(--grey-900); margin: 22px 0 8px; font-size: 16px; }
.impex-terms-modal-body p { margin: 0 0 12px; }
.impex-terms-modal-body ul { margin: 0 0 14px; padding-left: 20px; }
.impex-terms-modal-foot {
  flex: 0 0 auto; padding: 16px 22px; border-top: 1px solid var(--grey-200);
  display: flex; justify-content: flex-end;
}

/* ─── v0.18.0: Product availability tag (Live / Coming Soon) ─────────────── */
.product-availability-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  pointer-events: none;
}
.product-availability-tag.tag-coming-soon {
  background: var(--brand-red);
  color: #fff;
}
.product-availability-tag.tag-live {
  background: var(--brand-red);
  color: #fff;
}
.product-availability-tag.tag-contact-price {
  background: var(--grey-900, #1a1a1a);
  color: #fff;
}
.product-availability-tag .tag-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 2px rgba(52,211,153,0.35);
  display: inline-block;
}
/* v0.19.4: no-price text on cards for Coming Soon / Contact for Price */
.builder-card-noprice {
  font-size: 13px;
  font-weight: 600;
  color: var(--grey-600, #666);
  font-family: var(--font-body);
}

/* v0.18.0: reserve page back row */
.reserve-back-row {
  margin: 0 0 18px;
}

/* ─── v0.18.1: Registration Terms & Conditions modal ────────────────────── */
.impex-terms-modal-box { max-width: 720px; max-height: 88vh; display: flex; flex-direction: column; }
.impex-terms-modal-body {
  overflow-y: auto;
  flex: 1 1 auto;
  padding-right: 8px;
  margin: 4px 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--grey-700);
}
.impex-terms-modal-body h3 { font-size: 16px; margin: 20px 0 8px; color: var(--brand-black); }
.impex-terms-modal-body p { margin: 0 0 12px; }
.impex-terms-modal-body ul { margin: 0 0 12px 18px; }
.impex-terms-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--grey-100);
  padding-top: 16px;
  flex: 0 0 auto;
}
.impex-terms-open { color: var(--brand-red); font-weight: 600; text-decoration: underline; cursor: pointer; }

/* ─── v0.18.1: Buyer dashboard / profile page ───────────────────────────── */
.impex-dashboard { max-width: 760px; margin: 0 auto; padding: 8px 0 48px; }
.dash-header { margin-bottom: 24px; }
.dash-header h2 { font-family: var(--font-display); font-size: 28px; margin: 0 0 6px; }
.dash-header p { color: var(--grey-700); margin: 0; }
.dash-header a { color: var(--brand-red); font-weight: 600; }

.dash-notice { padding: 12px 16px; border-radius: var(--r-md); margin-bottom: 20px; font-size: 14px; font-weight: 500; }
.dash-notice-ok { background: var(--green-bg); color: var(--green-text); border: 1px solid #BFE3CD; }
.dash-notice-err { background: var(--brand-red-light); color: var(--brand-red-dark); border: 1px solid #F5C6C2; }

.dash-card { background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--r-lg); padding: var(--space-lg); margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.dash-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.dash-card-head h3 { font-family: var(--font-display); font-size: 20px; margin: 0; }

.dash-res-overview { display: flex; gap: 16px; flex-wrap: wrap; }
.dash-res-stat { flex: 1 1 120px; background: #FAFAFA; border: 1px solid var(--grey-100); border-radius: var(--r-md); padding: 16px; text-align: center; }
.dash-res-num { display: block; font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--brand-red); line-height: 1; }
.dash-res-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--grey-600); margin-top: 6px; }
.dash-muted { color: var(--grey-600); font-size: 14px; margin: 14px 0 0; }
.dash-muted a { color: var(--brand-red); font-weight: 600; }

.dash-form-subtitle { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--grey-500); margin: 22px 0 12px; font-weight: 600; }
.dash-form-subtitle:first-child { margin-top: 0; }
.dash-field { margin-bottom: 14px; display: flex; flex-direction: column; }
.dash-field label { font-size: 13px; font-weight: 600; color: var(--grey-700); margin-bottom: 6px; }
.dash-field input { padding: 10px 12px; border: 1px solid var(--grey-300); border-radius: var(--r-md); font-size: 14px; font-family: inherit; }
.dash-field input:focus { outline: none; border-color: var(--brand-red); box-shadow: 0 0 0 3px var(--brand-red-light); }
.dash-field input:disabled { background: var(--grey-100); color: var(--grey-500); }
.dash-hint { font-size: 12px; color: var(--grey-500); margin-top: 5px; }
.dash-grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .dash-grid.two { grid-template-columns: 1fr; } }

.dash-readonly { display: flex; flex-direction: column; gap: 10px; background: #FAFAFA; border: 1px solid var(--grey-100); border-radius: var(--r-md); padding: 14px 16px; }
.dash-readonly > div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.dash-ro-label { color: var(--grey-600); }

.dash-form-actions { margin-top: 18px; }
.dash-signout-row { text-align: center; margin-top: 8px; }

/* v0.18.5: dashboard danger zone (account deletion) */
.dash-danger { border: 1px solid #f3c2bd; background: #fdf5f4; }
.dash-danger .dash-card-head h3 { color: var(--brand-red-dark); }
.dash-btn-danger {
  background: var(--brand-red);
  color: #fff;
  border: none;
}
.dash-btn-danger:hover { background: var(--brand-red-dark); }

/* Ready Stock order history */
.rs-history-page { max-width: 960px; margin: var(--space-xl) auto var(--space-4xl); padding: 0 20px; }
.rs-history-card { margin-bottom: 18px; }
.rs-history-lines { border-top: 1px solid var(--grey-100); margin-top: 14px; padding-top: 8px; }
.rs-history-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--grey-100); font-size: 14px; color: var(--grey-700); }
.rs-history-line strong { color: var(--grey-900); white-space: nowrap; }
.rs-history-total { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--grey-200); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--grey-500); }
.rs-history-total strong { font-family: var(--font-display); font-size: 22px; letter-spacing: 0; text-transform: none; color: var(--grey-900); white-space: nowrap; }

/* v0.18.5: global confirmation notice (e.g. account deleted) */
.impex-global-notice {
  background: var(--green-bg, #EAF4EE);
  color: var(--green-text, #1B4D38);
  text-align: center;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid #BFE3CD;
}

/* ─── v0.19.0: card image carousel (swipeable product gallery) ─────────── */
.impex-card-carousel {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background-color: var(--grey-100);
}
.impex-card-carousel-track {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  cursor: grab;
}
.impex-card-carousel-track:active { cursor: grabbing; }
.impex-card-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background-size: cover;
  background-position: center;
  display: block;
}
.impex-card-slide-empty { background-color: var(--grey-200); }
.impex-card-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--brand-black);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  z-index: 3;
}
.impex-card-carousel:hover .impex-card-carousel-btn { opacity: 1; }
.impex-card-carousel-btn:hover { background: #fff; }
.impex-card-carousel-btn.prev { left: 10px; }
.impex-card-carousel-btn.next { right: 10px; }
.impex-card-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 3;
}
.impex-card-carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255,255,255,0.55);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.impex-card-carousel-dot.active { background: #fff; width: 18px; border-radius: 4px; }
@media (hover: none) {
  .impex-card-carousel-btn { opacity: 1; background: rgba(255,255,255,0.8); }
}

/* In-production-but-still-accepting tag — red box, white text */
.badge-inprod-open {
  display: inline-block;
  background: var(--brand-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

/* v0.19.6: homepage "Browse all suppliers" button + browse suppliers page */
.suppliers-browse-all { text-align: center; margin-top: 32px; }
.browse-suppliers-page .suppliers-grid { margin-top: 8px; }

/* v0.19.7: delivery estimate / completed notice bar below the tracker */
.delivery-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  line-height: 1.4;
}
.delivery-notice-icon { font-size: 16px; flex-shrink: 0; }
.delivery-notice-eta {
  background: #FDECEA;
  color: #B3261E;
  border: 1px solid #F5C5C0;
}
.delivery-notice-eta strong { color: #B3261E; font-weight: 700; }
.delivery-notice-done {
  background: #EAF4EE;
  color: #1B6B3A;
  border: 1px solid #BFE3CD;
}
.delivery-notice-done .delivery-notice-icon { color: #1B6B3A; font-weight: 700; }

/* ─── v0.19.9: Estimated pricing content + notices ─── */

/* How It Works — About This Platform intro block */
.hiw-about { border-top: none; padding-top: 0; }
.hiw-about h2 { font-size: 26px; margin-bottom: 16px; }
.hiw-about p { margin-bottom: 14px; }
.hiw-about em { font-style: italic; color: var(--brand-red); font-weight: 600; }

/* Product card — Estimated UK Delivered Price label + info tooltip */
.builder-card-est {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--grey-500);
  margin: 2px 0 10px;
  letter-spacing: 0.02em;
}
.est-info {
  position: relative;
  display: inline-flex;
  cursor: help;
}
.est-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--grey-300);
  color: #fff;
  font-size: 10px;
  font-style: italic;
  font-weight: 700;
  font-family: Georgia, serif;
  line-height: 1;
}
.est-info-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  background: var(--grey-900, #1a1a1a);
  color: #fff;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: 0;
  padding: 10px 12px;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 30;
  text-align: left;
  pointer-events: none;
}
.est-info-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--grey-900, #1a1a1a);
}
.est-info:hover .est-info-tip,
.est-info:focus .est-info-tip,
.est-info:focus-within .est-info-tip {
  opacity: 1;
  visibility: visible;
}

/* Reserve page — pricing disclaimer above submit button */
.builder-price-disclaimer {
  background: #FDECEA;
  border: 1.5px solid var(--brand-red);
  border-radius: var(--r-md);
  padding: 14px 16px 16px;
  margin-top: 20px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--grey-700);
}
.builder-price-disclaimer-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 10px;
}
.builder-price-disclaimer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.builder-price-disclaimer p { margin: 0 0 8px; }
.builder-price-disclaimer p:last-child { margin-bottom: 0; font-weight: 600; color: var(--grey-800); }

/* v0.19.10: "No Obligation to Buy" sub-label on the reserve button */
.builder-submit-noob {
  font-weight: 600;
  font-size: 0.82em;
  opacity: 0.9;
  white-space: nowrap;
}

/* v0.19.12: Factory Promotion tag — top-right of the image, matching the
   availability tag styling (which sits top-left, so no overlap). */
.product-card-image-link, .builder-card-image-btn { position: relative; }
.factory-promo-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  background: var(--brand-red);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  pointer-events: none;
}

/* v0.19.13: How It Works — Estimated Prices sub-heading spacing */
.hiw-about-subh { margin-top: 28px; font-size: 26px; }

/* Announcement bar — visible on all pages */
.announce-bar {
  background: var(--brand-black);
  color: rgba(255, 255, 255, 0.66);
  padding: 10px 40px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}
.announce-bar p {
  margin: 0;
}
.announce-bar strong {
  color: #fff;
  font-weight: 600;
}
.announce-bar .rd {
  color: var(--brand-red);
}

/* v0.19.14: homepage launch announcement — slim strip at the very top */
.launch-strip {
  background: var(--brand-red);
  color: #fff;
  padding: 10px 16px;
  text-align: center;
}
.launch-strip-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #fff;
  white-space: nowrap;
}
.launch-strip-text strong { font-weight: 700; }
@media (max-width: 900px) {
  .launch-strip-text { font-size: 12.5px; }
}
@media (max-width: 680px) {
  /* Too narrow to keep on one line — allow a clean wrap instead of shrinking further */
  .launch-strip-text { white-space: normal; font-size: 12px; }
}

/* ─── v0.20.1: Homepage banner carousel (below hero eyebrow) ─── */
.hero-banner-section { padding-top: 32px; }
.hero-banner-carousel {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--grey-100);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.hero-banner-track {
  position: relative;
  width: 100%;
  /* Thinner, wider letterbox — slim strip rather than a tall block. */
  aspect-ratio: 1600 / 400;
  height: auto;
  max-height: 440px;
}
.hero-banner-slide {
  position: absolute;
  inset: 0;               /* every slide fills the fixed track area */
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.hero-banner-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  /* stays absolutely positioned — does NOT become relative, so a large image
     can never push the container taller than the fixed aspect ratio. */
}
.hero-banner-slide img,
.hero-banner-link { display: block; width: 100%; height: 100%; }
.hero-banner-slide img { object-fit: cover; object-position: center; }

/* Arrows */
.hero-banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 40px;
  border: none;
  background: none;
  color: #1A1A1A;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-shadow: 0 1px 3px rgba(255,255,255,0.6);
  transition: opacity 0.15s, transform 0.15s;
  opacity: 0.7;
  z-index: 3;
}
.hero-banner-arrow:hover { opacity: 1; background: none; }
.hero-banner-prev { left: 6px; }
.hero-banner-next { right: 6px; }

/* Dots */
.hero-banner-dots {
  position: absolute;
  bottom: 12px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}
.hero-banner-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.55);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, transform 0.15s;
}
.hero-banner-dot.is-active { background: #fff; transform: scale(1.25); }

@media (max-width: 640px) {
  .hero-banner-section { padding-top: 22px; }
  .hero-banner-arrow { width: 22px; height: 32px; font-size: 26px; }
  .hero-banner-prev { left: 4px; }
  .hero-banner-next { right: 4px; }
}

/* v0.20.2: placeholder banner admin note (only shown to logged-in admins) */
.hero-banner-placeholder-note {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 4;
  background: rgba(26,26,26,0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 10px;
  border-radius: 6px;
  pointer-events: none;
}

/* v0.20.3: CSS-drawn placeholder banner slides (no image, never breaks) */
.hero-banner-placeholder {
  display: flex;
  align-items: center;
}
.hero-banner-ph-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 4%;
  max-width: 88%;
}
.hero-banner-ph-eyebrow {
  font-family: var(--font-display);
  font-size: clamp(13px, 1.4vw, 20px);
  letter-spacing: 0.14em;
  color: var(--brand-red);
}
.hero-banner-ph-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3.2vw, 44px);
  line-height: 1.05;
  color: #1A1A1A;
}
.hero-banner-ph-sub {
  font-size: clamp(13px, 1.4vw, 20px);
  color: #5a5a5a;
  line-height: 1.4;
}

/* v0.20.11: logged-out featured-deal card — product count sits alone, tidy spacing */
.featured-deal-card-meta-solo { justify-content: flex-start; margin-top: 4px; margin-bottom: 18px; }
.featured-deal-card-meta-solo span { font-weight: 600; color: var(--grey-700); }

/* v0.20.12: keep featured-deal card buttons aligned across the row regardless
   of how many lines the category text takes. The bottom block (fill/meta +
   button) sticks to the bottom of each equal-height card. */
.featured-deal-card-fillbar { margin-top: auto; }
.featured-deal-card-meta-solo { margin-top: auto; }

/* v0.21.3: Ready Stock — estimated collection price label */
.ready-stock-est-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--grey-500);
  margin: 2px 0 10px;
  letter-spacing: 0.02em;
}

/* ─── v0.21.6: Ready Stock ordering ─── */
.rs-add-box {
  border: 1px solid var(--grey-200);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  background: #fff;
  margin: 6px 0 4px;
}
.rs-add-head { display: flex; flex-direction: column; gap: 3px; margin-bottom: 14px; }
.rs-add-title { font-weight: 700; font-size: 15px; color: var(--grey-900); }
.rs-add-sub { font-size: 13px; color: var(--grey-500); }
.rs-add-row { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.rs-add-row .btn { flex: 1 1 200px; }
.rs-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--grey-300);
  border-radius: var(--r-md);
  overflow: hidden;
  flex: 0 0 auto;
}
.rs-stepper button {
  width: 42px;
  background: var(--grey-50);
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--grey-800);
}
.rs-stepper button:hover { background: var(--grey-100); }
.rs-stepper input {
  width: 68px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--grey-200);
  border-right: 1px solid var(--grey-200);
  font-size: 15px;
  font-weight: 600;
  -moz-appearance: textfield;
}
.rs-stepper input::-webkit-outer-spin-button,
.rs-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rs-add-meta { font-size: 12px; color: var(--grey-500); margin: 12px 0 0; }
.rs-msg { font-size: 13px; margin: 10px 0 0; }
.rs-msg-ok { color: #1B6B3A; }
.rs-msg-error { color: #B3261E; }

/* Order page */
.rs-order-page { max-width: 860px; margin: 0 auto; }
.rs-order-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 22px; }
.rs-order-table th {
  text-align: left; padding: 10px 8px;
  border-bottom: 2px solid var(--grey-900);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grey-500);
}
.rs-order-table td { padding: 14px 8px; border-bottom: 1px solid var(--grey-100); vertical-align: middle; }
.rs-sku { font-size: 12px; color: var(--grey-500); }
.rs-line-qty {
  width: 76px; padding: 7px 8px;
  border: 1px solid var(--grey-300); border-radius: var(--r-sm);
  text-align: center; font-weight: 600;
}
.rs-remove {
  background: none; border: none; font-size: 20px;
  color: var(--grey-400); cursor: pointer; line-height: 1;
}
.rs-remove:hover { color: var(--brand-red); }
.rs-total-label { text-align: right; font-weight: 700; }
.rs-total-value { text-align: right; font-weight: 700; font-size: 18px; font-family: var(--font-display); }
.rs-note-wrap { margin-bottom: 18px; }
.rs-note-wrap label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.rs-note-wrap textarea {
  width: 100%; padding: 11px 13px;
  border: 1px solid var(--grey-300); border-radius: var(--r-md);
  font-family: inherit; font-size: 14px; resize: vertical;
}
.rs-done { text-align: center; padding: 40px 20px; }
.rs-done h2 { margin-bottom: 12px; }
.rs-done p { max-width: 520px; margin: 0 auto 14px; color: var(--grey-600); }
@media (max-width: 600px) {
  .rs-order-table th:nth-child(3), .rs-order-table td:nth-child(3) { display: none; }
}

/* v0.21.14: align the normal theme header with the self-contained homepage mast.
   The markup stays in header.php so the AJAX product search continues to work. */
.announce-bar {
  background: var(--brand-black);
  color: rgba(255,255,255,0.66);
}
.announce-bar p {
  margin: 0;
  padding: 10px 40px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}
.announce-bar strong { color: #fff; font-weight: 600; }
.announce-bar .rd { color: var(--brand-red); }

.topbar {
  background: rgba(248,247,245,0.9);
  color: var(--grey-900);
  border-bottom: 1px solid var(--grey-200);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.topbar .topbar-inner {
  max-width: 1320px;
  height: 82px;
  padding: 0 40px;
  gap: 28px;
}
.topbar .topbar-logo {
  gap: 12px;
  min-width: 0;
}
.topbar .topbar-logo-img {
  height: 42px;
  width: auto;
}
.topbar .topbar-logo-text {
  display: block;
  min-width: 0;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.15;
  letter-spacing: 0.05em;
}
.topbar .topbar-logo-name {
  display: block;
}
.topbar .topbar-logo-text small {
  display: block;
  color: var(--brand-red);
  font-size: 9px;
  letter-spacing: 0.16em;
  font-weight: 500;
  opacity: 0.85;
}
.topbar .topbar-nav {
  gap: 30px;
}
.topbar .topbar-nav a {
  position: relative;
  padding: 4px 0;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-700);
  transition: color 0.2s ease;
}
.topbar .topbar-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--brand-red);
  transition: width 0.3s ease;
}
.topbar .topbar-nav a:hover {
  color: var(--grey-900);
}
.topbar .topbar-nav a:hover::after {
  width: 100%;
}
.topbar .topbar-nav-count {
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  margin-left: 6px;
  border-radius: 9px;
  font-size: 9.5px;
}
.topbar .topbar-search-input {
  height: 40px;
  border-radius: var(--r-md);
  background: var(--white);
  font-size: 13px;
}
.topbar .topbar-search-results {
  top: calc(100% + 12px);
  border: 1px solid var(--grey-100);
  box-shadow: 0 18px 42px rgba(12,12,14,0.18);
}
.topbar .topbar-search:not(.is-open):not(:focus-within) {
  flex-basis: 44px;
  width: 44px;
}
.topbar .topbar-search:not(.is-open):not(:focus-within) .topbar-search-field {
  gap: 0;
}
.topbar .topbar-search:not(.is-open):not(:focus-within) .topbar-search-input {
  width: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  opacity: 0;
  border-color: transparent;
  pointer-events: none;
}
.topbar .topbar-actions {
  gap: 12px;
}
.topbar .topbar-actions .btn {
  min-height: 40px;
  padding: 9px 20px;
  border-radius: var(--r-md);
  font-size: 13px;
}
.topbar .btn-ghost-light {
  background: transparent;
  color: var(--grey-900);
  border-color: var(--grey-200);
}
.topbar .btn-ghost-light:hover {
  background: var(--brand-black);
  border-color: var(--brand-black);
  color: #fff;
}
.mobile-search-bar {
  top: 112px;
  background: rgba(248,247,245,0.96);
}
.mobile-search-bar-input {
  color: var(--grey-900);
  background: var(--white);
}

@media (max-width: 1320px) and (min-width: 901px) {
  .topbar .topbar-inner { gap: 18px; }
  .topbar .topbar-nav { gap: 20px; }
  .topbar-search.is-open,
  .topbar-search:focus-within { flex-basis: 218px; width: 218px; }
  .topbar-search.is-open .topbar-search-input,
  .topbar-search:focus-within .topbar-search-input { width: 168px; }
  .topbar .topbar-logo-text small { display: block; font-size: 8px; letter-spacing: 0.1em; }
}
@media (max-width: 1080px) and (min-width: 901px) {
  .topbar .topbar-inner { gap: 14px; }
  .topbar .topbar-logo-img { height: 34px; }
  .topbar .topbar-nav { gap: 12px; }
  .topbar .topbar-nav a { font-size: 11.5px; }
  .topbar-search.is-open,
  .topbar-search:focus-within { flex-basis: 190px; width: 190px; }
  .topbar-search.is-open .topbar-search-input,
  .topbar-search:focus-within .topbar-search-input { width: 140px; }
  .topbar .topbar-actions { gap: 6px; }
  .topbar .topbar-actions .btn { padding: 8px 10px; font-size: 12px; }
  .topbar .topbar-logo-text { display: block; }
  .topbar .topbar-logo-name { display: none; }
  .topbar .topbar-logo-text small { display: block; font-size: 8px; letter-spacing: 0.08em; }
}
@media (max-width: 900px) {
  .topbar .topbar-inner {
    height: 82px;
    padding: 0 24px;
    gap: 8px;
  }
}
@media (max-width: 600px) {
  .topbar .topbar-inner { height: 72px; }
  .topbar .topbar-logo-img { width: auto; height: 38px; }
  .topbar .topbar-logo-text { font-size: 14px; line-height: 1.15; }
  .topbar .topbar-logo-text small { font-size: 8px; letter-spacing: 0.12em; }
  .mobile-search-bar { top: 102px; }
  .tab-nav-wrap { top: 102px; }
}
@media (max-width: 400px) {
  .topbar .topbar-inner { padding: 0 12px; }
  .topbar .topbar-logo { gap: 8px; }
  .topbar .topbar-logo-img { height: 32px; }
  .topbar .topbar-logo-text { display: block; font-size: 12px; line-height: 1.05; }
  .topbar .topbar-logo-name { display: none; }
  .topbar .topbar-logo-text small { display: block; font-size: 7.5px; letter-spacing: 0.06em; }
  .mobile-search-toggle,
  .mobile-menu-toggle { width: 38px; height: 38px; }
}

/* Keep the complete logo text visible when laptop zoom narrows the layout. */
@media (max-width: 1100px) {
  .mobile-menu-toggle { display: flex; }
  .mobile-search-toggle { display: inline-flex; }
  .topbar .topbar-nav,
  .topbar .topbar-actions,
  .topbar .topbar-search { display: none; }
  .topbar .topbar-inner { gap: 8px; }
  .topbar .topbar-logo {
    margin-right: auto;
    max-width: calc(100% - 92px);
    min-width: 0;
  }
  .topbar .topbar-logo-text {
    display: block;
    min-width: 0;
    font-size: 12px;
    line-height: 1.08;
    letter-spacing: 0.03em;
    white-space: normal;
  }
  .topbar .topbar-logo-name {
    display: block;
    white-space: nowrap;
  }
  .topbar .topbar-logo-text small.topbar-logo-subtitle {
    display: block !important;
    color: var(--brand-red);
    font-size: 7.5px;
    letter-spacing: 0.06em;
    line-height: 1.2;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .topbar .topbar-inner { padding: 0 10px; }
  .topbar .topbar-logo { gap: 7px; }
  .topbar .topbar-logo-img { height: 30px; }
  .topbar .topbar-logo-text { font-size: 10px; letter-spacing: 0.02em; }
  .topbar .topbar-logo-text small.topbar-logo-subtitle { font-size: 6.8px; letter-spacing: 0.04em; }
  .mobile-search-toggle,
  .mobile-menu-toggle { width: 34px; height: 34px; }
}

/* v0.21.17: Product search results page */
.search-page-hero {
  border-bottom: 1px solid var(--brand-red);
}
.search-products-page.section {
  padding: 30px;
  position: relative;
}
.search-products-page.section::before {
  display: none;
}
.search-products-page {
  background: var(--grey-50);
}
.search-products-form {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--r-lg);
  padding: 18px;
  margin-bottom: 26px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.search-products-form label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 10px;
}
.search-products-form-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-products-form-row input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border: 1px solid var(--grey-200);
  border-radius: var(--r-md);
  padding: 0 14px;
  font: inherit;
  color: var(--grey-900);
  background: var(--white);
}
.search-products-form-row input:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px var(--brand-red-light);
}
.search-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.search-product-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.search-product-card:hover {
  transform: translateY(-4px);
  border-color: var(--grey-300);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.search-product-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--grey-100) center/cover no-repeat;
}
.search-product-type {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--brand-red);
  color: var(--white);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.search-product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.search-product-supplier {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-red);
}
.search-product-title {
  color: var(--grey-900);
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  min-height: 38px;
}
.search-product-title:hover {
  color: var(--brand-red);
}
.search-product-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 34px;
  font-size: 12px;
  color: var(--grey-500);
}
.search-product-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--grey-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.search-product-price {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--grey-900);
  white-space: nowrap;
}
.search-product-price small {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--grey-500);
}
.search-products-empty {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--r-lg);
  padding: 36px;
  text-align: center;
}
.search-products-empty h2 {
  font-family: var(--font-display);
  font-size: 30px;
  margin-bottom: 10px;
}
.search-products-empty p {
  color: var(--grey-500);
  margin-bottom: 18px;
}
@media (max-width: 640px) {
  .search-products-form-row {
    flex-direction: column;
    align-items: stretch;
  }
  .search-products-form-row .btn {
    width: 100%;
    justify-content: center;
  }
  .search-products-grid {
    grid-template-columns: 1fr;
  }
  .search-product-foot {
    align-items: stretch;
    flex-direction: column;
  }
  .search-product-foot .btn {
    width: 100%;
    justify-content: center;
  }
}

/* v0.21.19: polished shared mobile drawer search */
.mobile-drawer-search {
  position: relative;
  padding: 16px 12px;
  border-bottom: 1px solid #E8E7E5;
}
.mobile-drawer-search input {
  display: block;
  width: 100%;
  height: 42px;
  border: 1px solid #D5D3D0;
  border-radius: 8px;
  background: #FFFFFF;
  color: #1A1A1A;
  padding: 0 13px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 42px;
  box-shadow: 0 1px 2px rgba(12,12,14,0.03);
}
.mobile-drawer-search input::placeholder {
  color: #6F6A64;
}
.mobile-drawer-search input:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px var(--brand-red-light);
}
.mobile-drawer-search-results {
  display: none;
  width: 100%;
  max-height: 330px;
  overflow-y: auto;
  margin-top: 10px;
  background: #FFFFFF;
  border: 1px solid #E8E7E5;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(12,12,14,0.12);
}
.mobile-drawer-search-results.open {
  display: block;
}
.mobile-drawer .mobile-drawer-links {
  padding: 14px 0;
}
.mobile-drawer .mobile-drawer-links a {
  padding: 15px 12px;
  min-height: 52px;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.mobile-drawer .mobile-drawer-count {
  min-width: 23px;
  height: 23px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--brand-red);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
}
.mobile-drawer .mobile-drawer-actions {
  padding: 18px 12px 28px;
}
.mobile-drawer .mobile-drawer-actions .btn {
  min-height: 46px;
  border-radius: 8px;
}
