/* XinHammer Product Catalog (/products/) — Flagship Luminous Aesthetic (官网 × 大锤清单风格, Light & Dark 1:1) */

body.products-flagship-page {
  --pf-canvas: #ffffff;
  --pf-mist: #f5f7fb;
  --pf-surface: #ffffff;
  --pf-ink: #0f172a;
  --pf-secondary: #525e75;
  --pf-muted: #78849a;
  --pf-border: rgba(15, 23, 42, .075);
  --pf-border-strong: rgba(15, 23, 42, .13);
  --pf-cobalt: #2350dc;
  --pf-obsidian: #111827;
  --pf-ease: cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--pf-canvas);
  color: var(--pf-ink);
}

/* Band 1 renders its own full-bleed Pearl-Grid wash */
body.products-flagship-page::before {
  display: none;
}

.prod-main {
  min-width: 0;
}

/* ============================================================
   Band 1: Ethereal Pearl-Grid Daylight Hero + Ecosystem Bento
   ============================================================ */
.prod-hero-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(1.9rem, 3.8vw, 3.35rem) clamp(2.2rem, 4.2vw, 3.5rem);
  background:
    radial-gradient(ellipse 62% 66% at 76% 42%, rgba(69, 120, 255, .13), transparent 66%),
    radial-gradient(ellipse 46% 54% at 14% 84%, rgba(255, 194, 88, .15), transparent 60%),
    linear-gradient(128deg, rgba(255, 255, 255, .96) 14%, rgba(242, 246, 255, .94) 52%, rgba(250, 248, 255, .96) 100%);
  border-bottom: 1px solid rgba(15, 23, 42, .055);
}

.prod-hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, .034) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, .034) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 88% 84% at 52% 45%, #000 32%, transparent 94%);
  -webkit-mask-image: radial-gradient(ellipse 88% 84% at 52% 45%, #000 32%, transparent 94%);
}

.prod-hero-band::after {
  content: "";
  position: absolute;
  inset: -12% -10% auto -10%;
  height: 76%;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 22%, rgba(255, 255, 255, .78) 44%, transparent 62%);
  opacity: .85;
}

.prod-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: center;
  gap: clamp(1.6rem, 4vw, 3.8rem);
}

.prod-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.prod-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.05rem;
  padding: .3rem .86rem;
  border: 1px solid rgba(35, 80, 220, .14);
  border-radius: 9999px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 2px 10px -4px rgba(35, 80, 220, .12);
  color: #334155;
  font-size: .8rem;
  font-weight: 560;
  letter-spacing: .02em;
}

.prod-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2554e6, #8b5cf6);
  box-shadow: 0 0 0 3px rgba(37, 84, 230, .16);
  flex: none;
}

.prod-hero-copy h1 {
  margin: 0;
  color: var(--pf-ink);
  font-size: clamp(2.1rem, 3.9vw, 3.45rem);
  font-weight: 680;
  line-height: 1.18;
  letter-spacing: -.032em;
  text-wrap: balance;
}

.prod-hero-copy h1 span {
  display: inline-block;
  background: linear-gradient(100deg, #1d4ed8 0%, #4f46e5 52%, #d97706 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.prod-hero-lead {
  margin: 1rem 0 1.55rem;
  max-width: 31em;
  color: var(--pf-secondary);
  font-size: clamp(.95rem, 1.12vw, 1.05rem);
  line-height: 1.78;
}

.prod-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem .85rem;
}

.prod-hero-actions .text-link {
  margin-inline-start: .2rem;
  font-size: .9rem;
  font-weight: 540;
}

/* Right Column: Liquid-Porcelain Ecosystem Spotlight Card */
.prod-spotlight-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  padding: 1.35rem 1.45rem;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 1.55rem;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03), 0 22px 48px -22px rgba(15, 23, 42, .14), inset 0 1px 0 rgba(255, 255, 255, .95);
}

.prod-spotlight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.prod-spotlight-title {
  margin: 0;
  color: var(--pf-ink);
  font-size: .88rem;
  font-weight: 620;
  letter-spacing: .01em;
}

.prod-live-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .2rem .66rem;
  border-radius: 9999px;
  background: #ecfdf5;
  border: 1px solid rgba(16, 185, 129, .2);
  color: #047857;
  font-size: .74rem;
  font-weight: 580;
  white-space: nowrap;
}

.prod-live-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .2);
}

.prod-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
  margin: 0;
}

.prod-stat-tile {
  padding: .75rem .85rem;
  border: 1px solid rgba(15, 23, 42, .065);
  border-radius: 1rem;
  background: rgba(246, 248, 253, .85);
}

