/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.21_@babel+core@7.29.7_@opentelemetry+api@1.9.1_@types+node@22.20.0_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[5].use[2]!../../node_modules/.pnpm/next@15.5.21_@babel+core@7.29.7_@opentelemetry+api@1.9.1_@types+node@22.20.0_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[5].use[3]!./src/components/search/ProductCard.module.css ***!
  \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.ProductCard_card__02ahp {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  color: inherit;
}

.ProductCard_card__02ahp:hover {
  box-shadow: var(--shadow-md);
  border-color: #d1d5db;
}

.ProductCard_card__02ahp:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Dimmed but fully visible for out-of-stock */
.ProductCard_card__02ahp.ProductCard_outOfStock__SHZSI {
  opacity: 0.6;
}

.ProductCard_imageWrapper__hXwhO {
  position: relative;
  width: 100%;
  padding-bottom: 75%; /* 4:3 aspect ratio */
  background: var(--color-bg-tertiary);
  overflow: hidden;
  flex-shrink: 0;
}

.ProductCard_image__Dteub {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ProductCard_imagePlaceholder__lvVQe {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--color-text-muted);
}

.ProductCard_body__OGUdX {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1;
}

.ProductCard_brand__kGARf {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
}

.ProductCard_title__kHFd7 {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.4;
  /* Clamp to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ProductCard_price__rPW7E {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 2px;
}

.ProductCard_meta__w4lkL {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.ProductCard_merchantName__B9RIE {
  font-size: 12px;
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.ProductCard_rating__FvzWm {
  font-size: 12px;
  color: var(--color-star-text);
  white-space: nowrap;
}

.ProductCard_badges__A9Jbw {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.ProductCard_codBadge__xoA8Z {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  background: var(--color-cod-bg);
  color: var(--color-cod-text);
  border: 1px solid var(--color-cod-border);
}

.ProductCard_oosBadge__ngStm {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  background: var(--color-oos-bg);
  color: var(--color-oos-text);
  border: 1px solid var(--color-oos-border);
}

/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.21_@babel+core@7.29.7_@opentelemetry+api@1.9.1_@types+node@22.20.0_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[5].use[2]!../../node_modules/.pnpm/next@15.5.21_@babel+core@7.29.7_@opentelemetry+api@1.9.1_@types+node@22.20.0_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[5].use[3]!./src/app/search/search.module.css ***!
  \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* ─── Page shell ─────────────────────────────────────────────────────────── */
.search_page__k12qa {
  min-height: 100vh;
  background: var(--color-bg-secondary);
}

/* ─── Header band (SearchBar + query title) ─────────────────────────────── */
.search_searchHeader__HaylP {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 20px;
}

.search_searchHeaderInner__hXQjv {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.search_queryHeading__7OXMT {
  margin-top: 10px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.search_queryHeading__7OXMT strong {
  color: var(--color-text);
}

/* ─── Main layout ────────────────────────────────────────────────────────── */
.search_body__dtizU {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* ─── Sidebar ────────────────────────────────────────────────────────────── */
.search_sidebar__xzFog {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: none; /* mobile hidden; shown at md */
}

@media (min-width: 768px) {
  .search_sidebar__xzFog {
    display: block;
    position: -webkit-sticky;
    position: sticky;
    top: calc(var(--header-height, 64px) + 16px);
  }
}

.search_sidebarTitle__C592z {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search_clearAllBtn__cOk_U {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.search_clearAllBtn__cOk_U:hover {
  text-decoration: underline;
}

/* ─── Facet group ────────────────────────────────────────────────────────── */
.search_facetGroup__Fs9VM {
  margin-bottom: 20px;
}

.search_facetGroup__Fs9VM + .search_facetGroup__Fs9VM {
  padding-top: 20px;
  border-top: 1px solid var(--color-bg-tertiary);
}

.search_facetTitle__MINZB {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
}

/* ─── Checkbox list ──────────────────────────────────────────────────────── */
.search_checkboxList__Nc27y {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
}

.search_checkboxLabel__iPPg1 {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--color-text);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.search_checkboxLabel__iPPg1 input[type='checkbox'] {
  width: 15px;
  height: 15px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
  cursor: pointer;
}

.search_facetCount__J56fJ {
  -webkit-margin-start: auto;
          margin-inline-start: auto;
  font-size: 11px;
  color: var(--color-text-secondary);
  background: var(--color-bg-tertiary);
  padding: 1px 5px;
  border-radius: var(--radius-full);
}

/* ─── Toggle (In-stock) ──────────────────────────────────────────────────── */
.search_toggleRow__1qw7n {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.search_toggleLabel__tEvyH {
  font-size: 13px;
  color: var(--color-text);
}

.search_toggle__FSddw {
  position: relative;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}

.search_toggle__FSddw input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.search_toggleTrack__S_k_U {
  position: absolute;
  inset: 0;
  background: var(--color-border);
  border-radius: var(--radius-full);
  transition: background 0.2s ease;
  cursor: pointer;
}

.search_toggle__FSddw input:checked ~ .search_toggleTrack__S_k_U {
  background: var(--color-primary);
}

.search_toggleThumb__rEs_w {
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
  pointer-events: none;
}

.search_toggle__FSddw input:checked ~ .search_toggleTrack__S_k_U .search_toggleThumb__rEs_w {
  transform: translateX(16px);
}

/* ─── Price range slider ─────────────────────────────────────────────────── */
.search_priceSlider__aLWuk {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search_rangeWrapper__V_fSV {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
}

.search_rangeTrackBg___i0zm {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-full);
  pointer-events: none;
}

.search_rangeTrackFill__WOtMA {
  position: absolute;
  height: 4px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  pointer-events: none;
}

.search_rangeInput__SXHq_ {
  position: absolute;
  width: 100%;
  height: 4px;
  background: transparent;
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  pointer-events: none;
  outline: none;
}

.search_rangeInput__SXHq_::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  pointer-events: all;
}

.search_rangeInput__SXHq_::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  pointer-events: all;
}

.search_rangeInput__SXHq_:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.search_priceLabels__K6_bK {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--color-text-secondary);
}

/* ─── Content area ───────────────────────────────────────────────────────── */
.search_content__aCjlv {
  flex: 1 1;
  min-width: 0;
}

/* ─── Active filter chips row ────────────────────────────────────────────── */
.search_activeFilters__8ZUfr {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.search_chip__bTNSa {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
}

.search_chipRemove__7fXey {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-primary);
  font-size: 14px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  -webkit-margin-start: 2px;
          margin-inline-start: 2px;
}

.search_chipRemove__7fXey:hover {
  background: rgba(37, 99, 235, 0.15);
}

/* ─── Result count ───────────────────────────────────────────────────────── */
.search_resultCount__OsHyN {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

/* ─── Products grid ──────────────────────────────────────────────────────── */
.search_grid__jLIRQ {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 12px;
  gap: 12px;
}

@media (min-width: 640px) {
  .search_grid__jLIRQ {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .search_grid__jLIRQ {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ─── Zero-results state ─────────────────────────────────────────────────── */
.search_emptyState__y8K4e {
  text-align: center;
  padding: 48px 20px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.search_emptyIcon__wUmZr {
  font-size: 48px;
  margin-bottom: 12px;
}

.search_emptyTitle___idn2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.search_emptySubtitle__7DZZO {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

.search_emptyCategories__E2H66 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.search_emptyCategoryChip__Hrbio {
  padding: 6px 14px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.15s ease;
}

.search_emptyCategoryChip__Hrbio:hover {
  background: var(--color-bg-tertiary);
}

/* ─── Empty query state ──────────────────────────────────────────────────── */
.search_noQuery__G8E7n {
  text-align: center;
  padding: 64px 20px;
}

.search_noQueryIcon__nl0Kc {
  font-size: 52px;
  margin-bottom: 14px;
}

.search_noQueryTitle__lJr_c {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.search_noQuerySubtitle__0uzpq {
  font-size: 14px;
  color: var(--color-text-secondary);
}

/* ─── Mobile filter button ───────────────────────────────────────────────── */
.search_mobileFilterBar__qjG4v {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

@media (min-width: 768px) {
  .search_mobileFilterBar__qjG4v {
    display: none;
  }
}

.search_filterBtn__0tk_u {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.search_filterBtn__0tk_u:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.search_filterBtnIcon__saQ6m {
  font-size: 16px;
}

/* ─── Mobile bottom sheet overlay ────────────────────────────────────────── */
.search_overlay__LmYKz {
  position: fixed;
  inset: 0;
  background: var(--color-overlay);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

.search_overlay__LmYKz.search_open__i_Sub {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 0.2s ease, visibility 0s linear 0s;
}

/* ─── Bottom sheet ───────────────────────────────────────────────────────── */
.search_bottomSheet__o7QpO {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 20px 20px 32px;
  z-index: 301;
  max-height: 80vh;
  overflow-y: auto;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s linear 0.3s;
}

.search_bottomSheet__o7QpO.search_open__i_Sub {
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s linear 0s;
}

@media (min-width: 768px) {
  .search_overlay__LmYKz,
  .search_bottomSheet__o7QpO {
    display: none !important;
  }
}

.search_bottomSheetHandle__bLGBf {
  width: 36px;
  height: 4px;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-full);
  margin: 0 auto 16px;
}

.search_bottomSheetHeader__RZv4W {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.search_bottomSheetTitle__7NeWd {
  font-size: 16px;
  font-weight: 700;
}

.search_bottomSheetClose__L7DR0 {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-bg-tertiary);
  font-size: 18px;
  cursor: pointer;
  border: none;
  color: var(--color-text);
}

.search_bottomSheetApply__eQvZg {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.search_bottomSheetApply__eQvZg:hover {
  background: var(--color-primary-hover);
}

