/* ═══════════════════════════════════════
   SHOP PAGE STYLES
═══════════════════════════════════════ */

/* Layout */
.shop-layout {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 60px;
}

/* ═══════════════════════════════════════
   LEFT SIDEBAR (FILTERS)
═══════════════════════════════════════ */
.shop-sidebar {
  width: 280px;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 25px;
  background-color: var(--white);
  align-self: flex-start;
}

.filter-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.filter-widget-header h3 {
  font-size: 18px;
  color: var(--text-dark);
  font-weight: 700;
}

.btn-clear-all {
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
}

.filter-section {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 25px;
  margin-bottom: 25px;
}

.filter-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.filter-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 16px;
  color: var(--text-dark);
  font-weight: 700;
}

.btn-reset {
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
}

/* Filter Search */
.filter-search {
  position: relative;
  margin-bottom: 15px;
}

.filter-search i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.filter-search input {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 10px 15px 10px 35px;
  font-size: 14px;
}

.filter-search input:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Checkbox List */
.filter-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 200px;
  overflow-y: auto;
}

.filter-list::-webkit-scrollbar {
  width: 4px;
}
.filter-list::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 4px;
}

.filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.filter-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dark);
}

.filter-item-count {
  font-size: 13px;
  color: var(--text-muted);
}

/* Custom Checkbox */
.filter-checkbox {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.filter-checkbox:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.filter-checkbox:checked::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--white);
  font-size: 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Price Range */
.price-range-slider {
  height: 4px;
  background-color: var(--border-color);
  border-radius: 2px;
  position: relative;
  margin: 15px 0 25px;
}

.price-range-progress {
  height: 100%;
  background-color: var(--primary-color);
  position: absolute;
  left: 0;
  right: 0;
}

.price-range-handle {
  width: 14px;
  height: 14px;
  background-color: var(--primary-color);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.price-range-handle.left { left: 0; }
.price-range-handle.right { left: 100%; }

.price-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-input-group {
  flex: 1;
  position: relative;
}

.price-input-group span {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.price-input-group input {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 8px 10px 8px 25px;
  font-size: 14px;
}

/* Rating Pill */
.rating-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rating-pill {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 6px 15px;
  font-size: 13px;
  color: var(--text-dark);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background-color: var(--white);
  transition: var(--transition);
}

.rating-pill i {
  color: var(--secondary-color);
  font-size: 11px;
}

.rating-pill:hover, .rating-pill.active {
  border-color: var(--secondary-color);
  background-color: #fffbeb;
}

/* Colors Filter */
.color-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-filter-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
}

.color-filter-btn.active::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--white);
  font-size: 12px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* ═══════════════════════════════════════
   RIGHT CONTENT (PRODUCTS)
═══════════════════════════════════════ */
.shop-content {
  flex: 1;
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.view-btn {
  width: 35px;
  height: 35px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--white);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.view-btn:hover, .view-btn.active {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.showing-text {
  font-size: 14px;
  color: var(--text-muted);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-select {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 8px 30px 8px 15px;
  font-size: 14px;
  color: var(--text-dark);
  appearance: none;
  background: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat right 10px center;
  background-size: 15px;
  background-color: var(--white);
  cursor: pointer;
}

.sort-select:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* ═══════════════════════════════════════
   PRODUCT GRID — 5 columns on wide screens
═══════════════════════════════════════ */
.shop-product-grid {
  display: grid;
  /* auto-fit: up to 5 columns on desktop (the shop content is width-capped so
     it never over-columns on large screens), and it self-adjusts the column
     count as the available width shrinks. Crucially, when a listing has FEWER
     products than would fill a row (e.g. a sparse category or search result),
     the empty tracks collapse and the existing cards stretch to fill the row
     instead of leaving blank cells. */
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}

/* ═══════════════════════════════════════
   PRODUCT CARD (scoped to shop)
   Overrides global home-page card so the
   grid behaves consistently regardless of
   whether the image loads.
═══════════════════════════════════════ */
.shop-product-grid .product-card {
  background: #fff;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 280px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}

.shop-product-grid .product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  border-color: var(--primary-light, #d1fae5);
}

/* Image well — fixed aspect, never grows */
.shop-product-grid .product-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 170px;
  background: #f8fafc;
  border-radius: 7px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.shop-product-grid .product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: normal;          /* override home.css "multiply" */
  transition: transform .35s ease;
  padding: 6px;
  display: block;
}

.shop-product-grid .product-card:hover .product-card__image img {
  transform: scale(1.04);
}

/* Content column */
.shop-product-grid .product-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
}

.shop-product-grid .product-card__title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}

.shop-product-grid .product-card__title a {
  color: inherit;
  text-decoration: none;
}

.shop-product-grid .product-card__title a:hover {
  color: var(--primary-color);
}

.shop-product-grid .product-card__rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
}

