/* =====================================================
   M3A Catalog — Phase A modern product grid
   Loaded only on /products
   ===================================================== */

:root {
  --cat-bg: #f7f8fa;
  --cat-surface: #ffffff;
  --cat-border: #e7eaee;
  --cat-text: #111827;
  --cat-muted: #6b7280;
  --cat-accent: #e07c11;
  --cat-accent-dark: #b55e0a;
  --cat-navy: #0a1f3c;
  --cat-radius: 14px;
  --cat-radius-sm: 8px;
  --cat-shadow: 0 1px 3px rgba(0,0,0,.04), 0 8px 24px -8px rgba(0,0,0,.06);
  --cat-shadow-hover: 0 4px 8px rgba(0,0,0,.06), 0 18px 36px -12px rgba(0,0,0,.16);
}

/* ── Catalog shell ─────────────────────────────────────── */
.cat-page { background: var(--cat-bg); padding: 1.25rem 0 4rem; min-height: 70vh; }
.cat-container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; }

/* ── Hero / page header ───────────────────────────────── */
.cat-hero {
  background: linear-gradient(135deg, #0a1f3c 0%, #133060 100%);
  color: #fff;
  padding: 2.5rem 0 2rem;
  border-radius: 0;
  margin-bottom: 1.5rem;
}
.cat-hero .cat-container { display: flex; flex-direction: column; gap: .5rem; }
.cat-hero h1 { font-size: 1.85rem; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.cat-hero p { color: rgba(255,255,255,.7); font-size: .9rem; margin: 0; }
.cat-hero-stats { display: flex; gap: 1.5rem; margin-top: .6rem; font-size: .8rem; color: rgba(255,255,255,.6); }
.cat-hero-stats strong { color: #fff; font-weight: 700; }

/* ── Toolbar (sticky filter bar) ─────────────────────────── */
.cat-toolbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--cat-border);
  padding: .85rem 0;
  margin-bottom: 1.25rem;
}
.cat-toolbar-row {
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Search */
.cat-search {
  position: relative;
  flex: 1 1 280px;
  min-width: 240px;
}
.cat-search input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--cat-border);
  border-radius: 999px;
  padding: 0 1.05rem 0 2.6rem;
  font-size: .92rem;
  background: #fff;
  color: var(--cat-text);
  transition: border-color .15s, box-shadow .15s;
}
.cat-search input:focus {
  outline: none;
  border-color: var(--cat-accent);
  box-shadow: 0 0 0 4px rgba(224,124,17,.12);
}
.cat-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cat-muted);
  pointer-events: none;
}
.cat-search-clear {
  position: absolute;
  right: .9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #eef0f3;
  color: var(--cat-muted);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  cursor: pointer;
  border: none;
}
.cat-search.has-text .cat-search-clear { display: inline-flex; }

