/* IPEKERP_STOREFRONT_SEARCH_HOME_UNIFIED_V1
   İpek Oto storefront search results
   Visual-only unification with the approved homepage product-card language.
   No data/compatibility/search semantics are changed here.
   The bottom trust/benefit band is intentionally NOT added to search results.
*/

:root {
  --ipek-search-navy: #062a57;
  --ipek-search-blue: #0f67d8;
  --ipek-search-red: #ef1b23;
  --ipek-search-red-hover: #d9121a;
  --ipek-search-green: #168844;
  --ipek-search-bg: #f5f7fa;
  --ipek-search-card: #ffffff;
  --ipek-search-border: #dbe3ec;
  --ipek-search-muted: #68778a;
  --ipek-search-radius: 12px;
  --ipek-search-shadow: 0 8px 24px rgba(15, 42, 76, .055);
}

/* Search page surface */
.sf-search2-page,
.sf2-catalog-ui,
.sf5-search-results {
  color: var(--ipek-search-navy);
}

.sf-search2-page main,
.sf2-catalog-ui,
.sf5-search-results {
  background: var(--ipek-search-bg);
}

/* Results toolbar: homepage-like clean white card */
.sf-search2-results,
.sf-search2-toolbar,
.sf2-catalog-results,
.sf2-results-toolbar,
.sf2-sort,
.sf2-sort--desktop,
.sf2-sort--mobile,
.sf5-mobile-toolbar,
.sf5-results-count {
  background: #fff !important;
  border: 1px solid var(--ipek-search-border) !important;
  border-radius: var(--ipek-search-radius) !important;
  box-shadow: none !important;
}

/* Filter area: compact, white, thin border */
.sf2-active-filters,
.sf2-filter-group,
.sf2-filter-open,
.sf2-filter-opened,
.sf2-filter-overlay,
.sf2-filter-panel,
.sf2-filter-panel__head,
.sf2-filter-reset,
.sf2-no-filter,
.sf5-filter-list,
.sf5-filter-lock,
.sf5-filter-option,
.sf5-filter-title,
.sf5-page-active-filters {
  border-color: var(--ipek-search-border) !important;
}

.sf2-filter-panel,
.sf2-filters,
.sf5-filter-panel,
.sf5-filters,
.sf-search2-filters,
.sf-search2-sidebar {
  background: #fff !important;
  border: 1px solid var(--ipek-search-border) !important;
  border-radius: var(--ipek-search-radius) !important;
  box-shadow: none !important;
}

