/* ==========================================================================
   Supreonix Medical — Storefront (public site)
   ========================================================================== */

.store-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.store-header-inner {
  display: flex; align-items: center; gap: var(--sp-6);
  height: 66px;
}
.store-brand { display: flex; align-items: center; gap: var(--sp-3); flex: 0 1 auto; min-width: 0; }
.store-logo {
  width: 34px; height: 34px; flex: none; border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-primary);
  color: #fff; font-weight: var(--fw-bold); font-size: var(--fs-md);
}
.store-brand-text { min-width: 0; }
.store-brand-name {
  display: block; font-size: var(--fs-md); font-weight: var(--fw-bold);
  letter-spacing: -0.02em; line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.store-brand-sub {
  display: block; font-size: 11px; color: var(--c-text-muted); letter-spacing: .02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.store-nav { display: flex; align-items: center; gap: var(--sp-1); }
.store-nav-link {
  padding: var(--sp-2) var(--sp-3); border-radius: var(--r-md);
  font-size: var(--fs-base); font-weight: var(--fw-medium); color: var(--c-text-secondary);
  transition: all var(--dur-fast) var(--ease);
}
.store-nav-link:hover { background: var(--c-surface-sunken); color: var(--c-text); }
.store-nav-link.is-active { color: var(--c-primary); font-weight: var(--fw-semibold); }

.store-header-actions { display: flex; align-items: center; gap: var(--sp-3); margin-left: auto; }

.store-menu-btn {
  width: 38px; height: 38px; border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-text-secondary);
}
.store-menu-btn:hover { background: var(--c-surface-sunken); }

.store-mobile-nav {
  display: none;
  border-top: 1px solid var(--c-border);
  padding: var(--sp-3) var(--sp-5) var(--sp-4);
  background: var(--c-surface);
}
.store-mobile-nav.is-open { display: block; }
.store-mobile-nav a {
  display: block; padding: var(--sp-3) var(--sp-2);
  font-size: var(--fs-md); font-weight: var(--fw-medium); color: var(--c-text-secondary);
  border-radius: var(--r-md);
}
.store-mobile-nav a:hover, .store-mobile-nav a.is-active { background: var(--c-surface-sunken); color: var(--c-primary); }

@media (max-width: 900px) {
  .store-nav { display: none; }
  .store-menu-btn { display: inline-flex; }
}
@media (min-width: 901px) { .store-menu-btn { display: none; } }

/* ==========================================================================
   Hero
   Hierarchy: context label > headline > description > primary action >
   secondary action > supporting metrics.
   ========================================================================== */

.hero {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--sp-9);
  align-items: center; padding: var(--sp-10) 0;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-5);
}
.hero-eyebrow svg { width: 13px; height: 13px; color: var(--c-primary); }
.hero-title {
  font-size: var(--fs-5xl); font-weight: var(--fw-bold);
  letter-spacing: -0.035em; line-height: 1.06; color: var(--c-text);
}
/* No gradient text — the headline earns attention through size and weight. */
.hero-title .accent { color: var(--c-primary); }
.hero-desc {
  font-size: var(--fs-lg); line-height: var(--lh-relaxed);
  color: var(--c-text-secondary); margin-top: var(--sp-5); max-width: 56ch;
}
.hero-actions { display: flex; gap: var(--sp-3); margin-top: var(--sp-7); flex-wrap: wrap; }
.hero-inner > * { min-width: 0; }
.hero-stats {
  display: flex; gap: var(--sp-8); margin-top: var(--sp-9);
  padding-top: var(--sp-6); border-top: 1px solid var(--c-border); flex-wrap: wrap;
}
.hero-stat-value { font-size: var(--fs-2xl); font-weight: var(--fw-bold); letter-spacing: -0.02em; }
.hero-stat-label { font-size: var(--fs-sm); color: var(--c-text-muted); margin-top: 2px; }

.hero-visual { position: relative; }
.hero-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); overflow: hidden;
}
.hero-card-img { aspect-ratio: 4/3; background: var(--c-surface-sunken); }
.hero-card-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-foot { padding: var(--sp-5); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--sp-8); padding: var(--sp-9) 0; }
  .hero-title { font-size: var(--fs-4xl); }
}
@media (max-width: 640px) {
  .hero-title { font-size: var(--fs-3xl); }
  .hero-desc { font-size: var(--fs-md); }
  .hero-inner { padding: var(--sp-7) 0; }
  .hero-stats { gap: var(--sp-6); }
}

