/* ═══════════════════════════════════════════════════════════════════
   AIRGAS SHOP — shared styles for shop.html + product.html
   Consumes ONLY semantic tokens from css/style.css (load after it).
   Design language matches about.html: // eyebrows, two-weight headlines,
   quiet engineered cards, signature easing, carbon accents.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --ease-film: cubic-bezier(0.25, 1, 0.5, 1);
  --dur-film: 0.8s;
}

/* navbar stays glass-dark on these pages (light content below) */
#navbar {
  background: var(--ink-900);
  background: color-mix(in srgb, var(--ink-900) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--white-pure) 6%, transparent);
}

img { height: auto; }
main { overflow-x: clip; }

/* ---------- type devices (shared with about.html) ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-accent-pressed);
}
.eyebrow::before { content: '// '; }
.on-dark .eyebrow { color: var(--orange-300); }

.h2w {
  font-family: var(--font-display);
  line-height: 1.04;
  letter-spacing: var(--tracking-tighter);
  color: var(--color-heading);
  margin: var(--space-md) 0 var(--space-lg);
  text-wrap: balance;
}
.h2w .lead { display: block; font-weight: var(--weight-black); }
.h2w .tail { display: block; font-weight: 300; }

/* ═══════════ SHOP HERO (carbon band) ═══════════ */
.shop-hero {
  position: relative;
  overflow: clip;
  background: var(--ink-900);   /* plain fallback — the gradient needs color-mix */
  background:
    radial-gradient(46rem 26rem at 82% 0%, color-mix(in srgb, var(--orange-500) 14%, transparent), transparent 62%),
    var(--ink-900);
  padding: clamp(120px, 16vh, 170px) var(--space-lg) var(--space-2xl);
}
.shop-hero-inner { max-width: var(--container-base); margin: 0 auto; }
.shop-hero .h2w { color: var(--color-text-inv); font-size: clamp(2.1rem, 4.6vw, 3.6rem); margin-bottom: var(--space-md); }
.shop-hero-lead {
  color: var(--ink-300);
  color: color-mix(in srgb, var(--white-pure) 72%, transparent);
  max-width: 38rem;
  line-height: var(--leading-relaxed);
}
.shop-hero-stats {
  display: flex; flex-wrap: wrap; gap: var(--space-lg) var(--space-2xl);
  margin-top: var(--space-xl);
}
.shop-hero-stats div {
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-300);
  color: color-mix(in srgb, var(--white-pure) 55%, transparent);
}
.shop-hero-stats strong {
  display: block;
  font-family: var(--font-display); font-weight: var(--weight-black);
  font-size: var(--text-3xl); letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  color: var(--orange-300);
}

/* ═══════════ TOOLBAR (sticky filter/search bar) ═══════════ */
.shop-toolbar {
  position: sticky; top: 68px; z-index: 200;   /* sits BELOW the navbar */
  background: var(--white-pure);
  background: color-mix(in srgb, var(--white-pure) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-sm) var(--space-lg);
  transition: top 0.35s ease;
}
/* when the navbar auto-hides on scroll-down, the toolbar takes the top edge */
#navbar.nav-hidden ~ main .shop-toolbar { top: 0; }
.shop-toolbar-inner {
  max-width: var(--container-base); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm);
}
.shop-search {
  flex: 1 1 240px; min-width: 0;
  display: flex; align-items: center; gap: var(--space-xs);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-card);
  padding: 0 var(--space-sm);
}
.shop-search svg { width: 17px; height: 17px; color: var(--color-text-muted); flex-shrink: 0; }
.shop-search input {
  width: 100%; border: 0; background: none;
  font: inherit; font-size: 16px;   /* ≥16px stops iOS zoom */
  color: var(--color-text);
  padding: 0.65rem 0;
}
.shop-search input:focus { outline: none; }
.shop-search:focus-within { border-color: var(--color-accent); box-shadow: 0 0 0 2px var(--color-accent-tint); }