.shop-product-grid .product-card__rating .stars i {
  font-size: 11px;
  letter-spacing: 0.5px;
}

.shop-product-grid .product-card__rating span {
  color: var(--text-muted);
}

/* Footer (price block) */
.shop-product-grid .product-card__footer {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  min-height: 24px;
}

.shop-product-grid .product-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
}

.shop-product-grid .product-card__price .current {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.2px;
}

.shop-product-grid .product-card__price .old {
  font-size: 11px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
}

.shop-product-grid .product-card__price .discount {
  background: #fef08a;
  color: #854d0e;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  letter-spacing: 0.2px;
}

/* Actions — pinned bottom, identical heights */
.shop-product-grid .product-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
}

/* Order via WhatsApp — full-width row beneath wishlist + Add to Cart so the
   card never overflows regardless of column count / screen size. */
.shop-product-grid .btn-wa-order {
  flex: 1 1 100%;
  height: 32px;
  border-radius: 8px;
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: filter .2s ease, transform .1s ease, box-shadow .2s ease;
}
.shop-product-grid .btn-wa-order i { font-size: 14px; }
.shop-product-grid .btn-wa-order:hover { filter: brightness(1.04); box-shadow: 0 4px 10px rgba(37, 211, 102, 0.28); }
.shop-product-grid .btn-wa-order:active { transform: translateY(1px); }

.shop-product-grid .btn-wishlist {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-color, #e5e7eb);
  background: #fff;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  padding: 0;
}

.shop-product-grid .btn-wishlist:hover,
.shop-product-grid .btn-wishlist.active {
  background: #fee2e2;
  border-color: #fecaca;
  color: #dc2626;
}

.shop-product-grid .btn-add-to-cart {
  flex: 1;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, var(--primary-color, #10b981) 0%, #064e3b 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  white-space: nowrap;
  transition: filter .2s ease, transform .2s ease, box-shadow .2s ease;
  font-family: inherit;
}

.shop-product-grid .btn-add-to-cart i {
  font-size: 11px;
}

.shop-product-grid .btn-add-to-cart:hover {
  filter: brightness(1.05);
  box-shadow: 0 4px 10px rgba(6, 78, 59, 0.18);
}

.shop-product-grid .btn-add-to-cart:active {
  transform: translateY(1px);
}

/* Loading / disabled state while fetch is in-flight */
.shop-product-grid .btn-add-to-cart:disabled {
  opacity: 0.78;
  cursor: wait;
  transform: none;
  filter: none;
  box-shadow: none;
}

.shop-product-grid .btn-wishlist:disabled {
  opacity: 0.5;
  cursor: wait;
}

/* ═══════════════════════════════════════
   QUICK VIEW BUTTON (on-hover overlay)
═══════════════════════════════════════ */
.shop-product-grid .product-card__image {
  position: relative;
}

.shop-product-grid .quick-view-btn {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translate(-50%, 12px);
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, background-color .2s ease;
  backdrop-filter: blur(2px);
  z-index: 3;
  white-space: nowrap;
  font-family: inherit;
}

.shop-product-grid .quick-view-btn i { font-size: 11px; }

.shop-product-grid .product-card:hover .quick-view-btn,
.shop-product-grid .product-card:focus-within .quick-view-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.shop-product-grid .quick-view-btn:hover {
  background: var(--primary-color, #10b981);
}

/* Touch — always show (no hover) */
@media (hover: none) and (pointer: coarse) {
  .shop-product-grid .quick-view-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
    background: rgba(15, 23, 42, 0.78);
  }
}

/* ═══════════════════════════════════════
   QUICK VIEW MODAL
═══════════════════════════════════════ */
.qv-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .22s ease;
}