/* Search suggestions */
.cat-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--cat-border);
  border-radius: var(--cat-radius);
  box-shadow: var(--cat-shadow-hover);
  max-height: 360px;
  overflow-y: auto;
  display: none;
  z-index: 60;
}
.cat-suggest.open { display: block; }
.cat-suggest a {
  display: block;
  padding: .65rem 1rem;
  color: var(--cat-text);
  text-decoration: none;
  font-size: .85rem;
  border-bottom: 1px solid #f3f4f6;
  line-height: 1.35;
}
.cat-suggest a:last-child { border-bottom: none; }
.cat-suggest a:hover { background: #fafbfc; }
.cat-suggest .sg-brand {
  font-size: .65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: .4rem;
  vertical-align: middle;
}
.cat-suggest .sg-brand.vire { background: var(--cat-navy); color: #fff; }
.cat-suggest .sg-brand.diohm { background: var(--cat-accent); color: #fff; }
.cat-suggest .sg-empty { padding: 1rem; text-align: center; color: var(--cat-muted); font-size: .85rem; }

/* Sort */
.cat-sort {
  height: 44px;
  border: 1px solid var(--cat-border);
  border-radius: 999px;
  padding: 0 2.2rem 0 1rem;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right .9rem center / 12px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--cat-text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

/* Brand toggle */
.cat-brand-tabs {
  display: inline-flex;
  background: #eef0f3;
  border-radius: 999px;
  padding: 4px;
}
.cat-brand-tabs button {
  border: none;
  background: transparent;
  color: var(--cat-muted);
  font-size: .82rem;
  font-weight: 600;
  padding: .45rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s ease;
}
.cat-brand-tabs button.active {
  background: #fff;
  color: var(--cat-text);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}

/* Mobile filter button */
.cat-filter-btn {
  display: none;
  height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--cat-border);
  border-radius: 999px;
  background: #fff;
  color: var(--cat-text);
  font-size: .85rem;
  font-weight: 600;
  align-items: center;
  gap: .4rem;
  cursor: pointer;
}

/* ── Category chips row ──────────────────────────────────── */
.cat-chips {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .75rem;
}
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .42rem .85rem;
  font-size: .78rem;
  font-weight: 600;
  background: #fff;
  border: 1px solid var(--cat-border);
  color: var(--cat-text);
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  transition: all .15s ease;
  white-space: nowrap;
}
.cat-chip:hover { border-color: var(--cat-accent); color: var(--cat-accent); }
.cat-chip.active {
  background: var(--cat-navy);
  border-color: var(--cat-navy);
  color: #fff;
}
.cat-chip.active:hover { background: var(--cat-navy); color: #fff; }
.cat-chip i { font-size: .75rem; }

/* ── Active filter pills ────────────────────────────────── */
.cat-active-row {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
  min-height: 28px;
}
.cat-active-row .cat-count {
  font-size: .85rem;
  color: var(--cat-muted);
}
.cat-active-row .cat-count strong { color: var(--cat-text); font-weight: 700; }
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(224,124,17,.08);
  color: var(--cat-accent-dark);
  border: 1px solid rgba(224,124,17,.18);
  border-radius: 999px;
  padding: .25rem .65rem;
  font-size: .75rem;
  font-weight: 600;
}
.cat-pill button {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: .85rem;
  line-height: 1;
  padding: 0;
}
.cat-clear-all {
  background: none;
  border: none;
  color: var(--cat-muted);
  font-size: .75rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

/* ── Product grid ───────────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

/* ── Product card ────────────────────────────────────────── */
.cat-card {
  background: var(--cat-surface);
  border-radius: var(--cat-radius);
  overflow: hidden;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--cat-border);
  box-shadow: var(--cat-shadow);
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--cat-shadow-hover);
}

/* Image area */
.cat-card__img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    linear-gradient(135deg, #fafbfc 0%, #f3f5f7 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--cat-border);
}
.cat-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 58%;  /* shift focal point slightly down to hide top-of-image artifacts in scraped sources */
  padding: 12% 10% 8%;
  transition: transform .35s ease;
  image-rendering: -webkit-optimize-contrast;
}
.cat-card:hover .cat-card__img { transform: scale(1.04); }
.cat-card__img.is-loading { opacity: 0; }
.cat-card__img.is-loaded { opacity: 1; transition: opacity .3s ease, transform .35s ease; }

/* Brand badge */
.cat-card__brand {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: .65rem;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 4px;
  letter-spacing: .04em;
  z-index: 2;
}
.cat-card__brand.vire { background: var(--cat-navy); color: #fff; }
.cat-card__brand.diohm { background: var(--cat-accent); color: #fff; }

/* Bluetooth Certified pill (matches Alibaba/Vire storefront style) */
.cat-card__bt {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 18px;
  padding: 0 8px 0 5px;
  background: #1474fc;
  color: #fff;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .02em;
  border-radius: 3px;
  text-transform: none;
  z-index: 2;
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.cat-card__bt::before {
  content: "";
  width: 9px;
  height: 14px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 36' fill='%23fff'><path d='M12 1L4 8l8 8-8 8 8 7 9-9-7-7 7-7L12 1zm2 5.2l3.5 3.4L14 13.1V6.2zm0 12.4l3.5 3.4L14 25.4v-6.8z'/></svg>") no-repeat center / contain;
}

/* MII badge */
.cat-card__mii {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 999px;
  padding: 4px 10px 4px 5px;
  font-size: .65rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: #111;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.cat-card__mii::before {
  content: "";
  width: 18px;
  height: 12px;
  background-image: url("/static/img/in-flag.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,.1);
  display: inline-block;
  flex-shrink: 0;
}

/* Image dot indicators (for multi-image) */
.cat-card__dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 2;
}
.cat-card__dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0,0,0,.25);
  transition: background .2s;
}
.cat-card__dots span.active { background: var(--cat-accent); width: 14px; border-radius: 3px; }

/* Body */
.cat-card__body {
  padding: .9rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1;
}
.cat-card__category {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--cat-muted);
}
.cat-card__model {
  font-family: 'Roboto Mono', monospace;
  font-size: .72rem;
  color: var(--cat-accent);
  font-weight: 700;
  letter-spacing: .04em;
}
.cat-card__name {
  font-size: .92rem;
  font-weight: 700;
  color: var(--cat-text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}
.cat-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin-top: .15rem;
  min-height: 22px;
}
.cat-card__spec {
  font-size: .65rem;
  background: #f3f5f7;
  border-radius: 4px;
  padding: 2px 7px;
  color: var(--cat-muted);
  font-weight: 600;
}
.cat-card__divider { border-top: 1px solid var(--cat-border); margin: .5rem 0 .35rem; }
.cat-card__price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: .5rem;
}
.cat-card__price {
  font-size: .95rem;
  font-weight: 800;
  color: var(--cat-text);
  line-height: 1.15;
}
.cat-card__moq {
  font-size: .68rem;
  color: var(--cat-muted);
  margin-top: 2px;
}
.cat-card__cta {
  background: var(--cat-navy);
  color: #fff;
  border-radius: 8px;
  padding: .5rem .75rem;
  font-size: .72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  white-space: nowrap;
  text-decoration: none;
  transition: background .2s ease;
}
.cat-card:hover .cat-card__cta { background: var(--cat-accent); }