.prod-stat-tile dt {
  color: var(--pf-muted);
  font-size: .74rem;
  font-weight: 500;
}

.prod-stat-tile dd {
  margin: .22rem 0 0;
  display: flex;
  align-items: baseline;
  gap: .3rem;
}

.prod-stat-tile strong {
  color: var(--pf-ink);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.prod-stat-tile span {
  color: var(--pf-secondary);
  font-size: .74rem;
}

.prod-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .58rem;
}

.prod-quick-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .58rem .72rem;
  border: 1px solid rgba(15, 23, 42, .065);
  border-radius: .95rem;
  background: #ffffff;
  color: var(--pf-ink);
  text-decoration: none;
  transition: transform .18s var(--pf-ease), border-color .18s ease, box-shadow .18s ease;
}

.prod-quick-item:hover {
  transform: translateY(-2px);
  border-color: rgba(35, 80, 220, .24);
  box-shadow: 0 10px 22px -12px rgba(35, 80, 220, .2);
  text-decoration: none;
}

.prod-quick-item img {
  width: 2.3rem;
  height: 2.3rem;
  padding: .18rem;
  border-radius: .66rem;
  background: #f6f8fd;
  border: 1px solid rgba(15, 23, 42, .06);
  flex: none;
  object-fit: contain;
  display: block;
}

.prod-quick-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.prod-quick-copy strong {
  font-size: .88rem;
  font-weight: 620;
  line-height: 1.25;
  color: var(--pf-ink);
}

.prod-quick-copy span {
  font-size: .74rem;
  color: var(--pf-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prod-quick-arrow {
  margin-inline-start: auto;
  color: #94a3b8;
  font-size: .82rem;
  transition: transform .16s ease, color .16s ease;
}

.prod-quick-item:hover .prod-quick-arrow {
  color: var(--pf-cobalt);
  transform: translateX(2px);
}

.prod-spotlight-foot {
  margin: 0;
  padding-top: .7rem;
  border-top: 1px solid rgba(15, 23, 42, .06);
  color: var(--pf-muted);
  font-size: .78rem;
  line-height: 1.5;
}

/* ============================================================
   Band 2: Soft Mist Showcase Band + Floating Glass Command Dock
   ============================================================ */
.prod-showcase-band {
  padding-block: clamp(2rem, 4vw, 3.3rem) clamp(3.2rem, 6vw, 5rem);
  background: var(--pf-mist);
}

.prod-command-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  margin-bottom: clamp(1.35rem, 2.8vw, 2rem);
  padding: .52rem .6rem;
  border: 1px solid rgba(15, 23, 42, .075);
  border-radius: 1.3rem;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 6px rgba(15, 23, 42, .03), 0 14px 32px -18px rgba(15, 23, 42, .11);
}

.products-flagship-page .catalog-filters {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  gap: .25rem;
}

.products-flagship-page .catalog-filters button {
  min-height: 36px;
  padding: .28rem .84rem;
  font-size: .85rem;
  font-weight: 520;
  color: #475569;
  white-space: nowrap;
}

.products-flagship-page .catalog-filters .filter-count {
  margin-inline-start: .18rem;
  font-size: .75rem;
  opacity: .68;
  font-variant-numeric: tabular-nums;
}

.products-flagship-page .catalog-filters button[aria-pressed="true"] .filter-count {
  opacity: .85;
}

/* Inline Search Box inside Command Dock */
.prod-search-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: .45rem;
  min-width: min(100%, 15.5rem);
  padding: 0 .7rem 0 .82rem;
  height: 38px;
  border: 1px solid rgba(15, 23, 42, .09);
  border-radius: 9999px;
  background: #f6f8fd;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.prod-search-box:focus-within {
  border-color: rgba(35, 80, 220, .35);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(35, 80, 220, .09);
}

.prod-search-icon {
  color: #94a3b8;
  flex: none;
}

.prod-search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--pf-ink);
  font: inherit;
  font-size: .85rem;
  outline: none;
}

.prod-search-box input::placeholder {
  color: #94a3b8;
}

.prod-search-box input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.prod-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: rgba(15, 23, 42, .08);
  color: #475569;
  font-size: .85rem;
  line-height: 1;
  cursor: pointer;
  flex: none;
}

.prod-search-clear[hidden] {
  display: none;
}

.prod-search-clear:hover {
  background: rgba(15, 23, 42, .16);
  color: #0f172a;
}

