/* ═══════════════════════════════════════════════════════════════
   TBLL Store — Products Listing Page  (modern redesign)
═══════════════════════════════════════════════════════════════ */

:root {
  --sidebar: 252px;
}

/* ── IMAGE POP (mirrors store-home.css) ───────────────────────── */
@keyframes imgPop {
  0% {
    filter: grayscale(0%) brightness(1.04);
  }
  30% {
    filter: grayscale(0%) brightness(1.22);
  }
  100% {
    filter: grayscale(0%) brightness(1.04);
  }
}

/* ── SCROLL ENTRANCE (mirrors store-home.css) ─────────────────── */
.reveal-hidden {
  opacity: 0;
  translate: 0 20px;
  transition:
    opacity 0.5s ease,
    translate 0.5s ease;
}
.reveal-visible {
  opacity: 1;
  translate: 0 0;
}

/* ── LAYOUT ──────────────────────────────────────────────────── */
.products-layout {
  display: flex;
  gap: 0;
  max-width: 100%;
  min-height: 80vh;
  background: #f8f8f8;
}

/* ── SIDEBAR ──────────────────────────────────────────────────── */
.prod-sidebar {
  width: var(--sidebar);
  flex-shrink: 0;
  background: white;
  border-right: 1px solid #efefef;
  padding: 0;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #e8e8e8 transparent;
}
.prod-sidebar::-webkit-scrollbar {
  width: 3px;
}
.prod-sidebar::-webkit-scrollbar-thumb {
  background: #e4e4e4;
  border-radius: 4px;
}

/* Sidebar accordions (<details> / <summary>) */
.sidebar-accordion {
  border-bottom: 1px solid #f5f5f5;
}
.sidebar-accordion-summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 18px 16px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  color: #555;
}
.sidebar-accordion-summary::-webkit-details-marker {
  display: none;
}
.sidebar-accordion-panel {
  padding: 0 18px 20px;
}
.sidebar-accordion-summary-label {
  flex: 1 1 auto;
  min-width: min-content;
  text-align: left;
  color: #555;
}
.sidebar-accordion-summary-end {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.sidebar-accordion-chevron {
  font-size: 0.65rem;
  color: #bbb;
  transition: transform 0.2s ease;
}
.sidebar-accordion[open] .sidebar-accordion-chevron {
  transform: rotate(180deg);
}
.sidebar-section-title {
  font-size: 0.68rem;
  font-weight: 800;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 0;
}
.sidebar-section-title a {
  font-size: 0.68rem;
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
}
.sidebar-section-title a:hover {
  text-decoration: underline;
}

/* Category list */
.cat-list-hint {
  font-size: 0.72rem;
  color: #999;
  line-height: 1.35;
}
.sidebar-filters-hint {
  margin: 0;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #f5f5f5;
}
.prod-sidebar.open .sidebar-filters-hint {
  padding-top: 12px;
}
.cat-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.cat-item-check {
  font-size: 0.7rem;
  flex-shrink: 0;
  color: var(--orange);
  line-height: 1;
}
.cat-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 9px;
  text-decoration: none;
  color: #555;
  font-size: 0.81rem;
  font-weight: 500;
  transition:
    background 0.15s,
    color 0.15s,
    box-shadow 0.15s;
  cursor: pointer;
}
.cat-item:hover {
  background: #fff4ec;
  color: var(--orange);
}
.cat-item.active {
  background: color-mix(in srgb, var(--orange) 9%, white);
  color: #1a1a1a;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--orange) 28%, transparent);
}
.cat-item.active:hover {
  background: color-mix(in srgb, var(--orange) 14%, white);
  color: #111;
}
.cat-item i {
  font-size: 0.8rem;
  width: 15px;
  text-align: center;
  color: #bbb;
}
.cat-item:hover i:not(.cat-item-check) {
  color: inherit;
}
.cat-item.active i:not(.cat-item-check) {
  color: var(--orange);
}
.cat-item.active .cat-item-check {
  color: var(--orange);
}
.cat-count {
  margin-left: auto;
  font-size: 0.65rem;
  background: #f2f2f2;
  color: #aaa;
  padding: 2px 7px;
  border-radius: 100px;
  font-weight: 600;
}
.cat-item.active .cat-count {
  background: color-mix(in srgb, var(--orange) 16%, white);
  color: color-mix(in srgb, var(--orange) 55%, #333);
}

/* Price range */
.price-range-hint {
  font-size: 0.72rem;
  color: #999;
  line-height: 1.35;
  margin: 0 0 12px;
}
.price-range-wrap {
  padding: 4px 0;
}
.price-inputs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  align-items: center;
}
.price-input {
  flex: 1;
  border: 1.5px solid #e8e8e8;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.78rem;
  outline: none;
  text-align: center;
  transition: border 0.15s;
  background: #fafafa;
}
.price-input:focus {
  border-color: #111;
  background: white;
}
.price-sep {
  color: #ccc;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.price-apply-btn {
  width: 100%;
  background: #111;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.price-apply-btn:hover {
  background: var(--orange);
}

