/* =========================================================
   SEEBY SOUND — pages.css
   404, search results, search form, explore block, text pages (CGV, legal, privacy).
   Loaded by seeby_assets() on is_404(), is_search() and non-Elementor pages.
   ========================================================= */

/* ---------- Search form ---------- */
.pg-search{ position:relative; display:flex; gap:8px; width:100%; max-width:560px; }
.pg-search__icon{ position:absolute; left:16px; top:50%; width:20px; height:20px; transform:translateY(-50%); color:var(--muted); pointer-events:none; }
.pg-search__input{
  flex:1; min-width:0; height:52px; padding:0 16px 0 46px;
  font:500 1rem/1 var(--ff-body); color:var(--ink);
  background:var(--surface); border:1px solid var(--line-2); border-radius:var(--radius);
  transition:border-color .18s ease, box-shadow .18s ease;
}
.pg-search__input:focus{ outline:none; border-color:var(--ink); box-shadow:0 0 0 3px rgba(252,188,2,.45); }
.pg-search__input::-webkit-search-cancel-button{ cursor:pointer; }
.pg-search__btn{ height:52px; flex:none; }
.pg-search--dark .pg-search__input{ background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.22); color:#fff; }
.pg-search--dark .pg-search__input::placeholder{ color:rgba(255,255,255,.55); }
.pg-search--dark .pg-search__icon{ color:rgba(255,255,255,.6); }
.pg-search--dark .pg-search__input:focus{ border-color:var(--yellow); background:rgba(255,255,255,.12); }
@media (max-width:479px){
  .pg-search{ flex-direction:column; }
  .pg-search__icon{ top:26px; }
  .pg-search__input{ flex:none; width:100%; }
  .pg-search__btn{ width:100%; }
}