.qv-modal.is-open { opacity: 1; }

.qv-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.qv-modal__panel {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 880px;
  max-height: 92vh;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  transform: translateY(12px) scale(0.98);
  transition: transform .22s ease;
  display: flex;
  flex-direction: column;
}

.qv-modal.is-open .qv-modal__panel {
  transform: translateY(0) scale(1);
}

.qv-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-dark);
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: background-color .2s ease, transform .2s ease;
}

.qv-modal__close:hover { background: #fff; transform: rotate(90deg); }

.qv-modal__content {
  overflow-y: auto;
}

.qv-loading,
.qv-error {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.qv-error i { color: #dc2626; margin-right: 6px; }
.qv-error a { color: var(--primary-color); margin-left: 4px; }

/* ─── Body grid: gallery + info ─── */
.qv-body {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 0;
  min-height: 380px;
}

.qv-gallery {
  background: #f8fafc;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qv-gallery__main {
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: 380px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.qv-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.qv-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.qv-badge--sale { background: #ffe4e6; color: #e11d48; }
.qv-badge--new  { background: #dcfce7; color: #166534; }

.qv-gallery__thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.qv-thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  border: 2px solid transparent;
  background: #fff;
  padding: 3px;
  cursor: pointer;
  transition: border-color .2s ease;
}

.qv-thumb img { width: 100%; height: 100%; object-fit: contain; }

.qv-thumb.active,
.qv-thumb:hover {
  border-color: var(--primary-color, #10b981);
}

/* ─── Info column ─── */
.qv-info {
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.qv-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.qv-cat {
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
}

.qv-brand {
  color: var(--text-muted);
  font-weight: 600;
}

.qv-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
}

.qv-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.qv-stars i { font-size: 11px; }

.qv-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.qv-price__current {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.3px;
}

.qv-price__old {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: line-through;
}

.qv-price__discount {
  background: #fef08a;
  color: #854d0e;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
}

.qv-short-desc {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
}

.qv-variation { margin-top: 2px; }

.qv-variation__label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.qv-variation__label strong {
  color: var(--text-dark);
  font-weight: 700;
}

.qv-color-options, .qv-size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.qv-color {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 3px;
  background: #f8fafc;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qv-color span {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  border: 1px solid rgba(0,0,0,0.08);
}

.qv-color.active {
  border-color: var(--primary-color);
  transform: scale(1.06);
}

.qv-size {
  padding: 5px 12px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.qv-size:hover { border-color: var(--primary-color); color: var(--primary-color); }

.qv-size.active {
  background: var(--text-dark, #111);
  color: #fff;
  border-color: var(--text-dark, #111);
}

/* ─── Actions ─── */
.qv-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  align-items: stretch;
}

.qv-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.qv-qty button {
  width: 28px;
  height: 36px;
  border: none;
  background: #f8fafc;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.qv-qty button:hover { background: #e2e8f0; }

.qv-qty input {
  width: 36px;
  height: 36px;
  border: none;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  background: #fff;
  color: var(--text-dark);
  -moz-appearance: textfield;
}

.qv-qty input::-webkit-outer-spin-button,
.qv-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.qv-btn {
  height: 36px;
  border-radius: 8px;
  border: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: filter .2s ease, transform .15s ease, box-shadow .2s ease;
  font-family: inherit;
}

.qv-btn--cart {
  flex: 1;
  background: linear-gradient(135deg, var(--primary-color, #10b981) 0%, #064e3b 100%);
  color: #fff;
  padding: 0 14px;
}

.qv-btn--cart:hover {
  filter: brightness(1.04);
  box-shadow: 0 4px 12px rgba(6, 78, 59, 0.22);
}

.qv-btn--cart:disabled { opacity: 0.5; cursor: not-allowed; }

.qv-btn--wishlist {
  width: 36px;
  background: #fff;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.qv-btn--wishlist:hover { background: #fee2e2; color: #dc2626; border-color: #fecaca; }

/* ─── Meta + footer ─── */
.qv-meta {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 12px;
  font-size: 11px;
  color: var(--text-muted);
}

.qv-meta strong {
  color: var(--text-dark);
  margin-right: 4px;
  font-weight: 700;
}

.qv-view-full {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  align-self: flex-start;
}

.qv-view-full:hover { gap: 10px; }

/* Responsive: stack to single column on mobile */
@media (max-width: 720px) {
  .qv-modal__panel { max-height: 95vh; }
  .qv-body { grid-template-columns: 1fr; }
  .qv-gallery { padding: 12px; }
  .qv-gallery__main { max-height: 260px; }
  .qv-info { padding: 14px 16px; }
  .qv-title { font-size: 16px; }
  .qv-price__current { font-size: 18px; }
}

/* Pagination */
.shop-pagination {
  display: flex;
  justify-content: center;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ≥1280   → 5 columns
   1100-1279 → 4 columns
   900-1099  → 3 columns (sidebar still beside)
   768-899   → 3 columns, sidebar stacks above
   480-767   → 2 columns
   ≤479      → 2 columns (compact)
═══════════════════════════════════════ */
/* 1280 → 900: column count auto-derives from the (sidebar-adjusted) grid width
   via auto-fit above — no fixed-count overrides needed. */

@media (max-width: 899px) {
  .shop-layout {
    flex-direction: column;
  }
  .shop-sidebar {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .shop-product-grid {
    /* Mobile: 2 up, but still fills the row if only one product matches. */
    grid-template-columns: repeat(auto-fit, minmax(46%, 1fr));
    gap: 10px;
  }
  .shop-product-grid .product-card {
    min-height: 260px;
  }
  .shop-product-grid .product-card__image {
    max-height: 150px;
  }
}

@media (max-width: 479px) {
  .shop-product-grid {
    grid-template-columns: repeat(auto-fit, minmax(46%, 1fr));
    gap: 8px;
  }
  .shop-product-grid .product-card { padding: 6px; min-height: 240px; }
  .shop-product-grid .product-card__image { max-height: 130px; }
  .shop-product-grid .product-card__title { font-size: 11px; min-height: 30px; }
  .shop-product-grid .product-card__price .current { font-size: 12px; }
  .shop-product-grid .btn-add-to-cart { font-size: 10px; padding: 0 6px; }
  .shop-product-grid .btn-add-to-cart i { display: none; }
  .shop-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ═══════════════════════════════════════
   EMPTY STATE (replaces inline styles)
═══════════════════════════════════════ */
.shop-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 20px;
}
.shop-empty-state__icon {
  font-size: 48px;
  color: var(--border-color);
  margin-bottom: 20px;
  display: block;
}
.shop-empty-state__title {
  color: var(--text-dark);
  margin-bottom: 10px;
}
.shop-empty-state__text {
  color: var(--text-muted);
  margin-bottom: 0;
}
.shop-empty-state__cta {
  margin-top: 20px;
  display: inline-flex;
}

/* ═══════════════════════════════════════
   COLOR FILTER BUTTON RESET
═══════════════════════════════════════ */
.color-filter-btn {
  cursor: pointer;
  border: 2px solid transparent;
  padding: 0;
  font: inherit;
  /* keeps existing size/border-radius from original shop.css */
}
.color-filter-btn[aria-pressed="true"],
.color-filter-btn.active {
  border-color: var(--text-dark);
  outline: 2px solid var(--text-dark);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════
   SHOP — enhanced interactions
═══════════════════════════════════════ */

/* Filter sidebar sticky on desktop */
@media (min-width: 900px) {
  .shop-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
  }
  .shop-sidebar::-webkit-scrollbar { width: 4px; }
  .shop-sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
  }
}

/* Filter checkbox animated check */
.filter-checkbox {
  transition: background-color 0.2s ease, border-color 0.2s ease,
              transform 0.15s ease;
}
.filter-checkbox:checked { transform: scale(1.08); }

/* Rating pill active pop */
.rating-pill {
  transition: border-color 0.2s ease, background-color 0.2s ease,
              transform 0.15s ease, box-shadow 0.2s ease;
}
.rating-pill.active {
  border-color: var(--secondary-color);
  background: #fffbeb;
  transform: scale(1.04);
  box-shadow: 0 2px 8px rgba(247,201,62,0.3);
}

/* Sort select — consistent focus */
.sort-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(11,112,119,0.1);
}

/* Product card — smoother, GPU-accelerated */
.shop-product-grid .product-card {
  will-change: transform;
  transition: transform 0.22s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.22s ease,
              border-color 0.22s ease;
}

/* Add-to-cart button — ripple flash on success */
@keyframes cartSuccess {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
.shop-product-grid .btn-add-to-cart.success-flash {
  animation: cartSuccess 0.55s ease;
}

/* Toolbar responsive */
@media (max-width: 479px) {
  .filter-widget-header h3 { font-size: 16px; }
  .filter-title { font-size: 14px; }
}


/* ══ Dynamic products filter — chips, mobile drawer, list view ══ */
.shop-chips { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 16px; }
.shop-chip { display:inline-flex; align-items:center; gap:7px; font-size:12.5px; font-weight:700; color:#334155; background:#fff; border:1.5px solid #e2e8f0; border-radius:20px; padding:6px 13px; cursor:pointer; transition:border-color .15s, color .15s; }
.shop-chip:hover { border-color:#f87171; color:#dc2626; }
.shop-chip i { font-size:10px; opacity:.75; }
.shop-chip--clear { background:#f1f5f9; border-style:dashed; color:#64748b; }
.shop-chip--clear:hover { color:#0f172a; border-color:#94a3b8; }

.shop-filter-toggle { display:none; align-items:center; gap:7px; font-size:13px; font-weight:700; color:var(--primary-color,#7c3aed); background:#fff; border:1.5px solid var(--primary-color,#7c3aed); border-radius:9px; padding:8px 14px; cursor:pointer; position:relative; }
.shop-filter-toggle:hover { background:var(--primary-color,#7c3aed); color:#fff; }
.shop-filter-toggle__badge { background:var(--secondary-color,#f59e0b); color:#111827; font-size:10px; font-weight:800; min-width:17px; height:17px; border-radius:9px; display:inline-flex; align-items:center; justify-content:center; padding:0 4px; }
.shop-sidebar-close { display:none; background:none; border:none; font-size:20px; line-height:1; color:#94a3b8; cursor:pointer; }
.shop-sidebar-close:hover { color:#0f172a; }
.shop-sidebar-backdrop { position:fixed; inset:0; background:rgba(15,23,42,.5); z-index:1200; }

#shopResultsWrap.is-list .shop-product-grid { grid-template-columns:1fr; }

@media (max-width: 899px) {
  .shop-filter-toggle { display:inline-flex; }
  .shop-sidebar-close { display:block; }
  .shop-sidebar { position:fixed; top:0; left:0; height:100dvh; width:min(340px,86vw); max-width:none; background:#fff; z-index:1300; overflow-y:auto; padding:18px; margin:0; transform:translateX(-100%); transition:transform .28s ease; box-shadow:0 0 40px rgba(0,0,0,.25); border-radius:0; }
  .shop-sidebar.is-open { transform:translateX(0); }
}
@media (min-width: 900px) {
  .shop-sidebar-backdrop { display:none !important; }
  .shop-filter-toggle { display:none !important; }
}
