:root {
  --brand: #f38321;
  --brand-dark: #d9690f;
  --brand-darker: #5c3629;
  --brand-tint: #ffd9cc;
  --brand-accent: #e73d01;
  --ink: #221b17;
  --ink-soft: #5a5049;
  --bg-soft: #fff8f2;
  --border: #eee1d6;
  --radius: 14px;
  --font-body: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-display: 'Kalam', 'Montserrat', cursive;

  /* Glassmorphism / neo-tech */
  --glass-bg: rgba(255,255,255,.93);
  --glass-border: rgba(255,255,255,.93);
  --glass-blur: blur(16px) saturate(160%);
  --glow-brand: 0 0 28px rgba(243,131,33,.4);
}

* { box-sizing: border-box; }

html { overflow-x: clip; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(243,131,33,.10), transparent 32%),
    radial-gradient(circle at 92% 28%, rgba(231,61,1,.08), transparent 32%),
    radial-gradient(circle at 25% 85%, rgba(217,105,15,.08), transparent 34%),
    radial-gradient(circle at 88% 92%, rgba(92,54,41,.06), transparent 34%),
    #fff;
  line-height: 1.6;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; }
.blog-body img { border-radius: 10px; margin: 20px 0; }
.blog-body { overflow-wrap: break-word; }

h1, h2, h3, h4, h5 { font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(1.8rem, 1.35rem + 2.2vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem); }
h4 { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.15rem); }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--brand-accent); }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff;
  padding: 10px 16px; z-index: 2000;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
  transform: translateY(0);
  transition: transform .3s ease;
}
.site-header.is-hidden {
  transform: translateY(-100%);
}
.topbar {
  background: var(--brand-darker);
  color: #f3e9e2;
  font-size: 0.85rem;
  padding: 6px 0;
}
.topbar .container { flex-wrap: wrap; gap: 8px; }
.topbar-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.topbar a { color: #f3e9e2; margin-left: 18px; white-space: nowrap; }
.topbar a:hover { color: var(--brand-tint); }
.btn-topbar {
  background: var(--brand-darker);
  color: #fff !important;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.btn-topbar:hover { background: var(--brand-accent); }

.main-nav {
  padding: 6px 0;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: box-shadow .25s ease;
  position: relative;
}
.main-nav::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand) 30%, var(--brand-accent) 70%, transparent);
  opacity: .55;
}
.site-header.is-scrolled .main-nav { box-shadow: 0 8px 24px rgba(34,27,23,.16); }
.navbar-brand img { height: 75px; }

#main-content { margin-top: 0; }
.main-nav .nav-link { color: var(--ink); font-weight: 600; padding: 6px 14px !important; }
.main-nav .nav-link:hover, .main-nav .nav-link:focus { color: var(--brand-dark); }
.dropdown-item:active { background: var(--brand); }

/* Toggler: default Bootstrap focus ring reads as a heavy black border — replace with a subtle brand ring */
.navbar-toggler { border: none; padding: 4px 8px; box-shadow: none; }
.navbar-toggler:focus { box-shadow: 0 0 0 .15rem rgba(243,131,33,.35); outline: none; }