/* ==========================================================================
   Section
   ========================================================================== */

.section { padding: var(--sp-11) 0; }
.section.tight { padding: var(--sp-9) 0; }
.section-alt { background: var(--c-surface); border-block: 1px solid var(--c-border); }
.section-head-center { text-align: center; max-width: 640px; margin: 0 auto var(--sp-8); }
.section-title-lg { font-size: var(--fs-3xl); font-weight: var(--fw-bold); letter-spacing: -0.03em; }
.section-sub { font-size: var(--fs-lg); color: var(--c-text-muted); margin-top: var(--sp-3); }
@media (max-width: 640px) {
  .section { padding: var(--sp-8) 0; }
  .section-title-lg { font-size: var(--fs-2xl); }
  .section-sub { font-size: var(--fs-base); }
}

/* ==========================================================================
   Category tiles
   ========================================================================== */

.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); }
@media (max-width: 1024px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cat-tile {
  display: flex; align-items: flex-start; gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.cat-tile:hover { border-color: var(--c-border-strong); background: var(--c-surface-2); }
.cat-icon {
  width: 40px; height: 40px; flex: none; border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-surface-sunken); color: var(--c-text-secondary);
}
.cat-icon svg { width: 20px; height: 20px; }
.cat-name { font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.cat-count { font-size: var(--fs-sm); color: var(--c-text-muted); margin-top: 2px; }

/* ==========================================================================
   Product grid & cards
   ========================================================================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: var(--sp-5);
}
@media (max-width: 560px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); } }
/* Single column and the 2-up category grid are set in the MOBILE layer. */

/* Product cards read like catalogue entries: the product earns the
   attention, the chrome stays quiet. */
.product-card {
  display: flex; flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}
.product-card:hover { border-color: var(--c-border-strong); }

.product-media {
  position: relative; aspect-ratio: 4/3;
  background: var(--c-surface-sunken); overflow: hidden;
  border-bottom: 1px solid var(--c-border);
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media .ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; color: var(--c-text-faint);
}
.product-media .ph svg { width: 40px; height: 40px; }

.product-flags { position: absolute; top: var(--sp-3); left: var(--sp-3); display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }

.product-body { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.product-brand { font-size: var(--fs-xs); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: .05em; color: var(--c-text-muted); }
.product-name {
  font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: var(--lh-snug);
  color: var(--c-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.7em;
}
.product-card:hover .product-name { color: var(--c-primary); }
.product-spec { font-size: var(--fs-xs); color: var(--c-text-muted); }
.product-foot {
  margin-top: auto; padding-top: var(--sp-3);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  border-top: 1px solid var(--c-border);
}
.product-cta { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--c-primary); display: inline-flex; align-items: center; gap: 4px; }
.product-cta svg { width: 14px; height: 14px; }

/* Compact product row (used in related items / admin pickers) */
.product-row {
  display: flex; gap: var(--sp-3); align-items: center;
  padding: var(--sp-3); border-radius: var(--r-md);
  transition: background var(--dur-fast) var(--ease);
}
.product-row:hover { background: var(--c-surface-2); }
.product-row-img {
  width: 56px; height: 56px; flex: none; border-radius: var(--r-sm);
  object-fit: cover; border: 1px solid var(--c-border); background: var(--c-surface-sunken);
}

/* ==========================================================================
   Product detail page
   ========================================================================== */

.pdp-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--sp-8); align-items: start; }
@media (max-width: 900px) { .pdp-grid { grid-template-columns: 1fr; gap: var(--sp-6); } }

.pdp-gallery { position: sticky; top: calc(var(--header-h) + var(--sp-4)); }
@media (max-width: 900px) { .pdp-gallery { position: static; } }
.pdp-main-img {
  aspect-ratio: 4/3; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--c-border); background: var(--c-surface);
}
.pdp-main-img img { width: 100%; height: 100%; object-fit: contain; background: var(--c-surface-sunken); }
.pdp-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-3); margin-top: var(--sp-3); }
.pdp-thumb {
  aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; cursor: pointer;
  border: 1.5px solid var(--c-border); background: var(--c-surface-sunken);
  transition: border-color var(--dur-fast) var(--ease);
}
.pdp-thumb:hover { border-color: var(--c-border-strong); }
.pdp-thumb.is-active { border-color: var(--c-primary); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pdp-info { min-width: 0; }
.pdp-brand { font-size: var(--fs-sm); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: .06em; color: var(--c-primary); }
.pdp-title { font-size: var(--fs-3xl); font-weight: var(--fw-bold); letter-spacing: -0.03em; line-height: 1.15; margin-top: var(--sp-2); }
.pdp-meta { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-4); }
.pdp-avail {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); margin-top: var(--sp-5);
  font-size: var(--fs-sm);
}
.pdp-actions { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-6); }
.pdp-actions .btn { width: 100%; }
.pdp-actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
@media (max-width: 420px) { .pdp-actions-row { grid-template-columns: 1fr; } }