.prod-search-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 .32rem;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: .36rem;
  background: #ffffff;
  color: #94a3b8;
  font-family: ui-monospace, Consolas, monospace;
  font-size: .7rem;
  line-height: 1;
  flex: none;
}

/* Flagship 24px Liquid-Porcelain Product Cards */
.products-flagship-page .product-catalog .product-grid {
  gap: 1.15rem;
  margin-bottom: 0;
}

.products-flagship-page .product-catalog .product-card {
  border: 1px solid rgba(15, 23, 42, .065);
  border-radius: 1.4rem;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .025), 0 12px 30px -16px rgba(15, 23, 42, .08);
  transition: transform .26s var(--pf-ease), border-color .22s ease, box-shadow .26s ease;
}

.products-flagship-page .product-catalog .product-card:is(:hover, :focus-within) {
  transform: translateY(-4px);
  border-color: rgba(35, 80, 220, .24);
  box-shadow: 0 6px 16px rgba(15, 23, 42, .05), 0 24px 44px -18px rgba(35, 80, 220, .18);
}

.products-flagship-page .product-catalog .product-visual {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef2fa;
}

.products-flagship-page .product-catalog .product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.products-flagship-page .product-visual .product-visual-badge {
  top: .7rem;
  left: .7rem;
  padding: .2rem .62rem;
  border-radius: 9999px;
  font-size: .72rem;
  font-weight: 560;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 4px 12px -4px rgba(15, 23, 42, .22);
}

/* Top-Right Warm Gold Coin Micro-Badge on XinHammer Pass Products */
.product-coin-badge {
  position: absolute;
  top: .7rem;
  right: .7rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  padding: .2rem .58rem;
  border-radius: 9999px;
  background: rgba(255, 251, 235, .94);
  border: 1px solid rgba(217, 119, 6, .24);
  color: #b45309;
  font-size: .71rem;
  font-weight: 600;
  line-height: 1.25;
  box-shadow: 0 4px 12px -4px rgba(180, 83, 9, .24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.product-coin-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.products-flagship-page .product-catalog .product-copy {
  padding: 1.05rem 1.15rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.products-flagship-page .product-catalog .product-copy h3 {
  display: flex;
  align-items: center;
  gap: .62rem;
  margin: 0 0 .45rem;
  font-size: 1.1rem;
  font-weight: 640;
  color: var(--pf-ink);
  letter-spacing: -.015em;
}

.products-flagship-page .product-copy h3 img {
  width: 2.6rem;
  height: 2.6rem;
  padding: .22rem;
  border-radius: .75rem;
  background: #f6f8fd;
  border: 1px solid rgba(15, 23, 42, .06);
  object-fit: contain;
  flex: none;
}

.product-new-tag {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  padding: .12rem .46rem;
  border: 1px solid rgba(35, 80, 220, .22);
  border-radius: 9999px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  color: #1d4ed8;
  font-size: .68rem;
  font-weight: 640;
  line-height: 1.3;
  letter-spacing: .01em;
  flex: none;
  white-space: nowrap;
}

.products-flagship-page .product-catalog .product-copy > p:not(.product-state) {
  font-size: .86rem;
  color: var(--pf-secondary);
  line-height: 1.5;
}

.products-flagship-page .product-tags {
  margin: .65rem 0 .2rem;
  gap: .34rem;
}

.products-flagship-page .product-tags li {
  padding: .16rem .52rem;
  border-radius: 9999px;
  background: #f3f6fc;
  border: 1px solid rgba(15, 23, 42, .05);
  color: #5b677d;
  font-size: .72rem;
  font-weight: 480;
}

.products-flagship-page .product-card-actions {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: .85rem;
  border-top: 1px solid rgba(15, 23, 42, .055);
  margin-top: .85rem;
  gap: .35rem;
}

.products-flagship-page .product-catalog .product-link {
  min-height: 36px;
  padding: .34rem .86rem;
  border-radius: 9999px;
  background: #f1f5fc;
  color: #1d4ed8;
  font-size: .83rem;
  font-weight: 560;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.products-flagship-page .product-catalog .product-card:is(:hover, :focus-within) .product-link {
  background: #111827;
  color: #ffffff;
  box-shadow: 0 6px 14px -6px rgba(15, 23, 42, .35);
}

.products-flagship-page .product-preview {
  min-height: 36px;
  min-width: 44px;
  padding: 0 .68rem;
  border-radius: 9999px;
  color: #64748b;
  font-size: .8rem;
  font-weight: 540;
}

.products-flagship-page .product-preview:is(:hover, :focus-visible) {
  background: rgba(15, 23, 42, .06);
  color: #0f172a;
}

/* Graceful Empty State when Search has 0 Matches */
.prod-empty-state {
  margin-top: 1.25rem;
  padding: 2.6rem 1.5rem;
  text-align: center;
  border: 1px dashed rgba(15, 23, 42, .14);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, .82);
}

.prod-empty-state[hidden] {
  display: none;
}

.prod-empty-state p {
  margin: 0 0 1rem;
  color: var(--pf-secondary);
  font-size: .95rem;
}
.prod-empty-mascot {
  display: flex;
  justify-content: center;
  margin-bottom: .75rem;
}
.prod-empty-mascot img {
  width: 132px;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(15, 23, 42, .12));
}

/* Upgraded Preview Dialog Craft */
.products-flagship-page .product-preview-dialog {
  border-radius: 1.5rem;
  border: 1px solid rgba(15, 23, 42, .09);
  box-shadow: 0 28px 68px -20px rgba(15, 23, 42, .32);
}

.products-flagship-page .product-preview-description .studio-action {
  border-radius: 9999px;
  background: #111827;
  padding: .62rem 1.3rem;
}

.products-flagship-page .product-preview-description .studio-action:hover {
  background: #2350dc;
}

/* ============================================================
   Band 3: Sky-Light Atmospheric Frosted Closing Band
   ============================================================ */
.prod-closing-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.4rem, 5vw, 4rem);
  background:
    radial-gradient(ellipse 64% 70% at 18% 20%, rgba(59, 130, 246, .12), transparent 64%),
    radial-gradient(ellipse 52% 62% at 88% 82%, rgba(251, 191, 36, .12), transparent 60%),
    linear-gradient(180deg, #eef5ff 0%, #e7f0ff 50%, #f6f8fc 100%);
  border-top: 1px solid rgba(35, 80, 220, .08);
}

.prod-closing-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.35rem 2.2rem;
  padding: clamp(1.5rem, 3.2vw, 2.35rem) clamp(1.5rem, 3.5vw, 2.6rem);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 1.7rem;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px -22px rgba(15, 23, 42, .14), inset 0 1px 0 rgba(255, 255, 255, .95);
}

