﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿ /* Category Collection Page Styles */
.collection-header {
  padding: 80px 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  position: relative;
  margin-bottom: 40px;
}

.breadcrumbs {
  font-size: 13px;
  margin-bottom: 25px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 600;
}
.breadcrumbs a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs i { font-size: 10px; opacity: 0.5; }
.breadcrumbs span { color: #fff; }

.collection-header-content {
  position: relative;
  z-index: 2;
}

.collection-title {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 20px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -1px;
}
.collection-description {
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  max-width: 700px;
}
.collection-description p { margin-bottom: 10px; }

/* Main Layout: Sidebar + Grid */
.collection-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 80px; /* Space before footer */
}
@media (max-width: 992px){
  .collection-layout{
    grid-template-columns:1fr;
    gap:22px;
  }
  .filters-sidebar{order:-1}
}

/* Sidebar Filters (Advanced UI) */
.filters-sidebar {
  font-family: 'Inter', -apple-system, sans-serif;
}
.filters-sidebar h3 {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 25px;
  color: #111;
}

.filter-group {
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
  margin-bottom: 20px;
}
.filter-group:last-child {
  border-bottom: none;
}

/* Remove default triangle */
.filter-group > summary {
  list-style: none;
}
.filter-group > summary::-webkit-details-marker {
  display: none;
}

.filter-group-title {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: #111;
  user-select: none;
}
.filter-group-title .icon-toggle {
  font-size: 12px;
  color: #111;
  font-weight: 900;
}
.filter-group:not([open]) .filter-group-title {
  margin-bottom: 0;
}
.filter-group:not([open]) .filter-group-title .fa-minus:before {
  content: "\f067"; /* font awesome plus icon */
}

.filter-content {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: #444;
}
.filter-option:hover {
  color: #111;
}
.filter-option input[type="checkbox"] {
  width: 15px;
  height: 15px;
  border: 1px solid #ddd;
  border-radius: 2px;
  accent-color: var(--blue);
  cursor: pointer;
}
.filter-option .count {
  margin-left: 4px;
  color: #888;
}

/* Price Range Inputs */
.price-filter-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-range-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
}
.price-range-label{
  font-size:12px;
  font-weight:800;
  letter-spacing:.8px;
  text-transform:uppercase;
  color:#111;
}
.price-range-values{
  font-size:13px;
  font-weight:800;
  color:#111;
}

.range-slider{
  position:relative;
  height:40px;
  display:flex;
  align-items:center;
}
.range-track{
  position:absolute;
  left:0;
  right:0;
  top:50%;
  height:8px;
  transform:translateY(-50%);
  background:rgba(0,0,0,.08);
  border-radius:999px;
  overflow:hidden;
}
.range-progress{
  position:absolute;
  top:0;
  bottom:0;
  left:0;
  right:0;
  background:linear-gradient(90deg, rgba(14,23,29,.9), rgba(227,6,19,.95));
}
.range-slider input[type="range"]{
  -webkit-appearance:none;
  appearance:none;
  width:100%;
  position:absolute;
  left:0;
  right:0;
  background:transparent;
  pointer-events:none;
  height:40px;
}
.range-slider input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#fff;
  border:2px solid rgba(227,6,19,.95);
  box-shadow:0 8px 18px rgba(0,0,0,.18);
  pointer-events:auto;
  cursor:pointer;
}
.range-slider input[type="range"]::-moz-range-thumb{
  width:18px;
  height:18px;
  border-radius:50%;
  background:#fff;
  border:2px solid rgba(227,6,19,.95);
  box-shadow:0 8px 18px rgba(0,0,0,.18);
  pointer-events:auto;
  cursor:pointer;
}
.range-slider input[type="range"]::-webkit-slider-runnable-track{
  -webkit-appearance:none;
  appearance:none;
  height:8px;
}
.range-slider input[type="range"]::-moz-range-track{
  height:8px;
  background:transparent;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

/* Modern Product Card (Music Market Style Refined) */
.product-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 15px;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.product-card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #e30613;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 2;
}
.product-image-wrapper {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}
@media (max-width: 720px){
  .product-card{padding:12px}
  .product-image-wrapper{height:180px}
}
.product-image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.product-brand {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 5px;
  font-weight: 600;
}
.product-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 15px;
  line-height: 1.4;
  min-height: 40px;
}

