.product-pages {
  --product-background: #f8faff;
  --product-card: #fff;
  --product-soft: #eef3ff;
  --product-ink: #142039;
  --product-muted: #52627e;
  --product-line: #dbe4f5;
  --product-accent: #3156c7;
  --product-focus: #4168e4;
  background: var(--product-background);
  color: var(--product-ink);
}

[data-theme="dark"] .product-pages {
  --product-background: #0b1427;
  --product-card: #111f37;
  --product-soft: #16294a;
  --product-ink: #f1f5ff;
  --product-muted: #b7c5df;
  --product-line: #2a3d60;
  --product-accent: #a5bcff;
  --product-focus: #89a7ff;
}

.product-pages p { color: var(--product-muted); }
.product-pages a:focus-visible { outline-color: var(--product-focus); }
.header nav a[aria-current="true"] { color: var(--ink); font-weight: 800; }
[data-theme="dark"] .header nav a[aria-current="true"] { color: #e4ecff; }

.product-pages-kicker {
  display: block;
  color: var(--product-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.product-pages-text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--product-accent);
  font-size: 14px;
  font-weight: 800;
  text-underline-offset: 4px;
}

.product-pages-text-link:hover { text-decoration: underline; }
.product-pages-text-link .icon { color: currentColor; }

.product-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--product-muted);
  font-size: 12px;
}

.product-breadcrumbs li + li::before { content: '/'; margin-inline-end: 10px; opacity: .68; }
.product-breadcrumbs a:hover { text-decoration: underline; }
.product-breadcrumbs [aria-current] { color: var(--product-ink); font-weight: 700; }

.product-catalogue-hero,
.product-sheet-hero {
  padding: 22px 0 clamp(36px, 5vw, 68px);
  background: radial-gradient(ellipse at 83% 0%, var(--product-soft), transparent 73%);
  border-bottom: 1px solid var(--product-line);
}

.product-catalogue-hero-grid,
.product-sheet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(25px, 5vw, 72px);
  margin-top: clamp(22px, 4vw, 56px);
}

.product-catalogue-hero h1,
.product-sheet h1 {
  margin: 12px 0 17px;
  font-size: clamp(37px, 5.3vw, 73px);
  line-height: 1.035;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.product-catalogue-hero p,
.product-sheet-copy > p {
  max-width: 52ch;
  font-size: clamp(15px, 1.55vw, 18px);
  line-height: 1.7;
}

.product-catalogue-hero-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 4px;
  padding: 18px 22px;
  border: 1px solid #cddaf7;
  border-radius: 28px;
  background: radial-gradient(ellipse at 50% 35%, #fff 9%, #e0eaff 100%);
  overflow: hidden;
}

.product-catalogue-hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.16;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-catalogue-hero-visual img:first-child { transform: rotate(-9deg) translateY(5%); }
.product-catalogue-hero-visual img:last-child { transform: rotate(9deg) translateY(5%); }
.product-catalogue-results { padding-block: clamp(28px, 5vw, 64px) clamp(52px, 7vw, 96px); }

.product-catalogue-controls {
  padding: clamp(14px, 2.6vw, 24px);
  border: 1px solid var(--product-line);
  border-radius: 22px;
  background: var(--product-card);
}

.product-catalogue-categories { display: flex; flex-wrap: wrap; gap: 7px; }

.product-catalogue-categories a,
.product-catalogue-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid var(--product-line);
  border-radius: 10px;
  color: var(--product-muted);
  background: var(--product-card);
  font-size: 13px;
  font-weight: 700;
}

.product-catalogue-categories a[aria-current],
.product-catalogue-pagination a[aria-current] {
  border-color: var(--product-focus);
  background: var(--product-soft);
  color: var(--product-accent);
}

.product-catalogue-categories a:hover,
.product-catalogue-pagination a:hover { border-color: var(--product-focus); color: var(--product-ink); }

.product-catalogue-filters {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 17px;
}

.product-catalogue-filters label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 6px; }

.product-catalogue-filters input[type="search"],
.product-catalogue-filters select {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid var(--product-line);
  border-radius: 11px;
  background: var(--product-background);
  color: var(--product-ink);
  font-size: 15px;
  color-scheme: light;
}

[data-theme="dark"] .product-catalogue-filters input[type="search"],
[data-theme="dark"] .product-catalogue-filters select { color-scheme: dark; }
.product-catalogue-filters input::placeholder { color: var(--product-muted); }
.product-catalogue-filters .btn { min-height: 50px; justify-content: center; }

.product-catalogue-results-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 18px;
  margin: 28px 0 15px;
}

.product-catalogue-results-heading h2 { font-size: clamp(22px, 3vw, 33px); }

.product-catalogue-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(11px, 2vw, 22px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.product-catalogue-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10px;
  border: 1px solid var(--product-line);
  border-radius: 19px;
  background: var(--product-card);
  transition: border-color .2s, translate .2s;
}

.product-catalogue-card > a:hover { border-color: var(--product-focus); translate: 0 -3px; }

.product-catalogue-card-visual,
.product-sheet-photo {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 47% 30%, #fff 4%, #e4edff 100%);
}

.product-catalogue-card-visual { aspect-ratio: 1.2; border-radius: 13px; }

