/* ═══════════════════════════════════════════════
   GMI Foods — Style Direction B: Clean Monochrome
   Black / White / Green accent
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=DM+Serif+Display:ital@0;1&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:       #0f0f0f;
  --off-black:   #1a1a1a;
  --dark-gray:   #444;
  --mid-gray:    #777;
  --light-gray:  #f5f5f5;
  --border:      #e2e2e2;
  --border-dark: #c8c8c8;
  --white:       #ffffff;
  --green:       #3CBF2F;
  --green-dark:  #2fa324;
  --green-light: #f0fced;
  --text-muted:  #888;
  --nav-height:  64px;
  --font-body:   'Inter', sans-serif;
  --font-serif:  'DM Serif Display', serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Promo Banner ── */
.promo-banner {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 0.5rem 1rem;
  font-weight: 400;
}

/* ── Navigation ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--white);
  border-bottom: 2px solid var(--black);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  z-index: 1000;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-logo-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--black);
  letter-spacing: -0.01em;
}

.nav-logo-text span { color: var(--green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--dark-gray);
  text-decoration: none;
  transition: color 0.15s;
  letter-spacing: 0.01em;
}

.nav-links a:hover { color: var(--black); }

.nav-cta {
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 0.55rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.15s;
  display: inline-block;
}

.nav-cta:hover { background: var(--off-black); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-mobile-panel {
  display: contents;
}

.nav-hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--black);
  flex-shrink: 0;
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
  margin-top: calc(var(--nav-height) + 32px);
  margin-top: -66px;
  padding-top: calc(5rem + 66px);
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  padding-bottom: 5rem;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--green);
  color: var(--green);
  background: rgba(0,0,0,0.4);
  margin-bottom: 1.25rem;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.05;
  color: #ffffff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.9);
}

.hero-content h1 em {
  color: var(--green);
  font-style: italic;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

.hero-content p {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  max-width: 420px;
  margin-bottom: 2rem;
  line-height: 1.7;
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.hero-stat .num {
  display: block;
  font-size: 1.4rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.hero-stat .lbl {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  letter-spacing: 0.01em;
}

.btn-primary:hover { background: var(--green-dark); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 400;
  border: 1.5px solid rgba(255,255,255,0.5);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
  letter-spacing: 0.01em;
  margin-left: 0.75rem;
}

.btn-outline:hover {
  border-color: rgba(255,255,255,0.9);
  color: #ffffff;
}

/* Variant for use on light backgrounds (e.g. the light-gray CTA section) —
   the default .btn-outline is white-on-transparent, meant for dark/photo backgrounds. */
.btn-outline-dark {
  color: #111;
  border-color: rgba(0,0,0,0.25);
}

.btn-outline-dark:hover {
  color: #000;
  border-color: rgba(0,0,0,0.5);
}

/* ── Values Strip ── */
.values-strip {
  background: var(--white);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: 2.5rem 2.5rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.value-item {
  border-top: 2px solid var(--green);
  padding-top: 0.875rem;
}

.value-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.value-text {
  font-size: 0.8rem;
  color: var(--mid-gray);
  line-height: 1.5;
}

/* ── Section Labels / Headings ── */
.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 400;
  color: var(--black);
  margin-bottom: 0.5rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section-sub {
  font-size: 0.9rem;
  color: var(--mid-gray);
  margin-bottom: 2.5rem;
  max-width: 520px;
  line-height: 1.6;
}

/* ── Product Cards (B2B) ── */
.b2b-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
}

.b2b-product-card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: background 0.15s;
}

.b2b-product-card:hover { background: #fafafa; }

.b2b-product-img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: var(--light-gray);
  border-bottom: 0.5px solid var(--border);
  padding: 1rem;
}

.b2b-product-body {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.b2b-product-category {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.3rem;
}

.b2b-product-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 0.3rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.b2b-product-desc {
  font-size: 0.8rem;
  color: var(--mid-gray);
  margin-bottom: 0.875rem;
  flex: 1;
  line-height: 1.4;
}

.b2b-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 0.5px solid var(--border);
  padding-top: 0.75rem;
  margin-top: auto;
}

.b2b-product-price {
  font-size: 1rem;
  font-weight: 500;
  color: var(--black);
  letter-spacing: -0.01em;
}

