/* ═══ SHOP PAGE — Layout & Sidebar Filters ═══ */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 24px 0 60px;
}

/* ─── Sidebar ─── */
.shop-sidebar {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}

.shop-sidebar::-webkit-scrollbar { width: 4px; }
.shop-sidebar::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }

.sidebar-header {
  padding: 16px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
}

.sidebar-header h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: #0f172a;
  font-family: 'Space Grotesk', sans-serif;
}

.sidebar-header button {
  background: none;
  border: none;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  transition: 0.2s;
}

.sidebar-header button:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.sidebar-section {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
}

.sidebar-section:last-child {
  border-bottom: none;
}

.sidebar-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-title i {
  color: #f59e0b;
  font-size: 13px;
}

/* ─── Categories ─── */
.cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cat-list li {
  margin: 0;
}

.cat-list a {
  text-decoration: none;
  color: #475569;
  font-weight: 500;
  font-size: 13px;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 6px;
}

.cat-list a:hover {
  background: #f8fafc;
  color: #0f172a;
}

.cat-list a.active {
  background: #f59e0b;
  color: #fff;
  font-weight: 600;
}

.cat-list a i {
  font-size: 10px;
  color: #cbd5e1;
}

.cat-list a.active i {
  color: rgba(255,255,255,0.7);
}

.sub-cat-list {
  list-style: none;
  padding: 0 0 2px 14px;
  margin: 0;
}

.sub-cat-list a {
  font-size: 12px;
  padding: 5px 10px;
}

/* ─── Price Range ─── */
.price-inputs {
  display: flex;
  gap: 6px;
  align-items: center;
}

.price-inputs input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  outline: none;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Roboto', sans-serif;
  background: #fff;
  transition: 0.2s;
}

.price-inputs input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245,158,11,0.08);
}

.price-inputs span {
  color: #94a3b8;
  font-weight: 600;
  font-size: 12px;
}

/* ─── Checkbox / Radio ─── */
.filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 13px;
  color: #475569;
  padding: 3px 0;
}

.filter-check:last-child { margin-bottom: 0; }

.filter-check input[type="checkbox"],
.filter-check input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: #f59e0b;
  cursor: pointer;
  flex-shrink: 0;
}

/* ─── Active Filters ─── */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.filter-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #92400e;
}

.filter-tag i {
  cursor: pointer;
  font-size: 11px;
}

.filter-tag i:hover {
  color: #dc2626;
}

/* ─── Shop Header ─── */
.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  background: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  gap: 12px;
}

.results-count {
  font-weight: 600;
  font-size: 13px;
  color: #64748b;
}

.sort-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.sort-group label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
}

.sort-group select {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  outline: none;
  font-weight: 600;
  font-size: 12px;
  color: #0f172a;
  cursor: pointer;
  background: #fff;
  font-family: 'Roboto', sans-serif;
}

.sort-group select:focus {
  border-color: #f59e0b;
}

/* ─── Grid ─── */
.kp-grid01 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ─── Product Card ─── */
.shop-layout .kp-img-frame {
  aspect-ratio: 1 / 1;
  background: #fafafa;
}

.shop-layout .kp-img-frame img {
  padding: 0;
}

.shop-layout .kp-info-content {
  padding: 16px 18px 20px;
}

.shop-layout .kp-title-link {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.shop-layout .kp-price-now {
  font-size: 20px;
}

.shop-layout .kp-price-was {
  font-size: 14px;
}

.shop-layout .kp-cat-label {
  font-size: 10px;
  letter-spacing: 1.2px;
}

/* ─── Loader / Scroll sentinel ─── */
#loader {
  text-align: center;
  padding: 40px 0;
  width: 100%;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #f1f5f9;
  border-top: 3px solid #f59e0b;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ─── No Results ─── */
#no-results {
  display: none;
  text-align: center;
  padding: 60px 20px;
}

#no-results i {
  font-size: 48px;
  color: #e2e8f0;
  margin-bottom: 12px;
  display: block;
}

#no-results h3 {
  font-weight: 800;
  font-size: 20px;
  color: #0f172a;
  margin: 0 0 6px;
}

#no-results p {
  color: #64748b;
  font-size: 13px;
  margin: 0;
}

/* ─── Mobile ─── */
.mobile-filters-bar {
  display: none;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.mobile-filters-bar::-webkit-scrollbar { display: none; }

.mobile-filter-item {
  background: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid #e2e8f0;
  font-family: 'Roboto', sans-serif;
  color: #0f172a;
  cursor: pointer;
  outline: none;
}

@media (max-width: 992px) {
  .shop-layout { grid-template-columns: 1fr; gap: 0; padding: 16px 0 80px; }
  .shop-sidebar { display: none; }
  .shop-header { display: none; }
  .mobile-filters-bar { display: flex; }
  .kp-grid01 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .shop-layout .kp-img-frame { aspect-ratio: 1 / 1; }
  .shop-layout .kp-info-content { padding: 12px 14px 16px; }
  .shop-layout .kp-title-link { font-size: 13px; }
  .shop-layout .kp-price-now { font-size: 16px; }
}

@media (max-width: 480px) {
  .kp-grid01 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .shop-layout .kp-card01 { border-radius: 12px; }
  .shop-layout .kp-img-frame { aspect-ratio: 1 / 1; }
  .shop-layout .kp-img-frame img { padding: 0; }
  .shop-layout .kp-info-content { padding: 10px 12px 14px; }
  .shop-layout .kp-title-link { font-size: 12px; margin-bottom: 8px; }
  .shop-layout .kp-price-now { font-size: 14px; }
  .shop-layout .kp-price-was { font-size: 11px; }
  .shop-layout .kp-cat-label { font-size: 8px; letter-spacing: 1px; }
}