.prod-closing-copy {
  max-width: 34rem;
}

.prod-closing-eyebrow {
  display: inline-block;
  color: var(--pf-cobalt);
  font-size: .74rem;
  font-weight: 620;
  letter-spacing: .06em;
}

.prod-closing-copy h2 {
  margin: .38rem 0 0;
  color: var(--pf-ink);
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  font-weight: 660;
  line-height: 1.26;
  letter-spacing: -.022em;
}

.prod-closing-copy p {
  margin: .55rem 0 0;
  color: var(--pf-secondary);
  font-size: .92rem;
  line-height: 1.7;
}

.prod-closing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem .8rem;
}

/* ============================================================
   Responsive Breakpoints
   ============================================================ */
@media (max-width: 64rem) {
  .prod-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .prod-search-box {
    min-width: 13.5rem;
  }
}

@media (max-width: 52rem) {
  .prod-hero-band {
    padding-block: 1.45rem 1.75rem;
  }

  .prod-spotlight-card {
    padding: 1.1rem 1.15rem;
    border-radius: 1.3rem;
  }

  .prod-stat-tile {
    padding: .62rem .68rem;
  }

  .prod-stat-tile strong {
    font-size: 1.12rem;
  }

  .prod-command-dock {
    flex-direction: column;
    align-items: stretch;
    gap: .65rem;
    padding: .75rem .75rem .7rem;
    border-radius: 1.15rem;
  }

  .products-flagship-page .catalog-filters {
    width: auto;
    max-width: 100%;
    margin-inline: 0;
    padding: 0 0 .15rem;
  }

  .prod-search-box {
    width: 100%;
    min-width: 0;
    height: 40px;
  }

  .prod-search-box input {
    font-size: 16px;
  }

  .prod-search-kbd {
    display: none;
  }

  .products-flagship-page .product-catalog .product-grid {
    gap: .75rem;
  }

  .products-flagship-page .product-catalog .product-card {
    border-radius: 1.15rem;
  }

  .products-flagship-page .product-visual .product-visual-badge,
  .product-coin-badge {
    top: .45rem;
    padding: .14rem .46rem;
    font-size: .64rem;
  }

  .products-flagship-page .product-visual .product-visual-badge {
    left: .45rem;
  }

  .product-coin-badge {
    right: .45rem;
  }

  .products-flagship-page .product-catalog .product-copy {
    padding: .78rem .75rem .8rem;
  }

  .products-flagship-page .product-catalog .product-copy h3 {
    gap: .32rem;
    font-size: .92rem;
    margin-bottom: .28rem;
    white-space: nowrap;
  }

  .products-flagship-page .product-copy h3 img {
    width: 1.9rem;
    height: 1.9rem;
    padding: .14rem;
    border-radius: .56rem;
  }

  .product-new-tag {
    padding: .08rem .32rem;
    font-size: .6rem;
  }

  .products-flagship-page .product-card-actions {
    margin-top: .65rem;
    padding-top: .6rem;
    flex-wrap: nowrap;
  }

  .products-flagship-page .product-catalog .product-link {
    min-height: 32px;
    padding: .24rem .62rem;
    font-size: .74rem;
  }

  .products-flagship-page .product-preview {
    min-height: 32px;
    min-width: 36px;
    padding: 0 .4rem;
    font-size: .72rem;
  }
}