/* ── Skeleton loader ────────────────────────────────────── */
@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}
.cat-skeleton {
  background: var(--cat-surface);
  border-radius: var(--cat-radius);
  border: 1px solid var(--cat-border);
  overflow: hidden;
}
.cat-skeleton .sk { background: linear-gradient(90deg, #eef1f4 0px, #f8fafc 80px, #eef1f4 160px); background-size: 240px 100%; animation: shimmer 1.4s infinite linear; border-radius: 6px; }
.cat-skeleton .sk-img { aspect-ratio: 1/1; border-radius: 0; }
.cat-skeleton .sk-body { padding: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.cat-skeleton .sk-line { height: 11px; }
.cat-skeleton .sk-line.w70 { width: 70%; }
.cat-skeleton .sk-line.w50 { width: 50%; }
.cat-skeleton .sk-line.w90 { width: 90%; }

/* ── Load more sentinel ─────────────────────────────────── */
.cat-loadmore {
  margin: 2.5rem auto 1rem;
  text-align: center;
  color: var(--cat-muted);
  font-size: .85rem;
  min-height: 50px;
}
.cat-loadmore .spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e7eaee;
  border-top-color: var(--cat-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}
.cat-loadmore .end {
  font-size: .8rem;
  color: var(--cat-muted);
  padding: .75rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Pagination ─────────────────────────────────────────── */
.cat-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .4rem;
}
.cat-pagination button {
  min-width: 38px;
  height: 38px;
  padding: 0 .65rem;
  border: 1px solid var(--cat-border, #e1e5ea);
  background: var(--cat-surface, #fff);
  color: var(--cat-text, #1f2937);
  font-size: .85rem;
  font-weight: 700;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  transition: background .18s ease, color .18s ease,
              border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.cat-pagination button:hover:not(:disabled):not(.active) {
  border-color: var(--cat-accent, #e07c11);
  color: var(--cat-accent, #e07c11);
  transform: translateY(-2px);
}
.cat-pagination .pg-num.active {
  background: var(--cat-accent, #e07c11);
  border-color: var(--cat-accent, #e07c11);
  color: #fff;
  box-shadow: 0 6px 16px -5px rgba(224,124,17,.6);
  cursor: default;
}
.cat-pagination button:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.cat-pagination .pg-gap {
  min-width: 22px;
  text-align: center;
  color: var(--cat-muted, #9aa3ad);
  font-weight: 700;
}
.cat-pageinfo {
  text-align: center;
  font-size: .78rem;
  color: var(--cat-muted, #9aa3ad);
  margin-top: .6rem;
}

/* Smooth page transition for the product grid */
.cat-grid { opacity: 1; }
.cat-grid.is-ready > .cat-card {
  animation: catCardIn .42s cubic-bezier(.22,.61,.36,1) both;
}
.cat-grid.is-ready > .cat-card:nth-child(1)  { animation-delay: .02s; }
.cat-grid.is-ready > .cat-card:nth-child(2)  { animation-delay: .05s; }
.cat-grid.is-ready > .cat-card:nth-child(3)  { animation-delay: .08s; }
.cat-grid.is-ready > .cat-card:nth-child(4)  { animation-delay: .11s; }
.cat-grid.is-ready > .cat-card:nth-child(5)  { animation-delay: .14s; }
.cat-grid.is-ready > .cat-card:nth-child(6)  { animation-delay: .17s; }
.cat-grid.is-ready > .cat-card:nth-child(7)  { animation-delay: .20s; }
.cat-grid.is-ready > .cat-card:nth-child(8)  { animation-delay: .23s; }
@keyframes catCardIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cat-grid.is-ready > .cat-card { animation: none; }
  .cat-pagination button:hover:not(:disabled):not(.active) { transform: none; }
}

/* ── Empty state ────────────────────────────────────────── */
.cat-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--cat-muted);
}
.cat-empty .icon { font-size: 2.5rem; margin-bottom: .5rem; opacity: .5; }
.cat-empty h3 { color: var(--cat-text); font-size: 1.1rem; font-weight: 700; margin: 0 0 .35rem; }
.cat-empty p { margin: 0; font-size: .9rem; }

/* ── Mobile filter drawer ───────────────────────────────── */
@media (max-width: 768px) {
  .cat-toolbar-row > .cat-brand-tabs,
  .cat-toolbar-row > .cat-chips-inline { display: none; }
  .cat-filter-btn { display: inline-flex; }
  .cat-chips { margin-top: 0; }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; }
  .cat-card__body { padding: .65rem .8rem .8rem; gap: .3rem; }
  .cat-card__name { font-size: .82rem; min-height: 2.2em; }
  .cat-card__price { font-size: .85rem; }
  .cat-card__cta { padding: .4rem .55rem; font-size: .68rem; }
  .cat-hero { padding: 1.5rem 0 1.25rem; margin-bottom: 1rem; }
  .cat-hero h1 { font-size: 1.4rem; }
}

/* Drawer overlay */
.cat-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 100;
  display: none;
}
.cat-drawer-overlay.open { display: block; }
.cat-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  z-index: 101;
  border-radius: 18px 18px 0 0;
  padding: 1.25rem 1.25rem 1.5rem;
  transform: translateY(100%);
  transition: transform .25s ease;
  max-height: 85vh;
  overflow-y: auto;
}
.cat-drawer.open { transform: translateY(0); }
.cat-drawer h4 { margin: 0 0 1rem; font-size: 1rem; font-weight: 700; }
.cat-drawer-section { margin-bottom: 1.25rem; }
.cat-drawer-section-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cat-muted); margin-bottom: .5rem; font-weight: 700; }
.cat-drawer-actions { display: flex; gap: .5rem; }
.cat-drawer-actions button { flex: 1; height: 44px; border-radius: 999px; font-weight: 700; font-size: .85rem; border: 1px solid var(--cat-border); cursor: pointer; }
.cat-drawer-actions .apply { background: var(--cat-navy); color: #fff; border-color: var(--cat-navy); }

/* ═══════════════════════════════════════════════════════════
   Premium 3D depth layer — subtle, GPU-light (transform +
   box-shadow + opacity only). Honours reduced-motion.
   ═══════════════════════════════════════════════════════════ */

/* ── Product cards: layered shadow + lift ── */
.cat-card {
  box-shadow:
    0 1px 2px rgba(16,24,40,.04),
    0 4px 10px -3px rgba(16,24,40,.07),
    0 18px 36px -14px rgba(16,24,40,.12);
  transition: transform .35s cubic-bezier(.22,.61,.36,1),
              box-shadow .35s cubic-bezier(.22,.61,.36,1);
}
.cat-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 2px 4px rgba(16,24,40,.05),
    0 14px 28px -8px rgba(16,24,40,.12),
    0 34px 60px -18px rgba(16,24,40,.22);
}

/* ── Image container: floating product, gradient stage, glass sheen ── */
.cat-card__img-wrap {
  background: radial-gradient(125% 120% at 50% 22%, #ffffff 0%, #eef1f5 100%);
}
/* soft contact shadow beneath the floating product */
.cat-card__img-wrap::after {
  content: "";
  position: absolute;
  left: 20%; right: 20%; bottom: 7%;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(16,24,40,.22), transparent 72%);
  filter: blur(5px);
  opacity: .45;
  z-index: 0;
  transition: opacity .35s ease, left .35s ease, right .35s ease;
}
.cat-card:hover .cat-card__img-wrap::after {
  opacity: .75; left: 15%; right: 15%;
}
/* diagonal glass-light sweep on hover */
.cat-card__img-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(125deg, transparent 42%,
              rgba(255,255,255,.42) 49%, transparent 57%);
  transform: translateX(-130%);
  transition: transform .7s cubic-bezier(.22,.61,.36,1);
}
.cat-card:hover .cat-card__img-wrap::before { transform: translateX(130%); }
.cat-card__img { position: relative; z-index: 1; }
.cat-card:hover .cat-card__img { transform: scale(1.07); }

/* ── Feature chips: subtle raised depth ── */
.cat-card__spec {
  background: linear-gradient(180deg, #f7f9fb, #eef1f5);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset,
              0 1px 2px rgba(16,24,40,.06);
  border: 1px solid rgba(16,24,40,.05);
}

/* ── "View" CTA: 3D button ── */
.cat-card__cta {
  background: linear-gradient(180deg, #14305c 0%, #0a1f3c 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset,
              0 3px 8px -1px rgba(10,31,60,.4);
  transition: background .2s ease, box-shadow .2s ease, transform .12s ease;
}
.cat-card:hover .cat-card__cta {
  background: linear-gradient(180deg, #f0931e 0%, #e07c11 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset,
              0 5px 14px -2px rgba(224,124,17,.5);
}
.cat-card__cta:active { transform: translateY(1px); }

/* ── Brand / BT / MII badges: lift off the surface ── */
.cat-card__brand,
.cat-card__bt,
.cat-card__mii {
  box-shadow: 0 2px 6px rgba(16,24,40,.22);
}

/* ═══ Product detail page 3D ═══ */
.pd-main {
  box-shadow:
    0 1px 2px rgba(16,24,40,.04),
    0 8px 20px -6px rgba(16,24,40,.10),
    0 28px 50px -18px rgba(16,24,40,.16);
  background: radial-gradient(130% 120% at 50% 20%, #ffffff 0%, #eef1f5 100%);
  transition: box-shadow .35s ease;
}
.pd-main::after {
  content: "";
  position: absolute;
  left: 22%; right: 22%; bottom: 6%;
  height: 20px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(16,24,40,.20), transparent 72%);
  filter: blur(7px);
  opacity: .5;
  pointer-events: none;
}
.pd-thumbs img {
  box-shadow: 0 1px 3px rgba(16,24,40,.10);
  transition: transform .2s ease, box-shadow .2s ease, border-color .15s ease;
}
.pd-thumbs img:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(16,24,40,.18);
}

/* Pricing tier cards — depth + raised "best" slab */
.pd-tiers {
  box-shadow:
    0 1px 2px rgba(16,24,40,.04),
    0 10px 24px -10px rgba(16,24,40,.14);
}
.pd-tier {
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.pd-tier.best {
  box-shadow: 0 8px 20px -8px rgba(224,124,17,.45) inset;
}
.pd-tier:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: 0 10px 22px -10px rgba(16,24,40,.25);
  border-radius: 10px;
}

/* Detail action buttons — 3D */
.pd-btn-primary {
  background: linear-gradient(180deg, #14305c 0%, #0a1f3c 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset,
              0 4px 12px -2px rgba(10,31,60,.4);
}
.pd-btn-primary:hover {
  background: linear-gradient(180deg, #f0931e 0%, #e07c11 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset,
              0 7px 18px -3px rgba(224,124,17,.5);
  transform: translateY(-2px);
}
.pd-btn-outline {
  box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 3px 8px -3px rgba(16,24,40,.12);
}
.pd-btn-outline:hover { transform: translateY(-2px); }
.pd-btn-primary, .pd-btn-outline { transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.pd-btn-primary:active, .pd-btn-outline:active { transform: translateY(0); }

/* Feature pills on detail page — raised */
.pd-feat {
  background: linear-gradient(180deg, #f7f9fb, #eef1f5);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 1px 2px rgba(16,24,40,.07);
}

/* ── Performance / accessibility guard ── */
@media (prefers-reduced-motion: reduce) {
  .cat-card, .cat-card__img, .cat-card__cta, .cat-card__img-wrap::before,
  .pd-tier, .pd-btn-primary, .pd-btn-outline, .pd-thumbs img {
    transition: none !important;
  }
  .cat-card:hover { transform: none; }
  .cat-card:hover .cat-card__img { transform: none; }
  .cat-card__img-wrap::before { display: none; }
}
