@import url("/cv_modules/bootstrap-5.3.2/css/bootstrap.min.css");
@import url('/cv_modules/partials/prtl_header/navbar/css/navbar.css');
@import url('/cv_modules/partials/prtl_footer/css/footer.css');
@import url('/cv_modules/partials/prtl_item/css/item.css');

/* ══════════════════════════════════════════════════════════════════════════════
   Shop / Products Listing — shp- prefix
   Light theme, sidebar + grid layout
══════════════════════════════════════════════════════════════════════════════ */

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #eaeded;
}

.shp-main {
  flex: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(12px, 2vw, 24px) 60px;
  width: 100%;
}

/* ══════════════════════════════════════════════════════════════════════════════
   LAYOUT — sidebar + content
══════════════════════════════════════════════════════════════════════════════ */

.shp-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: start;
  padding-top: 16px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════════════════════════════════ */

.shp-sidebar {
  background: #fff;
  border: 1px solid #dde2ea;
  border-radius: 10px;
  padding: 16px;
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 6px 20px rgba(0, 0, 0, 0.05);
}

.shp-sidebar::-webkit-scrollbar { width: 4px; }
.shp-sidebar::-webkit-scrollbar-track { background: transparent; }
.shp-sidebar::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }
.shp-sidebar::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

.shp-sidebar-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf0f4;
}

.shp-sidebar-header i {
  font-size: 14px;
  color: #6366f1;
}

.shp-slider-clear-bar {
  display: flex;
  justify-content: flex-end;
  padding: 8px 14px;
  border-bottom: 1px solid #edf0f4;
}

.shp-clear-all {
  margin-left: auto;
  background: transparent;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 500;
  color: #6366f1;
  cursor: pointer;
  padding: 3px 9px;
  border-radius: 5px;
  letter-spacing: 0.01em;
  transition: background 0.14s ease, border-color 0.14s ease;
}
.shp-clear-all:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.28);
  color: #6366f1;
}

.shp-filter-group {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #edf0f4;
}
.shp-filter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.shp-filter-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #6b7280;
  margin: 0 0 8px;
}

.shp-filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.shp-filter-check {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  margin: 0;
  padding: 5px 6px;
  border-radius: 6px;
  transition: background 0.13s ease;
}
.shp-filter-check:hover {
  background: rgba(99, 102, 241, 0.06);
}

.shp-filter-check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.shp-check-box {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 1.5px solid #c4cad4;
  border-radius: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

/* radio variant */
.shp-filter-check input[type="radio"] + .shp-check-box {
  border-radius: 50%;
}

.shp-filter-check:hover .shp-check-box {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.shp-filter-check input:checked + .shp-check-box {
  background: #6366f1;
  border-color: #6366f1;
  box-shadow: 0 1px 4px rgba(99, 102, 241, 0.35);
}
.shp-filter-check input:checked + .shp-check-box::after {
  content: '';
  display: block;
  width: 4px;
  height: 8px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}
.shp-filter-check input[type="radio"]:checked + .shp-check-box::after {
  width: 6px;
  height: 6px;
  border: none;
  border-radius: 50%;
  background: #fff;
  transform: none;
  margin: auto;
}

.shp-check-text {
  font-size: 13px;
  color: #374151;
  line-height: 1.3;
  user-select: none;
  transition: color 0.13s ease;
}
.shp-filter-check:hover .shp-check-text { color: #111827; }
.shp-filter-check input:checked ~ .shp-check-text {
  color: #111827;
  font-weight: 500;
}

.shp-stars-text {
  display: flex;
  align-items: center;
  gap: 2px;
}

.shp-star {
  font-size: 12px;
  color: #f59e0b;
}

/* ══════════════════════════════════════════════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════════════════════════════════════════════ */

.shp-content {
  min-width: 0;
}

/* ── Toolbar ──────────────────────────────────────────────────────────────── */
.shp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #d5d9d9;
  border-radius: 4px;
  padding: 10px 16px;
  margin-bottom: 12px;
}

.shp-result-count {
  font-size: 14px;
  color: #565959;
}

.shp-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shp-sort-label {
  font-size: 13px;
  color: #0F1111;
  white-space: nowrap;
  margin: 0;
}

.shp-sort-select {
  padding: 5px 10px;
  border: 1px solid #d5d9d9;
  border-radius: 4px;
  font-size: 13px;
  color: #0F1111;
  background: #fff;
  cursor: pointer;
  outline: none;
}
.shp-sort-select:focus { border-color: #007185; }

/* ── Active filter chips ──────────────────────────────────────────────────── */
.shp-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.shp-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: #fff;
  border: 1px solid #adb1b8;
  border-radius: 14px;
  font-size: 12px;
  color: #0F1111;
}

.shp-chip-remove {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #565959;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
}
.shp-chip-remove:hover { color: #c7511f; }

/* ── Products grid ────────────────────────────────────────────────────────── */
.shp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.shp-product-card {
  padding: 4px;
  cursor: pointer;
  height: 100%;
}
.shp-product-card:hover .cv-item-container {
  box-shadow: 0 6px 18px rgba(0,0,0,0.13);
}



/* ── Empty / no-results states ────────────────────────────────────────────── */
.shp-empty,
.shp-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  border: 1px solid #d5d9d9;
  border-radius: 4px;
}

.shp-empty-icon {
  font-size: 44px;
  color: #adb1b8;
  display: block;
  margin-bottom: 16px;
}

.shp-empty-title {
  font-size: 18px;
  font-weight: 700;
  color: #0F1111;
  margin: 0 0 6px;
}

.shp-empty-text {
  font-size: 14px;
  color: #565959;
  margin: 0;
}

/* ── Load more ────────────────────────────────────────────────────────────── */
.shp-load-more {
  text-align: center;
  padding: 28px 0;
}

.shp-load-btn {
  padding: 9px 28px;
  border: 1px solid #d5d9d9;
  border-radius: 4px;
  background: #fff;
  color: #0F1111;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.13s, border-color 0.13s;
}
.shp-load-btn:hover {
  background: #f7f8f8;
  border-color: #adb1b8;
}

/* ══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════════════════ */

/* ── Filter toggle button ─────────────────────────────────────────────────── */
.shp-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid #d5d9d9;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #0F1111;
  cursor: pointer;
  transition: background 0.13s;
}
.shp-filter-toggle:hover { background: #f7f8f8; }
.shp-filter-toggle i { font-size: 13px; }

/* Active-filter count badge on the button */
.shp-filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #c7511f;
  color: #fff;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

/* ── Desktop: sidebar collapsed state ─────────────────────────────────────── */
@media (min-width: 901px) {
  .shp-layout.shp-layout--sidebar-hidden {
    grid-template-columns: 1fr;
  }
  .shp-layout.shp-layout--sidebar-hidden .shp-sidebar {
    display: none;
  }
}

@media (max-width: 900px) {
  .shp-layout {
    grid-template-columns: 1fr;
  }

  .shp-filter-toggle {
    display: inline-flex;
  }

  .shp-sidebar {
    display: none;
  }
}

@media (max-width: 600px) {
  .shp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .shp-toolbar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .shp-result-count {
    width: 100%;
    order: -1;
  }

  .shp-toolbar-right {
    flex: 1;
    justify-content: space-between;
  }
}