@media (max-width: 30rem) {
  .prod-quick-item {
    padding: .48rem .48rem;
    gap: .4rem;
  }
  .prod-quick-item img {
    width: 1.95rem;
    height: 1.95rem;
    padding: .14rem;
    border-radius: .56rem;
  }
  .prod-quick-copy strong {
    font-size: .8rem;
  }
  .prod-quick-copy span {
    font-size: .66rem;
  }
  .prod-quick-arrow {
    display: none;
  }
  .prod-closing-card {
    border-radius: 1.35rem;
  }
}

@media (max-width: 22.5rem) {
  .prod-stat-row,
  .prod-quick-grid {
    grid-template-columns: 1fr;
  }
  .products-flagship-page .product-catalog .product-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Dark Mode (1:1 #0b0f19 Obsidian Starlight)
   ============================================================ */
@media (prefers-color-scheme: dark) {
  body.products-flagship-page {
    --pf-canvas: #0b0f19;
    --pf-mist: #0e1424;
    --pf-surface: #141c2e;
    --pf-ink: #f8fafc;
    --pf-secondary: #9aa7bd;
    --pf-muted: #7c8aa2;
    --pf-border: rgba(255, 255, 255, .085);
    --pf-cobalt: #93c5fd;
  }

  .prod-hero-band {
    background:
      radial-gradient(ellipse 62% 66% at 76% 42%, rgba(59, 130, 246, .16), transparent 66%),
      radial-gradient(ellipse 46% 54% at 14% 84%, rgba(251, 191, 36, .1), transparent 60%),
      linear-gradient(128deg, #0b0f19 14%, #0f1629 52%, #0d1323 100%);
    border-bottom-color: rgba(255, 255, 255, .07);
  }

  .prod-hero-band::before {
    background-image:
      linear-gradient(to right, rgba(255, 255, 255, .04) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(255, 255, 255, .04) 1px, transparent 1px);
  }

  .prod-hero-band::after {
    background: linear-gradient(115deg, transparent 24%, rgba(147, 197, 253, .08) 44%, transparent 62%);
  }

  .prod-eyebrow {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(147, 197, 253, .22);
    color: #cbd5e1;
    box-shadow: none;
  }

  .prod-hero-copy h1 span {
    background: linear-gradient(100deg, #93c5fd 0%, #a5b4fc 52%, #fcd34d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .prod-spotlight-card {
    background: rgba(19, 27, 45, .86);
    border-color: rgba(255, 255, 255, .09);
    box-shadow: 0 24px 52px -24px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .05);
  }

  .prod-live-pill {
    background: rgba(16, 185, 129, .14);
    border-color: rgba(52, 211, 153, .24);
    color: #6ee7b7;
  }

  .prod-stat-tile {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .07);
  }

  .prod-quick-item {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .08);
  }

  .prod-quick-item:hover {
    background: rgba(59, 130, 246, .12);
    border-color: rgba(147, 197, 253, .3);
    box-shadow: none;
  }

  .prod-quick-item img {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .1);
  }

  .prod-spotlight-foot {
    border-top-color: rgba(255, 255, 255, .07);
  }

  .prod-command-dock {
    background: rgba(19, 27, 45, .9);
    border-color: rgba(255, 255, 255, .09);
    box-shadow: 0 14px 36px -18px rgba(0, 0, 0, .6);
  }

  .products-flagship-page .catalog-filters button {
    color: #9aa7bd;
  }

  .products-flagship-page .catalog-filters button:hover {
    color: #f8fafc;
  }

  .products-flagship-page .catalog-filters button[aria-pressed="true"] {
    background: #f8fafc;
    color: #0b0f19;
  }

  .products-flagship-page .catalog-filters[data-seg-ready="true"] button[aria-pressed="true"] {
    background: transparent;
    color: #0b0f19;
  }

  @media (max-width: 52rem) {
    .products-flagship-page .catalog-filters button {
      border-color: rgba(255, 255, 255, .1);
      background: rgba(255, 255, 255, .07);
      color: #cbd5e1;
    }

    .products-flagship-page .catalog-filters button[aria-pressed="true"],
    .products-flagship-page .catalog-filters[data-seg-ready="true"] button[aria-pressed="true"] {
      border-color: #f8fafc;
      background: #f8fafc;
      color: #0b0f19;
    }
  }

  .prod-search-box {
    background: rgba(11, 15, 25, .72);
    border-color: rgba(255, 255, 255, .1);
  }

  .prod-search-box:focus-within {
    border-color: rgba(147, 197, 253, .42);
    background: #0b0f19;
    box-shadow: 0 0 0 3px rgba(147, 197, 253, .12);
  }

  .prod-search-kbd {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .14);
    color: #94a3b8;
  }

  .prod-search-clear {
    background: rgba(255, 255, 255, .12);
    color: #cbd5e1;
  }

  .products-flagship-page .product-catalog .product-card {
    background: #141c2e;
    border-color: rgba(255, 255, 255, .085);
    box-shadow: 0 10px 28px -16px rgba(0, 0, 0, .58);
  }

  .products-flagship-page .product-catalog .product-card:is(:hover, :focus-within) {
    background: #18233a;
    border-color: rgba(147, 197, 253, .34);
    box-shadow: 0 22px 44px -18px rgba(0, 0, 0, .72);
  }

  .products-flagship-page .product-catalog .product-visual {
    background: #101727;
  }

  .products-flagship-page .product-visual .product-visual-badge {
    background: rgba(15, 23, 42, .84);
    border-color: rgba(255, 255, 255, .14);
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .55);
  }

  .products-flagship-page .product-copy h3 img {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .1);
  }

  .products-flagship-page .product-tags li {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .08);
    color: #9aa7bd;
  }

  .product-coin-badge {
    background: rgba(34, 24, 9, .88);
    border-color: rgba(251, 191, 36, .34);
    color: #fcd34d;
  }

  .product-new-tag {
    background: rgba(59, 130, 246, .2);
    border-color: rgba(147, 197, 253, .34);
    color: #93c5fd;
  }

  .products-flagship-page .product-card-actions {
    border-top-color: rgba(255, 255, 255, .07);
  }

  .products-flagship-page .product-catalog .product-link {
    background: rgba(147, 197, 253, .14);
    color: #93c5fd;
  }

  .products-flagship-page .product-catalog .product-card:is(:hover, :focus-within) .product-link {
    background: #f8fafc;
    color: #0b0f19;
    box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .55);
  }

  .products-flagship-page .product-preview:is(:hover, :focus-visible) {
    background: rgba(255, 255, 255, .08);
    color: #f8fafc;
  }

  .prod-empty-state {
    background: rgba(19, 27, 45, .72);
    border-color: rgba(255, 255, 255, .12);
  }

  .products-flagship-page .product-preview-description .studio-action {
    background: #f8fafc;
    color: #0b0f19;
  }

  .products-flagship-page .product-preview-description .studio-action:hover {
    background: #93c5fd;
    color: #0b0f19;
  }

  .prod-closing-band {
    background:
      radial-gradient(ellipse 64% 70% at 18% 20%, rgba(59, 130, 246, .16), transparent 64%),
      radial-gradient(ellipse 52% 62% at 88% 82%, rgba(251, 191, 36, .1), transparent 60%),
      linear-gradient(180deg, #0d1527 0%, #0b1120 100%);
    border-top-color: rgba(255, 255, 255, .07);
  }

  .prod-closing-card {
    background: rgba(19, 27, 45, .86);
    border-color: rgba(255, 255, 255, .09);
    box-shadow: 0 20px 44px -22px rgba(0, 0, 0, .65);
  }
}