.cat-chips { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.cat-chip {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: var(--color-card);
  color: var(--color-text);
  font-size: var(--text-sm); font-weight: var(--weight-medium);
  cursor: pointer;
  transition: background 0.2s var(--ease-film), border-color 0.2s var(--ease-film), color 0.2s var(--ease-film);
}
.cat-chip:hover { border-color: var(--color-accent); color: var(--color-accent-pressed); }
.cat-chip:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.cat-chip[aria-pressed="true"] {
  background: var(--ink-900); border-color: var(--ink-900); color: var(--white-pure);
}
.shop-sort {
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-card);
  color: var(--color-text);
  font: inherit; font-size: var(--text-sm);
  padding: 0.55rem 0.6rem;
  cursor: pointer;
}
.shop-sort:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.shop-count {
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-text-muted);
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ═══════════ PRODUCT GRID ═══════════ */
.shop-main { background: var(--color-bg-alt); min-height: 60vh; }
.shop-grid-wrap { max-width: var(--container-base); margin: 0 auto; padding: var(--space-2xl) var(--space-lg) var(--space-4xl); }
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: var(--space-md);
}
.p-card {
  display: flex; flex-direction: column;
  height: 100%;                       /* equal card heights within a grid row */
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s var(--ease-film), box-shadow 0.2s var(--ease-film), border-color 0.2s var(--ease-film);
  cursor: pointer;
}
.p-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--color-accent-tint); }
.p-card:active { transform: scale(0.99); }
.p-card:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.p-card-imgwrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--white-pure);
  display: grid; place-items: center;
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}
/* soft shimmer behind the photo while it loads — no more "blank card" look */
.p-card-imgwrap::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, var(--ink-50) 32%, var(--color-bg-hover) 50%, var(--ink-50) 68%);
  background-size: 220% 100%;
  animation: img-shimmer 1.6s linear infinite;
}
@keyframes img-shimmer { to { background-position: -120% 0; } }
.p-card-imgwrap img, .p-card-imgwrap .noimg { position: relative; z-index: 1; }
.p-card-imgwrap img { background: var(--white-pure); }
@media (prefers-reduced-motion: reduce) {
  .p-card-imgwrap::before { animation: none; background: var(--ink-50); }
}
.p-card-imgwrap img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s var(--ease-film);
}
.p-card:hover .p-card-imgwrap img { transform: scale(1.045); }
.p-card-imgwrap .noimg {
  color: var(--color-text-muted);
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: 0.18em; text-transform: uppercase;
}
.p-card-body { padding: var(--space-sm) var(--space-md) var(--space-md); display: flex; flex-direction: column; gap: var(--space-2xs); flex: 1; }
.p-card-cat {
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.p-badge { white-space: nowrap; }
.p-card-title {
  font-family: var(--font-display); font-weight: var(--weight-semibold);
  font-size: var(--text-base); line-height: var(--leading-snug);
  color: var(--color-heading);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;                 /* always reserve exactly two lines */
  max-height: 2.5em;
}
.p-card-price {
  margin-top: auto;
  display: flex; align-items: baseline; gap: var(--space-xs);
  font-variant-numeric: tabular-nums;
}
.p-card-price .amt { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-lg); color: var(--color-heading); }
.p-card-price .was { color: var(--color-text-muted); text-decoration: line-through; font-size: var(--text-sm); }
.p-card-price .quote {
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-accent-pressed);
}
.p-badge {
  display: inline-flex; align-self: flex-start;
  padding: 2px var(--space-xs);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.p-badge--order { background: var(--color-accent-wash); color: var(--color-accent-pressed); border: 1px solid var(--color-accent-tint); }
.p-badge--stock { background: var(--color-bg-alt); color: var(--color-text-muted); border: 1px solid var(--color-border); }

.shop-more { display: flex; justify-content: center; padding: var(--space-2xl) 0 0; }
.shop-more button {
  padding: 0.85rem 2.2rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-card);
  color: var(--color-heading);
  font: inherit; font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: border-color 0.2s var(--ease-film), transform 0.2s var(--ease-film), box-shadow 0.2s var(--ease-film);
}
.shop-more button:hover { border-color: var(--color-accent); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.shop-more button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.shop-empty {
  text-align: center; padding: var(--space-4xl) var(--space-lg);
  color: var(--color-text-muted);
}
.shop-empty strong { display: block; font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-heading); margin-bottom: var(--space-xs); }

