/* =========================================================
   listing.css — Search / Product List (searchresult.blade.php)
   Desktop + Tablet + Mobile + Light + Dark (body.dark)
   Scoped under .listing-page. Covers pagetypes:
   search | productlist | lowestproductlist
   Phase 2: promoted from listing-premium.css.
   Phase 2: listing styles. Shared .filter-card / buy-price chrome live in common-atf.css.
   ========================================================= */

.listing-page {
  padding-top: 1.25rem;
  padding-bottom: 3rem;
}

.listing-page > .container {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 1025px) {
  .listing-page {
    padding-top: 1.75rem;
    padding-bottom: 4rem;
  }

  .listing-page > .container {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Breadcrumb breathing room — site styles live in common-atf.css */
.listing-page .site-breadcrumb,
.listing-page .breadcrumb,
.listing-page .bc {
  margin-bottom: 1rem;
}

/* ---------- Results hero / heading ---------- */
.listing-page .results-header {
  display: block;
  margin: 0 0 1.25rem;
  padding: 1.15rem 1.25rem 1.25rem;
  background: radial-gradient(320px 200px at 17% 0%, rgb(59 130 246 / 20%), transparent 70%),
              radial-gradient(320px 200px at 89% 100%, rgb(237 51 172 / 18%), transparent 72%),
              linear-gradient(145deg, #fdfdfd 0%, #ffffff9e 55%, #f8f9ff 100%);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

/* .listing-page .results-info {
  max-width: 920px;
} */

.listing-page .results-title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #0f172a;
}

.listing-page .results-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}

.listing-page .results-title-row .results-title {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.listing-page .results-title-row + .listing-updated,
.listing-page .results-title-row + .results-count {
  margin-top: 0.45rem;
}

.listing-page .results-title-row .share-menu-wrap {
  flex: none;
  margin-top: 2px;
}

.listing-page .results-count,
.listing-page .listing-updated {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #64748b;
}

.listing-page .listing-summary-wrap {
  margin: 0.35rem 0 1rem;
}

.listing-page .results-header .results-info ._thmb{
  width:100%;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:16px;
}

.listing-page .listing-summary {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #334155;
}

.listing-page .listing-summary-text {
  display: inline;
}

.listing-page .listing-summary-toggle {
  display: inline;
  margin: 0;
  padding: 0 0 0 5px;
  border: 0;
  background: none;
  color: #ed3833;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: inherit;
  cursor: pointer;
  white-space: nowrap;
  vertical-align: baseline;
}

.listing-page .listing-summary-toggle:hover {
  text-decoration: underline;
}

.listing-page .listing-summary-toggle[hidden] {
  display: none !important;
}

@media (min-width: 1025px) {
  .listing-page .results-header {
    margin: 0 0 1.5rem;
    padding: 1.35rem 1.6rem 1.5rem;
  }
}

/* ---------- Selected filter chips ---------- */
.listing-page .selected-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.15rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.listing-page .selected-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
  color: #1e293b;
  font-size: 0.8125rem;
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.listing-page .selected-filter-chip:hover {
  border-color: rgba(237, 56, 51, 0.28);
  box-shadow: 0 4px 12px rgba(237, 56, 51, 0.08);
}

.listing-page .selected-filter-x {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eef2ff;
  color: #64748b;
  font-size: 0.85rem;
}

.listing-page .selected-filter-clear {
  margin-left: auto;
  color: #ed3833;
  font-size: 0.8125rem;
  font-weight: 600;
}

/* ---------- Layout ---------- */
.listing-page .results-layout {
  gap: 1.25rem;
  padding: 0;
}

.listing-page ._srchqury {
  font-size: 1rem;
  font-weight: 500;
    color: #64748b;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    margin-bottom:1rem;
}
body.dark .listing-page ._srchqury {
  color: #e4ecf8;
}

@media (min-width: 1025px) {
  .listing-page .results-layout._pdlstngwrp {
    gap: 1.5rem;
    align-items: flex-start;
  }

  .listing-page .filters-sidebar {
    width: 280px;
    padding: 0;
  }

  .listing-page .products-container {
    flex: 1;
    min-width: 0;
    overflow: visible;
  }
}

/* ---------- Filters sidebar ---------- */
.listing-page .filter-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  padding: 1rem 1.05rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 0 6px rgba(15, 23, 42, 0.04);
}

.listing-page .filter-card.sort-sidebar {
  background: rgba(255,255,255,0.85);
  border-radius: 16px 16px 0 0;
  margin-bottom: 0;
}

.listing-page .filter-card.sort-sidebar ul li {
  border-bottom-color: rgb(155 156 156 / 20%);
}

.listing-page .filter-card .sort-select {
  background:transparent;
}

.listing-page .filter-title {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #0f172a;
}

.listing-page .price-input-group input,
.listing-page .sort-select,
.listing-page .filter-search-input {
  /* border: 1px solid #e2e8f0; */
  border-radius: 10px;
  /* background: #f8fafc; */
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.listing-page .price-input-group input:focus,
.listing-page .sort-select:focus,
.listing-page .filter-search-input:focus {
  outline: none;
  border-color: #94a3b8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.18);
}

.listing-page .filter-card ul li {
  border-bottom-color: #f1f5f9;
}

.listing-page .filter-card ul li > a:hover {
  color: #ed3833;
}

.listing-page .apply-filters-btn {
  border-radius: 999px;
  background: linear-gradient(135deg, #ed3833 0%, #c81e1a 100%);
  box-shadow: 0 8px 20px rgba(237, 56, 51, 0.22);
}

/* Mobile sort / filter bar */
._srtfltrwrp {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.08);
}

.sort-toggle-btn,
.filter-toggle-btn {
  font-weight: 500;
  color: #334155;
}

.sort-toggle-btn:hover,
.filter-toggle-btn:hover {
  color: #ed3833;
  background: #fff7f7;
}

/* ---------- Product cards (final listing design) ---------- */
.listing-page .product-group-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  margin-bottom: 1.15rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  overflow: visible;
  position: relative;
  z-index: 1;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.listing-page .product-group-card:hover {
  border-color: #dbe2ea;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.09);
  transform: translateY(-1px);
}

/* Isolate open compare-prices popover from neighboring card :hover stacking */
.listing-page .product-group-card.is-offers-open,
.listing-page .product-group-card:has(.store-offers-box.active) {
  z-index: 70;
}

.listing-page .product-group-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  align-items: stretch;
}

.listing-page .product-group-image {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 180px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eef2f7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.listing-page .product-group-image a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
}

.listing-page .product-group-image img {
  max-width: 100%;
  max-height: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.listing-page .product-discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  background: #6d28d9;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.listing-page .product-group-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap:1rem;
}

.listing-page .product-group-header {
  margin-bottom: 0;
  gap: 0;
}

.listing-page .product-group-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0 0 0.3rem;
  line-height: 1.3;
}

.listing-page .product-description {
  color: #6b7280;
  font-size: 0.85rem;
  margin: 0 0 0.65rem;
  line-height: 1.4;
}

.listing-page ._pdrtavlgrp {
  width:100%;
  justify-content: space-between;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.listing-page ._pdgrprtfrm {
  justify-content: flex-start;
  gap: 0.55rem;
  margin-bottom: 0;
  flex-wrap: wrap;
  position: absolute;
  bottom: 5px;
  width: 100%;
  align-items: center;
  justify-content: center;
  left: 0;
  right: 0;
  z-index: 1;
}

.listing-page .product-rating-badge {
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.8rem;
  gap: 0.2rem;
  background: #10b981;
}

.listing-page .product-rating-badge svg {
  width: 14px;
  height: 14px;
}

.listing-page .rating-count {
  margin-left: 0;
  color: #9ca3af;
  font-weight: 500;
  font-size: 0.8rem;
}

/* Specs: final design — icon + label same line, value below; 2/3 cols.
   Background/borders live on real <li> items only — unused grid tracks stay white. */
.listing-page ul.product-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  margin: 0;
  width: 100%;
  list-style: none;
  padding: 0;
}

.listing-page ul.product-specs li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.2rem;
  margin: 0;
  padding: 0.7rem 0.8rem;
  min-width: 0;
  background: #fff;
  border-right: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
}