.b2b-qty-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.b2b-qty-wrap label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--mid-gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.b2b-qty {
  width: 40px;
  padding: 0.35rem 0.25rem;
  border: 0.5px solid var(--border-dark);
  border-left: none;
  border-right: none;
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--black);
  text-align: center;
  background: var(--white);
  transition: border-color 0.15s;
  -moz-appearance: textfield;
}

.b2b-qty::-webkit-outer-spin-button,
.b2b-qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.b2b-qty:focus {
  outline: none;
  border-color: var(--green);
}

.b2b-qty-stepper {
  display: flex;
  align-items: stretch;
}

.b2b-qty-btn {
  width: 28px;
  height: 28px;
  border: 0.5px solid var(--border-dark);
  background: var(--white);
  color: var(--black);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  transition: background 0.12s;
}

.b2b-qty-btn:hover { background: var(--light-gray, #f0f0f0); }

.b2b-out-of-stock {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Category Section Headings ── */
.category-section { margin-bottom: 2.5rem; }

.category-section-heading {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0;
  padding: 0.875rem 1.1rem;
  background: var(--black);
  border-bottom: 0.5px solid var(--border);
}

.category-section-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-count {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
}

/* ── Category Tabs ── */
/* stickytabs-fixed */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 1rem 2.5rem;
  background: var(--white);
  border-bottom: 0.5px solid var(--border);
  border-top: 64px;
  position: sticky;
  top: var(--nav-height);
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Push tabs down when checkout bar is visible */


.cat-tab {
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 400;
  font-family: var(--font-body);
  border: 0.5px solid var(--border-dark);
  background: var(--white);
  color: var(--dark-gray);
  cursor: pointer;
  transition: all 0.12s;
  letter-spacing: 0.01em;
}

.cat-tab:hover {
  background: var(--light-gray);
  color: var(--black);
}

.cat-tab.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* ── Search ── */
.search-wrap {
  padding: 1.5rem 2.5rem 1rem;
  background: var(--white);
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
}

#product-search {
  flex: 1;
  max-width: 420px;
  padding: 0.6rem 1rem;
  border: 0.5px solid var(--border-dark);
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  transition: border-color 0.15s;
}

#product-search:focus {
  outline: none;
  border-color: var(--black);
}

#search-count {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Page Layout ── */
.page {
  padding-top: var(--nav-height);
  min-height: 100vh;
}

.page-header {
  background: var(--white);
  border-bottom: 0.5px solid var(--border);
  padding: 2rem 2.5rem 1.5rem;
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--black);
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.page-header p {
  font-size: 0.875rem;
  color: var(--mid-gray);
}

/* ── Order Form ── */
.order-form-section {
  max-width: 720px;
  margin: 3rem auto;
  padding: 0 2.5rem 4rem;
}

.order-form-section h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.order-form-section > p {
  font-size: 0.875rem;
  color: var(--mid-gray);
  margin-bottom: 2rem;
}

.order-summary-box {
  background: var(--light-gray);
  border: 0.5px solid var(--border);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.order-summary-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.875rem;
}

.order-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.4rem 0;
  border-bottom: 0.5px solid var(--border);
  gap: 1rem;
}

.order-line:last-of-type { border-bottom: none; }

.order-line-name {
  font-size: 0.85rem;
  color: var(--black);
  flex: 1;
}

.order-line-detail {
  font-size: 0.82rem;
  color: var(--mid-gray);
  white-space: nowrap;
}

.order-summary-empty {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.order-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 0 0;
  margin-top: 0.5rem;
  border-top: 1.5px solid var(--black);
}

.order-total-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--black);
}

.order-total-amount {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--green);
}

.form-section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin: 1.75rem 0 1rem;
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--dark-gray);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  padding: 0.6rem 0.875rem;
  border: 0.5px solid var(--border-dark);
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  transition: border-color 0.15s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--black);
}

.form-group small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-submit-btn {
  width: 100%;
  padding: 0.875rem;
  background: var(--green);
  color: var(--white);
  border: none;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.15s;
  letter-spacing: 0.02em;
  margin-top: 0.5rem;
}

.form-submit-btn:hover { background: var(--green-dark); }
.form-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.form-success {
  display: none;
  background: var(--green-light);
  border: 0.5px solid #b8ddb4;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: #2a6b24;
  margin-top: 1rem;
  text-align: center;
}

