/* ============================================================
   Product Guidebook — design system
   Implements the Claude Design "Product Guidebook Website Design".
   Self-contained: no Tailwind utilities required by the page
   templates. Fonts: Schibsted Grotesk (display) + Hanken Grotesk.
   ============================================================ */

:root {
  --pg-bg: #f4f3ee;
  --pg-ink: #1b1c20;
  --pg-ink-soft: #3a3b42;
  --pg-dark: #15171c;
  --pg-dark-2: #23262d;
  --pg-dark-3: #31343c;
  --pg-accent: #2f54d4;
  --pg-accent-soft: #eef1fc;
  --pg-card: #ffffff;
  --pg-border: #e6e4dc;
  --pg-border-2: #d9d7cd;
  --pg-muted: #8a8c94;
  --pg-muted-2: #52535b;
  --pg-panel: #f1efe8;
  --pg-max: 1120px;
  --pg-display: "Schibsted Grotesk", system-ui, sans-serif;
  --pg-body: "Hanken Grotesk", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--pg-bg);
  font-family: var(--pg-body);
  color: var(--pg-ink);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}

::selection { background: var(--pg-accent); color: #fff; }

a { color: inherit; text-decoration: none; }

.pg-wrap { min-height: 100vh; display: flex; flex-direction: column; background: var(--pg-bg); }
.pg-main { flex: 1 0 auto; }
.pg-container { max-width: var(--pg-max); margin: 0 auto; padding: 0 28px; }
.pg-display { font-family: var(--pg-display); letter-spacing: -0.02em; }

/* ---------------- Header ---------------- */
.pg-header { background: var(--pg-dark); color: #fff; }
.pg-header-inner {
  max-width: var(--pg-max); margin: 0 auto; padding: 0 28px;
  min-height: 60px; display: flex; align-items: center; gap: 22px;
}
.pg-logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.pg-logo-mark {
  width: 26px; height: 26px; border-radius: 7px; background: var(--pg-accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--pg-display); font-weight: 800; font-size: 15px; color: #fff;
}
.pg-logo-text { font-family: var(--pg-display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; color: #fff; }

.pg-header-search {
  flex: 1; max-width: 420px; display: flex; align-items: center;
  background: var(--pg-dark-2); border: 1px solid var(--pg-dark-3);
  border-radius: 9px; padding: 0 12px; height: 38px;
}
.pg-header-search input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #e7e7ea; font-family: var(--pg-body); font-size: 13px;
}
.pg-header-search input::placeholder { color: #8a8d96; }
.pg-header-search button {
  background: transparent; border: none; cursor: pointer; padding: 0; margin-left: 8px;
  color: #8a8d96; display: flex; align-items: center;
}
.pg-spacer { flex: 1; }

.pg-nav { display: flex; align-items: center; gap: 22px; font-size: 13.5px; font-weight: 500; color: #c4c6cd; }
.pg-nav a { color: #c4c6cd; }
.pg-nav a:hover { color: #fff; }
.pg-nav .pg-signin { color: #fff; border: 1px solid #3a3d45; border-radius: 7px; padding: 6px 13px; }
.pg-nav .pg-signin:hover { background: var(--pg-dark-2); }

/* search icon — magnifying glass rendered from an SVG via CSS mask so it
   inherits the surrounding text color (currentColor) just like before. */
.pg-search-ico {
  width: 15px; height: 15px; flex-shrink: 0; display: inline-block;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pg-search-ico.lg { width: 19px; height: 19px; }

/* ---------------- Buttons ---------------- */
.pg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--pg-body); font-weight: 600; font-size: 13.5px;
  padding: 9px 16px; border-radius: 8px; cursor: pointer; border: 1px solid transparent;
  transition: background .12s ease, border-color .12s ease, box-shadow .12s ease; text-align: center;
}
.pg-btn-primary { background: var(--pg-accent); color: #fff; }
.pg-btn-primary:hover { background: #2746b5; }
.pg-btn-outline { border-color: var(--pg-border-2); color: var(--pg-ink-soft); background: #fff; }
.pg-btn-outline:hover { border-color: var(--pg-accent); color: var(--pg-accent); }
.pg-btn-accent-outline { border-color: var(--pg-accent); color: var(--pg-accent); background: #fff; }
.pg-btn-accent-outline:hover { background: var(--pg-accent-soft); }
.pg-btn-block { width: 100%; }

/* ---------------- Cards / generic ---------------- */
.pg-card { background: var(--pg-card); border: 1px solid var(--pg-border); border-radius: 14px; }
.pg-section { max-width: var(--pg-max); margin: 0 auto; padding: 44px 28px 8px; }
.pg-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; gap: 16px; }
.pg-h2 { font-family: var(--pg-display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; margin: 0; }
.pg-link-more { font-size: 13.5px; font-weight: 600; color: var(--pg-accent); white-space: nowrap; }
.pg-link-more:hover { text-decoration: underline; }
.pg-eyebrow { font-size: 11px; font-weight: 600; color: var(--pg-muted); text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------------- Submit-a-manual form ---------------- */
.pg-submit { max-width: 720px; }
.pg-form { padding: 28px; }
.pg-form-group { margin-bottom: 20px; }
.pg-form-group label {
  display: block; font-weight: 600; font-size: 14px; color: var(--pg-ink);
  margin-bottom: 7px;
}
.pg-form-group .pg-req { color: var(--pg-accent); }
.pg-form-group input,
.pg-form-group textarea,
.pg-form-group select {
  width: 100%; padding: 10px 13px; border: 1.5px solid var(--pg-border-2);
  border-radius: 9px; font-family: var(--pg-body); font-size: 15px;
  color: var(--pg-ink); background: #fff;
}
.pg-form-group input[type="file"] { padding: 9px 12px; font-size: 14px; }
.pg-form-group textarea { resize: vertical; min-height: 90px; }
.pg-form-group input:focus,
.pg-form-group textarea:focus,
.pg-form-group select:focus {
  outline: none; border-color: var(--pg-accent);
  box-shadow: 0 0 0 3px var(--pg-accent-soft);
}
.pg-form-check { margin-bottom: 20px; }
.pg-form-check label {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--pg-ink-soft); cursor: pointer; line-height: 1.45;
}
.pg-form-check input[type="checkbox"] {
  width: 17px; height: 17px; margin: 1px 0 0; flex-shrink: 0; cursor: pointer;
  accent-color: var(--pg-accent);
}
.pg-form-help { display: block; margin-top: 6px; font-size: 13px; color: var(--pg-muted); }
.pg-form-error { margin-top: 6px; font-size: 13px; color: #c0392b; font-weight: 500; }
.pg-form-error ul { margin: 0; padding-left: 18px; }
.pg-form-actions { margin-top: 8px; }
.pg-submit-success { padding: 28px; }
.pg-submit-success b { font-family: var(--pg-display); font-size: 19px; }
.pg-submit-success p { color: var(--pg-ink-soft); margin: 10px 0 20px; }

/* product thumbnail placeholder */
.pg-thumb {
  background: var(--pg-panel); border: 1px solid var(--pg-border); border-radius: 9px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden;
}
.pg-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.pg-thumb-ph { border: 2px solid #c8c5bb; border-radius: 3px; width: 42%; height: 50%; }

/* brand/category logo image */
.pg-logo-img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ---------------- Homepage: hero ---------------- */
.pg-hero { background: linear-gradient(180deg, #15171c 0%, #15171c 55%, #1b1e25 100%); color: #fff; padding: 62px 28px 78px; }
.pg-hero-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.pg-hero h1 { font-family: var(--pg-display); font-weight: 800; font-size: 46px; line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 14px; }
.pg-hero p { font-size: 17px; line-height: 1.5; color: #b6b9c1; margin: 0 auto 30px; max-width: 520px; }
.pg-hero-search {
  display: flex; align-items: center; background: #fff; border-radius: 13px;
  padding: 7px 7px 7px 18px; box-shadow: 0 18px 44px rgba(0,0,0,0.32);
  max-width: 620px; margin: 0 auto;
}
.pg-hero-search .pg-search-ico { color: #9a9ba2; margin-right: 11px; }
.pg-hero-search input { flex: 1; border: none; outline: none; font-family: var(--pg-body); font-size: 16px; color: var(--pg-ink); }
.pg-hero-search button { background: var(--pg-accent); color: #fff; font-weight: 600; font-size: 15px; padding: 13px 28px; border-radius: 9px; cursor: pointer; white-space: nowrap; border: none; font-family: var(--pg-body); }
.pg-hero-search button:hover { background: #2746b5; }
.pg-chips { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.pg-chip { font-size: 12.5px; color: #c4c6cd; border: 1px solid #34373f; border-radius: 20px; padding: 6px 14px; }
.pg-chip:hover { border-color: #5a5d66; color: #fff; }

/* stat strip */
.pg-stats { background: var(--pg-accent); }
.pg-stats-inner { max-width: var(--pg-max); margin: 0 auto; padding: 14px 28px; display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; color: #fff; }
.pg-stat { display: flex; align-items: baseline; gap: 7px; }
.pg-stat b { font-family: var(--pg-display); font-weight: 800; font-size: 18px; }
.pg-stat span { font-size: 13px; color: #d3dafc; }

/* category grid */
.pg-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pg-cat-card { background: #fff; border: 1px solid var(--pg-border); border-radius: 13px; padding: 18px; display: flex; flex-direction: column; gap: 12px; transition: border-color .12s, box-shadow .12s; }
.pg-cat-card:hover { border-color: var(--pg-accent); box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
.pg-cat-ico { width: 42px; height: 42px; border-radius: 10px; background: var(--pg-accent-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pg-cat-ico img { width: 24px; height: 24px; object-fit: contain; }
.pg-cat-ico-ph { width: 18px; height: 18px; border: 2px solid var(--pg-accent); border-radius: 4px; }
.pg-cat-name { font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.pg-cat-count { font-size: 12.5px; color: var(--pg-muted); }

/* popular products */
.pg-popular-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pg-prow { background: #fff; border: 1px solid var(--pg-border); border-radius: 13px; padding: 15px; display: flex; gap: 15px; align-items: center; transition: border-color .12s; }
.pg-prow:hover { border-color: var(--pg-accent); }
.pg-prow .pg-thumb { width: 62px; height: 62px; }
.pg-prow-body { flex: 1; min-width: 0; }
.pg-prow-title { font-weight: 600; font-size: 15px; line-height: 1.25; }
.pg-prow-sub { font-size: 12.5px; color: var(--pg-muted); }
.pg-prow-cta { text-align: right; flex-shrink: 0; }
.pg-prow-cta b { font-size: 13px; font-weight: 700; color: var(--pg-accent); display: block; }
.pg-prow-cta span { font-size: 11px; color: #a7a9b0; }

/* brand directory */
.pg-section-sub { font-size: 14px; color: var(--pg-muted); margin: 0 0 20px; }
.pg-alpha { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.pg-alpha span { font-size: 13px; color: var(--pg-muted-2); border: 1px solid var(--pg-border); border-radius: 7px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; }
.pg-brand-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px 24px; }
.pg-brand-cols a { font-size: 13.5px; color: var(--pg-ink-soft); }
.pg-brand-cols a:hover { color: var(--pg-accent); text-decoration: underline; }

/* ---------------- Search / listing ---------------- */
.pg-searchbar-wrap { background: #fff; border-bottom: 1px solid var(--pg-border); }
.pg-searchbar { max-width: var(--pg-max); margin: 0 auto; padding: 24px 28px; }
.pg-searchbar form { display: flex; align-items: center; background: #f7f6f1; border: 1.5px solid var(--pg-border-2); border-radius: 12px; padding: 6px 6px 6px 16px; max-width: 760px; }
.pg-searchbar .pg-search-ico { color: #9a9ba2; margin-right: 11px; }
.pg-searchbar input { flex: 1; border: none; outline: none; background: transparent; font-family: var(--pg-body); font-size: 16px; color: var(--pg-ink); font-weight: 500; }
.pg-searchbar button { background: var(--pg-accent); color: #fff; font-weight: 600; font-size: 15px; padding: 11px 26px; border-radius: 9px; cursor: pointer; border: none; font-family: var(--pg-body); }
.pg-searchbar button:hover { background: #2746b5; }

.pg-breadcrumb { max-width: var(--pg-max); margin: 0 auto; padding: 14px 28px 0; font-size: 13px; color: var(--pg-muted); }
.pg-breadcrumb a:hover { text-decoration: underline; }
.pg-breadcrumb .sep { color: #c8c6bd; padding: 0 2px; }
.pg-breadcrumb .cur { color: var(--pg-ink); font-weight: 600; }

.pg-search-layout { max-width: var(--pg-max); margin: 0 auto; padding: 18px 28px 56px; display: grid; grid-template-columns: 248px 1fr; gap: 28px; align-items: start; }

/* sidebar */
.pg-sidebar { background: #fff; border: 1px solid var(--pg-border); border-radius: 14px; padding: 20px; position: sticky; top: 18px; }
.pg-sidebar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.pg-sidebar-head b { font-family: var(--pg-display); font-weight: 700; font-size: 15px; }
.pg-sidebar-head a { font-size: 12px; color: var(--pg-accent); font-weight: 600; }
.pg-sidebar-head a:hover { text-decoration: underline; }
.pg-filter-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--pg-muted); margin-bottom: 11px; }
.pg-filter-group { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.pg-filter-opt { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--pg-ink-soft); padding: 5px 0; }
.pg-filter-opt:hover { color: var(--pg-accent); }
.pg-filter-opt .count { color: #a7a9b0; margin-left: auto; }
.pg-filter-opt.active { color: var(--pg-ink); font-weight: 600; }
.pg-radio { width: 16px; height: 16px; border: 1.5px solid #cbc9bf; border-radius: 50%; flex-shrink: 0; position: relative; }
.pg-filter-opt.active .pg-radio { border-color: var(--pg-accent); }
.pg-filter-opt.active .pg-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--pg-accent); }
.pg-applied { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; background: var(--pg-accent-soft); color: var(--pg-accent); font-weight: 600; border-radius: 7px; padding: 5px 10px; }
.pg-applied a { font-weight: 700; }
.pg-applied-group { flex-direction: row; flex-wrap: wrap; gap: 7px; }

/* multi-select (square checkbox) options */
.pg-opt-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-check { width: 16px; height: 16px; border: 1.5px solid #cbc9bf; border-radius: 4px; flex-shrink: 0; position: relative; }
.pg-filter-opt.active .pg-check { border-color: var(--pg-accent); background: var(--pg-accent); }
.pg-filter-opt.active .pg-check::after { content: ""; position: absolute; left: 4.5px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pg-filter-empty, .pg-brand-noresults { font-size: 13px; color: var(--pg-muted); padding: 4px 0; }

/* brand filter: name search + capped, scrollable list (top ~10 shown by default) */
.pg-brand-search { width: 100%; box-sizing: border-box; font-size: 13px; padding: 7px 10px; margin-bottom: 10px; border: 1px solid var(--pg-border-2); border-radius: 8px; background: #fff; color: var(--pg-ink); }
.pg-brand-search:focus { outline: none; border-color: var(--pg-accent); }
.pg-brand-list { max-height: 340px; overflow-y: auto; }
.pg-brand-list .pg-filter-opt:nth-child(n+11) { display: none; }
.pg-brand-list .pg-filter-opt.active { display: flex; }

/* results */
.pg-results-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.pg-results-count { font-size: 14px; color: var(--pg-muted-2); }
.pg-results-count b { font-weight: 700; color: var(--pg-ink); }
.pg-toggle { display: inline-flex; align-items: center; gap: 2px; background: #fff; border: 1px solid var(--pg-border-2); border-radius: 9px; padding: 3px; }
.pg-toggle a { font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 7px; color: var(--pg-muted-2); }
.pg-toggle a.active { background: var(--pg-ink); color: #fff; }

.pg-results { display: flex; flex-direction: column; gap: 12px; }
.pg-result-row { background: #fff; border: 1px solid var(--pg-border); border-radius: 13px; padding: 16px; display: flex; gap: 16px; align-items: center; transition: border-color .12s, box-shadow .12s; }
.pg-result-row:hover { border-color: var(--pg-accent); box-shadow: 0 6px 18px rgba(0,0,0,0.05); }
.pg-result-row .pg-thumb { width: 78px; height: 78px; }
.pg-result-body { flex: 1; min-width: 0; }
.pg-result-title { font-family: var(--pg-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; margin: 2px 0 3px; }
.pg-result-sub { font-size: 12.5px; color: var(--pg-muted); }
.pg-result-cta { flex-shrink: 0; align-self: center; text-align: right; }
.pg-result-cta b { font-size: 13px; font-weight: 700; color: var(--pg-ink); display: block; }
.pg-result-cta span { font-size: 12px; color: var(--pg-accent); font-weight: 600; }

.pg-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.pg-tag { font-size: 11.5px; color: var(--pg-muted-2); border: 1px solid var(--pg-border); border-radius: 6px; padding: 4px 9px; }
.pg-tag.accent { font-weight: 600; color: var(--pg-accent); background: var(--pg-accent-soft); border-color: transparent; }

.pg-empty { background: #fff; border: 1px solid var(--pg-border); border-radius: 13px; padding: 40px; text-align: center; color: var(--pg-muted); }

/* pagination */
.pg-pagination { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 26px; flex-wrap: wrap; }
.pg-page { font-size: 13px; min-width: 34px; height: 34px; padding: 0 8px; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--pg-border-2); color: var(--pg-ink-soft); }
.pg-page:hover { border-color: var(--pg-accent); color: var(--pg-accent); }
.pg-page.active { background: var(--pg-accent); color: #fff; border-color: var(--pg-accent); font-weight: 600; }
.pg-page.disabled { color: #c2c0b6; pointer-events: none; }
.pg-page-ellipsis { font-size: 13px; color: #a7a9b0; padding: 0 4px; }

/* ---------------- Product page ---------------- */
.pg-product { max-width: 1080px; margin: 0 auto; padding: 18px 28px 56px; }
.pg-breadcrumb.narrow { max-width: 1080px; }
.pg-banner { background: #fff; border: 1px solid var(--pg-border); border-radius: 16px; padding: 22px; display: flex; gap: 22px; align-items: center; margin-bottom: 22px; }
.pg-banner .pg-thumb { width: 108px; height: 108px; border-radius: 12px; }
.pg-banner-body { flex: 1; min-width: 0; }
.pg-banner h1 { font-family: var(--pg-display); font-weight: 700; font-size: 28px; letter-spacing: -0.02em; margin: 4px 0 6px; line-height: 1.1; }
.pg-banner-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--pg-muted-2); }
.pg-banner-meta b { font-weight: 600; color: var(--pg-ink); }
.pg-count-badge { flex-shrink: 0; text-align: center; background: #f7f6f1; border: 1px solid var(--pg-border); border-radius: 11px; padding: 13px 20px; }
.pg-count-badge b { font-family: var(--pg-display); font-weight: 800; font-size: 26px; color: var(--pg-accent); line-height: 1; display: block; }
.pg-count-badge span { font-size: 12px; color: var(--pg-muted); font-weight: 500; }

.pg-h3 { font-family: var(--pg-display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; margin: 0 0 4px; }
.pg-sub { font-size: 14px; color: var(--pg-muted); margin: 0 0 18px; }

.pg-manuals-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 32px; }
.pg-manual-card { background: #fff; border: 1px solid var(--pg-border); border-radius: 14px; padding: 20px; display: flex; gap: 16px; transition: border-color .12s, box-shadow .12s; }
.pg-manual-card:hover { border-color: var(--pg-accent); }
.pg-manual-card.primary { border: 1.5px solid var(--pg-accent); }
.pg-manual-card.primary:hover { box-shadow: 0 10px 26px rgba(47,84,212,0.16); }
.pg-pdf-ico { width: 52px; height: 64px; border-radius: 7px; background: #fff; border: 1px solid var(--pg-border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 2px 6px rgba(0,0,0,0.06); }
.pg-pdf-ico span { font-size: 10px; font-weight: 800; color: #c4362b; letter-spacing: 0.03em; }
.pg-manual-card-body { flex: 1; min-width: 0; }
.pg-manual-card-title { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.pg-manual-card-title b { font-family: var(--pg-display); font-weight: 700; font-size: 17px; }
.pg-manual-card-meta { font-size: 13px; color: var(--pg-muted); margin-bottom: 14px; }
.pg-manual-card-actions { display: flex; gap: 9px; }

.pg-two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; margin-bottom: 32px; }
.pg-panel-card { background: #fff; border: 1px solid var(--pg-border); border-radius: 14px; padding: 22px; }
.pg-panel-card h3 { font-family: var(--pg-display); font-weight: 700; font-size: 17px; margin: 0 0 14px; }
.pg-spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid #efeee8; font-size: 13.5px; }
.pg-spec-row:last-child { border-bottom: none; }
.pg-spec-row .k { color: var(--pg-muted); }
.pg-spec-row .v { font-weight: 600; text-align: right; }
.pg-spec-group-name { font-family: var(--pg-display); font-weight: 700; font-size: 13px; margin: 14px 0 4px; }
.pg-spec-group-name:first-child { margin-top: 0; }
.pg-about p { font-size: 13.5px; line-height: 1.6; color: #43444b; margin: 0; }

.pg-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pg-related-card { display: flex; align-items: center; gap: 11px; background: var(--pg-card); border: 1px solid var(--pg-border); border-radius: 9px; padding: 9px 11px; transition: border-color .12s, box-shadow .12s; }
.pg-related-card:hover { border-color: var(--pg-accent); box-shadow: 0 1px 0 var(--pg-accent-soft); }
.pg-related-card .pg-thumb { width: 52px; height: 52px; }
.pg-related-body { min-width: 0; }
.pg-related-card .pg-eyebrow { margin-bottom: 1px; }
.pg-related-card .name { font-size: 12.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pg-related-card .more { font-size: 11px; color: var(--pg-accent); font-weight: 600; margin-top: 3px; }

/* ---------------- Manual viewer ---------------- */
.pg-manual-view { max-width: 1180px; margin: 0 auto; padding: 14px 28px 48px; display: grid; grid-template-columns: 1fr 286px; gap: 20px; align-items: start; }
.pg-breadcrumb.wide { max-width: 1180px; }
.pg-viewer { background: #fff; border: 1px solid var(--pg-border); border-radius: 14px; overflow: hidden; }
.pg-viewer-toolbar { display: flex; align-items: center; gap: 12px; padding: 11px 16px; background: var(--pg-dark-2); color: #d8dade; font-size: 12.5px; flex-wrap: wrap; }
.pg-viewer-toolbar .fname { font-weight: 600; color: #fff; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-viewer-toolbar .pg-btn { padding: 6px 14px; }
.pg-viewer-frame { width: 100%; height: 760px; border: none; display: block; background: #4c4f57; }
.pg-viewer-empty { background: #4c4f57; color: #cfd1d6; padding: 60px 28px; text-align: center; font-size: 14px; }
.pg-viewer-empty a { color: #fff; text-decoration: underline; }

.pg-manual-aside { position: sticky; top: 18px; display: flex; flex-direction: column; gap: 14px; }
.pg-mini-product { display: flex; gap: 13px; margin-bottom: 15px; }
.pg-mini-product .pg-thumb { width: 58px; height: 58px; }
.pg-mini-title { font-family: var(--pg-display); font-weight: 700; font-size: 15px; line-height: 1.2; }
.pg-mini-sub { font-size: 12px; color: var(--pg-muted); }
.pg-aside-actions { display: flex; gap: 9px; margin: 9px 0 13px; }
.pg-meta-list { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; color: var(--pg-muted-2); padding-top: 13px; border-top: 1px solid #efeee8; }
.pg-meta-list > div { display: flex; justify-content: space-between; gap: 12px; }
.pg-meta-list .k { color: var(--pg-muted); }
.pg-meta-list .v { font-weight: 600; color: var(--pg-ink); text-align: right; }
.pg-aside-title { font-family: var(--pg-display); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.pg-doc-list { display: flex; flex-direction: column; gap: 8px; }
.pg-doc-link { display: flex; align-items: center; gap: 10px; border: 1px solid var(--pg-border); border-radius: 9px; padding: 9px 11px; transition: border-color .12s; }
.pg-doc-link:hover { border-color: var(--pg-accent); }
.pg-doc-ico { width: 24px; height: 30px; border-radius: 4px; background: #fff; border: 1px solid var(--pg-border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pg-doc-ico span { font-size: 6.5px; font-weight: 800; color: #c4362b; }
.pg-doc-name { font-size: 12.5px; font-weight: 600; }
.pg-doc-sub { font-size: 11px; color: #a7a9b0; }
.pg-related-list { display: flex; flex-direction: column; gap: 11px; }
.pg-related-list .name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.pg-related-list .name:hover { color: var(--pg-accent); }
.pg-related-list .sub { font-size: 11.5px; color: var(--pg-muted); }

/* ---------------- Legal / content pages ---------------- */
.pg-legal { max-width: 760px; margin: 0 auto; padding: 8px 28px 64px; color: var(--pg-ink-soft); }
.pg-legal h1 { font-family: var(--pg-display); font-weight: 700; font-size: 32px; letter-spacing: -0.02em; color: var(--pg-ink); margin: 8px 0 14px; line-height: 1.1; }
.pg-legal h2 { font-family: var(--pg-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; color: var(--pg-ink); margin: 32px 0 8px; }
.pg-legal p { font-size: 15px; line-height: 1.65; margin: 0 0 14px; }
.pg-legal ol { margin: 0 0 16px; padding-left: 22px; }
.pg-legal li { font-size: 15px; line-height: 1.6; margin-bottom: 10px; }
.pg-legal-lead { font-size: 16.5px; line-height: 1.6; color: var(--pg-muted-2); }
.pg-legal-contact { background: #fff; border: 1px solid var(--pg-border); border-radius: 12px; padding: 18px 20px; margin: 4px 0 20px; display: flex; flex-direction: column; gap: 4px; }
.pg-legal-contact span { font-weight: 600; color: var(--pg-ink); }
.pg-legal-contact a { color: var(--pg-accent); font-weight: 600; }
.pg-legal-contact a:hover { text-decoration: underline; }
.pg-legal-note { font-size: 13.5px; color: var(--pg-muted); border-top: 1px solid var(--pg-border); padding-top: 18px; margin-top: 28px; }

/* ---------------- Footer ---------------- */
.pg-footer { background: var(--pg-dark); color: #c4c6cd; flex-shrink: 0; }
.pg-footer-grid { max-width: var(--pg-max); margin: 0 auto; padding: 44px 28px 30px; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.pg-footer-brand .pg-logo-mark { width: 24px; height: 24px; font-size: 14px; }
.pg-footer-brand p { font-size: 13px; line-height: 1.55; color: #8a8d96; margin: 12px 0 0; max-width: 280px; }
.pg-footer-col b { font-size: 12px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 13px; }
.pg-footer-col div { display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; }
.pg-footer-col a:hover { color: #fff; }
.pg-footer-bar { border-top: 1px solid #25282f; }
.pg-footer-bar div { max-width: var(--pg-max); margin: 0 auto; padding: 16px 28px; font-size: 12.5px; color: #71747d; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pg-footer-bar a { white-space: nowrap; }
.pg-footer-bar a:hover { color: #fff; }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .pg-search-layout { grid-template-columns: 1fr; }
  .pg-sidebar { position: static; }
  .pg-manual-view { grid-template-columns: 1fr; }
  .pg-manual-aside { position: static; }
  .pg-cat-grid { grid-template-columns: repeat(3, 1fr); }
  .pg-related-grid { grid-template-columns: repeat(2, 1fr); }
  .pg-brand-cols { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .pg-header-inner { flex-wrap: wrap; gap: 12px; padding: 10px 18px; }
  .pg-header-search { order: 3; flex-basis: 100%; max-width: none; }
  .pg-nav { gap: 16px; font-size: 13px; }
  .pg-nav .pg-nav-hide { display: none; }
  .pg-container, .pg-section, .pg-searchbar, .pg-breadcrumb, .pg-search-layout, .pg-product, .pg-legal, .pg-manual-view, .pg-footer-grid, .pg-footer-bar div, .pg-stats-inner, .pg-header-inner { padding-left: 18px; padding-right: 18px; }
  .pg-hero { padding: 44px 18px 54px; }
  .pg-hero h1 { font-size: 30px; overflow-wrap: break-word; }
  .pg-hero h1 br { display: none; }
  .pg-hero p { font-size: 15px; }
  .pg-results-head { flex-direction: column; align-items: flex-start; }
  .pg-hero-search { flex-wrap: wrap; padding: 12px; gap: 10px; }
  .pg-hero-search input { flex-basis: 100%; }
  .pg-hero-search button { width: 100%; }
  .pg-stats-inner { gap: 14px 28px; }
  .pg-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .pg-footer-grid { grid-template-columns: 1fr 1fr; }
  .pg-footer-bar div { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pg-popular-grid { grid-template-columns: 1fr; }
  .pg-two-col { grid-template-columns: 1fr; }
  .pg-related-grid { grid-template-columns: repeat(2, 1fr); }
  .pg-manuals-grid { grid-template-columns: 1fr; }
  .pg-brand-cols { grid-template-columns: repeat(2, 1fr); }
  .pg-banner { flex-direction: column; align-items: flex-start; }
  .pg-banner .pg-thumb { width: 88px; height: 88px; }
  .pg-result-row { flex-wrap: wrap; }
  .pg-result-row .pg-thumb { width: 60px; height: 60px; }
  .pg-result-cta { align-self: flex-start; text-align: left; }
  .pg-viewer-frame { height: 520px; }
  .pg-searchbar form { flex-wrap: wrap; }
  .pg-searchbar input { flex-basis: 100%; min-width: 0; }
}

@media (max-width: 460px) {
  .pg-cat-grid { grid-template-columns: 1fr; }
  .pg-related-grid { grid-template-columns: 1fr; }
  .pg-brand-cols { grid-template-columns: 1fr; }
  .pg-hero h1 { font-size: 25px; }
  .pg-nav { display: none; }
}

/* ---------------- Related items on eBay ---------------- */
/* One responsive partial used in two places: a full-width section on the
   product page and a single card in the manual viewer's narrow sidebar. The
   auto-fill grid collapses to one column when the container is narrow. */
.pg-ebay-section { margin-top: 32px; }
.pg-ebay { padding: 18px; }
.pg-ebay-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.pg-ebay-head .pg-aside-title { margin: 0; }
.pg-ebay-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--pg-muted); background: var(--pg-panel); border: 1px solid var(--pg-border);
  border-radius: 999px; padding: 3px 9px;
}
.pg-ebay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.pg-ebay-item {
  display: flex; align-items: center; gap: 11px; border: 1px solid var(--pg-border);
  border-radius: 9px; padding: 9px 11px; transition: border-color .12s ease, box-shadow .12s ease;
}
.pg-ebay-item:hover { border-color: var(--pg-accent); box-shadow: 0 1px 0 var(--pg-accent-soft); }
.pg-ebay-thumb {
  width: 52px; height: 52px; flex-shrink: 0; background: var(--pg-panel);
  border: 1px solid var(--pg-border); border-radius: 8px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.pg-ebay-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.pg-ebay-body { min-width: 0; }
.pg-ebay-title {
  font-size: 12.5px; font-weight: 600; line-height: 1.35; color: var(--pg-ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pg-ebay-price { font-size: 12.5px; font-weight: 700; color: #1a7f4b; margin-top: 3px; }
.pg-ebay-disclosure { font-size: 11px; color: var(--pg-muted); margin-top: 13px; }

/* Product-page placement: the section sits flush on the page background (no
   card/border) with a 4-up grid of white item cards, mirroring the Related
   products grid above. The manual-viewer sidebar keeps the default card. */
.pg-ebay-section .pg-ebay { background: transparent; border: 0; padding: 0; }
.pg-ebay-section .pg-ebay-head .pg-aside-title { font-size: 18px; }
.pg-ebay-section .pg-ebay-item { background: var(--pg-card); }
.pg-ebay-section .pg-ebay-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 980px) { .pg-ebay-section .pg-ebay-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .pg-ebay-section .pg-ebay-grid { grid-template-columns: 1fr; } }