.pdp-trust {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3);
  margin-top: var(--sp-6); padding-top: var(--sp-6); border-top: 1px solid var(--c-border);
}
.pdp-trust-item { display: flex; flex-direction: column; gap: 5px; font-size: var(--fs-xs); color: var(--c-text-muted); }
.pdp-trust-item svg { width: 17px; height: 17px; color: var(--c-primary); }

.spec-table { width: 100%; font-size: var(--fs-base); }
.spec-table tr { border-bottom: 1px solid var(--c-border); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th {
  text-align: left; padding: var(--sp-3) var(--sp-4) var(--sp-3) 0;
  font-weight: var(--fw-medium); color: var(--c-text-muted); width: 40%;
  vertical-align: top;
}
.spec-table td { padding: var(--sp-3) 0; color: var(--c-text); font-weight: var(--fw-medium); }

/* ==========================================================================
   Catalog layout (filter sidebar + grid)
   ========================================================================== */

.catalog-layout { display: grid; grid-template-columns: 258px 1fr; gap: var(--sp-7); align-items: start; }
@media (max-width: 900px) { .catalog-layout { grid-template-columns: 1fr; gap: var(--sp-5); } }

.filter-panel { position: sticky; top: calc(var(--header-h) + var(--sp-4)); }
@media (max-width: 900px) { .filter-panel { position: static; } }

.filter-block + .filter-block { margin-top: var(--sp-6); padding-top: var(--sp-6); border-top: 1px solid var(--c-border); }
.filter-title { font-size: var(--fs-xs); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: .06em; color: var(--c-text-muted); margin-bottom: var(--sp-3); }
.filter-list { display: flex; flex-direction: column; gap: 2px; }
.filter-link {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm);
  font-size: var(--fs-base); color: var(--c-text-secondary);
  transition: all var(--dur-fast) var(--ease);
}
.filter-link:hover { background: var(--c-surface-sunken); color: var(--c-text); }
.filter-link.is-active { background: var(--c-primary-50); color: var(--c-primary-700); font-weight: var(--fw-semibold); }
.filter-count { font-size: var(--fs-xs); color: var(--c-text-faint); }
.filter-link.is-active .filter-count { color: var(--c-primary); }

