/**
 * Poptides — Shop Page Redesign Styles
 * Scoped under .psr-* (poptides-shop-redesign) to avoid conflicts with shop.css
 *
 * Design tokens from MANUS.md:
 *   Coral:       #e8714a  — CTAs, accents, eyebrow labels
 *   Coral pale:  #fdf0eb  — highlight backgrounds
 *   Navy deep:   #0d1117  — dark section backgrounds
 *   Navy dark:   #161b27  — alternate dark sections
 *   Off-white:   #faf9f7  — light section background
 *   Text dark:   #1a1a2e  — body text on light
 *   Text muted:  #5a6080  — secondary text on light
 *
 * Branch: manus/category-page-redesign
 */

/* ═══════════════════════════════════════════════════════════════
   RESET / PAGE WRAPPER
═══════════════════════════════════════════════════════════════ */

.psr-page {
  font-family: 'Inter', sans-serif;
  color: #1a1a2e;
  background: #faf9f7;
}

.psr-coral { color: #e8714a; }

/* ═══════════════════════════════════════════════════════════════
   HERO HEADER
═══════════════════════════════════════════════════════════════ */

.psr-hero {
  background: #0d1117;
  padding: 72px 24px 56px;
  text-align: center;
}

.psr-hero__inner {
  max-width: 720px;
  margin: 0 auto;
}

.psr-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e8714a;
  margin-bottom: 16px;
}

.psr-hero__title {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.psr-hero__sub {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin: 0 0 40px;
}

/* Stats row */
.psr-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.psr-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.psr-stat strong {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.psr-stat span {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════════════════════════════
   TRUST STRIP
═══════════════════════════════════════════════════════════════ */

.psr-trust {
  background: #e8714a;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════════════
   GOAL TILES
═══════════════════════════════════════════════════════════════ */

.psr-goals {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  padding: 28px 24px;
}

.psr-goals__inner {
  max-width: 1160px;
  margin: 0 auto;
}

.psr-goals__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5a6080;
  margin: 0 0 16px;
}

.psr-goals__tiles {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.psr-goal-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 20px 12px;
  background: #faf9f7;
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  text-decoration: none;
  color: #1a1a2e;
  transition: border-color 0.18s, background 0.18s, transform 0.15s;
  min-width: 80px;
  cursor: pointer;
}

.psr-goal-tile:hover {
  border-color: #e8714a;
  background: #fdf0eb;
  transform: translateY(-2px);
  color: #1a1a2e;
  text-decoration: none;
}

.psr-goal-tile.is-active {
  border-color: #e8714a;
  background: #e8714a;
  color: #fff;
}

.psr-goal-tile.is-active .psr-goal-tile__count {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

.psr-goal-tile__icon {
  font-size: 22px;
  line-height: 1;
}

.psr-goal-tile__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.psr-goal-tile__count {
  font-size: 11px;
  font-weight: 600;
  background: rgba(0,0,0,0.07);
  color: #5a6080;
  border-radius: 99px;
  padding: 2px 8px;
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════
   TOOLBAR
═══════════════════════════════════════════════════════════════ */

.psr-toolbar {
  position: sticky;
  top: 68px;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

body.admin-bar .psr-toolbar { top: 100px; }
@media screen and (max-width: 782px) {
  body.admin-bar .psr-toolbar { top: 114px; }
}

.psr-toolbar__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.psr-toolbar__left {}

.psr-result-count {
  font-size: 13px;
  color: #5a6080;
}

.psr-result-count strong {
  color: #1a1a2e;
  font-weight: 700;
}

.psr-toolbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Icon button (search) */
.psr-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #faf9f7;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  cursor: pointer;
  color: #1a1a2e;
  transition: border-color 0.18s, background 0.18s;
}

.psr-icon-btn:hover {
  border-color: #e8714a;
  background: #fdf0eb;
}

/* Filter button */
.psr-filter-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: #faf9f7;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: #1a1a2e;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
  position: relative;
}

.psr-filter-btn:hover,
.psr-filter-btn.is-active {
  border-color: #e8714a;
  background: #fdf0eb;
  color: #e8714a;
}

.psr-filter-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #e8714a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 99px;
}

/* WC sort select override */
.psr-toolbar .woocommerce-ordering {
  margin: 0 !important;
}

.psr-toolbar .woocommerce-ordering select {
  height: 36px !important;
  padding: 0 12px !important;
  border: 1.5px solid rgba(0,0,0,0.1) !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-family: 'Inter', sans-serif !important;
  color: #1a1a2e !important;
  background: #faf9f7 !important;
  cursor: pointer;
  transition: border-color 0.18s;
}

.psr-toolbar .woocommerce-ordering select:hover,
.psr-toolbar .woocommerce-ordering select:focus {
  border-color: #e8714a !important;
  outline: none !important;
}

/* View toggle */
.psr-view-toggle {
  display: flex;
  gap: 4px;
}

.psr-view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: transparent;
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  color: #5a6080;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}

.psr-view-btn:hover,
.psr-view-btn.is-active {
  border-color: #e8714a;
  color: #e8714a;
  background: #fdf0eb;
}

/* ── SEARCH BAR ─────────────────────────────────────────────── */

.psr-search-bar {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
  border-top: 0 solid rgba(0,0,0,0.07);
}

.psr-search-bar.is-open {
  max-height: 72px;
  border-top-width: 1px;
}

.psr-search-bar__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.psr-search-icon {
  color: #5a6080;
  flex-shrink: 0;
}

.psr-search-bar__inner input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: #1a1a2e;
  background: transparent;
}

.psr-search-bar__inner input::placeholder {
  color: #aaa;
}

#psrSearchClose {
  background: none;
  border: none;
  font-size: 16px;
  color: #5a6080;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s;
}

#psrSearchClose:hover { color: #e8714a; }

/* ── FILTER PANEL ───────────────────────────────────────────── */

.psr-filter-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
  border-top: 0 solid rgba(0,0,0,0.07);
  background: #faf9f7;
}