.listing-page ul.product-specs li:nth-child(2n) {
  border-right: none;
}

.listing-page ul.product-specs li:nth-child(2n + 1):nth-last-child(-n + 2),
.listing-page ul.product-specs li:nth-child(2n):nth-last-child(-n + 1) {
  border-bottom: none;
}

/* Icon + label on one line (final design) */
.listing-page ul.product-specs ._kspcs_icnlbl {
  width: auto;
  max-width: 100%;
  flex: none;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
}

.listing-page ul.product-specs ._kspcs_icnlbl img {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  object-fit: contain;
  flex: none;
  opacity: 0.9;
}

.listing-page ul.product-specs ._kspcs_icnlbl ._spclbl {
  font-size: 0.8rem;
  color: #9ca3af;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listing-page ul.product-specs ._spcdetl {
  width: 100%;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 500;
  color: #111827;
  line-height: 1.25;
  word-break: break-word;
  padding-left:25px;
}

.listing-page .availability-info {
  margin: 0;
  font-size: 0.84rem;
}

.listing-page .availability-info span:first-child {
  color: #4b5563;
  font-weight: 500;
}

.listing-page .lowest-price-info {
  color: #10b981;
  font-weight: 700;
}

.listing-page .product-variants {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin: 0 0 0.85rem;
}

.listing-page .product-variants-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7280;
}

.listing-page .product-variants-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.listing-page .product-variant-link {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  background: #fff;
}

.listing-page .product-variant-link:hover {
  border-color: #3b82f6;
  color: #2563eb;
}

.listing-page .product-variant-link.is-unavailable {
  opacity: 0.55;
  cursor: default;
}

/* Pricing column — floating compare-prices popover */
.listing-page .store-offers-box,
.listing-page .store-listing {
  border-color: #e5e7eb;
  border-radius: 14px;
  background: #fff;
}

.listing-page .store-offers-box {
  margin-bottom: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  overflow: visible;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
  border: 1px solid #eef2f7;
}

.listing-page .store-offers-box.active {
  z-index: 80;
}

.listing-page .store-offer-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  padding: 1rem 1rem 0.85rem;
  background: #fff;
  border-radius: 14px 14px 0 0;
  flex: 1 1 auto;
}

.listing-page .store-offers-box > .store-offer-head:last-child {
  border-radius: 14px;
  padding-bottom: 0.75rem;
}

.listing-page .offer-label {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: #ede9fe;
  color: #6d28d9;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.listing-page .offer-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.05rem 0.55rem;
}

.listing-page .offer-price-row .current-price,
.listing-page .store-offer-head .current-price {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.listing-page .offer-price-row .discount-percent {
  color: #10b981;
  font-size: 0.85rem;
  font-weight: 700;
}

.listing-page .offer-price-row .cut-price,
.listing-page .store-offer-head .cut-price {
  width: 100%;
  order: 3;
  color: #9ca3af;
  opacity: 1;
  text-decoration: line-through;
  font-size: 0.85rem;
  font-weight: 500;
}

.listing-page .offer-cta-area {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
}

.listing-page .store-offer-head .buy-now-btn {
  width: 100%;
  max-width: none;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.listing-page .store-offer-head .buy-now-btn::before {
    width: 100px;
    height: 60px;
    content: '';
    position: absolute;
    top: -8px;
    left: -50px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 1) -40%, rgba(255, 255, 255, 0.55) 40%, rgba(255, 255, 255, 0) 80%);
    z-index: 0;
}

.listing-page .view-on-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: #3b82f6;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
}

.listing-page .view-on-store:hover {
  color: #2563eb;
  text-decoration: underline;
}

.listing-page .view-on-store svg {
  width: 14px;
  height: 14px;
  flex: none;
}

