/* ================= LISTING PAGE LAYOUT ================= */

.shop-container {
  display: flex;
  padding: 20px;
  gap: 30px;
  max-width: 100%;
  margin: 0 auto;
}

/* ================= SIDEBAR ================= */

.filter-sidebar {
  width: 260px;
  flex-shrink: 0;
  border-right: 1px solid #edeff2;
  padding-right: 20px;
}

/* Sidebar title */
.results-count {
  padding-bottom: 15px;
  border-bottom: 1px solid #edeff2;
  margin-bottom: 10px;
}

.results-count span {
  font-size: 14px;
  font-weight: 700;
  color: #282c3f;
}

/* Sidebar headings */
.filter-sidebar h4 {
  font-size: 14px;
  font-weight: 700;
  color: #282c3f;
  text-transform: uppercase;
  margin: 20px 0 15px;
  letter-spacing: 0.3px;
}

/* ================= CATEGORY & BRAND ================= */

.category-list,
.brand-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-item {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #282c3f;
  cursor: pointer;
}

/* Custom checkbox */
.category-item input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #c3c4ca;
  border-radius: 2px;
  margin-right: 12px;
  position: relative;
  cursor: pointer;
}

.category-item input[type="checkbox"]:checked {
  background: #ff3f6c;
  border-color: #ff3f6c;
}

.category-item input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.category-name {
  flex-grow: 1;
}

.count {
  font-size: 11px;
  color: #94969f;
}

/* ================= PRICE FILTER ================= */

.price-filter-container {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.price-filter-container input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #d4d5d9;
  font-size: 13px;
  outline: none;
}

.price-filter-container input:focus {
  border-color: #ff3f6c;
}

/* Buttons */
.btn-apply {
  width: 100%;
  padding: 10px;
  background: #ff3f6c;
  color: #fff;
  border: 1px solid #ff3f6c;
  font-weight: 700;
  cursor: pointer;
}

.btn-clear {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  text-align: center;
  border: 1px solid #d4d5d9;
  text-decoration: none;
  color: #535766;
  font-weight: 700;
}

/* ================= MAIN CONTENT ================= */

.product-results {
  flex: 1;
}

/* ================= SORT BAR ================= */

.sort-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 25px;
}

.sort-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  padding: 6px 15px;
}

.sort-wrapper label {
  font-size: 14px;
  margin-right: 6px;
  color: #777;
}

.sort-wrapper select {
  border: none;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

/* ================= PRODUCT GRID (LISTING ONLY) ================= */
/* IMPORTANT: column width locked to prevent card stretching on desktop */

.listing-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
  row-gap: 40px;
  justify-content: flex-start;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
    .shop-container {
        flex-direction: column;
    }
    .filter-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #edeff2;
        padding-right: 0;
        padding-bottom: 20px;
    }
    .listing-product-grid {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .listing-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .listing-product-grid {
        grid-template-columns: 1fr;
    }
    .shop-container {
        padding: 10px;
    }
}


/* ================= NO RESULTS ================= */

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
}

.no-results p {
  font-size: 18px;
  color: #7e818c;
}
