.shop-page {
  padding: 1.25rem 0 2rem;
}

.shop-hero {
  background: #f8fafc;
  border-bottom: 1px solid #eef2f7;
  padding: 1rem 0 1.25rem;
}

.shop-hero h1 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: #1e293b;
}

.shop-hero p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.5rem;
  align-items: start;
}

/* ===== Filters ===== */
.shop-filters {
  position: sticky;
  top: 80px;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 1rem;
  padding: 1.1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.shop-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #f1f5f9;
}

.shop-filters__title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.shop-filters__count {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #0d6efd;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.4rem;
}

.filter-panel__search {
  position: relative;
  margin-bottom: 1.1rem;
}

.filter-panel__search i {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.filter-panel__search input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #f8fafc;
  padding: 0.7rem 2.4rem 0.7rem 0.85rem;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-panel__search input:focus {
  border-color: #0d6efd;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

.filter-panel__section {
  margin-bottom: 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid #f1f5f9;
}

.filter-panel__section:last-of-type {
  border-bottom: 0;
  margin-bottom: 0.75rem;
  padding-bottom: 0;
}

.filter-panel__section-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #64748b;
  margin-bottom: 0.7rem;
  letter-spacing: 0.02em;
}

.filter-cats {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.filter-cat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.7rem;
  border: 1px solid transparent;
  background: #f8fafc;
  cursor: pointer;
  margin: 0;
  transition: all 0.15s ease;
}

.filter-cat input {
  display: none;
}

.filter-cat__name {
  flex: 1;
  font-size: 0.86rem;
  font-weight: 600;
  color: #334155;
}

.filter-cat__count {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  background: #fff;
  border-radius: 999px;
  min-width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
}

.filter-cat:hover {
  border-color: #dbe4f0;
}

.filter-cat.is-active {
  background: #eef5ff;
  border-color: #bfd3ff;
}

.filter-cat.is-active .filter-cat__name {
  color: #0d6efd;
}

.filter-cat.is-active .filter-cat__count {
  background: #0d6efd;
  color: #fff;
}

.filter-price-presets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.filter-chip {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: #0d6efd;
  color: #0d6efd;
  background: #eef5ff;
}

.filter-price-inputs {
  display: flex;
  align-items: end;
  gap: 0.4rem;
}

.filter-price-field {
  flex: 1;
}

.filter-price-field label {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 0.25rem;
}

.filter-price-field input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  padding: 0.55rem 0.6rem;
  font-size: 0.84rem;
  outline: none;
  background: #fff;
}

.filter-price-field input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.filter-price-sep {
  font-size: 0.75rem;
  color: #94a3b8;
  padding-bottom: 0.65rem;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.55rem;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  color: #334155;
}

.filter-check input {
  display: none;
}

.filter-check__box {
  width: 20px;
  height: 20px;
  border-radius: 0.4rem;
  border: 1.5px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  background: #fff;
  transition: all 0.15s ease;
}

.filter-check__box i {
  font-size: 0.85rem;
  line-height: 1;
}

.filter-check input:checked + .filter-check__box {
  background: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
}

.filter-panel__actions {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 0.75rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.filter-btn--primary {
  background: #0d6efd;
  color: #fff;
}

.filter-btn--primary:hover {
  background: #0b5ed7;
  color: #fff;
}

.filter-btn--ghost {
  background: #f1f5f9;
  color: #475569;
}

.filter-btn__badge {
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
}

.filter-active-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  background: #eef5ff;
  border: 1px solid #bfd3ff;
  border-radius: 0.85rem;
  padding: 0.7rem 0.9rem;
  margin-bottom: 1rem;
}

.filter-active-bar__label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0d6efd;
}

.filter-active-bar__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  flex: 1;
}

.filter-active-chip {
  background: #fff;
  border: 1px solid #bfd3ff;
  color: #1e40af;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.filter-active-bar__clear {
  font-size: 0.8rem;
  font-weight: 700;
  color: #dc3545;
  text-decoration: none;
}

.shop-filters-offcanvas {
  width: min(90vw, 360px);
}

/* ===== Toolbar / Grid / Cards ===== */
.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eef2f7;
}

.shop-toolbar__count {
  margin: 0;
  font-size: 0.9rem;
  color: #475569;
}

.shop-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.shop-grid.is-searching {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.product-card-pro {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 0.75rem;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card-pro:hover {
  border-color: #cfd8e3;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.product-card-pro__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  overflow: hidden;
}

.product-card-pro__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
}

.product-card-pro__badges {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-end;
}

.product-card-pro__badge {
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.product-card-pro__wish {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #64748b;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.product-card-pro__wish.active {
  color: #dc3545;
}

.product-card-pro__body {
  padding: 0.85rem 0.9rem 0.5rem;
  flex: 1;
  text-align: right;
}

.product-card-pro__category {
  display: inline-block;
  font-size: 0.72rem;
  color: #0d6efd;
  text-decoration: none;
  margin-bottom: 0.35rem;
}

.product-card-pro__title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.55;
  margin: 0 0 0.5rem;
}

.product-card-pro__title a {
  color: #1e293b;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-pro__title a:hover {
  color: #0d6efd;
}

.product-card-pro__rating {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-bottom: 0.45rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.product-card-pro__price {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
}

.product-card-pro__price del {
  margin-right: 0.35rem;
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 500;
}

.product-card-pro__footer {
  padding: 0 0.9rem 0.9rem;
}

.product-card-pro__btn {
  width: 100%;
  border-radius: 0.5rem;
  font-weight: 600;
}

.shop-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  border: 1px dashed #cbd5e1;
  border-radius: 0.75rem;
  background: #fff;
}

.shop-filter-mobile-btn {
  display: none;
}

.shop-pagination .page-link {
  border-radius: 0.5rem !important;
  margin: 0 0.12rem;
}

.shop-scroll-status {
  margin-top: 1.5rem;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.shop-scroll-loader {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 600;
}

.shop-scroll-loader.is-hidden {
  display: none;
}

.shop-scroll-spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid #dbe4f0;
  border-top-color: #0d6efd;
  border-radius: 50%;
  animation: shop-spin 0.7s linear infinite;
}

.shop-scroll-end {
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
}

#shop-scroll-sentinel {
  width: 100%;
  height: 1px;
}

@keyframes shop-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1199.98px) {
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-filters--desktop {
    display: none;
  }

  .shop-filter-mobile-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
  }
}

@media (max-width: 575.98px) {
  .shop-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .product-card-pro__title {
    font-size: 0.8rem;
  }

  .product-card-pro__btn {
    font-size: 0.8rem;
    padding: 0.45rem 0.5rem;
  }
}