/* ═══════════ PRODUCT DETAIL ═══════════ */
.pd-wrap { max-width: var(--container-base); margin: 0 auto; padding: calc(72px + var(--space-2xl)) var(--space-lg) var(--space-3xl); }
.pd-crumbs {
  display: flex; flex-wrap: wrap; gap: var(--space-2xs);
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}
.pd-crumbs a { color: var(--color-text-muted); text-decoration: none; }
.pd-crumbs a:hover { color: var(--color-accent-pressed); }
.pd-crumbs .sep { color: var(--color-accent); }
.pd-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-3xl); align-items: start;
}
.pd-gallery { position: sticky; top: 84px; }
.pd-main-img {
  aspect-ratio: 1 / 1;
  background: var(--white-pure);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  padding: var(--space-xl);
  overflow: hidden;
}
.pd-main-img img { max-width: 100%; max-height: 100%; object-fit: contain; transition: opacity 0.25s var(--ease-film); }
.pd-thumbs { display: flex; gap: var(--space-xs); margin-top: var(--space-sm); flex-wrap: wrap; }
.pd-thumb {
  width: 68px; height: 68px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--white-pure);
  display: grid; place-items: center;
  padding: 6px; cursor: pointer;
  transition: border-color 0.2s var(--ease-film);
}
.pd-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pd-thumb[aria-pressed="true"] { border-color: var(--color-accent); box-shadow: 0 0 0 1px var(--color-accent); }
.pd-thumb:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.pd-info h1 {
  font-family: var(--font-display); font-weight: var(--weight-black);
  font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.15;
  letter-spacing: var(--tracking-tight);
  color: var(--color-heading);
  margin: var(--space-xs) 0 var(--space-md);
  text-wrap: balance;
}
.pd-meta {
  display: flex; flex-wrap: wrap; gap: var(--space-md);
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}
.pd-price-row { display: flex; align-items: baseline; gap: var(--space-sm); margin-bottom: var(--space-lg); font-variant-numeric: tabular-nums; }
.pd-price { font-family: var(--font-display); font-weight: var(--weight-black); font-size: var(--text-3xl); color: var(--color-heading); }
.pd-price-was { color: var(--color-text-muted); text-decoration: line-through; }
.pd-quote-note {
  font-size: var(--text-sm); color: var(--color-text-muted);
  margin-top: calc(var(--space-xs) * -1); margin-bottom: var(--space-lg);
}
.pd-short { color: var(--color-text); line-height: var(--leading-relaxed); margin-bottom: var(--space-lg); }
.pd-short p { margin-bottom: var(--space-xs); }

.pd-buy { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: stretch; margin-bottom: var(--space-md); }
.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-card);
}
.qty button {
  width: 44px; height: 48px;
  border: 0; background: none; cursor: pointer;
  font-size: var(--text-lg); color: var(--color-heading);
  transition: color 0.15s var(--ease-film), background 0.15s var(--ease-film);
}
.qty button:hover { background: var(--color-bg-hover); color: var(--color-accent-pressed); }
.qty button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.qty input {
  width: 3.2ch; text-align: center; border: 0; background: none;
  font: inherit; font-size: 16px; font-variant-numeric: tabular-nums;
  color: var(--color-heading);
}
.qty input:focus { outline: none; }
.qty:focus-within { border-color: var(--color-accent); box-shadow: 0 0 0 2px var(--color-accent-tint); }
.btn-cart {
  flex: 1 1 200px;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  padding: 0 1.6rem; min-height: 48px;
  background: var(--color-accent);
  color: var(--white-pure);
  border: 0; border-radius: var(--radius-md);
  font: inherit; font-weight: var(--weight-semibold); font-size: var(--text-base);
  cursor: pointer;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--orange-500) 30%, transparent);
  transition: background 0.2s var(--ease-film), transform 0.2s var(--ease-film), box-shadow 0.2s var(--ease-film);
}
.btn-cart:hover { background: var(--color-accent-hover); transform: translateY(-1px); }
.btn-cart:active { transform: scale(0.98); }
.btn-cart:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn-cart svg { width: 18px; height: 18px; }
.pd-wa {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  min-height: 48px; padding: 0 1.3rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  color: var(--color-heading); text-decoration: none;
  font-weight: var(--weight-medium); font-size: var(--text-sm);
  transition: border-color 0.2s var(--ease-film), color 0.2s var(--ease-film);
}
.pd-wa:hover { border-color: var(--whatsapp); color: var(--color-heading); }
.pd-wa svg { width: 17px; height: 17px; fill: var(--whatsapp); }
.pd-note { font-size: var(--text-sm); color: var(--color-text-muted); }
.pd-note a { color: var(--color-accent-pressed); }