/* Mobile filter toggle */
.filter-toggle { display: none; }
/* The bottom-sheet chrome only exists on mobile. */
.filter-sheet-head, .filter-scrim { display: none; }
@media (max-width: 900px) {
  .filter-toggle { display: inline-flex; }
  .filter-panel { display: none; }
  .filter-panel.is-open { display: block; }
}
@media (max-width: 640px) {
  .filter-sheet-head { display: flex; }
  .filter-scrim { display: block; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.store-footer {
  background: var(--c-surface); color: var(--c-text-secondary);
  border-top: 1px solid var(--c-border); margin-top: var(--sp-10);
}
.store-footer-main {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--sp-8);
  padding: var(--sp-10) 0 var(--sp-8);
}
@media (max-width: 900px) { .store-footer-main { grid-template-columns: 1fr 1fr; gap: var(--sp-7); } }
@media (max-width: 560px) { .store-footer-main { grid-template-columns: 1fr; gap: var(--sp-2); } }
.store-footer .store-brand-name { color: var(--c-text); }
.store-footer-desc { font-size: var(--fs-sm); line-height: var(--lh-relaxed); margin-top: var(--sp-4); max-width: 40ch; }

/* Link groups. Native <details> so mobile users can collapse sections.
   On desktop all groups stay open and the heading is not a control. */
.footer-group { min-width: 0; }
.footer-group > summary { list-style: none; pointer-events: none; }
.footer-group > summary::-webkit-details-marker { display: none; }
.footer-title { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--c-text); margin-bottom: var(--sp-4); }
.footer-links { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-links a { font-size: var(--fs-sm); color: var(--c-text-muted); transition: color var(--dur-fast) var(--ease); }
.footer-links a:hover { color: var(--c-primary); }
.footer-contact { display: flex; align-items: flex-start; gap: var(--sp-3); font-size: var(--fs-sm); }
.footer-contact svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--c-primary); }
a.footer-contact { color: var(--c-text-muted); transition: color var(--dur-fast) var(--ease); }
a.footer-contact:hover { color: var(--c-primary); }
.store-footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-5) 0; border-top: 1px solid var(--c-border);
  font-size: var(--fs-sm); flex-wrap: wrap; color: var(--c-text-muted);
}

/* ==========================================================================
   Floating WhatsApp button
   ========================================================================== */

/* Floating WhatsApp — persistent contact affordance. Brand-recognisable
   but calm, so it does not compete with the page. */
.wa-float {
  position: fixed; right: var(--sp-6); bottom: var(--sp-6); z-index: var(--z-toast);
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 0 var(--sp-4) 0 var(--sp-3); height: 46px;
  background: #1da851; color: #fff;
  border-radius: var(--r-md);
  box-shadow: 0 4px 14px -4px rgba(16,24,40,.28);
  font-size: var(--fs-sm); font-weight: var(--fw-semibold);
  transition: background var(--dur-fast) var(--ease);
}
.wa-float:hover { background: #178a42; }
.wa-float svg { width: 22px; height: 22px; flex: none; }
.wa-float .wa-label { white-space: nowrap; }
@media (max-width: 640px) {
  .wa-float { right: var(--sp-4); bottom: calc(var(--bottomnav-h) + var(--sp-4) + env(safe-area-inset-bottom, 0px)); height: 46px; padding: 0; width: 46px; justify-content: center; }
  .wa-float .wa-label { display: none; }
}

/* Sticky mobile action bar (PDP) */
.pdp-mobile-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0;
  padding: var(--sp-3) var(--sp-4) calc(var(--sp-3) + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--c-border);
  z-index: var(--z-header);
  gap: var(--sp-3);
}
@media (max-width: 900px) { .pdp-mobile-bar { display: flex; } }

/* ==========================================================================
   Misc storefront
   ========================================================================== */

.prose { font-size: var(--fs-md); line-height: var(--lh-relaxed); color: var(--c-text-secondary); }
.prose h2 { font-size: var(--fs-xl); color: var(--c-text); margin: var(--sp-7) 0 var(--sp-3); }
.prose h3 { font-size: var(--fs-lg); color: var(--c-text); margin: var(--sp-6) 0 var(--sp-3); }
.prose p + p { margin-top: var(--sp-4); }
.prose ul { list-style: disc; padding-left: var(--sp-6); margin: var(--sp-4) 0; }
.prose li + li { margin-top: var(--sp-2); }

.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
@media (max-width: 900px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
/* Single column below 480px is set in the MOBILE layer. */
.trust-item { padding-top: var(--sp-5); border-top: 1px solid var(--c-border); }
.trust-item .cat-icon { margin-bottom: var(--sp-4); }
.trust-item h3 { font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.trust-item p { font-size: var(--fs-sm); color: var(--c-text-muted); margin-top: var(--sp-2); line-height: var(--lh-base); }

.cta-band {
  background: var(--c-text);
  border-radius: var(--r-lg); padding: var(--sp-9) var(--sp-8);
  color: #fff;
}
.cta-band h2 { color: #fff; font-size: var(--fs-3xl); letter-spacing: -0.03em; }
.cta-band p { color: rgba(255,255,255,.72); font-size: var(--fs-lg); margin-top: var(--sp-3); }
.cta-band .hero-actions { margin-top: var(--sp-7); }
@media (max-width: 640px) { .cta-band { padding: var(--sp-7) var(--sp-5); } .cta-band h2 { font-size: var(--fs-2xl); } }

/* Secondary action on the dark band — outlined, not a second loud button */
.btn-on-dark {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,.28);
  font-weight: var(--fw-medium);
}
.btn-on-dark:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.45); }

