/* PATCH 050 — isolated catalogue and product pages, independent of the storefront CSS. */
:root {
  color-scheme: dark;
  --catalog-bg: #09070e;
  --catalog-panel: #100b17;
  --catalog-line: rgba(184, 124, 220, .22);
  --catalog-text: #f8f2fc;
  --catalog-muted: #b9adca;
  --catalog-accent: #cb9aee;
}
* { box-sizing: border-box; }
html { min-width: 0; background: var(--catalog-bg); scroll-padding-top: 100px; }
body.pz-catalog-page {
  margin: 0;
  min-width: 0;
  color: var(--catalog-text);
  background: radial-gradient(ellipse at 75% 0%, #3b184416, transparent 50%), var(--catalog-bg);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}
.pz-catalog-page a { color: inherit; text-decoration: none; }
.pz-catalog-page button,
.pz-catalog-page input,
.pz-catalog-page select { font: inherit; }
.pz-catalog-page button,
.pz-catalog-page a,
.pz-catalog-page summary { -webkit-tap-highlight-color: transparent; }
.pz-catalog-page button { cursor: pointer; }
.pz-catalog-page [hidden] { display: none !important; }
.pz-catalog-page :focus-visible { outline: 2px solid #dba5ff; outline-offset: 3px; }
.pz-page-wrap { width: min(1720px, calc(100% - 80px)); margin-inline: auto; }
.pz-catalog-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #ad8bbc20;
  background: #0b0810f5;
  backdrop-filter: blur(12px);
}
.pz-catalog-header__inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.pz-catalog-brand { flex: 0 0 190px; }
.pz-catalog-brand img { display: block; width: 190px; height: auto; max-height: 50px; object-fit: contain; }
.pz-catalog-nav { display: flex; align-items: center; gap: 24px; white-space: nowrap; font-size: 13px; }
.pz-catalog-nav a { color: var(--catalog-muted); padding: 11px 0; border-bottom: 1px solid transparent; }
.pz-catalog-nav a[aria-current="page"] { color: #dcc1ed; border-color: #ba78eb; }
.pz-catalog-nav a:hover { color: #fff; }
.pz-catalog-search-trigger {
  margin-left: auto;
  width: min(420px, 31vw);
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--catalog-line);
  border-radius: 11px;
  background: #ffffff02;
  color: var(--catalog-muted);
  text-align: left;
}
.pz-catalog-search-trigger span:first-child { font-size: 12px; letter-spacing: .08em; color: var(--catalog-accent); }
.pz-account-link { padding: 10px 16px; min-height: 44px; border: 1px solid var(--catalog-line); border-radius: 11px; font-size: 13px; }
.pz-breadcrumb { display: flex; gap: 14px; font-size: 12px; color: #ad9cba; margin: 22px 0 30px; }
.pz-catalog-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 36px; }
.pz-eyebrow { color: #c1a2d3; letter-spacing: .2em; font-size: 11px; }
.pz-catalog-hero h1 { font-size: clamp(36px, 4vw, 60px); line-height: 1.1; letter-spacing: -.035em; margin: 12px 0 14px; }
.pz-catalog-hero p { margin: 0; color: var(--catalog-muted); }
.pz-catalog-notice { max-width: 330px; padding-left: 14px; border-left: 2px solid #6d408d; font-size: 12px; }
.pz-catalog-layout { display: grid; grid-template-columns: 242px minmax(0, 1fr); gap: 30px; align-items: start; }
.pz-filter-sidebar { position: sticky; top: 102px; max-height: calc(100dvh - 120px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #604474 #0d0913; }
.pz-filters { border: 1px solid var(--catalog-line); border-radius: 18px; padding: 20px 18px; background: #160d1d33; }
.pz-filters > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; font-size: 17px; font-weight: 600; }
.pz-filters > summary::-webkit-details-marker { display: none; }
.pz-filters > summary span { color: var(--catalog-muted); font-size: 11px; font-weight: 400; }
.pz-filter-label { display: block; font-size: 12px; color: #dfcce9; margin: 22px 0 12px; font-weight: 600; }
.pz-category-list { display: flex; flex-direction: column; gap: 3px; }
.pz-category-choice { display: flex; gap: 8px; align-items: center; justify-content: space-between; min-height: 38px; padding: 8px 10px; font-size: 13px; border: 1px solid transparent; border-radius: 8px; color: #c6b6d0 !important; transition: background 160ms, border-color 160ms; }
.pz-category-choice[aria-current="true"] { color: #fff !important; border-color: #bd76ef44; background: #ba75e618; }
.pz-category-choice:hover { background: #bc78e50c; }
.pz-category-choice.is-child { padding-left: 22px; font-size: 12px; }
.pz-category-choice small { color: #bd99d4; font-size: 10px; }
.pz-price-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pz-price-fields label { min-width: 0; color: var(--catalog-muted); font-size: 11px; }
.pz-filter-form input,
.pz-filter-form select { width: 100%; min-width: 0; min-height: 42px; padding: 9px; border: 1px solid var(--catalog-line); border-radius: 9px; background: #09060d; color: #fff; margin-top: 6px; font-size: 13px; }
.pz-filter-form input { appearance: textfield; }
.pz-filter-form input::-webkit-inner-spin-button { appearance: none; }
.pz-filter-form .pz-filter-label { margin-bottom: 5px; }
.pz-filter-error { color: #ffb6c2; font-size: 12px; }
.pz-filter-actions { display: grid; gap: 9px; margin-top: 20px; }
.pz-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; border: 1px solid #b578da; border-radius: 11px; padding: 10px 18px; background: linear-gradient(120deg, #9850c3, #713399); color: #fff; text-decoration: none; font-weight: 600; font-size: 13px; transition: border-color 180ms, filter 180ms; }
.pz-button:hover { filter: brightness(1.13); }
.pz-button--quiet { background: #ffffff03; border-color: var(--catalog-line); color: #dbc3ec; font-weight: 400; }
.pz-catalog-results { min-width: 0; }
.pz-catalog-search { display: flex; gap: 10px; margin-bottom: 24px; }
.pz-catalog-search input { flex: 1; min-width: 0; width: 0; border: 1px solid var(--catalog-line); border-radius: 11px; background: #09060e; padding: 13px 15px; color: #fff; font-size: 16px; }
.pz-catalog-search input::placeholder { color: #a798b5; font-size: 13px; }
.pz-results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px 0; }
.pz-results-toolbar h2 { margin: 0 0 2px; font-size: 23px; line-height: 1.3; }
.pz-results-note { font-size: 12px; color: #b6a5c5; margin: 0; }
.pz-result-controls { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.pz-result-controls select { border: 1px solid var(--catalog-line); border-radius: 9px; padding: 10px 12px; background: #100a18; color: #f0e7fa; font-size: 12px; max-width: 185px; }
.pz-view-switch { display: flex; padding: 3px; border: 1px solid var(--catalog-line); border-radius: 9px; }
.pz-view-switch button { border: 0; border-radius: 6px; color: #bb9dcf; background: none; min-height: 32px; padding: 5px 9px; font-size: 11px; }
.pz-view-switch button[aria-pressed="true"] { background: #b67ae92b; color: #f3deff; }
.pz-filter-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.pz-filter-tag { border: 1px solid #a568ce55; border-radius: 18px; padding: 5px 12px; color: #e0c8f2; background: #a95fde12; font-size: 12px !important; overflow-wrap: anywhere; max-width: 100%; }
.pz-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.pz-product-card { min-width: 0; border: 1px solid var(--catalog-line); border-radius: 17px; overflow: hidden; background: linear-gradient(160deg, #1b102522, #110b18); transition: border-color 220ms, box-shadow 220ms; }
.pz-product-card:hover { border-color: #b77bed77; box-shadow: 0 8px 28px #0003; }
.pz-product-card__link { display: flex; flex-direction: column; height: 100%; }
.pz-product-card__media { display: grid; place-items: center; aspect-ratio: 1.13; padding: 14px; overflow: hidden; background: #08050c88; border-bottom: 1px solid #a677b80c; }
.pz-product-card__media img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: 10px; }
.pz-product-card__body { padding: 17px; flex: 1; display: flex; flex-direction: column; }
.pz-product-card__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11px; color: #ad99bb; }
.pz-status { font-size: 11px; color: #d8b2ee; }
.pz-product-card h3 { font-size: 17px; line-height: 1.3; margin: 9px 0; overflow-wrap: anywhere; }
.pz-product-card__description { color: var(--catalog-muted); font-size: 12px; line-height: 1.65; margin: 0 0 22px; }
.pz-product-card__bottom { margin-top: auto; padding-top: 13px; border-top: 1px solid #cf93ef15; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.pz-price { display: block; color: #e5c7fb; font-size: 19px; }
.pz-product-card small { display: block; font-size: 10px; color: #af9bbc; }
.pz-product-card__more { font-size: 12px; color: #d5a7f0; }
.pz-product-grid.is-list { grid-template-columns: 1fr; }
.is-list .pz-product-card__link { flex-direction: row; }
.is-list .pz-product-card__media { flex: 0 0 190px; width: 190px; aspect-ratio: 1; }
.is-list .pz-product-card__body { min-width: 0; }
.pz-load-more { display: flex; margin: 22px auto; }
.pz-state { grid-column: 1 / -1; padding: 36px; border: 1px solid var(--catalog-line); border-radius: 16px; background: #a865d508; }
.pz-state h2 { font-size: 23px; margin-top: 0; }
.pz-state p { color: var(--catalog-muted); }
.pz-media-empty { color: #ad94c0; font-size: 12px; text-align: center; padding: 12px; }
.pz-catalog-footer { margin-top: 70px; border-top: 1px solid var(--catalog-line); padding: 28px 0; color: var(--catalog-muted); font-size: 12px; }
.pz-catalog-footer__inner { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.pz-catalog-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.pz-product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; margin-block: 30px; }
.pz-product-gallery { min-width: 0; }
.pz-product-main-image { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid var(--catalog-line); border-radius: 20px; padding: 24px; background: #100a18; }
.pz-product-main-image img { width: 100%; height: 100%; min-height: 0; display: block; object-fit: contain; }
.pz-product-thumbnails { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pz-product-thumbnails button { width: 80px; height: 80px; padding: 6px; border: 1px solid var(--catalog-line); border-radius: 10px; background: #110919; }
.pz-product-thumbnails button[aria-pressed="true"] { border-color: #c881f1; }
.pz-product-thumb { display: block; width: 100%; height: 100%; }
.pz-product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pz-product-info { min-width: 0; }
.pz-product-info h1 { font-size: clamp(30px, 3vw, 48px); line-height: 1.14; margin: 12px 0; overflow-wrap: anywhere; }
.pz-product-lead { font-size: 17px; color: #d6c5e2; }
.pz-price--large { font-size: 30px; margin-top: 26px; }
.pz-notice { padding-left: 14px; border-left: 2px solid #8756ab; color: #c1afcf; font-size: 13px; margin: 18px 0 28px; }
.pz-product-description h2, .pz-product-spec h2 { font-size: 17px; margin-bottom: 12px; }
.pz-product-description p { white-space: pre-line; overflow-wrap: anywhere; color: #d4c7de; font-size: 15px; line-height: 1.8; }
.pz-product-spec { margin-block: 26px; }
.pz-spec-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.pz-spec-chips span { border: 1px solid var(--catalog-line); border-radius: 8px; padding: 7px 12px; font-size: 13px; }
.pz-product-info > .pz-button { margin-top: 20px; }
@media (min-width: 1700px) {
  .pz-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1199px) {
  .pz-page-wrap { width: calc(100% - 48px); }
  .pz-catalog-header__inner { gap: 20px; }
  .pz-catalog-brand { flex-basis: 155px; }
  .pz-catalog-brand img { width: 155px; }
  .pz-catalog-nav { gap: 14px; }
  .pz-catalog-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 22px; }
  .pz-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pz-results-toolbar { align-items: flex-start; flex-wrap: wrap; }
}
@media (max-width: 767px) {
  html { scroll-padding-top: 132px; }
  .pz-page-wrap { width: calc(100% - 28px); }
  .pz-catalog-header__inner { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding-block: 12px; }
  .pz-catalog-brand img { width: 160px; height: 34px; object-position: left center; }
  .pz-catalog-nav { display: none; }
  .pz-account-link { grid-area: 1 / 2; padding: 7px 12px; min-height: 38px; }
  .pz-catalog-search-trigger { grid-column: 1 / -1; width: 100%; margin: 0; min-height: 40px; }
  .pz-breadcrumb { margin: 20px 0; }
  .pz-catalog-hero { display: block; margin-bottom: 24px; }
  .pz-catalog-hero h1 { font-size: 38px; }
  .pz-catalog-hero > div > p { font-size: 13px; }
  .pz-catalog-notice { margin-top: 16px !important; max-width: none; }
  .pz-catalog-layout { display: flex; flex-direction: column; gap: 20px; }
  .pz-filter-sidebar { position: static; width: 100%; max-height: none; overflow: visible; }
  .pz-filters { padding: 14px 16px; border-radius: 12px; }
  .pz-filters > summary { min-height: 24px; }
  .pz-catalog-results { width: 100%; }
  .pz-category-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .pz-category-choice.is-child { padding-left: 10px; }
  .pz-filter-form select, .pz-filter-form input { font-size: 16px; }
  .pz-catalog-search { gap: 8px; margin-bottom: 18px; }
  .pz-catalog-search input { padding: 12px; }
  .pz-catalog-search .pz-button { padding: 10px 13px; }
  .pz-results-toolbar h2 { font-size: 22px; }
  .pz-result-controls { width: 100%; justify-content: space-between; }
  .pz-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pz-product-card { border-radius: 12px; }
  .pz-product-card__media { padding: 8px; aspect-ratio: 1; }
  .pz-product-card__body { padding: 11px; }
  .pz-product-card__meta { font-size: 9px; flex-wrap: wrap; gap: 4px; }
  .pz-product-card h3 { font-size: 14px; }
  .pz-product-card__description { font-size: 11px; margin-bottom: 14px; }
  .pz-product-card__bottom { display: block; }
  .pz-price { font-size: 17px; }
  .pz-product-card__more { display: block; margin-top: 9px; font-size: 11px; }
  .is-list .pz-product-card__media { flex-basis: 110px; width: 110px; }
  .pz-state { padding: 22px; }
  .pz-catalog-footer { margin-top: 40px; }
  .pz-catalog-footer nav { gap: 12px; }
  .pz-product-detail { grid-template-columns: 1fr; gap: 24px; }
  .pz-product-main-image { max-height: 55dvh; aspect-ratio: 1.1; padding: 16px; }
  .pz-product-thumbnails button { width: 64px; height: 64px; }
  .pz-price--large { font-size: 28px; }
}
@media (prefers-reduced-motion: no-preference) {
  .pz-product-card { animation: pz-card-enter 240ms ease both; }
  @keyframes pz-card-enter { from { opacity: .25; transform: translateY(5px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .pz-product-card, .pz-button, .pz-category-choice { transition: none; }
}
