/* =========================================================
   PRODUCTS.CSS — products.html + product.html (shared)
   ========================================================= */

/* ── Products page layout ───────────────────────────────── */
.productsShell {
  width: min(var(--max), calc(100% - 40px));
  margin: 18px auto 30px;
  display: grid;
  grid-template-columns: 260px 360px 1fr;
  gap: 16px;
}

/* LEFT: Sidebar categories */
.sideNav {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 14px;
  height: calc(100vh - 110px);
  position: sticky;
  top: 86px;
  overflow: auto;
}
.sideNav__title { font-weight: 900; margin-bottom: 10px; }
.sideNav__list  { display: flex; flex-direction: column; gap: 10px; }

.catBtn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  color: #fff;
  font-weight: 900;
  font-family: inherit;
  cursor: pointer;
  transition: background .12s;
}
.catBtn:hover  { background: rgba(255,255,255,.06); }
.catBtn.active {
  border-color: rgba(47,124,255,.45);
  box-shadow: 0 14px 30px rgba(47,124,255,.14);
}

/* MIDDLE: Model list */
.midPanel {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 14px;
  height: calc(100vh - 110px);
  position: sticky;
  top: 86px;
  overflow: auto;
}
.midPanel__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.midPanel__kicker { color: var(--muted); font-weight: 900; font-size: 12px; }
.midPanel__title  { margin: 0; font-size: 22px; font-weight: 900; line-height: 1.1; }

.pillBtn {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: #fff;
  font-weight: 900;
  font-family: inherit;
  cursor: pointer;
  transition: background .12s;
}
.pillBtn:hover { background: rgba(255,255,255,.06); }

.modelList { display: flex; flex-direction: column; gap: 10px; }

.modelCard {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  cursor: pointer;
  transition: background .12s;
}
.modelCard:hover  { background: rgba(255,255,255,.06); }
.modelCard.active {
  border-color: rgba(47,124,255,.45);
  box-shadow: 0 14px 30px rgba(47,124,255,.14);
}
.thumb {
  width: 66px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.25));
}
.modelCard__name { font-weight: 900; }
.modelCard__meta { color: var(--muted); font-size: 12px; margin-top: 2px; }

/* RIGHT: Preview panel */
.preview {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 16px;
  min-height: calc(100vh - 110px);
}
.preview__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.preview__series { color: var(--muted); font-weight: 900; }
.preview__name   { font-size: 30px; font-weight: 900; line-height: 1.05; margin-top: 4px; }
.preview__meta   { color: var(--muted); font-size: 12px; margin-top: 6px; }

.preview__imageWrap { display: grid; place-items: center; margin: 10px 0 6px; }
.preview__image {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 26px 30px rgba(0,0,0,.35));
}

.priceRow {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.10);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.priceRow__label { color: var(--muted); font-weight: 900; font-size: 12px; }
.priceRow__price { font-size: 22px; font-weight: 900; margin-top: 6px; }

.preview__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Highlight tags row */
.highlightRow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* =========================================================
   PRODUCT DETAIL PAGE (product.html)
   ========================================================= */

/* Layout */
.pd-main {
  padding: 18px 0;
}

.pd-back {
  display: inline-block;
  margin-bottom: 14px;
  font-weight: 700;
  transition: color .15s;
}
.pd-back:hover { color: #fff; }

.pd-grid {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 16px;
  margin-bottom: 22px;
}

/* Dark card (shared between left hero + right specs) */
.darkCard {
  background: rgba(7,12,22,.92);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 16px;
  color: #fff;
}

.pd-series     { font-weight: 900; margin-bottom: 6px; }
.pd-name       { font-size: 42px; font-weight: 900; line-height: 1.05; }
.pd-imgWrap    { display: grid; place-items: center; margin-top: 16px; }
.pd-img        {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  filter: drop-shadow(0 26px 30px rgba(0,0,0,.35));
}

.pd-from-label { font-weight: 900; }
.pd-price      { font-size: 32px; font-weight: 900; margin: 10px 0 12px; }
.pd-note       { margin-top: 10px; }

/* Fix label visibility on dark cards */
.darkSpec span   { color: rgba(255,255,255,.68) !important; }
.darkSpec strong { color: #fff !important; }

/* Spec rows */
.drawerSpec {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.10);
  font-weight: 900;
}
.drawerSpec span   { color: var(--muted); }
.drawerSpec strong { color: #fff; }

.drawerBtns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* =========================================================
   COMPARE WIDGET
   ========================================================= */
.compareSection {
  padding: 18px;
  border-radius: 18px;
  background: rgba(7,12,22,.92);
  border: 1px solid rgba(255,255,255,.10);
  color: #fff;
}
.compareHead  { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.compareTitle { margin: 0; font-size: 22px; font-weight: 900; }

.compareControls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 900px) { .compareControls { grid-template-columns: 1fr; } }

.compareLabel { display: block; font-weight: 900; color: rgba(255,255,255,.82); }

.compareField { position: relative; margin-top: 8px; }

.compareSelect {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  padding: 14px 44px 14px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  font-family: inherit;
  font-weight: 900;
  cursor: pointer;
  outline: none;
  transition: border-color .12s;
}
.compareSelect:hover        { border-color: rgba(255,255,255,.20); }
.compareSelect:focus-visible {
  border-color: rgba(111,178,255,.55);
  box-shadow: 0 0 0 3px rgba(47,124,255,.25);
}

.compareArrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.75);
  font-size: 14px;
  pointer-events: none;
}

.compareGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px) { .compareGrid { grid-template-columns: 1fr; } }

.compareCard {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  padding: 14px;
}
.compareName { font-weight: 900; font-size: 18px; margin-bottom: 10px; }
.compareImg  {
  width: 100%;
  height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 26px 30px rgba(0,0,0,.35));
  margin-bottom: 10px;
}
.compareRow {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  font-weight: 900;
}
.compareRow span   { color: rgba(255,255,255,.68); }
.compareRow strong { color: #fff; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .productsShell { grid-template-columns: 240px 340px 1fr; }
}
@media (max-width: 980px) {
  .productsShell { grid-template-columns: 1fr; }
  .sideNav, .midPanel { position: relative; top: auto; height: auto; }
  .preview        { min-height: auto; }
  .pd-grid        { grid-template-columns: 1fr; }
  .pd-name        { font-size: 32px; }
}