.pd-desc { max-width: var(--container-narrow); margin: var(--space-3xl) auto 0; }
.pd-desc-head { margin-bottom: var(--space-lg); }
.pd-desc-body { color: var(--color-text); line-height: var(--leading-relaxed); overflow-wrap: break-word; }
.pd-desc-body p { margin-bottom: var(--space-md); }
.pd-desc-body h1, .pd-desc-body h2, .pd-desc-body h3, .pd-desc-body h4 {
  font-family: var(--font-display); color: var(--color-heading);
  margin: var(--space-lg) 0 var(--space-sm); font-size: var(--text-lg);
}
.pd-desc-body ul, .pd-desc-body ol { padding-left: 1.3em; margin-bottom: var(--space-md); }
.pd-desc-body li { margin-bottom: var(--space-2xs); }
.pd-desc-body img { max-width: 100%; border-radius: var(--radius-sm); margin: var(--space-sm) 0; }
.pd-desc-body table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); margin-bottom: var(--space-md); }
.pd-desc-body td, .pd-desc-body th { border: 1px solid var(--color-border); padding: var(--space-xs) var(--space-sm); text-align: left; }
.pd-desc-body a { color: var(--color-accent-pressed); }

.pd-related { background: var(--color-bg-alt); border-top: 1px solid var(--color-border); }
.pd-related-inner { max-width: var(--container-base); margin: 0 auto; padding: var(--space-3xl) var(--space-lg) var(--space-4xl); }
.pd-related-inner .shop-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ═══════════ CART (FAB + drawer) ═══════════ */
.cart-fab {
  position: fixed; right: 24px; bottom: 170px; z-index: 900;
  width: 54px; height: 54px;
  border-radius: var(--radius-circle);
  border: 0;
  background: var(--ink-900);
  color: var(--white-pure);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s var(--ease-film), box-shadow 0.2s var(--ease-film);
}
.cart-fab:hover { transform: translateY(-2px); box-shadow: var(--shadow-xl); }
.cart-fab:active { transform: scale(0.96); }
.cart-fab:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.cart-fab svg { width: 22px; height: 22px; }
.cart-fab .cart-n {
  position: absolute; top: -4px; right: -4px;
  min-width: 22px; height: 22px; padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--white-pure);
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  display: grid; place-items: center;
  font-variant-numeric: tabular-nums;
}
.cart-fab[data-n="0"] .cart-n { display: none; }

.cart-backdrop {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(31, 32, 36, 0.5);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease-film);
}
.cart-backdrop.is-open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1201;
  width: min(430px, 94vw);
  background: var(--color-bg);
  box-shadow: var(--shadow-xl);
  display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.35s var(--ease-film);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}
.cart-head h2 { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-heading); }
.cart-close {
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  color: var(--color-text-muted); display: grid; place-items: center;
  border-radius: var(--radius-md);
  transition: color 0.15s var(--ease-film), background 0.15s var(--ease-film);
}
.cart-close:hover { color: var(--color-heading); background: var(--color-bg-hover); }
.cart-close:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.cart-close svg { width: 20px; height: 20px; }
.cart-items { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: var(--space-sm) var(--space-lg); }
.cart-row {
  display: grid; grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: var(--space-sm); align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}
