/* IPEKERP_SEARCH_STOCK_BADGE_SIMPLIFY_V1:BEGIN */

/* List-view stock availability: green check + semantic text, no quantity. */
body.sf-search-v2.sf-stage5-search-v1.sf5-view-list
section#urunler #storefront-product-grid
.sf4219-reference-card .sf4219-fact.sf42112-stock-badge {
  display:inline-flex !important;
  align-items:center !important;
  gap:7px !important;
  width:max-content !important;
  max-width:100% !important;
  min-height:20px !important;
  margin:0 !important;
  padding:0 !important;
  color:#0a9f47 !important;
  font-size:12px !important;
  line-height:1.2 !important;
  font-weight:800 !important;
  letter-spacing:0 !important;
}

/* Retire the old cube/stock glyph in the reference-card fact row. */
body.sf-search-v2.sf-stage5-search-v1.sf5-view-list
section#urunler #storefront-product-grid
.sf4219-reference-card .sf4219-fact.sf42112-stock-badge > svg,
body.sf-search-v2.sf-stage5-search-v1.sf5-view-list
section#urunler #storefront-product-grid
.sf4219-reference-card .sf4219-fact.sf42112-stock-badge > i,
body.sf-search-v2.sf-stage5-search-v1.sf5-view-list
section#urunler #storefront-product-grid
.sf4219-reference-card .sf4219-fact.sf42112-stock-badge > .icon {
  display:none !important;
}

body.sf-search-v2.sf-stage5-search-v1.sf5-view-list
section#urunler #storefront-product-grid
.sf4219-reference-card .sf4219-fact.sf42112-stock-badge::before {
  content:"✓";
  flex:0 0 17px;
  width:17px;
  height:17px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#13a653;
  color:#ffffff;
  font-size:11px;
  line-height:1;
  font-weight:900;
  box-shadow:0 0 0 1px rgba(19,166,83,.08);
}

body.sf-search-v2.sf-stage5-search-v1.sf5-view-list
section#urunler #storefront-product-grid
.sf4219-reference-card .sf4219-fact.sf42112-stock-badge > span {
  display:inline !important;
  width:auto !important;
  height:auto !important;
  margin:0 !important;
  padding:0 !important;
  overflow:visible !important;
  color:#0a9f47 !important;
  font-size:12px !important;
  line-height:1.2 !important;
  font-weight:800 !important;
  white-space:nowrap !important;
}

/* Safe semantic fallback for an explicitly unavailable product. */
body.sf-search-v2.sf-stage5-search-v1.sf5-view-list
section#urunler #storefront-product-grid
.sf4219-reference-card .sf4219-fact.sf42112-stock-badge.is-out-of-stock {
  color:#6f7f91 !important;
}

body.sf-search-v2.sf-stage5-search-v1.sf5-view-list
section#urunler #storefront-product-grid
.sf4219-reference-card .sf4219-fact.sf42112-stock-badge.is-out-of-stock::before {
  content:"×";
  background:#8795a5;
}

body.sf-search-v2.sf-stage5-search-v1.sf5-view-list
section#urunler #storefront-product-grid
.sf4219-reference-card .sf4219-fact.sf42112-stock-badge.is-out-of-stock > span {
  color:#6f7f91 !important;
}

/* Grid view remains governed by its existing canonical card styling. */
body.sf-search-v2.sf-stage5-search-v1.sf5-view-grid
section#urunler #storefront-product-grid
.sf4219-fact.sf42112-stock-badge::before {
  content:none !important;
}

/* IPEKERP_SEARCH_STOCK_BADGE_SIMPLIFY_V1:END */

/* IPEKERP_SEARCH_STOCK_BADGE_RUNTIME_ATTACH_V1:BEGIN */

/* Final optical target: compact green availability tick + text. */
body.sf-search-v2.sf-stage5-search-v1.sf5-view-list
section#urunler #storefront-product-grid
.sf4219-fact.sf42112-stock-badge {
  display:inline-flex !important;
  align-items:center !important;
  gap:7px !important;
  width:max-content !important;
  min-height:20px !important;
  color:#079447 !important;
}

body.sf-search-v2.sf-stage5-search-v1.sf5-view-list
section#urunler #storefront-product-grid
.sf4219-fact.sf42112-stock-badge::before {
  content:"✓" !important;
  width:18px !important;
  height:18px !important;
  flex:0 0 18px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:50% !important;
  background:#16a34a !important;
  color:#fff !important;
  font-size:12px !important;
  line-height:1 !important;
  font-weight:900 !important;
}

body.sf-search-v2.sf-stage5-search-v1.sf5-view-list
section#urunler #storefront-product-grid
.sf4219-fact.sf42112-stock-badge > span {
  display:inline !important;
  color:#079447 !important;
  font-size:12px !important;
  line-height:1.2 !important;
  font-weight:800 !important;
}