/* Compare trigger + floating panel */
.listing-page .store-offers-compare {
  position: relative;
  z-index: 2;
  border-radius: 0 0 14px 14px;
  background: #fff;
  margin-top: auto;
  flex: none;
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.listing-page .offer-toggle-btn {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border: 0;
  background: rgb(218 191 231 / 10%);
  padding: 0.7rem 1rem;
  margin: 0;
  cursor: pointer;
  color: #1f2937;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: left;
  border-radius: 0 0 14px 14px;
  transition: background 0.18s ease, color 0.18s ease;
  position: relative;
  z-index: 2;
}

.listing-page .offer-toggle-btn:hover {
  background: #f8fafc;
  color: #111827;
}

.listing-page .offer-toggle-label {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* .listing-page .offer-toggle-label strong {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 2.2rem;
  font-weight: bold;
  line-height: normal;
  letter-spacing: 0em;
  font-variant-numeric: normal;
  text-align: center;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px rgb(182 92 255 / 79%);
  opacity: 1;
  filter: drop-shadow(0 2px 8px rgba(124, 92, 255, 0.08));
  pointer-events: none;
  user-select: none;
} */

.listing-page .offer-toggle-chevron {
  width: 16px;
  height: 16px;
  flex: none;
  color: #6b7280;
  transition: transform 0.2s ease;
}

.listing-page .store-offers-box.active .offer-toggle-chevron {
  transform: rotate(180deg);
}

.listing-page .store-offers-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 12px);
  z-index: 90;
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0 0.85rem;
  background: radial-gradient(200px 130px at 19% 0%, rgb(59 246 197 / 20%), transparent 70%),
              radial-gradient(200px 130px at 84% 100%, rgb(237 222 51 / 18%), transparent 72%),
              linear-gradient(145deg, #fdfdfd 0%, #ffffff9e 55%, #fffffe 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgb(75 76 78 / 32%);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.44), 0 4px 12px rgba(15, 23, 42, 0.26);
  pointer-events: auto;
}

/* Bridge the visual 8px gap so the cursor never hits the card underneath */
.listing-page .store-offers-panel::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
  background: transparent;
  pointer-events: auto;
}

.listing-page .store-offers-panel[hidden] {
  display: none !important;
}

.listing-page .store-offers-panel-title {
  margin: 0 0 0.55rem;
  padding: 0 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
}

.listing-page .store-offers-dropdown {
  display: block;
  background: transparent;
  border-top: none;
}

.listing-page .store-offers-box .store-listing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  margin: 0;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid #eef2f7;
  background: transparent;
  box-shadow: none;
  transition: background 0.2s ease;
}

.listing-page .store-offers-box .store-listing:hover {
  background: rgb(169 182 195 / 14%);
}

.listing-page .store-offers-box .store-offers-dropdown:last-child .store-listing {
  border-bottom: none;
  padding-bottom: 0.15rem;
}

.listing-page .store-offers-dropdown .store-price {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.listing-page .store-offer-seller-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #4b5563;
  line-height: 1.2;
}

.listing-page .store-offers-dropdown .store-price ._strprcw {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.45rem;
}