/* Rating filter */
.rating-filter {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rating-opt {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.79rem;
  color: #555;
  transition: background 0.12s;
  text-decoration: none;
}
.rating-opt:hover {
  background: #fff4ec;
  color: var(--orange);
}
.rating-opt.active {
  background: #fff4ec;
  color: var(--orange);
  font-weight: 700;
}
.stars-mini {
  color: #f59e0b;
  font-size: 0.72rem;
}

/* ── MAIN AREA ────────────────────────────────────────────────── */
.prod-main {
  flex: 1;
  min-width: 0;
  background: #f8f8f8;
}

/* ── HERO (light, neutral — no brand / category accent color) ─── */
.prod-hero {
  --hero-line: #3f3f46;
  --hero-soft-bg: #f4f4f5;
  --hero-soft-border: #e4e4e7;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #ffffff 0%, #f7f7f8 42%, #f0f1f3 100%);
  padding: 36px clamp(16px, 3vw, 24px) 32px clamp(16px, 3vw, 24px);
  border-bottom: 1px solid #e4e4e7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Blobs — cool neutrals only */
.prod-hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  pointer-events: none;
  opacity: 0.32;
}
.prod-hero-blob--1 {
  width: 300px;
  height: 300px;
  background: #a1a1aa;
  top: -80px;
  right: 120px;
  animation: heroBlob1 8s ease-in-out infinite alternate;
}
.prod-hero-blob--2 {
  width: 180px;
  height: 180px;
  background: #d4d4d8;
  bottom: -60px;
  right: 40px;
  opacity: 0.45;
  animation: heroBlob2 11s ease-in-out infinite alternate;
}
.prod-hero-blob--3 {
  width: 120px;
  height: 120px;
  background: #71717a;
  top: 50%;
  left: 30%;
  opacity: 0.07;
}
@keyframes heroBlob1 {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(30px, 20px) scale(1.15);
  }
}
@keyframes heroBlob2 {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-20px, -15px) scale(1.1);
  }
}

/* Layout */
.prod-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.prod-hero-left {
  flex: 1;
  min-width: 0;
}

/* Kicker */
.prod-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--hero-soft-bg);
  border: 1px solid var(--hero-soft-border);
  color: #52525b;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.prod-hero-kicker i {
  font-size: 0.6rem;
  color: #71717a;
}

/* Title */
.prod-hero-title {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #111;
}
.prod-hero-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--hero-line);
  border-radius: 100px;
  margin-top: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

/* Pills */
.prod-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.prod-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #e8e6e3;
  color: #4a4a4a;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
}
.prod-hero-pill i {
  font-size: 0.62rem;
  opacity: 0.65;
  color: #888;
}
.prod-hero-pill--count {
  background: #e4e4e7;
  border-color: #d4d4d8;
  color: #27272a;
}
.prod-hero-pill--count i {
  opacity: 1;
  color: #52525b;
}
.prod-hero-pill--cat {
  background: #f3f2f0;
  border-color: #e5e3e0;
  color: #555;
}