.psr-filter-panel.is-open {
  max-height: 400px;
  border-top-width: 1px;
}

.psr-filter-panel__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.psr-filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 160px;
}

.psr-filter-group__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5a6080;
  margin: 0;
}

.psr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.psr-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #fff;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  color: #1a1a2e;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}

.psr-chip:hover {
  border-color: #e8714a;
  background: #fdf0eb;
}

.psr-chip input {
  width: 14px;
  height: 14px;
  accent-color: #e8714a;
  cursor: pointer;
}

.psr-chip:has(input:checked) {
  border-color: #e8714a;
  background: #fdf0eb;
  color: #e8714a;
}

/* Price range */
.psr-price-range {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 200px;
}

.psr-price-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
}

.psr-range-wrap {
  position: relative;
  height: 20px;
}

.psr-range-wrap input[type="range"] {
  position: absolute;
  width: 100%;
  height: 4px;
  background: transparent;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
}

.psr-range-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e8714a;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  pointer-events: all;
  cursor: pointer;
}

.psr-range-wrap input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e8714a;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  pointer-events: all;
  cursor: pointer;
}

/* Clear filters */
.psr-clear-filters {
  align-self: flex-end;
  padding: 8px 18px;
  background: transparent;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: #5a6080;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  margin-top: auto;
}