/* ============================================================
   Apple Minimalist 5-Gallery Catalog Redesign (Unified with Homepage)
   ============================================================ */
.prod-hero-band--minimal {
  padding-block: clamp(2.6rem, 6vh, 4.4rem) clamp(2rem, 4.2vh, 3.1rem);
  border-bottom: 0;
  background:
    linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0) 20%, rgba(247, 249, 252, 0) 64%, #f7f9fc 100%),
    radial-gradient(ellipse 56% 48% at 50% 42%, rgba(59, 130, 246, .065), transparent 68%),
    radial-gradient(ellipse 38% 36% at 78% 46%, rgba(139, 92, 246, .05), transparent 66%),
    radial-gradient(ellipse 36% 34% at 22% 48%, rgba(245, 158, 11, .045), transparent 66%),
    #ffffff;
}
.prod-hero-band--minimal::before {
  opacity: .4;
  mask-image: radial-gradient(ellipse 68% 58% at 50% 46%, #000 0%, rgba(0, 0, 0, .35) 44%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 68% 58% at 50% 46%, #000 0%, rgba(0, 0, 0, .35) 44%, transparent 82%);
}
.prod-hero-band--minimal::after {
  display: none;
}

.prod-hero-center {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 48rem;
}
.prod-hero-center .prod-eyebrow {
  margin-bottom: 1.15rem;
}
.prod-hero-center h1 {
  margin: 0 auto .9rem;
  color: #0f172a;
  font-size: clamp(2.15rem, 4.6vw, 3.5rem);
  font-weight: 740;
  line-height: 1.13;
  letter-spacing: -.034em;
}
.prod-hero-center h1 span {
  display: inline-block;
  padding-bottom: .12em;
  margin-bottom: -.12em;
  background: linear-gradient(100deg, #2255d8 0%, #7c3aed 52%, #e11d48 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.prod-hero-center .prod-hero-lead {
  margin: 0 auto;
  max-width: 34rem;
  color: #525e75;
  font-size: clamp(.94rem, 1.35vw, 1.06rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.prod-showcase-band--minimal {
  background: linear-gradient(180deg, #f7f9fc 0%, #f7f9fc 88%, #ffffff 100%);
  padding-block: clamp(.6rem, 1.5vw, 1.2rem) clamp(3.4rem, 6vw, 5rem);
}

.prod-showcase-band--minimal .prod-command-dock {
  margin-bottom: clamp(1.8rem, 3.4vw, 2.6rem);
}

/* 5-Gallery Sections */
.prod-gallery-groups {
  display: flex;
  flex-direction: column;
  gap: clamp(2.6rem, 4.8vw, 3.8rem);
}
.prod-gallery-group[hidden] {
  display: none;
}

.prod-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .45rem 1.5rem;
  margin-bottom: 1.15rem;
  padding-bottom: .72rem;
  border-bottom: 1px solid rgba(15, 23, 42, .07);
}
.prod-group-title-row {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
}
.prod-group-title-row h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.24rem, 2.1vw, 1.52rem);
  font-weight: 700;
  letter-spacing: -.022em;
  line-height: 1.25;
}
.prod-group-count {
  display: inline-flex;
  align-items: center;
  padding: .16rem .62rem;
  border-radius: 9999px;
  background: rgba(35, 80, 220, .08);
  color: #2350dc;
  font-size: .74rem;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
}
.prod-group-desc {
  margin: 0;
  color: #64748b;
  font-size: .88rem;
  line-height: 1.5;
}

/* 3-Column Equal-Height Bento Product Cards */
.products-flagship-page .product-catalog .prod-clean-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.products-flagship-page .product-catalog .prod-clean-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 1.4rem;
}
.products-flagship-page .product-catalog .prod-clean-card:is(:hover, :focus-within) {
  transform: none;
  box-shadow: none;
}

.prod-card-surface {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 1.4rem;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, .07);
  box-shadow: 0 2px 10px -4px rgba(15, 23, 42, .06);
  text-decoration: none;
  color: #0f172a;
  transition:
    transform .38s cubic-bezier(0.32, 1.28, 0.56, 1),
    box-shadow .38s cubic-bezier(0.22, 1, 0.36, 1),
    border-color .22s ease;
  will-change: transform;
}
.prod-card-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .24), transparent 56%);
  opacity: 0;
  transition: opacity .3s ease;
}
.prod-card-surface:is(:hover, :focus-visible) {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px -18px rgba(15, 23, 42, .15);
  border-color: rgba(35, 80, 220, .2);
}
.prod-card-surface:hover::after {
  opacity: 1;
}