/* Decorative icon */
.prod-hero-icon {
  position: relative;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prod-hero-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-soft-bg);
  border: 1px solid var(--hero-soft-border);
  border-radius: 22px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
.prod-hero-icon i {
  position: relative;
  font-size: 2rem;
  color: var(--hero-line);
  filter: none;
}

/* Category hero photo (same art as home carousel) — single-filter Fashion / Electronics / Beauty / Home / Sports */
.prod-hero--with-category-bg {
  background: #1a1a1a;
  border-bottom-color: rgba(0, 0, 0, 0.35);
  box-shadow: none;
}
.prod-hero--with-category-bg .prod-hero-blob {
  display: none;
}
.prod-hero-photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: 70% center;
  background-repeat: no-repeat;
}
.prod-hero-photo-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    rgba(10, 10, 10, 0.82) 0%,
    rgba(17, 17, 17, 0.55) 22%,
    rgba(26, 26, 26, 0.22) 42%,
    rgba(10, 10, 10, 0.08) 58%,
    transparent 72%
  );
}
.prod-hero--with-category-bg .prod-hero-inner {
  position: relative;
  z-index: 2;
}
.prod-hero--bg-fashion .prod-hero-photo-bg {
  background-image: url('/img/hero/hero-fashion-desktop.png');
}
.prod-hero--bg-gadgets .prod-hero-photo-bg {
  background-image: url('/img/hero/hero-gadgets-desktop.png');
}
.prod-hero--bg-beauty .prod-hero-photo-bg {
  background-image: url('/img/hero/hero-beauty-desktop.png');
}
.prod-hero--bg-home .prod-hero-photo-bg {
  background-image: url('/img/hero/hero-home-desktop.png');
}
.prod-hero--bg-workout .prod-hero-photo-bg {
  background-image: url('/img/hero/hero-workout-desktop.png');
}
/* Default — same art as home “Electronics / gadgets” slide */
.prod-hero--bg-default .prod-hero-photo-bg {
  background-image: url('/img/hero/hero-gadgets-desktop.png');
}
.prod-hero--with-category-bg .prod-hero-kicker {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
}
.prod-hero--with-category-bg .prod-hero-kicker i {
  color: rgba(255, 255, 255, 0.75);
}
.prod-hero--with-category-bg .prod-hero-title {
  color: #fafafa;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.45),
    0 4px 18px rgba(0, 0, 0, 0.35);
}
.prod-hero--with-category-bg .prod-hero-title::after {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}
.prod-hero--with-category-bg .prod-hero-pill {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
}
.prod-hero--with-category-bg .prod-hero-pill i {
  color: rgba(255, 255, 255, 0.7);
}
.prod-hero--with-category-bg .prod-hero-pill--count {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.prod-hero--with-category-bg .prod-hero-pill--count i {
  color: rgba(255, 255, 255, 0.85);
}
.prod-hero--with-category-bg .prod-hero-pill--cat {
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
}
.prod-hero--with-category-bg .prod-hero-icon::before {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.prod-hero--with-category-bg .prod-hero-icon i {
  color: #fff;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
}

@media (max-width: 768px) {
  /* Card-style hero (curved), aligned with home carousel on mobile */
  .prod-main {
    padding-top: 10px;
    padding-left: 0;
    padding-right: 0;
  }
  .prod-hero {
    width: 95%;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 8px;
    border-radius: clamp(16px, 2.2vw, 22px);
    border-bottom: none;
    box-shadow:
      0 12px 36px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }
  .prod-hero--with-category-bg {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  }
  .prod-hero-photo-bg {
    border-radius: inherit;
    background-position: center 42%;
  }
  .prod-hero-photo-scrim {
    border-radius: inherit;
    background: linear-gradient(
      180deg,
      rgba(10, 10, 10, 0.82) 0%,
      rgba(17, 17, 17, 0.5) 34%,
      rgba(26, 26, 26, 0.2) 60%,
      transparent 85%
    );
  }
  .prod-hero--bg-fashion .prod-hero-photo-bg {
    background-image: url('/img/hero/hero-fashion-mobile.png');
  }
  .prod-hero--bg-gadgets .prod-hero-photo-bg {
    background-image: url('/img/hero/hero-gadgets-mobile.png');
  }
  .prod-hero--bg-beauty .prod-hero-photo-bg {
    background-image: url('/img/hero/hero-beauty-mobile.png');
  }
  .prod-hero--bg-home .prod-hero-photo-bg {
    background-image: url('/img/hero/hero-home-mobile.png');
  }
  .prod-hero--bg-workout .prod-hero-photo-bg {
    background-image: url('/img/hero/hero-workout-mobile.png');
  }
  .prod-hero--bg-default .prod-hero-photo-bg {
    background-image: url('/img/hero/hero-gadgets-mobile.png');
  }
}

@media (max-width: 700px) {
  .prod-hero-icon {
    display: none;
  }
  .prod-hero-title {
    font-size: clamp(1.35rem, 6vw, 1.7rem);
  }
}

/* Toolbar */
.prod-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 13px clamp(16px, 3vw, 24px);
  background: white;
  border-bottom: 1px solid #f0f0f0;
  flex-wrap: wrap;
  gap: 10px;
}
.toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.toolbar-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.2px;
}
.toolbar-count {
  font-size: 0.76rem;
  color: #bbb;
  font-weight: 500;
}
.sidebar-view-hint {
  font-size: 0.72rem;
  color: #888;
  line-height: 1.4;
  margin: 0 0 10px;
}
.view-toggle {
  display: flex;
  gap: 4px;
}
.view-toggle--sidebar {
  width: 100%;
  gap: 6px;
}
.view-btn {
  width: 33px;
  height: 33px;
  border: 1.5px solid #e8e8e8;
  background: white;
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  transition: all 0.15s;
  font-size: 0.85rem;
}
.view-toggle--sidebar .view-btn {
  flex: 1;
  width: auto;
  min-height: 38px;
  gap: 8px;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #666;
}
.view-toggle--sidebar .view-btn span {
  font-size: 0.76rem;
}
.view-btn.active,
.view-btn:hover {
  border-color: #111;
  color: #111;
  background: #f5f5f5;
}
.view-toggle--sidebar .view-btn.active,
.view-toggle--sidebar .view-btn:hover {
  color: #111;
}
.active-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #f5f5f5;
  color: #444;
  border: 1px solid #e8e8e8;
  padding: 5px 11px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
}
.filter-chip a {
  color: #999;
  text-decoration: none;
  font-size: 0.78rem;
  margin-left: 3px;
  transition: color 0.12s;
}
.filter-chip a:hover {
  color: #dc2626;
}