.product-catalogue-card-visual img,
.product-sheet-photo img { width: 78%; height: auto; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.product-catalogue-card-visual:is([data-category="macbook"], [data-category="pc"]) img { width: 88%; }
.product-catalogue-card-copy { display: flex; flex: 1; flex-direction: column; padding: 12px 7px 5px; }
.product-catalogue-card-meta { font-size: 11px; font-weight: 700; }
.product-catalogue-card-copy h3 { margin: 5px 0 12px; font-size: clamp(16px, 1.65vw, 22px); line-height: 1.16; }

.product-catalogue-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  color: var(--product-accent);
  font-size: 12px;
  font-weight: 700;
}

.product-catalogue-card-bottom .icon { color: currentColor; width: 16px; height: 16px; }
.product-catalogue-empty { padding: 26px; border: 1px solid var(--product-line); border-radius: 18px; background: var(--product-card); }
.product-catalogue-empty p { margin: 9px 0 17px; }

.product-catalogue-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 28px;
}

.product-catalogue-pagination a { min-width: 42px; }
.product-sheet-layout { grid-template-columns: minmax(0, 1fr) minmax(0, .93fr); }

.product-sheet-photo {
  min-height: 330px;
  aspect-ratio: 1.17;
  margin: 0;
  border: 1px solid #cfddf7;
  border-radius: 27px;
  padding: 36px 14px 20px;
}

.product-sheet-photo::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 76%;
  aspect-ratio: 1;
  border: 1px solid #a6b9e680;
  border-radius: 50%;
}

.product-sheet-photo-label {
  position: absolute;
  z-index: 1;
  inset: 14px auto auto 17px;
  color: #354c76;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.product-sheet-photo-label span { margin-inline: 5px; opacity: .7; }
.product-sheet-photo img { width: min(78%, 390px); }
.product-sheet-photo:is([data-category="macbook"], [data-category="pc"]) img { width: min(88%, 490px); }

.product-sheet-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  padding: 5px 10px;
  border: 1px solid var(--product-line);
  border-radius: 20px;
  background: var(--product-card);
  color: var(--product-muted);
  font-size: 12px;
  font-weight: 800;
}

.product-sheet-status::before { content: ''; width: 6px; height: 6px; background: #9d7940; border-radius: 50%; }
.product-sheet-status.is-available { color: var(--product-accent); }
.product-sheet-status.is-available::before { background: var(--product-focus); }
.product-sheet-storage { margin: 18px 0; }
.product-sheet-storage h2 { font-size: 14px; letter-spacing: 0; margin-bottom: 9px; }
.product-sheet-storage ul { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }

.product-sheet-storage li {
  padding: 5px 10px;
  border: 1px solid var(--product-line);
  border-radius: 8px;
  background: var(--product-card);
  color: var(--product-ink);
  font-size: 13px;
  font-weight: 700;
}

.product-sheet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 17px; margin-top: 20px; }

.product-sheet-details {
  display: grid;
  grid-template-columns: minmax(0, 1.46fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(13px, 2.5vw, 24px);
  padding-block: clamp(30px, 5vw, 56px);
}

.product-sheet-criteria,
.product-sheet-guide {
  padding: clamp(17px, 3vw, 30px);
  border: 1px solid var(--product-line);
  border-radius: 21px;
  background: var(--product-card);
}

.product-sheet-guide { background: var(--product-soft); }
.product-sheet-details h2 { margin: 0 0 13px; font-size: clamp(21px, 2.45vw, 30px); }
.product-sheet-guide h2 { margin-top: 10px; }
.product-sheet-guide p { margin-bottom: 15px; }
.product-sheet-criteria dl { margin: 0 0 16px; }

.product-sheet-criteria dl > div {
  display: grid;
  grid-template-columns: minmax(0, .68fr) minmax(0, 1.32fr);
  align-items: baseline;
  gap: 7px 14px;
  padding-block: 11px;
  border-bottom: 1px solid var(--product-line);
}

.product-sheet-criteria dt { font-weight: 800; }
.product-sheet-criteria dd { margin: 0; color: var(--product-muted); }
.product-sheet-related { padding-bottom: clamp(42px, 6vw, 72px); }
.product-sheet-related .product-catalogue-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-sheet-related .product-catalogue-results-heading { margin-top: 0; }

@media (max-width: 980px) {
  .product-catalogue-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-sheet-photo { min-height: 260px; }
}

@media (max-width: 760px) {
  .product-catalogue-hero-grid,
  .product-sheet-layout,
  .product-sheet-details { grid-template-columns: 1fr; }
  .product-catalogue-hero-visual { display: none; }
  .product-sheet-photo { max-height: 360px; min-height: 0; }
  .product-sheet-photo img { width: min(75%, 315px); max-height: 290px; }
  .product-catalogue-grid,
  .product-sheet-related .product-catalogue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-catalogue-filters { grid-template-columns: minmax(0, 1fr) auto; }
  .product-catalogue-filters > div:first-of-type { grid-column: 1 / -1; }
}

@media (max-width: 430px) {
  .product-catalogue-filters { grid-template-columns: 1fr; }
  .product-catalogue-card > a { padding: 7px; border-radius: 15px; }
  .product-catalogue-card-copy { padding-inline: 4px; }
  .product-catalogue-card-bottom { font-size: 11px; }
  .product-catalogue-card-bottom .icon { width: 12px; }
  .product-sheet-actions .btn { width: 100%; justify-content: center; }
  .product-sheet-criteria dl > div { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .product-catalogue-card > a { transition: none; }
  .product-catalogue-card > a:hover { translate: none; }
}