/* Product cards inherit the approved homepage language */
[data-sf-product-card],
[data-product-card],
.sf2-product-card,
.sf2-card,
.sf2-product,
.sf5-product-card,
.sf5-card,
.sf-search2-product-card,
.sf-search2-card {
  background: var(--ipek-search-card) !important;
  border: 1px solid var(--ipek-search-border) !important;
  border-radius: var(--ipek-search-radius) !important;
  box-shadow: var(--ipek-search-shadow) !important;
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

[data-sf-product-card],
[data-product-card],
.sf2-product-card,
.sf2-card,
.sf2-product,
.sf5-product-card,
.sf5-card,
.sf-search2-product-card,
.sf-search2-card:hover {
  transform: translateY(-2px);
  border-color: #cfd9e5 !important;
  box-shadow: 0 12px 30px rgba(15, 42, 76, .085) !important;
}

/* Product image: more visual emphasis, less placeholder/dashboard feeling */
[data-sf-product-image],
.sf2-product-card__image,
.sf2-card__image,
.sf2-product-image,
.sf5-product-card__image,
.sf5-card__image,
.sf-search2-product-card__image {
  background: #fff !important;
  border-radius: 8px !important;
  overflow: hidden;
}

[data-sf-product-image],
.sf2-product-card__image,
.sf2-card__image,
.sf2-product-image,
.sf5-product-card__image,
.sf5-card__image,
.sf-search2-product-card__image img {
  object-fit: contain !important;
  width: 100%;
  height: 100%;
}

/* Brand/category/meta: keep the homepage's restrained red accent */
.sf2-family,
.sf2-type {
  color: var(--ipek-search-red) !important;
  font-weight: 800 !important;
  letter-spacing: .025em;
}

/* Product title */
.sf5-filter-title,
[data-sf-product-title],
.sf2-product-card__title,
.sf2-card__title,
.sf2-product-title,
.sf5-product-card__title,
.sf5-card__title,
.sf-search2-product-card__title {
  color: var(--ipek-search-navy) !important;
  font-weight: 800 !important;
  line-height: 1.28 !important;
}

/* Price */
.sf5-price-chip,
.sf5-price-group,
.sf5-price-inputs,
.sf5-price-track,
[data-sf-product-price],
.sf2-product-card__price,
.sf2-card__price,
.sf2-product-price,
.sf5-product-card__price,
.sf5-card__price,
.sf-search2-product-card__price {
  color: var(--ipek-search-navy) !important;
  font-weight: 900 !important;
  letter-spacing: -.02em;
}

/* Compatibility stays positive but secondary to price/CTA */
.sf2-product-compat, .sf5-product-compat, .sf-search2-product-compat {
  color: var(--ipek-search-green) !important;
  font-weight: 700 !important;
}

/* Stock semantics: green when existing component already uses a stock hook */
.sf2-stock-toggle {
  font-weight: 700 !important;
}

/* Strong red CTA, matching homepage cards */
.sf5-empty-state__actions,
[data-sf-add-to-cart],
.sf2-product-card__actions,
.sf2-card__actions,
.sf2-add-to-cart,
.sf5-product-card__actions,
.sf5-add-to-cart,
.sf-search2-add-to-cart {
  border-radius: 8px !important;
}

.sf2-add-to-cart,
.sf5-add-to-cart,
.sf-search2-add-to-cart,
[data-sf-add-to-cart],
.sf2-product-card button[data-action*="cart"],
.sf5-product-card button[data-action*="cart"] {
  background: var(--ipek-search-red) !important;
  border-color: var(--ipek-search-red) !important;
  color: #fff !important;
  font-weight: 800 !important;
  min-height: 46px;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.sf2-add-to-cart:hover,
.sf5-add-to-cart:hover,
.sf-search2-add-to-cart:hover,
[data-sf-add-to-cart]:hover {
  background: var(--ipek-search-red-hover) !important;
  border-color: var(--ipek-search-red-hover) !important;
}

/* Favorite is intentionally secondary */
.sf2-favorite,
.sf2-card-favorite,
.sf5-favorite,
.sf5-card-favorite,
.sf-search2-favorite,
[data-favorite] {
  width: 36px !important;
  height: 36px !important;
  box-shadow: 0 3px 12px rgba(15, 42, 76, .07) !important;
}

/* Sort/select/input language */
.sf2-catalog-ui select,
.sf2-catalog-ui input,
.sf5-search-results select,
.sf5-search-results input,
.sf-search2-page select,
.sf-search2-page input {
  border-color: var(--ipek-search-border) !important;
  border-radius: 7px !important;
}

/* Result page layout breathing room */
.sf2-results,
.sf2-product-grid,
.sf5-results,
.sf5-product-grid,
.sf-search2-results,
.sf-search2-grid {
  gap: 16px !important;
}

/* Mobile/tablet */
@media (max-width: 900px) {
  [data-sf-product-card],
[data-product-card],
.sf2-product-card,
.sf2-card,
.sf2-product,
.sf5-product-card,
.sf5-card,
.sf-search2-product-card,
.sf-search2-card {
    border-radius: 10px !important;
  }
}

@media (max-width: 640px) {
  .sf5-empty-state__actions,
[data-sf-add-to-cart],
.sf2-product-card__actions,
.sf2-card__actions,
.sf2-add-to-cart,
.sf5-product-card__actions,
.sf5-add-to-cart,
.sf-search2-add-to-cart button,
  [data-sf-add-to-cart] {
    min-height: 44px;
  }
}