/* ── Contact Page ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 2.5rem 4rem;
}

.contact-info h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 1.25rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.contact-info-icon {
  width: 32px;
  height: 32px;
  background: var(--green-light);
  border: 0.5px solid #c8e8c4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.2rem;
}

.contact-info-value {
  font-size: 0.875rem;
  color: var(--black);
}

.contact-cta-btn {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: 0.7rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  margin-top: 1.25rem;
  transition: background 0.15s;
}

.contact-cta-btn:hover { background: var(--green-dark); }

/* ── No Results ── */
.no-results {
  padding: 3rem 2.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* ── Lightbox ── */
.lightbox-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 1.5rem;
}

.lightbox-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  display: block;
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.lightbox-overlay.open .lightbox-img { transform: scale(1); }

.lightbox-close {
  position: fixed;
  top: 1.25rem; right: 1.5rem;
  background: rgba(255,255,255,0.12);
  border: 0.5px solid rgba(255,255,255,0.25);
  color: white;
  width: 36px; height: 36px;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 9001;
}

.lightbox-close:hover { background: rgba(255,255,255,0.25); }

.lightbox-caption {
  position: fixed;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  text-align: center;
  z-index: 9001;
}

.b2b-product-img-clickable {
  cursor: zoom-in;
  transition: opacity 0.15s;
}

.b2b-product-img-clickable:hover { opacity: 0.88; }

/* ── Footer ── */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.45);
  padding: 3rem 2.5rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.footer-brand {
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.footer-brand span { color: var(--green); }

.footer-desc {
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.4);
}

.footer-heading {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.875rem;
}

.footer-link {
  display: block;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  margin-bottom: 0.4rem;
  transition: color 0.15s;
}

.footer-link:hover { color: rgba(255,255,255,0.8); }

.footer-bottom {
  text-align: center;
  border-top: 0.5px solid rgba(255,255,255,0.08);
  padding-top: 1.25rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
  max-width: 1200px;
  margin: 0 auto;
}

/* ── hCaptcha ── */
.h-captcha { margin: 1rem 0; }

/* ── Toast ── */
#toast-container {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .site-nav { padding: 0 1.25rem; }
  .nav-hamburger { display: flex; }
  .nav-mobile-panel { display: none; }
  .site-nav.mobile-menu-open .nav-mobile-panel {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--black);
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    padding: 0.5rem 1.25rem 1.25rem;
  }
  .nav-mobile-panel .nav-links {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .nav-mobile-panel .nav-links li { width: 100%; }
  .nav-mobile-panel .nav-links a {
    display: block;
    padding: 0.85rem 0.25rem;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border, #f0f0f0);
  }
  .nav-mobile-panel .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    margin-top: 1rem;
  }
  .nav-mobile-panel .nav-actions a,
  .nav-mobile-panel .nav-actions button {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    justify-content: center;
  }
  .hero { padding-left: 1.25rem; padding-right: 1.25rem; }
  .values-strip { padding: 2rem 1.25rem; }
  .values-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .category-tabs { padding: 0.875rem 1.25rem; overflow-x: auto; flex-wrap: nowrap; }
  .search-wrap { padding: 1rem 1.25rem; flex-direction: column; align-items: flex-start; }
  .b2b-product-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .b2b-qty-btn { width: 38px; height: 38px; font-size: 1.2rem; }
  .b2b-qty { width: 44px; padding: 0.35rem; font-size: 1rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .order-form-section { padding: 0 1.25rem 3rem; }
}

.category-tabs { position: sticky !important; top: 0 !important; z-index: 500 !important; }

/* sticky-checkout-bottom-pad */
body.checkout-bar-visible {
  padding-bottom: 56px;
}

/* ── COUNTRY TOOLTIP ── */
.country-origin-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
  cursor: default;
}

.country-origin-wrap .country-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 9999;
}

/* Tooltip arrow */
.country-origin-wrap .country-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #111;
}

/* Show on hover — desktop only */
@media (hover: hover) {
  .country-origin-wrap:hover .country-tooltip {
    opacity: 1;
  }
}

/* unit price under case price */
.b2b-unit-price {
  font-size: 0.74rem;
  color: var(--mid-gray, #777);
  margin-top: 1px;
}