.psr-clear-filters:hover {
  border-color: #e8714a;
  color: #e8714a;
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCT GRID CONTAINER
   Fitrush renders the product loop inside:
   .products.bzotech-row.list-product-wrap
   shop.css already makes that a 4-col grid.
   We just need to ensure our .psr-card fills its grid cell correctly.
═══════════════════════════════════════════════════════════════ */

/* Suppress WC default result count and ordering — we use our own toolbar */
.woocommerce-result-count,
.woocommerce-ordering { display: none !important; }

/* Ensure the Fitrush products wrapper has the right background */
body.poptides-shop-page .products-wrap.js-content-wrap,
body.poptides-shop-page .shop-list-view,
body.poptides-shop-page .main-wrap-shop {
  background: #faf9f7 !important;
}

/* List view toggle — swap grid to single column */
body.poptides-shop-page .products.bzotech-row.list-product-wrap.is-list {
  grid-template-columns: 1fr !important;
}

body.poptides-shop-page .products.bzotech-row.list-product-wrap.is-list .psr-card {
  display: grid !important;
  grid-template-columns: 200px 1fr !important;
  align-items: center !important;
}

body.poptides-shop-page .products.bzotech-row.list-product-wrap.is-list .psr-card__img-wrap {
  height: 200px !important;
  border-radius: 20px 0 0 20px !important;
}

body.poptides-shop-page .products.bzotech-row.list-product-wrap.is-list .psr-card__body {
  padding: 24px 28px !important;
}

/* ── PRODUCT CARD ───────────────────────────────────────────── */

.psr-card {
  background: #fff;
  border-radius: 20px;
  border: 1.5px solid rgba(0,0,0,0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  animation: psr-fade-in 0.35s ease both;
}

.psr-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  border-color: rgba(232,113,74,0.3);
}

@keyframes psr-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Image wrap */
.psr-card__img-wrap {
  position: relative;
  background: #fdf0eb;
  height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.psr-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.psr-card:hover .psr-card__img {
  transform: scale(1.04);
}

/* Placeholder vial */
.psr-card__img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

/* Badge */
.psr-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.psr-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.badge--bestseller { background: #e8714a; color: #fff; }
.badge--hot        { background: #ff4d00; color: #fff; }
.badge--new        { background: #0d1117; color: #fff; }
.badge--stack      { background: #1a1a2e; color: #e8714a; }

/* Quick view button */
.psr-quick-view-btn {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  white-space: nowrap;
  background: rgba(13,17,23,0.9);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  backdrop-filter: blur(4px);
}

.psr-card:hover .psr-quick-view-btn {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.psr-quick-view-btn:hover {
  background: #e8714a;
}

/* Card body */
.psr-card__body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/* Tags */
.psr-card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.psr-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.psr-tag--flagship        { background: #fdf0eb; color: #e8714a; }
.psr-tag--fat-loss        { background: #fff3e0; color: #e65100; }
.psr-tag--performance     { background: #e8f5e9; color: #2e7d32; }
.psr-tag--longevity       { background: #e3f2fd; color: #1565c0; }
.psr-tag--recovery        { background: #f3e5f5; color: #6a1b9a; }
.psr-tag--glow            { background: #fce4ec; color: #880e4f; }
.psr-tag--hormone-support { background: #e0f7fa; color: #006064; }

/* Title */
.psr-card__title {
  font-size: 15px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.25;
  margin: 0;
}

.psr-card__title a {
  color: inherit;
  text-decoration: none;
}

.psr-card__title a:hover { color: #e8714a; }

/* Routes */
.psr-card__routes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.psr-route {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1.5px solid rgba(0,0,0,0.1);
  color: #5a6080;
  background: #fff;
}

.psr-route--subq    { border-color: rgba(30,136,229,0.3); color: #1565c0; background: #e3f2fd; }
.psr-route--oral    { border-color: rgba(56,142,60,0.3);  color: #2e7d32; background: #e8f5e9; }
.psr-route--nasal   { border-color: rgba(123,31,162,0.3); color: #6a1b9a; background: #f3e5f5; }
.psr-route--topical { border-color: rgba(230,81,0,0.3);   color: #bf360c; background: #fbe9e7; }

/* Footer row */
.psr-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.psr-card__price {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.psr-from {
  font-size: 10px;
  font-weight: 600;
  color: #5a6080;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Override WC price */
.psr-card__price .price,
.psr-card__price .woocommerce-Price-amount {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #e8714a !important;
  font-family: 'Inter', sans-serif !important;
  line-height: 1 !important;
}

.psr-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.psr-card__rating .star-rating {
  display: flex !important;
  font-size: 11px !important;
  color: #ffc107 !important;
}

.psr-review-count {
  font-size: 11px;
  color: #5a6080;
  font-weight: 500;
}

/* CTA button */
.psr-card__cta {
  display: block;
  width: 100%;
  background: #0d1117;
  color: #fff;
  text-align: center;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.18s;
  font-family: 'Inter', sans-serif;
  margin-top: 4px;
}

.psr-card__cta:hover {
  background: #e8714a;
  color: #fff;
  text-decoration: none;
}

/* ── VIAL PLACEHOLDER ───────────────────────────────────────── */

.psr-vial {
  width: 56px;
  height: 80px;
  background: linear-gradient(160deg, #f5f5f5 0%, #e8e8e8 100%);
  border-radius: 6px 6px 8px 8px;
  border: 1.5px solid rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.psr-vial::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 10px;
  background: #ccc;
  border-radius: 4px 4px 0 0;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-bottom: none;
}

.psr-vial__label {
  font-size: 7px;
  font-weight: 800;
  text-align: center;
  color: #1a1a2e;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
  padding: 0 4px;
  margin-top: 8px;
}

.psr-vial--lg {
  width: 100px;
  height: 140px;
}

.psr-vial--lg .psr-vial__label {
  font-size: 12px;
  margin-top: 16px;
}

.psr-vial--lg::before {
  width: 36px;
  height: 18px;
  top: -14px;
}

/* ── NO RESULTS ─────────────────────────────────────────────── */

.psr-no-results {
  text-align: center;
  padding: 60px 24px;
  color: #5a6080;
  font-size: 16px;
}

.psr-no-results button {
  margin-top: 16px;
  padding: 10px 24px;
  background: #e8714a;
  color: #fff;
  border: none;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}

/* ── LOAD MORE ──────────────────────────────────────────────── */

.psr-load-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 48px 0 0;
}

.psr-progress {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.psr-progress__bar {
  width: 100%;
  height: 4px;
  background: rgba(0,0,0,0.08);
  border-radius: 99px;
  overflow: hidden;
}

.psr-progress__fill {
  height: 100%;
  background: #e8714a;
  border-radius: 99px;
  transition: width 0.4s ease;
}

.psr-progress__text {
  font-size: 12px;
  color: #5a6080;
  font-weight: 500;
  margin: 0;
}

.psr-load-more-btn {
  padding: 14px 40px;
  background: #0d1117;
  color: #fff;
  border: none;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s;
  letter-spacing: 0.04em;
}

.psr-load-more-btn:hover {
  background: #e8714a;
  transform: translateY(-2px);
}

.psr-load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ═══════════════════════════════════════════════════════════════
   CURATED STACKS SECTION
═══════════════════════════════════════════════════════════════ */

.psr-stacks {
  background: #0d1117;
  padding: 80px 24px;
}

.psr-stacks__inner {
  max-width: 1160px;
  margin: 0 auto;
  text-align: center;
}

.psr-stacks .psr-eyebrow {
  display: block;
  margin-bottom: 12px;
}

.psr-stacks__title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.psr-stacks__sub {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  margin: 0 0 48px;
}

.psr-stacks__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: left;
}

.psr-stack-card {
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.18s, background 0.18s;
}

.psr-stack-card:hover {
  border-color: rgba(232,113,74,0.4);
  background: rgba(232,113,74,0.06);
}

.psr-stack-card__icon {
  font-size: 28px;
  line-height: 1;
}

.psr-stack-card__title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.25;
}

.psr-stack-card__desc {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.psr-stack-card__price {
  font-size: 15px;
  font-weight: 700;
  color: #e8714a;
}

.psr-stack-card__btn {
  display: inline-block;
  padding: 10px 20px;
  background: rgba(232,113,74,0.12);
  color: #e8714a;
  border: 1.5px solid rgba(232,113,74,0.3);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s;
  font-family: 'Inter', sans-serif;
  text-align: center;
}

.psr-stack-card__btn:hover {
  background: #e8714a;
  color: #fff;
  border-color: #e8714a;
  text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════
   QUICK VIEW MODAL
═══════════════════════════════════════════════════════════════ */

.psr-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,17,23,0.7);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.psr-modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.psr-modal {
  background: #fff;
  border-radius: 24px;
  max-width: 680px;
  width: 100%;
  display: grid;
  grid-template-columns: 260px 1fr;
  overflow: hidden;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s;
  max-height: 90vh;
  overflow-y: auto;
}

.psr-modal-overlay.is-open .psr-modal {
  transform: translateY(0);
}

.psr-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: rgba(0,0,0,0.08);
  border: none;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a2e;
  transition: background 0.15s;
  z-index: 1;
}

.psr-modal__close:hover { background: rgba(0,0,0,0.15); }

.psr-modal__img-col {
  background: #fdf0eb;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.psr-modal__img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.psr-modal__info-col {
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.psr-modal__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.psr-modal__title {
  font-size: 22px;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0;
  line-height: 1.2;
}

.psr-modal__price {
  font-size: 20px;
  font-weight: 800;
  color: #e8714a;
}

.psr-modal__trust {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #5a6080;
  font-weight: 500;
}

.psr-modal__full-link {
  display: inline-block;
  padding: 13px 28px;
  background: #e8714a;
  color: #fff;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.18s;
  font-family: 'Inter', sans-serif;
  margin-top: auto;
}

.psr-modal__full-link:hover {
  opacity: 0.9;
  color: #fff;
  text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
  .psr-grid { grid-template-columns: repeat(3, 1fr); }
  .psr-stacks__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .psr-hero { padding: 48px 20px 40px; }
  .psr-stats { gap: 24px; }
  .psr-stat strong { font-size: 22px; }
  .psr-goals { padding: 20px 16px; }
  .psr-goals__tiles { gap: 8px; }
  .psr-goal-tile { padding: 10px 14px 8px; min-width: 64px; }
  .psr-goal-tile__icon { font-size: 18px; }
  .psr-goal-tile__label { font-size: 11px; }
  .psr-toolbar__inner { padding: 10px 16px; }
  .psr-main__inner { padding: 0 16px; }
  .psr-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .psr-stacks { padding: 48px 16px; }
  .psr-stacks__grid { grid-template-columns: 1fr; }
  .psr-filter-panel__inner { flex-direction: column; gap: 20px; }
  .psr-modal { grid-template-columns: 1fr; }
  .psr-modal__img-col { min-height: 180px; }
  .psr-modal__info-col { padding: 24px 20px; }
  .psr-trust { gap: 16px; font-size: 11px; }
}

@media (max-width: 480px) {
  .psr-grid { grid-template-columns: 1fr; }
  .psr-hero__title { font-size: 30px; }
  .psr-toolbar__right { gap: 6px; }
  .psr-view-toggle { display: none; }
}