/* ---------- Hero bands (search + text pages) ---------- */
.pg-hero h1{ overflow-wrap:anywhere; }
.pg-hero__search{ display:flex; justify-content:center; margin-top:24px; }
.pg-hero--page .blog-hero__inner{ padding-block:40px 32px; }
.pg-hero--page h1{ font-size:clamp(2rem,6vw,3.4rem); }
.pg-hero__updated{ margin-top:10px; color:#a9a9a2; font-size:.92rem; }

/* ---------- 404 ---------- */
.pg-404__hero{
  background:
    radial-gradient(120% 90% at 78% 30%, rgba(252,188,2,.10), transparent 55%),
    radial-gradient(80% 70% at 10% 100%, rgba(31,157,87,.12), transparent 60%),
    var(--black);
  color:#fff; overflow:hidden;
}
.pg-404__inner{ display:grid; gap:36px; padding-block:48px 56px; align-items:center; }
@media (min-width:960px){ .pg-404__inner{ grid-template-columns:1.05fr 1fr; gap:64px; padding-block:88px 96px; } }

.pg-404__frame{
  position:relative; aspect-ratio:4 / 3; border-radius:var(--radius-lg);
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px),
    radial-gradient(70% 60% at 50% 45%, #2a2f2a, #121412 70%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px rgba(0,0,0,.45);
  display:grid; place-items:center; isolation:isolate; filter:grayscale(.2);
}
.pg-404__code{
  font:800 clamp(6rem,22vw,13rem)/.8 var(--ff-head); letter-spacing:-.02em;
  color:transparent; -webkit-text-stroke:2px rgba(252,188,2,.9);
  text-shadow:0 0 40px rgba(252,188,2,.18);
}
.pg-404__corner{ position:absolute; width:34px; height:34px; border:3px solid rgba(255,255,255,.8); }
.pg-404__corner--tl{ top:16px; left:16px; border-right:0; border-bottom:0; }
.pg-404__corner--tr{ top:16px; right:16px; border-left:0; border-bottom:0; }
.pg-404__corner--bl{ bottom:52px; left:16px; border-right:0; border-top:0; }
.pg-404__corner--br{ bottom:52px; right:16px; border-left:0; border-top:0; }
.pg-404__rec{ position:absolute; top:22px; left:62px; display:inline-flex; align-items:center; gap:8px; font:700 .85rem/1 var(--ff-head); letter-spacing:.12em; color:#fff; }
.pg-404__dot{ width:10px; height:10px; border-radius:50%; background:#e0362c; box-shadow:0 0 12px #e0362c; animation:pg-blink 1.6s steps(2, start) infinite; }
@keyframes pg-blink{ to{ visibility:hidden; } }
.pg-404__stamp{
  position:absolute; left:0; right:0; bottom:0; height:40px; padding:0 16px;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  background:rgba(0,0,0,.72); border-radius:0 0 var(--radius-lg) var(--radius-lg);
  font:600 .78rem/1 ui-monospace, 'SFMono-Regular', Consolas, monospace; letter-spacing:.06em; text-transform:uppercase; color:#e9e9e4;
  font-variant-numeric:tabular-nums; white-space:nowrap; overflow:hidden;
}
.pg-404__stamp span:last-child{ color:var(--yellow); }
@media (max-width:479px){ .pg-404__stamp span:nth-child(3){ display:none; } }

.pg-404__copy .eyebrow{ color:var(--yellow); }
.pg-404__copy h1{ font-size:clamp(2.6rem,8vw,4.8rem); margin-top:10px; }
.pg-404__copy .lead{ color:#cfcfca; font-size:1.12rem; max-width:48ch; margin:16px 0 28px; }
.pg-404__actions{ display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }

@media (prefers-reduced-motion: reduce){ .pg-404__dot{ animation:none; } }

/* ---------- Explore block (categories + best sellers) ---------- */
.pg-cats{ list-style:none; padding:0; display:grid; gap:12px; grid-template-columns:1fr; }
@media (min-width:640px){ .pg-cats{ grid-template-columns:1fr 1fr; } }
@media (min-width:1024px){ .pg-cats{ grid-template-columns:repeat(4,1fr); } }
.pg-cat{
  display:flex; align-items:center; gap:14px; padding:12px 16px 12px 12px; height:100%;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  color:var(--ink); text-decoration:none; transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.pg-cat:hover{ border-color:var(--ink); box-shadow:var(--shadow); transform:translateY(-2px); }
.pg-cat__media{ flex:none; width:64px; height:64px; border-radius:var(--radius-sm); background:var(--bg-2); overflow:hidden; display:grid; place-items:center; }
.pg-cat__media img{ width:100%; height:100%; object-fit:contain; }
.pg-cat__body{ flex:1; min-width:0; display:grid; gap:2px; }
.pg-cat__name{ font:700 1.15rem/1.1 var(--ff-head); text-transform:uppercase; letter-spacing:.02em; }
.pg-cat__count{ color:var(--muted); font-size:.88rem; }
.pg-cat__arrow{ flex:none; width:20px; height:20px; color:var(--muted); transition:transform .18s ease, color .18s ease; }
.pg-cat:hover .pg-cat__arrow{ transform:translateX(3px); color:var(--ink); }
.pg-subhead{ font-size:1.5rem; margin:40px 0 18px; }
@media (min-width:1024px){ .pg-products{ grid-template-columns:repeat(4,1fr); gap:20px; } }

/* ---------- Search results ---------- */
.pg-res-head{ display:flex; align-items:baseline; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:20px; }
.pg-res-head h2{ font-size:clamp(1.6rem,4vw,2.2rem); display:flex; align-items:center; gap:10px; }
.pg-res-head__count{ font:600 .85rem/1 var(--ff-body); padding:5px 9px; border-radius:20px; background:var(--bg-2); color:var(--muted); }
.pg-res-head__more{ font-family:var(--ff-head); font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--ink); }
.pg-res-head__more:hover{ color:var(--yellow-dark); }
.pg-results{ list-style:none; padding:0; display:grid; gap:10px; }
.pg-result__link{
  display:flex; gap:16px; align-items:flex-start; padding:14px; color:var(--ink); text-decoration:none;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  transition:border-color .18s ease, box-shadow .18s ease;
}
.pg-result__link:hover{ border-color:var(--ink); box-shadow:var(--shadow-sm); }
.pg-result__media{ flex:none; width:72px; height:72px; border-radius:var(--radius-sm); background:var(--bg-2); overflow:hidden; display:grid; place-items:center; color:var(--muted-2); }
.pg-result__media img{ width:100%; height:100%; object-fit:cover; }
.pg-result__media svg{ width:28px; height:28px; }
.pg-result__body{ display:grid; gap:4px; min-width:0; }
.pg-result__meta{ font-size:.8rem; font-weight:600; text-transform:uppercase; letter-spacing:.06em; color:#a07a00; }
.pg-result__title{ font:700 1.25rem/1.15 var(--ff-head); text-transform:uppercase; }
.pg-result__excerpt{ color:var(--muted); font-size:.95rem; }
.pg-empty{ padding-bottom:0; }
.pg-empty__text{ max-width:62ch; margin:0 auto; text-align:center; color:var(--muted); font-size:1.08rem; }

/* ---------- Text pages (classic content) ---------- */
.pg-prose{
  max-width:760px; margin:0 auto; padding-block:40px 80px;
  font-size:1.05rem; line-height:1.75; color:#2b2d33; overflow-wrap:break-word;
}
.pg-prose > * + *{ margin-top:1em; }
.pg-prose h1, .pg-prose h2, .pg-prose h3, .pg-prose h4{ color:var(--ink); margin-top:1.8em; }
.pg-prose h1{ font-size:clamp(1.8rem,4vw,2.4rem); }
.pg-prose h2{ font-size:clamp(1.5rem,3.4vw,2rem); }
.pg-prose h3{ font-size:1.35rem; }
.pg-prose > :first-child{ margin-top:0; }
.pg-prose a{ color:var(--ink); text-decoration:underline; text-decoration-color:var(--yellow); text-decoration-thickness:2px; text-underline-offset:3px; }
.pg-prose a:hover{ text-decoration-color:var(--ink); }
.pg-prose ul, .pg-prose ol{ padding-left:1.3em; }
.pg-prose li + li{ margin-top:.35em; }
.pg-prose img{ max-width:100%; height:auto; border-radius:var(--radius); }
.pg-prose hr{ border:0; border-top:1px solid var(--line-2); margin-block:2em; }
.pg-prose table{ width:100%; border-collapse:collapse; display:block; overflow-x:auto; }
.pg-prose th, .pg-prose td{ border:1px solid var(--line); padding:8px 12px; text-align:left; }
.pg-prose blockquote{ margin-inline:0; padding:4px 0 4px 1.2em; font-style:italic; color:var(--muted); box-shadow:inset 1px 0 0 var(--line-2); }
/* Old pasted legal text: all-caps paragraphs act as headings */
.pg-prose p > strong:only-child{ display:block; font-family:var(--ff-head); font-size:1.2rem; letter-spacing:.02em; color:var(--ink); }
.pg-cat__ph{ width:26px; height:26px; color:#a07a00; }
