/* =========================================================
   Buyonix – Product Listing / Shop Catalog Page Styles
   ========================================================= */

.shop-page {
  position: relative;
  padding-bottom: 60px;
}

/* ---------- 1. Breadcrumbs & Collection Hero Banner ---------- */
.shop-hero {
  padding: 20px 0 12px;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.crumbs a:hover { color: var(--brand); }
.crumbs b { color: #fff; font-weight: 600; }

.shop-banner {
  position: relative;
  border-radius: 26px;
  background:
    radial-gradient(600px 300px at 88% 50%, rgba(247, 147, 30, 0.22), transparent 70%),
    linear-gradient(135deg, #12121c 0%, #0b0b12 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 28px 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  align-items: center;
  gap: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px -25px rgba(0, 0, 0, 0.75);
}
.shop-banner__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 99px;
  background: rgba(247, 147, 30, 0.15);
  border: 1px solid rgba(247, 147, 30, 0.4);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.shop-banner__tag svg { width: 14px; height: 14px; }
.shop-banner h1 {
  font-size: clamp(26px, 3.2vw, 42px);
  margin: 10px 0 8px;
  color: #fff;
}
.shop-banner p {
  font-size: 14.5px;
  color: #b4b4c4;
  max-width: 660px;
  line-height: 1.55;
}
.shop-banner__perks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.shop-banner__perks span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: #dcdce8;
}
.shop-banner__perks svg {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

.shop-banner__visual {
  position: relative;
  height: 195px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #08080d;
}
.shop-banner__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 0.6s var(--ease);
}
.shop-banner:hover .shop-banner__visual img {
  transform: scale(1.05);
}
.shop-banner__stat {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  padding: 8px 14px;
  border-radius: 14px;
  background: rgba(10, 10, 16, 0.85);
  border: 1px solid rgba(247, 147, 30, 0.45);
  backdrop-filter: blur(10px);
}
.shop-banner__stat b {
  display: block;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.05;
  color: var(--brand);
}
.shop-banner__stat small {
  font-size: 11px;
  color: #d4d4e0;
}

/* ---------- Quick Category Strip (Symmetrical Grid, Never Cuts Off) ---------- */
.cat-strip {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  padding: 2px 0;
  overflow: visible;
}
.cat-strip--main {
  margin-top: 0;
  padding: 14px;
  border-radius: 20px;
  background: rgba(18, 18, 28, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.085);
}
.cat-strip[hidden] { display: none !important; }
.cat-strip__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 8px;
  width: 100%;
}
.cat-strip__more {
  display: none;
}
.cat-pill {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 11px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.038);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #e0e0ec;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  text-align: left;
  transition: all 0.22s var(--ease);
}
.cat-pill__ico {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(247, 147, 30, 0.12);
  border: 1px solid rgba(247, 147, 30, 0.22);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.22s var(--ease);
}
.cat-pill svg {
  width: 15px;
  height: 15px;
  color: var(--brand);
  transition: transform 0.22s var(--ease);
}
.cat-pill:hover svg { transform: scale(1.12); }
.cat-pill__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cat-pill small {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.075);
  font-size: 10.5px;
  font-weight: 700;
  color: #b0b0c2;
  flex-shrink: 0;
}
.cat-pill:hover {
  border-color: rgba(247, 147, 30, 0.5);
  background: rgba(247, 147, 30, 0.1);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(247, 147, 30, 0.35);
}
.cat-pill.is-active {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(239, 65, 35, 0.6);
}
.cat-pill.is-active .cat-pill__ico {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}
.cat-pill.is-active svg { color: #fff; }
.cat-pill.is-active small {
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
}

/* Interactive cursor spotlight glow on shop elements */
.shop-banner::before,
.lcard::before,
.shop-help-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx, -200px) var(--my, -200px), rgba(247, 147, 30, 0.13), transparent 65%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.shop-banner:hover::before,
.lcard:hover::before,
.shop-help-banner:hover::before {
  opacity: 1;
}
.lcard, .shop-help-banner { position: relative; overflow: hidden; }