/* Pricing Boxes Refined */
.price-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}
.price-box-transfer {
  border: 1.5px solid #e30613;
  background: #fff5f5;
  padding: 8px 12px;
  border-radius: 6px;
}
.price-box-transfer .label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #444;
  margin-bottom: 4px;
}
.price-box-transfer .label i { color: #e30613; }
.price-box-transfer .value {
  font-size: 20px;
  font-weight: 800;
  color: #e30613;
}

.price-box-card {
  background: #f1f3f5;
  padding: 8px 12px;
  border-radius: 6px;
}
.price-box-card .label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #888;
  margin-bottom: 4px;
}
.price-box-card .label i { color: #888; }
.price-box-card .prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.price-box-card .old-price {
  font-size: 12px;
  color: #aaa;
  text-decoration: line-through;
}
.price-box-card .current-price {
  font-size: 14px;
  font-weight: 800;
  color: #e30613;
}

.savings-badge {
  background: #e30613;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-bottom: 15px;
}

.btn-add-cart {
  background: #e30613;
  color: #fff;
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-add-cart:hover {
  background: #c00511;
}
.btn-add-cart i {
  font-size: 14px;
}

.no-products-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #f8f9fa;
  border-radius: 8px;
  color: #888;
}
.no-products-msg i {
  font-size: 48px;
  margin-bottom: 20px;
  color: #ddd;
}
.no-products-msg p {
  font-size: 16px;
  font-weight: 600;
}

@media (max-width: 992px) {
  .collection-layout { grid-template-columns: 1fr; }
  .filters-sidebar { display: none; }
}
@media (max-width: 520px) {
  .search-header { padding: 22px 0; }
  .search-header .collection-title { font-size: 22px; letter-spacing: -0.3px; margin-bottom: 8px; }
  .search-info { font-size: 13px; margin-top: 6px; }
  .search-tabs { gap: 14px; margin-bottom: 18px; }
  .search-tab { padding: 12px 0; font-size: 14px; }
  .search-tab .badge { font-size: 11px; padding: 2px 7px; }
  .collection-layout { margin-top: 18px; margin-bottom: 46px; }
}

/* Search Results Specific Styles */
.search-header {
  background: #f8f9fa;
  color: var(--text);
  padding: 60px 0;
}
.search-header .breadcrumbs a,
.search-header .breadcrumbs span {
  color: var(--muted);
}
.search-header .collection-title {
  color: var(--text);
}
.search-info {
  font-size: 16px;
  color: var(--muted);
  margin-top: 10px;
}
.search-info b { color: var(--text); }

.search-tabs {
  display: flex;
  gap: 30px;
  border-bottom: 2px solid #eee;
  margin-bottom: 30px;
}
.search-tab {
  padding: 15px 5px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  transition: all 0.3s;
}
.search-tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.search-tab .badge {
  font-size: 12px;
  background: #eee;
  padding: 2px 8px;
  border-radius: 10px;
  color: #666;
}
.search-tab.active .badge {
  background: var(--blue);
  color: #fff;
}

.results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
}
.view-options { display: flex; gap: 10px; }
.view-btn {
  width: 40px;
  height: 40px;
  background: #f8f9fa;
  border: 1px solid #eee;
  border-radius: 6px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #888;
  transition: all 0.2s;
}
.view-btn.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.sort-options select {
  padding: 8px 15px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 14px;
  color: #444;
  outline: none;
}

.price-range-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}
.price-range-inputs input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.filter-list .count {
  color: #aaa;
  font-size: 12px;
}

.loading-spinner {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--muted);
  font-weight: 600;
}

/* List View Style (Optional for Results Page) */
.product-card.list-view {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 30px;
  align-items: center;
}
.product-card.list-view .product-image-wrapper {
  margin-bottom: 0;
  height: 180px;
}
.product-card.list-view .product-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}
@media (max-width: 768px) {
  .product-card.list-view { grid-template-columns: 1fr; }
  .product-card.list-view .product-info { grid-template-columns: 1fr; }
}
