/* ===== LAYOUT ===== */
.home-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.sidebar {
  width: 180px;
  flex-shrink: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border: 1px solid #eee;
  overflow: hidden;
  position: sticky;
  top: 120px;
}

.sidebar-title {
  background: #E62E2E;
  color: white;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 14px;
}

.main-content { flex: 1; min-width: 0; }

/* ===== CATEGORY MENU ===== */
.category-menu { padding: 6px 0; }

.cat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  transition: all 0.15s;
  border-right: 3px solid transparent;
}

.cat-item:hover { background: #FFF5F5; color: #E62E2E; }

.cat-item.active {
  background: #FFF5F5;
  color: #E62E2E;
  border-right-color: #E62E2E;
}

.cat-emoji { font-size: 16px; flex-shrink: 0; }
.cat-label { font-size: 12px; line-height: 1.3; }

/* ===== SUBCAT BAR ===== */
.subcat-bar {
  display: flex;
  gap: 6px;
  padding: 6px 16px 8px;
  overflow-x: auto;
  scrollbar-width: none;
  background: #fff;
  border-bottom: 1px solid #eee;
}
.subcat-bar::-webkit-scrollbar { display: none; }

.subcat-chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1.5px solid #ddd;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.subcat-chip:hover { border-color: #E62E2E; color: #E62E2E; }

/* ===== SEARCH ENHANCEMENTS ===== */
.search-wrap { position: relative; }

.search-clear {
  position: absolute;
  right: 44px;
  top: 50%;
  transform: translateY(-50%);
  background: #eee;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: #666;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  border: 1px solid #eee;
  z-index: 300;
  overflow: hidden;
}

.search-suggestion {
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  color: #333;
  transition: background 0.1s;
  border-bottom: 1px solid #f5f5f5;
}
.search-suggestion:last-child { border-bottom: none; }
.search-suggestion:hover { background: #FFF5F5; color: #E62E2E; }

/* ===== SIGNUP BUTTON ===== */
.signup-btn {
  background: white;
  color: #E62E2E;
  border: none;
  border-radius: 20px;
  padding: 8px 14px;
  font-family: 'Assistant', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.signup-btn:hover { transform: scale(1.04); }

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

.product-count {
  font-size: 13px;
  color: #888;
  background: #eee;
  padding: 3px 10px;
  border-radius: 20px;
}

.filter-toggle-btn {
  background: white;
  border: 1.5px solid #ddd;
  border-radius: 20px;
  padding: 5px 12px;
  font-family: 'Assistant', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: #555;
}
.filter-toggle-btn:hover { border-color: #E62E2E; color: #E62E2E; }

/* ===== FILTERS PANEL ===== */
.filters-panel {
  background: white;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
}

.filter-group { margin-bottom: 10px; }
.filter-group:last-child { margin-bottom: 0; }

.filter-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #333;
}

.price-input {
  width: 80px;
  padding: 7px 10px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-family: 'Assistant', sans-serif;
  font-size: 13px;
  text-align: center;
  outline: none;
}
.price-input:focus { border-color: #E62E2E; }

.btn-apply-filter {
  background: #E62E2E;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-family: 'Assistant', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-clear-filter {
  background: #f5f5f5;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 7px 12px;
  font-family: 'Assistant', sans-serif;
  font-size: 12px;
  cursor: pointer;
}

/* ===== WISHLIST BUTTON ===== */
.btn-wishlist {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.15s;
}
.btn-wishlist:hover { transform: scale(1.2); }
.btn-wishlist.active { background: #FFE8E8; }

@media (max-width: 600px) {
  .home-layout { flex-direction: column; }
  .sidebar { width: 100%; position: static; }
  .category-menu { display: flex; overflow-x: auto; padding: 6px; gap: 4px; }
  .cat-item { border-radius: 20px; border-right: none; border-bottom: 2px solid transparent; flex-direction: column; padding: 8px 10px; text-align: center; min-width: 60px; }
  .cat-item.active { border-right: none; border-bottom-color: #E62E2E; }
}