/* ---------- 2. Main Catalog Layout (Sidebar + Content) ---------- */
.shop-catalog {
  padding-top: 14px;
}
.shop-layout {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.shop-layout.no-sidebar {
  grid-template-columns: minmax(0, 1fr);
}

/* ---------- Left Filter Sidebar ---------- */
.shop-sidebar {
  position: sticky;
  top: 138px;
  background: rgba(18, 18, 28, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 22px;
  backdrop-filter: blur(16px);
  overflow: hidden;
}
.shop-sidebar__head {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.shop-sidebar__head h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #fff;
}
.shop-sidebar__head h3 svg { width: 18px; height: 18px; color: var(--brand); }
.shop-sidebar__head small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}
.shop-sidebar__head-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}
.shop-sidebar__close { display: none; width: 34px; height: 34px; }
.filter-reset-btn {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(247, 147, 30, 0.12);
  border: 1px solid rgba(247, 147, 30, 0.3);
  transition: all 0.2s;
}
.filter-reset-btn:hover {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}

.shop-sidebar__body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}
.shop-sidebar__foot { display: none; }

.fblock {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.fblock:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.fblock__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.fblock__title {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #b8b8c8;
  margin-bottom: 10px;
}
.fblock__row .fblock__title { margin-bottom: 0; }

.fsearch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.fsearch:focus-within { border-color: var(--brand); }
.fsearch svg { width: 16px; height: 16px; color: var(--muted); }
.fsearch input {
  width: 100%;
  font-size: 13px;
  color: #fff;
  outline: none;
}

/* Checkboxes */
.fchecks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fchecks--scroll {
  max-height: 195px;
  overflow-y: auto;
  padding-right: 4px;
}
.fcheck {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 13px;
  color: #dcdce8;
  user-select: none;
  padding: 4px 6px;
  border-radius: 9px;
  transition: background 0.15s;
}
.fcheck:hover { background: rgba(255, 255, 255, 0.04); }
.fcheck input { display: none; }
.fcheck__box {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.18s;
}
.fcheck__box::after {
  content: "✓";
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.18s;
}
.fcheck input:checked + .fcheck__box {
  background: var(--grad);
  border-color: transparent;
}
.fcheck input:checked + .fcheck__box::after {
  opacity: 1;
  transform: scale(1);
}
.fcheck__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fcheck__count {
  font-size: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 7px;
  border-radius: 99px;
}

/* Department list */
.flist {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.flist-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #d0d0de;
  transition: all 0.18s;
}
.flist-btn:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.flist-btn.is-active {
  background: rgba(247, 147, 30, 0.16);
  border: 1px solid rgba(247, 147, 30, 0.4);
  color: var(--brand);
  font-weight: 700;
}
.flist-btn small {
  font-size: 11px;
  color: var(--muted);
}

/* Price Range */
.fprice-readout {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
}
.fprice-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.fprice-inputs > div {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 5px 9px;
}
.fprice-inputs small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.fprice-inputs input {
  width: 100%;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  outline: none;
}
.frange {
  width: 100%;
  accent-color: var(--brand);
  cursor: pointer;
  margin: 4px 0 10px;
}
.fbudget-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.fbchip {
  padding: 6px 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 11.5px;
  font-weight: 600;
  color: #ccc;
  text-align: center;
  transition: all 0.18s;
}
.fbchip:hover, .fbchip.is-active {
  background: rgba(247, 147, 30, 0.18);
  border-color: var(--brand);
  color: #fff;
}

/* Rating buttons */
.fratings {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.frating-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 12.5px;
  color: #d0d0de;
  text-align: left;
  border: 1px solid transparent;
  transition: all 0.18s;
}
.frating-btn .stars { color: #fbbf24; display: inline-flex; }
.frating-btn .stars svg { width: 14px; height: 14px; }
.frating-btn:hover { background: rgba(255, 255, 255, 0.04); }
.frating-btn.is-active {
  background: rgba(247, 147, 30, 0.15);
  border-color: rgba(247, 147, 30, 0.4);
  color: #fff;
  font-weight: 700;
}

/* ---------- 3. Toolbar & Active Filter Chips ---------- */
.shop-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.shop-toolbar {
  background: rgba(18, 18, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 18px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.shop-toolbar__left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.shop-filter-trigger {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 11px;
  background: rgba(247, 147, 30, 0.15);
  border: 1px solid rgba(247, 147, 30, 0.4);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.shop-filter-trigger svg { width: 16px; height: 16px; color: var(--brand); }
.shop-filter-badge {
  background: var(--grad);
  color: #fff;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 99px;
}

.shop-count {
  font-size: 14px;
  color: #c4c4d4;
}
.shop-count b { color: #fff; font-family: var(--display); }

.shop-toolbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.shop-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.shop-sort select {
  padding: 8px 30px 8px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center / 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  appearance: none;
  cursor: pointer;
  outline: none;
}
.shop-sort select option {
  background: #141420;
  color: #fff;
}

.shop-views {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  padding: 3px;
  gap: 3px;
}
.view-btn {
  width: 34px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: all 0.18s;
}
.view-btn svg { width: 17px; height: 17px; }
.view-btn.is-active {
  background: var(--grad);
  color: #fff;
}

/* Active filter chips */
.active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.active-filters[hidden] { display: none !important; }
.af-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 99px;
  background: rgba(247, 147, 30, 0.14);
  border: 1px solid rgba(247, 147, 30, 0.38);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.af-chip button {
  color: var(--brand);
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
}
.af-chip:hover { background: rgba(247, 147, 30, 0.24); }

/* ---------- 4. Product Cards Grid & List Views ---------- */
.shop-products[data-view="grid"] {
  display: grid;
  grid-template-columns: repeat(var(--shop-cols, 4), minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 1650px) {
  .shop-products[data-view="grid"]:not([data-custom-cols]) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Extra action buttons on shop cards (Quick View & Compare) */
.card__tools {
  position: absolute;
  top: 46px;
  right: 10px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card__tool {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(15, 15, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  transition: all 0.2s;
}
.card__tool svg { width: 16px; height: 16px; }
.card__tool:hover, .card__tool.is-on {
  background: var(--grad);
  border-color: transparent;
  transform: scale(1.08);
}
.card__cat-pill {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Detailed Horizontal List View */
.shop-products[data-view="list"] {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lcard {
  background: rgba(18, 18, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 20px;
  padding: 18px;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 230px;
  gap: 22px;
  align-items: center;
  transition: border-color 0.25s, transform 0.25s;
}
.lcard:hover {
  border-color: rgba(247, 147, 30, 0.45);
  transform: translateY(-2px);
}
.lcard__media {
  position: relative;
  aspect-ratio: 1;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.lcard__media img {
  max-height: 165px;
  object-fit: contain;
}
.lcard__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.lcard__top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.lcard__title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
}
.lcard__title:hover { color: var(--brand); }
.lcard__perks {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}
.lcard__perks span {
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: #cfcfe0;
}
.lcard__buy {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lcard__price b {
  display: block;
  font-family: var(--display);
  font-size: 24px;
  color: #fff;
}
.lcard__price s {
  font-size: 13px;
  color: #7c7c90;
  margin-right: 8px;
}
.lcard__save {
  font-size: 12px;
  font-weight: 700;
  color: #22c55e;
}
.lcard__stock {
  font-size: 12px;
  color: #22c55e;
  font-weight: 600;
}

/* ---------- Empty State & Pagination ---------- */
.shop-empty {
  background: rgba(18, 18, 28, 0.8);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  padding: 54px 24px;
  text-align: center;
}
.shop-empty[hidden] { display: none !important; }
.shop-empty__ico {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: rgba(247, 147, 30, 0.14);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
}
.shop-empty__ico svg { width: 28px; height: 28px; }
.shop-empty h3 { font-size: 20px; color: #fff; margin-bottom: 6px; }
.shop-empty p { font-size: 14px; color: var(--muted); margin-bottom: 18px; }

.shop-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 20px;
  background:
    radial-gradient(380px 140px at 50% 0%, rgba(247, 147, 30, 0.08), transparent 70%),
    rgba(18, 18, 28, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.7);
  flex-wrap: wrap;
}
.shop-pagination[hidden] { display: none !important; }
.shop-pagination__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 240px;
  flex: 1;
}
.shop-pagination__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.page-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 9px;
  border-radius: 99px;
  background: rgba(247, 147, 30, 0.14);
  border: 1px solid rgba(247, 147, 30, 0.32);
  color: var(--brand);
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.shop-pagination__bar {
  height: 5px;
  width: 100%;
  max-width: 320px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.shop-pagination__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--grad);
  box-shadow: 0 0 10px rgba(247, 147, 30, 0.7);
  transition: width 0.35s var(--ease);
}
.page-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.page-nums {
  display: flex;
  align-items: center;
  gap: 6px;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #e2e2ee;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s var(--ease);
}
.page-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.page-btn--num {
  width: 40px;
  padding: 0;
  font-family: var(--display);
  font-weight: 700;
}
.page-btn--all {
  height: 34px;
  padding: 0 13px;
  border-radius: 99px;
  background: rgba(247, 147, 30, 0.12);
  border-color: rgba(247, 147, 30, 0.35);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}
.page-btn--all:hover {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
}
.page-btn:hover:not(:disabled) {
  border-color: rgba(247, 147, 30, 0.55);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  transform: translateY(-1px);
}
.page-btn.is-active {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(239, 65, 35, 0.65);
}
.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ---------- Help Banner & Recently Viewed ---------- */
.shop-help-banner {
  margin-top: 8px;
  padding: 24px 28px;
  border-radius: 22px;
  background:
    radial-gradient(450px 200px at 90% 50%, rgba(37, 211, 102, 0.18), transparent 70%),
    linear-gradient(135deg, #131820 0%, #0d1118 100%);
  border: 1px solid rgba(37, 211, 102, 0.28);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.shop-help-banner h3 {
  font-size: 20px;
  color: #fff;
  margin: 4px 0 6px;
}
.shop-help-banner p {
  font-size: 13.5px;
  color: #b4b4c4;
}

.shop-recent {
  margin-top: 20px;
}
.shop-recent[hidden] { display: none !important; }
.shop-recent__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

/* ---------- 5. Quick-View Modal & Compare Modal ---------- */
.qv-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}
.qv-modal[hidden] { display: none !important; }
.qv-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 10, 0.76);
  backdrop-filter: blur(8px);
}
.qv-modal__card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  overflow-y: auto;
  background: #13131f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85);
}
.qv-modal__card--wide {
  max-width: 1120px;
}
.qv-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.qv-media {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.qv-media img {
  max-height: 290px;
  object-fit: contain;
}
.qv-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: grid;
  place-items: center;
}
.qv-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qv-info h2 {
  font-size: 24px;
  color: #fff;
  line-height: 1.25;
}
.qv-price-box {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.qv-price-box b {
  font-family: var(--display);
  font-size: 28px;
  color: var(--brand);
}
.qv-price-box s {
  font-size: 15px;
  color: #7c7c90;
}
.qv-perks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.qv-perks span {
  padding: 8px 11px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12.5px;
  color: #d6d6e4;
}
.qv-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.qv-qty {
  display: inline-flex;
  align-items: center;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0 6px;
}
.qv-qty button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
}
.qv-qty span {
  min-width: 32px;
  text-align: center;
  font-weight: 700;
  color: #fff;
}

/* ---------- Compare Floating Dock & Table ---------- */
.compare-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 85;
  background: rgba(14, 14, 22, 0.96);
  border-top: 1px solid rgba(247, 147, 30, 0.45);
  backdrop-filter: blur(16px);
  padding: 12px 0;
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.7);
}
.compare-dock[hidden] { display: none !important; }
.compare-dock__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.compare-dock__info b {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: #fff;
}
.compare-dock__info svg { width: 18px; height: 18px; color: var(--brand); }
.compare-dock__info small { font-size: 12px; color: var(--muted); }
.compare-dock__items {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cd-item {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #fff;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.cd-item img { width: 100%; height: 100%; object-fit: contain; }
.cd-item button {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.compare-dock__actions { display: flex; gap: 8px; }

.compare-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.compare-modal__head h3 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  color: #fff;
}
.compare-table-wrap { overflow-x: auto; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}
.compare-table th, .compare-table td {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  font-size: 13.5px;
  color: #dcdce8;
  vertical-align: middle;
}
.compare-table th {
  width: 140px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-weight: 600;
}
.compare-table__prod img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  background: #fff;
  padding: 8px;
  border-radius: 14px;
  margin-bottom: 8px;
}

/* ---------- 6. Responsive Tablet & Mobile Polish ---------- */
@media (max-width: 1200px) {
  .shop-products[data-view="grid"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .shop-recent__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lcard {
    grid-template-columns: 160px minmax(0, 1fr) 200px;
  }
}

@media (max-width: 960px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .shop-filter-trigger {
    display: inline-flex;
  }
  .shop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(340px, 88vw);
    z-index: 110;
    border-radius: 0 22px 22px 0;
    background: #10101a;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 1 !important;
    filter: none !important;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-105%) !important;
    transition: transform 0.28s var(--ease), visibility 0.28s;
    display: flex;
    flex-direction: column;
  }
  .shop-sidebar.is-open {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0) !important;
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.85);
  }
  .shop-sidebar__close { display: inline-grid; }
  .shop-sidebar__body {
    flex: 1;
    max-height: none;
  }
  .shop-sidebar__foot {
    display: block;
    padding: 14px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #10101a;
  }
  .shop-banner {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .shop-banner__visual {
    height: 150px;
  }
}

@media (max-width: 640px) {
  .shop-hero { padding: 12px 0 8px; }
  .crumbs { font-size: 12px; margin-bottom: 10px; }
  .shop-banner { padding: 18px 16px; border-radius: 20px; gap: 14px; }
  .shop-banner h1 { font-size: 24px; margin: 8px 0 6px; }
  .shop-banner p { font-size: 12.5px; line-height: 1.45; }
  .shop-banner__perks { gap: 8px 12px; margin-top: 12px; padding-top: 12px; }
  .shop-banner__perks span { font-size: 11px; }
  .shop-banner__visual { height: 125px; border-radius: 14px; }
  .shop-banner__stat b { font-size: 18px; }

  .cat-strip {
    gap: 8px;
    margin-top: 10px;
  }
  .cat-strip--main {
    padding: 12px;
    border-radius: 16px;
  }
  .cat-strip__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .cat-strip__grid:not(.is-expanded) > .cat-pill:nth-child(n+7) {
    display: none;
  }
  .cat-strip__more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 36px;
    border-radius: 11px;
    background: rgba(247, 147, 30, 0.1);
    border: 1px dashed rgba(247, 147, 30, 0.35);
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s;
  }
  .cat-strip__more svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
  }
  .cat-strip__more:hover {
    background: rgba(247, 147, 30, 0.18);
    color: #fff;
  }
  .cat-pill {
    padding: 7px 9px;
    font-size: 12px;
    border-radius: 11px;
    gap: 7px;
  }
  .cat-pill__ico {
    width: 26px;
    height: 26px;
    border-radius: 8px;
  }
  .cat-pill svg { width: 14px; height: 14px; }
  .cat-pill small { font-size: 10px; padding: 2px 6px; }

  .shop-toolbar {
    padding: 10px 12px;
    border-radius: 14px;
    gap: 8px;
  }
  .shop-count { font-size: 12px; }
  .shop-sort span { display: none; }
  .shop-sort select { font-size: 12px; padding: 7px 24px 7px 10px; }

  .shop-products[data-view="grid"],
  .shop-recent__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .card__tools { top: 40px; right: 7px; gap: 4px; }
  .card__tool { width: 30px; height: 30px; }
  .card__tool svg { width: 14px; height: 14px; }

  .lcard {
    grid-template-columns: 105px minmax(0, 1fr);
    padding: 12px;
    gap: 12px;
    border-radius: 16px;
  }
  .lcard__media { padding: 8px; border-radius: 12px; }
  .lcard__media img { max-height: 85px; }
  .lcard__title { font-size: 14px; }
  .lcard__perks { display: none; }
  .lcard__buy {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 0;
    padding-top: 10px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .lcard__price b { font-size: 18px; }

  .qv-modal { padding: 12px; }
  .qv-modal__card { padding: 18px; border-radius: 20px; }
  .qv-grid { grid-template-columns: 1fr; gap: 16px; }
  .qv-media { max-width: 200px; margin: 0 auto; padding: 14px; }
  .qv-info h2 { font-size: 18px; }
  .qv-price-box b { font-size: 22px; }
  .qv-perks { grid-template-columns: 1fr; }

  .shop-help-banner { padding: 18px 16px; border-radius: 18px; }
  .shop-help-banner h3 { font-size: 17px; }
  .compare-dock { bottom: 60px; }

  .shop-pagination {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
    gap: 14px;
    border-radius: 16px;
  }
  .shop-pagination__meta {
    min-width: 0;
  }
  .shop-pagination__bar {
    max-width: none;
  }
  .page-btns {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }
  .page-btn--nav {
    padding: 0 12px;
    height: 38px;
    font-size: 12.5px;
  }
  .page-btn--num {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }
}