.listing-page .store-offers-dropdown .current-price {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.listing-page .store-offers-dropdown .discount-percent {
  font-size: 0.72rem;
}

.listing-page .store-offers-dropdown .cut-price {
  width: auto;
  order: initial;
  font-size: 0.75rem;
  color: #9ca3af;
  opacity: 1;
}

.listing-page .store-offers-dropdown .buy-now-btn {
  width: auto;
  max-width: 120px;
  height: 40px;
  flex: none;
  padding: 0 0.75rem;
  gap: 0.65rem;
}

.listing-page .store-listing.lowest {
  border-color: rgba(16, 185, 129, 0.45);
  background: linear-gradient(145deg, #f0fdf4 0%, #ecfdf5 100%);
}

.listing-page ._rsltbtn {
  margin: 1.5rem 0 0.5rem;
}

.listing-page ._rsltbtn ._btn.load_more,
.listing-page .load_more {
  min-width: 180px;
  height: 48px;
  padding: 0 1.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ed3833 0%, #c81e1a 100%);
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(237, 56, 51, 0.22);
  font-size: 1rem;
  font-weight: 600;
}

@media (min-width: 769px) {
  .listing-page ul.product-specs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .listing-page ul.product-specs li:nth-child(2n) {
    border-right: 1px solid #eef2f7;
  }

  .listing-page ul.product-specs li:nth-child(3n) {
    border-right: none;
  }

  .listing-page ul.product-specs li:nth-child(2n + 1):nth-last-child(-n + 2),
  .listing-page ul.product-specs li:nth-child(2n):nth-last-child(-n + 1) {
    border-bottom: 1px solid #eef2f7;
  }

  .listing-page ul.product-specs li:nth-child(3n + 1):nth-last-child(-n + 3),
  .listing-page ul.product-specs li:nth-child(3n + 2):nth-last-child(-n + 2),
  .listing-page ul.product-specs li:nth-child(3n):nth-last-child(-n + 1) {
    border-bottom: none;
  }
}

@media (min-width: 1025px) {
  .listing-page .product-group-content {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.5rem 1.35rem;
    padding: 1.25rem 1.35rem;
    overflow: visible;
  }

  .listing-page .product-group-image {
    width: 260px;
    min-width: 260px;
    min-height: 260px;
    flex: none;
    align-self: stretch;
    padding: 40px 0;
  }

  .listing-page .product-group-image img {
    max-height: 160px;
  }

  .listing-page .product-group-details {
    flex: 1;
    min-width: 0;
    padding-right: 0.25rem;
    gap: 1rem;
  }

  .listing-page .product-group-name {
    font-size: 1.25rem;
  }

  .listing-page .store-offers-box {
    width: 100%;
    /* min-width: 230px;
    max-width: 270px; 
    flex: none;*/
    align-self: stretch;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    margin: 0;
    padding: 0;
    overflow: visible;
    height: auto;
  }

  .listing-page .store-offer-head {
    padding: 0.85rem 2rem 1rem 1.5rem;
    gap: 0.9rem;
    flex-flow: row;
    align-items: center;
    justify-content: space-between;
  }

  .listing-page .offer-price-row .current-price,
  .listing-page .store-offer-head .current-price {
    font-size: 1.7rem;
  }
}

@media (max-width: 768px) {
  .listing-page .product-group-content {
    gap: 0.9rem;
    padding: 0.9rem;
    overflow: visible;
  }

  .listing-page .product-group-image {
    min-height: 240px;
    padding: 36px 0 40px 0;
  }

  .listing-page .product-group-image img {
    max-height: 160px;
  }

  .listing-page .product-group-name {
    font-size: 1.05rem;
  }

  .listing-page .store-offer-head {
    flex-direction: row;
    /* flex-wrap: wrap; */
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1rem;
  }

  .listing-page .offer-price-row .discount-percent {
    font-size: 0.75rem;
    font-weight:600;
  }

  .listing-page .offer-price-area {
    flex: 1;
    min-width: 140px;
  }

  .listing-page .offer-cta-area {
    flex: 1;
    min-width: 140px;
    max-width: 180px;
    margin-left: auto;
  }

  .listing-page .offer-price-row .current-price,
  .listing-page .store-offer-head .current-price {
    font-size: 1.4rem;
  }

  .listing-page .view-on-store {
    font-size: 0.78rem;
  }

  .listing-page .store-offers-panel {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
  }

  .listing-page .offer-toggle-btn {
    padding: 0.65rem 0.9rem;
    font-size: 0.78rem;
  }
}

/* ---------- Bottom SEO price table ---------- */
.listing-page ._ptbl {
  width: 100%;
  margin: 2rem 0 1.5rem;
  font-family: inherit;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  padding: 1.25rem 1.15rem 1.35rem;
  overflow: hidden;
}

.listing-page ._ptbl ._hd {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: #0f172a;
}

.listing-page ._ptbl .tblscroll {
  overflow-x: auto;
  margin: 0 -0.25rem;
  padding: 0 0.25rem;
  -webkit-overflow-scrolling: touch;
}

.listing-page ._ptbl table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.listing-page ._ptbl table thead tr {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.listing-page ._ptbl table th,
.listing-page ._ptbl table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #eef2f7;
  border-right: 1px solid #eef2f7;
  text-align: left;
  font-size: 0.875rem;
  vertical-align: middle;
}

.listing-page ._ptbl table th:last-child,
.listing-page ._ptbl table td:last-child {
  border-right: 0;
}

.listing-page ._ptbl table tbody tr:last-child td {
  border-bottom: 0;
}

.listing-page ._ptbl table th {
  font-weight: 650;
  color: #334155;
  white-space: nowrap;
}

.listing-page ._ptbl table td {
  color: #475569;
}

.listing-page ._ptbl table tbody tr:nth-child(even) {
  background: #fafbfc;
}

.listing-page ._ptbl table tbody tr:hover {
  background: #f1f5f9;
}

.listing-page ._ptbl .price,
.listing-page ._ptbl td:nth-child(2) {
  font-weight: 650;
  color: #0f172a;
  white-space: nowrap;
}

.listing-page ._ptbl .discount {
  color: #059669;
  font-weight: 650;
}

.listing-page ._ptbl .nodata {
  text-align: center;
  color: #94a3b8;
}

.listing-page ._ptbl ._pftr {
  margin-top: 0.9rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #64748b;
}

.listing-page ._ptbl ._pftr span {
  font-weight: 650;
  color: #334155;
}

/* SEO page content below table */
.listing-page .listing-seo-content {
  margin-top: 0.5rem;
  padding: 1.35rem 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  color: #334155;
  line-height: 1.65;
  font-size: 0.9375rem;
}

.listing-page .listing-seo-content h2,
.listing-page .results-layout h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.listing-page .listing-seo-content p,
.listing-page .results-layout p {
  margin: 0 0 0.85rem;
  color: #475569;
}

.listing-page .product-group-hd{width:100%;}
.listing-page .product-group-hd a{width:100%;display:block;}
.listing-page .product-group-hd .product-group-name{
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.listing-page .product-group-hd .product-description {
  margin: 0 0 0.35rem;
  color: #475569;
}

/* ---------- Dark mode ---------- */
body.dark .listing-page .results-header,
body.dark .listing-page .selected-filters,
body.dark .listing-page .filter-card,
body.dark .listing-page .product-group-card,
body.dark .listing-page ._ptbl,
body.dark .listing-page .listing-seo-content {
  background: #111827;
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.35);
}

body.dark .listing-page .results-header{
  background: radial-gradient(430px 160px at 15% 0%, rgb(59 130 246 / 42%), transparent 70%),
              radial-gradient(380px 160px at 87% 100%, rgb(237 56 51 / 29%), transparent 72%),
              linear-gradient(145deg, #040b1c 0%, #0e092a 55%, #1f0e2d 100%);
}

body.dark .listing-page .filters-sidebar {
  background: rgb(43 10 82 / 17%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

body.dark .filters-sidebar.active ~ ._slcfltrbtnw {
  background: rgb(15 19 30 / 96%);
  border-top-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.35);
}

body.dark .listing-page .results-title,
body.dark .listing-page .product-group-name,
body.dark .listing-page .filter-title,
body.dark .listing-page ._ptbl ._hd,
body.dark .listing-page .results-layout h2 {
  color: #f8fafc;
}

body.dark .listing-page .listing-summary,
body.dark .listing-page .listing-seo-content {
  color: #cbd5e1;
}

body.dark .listing-page .listing-summary-toggle {
  color: #93c5fd;
}

body.dark .listing-page .listing-summary-toggle:hover {
  color: #bfdbfe;
}

body.dark .listing-page .listing-updated,
body.dark .listing-page .results-count,
body.dark .listing-page .product-description,
body.dark .listing-page ._ptbl ._pftr,
body.dark .listing-page .results-layout p {
  color: #94a3b8;
}

body.dark .listing-page .selected-filter-chip {
  background: #1f2937;
  border-color: rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
}

body.dark .listing-page .product-group-image,
body.dark .listing-page ul.product-specs {
  background: #030919;
  border-color: #2d2b30;
}

body.dark .listing-page ._ptbl table {
  border-color: rgba(148, 163, 184, 0.16);
  background: #0f172a;
}

body.dark .listing-page ._ptbl table thead tr {
  background: #1e293b;
}

body.dark .listing-page ._ptbl table th,
body.dark .listing-page ._ptbl table td {
  border-color: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
}

body.dark .listing-page ._ptbl table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.65);
}

body.dark .listing-page ._ptbl table tbody tr:hover {
  background: #1e293b;
}

body.dark .listing-page .price-input-group input,
body.dark .listing-page .sort-select,
body.dark .listing-page .filter-search-input {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}

/* Specs / filters / selects — fill missing dark contrast (keep rules above) */
body.dark .listing-page ul.product-specs li {
  background: #030919;
  border-right-color: #2d2b30;
  border-bottom-color: #2d2b30;
}

body.dark .listing-page ul.product-specs ._kspcs_icnlbl ._spclbl {
  color: #94a3b8;
}

body.dark .listing-page ul.product-specs ._spcdetl {
  color: #e2e8f0;
}

body.dark .listing-page ul.product-specs img {
  opacity: 0.92;
  filter: brightness(1.15);
}

body.dark .listing-page .price-input-group label {
  color: #94a3b8;
}

body.dark .listing-page .price-input-group input::placeholder,
body.dark .listing-page .filter-search-input::placeholder {
  color: #64748b;
}

body.dark .listing-page .price-input-group input:focus,
body.dark .listing-page .sort-select:focus,
body.dark .listing-page .filter-search-input:focus {
  background: #111827;
  border-color: rgba(147, 197, 253, 0.45);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  color: #f8fafc;
}

body.dark .listing-page .sort-select {
  color-scheme: dark;
  background-image: none;
}

body.dark .listing-page .sort-select option {
  background: #0f172a;
  color: #e2e8f0;
}

body.dark .listing-page .checkbox-text,
body.dark .listing-page .checkbox-label,
body.dark .listing-page .filter-card ul li,
body.dark .listing-page .filter-card ul li a,
body.dark .listing-page .filter-card label {
  color: #cbd5e1;
}

body.dark .listing-page .filter-card ul li {
  border-bottom-color: rgba(148, 163, 184, 0.1);
}

body.dark .listing-page .filter-card ul li > a:hover,
body.dark .listing-page .checkbox-label:hover .checkbox-text {
  color: #93c5fd;
}

body.dark .listing-page .product-group-image {
  background: #fff;
}

body.dark .listing-page .store-listing {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 0.16);
}

body.dark .listing-page .store-listing:hover {
  border-color: rgba(148, 163, 184, 0.28);
}

body.dark .listing-page .store-listing.lowest {
  border-color: rgba(52, 211, 153, 0.45);
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.35) 0%, rgba(16, 185, 129, 0.18) 100%);
}

