/* Page-only styles for every product category page (category.html) */
/* ── PAGE BODY ── */
.page-body {
  width: 100%; padding: 20px 28px;
  display: flex; gap: 24px; align-items: flex-start;
}
 /* ── BREADCRUMB ── */
.breadcrumb {
  font-size: 13px; color: var(--cm-muted);
  margin-bottom: 20px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--cm-green); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--cm-muted); }
.breadcrumb .current { color: var(--cm-text); font-weight: 700; }
 /* ── FILTER SIDEBAR ── */
.filter-sidebar {
  width: 240px; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 16px;
  align-self: flex-start;
  position: sticky; top: 140px;
}
.filter-card {
  background: var(--cm-white); border-radius: 14px;
  border: 1px solid var(--cm-border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  overflow: hidden;
}
.filter-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: var(--cm-green); color: #fff;
  font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
  cursor: pointer;
}
.filter-card-header .chevron { font-size: 12px; transition: transform 0.2s; }
.filter-card-header.open .chevron { transform: rotate(180deg); }
.filter-card-body { padding: 16px 18px; }
 .filter-cat-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.filter-cat-list li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--cm-text);
  text-decoration: none; transition: background 0.15s;
}
.filter-cat-list li a:hover { background: var(--cm-green-soft); color: var(--cm-green); }
.filter-cat-list li a.active { background: var(--cm-green-soft); color: var(--cm-green); }
.filter-cat-list li a .count {
  background: #f0f2f5; color: var(--cm-muted);
  font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
}
.filter-cat-list li a.active .count { background: var(--cm-green); color: #fff; }
 .price-range-wrap { display: flex; flex-direction: column; gap: 14px; }
.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs input {
  width: 80px; height: 38px; border-radius: 10px;
  border: 1px solid var(--cm-border); text-align: center;
  font-size: 13px; font-weight: 700; outline: none;
  background: #f9fafb; transition: 0.2s;
}
.price-inputs input:focus { border-color: var(--cm-green); background: #fff; }
.price-inputs span { font-size: 13px; color: var(--cm-muted); font-weight: 600; }
.price-slider {
  width: 100%; height: 4px;
  -webkit-appearance: none; appearance: none;
  background: linear-gradient(to right, var(--cm-green) 0%, var(--cm-green) 50%, #e5e7eb 50%);
  border-radius: 2px; outline: none;
}
.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--cm-green); cursor: pointer;
  border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.price-filter-btn {
  width: 100%; height: 40px; border: none; border-radius: 999px;
  background: var(--cm-green); color: #fff; font-size: 13px; font-weight: 800;
  cursor: pointer; transition: background 0.2s;
}
.price-filter-btn:hover { background: var(--cm-green-dark); }
 /* ── MAIN PRODUCT AREA ── */
.products-area { flex: 1; min-width: 0; }
 .product-page-head {
  background: var(--cm-white); border-radius: 14px;
  border: 1px solid var(--cm-border); padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.product-page-head h1 { font-size: 26px; font-weight: 800; color: var(--cm-text); margin-bottom: 4px; }
.product-page-head p { font-size: 14px; color: var(--cm-muted); }
.product-page-meta {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-top: 14px;
}
.product-count { font-size: 14px; font-weight: 700; color: var(--cm-muted); }
.product-count strong { color: var(--cm-green); }
.sort-wrap { display: flex; align-items: center; gap: 10px; }
.sort-wrap label { font-size: 14px; font-weight: 700; color: var(--cm-text); }
.sort-select {
  height: 40px; border-radius: 10px;
  border: 1px solid var(--cm-border); padding: 0 14px;
  font-size: 14px; font-weight: 600; background: #f9fafb;
  outline: none; cursor: pointer; color: var(--cm-text);
  transition: 0.2s;
}
.sort-select:focus { border-color: var(--cm-green); background: #fff; }
 .products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1200px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .products-grid { grid-template-columns: 1fr; } }
 .prod-card {
  background: var(--cm-white); border: 1px solid var(--cm-border);
  border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s; cursor: pointer; position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.prod-card:hover { box-shadow: 0 8px 28px rgba(21,101,168,0.14); transform: translateY(-3px); }
.prod-off-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--cm-orange); color: #fff;
  font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 8px; z-index: 2;
}
.prod-wish {
  position: absolute; top: 10px; right: 12px;
  font-size: 20px; cursor: pointer; color: #d1d5db;
  transition: 0.2s; z-index: 2; background: none; border: none;
  line-height: 1;
}
.prod-wish:hover, .prod-wish.active { color: var(--cm-orange); transform: scale(1.2); }
.prod-img-wrap {
  padding: 0;
  height: 220px;
  overflow: hidden;
  position: relative;
  display: block;
}
.prod-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}
.prod-card:hover .prod-img-wrap img { transform: scale(1.04); }
.prod-body { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; border-top: 1px solid #f3f4f6; }
.prod-name { font-size: 13px; font-weight: 700; color: var(--cm-text); line-height: 1.4; min-height: 40px; }
.prod-prices { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.prod-price-new { font-size: 18px; font-weight: 900; color: var(--cm-green); }
.prod-price-old { font-size: 13px; color: var(--cm-muted); text-decoration: line-through; font-weight: 600; }
.prod-save { font-size: 12px; color: var(--cm-orange); font-weight: 700; }
.prod-add-btn {
  width: 100%; height: 46px; border: none; border-radius: 999px;
  background: var(--cm-green); color: #fff; font-size: 13px; font-weight: 800;
  cursor: pointer; transition: background 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: auto;
}
.prod-add-btn:hover { background: var(--cm-green-dark); }
 .no-results {
  grid-column: 1 / -1;
  text-align: center; padding: 60px 20px;
  color: var(--cm-muted); font-size: 16px;
}
 @media (max-width: 900px) {
  .filter-sidebar { display: none; }
  .page-body { padding: 14px; }
}
 /* Brand filter */
.brand-search {
  width: 100%; height: 38px; border: 1px solid var(--cm-border);
  border-radius: 8px; padding: 0 12px; font-size: 13px;
  outline: none; margin-bottom: 12px; background: #f9fafb;
}
.brand-search:focus { border-color: var(--cm-green); background: #fff; }
.brand-list { list-style: none; display: flex; flex-direction: column; gap: 10px; max-height: 260px; overflow-y: auto; }
.brand-list li { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.brand-list li label { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--cm-text); font-weight: 600; }
.brand-list li input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--cm-green); cursor: pointer; }
.brand-list li .count { color: var(--cm-muted); font-weight: 700; }
.brand-load-more { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--cm-orange); text-decoration: none; cursor: pointer; }
.brand-load-more:hover { text-decoration: underline; }
.price-slider-track { position: relative; height: 4px; margin: 10px 0 4px; }
.price-slider-fill {
  position: absolute; height: 4px; background: var(--cm-green); border-radius: 2px; top: 0;
}
.price-slider { position: absolute; width: 100%; top: 0; margin: 0; background: none; pointer-events: none; }
.price-slider::-webkit-slider-runnable-track { background: transparent; height: 4px; }
.price-slider::-webkit-slider-thumb { pointer-events: auto; }
.price-slider::-moz-range-track { background: transparent; height: 4px; }
.price-slider::-moz-range-thumb { pointer-events: auto; }

/* ── CATEGORY BANNER ── */
.category-banner img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  object-position: center;
  display: block;
}