/* Hide the retired cube/package icon regardless of its exact direct-child tag. */
body.sf-search-v2.sf-stage5-search-v1.sf5-view-list
section#urunler #storefront-product-grid
.sf4219-fact.sf42112-stock-badge > :is(svg, i, .icon, [aria-hidden="true"]) {
  display:none !important;
}

/* IPEKERP_SEARCH_STOCK_BADGE_RUNTIME_ATTACH_V1:END */

/* IPEKERP_SEARCH_STOCK_BADGE_VERTICAL_ALIGNMENT_V1:BEGIN */

/*
  Optical alignment:
  - the 18px check circle is the cross-axis reference
  - the text gets its own 18px flex box
  - legacy line/position rules are neutralized
  - a 1px optical lift compensates for the font's visual baseline
*/
body.sf-search-v2.sf-stage5-search-v1.sf5-view-list
section#urunler #storefront-product-grid
.sf4219-fact.sf42112-stock-badge {
  height:20px !important;
  min-height:20px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:7px !important;
  line-height:20px !important;
}

body.sf-search-v2.sf-stage5-search-v1.sf5-view-list
section#urunler #storefront-product-grid
.sf4219-fact.sf42112-stock-badge::before {
  align-self:center !important;
  margin:0 !important;
  position:static !important;
  inset:auto !important;
  transform:none !important;
}

body.sf-search-v2.sf-stage5-search-v1.sf5-view-list
section#urunler #storefront-product-grid
.sf4219-fact.sf42112-stock-badge > span {
  flex:0 0 auto !important;
  align-self:center !important;

  width:auto !important;
  height:18px !important;
  min-height:18px !important;
  max-height:18px !important;

  margin:0 !important;
  padding:0 !important;

  display:inline-flex !important;
  align-items:center !important;
  justify-content:flex-start !important;

  position:relative !important;
  top:0 !important;
  right:auto !important;
  bottom:auto !important;
  left:auto !important;

  line-height:18px !important;
  vertical-align:middle !important;
  transform:translateY(-1px) !important;
}

/* IPEKERP_SEARCH_STOCK_BADGE_VERTICAL_ALIGNMENT_V1:END */

/* IPEKERP_SEARCH_STOCK_BADGE_TRUE_CENTER_V1_1:BEGIN */

body.sf-search-v2.sf-stage5-search-v1.sf5-view-list
section#urunler #storefront-product-grid
.sf4219-fact.sf42112-stock-badge {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:7px !important;
  height:20px !important;
  min-height:20px !important;
  max-height:20px !important;
  margin:0 !important;
  padding:0 !important;
  line-height:20px !important;
  vertical-align:middle !important;
  transform:none !important;
}

body.sf-search-v2.sf-stage5-search-v1.sf5-view-list
section#urunler #storefront-product-grid
.sf4219-fact.sf42112-stock-badge::before {
  flex:0 0 18px !important;
  width:18px !important;
  height:18px !important;
  min-width:18px !important;
  min-height:18px !important;
  max-width:18px !important;
  max-height:18px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  align-self:center !important;
  margin:0 !important;
  padding:0 !important;
  position:static !important;
  inset:auto !important;
  top:auto !important;
  right:auto !important;
  bottom:auto !important;
  left:auto !important;
  line-height:18px !important;
  vertical-align:middle !important;
  transform:none !important;
}

body.sf-search-v2.sf-stage5-search-v1.sf5-view-list
section#urunler #storefront-product-grid
.sf4219-fact.sf42112-stock-badge > span {
  flex:0 0 auto !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  align-self:center !important;
  width:auto !important;
  height:20px !important;
  min-height:20px !important;
  max-height:20px !important;
  margin:0 !important;
  padding:0 !important;
  position:static !important;
  inset:auto !important;
  top:auto !important;
  right:auto !important;
  bottom:auto !important;
  left:auto !important;
  line-height:20px !important;
  vertical-align:middle !important;
  transform:none !important;
}

/* IPEKERP_SEARCH_STOCK_BADGE_TRUE_CENTER_V1_1:END */

/* IPEKERP_SEARCH_STOCK_BADGE_VISIBLE_PIXEL_CENTER_V1:BEGIN */

/*
  Live raster measurement:
  check ink centerY = 10.5
  Stokta ink centerY = 8.0
  delta = -2.5px, so the visible text is 2.5px too high.
*/
body.sf-search-v2.sf-stage5-search-v1.sf5-view-list
section#urunler #storefront-product-grid
.sf4219-fact.sf42112-stock-badge > span {
  transform: translateY(2.5px) !important;
}

/* IPEKERP_SEARCH_STOCK_BADGE_VISIBLE_PIXEL_CENTER_V1:END */