.cart-row-img {
  width: 58px; height: 58px;
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  background: var(--white-pure);
  display: grid; place-items: center; padding: 4px;
}
.cart-row-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cart-row-t { min-width: 0; }
.cart-row-t a {
  display: block; color: var(--color-heading); text-decoration: none;
  font-size: var(--text-sm); font-weight: var(--weight-medium); line-height: var(--leading-snug);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cart-row-t a:hover { color: var(--color-accent-pressed); }
.cart-row-p { font-size: var(--text-xs); color: var(--color-text-muted); font-variant-numeric: tabular-nums; margin-top: 2px; }
.cart-row-ctrl { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-2xs); }
/* full-size steppers — scaled-down transforms shrink the touch target */
.cart-remove {
  border: 0; background: none; cursor: pointer;
  font-size: var(--text-xs); color: var(--color-text-muted);
  text-decoration: underline; padding: 4px;
}
.cart-remove:hover { color: var(--danger); }
.cart-remove:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.cart-empty { text-align: center; color: var(--color-text-muted); padding: var(--space-3xl) var(--space-lg); }
.cart-foot { border-top: 1px solid var(--color-border); padding: var(--space-md) var(--space-lg) var(--space-lg); }
.cart-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: var(--space-2xs);
  font-family: var(--font-display); font-weight: var(--weight-bold);
  color: var(--color-heading); font-variant-numeric: tabular-nums;
}
.cart-total-note { font-size: var(--text-xs); color: var(--color-text-muted); margin-bottom: var(--space-md); }
.cart-send {
  display: flex; align-items: center; justify-content: center; gap: var(--space-xs);
  width: 100%; min-height: 50px;
  background: var(--whatsapp); color: var(--white-pure);
  border: 0; border-radius: var(--radius-md);
  font: inherit; font-weight: var(--weight-semibold);
  text-decoration: none; cursor: pointer;
  transition: filter 0.2s var(--ease-film), transform 0.2s var(--ease-film);
}
.cart-send:hover { filter: brightness(1.06); transform: translateY(-1px); }
.cart-send:active { transform: scale(0.99); }
.cart-send:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.cart-send svg { width: 18px; height: 18px; fill: currentColor; }
.cart-mail {
  display: block; text-align: center; margin-top: var(--space-sm);
  font-size: var(--text-sm); color: var(--color-text-muted);
}
.cart-mail a { color: var(--color-accent-pressed); }

/* toast */
.shop-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 1300;
  transform: translate(-50%, 20px);
  background: var(--ink-900); color: var(--white-pure);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease-film), transform 0.3s var(--ease-film);
}
.shop-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* reveal (main.js fade-up handles .visible) */

/* fast, intentional taps everywhere interactive */
.qty button, .cat-chip, .btn-cart, .cart-fab, .cart-send, .cart-close, .cart-remove,
.pd-thumb, .shop-more button, .p-card, .pd-wa, .shop-sort {
  touch-action: manipulation;
}

/* selected chip must survive Windows High Contrast (colors get stripped) */
@media (forced-colors: active) {
  .cat-chip[aria-pressed="true"] { border-width: 3px; }
}

/* ---------- motion guards ---------- */
@media (prefers-reduced-motion: reduce) {
  .p-card:hover, .btn-cart:hover, .cart-fab:hover, .shop-more button:hover,
  .cart-send:hover, .cart-send:active, .btn-cart:active, .cart-fab:active, .p-card:active { transform: none; }
  .p-card:hover .p-card-imgwrap img { transform: none; }
  .cart-drawer, .cart-backdrop, .shop-toast, .shop-toolbar { transition: none; }
  .fade-up { opacity: 1; transform: none; transition: none; }
}

/* ---------- print: catalog reads as a clean product list ---------- */
@media print {
  #navbar, .shop-toolbar, .cart-fab, .cart-drawer, .cart-backdrop,
  .whatsapp-btn, .back-to-top, .shop-toast, .shop-more, #scroll-progress { display: none !important; }
  .shop-hero { background: none !important; padding-top: var(--space-xl); }
  .shop-hero .h2w, .shop-hero-lead, .shop-hero-stats div, .shop-hero-stats strong { color: var(--ink-900) !important; }
  .p-card, .pd-grid { break-inside: avoid; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .pd-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .pd-gallery { position: static; }
  .shop-toolbar { padding: var(--space-sm) var(--space-md); }
  /* visually hidden but still announced (it is an aria-live region) */
  .shop-count {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}
@media (max-width: 560px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
  .p-card-imgwrap { padding: var(--space-xs); }
  .cart-fab { right: 16px; bottom: 150px; width: 50px; height: 50px; }
  .shop-hero { padding-left: var(--space-md); padding-right: var(--space-md); }
  .shop-grid-wrap { padding-left: var(--space-md); padding-right: var(--space-md); }
}