.prod-clean-card .product-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f1f5f9;
  border-bottom: 1px solid rgba(15, 23, 42, .04);
}
.prod-clean-card .product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .62s cubic-bezier(0.22, 1, 0.36, 1);
}
.prod-card-surface:is(:hover, :focus-visible) .product-visual img {
  transform: scale(1.045);
}

.prod-card-body {
  display: flex;
  align-items: center;
  gap: .82rem;
  padding: .98rem 1.08rem 1.06rem;
}
.prod-card-icon {
  width: 40px;
  height: 40px;
  flex: none;
  object-fit: contain;
}
.prod-card-meta {
  flex: 1;
  min-width: 0;
}
.prod-card-title-row {
  display: flex;
  align-items: center;
  gap: .42rem;
  min-width: 0;
}
.prod-card-title-row h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 680;
  letter-spacing: -.014em;
  color: #0f172a;
  white-space: nowrap;
}
.prod-card-pro {
  flex: none;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: .08rem .42rem;
  border-radius: 9999px;
  background: rgba(217, 119, 6, .1);
  color: #b45309;
  line-height: 1.35;
}
.prod-clean-card .product-summary {
  margin: .22rem 0 0;
  font-size: .82rem;
  color: #5c667a;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prod-card-arrow {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  color: #475569;
  font-size: .9rem;
  transition: transform .3s cubic-bezier(0.32, 1.28, 0.56, 1), background-color .2s ease, color .2s ease;
}
.prod-card-surface:is(:hover, :focus-visible) .prod-card-arrow {
  transform: translateX(3px);
  background: #0f172a;
  color: #ffffff;
}