/* ==========================================================================
   MOBILE EXPERIENCE
   Treated as its own design, not a compressed desktop layout.
   ========================================================================== */

/* Grid children must be allowed to shrink, otherwise long words force
   horizontal overflow on narrow screens. */
.grid > *, .product-grid > *, .cat-grid > *, .trust-grid > *,
.dash-grid > *, .form-grid > * { min-width: 0; }

@media (max-width: 640px) {

  /* ---------- Header: compact — identity, search, menu ---------- */
  .store-header-inner { height: 56px; gap: var(--sp-3); }
  .store-brand { gap: var(--sp-2); }
  .store-logo { width: 30px; height: 30px; font-size: var(--fs-sm); }
  .store-brand-name { font-size: var(--fs-base); }
  /* The tagline is desktop detail — the name alone carries identity here. */
  .store-brand-sub { display: none; }
  .store-header-actions { gap: var(--sp-1); }
  .store-mobile-nav { padding: var(--sp-2) var(--sp-4) var(--sp-4); }
  .store-mobile-nav a {
    padding: var(--sp-4) var(--sp-3);
    border-bottom: 1px solid var(--c-border);
    border-radius: 0;
  }
  .store-mobile-nav a:last-child { border-bottom: 0; }

  /* ---------- Hero: vertical rhythm, visual stays near the fold ---------- */
  .hero-inner { padding: var(--sp-7) 0 var(--sp-8); gap: var(--sp-7); }
  .hero-eyebrow { margin-bottom: var(--sp-4); font-size: 11px; }
  .hero-title { font-size: var(--fs-3xl); line-height: 1.12; letter-spacing: -0.025em; }
  .hero-desc { font-size: var(--fs-base); margin-top: var(--sp-4); line-height: var(--lh-base); }
  .hero-actions { margin-top: var(--sp-6); gap: var(--sp-3); }
  /* Primary earns full width; the secondary sits under it, quieter. */
  .hero-actions .btn { width: 100%; }
  .hero-stats {
    margin-top: var(--sp-7); padding-top: var(--sp-5);
    gap: var(--sp-4) var(--sp-5); justify-content: flex-start;
  }
  .hero-stats > div { flex: 1 1 auto; min-width: 0; }
  .hero-stat-value { font-size: var(--fs-xl); }
  .hero-stat-label { font-size: var(--fs-xs); }
  .hero-card-img { aspect-ratio: 16/10; }

  /* ---------- Sections ---------- */
  .section { padding: var(--sp-8) 0; }
  .section.tight { padding: var(--sp-7) 0; }
  .section-head-center { margin-bottom: var(--sp-6); }
  .section-title-lg { font-size: var(--fs-2xl); }
  .section-sub { font-size: var(--fs-base); margin-top: var(--sp-2); }

  /* ---------- Categories: compact 2-up scan grid ---------- */
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
  .cat-tile { padding: var(--sp-4); gap: var(--sp-3); }
  .cat-icon { width: 34px; height: 34px; border-radius: var(--r-sm); }
  .cat-icon svg { width: 17px; height: 17px; }
  .cat-name { font-size: var(--fs-base); }
  .cat-count { font-size: var(--fs-xs); }

  /* ---------- Product grid: 2-up, consistent card proportions ---------- */
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
  .product-body { padding: var(--sp-3); gap: 6px; }
  .product-brand { font-size: 10px; letter-spacing: .04em; }
  .product-name { font-size: var(--fs-sm); min-height: 2.6em; line-height: 1.3; }
  .product-spec { font-size: 11px; }
  .product-foot { padding-top: var(--sp-2); }
  .product-cta { font-size: var(--fs-xs); }
  .product-flags { top: var(--sp-2); left: var(--sp-2); gap: 4px; }
  .product-flags .badge { font-size: 10px; padding: 2px 6px; }
  .badge { font-size: 11px; }

  /* ---------- Horizontal product rail (featured) ----------
     Shows ~1.5 cards so it reads as scrollable without a scrollbar. */
  .product-rail {
    display: flex; gap: var(--sp-3);
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--sp-2);
    scrollbar-width: none;
  }
  .product-rail::-webkit-scrollbar { display: none; }
  .product-rail > .product-card { flex: 0 0 62%; scroll-snap-align: start; }

  /* ---------- Brands: horizontal rail ---------- */
  .brand-rail {
    display: flex; gap: var(--sp-2);
    overflow-x: auto; overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--sp-2);
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--sp-4));
    padding-inline: var(--sp-4);
  }
  .brand-rail::-webkit-scrollbar { display: none; }
  .brand-rail .switcher { flex: none; }

  /* ---------- Why choose us: 2-up, no oversized cards ---------- */
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
  .trust-item { padding-top: var(--sp-4); }
  .trust-item .cat-icon { width: 32px; height: 32px; margin-bottom: var(--sp-3); }
  .trust-item .cat-icon svg { width: 16px; height: 16px; }
  .trust-item h3 { font-size: var(--fs-base); }
  .trust-item p { font-size: var(--fs-xs); margin-top: 6px; }

  /* ---------- Quotation CTA: stacked, obvious primary ---------- */
  .cta-band { padding: var(--sp-6) var(--sp-5); }
  .cta-band h2 { font-size: var(--fs-2xl); }
  .cta-band p { font-size: var(--fs-base); margin-top: var(--sp-2); }
  .cta-band .hero-actions { margin-top: var(--sp-5); gap: var(--sp-2); }
  .cta-band .hero-actions .btn { width: 100%; }

  /* ---------- Footer: compact accordion, not a wall of links ---------- */
  .store-footer { margin-top: var(--sp-8); }
  .store-footer-main {
    grid-template-columns: 1fr; gap: 0;
    padding: var(--sp-8) 0 var(--sp-4);
  }
  .store-footer-desc { margin-top: var(--sp-3); max-width: none; padding-bottom: var(--sp-6); }
  /* Each group is a full-width row with a comfortable tap target. */
  .footer-group { border-top: 1px solid var(--c-border); }
  .footer-group > summary {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 52px; padding: var(--sp-3) 0;
    cursor: pointer; pointer-events: auto;
  }
  .footer-title { margin-bottom: 0; font-size: var(--fs-base); }
  /* Chevron indicates the section can be expanded. */
  .footer-group > summary::after {
    content: ""; width: 8px; height: 8px; flex: none; margin-left: var(--sp-3);
    border-right: 1.5px solid var(--c-text-muted);
    border-bottom: 1.5px solid var(--c-text-muted);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform var(--dur-fast) var(--ease);
  }
  .footer-group[open] > summary::after { transform: rotate(225deg) translate(-2px, -2px); }
  .footer-links { gap: 0; padding-bottom: var(--sp-4); }
  .footer-links a, .footer-contact { min-height: 44px; padding: 11px 0; align-items: center; }
  .footer-links a { font-size: var(--fs-base); }
  .footer-contact { font-size: var(--fs-base); }
  .footer-contact svg { margin-top: 0; }
  .store-footer-bottom {
    flex-direction: column; align-items: flex-start; gap: var(--sp-2);
    padding: var(--sp-5) 0 calc(var(--sp-5) + var(--sp-8));
    font-size: var(--fs-xs);
  }

  /* ---------- Catalogue: filters become a bottom sheet ---------- */
  .catalog-layout { gap: var(--sp-5); }
  .filter-panel {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto;
    z-index: var(--z-modal);
    max-height: 88vh; overflow-y: auto;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    border: 0; border-top: 1px solid var(--c-border);
    box-shadow: var(--sh-xl);
    transform: translateY(100%);
    transition: transform var(--dur-slow) var(--ease-out);
    display: block; visibility: hidden;
  }
  .filter-panel.is-open { transform: translateY(0); visibility: visible; }
  .filter-panel .card-body { padding: var(--sp-4) var(--sp-4) calc(var(--sp-5) + env(safe-area-inset-bottom, 0px)); }
  .filter-title { margin-bottom: var(--sp-2); }
  .filter-link { padding: var(--sp-3); font-size: var(--fs-base); }
  .filter-block + .filter-block { margin-top: var(--sp-5); padding-top: var(--sp-5); }
  .filter-sheet-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--sp-3) var(--sp-4) 0;
  }
  .filter-sheet-head h2 { font-size: var(--fs-lg); }
  .filter-sheet-close {
    width: 36px; height: 36px; border-radius: var(--r-md);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--c-text-muted);
  }
  .filter-sheet-close:hover { background: var(--c-surface-sunken); }
  .filter-scrim {
    position: fixed; inset: 0; z-index: calc(var(--z-modal) - 1);
    background: var(--c-overlay); opacity: 0; visibility: hidden;
    transition: opacity var(--dur) var(--ease), visibility var(--dur);
  }
  .filter-scrim.is-open { opacity: 1; visibility: visible; }
  /* Apply action stays reachable while the sheet scrolls */
  .filter-sheet-actions {
    position: sticky; bottom: 0;
    background: var(--c-surface);
    padding-top: var(--sp-3);
    margin-top: var(--sp-4);
    border-top: 1px solid var(--c-border);
  }
  .catalog-sort-row select { width: 100% !important; min-width: 0 !important; }

  /* ---------- Product detail ---------- */
  .pdp-title { font-size: var(--fs-2xl); }
  .pdp-grid { gap: var(--sp-5); }
  .pdp-main-img { border-radius: var(--r-lg); }
  .pdp-thumbs { gap: var(--sp-2); }
  .pdp-meta { gap: var(--sp-2); margin-top: var(--sp-3); }
  .pdp-avail { padding: var(--sp-3); margin-top: var(--sp-4); border-radius: var(--r-md); }
  .pdp-actions { margin-top: var(--sp-5); gap: var(--sp-2); }
  .pdp-trust { grid-template-columns: 1fr; gap: var(--sp-2); margin-top: var(--sp-5); padding-top: var(--sp-5); }
  .pdp-trust-item { flex-direction: row; align-items: center; gap: var(--sp-2); }
  .spec-table th { width: 44%; padding-right: var(--sp-3); }
  .pdp-mobile-bar { padding: var(--sp-2) var(--sp-4) calc(var(--sp-2) + env(safe-area-inset-bottom, 0px)); }
  /* Reserve room so the sticky action bar never covers content */
  body.has-pdp-bar { padding-bottom: 76px; }

  /* ---------- Floating WhatsApp: safe placement ----------
     Lifted clear of the sticky PDP bar so it never covers product actions. */
  body.has-pdp-bar .wa-float {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px) + var(--sp-3));
  }

  /* ---------- Misc ---------- */
  .breadcrumbs { font-size: var(--fs-xs); }
  .prose { font-size: var(--fs-base); }
  .modal-body { padding: var(--sp-5) var(--sp-4); }

  /* ---------- Touch targets ----------
     Controls must be comfortable to tap. Compact sizes are raised on
     touch devices only, so desktop density is unchanged. */
  .btn { --btn-h: 44px; }
  .btn-sm { --btn-h: 40px; }
  .btn-icon { width: 44px; }
  .input, .select, .textarea { min-height: 44px; }
  .store-menu-btn { width: 44px; height: 44px; }
  .store-brand { padding: 4px 0; }
  .modal-close { width: 40px; height: 40px; }
  .filter-link { min-height: 44px; display: flex; align-items: center; }
  .filter-sheet-close { width: 44px; height: 44px; }
  /* Inline links that sit in a text block need breathing room to tap. */
  .pdp-brand { display: inline-flex; align-items: center; min-height: 44px; }
  .switcher { min-height: 44px; }

  /* Whole product card is one large tap target.
     The footer is non-interactive, so taps pass through to the card link. */
  .product-card { position: relative; }
  .product-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
  .product-foot { position: relative; z-index: 2; pointer-events: none; }

  /* Long product names must not force card overflow. */
  .product-name { overflow-wrap: break-word; }
}

/* Very narrow phones — collapse to a single column rather than cramping */
@media (max-width: 340px) {
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .cat-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-title { font-size: var(--fs-2xl); }
}

/* Tablet — three-up keeps cards readable between phone and desktop */
@media (min-width: 641px) and (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