@media (max-width: 991.98px) {
  .navbar-brand img { height: 46px; }
  .main-nav { padding: 4px 0; }
  .navbar-toggler { font-size: .95rem; }

  /* Let the open mobile menu scroll within the viewport instead of growing past it */
  .main-nav .navbar-collapse {
    max-height: calc(100vh - 62px);
    max-height: calc(100dvh - 62px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
}

/* Lock background scroll while the mobile menu is open */
body.mobile-nav-open {
  overflow: hidden;
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}
.btn-primary-brand {
  background: var(--brand); color: #fff; border: none; font-weight: 700;
  padding: 10px 20px; border-radius: 999px;
  box-shadow: 0 0 0 rgba(243,131,33,0);
  transition: background .2s ease, box-shadow .3s ease, transform .15s ease;
}
.btn-primary-brand:hover { background: var(--brand-accent); color: #fff; box-shadow: var(--glow-brand); }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(120deg, rgba(92,54,41,.72) 0%, rgba(34,20,15,.70) 100%),
    url('../img/categories/spices.jpg') center/cover no-repeat;
  color: #fff;
  padding: calc(var(--header-h, 143px) + 48px) 0 120px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  background: radial-gradient(circle, var(--brand) 0%, transparent 70%);
  opacity: .5;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  /* background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); */
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 85%);
}
.hero > .container, .page-hero > .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(1.9rem, 1.5rem + 2vw, 2.8rem); color: #fff; margin-bottom: 18px; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.hero .lead { font-size: clamp(1rem, 0.92rem + 0.4vw, 1.2rem); color: #f4e3d8; max-width: 620px; }
.hero .btn-hero {
  background: var(--brand); color: #fff; padding: 14px 28px; border-radius: 999px;
  font-weight: 700; margin-right: 12px; display: inline-block; margin-top: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.hero .btn-hero:hover { background: var(--brand-accent); transform: translateY(-2px); box-shadow: var(--glow-brand); }
.hero .btn-hero-outline {
  border: 2px solid #fff; color: #fff; padding: 12px 26px; border-radius: 999px;
  font-weight: 700; display: inline-block; margin-top: 10px;
}
.hero .btn-hero-outline:hover { background: #fff; color: var(--brand-darker); }
.hero .btn-hero, .hero .btn-hero-outline { transition: transform .2s ease, background .2s ease, color .2s ease; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 44px; position: relative; z-index: 1; }
.hero-stats .stat strong {
  display: block; font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1.5vw, 1.9rem); color: #fff; line-height: 1;
}
.hero-stats .stat span { color: #f4e3d8; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

.page-hero {
  background:
    linear-gradient(120deg, rgba(92,54,41,.95) 0%, rgba(34,20,15,.93) 100%),
    url('../img/categories/spices.jpg') center/cover no-repeat;
  color: #fff;
  padding: calc(var(--header-h, 143px) + 24px) 0 70px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 90%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 90%);
}
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: #f4e3d8; max-width: 700px; margin-bottom: 0; }
.breadcrumb-bar { background: var(--bg-soft); padding: 12px 0; border-bottom: 1px solid var(--border); }
.breadcrumb-bar ol { margin: 0; }

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section-soft { background: var(--bg-soft); }
.section-title { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem); margin-bottom: 12px; }
.section-lead { color: var(--ink-soft); max-width: 680px; margin-bottom: 40px; font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem); }

/* Entity cluster cards */
.entity-card {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px 26px;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.entity-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(92,54,41,.14), var(--glow-brand); border-color: rgba(243,131,33,.45); }
.entity-card .icon {
  width: 56px; height: 56px; border-radius: 14px; background: var(--brand-tint);
  color: var(--brand-accent); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 18px;
}
.entity-card h3 { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.25rem); }
.entity-card a.stretched { position: absolute; inset: 0; }
.entity-card { position: relative; }