/* ── PRODUCT GRID ────────────────────────────────────────────── */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
  padding: 18px clamp(16px, 3vw, 24px);
}
.prod-grid.list-view {
  grid-template-columns: 1fr;
  gap: 10px;
}

/* Home shared tile (store-product-card-home.njk) — base styles from store-home.css */
.prod-grid > .product-card {
  min-width: 0;
}

/* Catalog listing cards only (anchor has .product-card-link) */
.product-card-link .product-emoji {
  font-size: 3.25rem;
  line-height: 1;
  user-select: none;
}
.product-card-link .product-title-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}
.product-card-link .product-title-row .product-name {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}
.product-card-link .product-discount-pill {
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.15;
  padding: 4px 8px;
  border-radius: 8px;
  background: linear-gradient(145deg, #ef4444 0%, #dc2626 45%, #b91c1c 100%);
  color: #fff;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.28);
}
.product-card-link .product-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin-top: 2px;
}
.product-card-link .product-prices .product-price {
  font-size: 0.88rem;
  font-weight: 800;
  color: #111;
}
.product-card-link .product-old-price {
  font-size: 0.72rem;
  font-weight: 600;
  color: #9ca3af;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.product-card-link .product-rating {
  margin-top: 2px;
}

/* ── LIST VIEW (home card: one link wraps image + info, button sibling) ── */
.prod-grid.list-view .product-card {
  flex-direction: row;
  align-items: stretch;
}
.prod-grid.list-view .product-card > a {
  display: flex;
  flex-direction: row;
  flex: 1;
  min-width: 0;
  align-items: stretch;
}
.prod-grid.list-view .product-card .product-img-wrap {
  width: 180px;
  height: 148px;
  flex-shrink: 0;
  border-radius: 14px 0 0 14px;
}
.prod-grid.list-view .product-card .product-info {
  flex: 1;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.prod-grid.list-view .product-card .btn-add-cart {
  flex-shrink: 0;
  width: auto;
  min-width: 160px;
  max-width: 220px;
  align-self: center;
  margin: 12px 16px 12px 12px;
  border-top: none;
  border-left: none;
  border-radius: 9px;
}

/* ── EMPTY STATE ─────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 90px 20px;
  color: #ccc;
}
.empty-state i {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}
.empty-state h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #555;
  margin-bottom: 8px;
}
.empty-state p {
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 22px;
}
.empty-state a {
  display: inline-block;
  background: #111;
  color: white;
  padding: 12px 30px;
  border-radius: 100px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.18s;
}
.empty-state a:hover {
  background: var(--orange);
}

/* ── PAGINATION ──────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 32px 20px 32px 0;
}
.pg-btn {
  width: 38px;
  height: 38px;
  border: 1.5px solid #e8e8e8;
  background: white;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #666;
  text-decoration: none;
  transition: all 0.15s;
}
.pg-btn:hover {
  border-color: #111;
  color: #111;
  background: #f5f5f5;
}
.pg-btn.active {
  background: #111;
  border-color: #111;
  color: white;
}
.pg-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
}
.pg-dots {
  color: #ccc;
  padding: 0 4px;
  font-size: 0.9rem;
}

/* ── MOBILE SIDEBAR ──────────────────────────────────────────── */
.mob-filter-btn {
  display: none;
  align-items: center;
  gap: 7px;
  background: #111;
  color: white;
  border: none;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.mob-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 500;
  backdrop-filter: blur(2px);
}
.mob-sidebar-overlay.open {
  display: block;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1400px) {
  .prod-grid:not(.list-view) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .prod-grid:not(.list-view) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .prod-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    z-index: 501;
    transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    width: 280px;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.15);
  }
  .prod-sidebar.open {
    left: 0;
  }
  .mob-filter-btn {
    display: flex;
  }
  .prod-grid:not(.list-view) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .prod-grid:not(.list-view) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px clamp(16px, 3vw, 24px);
  }
  .prod-grid .product-img-wrap {
    height: 165px;
  }
  .prod-grid.list-view {
    grid-template-columns: 1fr;
  }
  .prod-grid.list-view .product-card {
    flex-direction: column;
  }
  .prod-grid.list-view .product-card > a {
    flex-direction: column;
  }
  .prod-grid.list-view .product-card .product-img-wrap {
    width: 100%;
    height: 190px;
    border-radius: 14px 14px 0 0;
  }
  .prod-grid.list-view .product-card .btn-add-cart {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    align-self: stretch;
    border-left: none;
    border-top: 1.5px solid #ededed;
    border-radius: 0;
  }
  .product-card-link .product-discount-pill {
    font-size: 0.56rem;
    padding: 3px 6px;
    border-radius: 6px;
  }
}
/* Matches store-home.css 349px ladder for .product-grid / rails */
@media (max-width: 349px) {
  .prod-grid:not(.list-view) {
    grid-template-columns: 1fr;
  }
}
