/* ============================================================
   SHOP PAGE HEADER
============================================================ */
.shop-page-header {
  background: linear-gradient(135deg, #1c1c1c 0%, #2d2d2d 100%);
  color: white;
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

.shop-page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10zm10 0c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10z'/%3E%3C/g%3E%3C/svg%3E");
}

.shop-page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  position: relative;
}

.shop-page-header .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
  position: relative;
}

.shop-page-header .breadcrumb-item,
.shop-page-header .breadcrumb-item a {
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
}

.shop-page-header .breadcrumb-item.active { color: white; }

.shop-page-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   TOP BAR
============================================================ */
.shop-topbar {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0 !important;
  padding-bottom: 16px;
}

.result-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.result-count strong { color: var(--primary); }

.btn-filter-toggle {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background var(--transition);
}

.btn-filter-toggle:hover { background: #333; }

/* Sort */
.sort-label {
  font-size: 0.83rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.sort-select {
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 7px 32px 7px 12px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--primary);
  background-color: white;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%231c1c1c' d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
  min-width: 170px;
}

.sort-select:focus { border-color: var(--accent); }

/* View Toggle */
.view-toggle {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.view-btn {
  background: white;
  border: none;
  padding: 7px 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  line-height: 1;
}

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

/* ============================================================
   SIDEBAR
============================================================ */
.shop-sidebar {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  position: sticky;
  top: 80px;
}

/* Filter group */
.filter-group {
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.filter-group-header {
  background: none;
  border: none;
  padding: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  margin-bottom: 14px;
}

.filter-group-title {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 0;
}

.filter-chevron {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.filter-group-header[aria-expanded="false"] .filter-chevron {
  transform: rotate(180deg);
}

/* Filter list */
.filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.filter-list li { margin-bottom: 8px; }

.filter-check {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--primary);
  user-select: none;
}

.filter-check input {
  width: 16px; height: 16px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.filter-check:hover .check-label { color: var(--accent); }

.check-label { flex: 1; }

.check-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--light-bg);
  padding: 1px 7px;
  border-radius: 20px;
}

/* Price range */
.price-range-wrap { }

.price-display {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.range-slider-wrap {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent) 100%);
  outline: none;
  cursor: pointer;
  position: absolute;
  pointer-events: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid white;
  box-shadow: 0 1px 6px rgba(230,57,70,0.4);
  cursor: pointer;
  pointer-events: all;
}

.range-slider::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid white;
  box-shadow: 0 1px 6px rgba(230,57,70,0.4);
  cursor: pointer;
  pointer-events: all;
}

.btn-apply-filter {
  display: block;
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  padding: 9px;
  border-radius: 6px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-apply-filter:hover { background: var(--accent); }

/* Size options */
.size-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.size-btn {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--primary);
  min-width: 42px;
  text-align: center;
}

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

/* Color options */
.color-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.color-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition), transform var(--transition);
  position: relative;
}

.color-btn:hover { transform: scale(1.15); }

.color-btn.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px white, 0 0 0 4px var(--accent);
}

/* Active filters */
.active-filters {
  background: #fff5f5;
  border: 1px solid #ffd6d8;
  border-radius: 8px;
  padding: 10px 12px;
}

.clear-all-btn {
  background: none;
  border: none;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.clear-all-btn:hover { text-decoration: underline; }

.active-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.filter-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
}

.filter-tag button {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.7rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.filter-tag button:hover { color: var(--accent); }

/* Mobile sidebar overlay */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.sidebar-overlay.show {
  opacity: 1;
  pointer-events: all;
}

/* Mobile sidebar */
.sidebar-mobile-header .fw-700 { font-weight: 700; }

.sidebar-close-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
}

@media (max-width: 991px) {
  #sidebarCol {
    position: fixed;
    top: 0; left: -320px;
    width: 300px;
    height: 100%;
    z-index: 1050;
    transition: left 0.35s cubic-bezier(.4,0,.2,1);
    padding: 0 !important;
  }

  #sidebarCol.open { left: 0; }

  .shop-sidebar {
    height: 100%;
    overflow-y: auto;
    border-radius: 0;
    border: none;
    position: static;
    padding-top: 16px;
  }
}

/* ============================================================
   NO RESULTS
============================================================ */
.no-results {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
  grid-column: 1/-1;
}

.no-results i {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 16px;
}

.no-results h5 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.no-results p { margin-bottom: 24px; }

/* ============================================================
   LIST VIEW
============================================================ */
#productGrid.list-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#productGrid.list-view .col {
  width: 100% !important;
  max-width: 100%;
  flex: 0 0 100%;
}

#productGrid.list-view .product-card {
  display: flex;
  flex-direction: row;
  border-radius: 10px;
}

#productGrid.list-view .product-img-wrap {
  width: 200px;
  flex-shrink: 0;
}

#productGrid.list-view .product-img-wrap img {
  height: 200px;
  border-radius: 10px 0 0 10px;
}

#productGrid.list-view .quick-add-overlay { display: none; }

#productGrid.list-view .product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 24px;
}

#productGrid.list-view .product-name {
  font-size: 1.05rem;
  white-space: normal;
}

@media (max-width: 575px) {
  #productGrid.list-view .product-img-wrap { width: 120px; }
  #productGrid.list-view .product-img-wrap img { height: 140px; }
}

/* ============================================================
   PAGINATION
============================================================ */
.shop-pagination .page-link {
  color: var(--primary);
  border: 1.5px solid var(--border);
  border-radius: 8px !important;
  margin: 0 3px;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition);
}

.shop-pagination .page-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.shop-pagination .page-item.active .page-link {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.shop-pagination .page-item.disabled .page-link {
  color: #ccc;
  border-color: var(--border);
}