body.dark .listing-page .store-listing.lowest .current-price,
body.dark .listing-page .current-price {
  color: #f8fafc;
}

body.dark .listing-page .store-listing.lowest .current-price {
  color: #ecfdf5;
}

body.dark .listing-page .discount-percent {
  color: #34d399;
}

body.dark .listing-page .best-price-label,
body.dark .listing-page .store-listing-left {
  color: #e2e8f0;
}

body.dark .listing-page .store-offers-box {
  background: #030919;
  border-color: #2d2b30;
}

body.dark .listing-page .store-offers-box .store-listing {
  border-bottom-color: rgba(148, 163, 184, 0.12);
  background: transparent;
}

body.dark .listing-page .store-offers-box .store-listing:hover {
  background: rgba(148, 163, 184, 0.08);
}

body.dark .listing-page .store-offer-head {
  background: #030919;
}

body.dark .listing-page .product-discount-badge {
  background: #7c3aed;
}

body.dark .listing-page .offer-label {
  background: rgba(109, 40, 217, 0.22);
  color: #c4b5fd;
}

body.dark .listing-page .offer-price-row .current-price,
body.dark .listing-page .store-offer-head .current-price,
body.dark .listing-page .store-offers-box .current-price {
  color: #f8fafc;
}

body.dark .listing-page .offer-price-row .cut-price,
body.dark .listing-page .store-offer-head .cut-price,
body.dark .listing-page .store-offers-box .cut-price {
  color: #94a3b8;
}

body.dark .listing-page .view-on-store {
  color: #93c5fd;
}

body.dark .listing-page .view-on-store:hover {
  color: #bfdbfe;
}

body.dark .listing-page .store-offers-compare {
  background: #030919;
  border-top-color: #2d2b30;
}

body.dark .listing-page .offer-toggle-btn {
  color: #e5e7eb;
}

body.dark .listing-page .offer-toggle-btn:hover {
  background: #0a1228;
  color: #f8fafc;
}

body.dark .listing-page .offer-toggle-chevron {
  color: #94a3b8;
}

body.dark .listing-page .store-offers-panel {
  /* background: #030919; */
  background: radial-gradient(230px 60px at 15% 0%, rgb(246 59 148 / 42%), transparent 70%),
              radial-gradient(230px 60px at 87% 100%, rgb(51 237 234 / 29%), transparent 72%),
              linear-gradient(145deg, #1e2f57 0%, #211a22 55%, #1f0e2d 100%);
  border-color: #645e6c;
  box-shadow: 0 30px 130px rgb(244 247 255 / 44%), 0 -16px 72px rgb(98 119 170 / 35%);
}

body.dark .listing-page .store-offers-panel-title {
  color: #94a3b8;
}

body.dark .listing-page .store-offer-seller-name {
  color: #cbd5e1;
}

body.dark .listing-page ._showhideoffer {
  border-top-color: #2d2b30;
  background: transparent;
}

body.dark .listing-page .rating-count {
  color: #94a3b8;
}

body.dark .listing-page .availability-info span:first-child {
  color: #cbd5e1;
}

body.dark .listing-page ul.product-specs {
  background: #030919;
  border-color: #2d2b30;
}

body.dark .listing-page ul.product-specs li {
  background: #030919;
  border-right-color: #2d2b30;
  border-bottom-color: #2d2b30;
}

body.dark .listing-page ul.product-specs ._spcdetl {
  color: #f1f5f9;
}

body.dark .listing-page ul.product-specs ._kspcs_icnlbl ._spclbl {
  color: #94a3b8;
}

body.dark .listing-page .product-group-image {
  background: #fff;
  border-color: rgba(148, 163, 184, 0.12);
}

body.dark .listing-page ._rsltbtn ._btn,
body.dark .listing-page .load_more {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: #fff;
  border: none;
  box-shadow: 0 8px 22px rgba(59, 130, 246, 0.28);
}

body.dark ._srtfltrwrp {
  background: rgba(15, 23, 42, 0.96);
  border-top-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.35);
}

body.dark .sort-toggle-btn,
body.dark .filter-toggle-btn {
  color: #cbd5e1;
}

body.dark .sort-toggle-btn:hover,
body.dark .filter-toggle-btn:hover {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
}

body.dark .listing-page .pdp-share-btn {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}

body.dark .listing-page .pdp-share-btn:hover {
  background: #334155;
  color: #93c5fd;
}

@media (max-width: 768px) {
  .listing-page ._ptbl {
    padding: 1rem 0.85rem 1.1rem;
    border-radius: 14px;
  }

  .listing-page ._ptbl table th,
  .listing-page ._ptbl table td {
    padding: 0.7rem 0.75rem;
    font-size: 0.8125rem;
  }
}

/* ============================================================
   Phase 12 — Listing behaviors / product-group / filter chrome
   Moved from styles.css (unscoped). Loaded only for listing pagetypes.
   Shared .filter-card base lives in common-atf.css.
   Listing visual polish remains in .listing-page rules above.
   ============================================================ */