@media (max-width: 68rem) {
  .products-flagship-page .product-catalog .prod-clean-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}
@media (max-width: 42rem) {
  .prod-hero-band--minimal {
    padding-block: 1.9rem 1.4rem;
  }
  .prod-hero-center h1 {
    font-size: 1.96rem;
  }
  .prod-group-head {
    flex-direction: column;
    gap: .25rem;
  }
  .products-flagship-page .product-catalog .prod-clean-grid {
    grid-template-columns: 1fr;
    gap: .9rem;
  }
}

@media (prefers-color-scheme: dark) {
  .prod-hero-band--minimal {
    background:
      linear-gradient(180deg, #0b0f19 0%, rgba(11, 15, 25, 0) 20%, rgba(14, 21, 37, 0) 64%, #0e1525 100%),
      radial-gradient(ellipse 56% 48% at 50% 42%, rgba(59, 130, 246, .15), transparent 68%),
      radial-gradient(ellipse 38% 36% at 78% 46%, rgba(139, 92, 246, .12), transparent 66%),
      radial-gradient(ellipse 36% 34% at 22% 48%, rgba(245, 158, 11, .08), transparent 66%),
      #0b0f19;
  }
  .prod-hero-center h1 {
    color: #f8fafc;
  }
  .prod-hero-center h1 span {
    background: linear-gradient(100deg, #60a5fa 0%, #a78bfa 52%, #fb7185 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .prod-hero-center .prod-hero-lead {
    color: #cbd5e1;
  }
  .prod-showcase-band--minimal {
    background: linear-gradient(180deg, #0e1525 0%, #0e1525 86%, #0b0f19 100%);
  }
  .prod-group-head {
    border-bottom-color: rgba(255, 255, 255, .08);
  }
  .prod-group-title-row h2 {
    color: #f8fafc;
  }
  .prod-group-count {
    background: rgba(96, 165, 250, .16);
    color: #93c5fd;
  }
  .prod-group-desc {
    color: #94a3b8;
  }
  .prod-card-surface {
    background: #101727;
    border-color: rgba(255, 255, 255, .09);
    box-shadow: 0 8px 26px -10px rgba(0, 0, 0, .55);
    color: #f8fafc;
  }
  .prod-card-surface::after {
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(147, 197, 253, .14), transparent 56%);
  }
  .prod-card-surface:is(:hover, :focus-visible) {
    border-color: rgba(96, 165, 250, .3);
    box-shadow: 0 26px 58px -18px rgba(0, 0, 0, .75);
  }
  .prod-clean-card .product-visual {
    background: #0b1120;
    border-bottom-color: rgba(255, 255, 255, .06);
  }
  .prod-card-title-row h3 {
    color: #f8fafc;
  }
  .prod-card-pro {
    background: rgba(245, 158, 11, .16);
    color: #fcd34d;
  }
  .prod-clean-card .product-summary {
    color: #94a3b8;
  }
  .prod-card-arrow {
    background: rgba(255, 255, 255, .08);
    color: #cbd5e1;
  }
  .prod-card-surface:is(:hover, :focus-visible) .prod-card-arrow {
    background: #f8fafc;
    color: #0b0f19;
  }
}