/* Entity cards with photo background */
.entity-card-img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  transition: transform .3s ease, box-shadow .3s ease;
}
.entity-card-img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.entity-card-img::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(34,27,23,.18) 0%, rgba(34,27,23,.55) 42%, rgba(34,27,23,.97) 100%);
  z-index: 1;
}
.entity-card-img:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(92,54,41,.28), 0 0 0 2px rgba(243,131,33,.55), var(--glow-brand); }
.entity-card-img:hover img { transform: scale(1.08); }
.entity-card-img .content {
  position: relative; z-index: 2; padding: 26px;
  min-height: 168px;
  width: 100%;
}
.entity-card-img .icon-badge {
  width: 46px; height: 46px; border-radius: 12px; background: var(--brand);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 1.15rem;
  flex: none;
}
.entity-card-img h3 { color: #fff; margin-bottom: 6px; }
.entity-card-img p { color: #f0e4dc; font-size: .9rem; margin-bottom: 0; }
.entity-card-img a.stretched { position: absolute; inset: 0; z-index: 3; }

/* Who we supply */
.supply-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  background: #fff;
  margin: 6px;
}
.supply-chip i { color: var(--brand-dark); }

/* Other branches — plain divided list on mobile instead of overflowing chips */
@media (max-width: 767.98px) {
  .other-branches { row-gap: 0 !important; }
  .other-branch-link {
    border-radius: 0;
    border-width: 0 0 1px 0;
    text-align: left;
    justify-content: flex-start;
    padding: 14px 4px;
    margin: 0;
    background: transparent;
    white-space: normal;
    word-break: break-word;
  }
  .other-branches > div:first-child .other-branch-link { border-top: 1px solid var(--border); }
}

/* Branch cards */
.branch-card {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 26px;
  height: 100%;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.branch-card:hover { box-shadow: 0 16px 34px rgba(92,54,41,.14), var(--glow-brand); border-color: rgba(243,131,33,.45); }
.branch-card h3 { color: var(--brand-darker); }
.branch-card .badge-hq {
  background: var(--brand); color: #fff; font-size: .7rem; padding: 4px 10px; border-radius: 999px;
}

/* Product cards */
.product-card {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  height: 100%;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover { box-shadow: 0 14px 30px rgba(92,54,41,.12), var(--glow-brand); border-color: rgba(243,131,33,.45); }
.product-card .thumb {
  aspect-ratio: 1 / 1; background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-card .body { padding: 14px 16px; }
.product-card .cat-tag { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-dark); font-weight: 700; }
.product-card h3 { font-size: .95rem; margin: 6px 0 4px; line-height: 1.35; }
.product-card .pack { color: var(--ink-soft); font-size: .85rem; }

.category-card {
  border-radius: var(--radius);
  padding: 26px;
  background: linear-gradient(150deg, var(--brand-darker) 0%, #3a231c 100%);
  border: 1px solid rgba(243,131,33,.3);
  color: #fff;
  height: 100%;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--glow-brand); border-color: rgba(243,131,33,.6); }
.category-card h3 { color: #fff; }
.category-card a { color: var(--brand-tint); font-weight: 700; }

/* Brand strip — infinite marquee */
.brand-strip { overflow: hidden; padding: 34px 0; background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.brand-strip-label { color: var(--ink-soft); font-size: clamp(1.2rem, 1rem + 1.2vw, 1.78rem); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: 20px; }
.marquee { overflow: hidden; }
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee-scroll 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { flex: 0 0 auto; padding: 0 30px; }
.marquee-item img { max-height: 150px; opacity: .75; filter: grayscale(100%); transition: opacity .2s, filter .2s; }
.marquee-item img:hover { opacity: 1; filter: none; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Testimonials */
.testimonial-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 30px;
  height: 100%;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.testimonial-card:hover { box-shadow: var(--glow-brand); border-color: rgba(243,131,33,.4); }
.testimonial-card .quote-mark { font-family: var(--font-display); font-size: clamp(2.2rem, 1.8rem + 1.5vw, 3rem); color: var(--brand); line-height: 1; }

/* Pagination */
.pagination .page-link { color: var(--brand-dark); border-color: var(--border); }
.pagination .page-item.active .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .page-link:hover { color: var(--brand-accent); background: var(--brand-tint); }
.pagination .page-item.disabled .page-link { color: #c9bdb4; }

/* FAQ */
.accordion-item {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}
.accordion-button { background: transparent; }
.accordion-button:not(.collapsed) { background: rgba(255,217,204,.55); color: var(--brand-darker); }
.accordion-button:focus { box-shadow: none; border-color: var(--brand); }
.faq-media { position: relative; }
.faq-media img {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  box-shadow: 0 0 0 10px #fff, 0 0 45px rgba(92,54,41,.35);
  transition: transform .35s ease;
}
.faq-media img:hover { transform: scale(1.05); }

@media (prefers-reduced-motion: no-preference) {
  .faq-media { animation: faq-media-float 5s ease-in-out infinite; }
  .faq-media img { animation: faq-media-glow 3.5s ease-in-out infinite; }
}
@keyframes faq-media-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes faq-media-glow {
  0%, 100% { box-shadow: 0 0 0 10px #fff, 0 0 45px rgba(92,54,41,.35); }
  50% { box-shadow: 0 0 0 10px #fff, 0 0 65px rgba(92,54,41,.55); }
}
.faq-media .badge-brand { position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%); white-space: nowrap; box-shadow: 0 10px 20px rgba(92,54,41,.2); }

/* CTA band */
.cta-band { background: var(--brand-darker); color: #fff; padding: 56px 0; }
.cta-band h2 { color: #fff; }
.btn-light-brand { background: #fff; color: var(--brand-darker); font-weight: 700; padding: 12px 26px; border-radius: 999px; }
.btn-light-brand:hover { background: var(--brand-darker); color: #fff; }
.btn-outline-light-brand { border: 2px solid #fff; color: #fff; font-weight: 700; padding: 10px 24px; border-radius: 999px; }
.btn-outline-light-brand:hover { background: #fff; color: var(--brand-accent); }

/* Footer */
.site-footer { background: var(--brand-darker); color: #e9d9cf; padding: 60px 0 20px; position: relative; }
.site-footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand) 30%, var(--brand-accent) 70%, transparent);
  opacity: .6;
}
.site-footer h3 { font-size: 1.05rem; color: #fff; margin-bottom: 16px; }
.footer-logo { height: 58px; filter: brightness(0) invert(1); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #e9d9cf; }
.footer-links a:hover { color: var(--brand-tint); }
.footer-divider { border-color: rgba(255,255,255,.15); margin: 30px 0 18px; }
.footer-bottom { font-size: .85rem; color: #cbb6a9; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1);
  color: #fff; margin-right: 8px;
}
.social-links a:hover { background: var(--brand); }

/* Forms */
.form-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px;
}
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(243,131,33,.15); }
.form-label { font-weight: 600; }

/* Utility */
.text-brand { color: var(--brand-dark); }
.bg-brand-tint { background: var(--brand-tint); }
.badge-brand {
  background: rgba(255,217,204);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255);
  color: var(--brand-accent); font-weight: 700; padding: 6px 14px; border-radius: 999px; font-size: .75rem;
}

/* ---------- Motion & 3D interactions ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.9,.34,1); }
  .reveal.is-visible { opacity: 1; transform: none; }
}

.tilt-3d { transition: transform .15s ease-out, box-shadow .3s ease; }

.entity-card-img::after {
  content: "";
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.28), transparent 55%);
  opacity: 0; transition: opacity .3s ease;
}
.entity-card-img:hover::after { opacity: 1; }

.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 1020;
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: var(--brand); color: #fff; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(92,54,41,.32);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(20px) scale(.7) perspective(500px) rotateX(40deg);
  transition: opacity .3s ease, transform .4s cubic-bezier(.34,1.56,.64,1), visibility .3s, background .2s;
  cursor: pointer;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1) perspective(500px) rotateX(0); }
.back-to-top:hover { background: var(--brand-accent); transform: translateY(-4px) scale(1.06); }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .back-to-top { transition: opacity .2s ease, visibility .2s; transform: none !important; }
  .back-to-top.is-visible { transform: none !important; }
  .tilt-3d { transition: box-shadow .3s ease; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .entity-card, .product-card, .testimonial-card, .branch-card, .form-card,
  .accordion-item, .badge-brand {
    background: #fff;
  }
}

@media (max-width: 768px) {
  .hero { padding: calc(var(--header-h, 97px) + 24px) 0 70px; }
  .page-hero { padding: calc(var(--header-h, 97px) + 16px) 0 50px; }
  .hero-stats { gap: 24px; margin-top: 30px; }
  .section { padding: 48px 0; }
  .map-embed iframe { height: 240px; }
  .entity-card-img, .category-card { min-height: 240px; }
}

/* ---------- Catalogue count highlight ---------- */
.catalogue-count {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--brand-tint), #fff);
  border: 1px solid rgba(243,131,33,.35);
  border-radius: 999px;
  padding: 14px 26px;
  box-shadow: 0 8px 20px rgba(92,54,41,.08);
}
.catalogue-count i { color: var(--brand-accent); font-size: 1.4rem; }
.catalogue-count strong { color: var(--brand-darker); font-family: var(--font-display); font-size: 1.3rem; }

/* ---------- Sticky subcategory nav ---------- */
@media (min-width: 992px) {
  .subcategory-sticky {
    position: sticky;
    top: calc(var(--header-h, 143px) + 20px);
    transition: top .3s ease;
  }
  /* Header is off-screen (scrolling down) — collapse up to the top of the
     viewport instead of leaving a dead gap where the header used to be. */
  html.header-hidden .subcategory-sticky {
    top: 20px;
  }
}

/* ---------- Legal pages (Terms / Privacy) ---------- */
.legal-content { max-width: 820px; }
.legal-content h2 { font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem); margin-top: 34px; margin-bottom: 12px; }
.legal-content h2:first-of-type { margin-top: 8px; }
.legal-content p, .legal-content li { color: var(--ink-soft); }
.legal-content ul { padding-left: 22px; }

/* ---------- Page loader ---------- */
.page-loader {
  position: fixed; inset: 0; z-index: 3000;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 1; visibility: visible;
  transition: opacity .4s ease, visibility .4s ease;
}
.page-loader-mark { width: 64px; height: auto; }
.page-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .page-loader-mark { animation: page-loader-pulse 1.1s ease-in-out infinite; }
}
@keyframes page-loader-pulse {
  0%, 100% { transform: scale(.88); opacity: .65; }
  50% { transform: scale(1.04); opacity: 1; }
}

/* ---------- Page transitions ---------- */
body { transition: opacity .18s ease; }
body.is-navigating { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  #main-content { animation: page-enter .5s ease both; }
}
@keyframes page-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Sticky share rail ---------- */
.share-rail {
  position: fixed; left: 18px; top: 50%; transform: translateY(-50%);
  z-index: 1020;
  display: flex; flex-direction: column; gap: 10px;
}
.share-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border); color: var(--brand-darker);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: 0 8px 20px rgba(92,54,41,.12);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.share-btn:hover { background: var(--brand); color: #fff; transform: translateX(3px); }
.share-btn.is-copied { background: var(--brand-accent); color: #fff; }

/* Below lg, the left-edge rail doesn't work as a layout — switch to a
   horizontal bar docked to the bottom of the viewport instead. */
@media (max-width: 991.98px) {
  .share-rail {
    left: 0; right: 0; top: auto; bottom: 0; transform: none;
    flex-direction: row; justify-content: center; gap: 14px;
    background: rgba(255,255,255,.97);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 20px rgba(34,27,23,.1);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  }
  .share-btn { width: 40px; height: 40px; font-size: .95rem; }
  .share-btn:hover { transform: translateY(-3px); }
  .back-to-top { bottom: calc(72px + env(safe-area-inset-bottom)); }
  .site-footer { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}