/* SEARCH RESULTS PAGE STYLES */
/* Main Content */
.search-results-main{padding-top:1rem;min-height:100vh;}
/* .filter-toggle-btn{display:flex;align-items:center;gap:.5rem;} */
/* Filters Sidebar */
.filters-sidebar{width:100%;display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:#fff;z-index:1500;padding:1rem 1rem 4rem 1rem;overflow-y:auto;}
.filters-sidebar.active{display:block;}
.filter-title{font-size:1rem;font-weight:600;margin:0;color:#1a1a1a;}
.price-inputs{display:flex;align-items:center;gap:.5rem;}
.price-input-group{flex:1;}
.price-input-group label{display:block;font-size:.75rem;color:#6b7280;margin-bottom:.25rem;}
.price-input-group input{width:100%;padding:.75rem;border:1px solid #e5e7eb;border-radius:8px;font-size:.875rem;}
.price-separator{color:#9ca3af;margin-top:1.25rem;}
.checkbox-group{display:flex;flex-direction:column;gap:.6rem;}
.checkbox-label{display:flex;align-items:center;gap:.75rem;cursor:pointer;}
.checkbox-label input[type="checkbox"]{width:18px;height:18px;accent-color:#3b82f6;}
.checkbox-text{font-size:.8rem;color:#374151;}
.sort-select{width:100%;padding:.75rem;border:1px solid #e5e7eb;border-radius:8px;font-size:.875rem;background:#fff;cursor:pointer;}
._slcfltrbtnw{width:100%;position:fixed;bottom:0;left:0;z-index:1500;padding:0.5rem;grid-template-columns:repeat(2,1fr);background-color:#fff;box-shadow:0px 0px 10px 0px rgb(7 17 58 / 20%);transform:translateY(120px);transition:transform 0.3s ease;}
.filters-sidebar.active ~ ._slcfltrbtnw{transform:translateY(0);transition:transform 0.3s ease;}
.apply-filters-btn{width:100%;padding:0.8rem 1rem;background:linear-gradient(135deg,#3b82f6 0%,#8b5cf6 100%);color:#fff;border-radius:8px;font-weight:600;transition:transform .3s;}
.apply-filters-btn:hover{transform:translateY(-2px);}
/* Sort Sidebar */
.sort-sidebar{width:100%;display:none;position:fixed;left:0;right:0;bottom:0;background:#fff;z-index:1500;padding:2rem 0 1rem 0;margin:0;overflow-y:auto;border-radius:1rem 1rem 0 0;border:none;box-shadow:0px 0px 50px 0px rgb(7 17 58 / 50%);}
.sort-sidebar.active{display:block;}
._sortovrly{width:100%;height:100%;position:fixed;inset:0;background:rgb(43 10 82 / 17%);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);z-index:99;}
.sort-sidebar .filter-title{font-weight:normal;font-size:0.85rem;margin-bottom:1rem;padding:0 0 0 1rem;opacity:0.5;}
.sort-sidebar ._srtcls{width:40px;height:40px;position:absolute;top:10px;right:10px;align-items:center;justify-content:center;}
.sort-sidebar ._srtcls svg{width:34px;height:34px;}
.sort-sidebar ul{border:none;padding:0;margin:0;}
.sort-sidebar ul li{font-size:0.9rem;align-items:center;justify-content:flex-start;gap:0.7rem;padding:0.7rem 1rem;border-bottom:1px solid #eee;}
.sort-sidebar ul li:last-child{border-bottom:none;}
.sort-sidebar ul li svg{width:20px;color:#dc2626;}
/* Load More */
.load_more{font-size:18px;font-weight:400;line-height:42px;height:44px;color:var(--color);box-shadow:0 2px 6px 0 var(--btnsh);border-radius:50px;border:none;font-size:20px;font-weight:600;line-height:44px;min-width:60px;padding:0 30px;margin:auto;display:inline-block;position:relative;outline:0;text-align:center;cursor:pointer;white-space:nowrap;}
.ajax-loader-overlay{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(255,255,255,.72);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);z-index:2000;}
.ajax-loader-card{background:#fff;padding:18px 22px;border-radius:16px;box-shadow:0 12px 40px rgba(0,0,0,.12);}
.ajax-loader-card img{width:64px;height:auto;display:block;}
/* Selected Filters */
.selected-filters{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 20px;align-items:center;}
.selected-filter-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:20px;background:#f3f4f6;font-size:14px;}
.selected-filter-remove{border:none;cursor:pointer;color:#111827;}
.selected-filter-x{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:999px;background:#e5e7eb;font-size:14px;line-height:1;}
.selected-filter-clear{margin-left:auto;color:#dc2626;cursor:pointer;font-size:14px;}
/* Filter Card Header */
/* Buttons */
.facet-show-more,.clear-filters-btn{border:none;background:transparent;cursor:pointer;}
/* Search Input */
.filter-search-input{width:100%;margin:0 0 12px;padding:10px 12px;border:1px solid #d1d5db;border-radius:10px;}
/* Checkbox */
.checkbox-label{display:flex;align-items:flex-start;gap:10px;margin-bottom:10px;cursor:pointer;}
.checkbox-label input[type="checkbox"]{appearance:auto;-webkit-appearance:checkbox;width:16px;height:16px;min-width:16px;margin-top:2px;display:inline-block;opacity:1;visibility:visible;position:static;}
.checkbox-text{flex:1;line-height:1.6;}
/* Hidden States */
.facet-option-hidden,.hidden{display:none;}
/* Actions */
.facet-show-more,.clear-filters-btn{color:#dc2626;}
/* Products Container */
/* .products-container{flex:1;} */
@media (min-width:1025px){
.results-layout._pdlstngwrp{flex-flow:row;gap:40px;align-items:flex-start;justify-content:flex-start;}
.filters-sidebar{width:300px;display:block;position:relative;flex:none;z-index:0;background-color:transparent;padding:0;}
.products-container{width:100%;}
}
/* Product Group Card */
.product-group-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;overflow:visible;margin-bottom:2rem;transition:box-shadow .3s;}
.product-group-card:hover{box-shadow:0 10px 40px rgba(0,0,0,.1);}
.product-group-content{display:flex;gap:1rem;padding:1rem;flex-direction:column;}
.product-group-image{width:100%;height:200px;flex-shrink:0;border-radius:12px;overflow:hidden;}
.product-group-image a{width:100%;display:flex;align-items:center;justify-content:center;}
.product-group-image img{max-width:100%;max-height:200px;width:auto;height:auto;object-fit:cover;transition:transform .3s;}
/* .product-group-card:hover .product-group-image img{transform:scale(1.05);} */
.product-group-details{flex:1;}
.product-group-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:1rem;flex-direction:column;gap:1rem;}
.product-group-info{width:100%;}
.product-group-name{font-size:1.25rem;font-weight:700;color:#1a1a1a;margin-bottom:.5rem;}
._pdgrprtfrm{align-items:center;justify-content:space-between;margin-bottom:1rem;}
.product-rating-badge{display:inline-flex;align-items:center;gap:.25rem;padding:.25rem .75rem;background:#10b981;color:#fff;border-radius:4px;font-size:.875rem;font-weight:600;margin:0;}
.product-rating-badge svg{width:18px;height:18px;}
.rating-count{font-weight:600;font-size:0.8rem;margin-left:.5rem;}
.product-description{font-size:.875rem;color:#6b7280;line-height:1.5;margin-bottom:1rem;}
.forum-btn{width:auto;max-width:max-content;justify-content:center;padding:.32rem 1rem;background:#fff;border:1px solid #e5e7eb;border-radius:4px;font-size:.8rem;font-weight:500;display:flex;align-items:center;gap:.5rem;transition:all .3s;}
.forum-btn svg{width:18px;height:18px;}
.forum-btn:hover{background:#f3f4f6;border-color:#3b82f6;color:#3b82f6;}
@media (min-width:1025px){
.product-group-content{flex-direction:row;gap:3rem;}
.product-group-image{width:300px;flex:none;}
.listing-page .product-group-image,
.product-group-image img{height:auto;max-height:inherit;}
.product-group-info{width:100%;}
}
/* Key Specs */
ul.product-specs{width:100%;border:1px solid #e5e7ec;border-radius:0.5rem;}
ul.product-specs li{align-items:center;justify-content:flex-start;border-bottom:1px solid #e5e7ec;padding:0.5rem 0.5rem 0.5rem 0.5rem;margin:0;gap:1rem;}
ul.product-specs li:last-child{border-bottom:none;}
ul.product-specs ._kspcs_icnlbl{width:40%;flex:none;align-items:center;gap:0.5rem;}
ul.product-specs ._kspcs_icnlbl img{max-width:20px;max-height:20px;width:auto;height:auto;}
ul.product-specs ._kspcs_icnlbl ._spclbl{font-size:0.8rem;color:#6b7280;}
ul.product-specs ._spcdetl{font-size:0.8rem;color:#000;width:100%;text-align:right;}
/* Brand Analytics */
.brand-analytics{background:linear-gradient(135deg,#eff6ff 0%,#f3e8ff 100%);border-radius:12px;padding:1rem;margin-bottom:1rem;}
.brand-analytics-header{display:flex;align-items:center;gap:.5rem;font-size:.875rem;font-weight:600;color:#1a1a1a;margin-bottom:.75rem;}
.brand-analytics-header svg{width:20px;height:20px;color:#3b82f6;}
.brand-analytics-content{display:flex;flex-wrap:wrap;gap:0.5rem;}
.analytics-item{display:flex;align-items:center;gap:.75rem;flex:1;min-width:100%;}
.analytics-label{font-size:.75rem;color:#6b7280;white-space:nowrap;}
.analytics-bar{flex:1;height:8px;background:#e5e7eb;border-radius:4px;overflow:hidden;}
.analytics-fill{height:100%;background:linear-gradient(135deg,#3b82f6 0%,#8b5cf6 100%);border-radius:4px;}
.analytics-value{font-size:.875rem;font-weight:600;color:#3b82f6;}
.analytics-badge{padding:.25rem .75rem;border-radius:4px;font-size:.75rem;font-weight:600;}
.analytics-badge.positive{background:#d1fae5;color:#059669;}
/* Availability Info */
.availability-info{display:flex;align-items:center;gap:.5rem;font-size:.875rem;margin-bottom:1rem;}
.availability-info span:first-child{color:#374151;font-weight:500;}
.lowest-price-info{color:#10b981;font-weight:600;}
/* Store Listings */
.store-listings{display:flex;flex-direction:column;gap:1rem;align-items:stretch;margin-bottom:0.5rem;}
.store-listing{display:flex;justify-content:space-between;align-items:center;padding:0.5rem 1rem;border:2px solid #e5e7eb;border-radius:12px;background:#f9fafb;transition:all .3s;}
.store-listing:hover{border-color:#d1d5db;}
.store-listing.lowest{border-color:#10b981;background:#f0fdf4;}
.store-listing-left{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;}
.store-badge{padding:.25rem .75rem;background:#e5e7eb;color:#1a1a1a;border-radius:4px;font-size:.75rem;font-weight:600;}
.store-badge.lowest{background:#10b981;color:#fff;}
.store-price{display:flex;align-items:flex-start;gap:0;flex-flow:column;}
.store-price ._strprcw{display:flex;align-items:center;gap:0 .5rem;flex-wrap:wrap;}
.store-price .cut-price{width:100%;display:flex;align-items:flex-start;text-decoration:line-through;opacity:0.5;font-size:0.85rem;}
.current-price{font-size:1.25rem;font-weight:700;color:#3b82f6;}
.store-listing.lowest .current-price{color:#000;}
.original-price{font-size:.875rem;color:#9ca3af;text-decoration:line-through;}
.discount-percent{font-size:.75rem;font-weight:600;color:#10b981;}
.lowest-badge{padding:0.5rem .75rem .25rem .75rem;background:#10b981;color:#fff;border-radius:0px 0px 6px 6px;font-size:.6rem;font-weight:700;text-transform:uppercase;position:relative;top:-5px;width:92%;margin:auto;text-align:center;}
.buy-now-btn{width:100%;padding:.75rem 1.5rem;background:linear-gradient(135deg,#3b82f6 0%,#8b5cf6 100%);color:#fff;border-radius:8px;font-weight:600;font-size:.875rem;display:flex;align-items:center;justify-content:center;gap:.5rem;transition:transform .3s;}
.buy-now-btn:hover{transform:translateY(-2px);}
._buyofrbtn{flex-flow:column;width:45%;}
._strbtnw._btn{width:100%;padding:.5rem;border-radius:8px;font-weight:600;transition:transform .3s;align-items:center;justify-content:center;gap:1.5rem;text-transform:uppercase;position:relative;z-index:1;box-shadow:0px 4px 5px 0px rgba(0,0,0,0.25);}
._strbtnw ._pdstrbx{width:30px;height:30px;align-items:center;justify-content:center;padding:0;margin:0;position:relative;background-size:240px;}
._strbtnw ._pdstrbx:after{width:2px;height:100%;content:'';background:rgba(223,231,243,0.27);position:absolute;right:-12px;}
/* Buy Button Section Box Wrapper (Dropdown View) */
.store-offers-box{background:#fff;border:1px solid #e5e7eb;border-radius:16px;overflow:visible;box-shadow:0 2px 12px rgba(0,0,0,0.06);margin-bottom:1rem;}
/* Top Section */
.store-offer-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem;background:#f0fdf4;}
/* Label */
.offer-label{display:inline-flex;padding:.3rem .7rem;border-radius:30px;background:#10b981;color:#fff;font-size:.7rem;font-weight:700;margin-bottom:.5rem;text-transform:uppercase;}
/* Price */
.offer-price-row{display:flex;align-items:center;gap:0 .6rem;flex-wrap:wrap;}
.cut-price{width:100%;display:flex;align-items:flex-start;text-decoration:line-through;opacity:0.5;font-size:0.85rem;}
.current-price{font-size:1.7rem;font-weight:700;color:#111827;}
.discount-percent{color:#10b981;font-size:.85rem;font-weight:700;}
/* Toggle */
.offer-toggle-btn{width:100%;border:0;/*border-top:1px solid #eef2f7;*/background:transparent;padding:.9rem 1rem;font-size:.8rem;font-weight:600;cursor:pointer;transition:.3s;position:relative;z-index:1;}
/* .offer-toggle-btn:hover{background:#e5f2ff;} */
/* Dropdown */
.store-offers-dropdown{padding:0;}
/* Active */
.store-offers-box.active .store-offers-panel{display:block;}
/* Listing */
.store-offers-box .store-listing{display:flex;align-items:center;justify-content:space-between;gap:1rem;border-bottom:1px solid #f1f5f9;padding:1rem;border:none;border-bottom:1px solid #e5e7eb;border-radius:0;}
.store-offers-box .store-offers-dropdown:last-child .store-listing{border-bottom:0;}
._showhideoffer{width:100%;align-items:center;justify-content:center;gap:1rem;position:relative;}
._showhideoffer svg{width:20px;height:20px;position:absolute;left:15px;transition:transform 0.3s ease-in-out;position:relative;z-index:0;}
._showhideoffer svg ~ svg{left:auto;right:15px;}
.store-offers-box.active ._showhideoffer svg,
.store-offers-box.active .offer-toggle-chevron{transform:rotate(180deg);transition:transform 0.3s ease-in-out;}
/* Button */
.buy-now-btn{width:auto;height:48px;padding:0 1rem;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:1rem;color:#fff;font-size:.9rem;font-weight:700;line-height:1;text-transform:uppercase;background:linear-gradient(135deg,#3b82f6 0%,#8b5cf6 100%);box-shadow:0 4px 10px rgba(59,130,246,.25);}
/* .buy-now-btn.disabled{opacity:.7;filter:grayscale(1);} */
._strbtnw ._pdstrbx,
.buy-now-btn ._pdstrbx{width:26px;height:26px;position:relative;background-size:220px;flex:none;}
.buy-now-btn ._pdstrbx:after{content:'';width:1px;height:26px;background:rgba(255,255,255,.2);position:absolute;right:-8px;}
/* .store-offers-dropdown ._strprcw{flex-flow:column;gap:0;align-items:flex-start;} */
.store-offers-dropdown .store-listing ._outbtn{font-size:0.75rem;color:#fff;line-height:1.2;}
@media (min-width:1025px){
    ul.product-specs ._spcdetl{text-align:left;}
}
/* Mobile */
@media(max-width:768px){
.store-offer-head,.store-listing{}
.buy-now-btn{max-width:130px;}
.current-price{font-size:1.45rem;}
}
/* Price History Section */
.price-history-section{margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid #e5e7eb;}
.price-history-header{display:flex;align-items:center;gap:.5rem;font-size:.875rem;font-weight:600;color:#1a1a1a;margin-bottom:1rem;}
.price-history-header i{color:#3b82f6;}
.price-history-chart{height:150px;background:linear-gradient(180deg,#f9fafb 0%,#ffffff 100%);border-radius:8px;position:relative;overflow:hidden;}
.chart-placeholder{position:relative;height:100%;padding:1rem;}
.chart-line{position:absolute;left:10%;right:10%;height:3px;border-radius:2px;}
.chart-line.amazon{top:30%;background:linear-gradient(90deg,#ff9900 0%,#ffb84d 50%,#ff9900 100%);animation:chartLine 2s ease-in-out infinite;}
.chart-line.flipkart{top:50%;background:linear-gradient(90deg,#2874f0 0%,#5a94f5 50%,#2874f0 100%);animation:chartLine 2s ease-in-out infinite .3s;}
.chart-line.croma{top:70%;background:linear-gradient(90deg,#00a651 0%,#33cc77 50%,#00a651 100%);animation:chartLine 2s ease-in-out infinite .6s;}
@keyframes chartLine{0%,100%{transform:scaleY(1);}50%{transform:scaleY(1.5);}}
.chart-legend{position:absolute;bottom:.5rem;left:0;right:0;display:flex;justify-content:center;gap:1rem;flex-wrap:wrap;}
.legend-item{display:flex;align-items:center;gap:.25rem;font-size:.625rem;color:#6b7280;}
.legend-color{width:12px;height:3px;border-radius:2px;}
.legend-color.amazon{background:#ff9900;}
.legend-color.flipkart{background:#2874f0;}
.legend-color.croma{background:#00a651;}
.legend-color.reliance{background:#e42529;}
.legend-color.tata{background:#00205b;}
@media (max-width:768px){
/* .product-group-content{flex-direction:column;} .product-group-image{width:100%;height:200px;} .product-group-header{flex-direction:column;gap:1rem;} .forum-btn{width:100%;justify-content:center;} .store-listing{flex-direction:column;gap:1rem;align-items:stretch;} .store-listing-left{justify-content:space-between;} .buy-now-btn{width:100%;justify-content:center;} .analytics-item{min-width:100%;} */
}

/* ========== Phase 12 — listing dark (from styles.css mixed dark) ========== */
body.dark .listing-page .product-group-card,
body.dark .product-group-card{background:rgba(9, 16, 33, 1);border-color:#2d2d30;}
body.dark .listing-page .product-group-name,
body.dark .product-group-name{color:#fff;}
body.dark .listing-page .filter-title,
body.dark .filter-title{color:#fff;}
body.dark .product-description{color:#a1a1aa;}

