/*
 * Otozet B2B - kategori / ürün listesi modern görünüm
 * Mevcut HTML ve JavaScript işlevlerine dokunmadan masaüstü + mobil düzen.
 * Bu dosyayı diğer site CSS dosyalarından SONRA çağırın.
 */

:root {
  --oz-ink: #14213d;
  --oz-muted: #64748b;
  --oz-line: #e2e8f0;
  --oz-surface: #ffffff;
  --oz-soft: #f6f8fb;
  --oz-brand: #f28a2e;
  --oz-brand-dark: #d96d12;
  --oz-success: #16855b;
  --oz-success-soft: #e8f7f0;
  --oz-danger: #d64045;
  --oz-danger-soft: #fff0f1;
  --oz-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}

/* Ürün grubu ve marka filtreleri */
.search-container.search_two {
  width: 100%;
}

.search-container.search_two form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.search-container.search_two form > div {
  margin: 0 !important;
}

.search-container.search_two .select2-container .select2-selection,
.search-container.search_two input[type="text"] {
  min-height: 46px;
  border: 1px solid var(--oz-line) !important;
  border-radius: 10px !important;
  background: var(--oz-surface) !important;
  box-shadow: none !important;
}

.search-container.search_two .search_box {
  display: flex;
  overflow: hidden;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--oz-line);
  border-radius: 12px;
  background: var(--oz-surface);
  box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
}

.search-container.search_two .search_box input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 0 !important;
  outline: 0;
}

.search-container.search_two .search_box button {
  flex: 0 0 58px;
  width: 58px;
  height: 48px;
  border: 0;
  background: var(--oz-brand);
  color: #fff;
  font-size: 20px;
  transition: background .2s ease, transform .2s ease;
}

.search-container.search_two .search_box button:hover {
  background: var(--oz-brand-dark);
}

/* Genel ürün listesi */
.shop_wrapper {
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--oz-line);
  border-radius: 14px;
  background: var(--oz-surface) !important;
  box-shadow: var(--oz-shadow);
  overflow: visible;
}

.shop_wrapper > [class*="col-"] {
  padding: 0 !important;
}

.shop_wrapper .cizz,
.shop_wrapper .ciz {
  margin: 0 !important;
}

.shop_wrapper .cizz > div,
.shop_wrapper .ciz > div {
  min-width: 0;
  border: 0 !important;
  overflow-wrap: anywhere;
}

.shop_wrapper .cizz {
  display: grid;
  grid-template-columns: 95px 125px 85px 82px minmax(220px, 2fr) 65px 105px 88px 88px 105px;
  align-items: center;
  min-height: 48px;
  border-radius: 13px 13px 0 0;
  background: var(--oz-ink) !important;
  color: #fff !important;
}

.shop_wrapper .cizz > div {
  width: auto !important;
  max-width: none !important;
  padding: 12px 8px !important;
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: .01em;
}

.shop_wrapper .uruncerceve {
  width: 100%;
  max-width: none;
  padding: 0 !important;
  border: 0;
  border-bottom: 1px solid var(--oz-line);
  background: #fff;
}

.shop_wrapper .uruncerceve:last-child {
  border-bottom: 0;
  border-radius: 0 0 14px 14px;
}

.shop_wrapper .ciz {
  display: grid;
  grid-template-columns: 95px 125px 85px 82px minmax(220px, 2fr) 65px 105px 88px 88px 105px;
  align-items: stretch;
  min-height: 82px;
  background: transparent !important;
  transition: background .18s ease, box-shadow .18s ease;
}

.shop_wrapper .uruncerceve:nth-of-type(odd) .ciz {
  background: #fbfcfe !important;
}

.shop_wrapper .uruncerceve:hover .ciz {
  position: relative;
  z-index: 1;
  background: #fffaf5 !important;
  box-shadow: inset 3px 0 0 var(--oz-brand);
}

.shop_wrapper .ciz > div {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
  max-width: none !important;
  padding: 10px 8px !important;
  border-right: 1px solid #edf1f5 !important;
  color: #334155;
  font-size: 12px;
  line-height: 1.45;
}

.shop_wrapper .ciz > div:last-child {
  border-right: 0 !important;
}

.shop_wrapper .ciz > div:nth-child(1) {
  justify-content: flex-start;
  padding-left: 12px !important;
  color: var(--oz-muted);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.shop_wrapper .ciz > div:nth-child(2) a {
  color: #526175;
  font-weight: 600;
}

.shop_wrapper .ciz > div:nth-child(5) {
  justify-content: flex-start;
  text-align: left !important;
}

.shop_wrapper .ciz > div:nth-child(5) a {
  color: var(--oz-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.shop_wrapper .ciz > div:nth-child(7) {
  flex-direction: column;
  color: var(--oz-muted);
  font-size: 10px;
}

.shop_wrapper .current_price {
  color: var(--oz-ink);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.shop_wrapper .ciz > div:nth-child(8) {
  position: relative;
  flex-direction: column;
  padding: 8px 6px !important;
  background: transparent !important;
}

.shop_wrapper .ciz > div:nth-child(8)::before {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--oz-success-soft);
  color: var(--oz-success);
  content: "Stokta";
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.shop_wrapper .ciz > div:nth-child(8)[style*="ff0000"]::before,
.shop_wrapper .ciz > div:nth-child(8):has(.stoktalebi)::before {
  background: var(--oz-danger-soft);
  color: var(--oz-danger);
  content: "Tükendi";
}

.shop_wrapper .ciz > div:nth-child(8) a {
  display: inline-block;
  margin-top: 5px;
  color: var(--oz-danger) !important;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.shop_wrapper .ciz > div:nth-child(4) button {
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid #d8dee8;
  border-radius: 7px;
  background: #f8fafc;
  color: #43516a;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.shop_wrapper .ciz > div:nth-child(4) .kutu {
  position: absolute;
  z-index: 20;
  width: 210px;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid var(--oz-line);
  border-radius: 9px;
  background: #fff;
  box-shadow: var(--oz-shadow);
  color: var(--oz-ink);
  text-align: left;
}

.shop_wrapper .ciz > div:nth-child(9) {
  gap: 5px;
}

.shop_wrapper .ciz > div:nth-child(9) > a:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid var(--oz-line);
  border-radius: 9px;
  background: #fff;
}

.shop_wrapper .ciz > div:nth-child(9) img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

.shop_wrapper .ciz > div:nth-child(9) > a[download] {
  color: var(--oz-muted);
}

.shop_wrapper .ciz > div:nth-child(10) {
  gap: 7px;
  padding: 9px !important;
}

.shop_wrapper .ciz > div:nth-child(10) input[type="number"] {
  float: none !important;
  width: 46px !important;
  height: 38px;
  margin: 0 !important;
  padding: 6px !important;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  text-align: center;
  box-shadow: none;
}

.shop_wrapper .sepeteathizli,
.shop_wrapper .stoktalebi {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  float: none !important;
  min-width: 40px;
  min-height: 38px;
  margin: 0 !important;
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--oz-brand);
  color: #fff !important;
  text-decoration: none !important;
  transition: background .18s ease, transform .18s ease;
}

.shop_wrapper .sepeteathizli:hover,
.shop_wrapper .stoktalebi:hover {
  background: var(--oz-brand-dark);
  transform: translateY(-1px);
}

.shop_wrapper .sepeteathizli .lnr {
  font-size: 21px !important;
}

.shop_wrapper .stoktalebi {
  background: var(--oz-danger);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.15;
}

/* Hover ürün görseli ekrandan taşmasın */
.popover {
  max-width: 300px !important;
  border: 1px solid var(--oz-line) !important;
  border-radius: 12px !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .2) !important;
}

.popover .popover-body,
.popover .popover-content {
  padding: 8px !important;
}

.popover img {
  display: block;
  width: auto !important;
  max-width: 280px !important;
  height: auto !important;
  max-height: 320px !important;
  border-radius: 8px;
  object-fit: contain;
}

@media (max-width: 1199.98px) and (min-width: 768px) {
  .shop_wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .shop_wrapper > div {
    min-width: 1040px;
  }
}

/* Mobil: tablo yerine ürün kartları */
@media (max-width: 767.98px) {
  .search-container.search_two form {
    display: block;
  }

  .search-container.search_two form > div {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin-bottom: 9px !important;
  }

  .search-container.search_two .select2-container {
    width: 100% !important;
  }

  .shop_wrapper {
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
  }

  .shop_wrapper > div:first-child,
  .shop_wrapper .cizz {
    display: none !important;
  }

  .shop_wrapper .uruncerceve {
    margin: 0 0 14px !important;
    border: 1px solid var(--oz-line);
    border-radius: 14px !important;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
    overflow: hidden;
  }

  .shop_wrapper .ciz,
  .shop_wrapper .uruncerceve:nth-of-type(odd) .ciz,
  .shop_wrapper .uruncerceve:hover .ciz {
    display: grid;
    grid-template-columns: 94px repeat(3, 1fr);
    align-items: start;
    min-height: 0;
    padding: 13px;
    background: #fff !important;
    box-shadow: none;
    gap: 5px 10px;
  }

  .shop_wrapper .ciz > div {
    display: flex;
    width: auto !important;
    min-height: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 11px;
    text-align: left !important;
  }

  .shop_wrapper .ciz > div:nth-child(1) {
    grid-column: 2 / -1;
    grid-row: 1;
    justify-content: flex-start;
    color: var(--oz-muted);
    font-size: 10px;
    letter-spacing: .035em;
  }

  .shop_wrapper .ciz > div:nth-child(1)::before {
    margin-right: 5px;
    content: "Kod:";
    font-weight: 500;
  }

  .shop_wrapper .ciz > div:nth-child(2) {
    grid-column: 2 / -1;
    grid-row: 3;
    justify-content: flex-start;
  }

  .shop_wrapper .ciz > div:nth-child(2) a {
    color: var(--oz-brand-dark);
    font-size: 10px;
    font-weight: 700;
  }

  .shop_wrapper .ciz > div:nth-child(3) {
    grid-column: 2 / 4;
    grid-row: 4;
    justify-content: flex-start;
    color: var(--oz-muted);
    font-weight: 700;
  }

  .shop_wrapper .ciz > div:nth-child(3)::before {
    margin-right: 4px;
    content: "Marka:";
    font-weight: 500;
  }

  .shop_wrapper .ciz > div:nth-child(4) {
    position: relative;
    grid-column: 4 / -1;
    grid-row: 4;
    justify-content: flex-end;
  }

  .shop_wrapper .ciz > div:nth-child(4) button {
    min-height: 26px;
    padding: 4px 8px;
    font-size: 9px;
  }

  .shop_wrapper .ciz > div:nth-child(4) .kutu {
    top: 28px;
    right: 0;
    width: min(220px, 72vw);
  }

  .shop_wrapper .ciz > div:nth-child(5) {
    grid-column: 2 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .shop_wrapper .ciz > div:nth-child(5) a {
    display: -webkit-box;
    overflow: hidden;
    color: var(--oz-ink);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .shop_wrapper .ciz > div:nth-child(6) {
    display: none !important;
  }

  .shop_wrapper .ciz > div:nth-child(7) {
    grid-column: 1 / 3;
    grid-row: 5;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 10px !important;
    border-top: 1px solid var(--oz-line) !important;
    text-align: left !important;
  }

  .shop_wrapper .current_price {
    font-size: 16px;
  }

  .shop_wrapper .ciz > div:nth-child(8) {
    grid-column: 3 / -1;
    grid-row: 5;
    align-items: flex-end;
    justify-content: flex-start;
    padding-top: 10px !important;
    border-top: 1px solid var(--oz-line) !important;
  }

  .shop_wrapper .ciz > div:nth-child(8) a {
    margin-top: 3px;
  }

  .shop_wrapper .ciz > div:nth-child(9) {
    grid-column: 1;
    grid-row: 1 / 5;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .shop_wrapper .ciz > div:nth-child(9) > a:first-child {
    width: 88px;
    height: 88px;
  }

  .shop_wrapper .ciz > div:nth-child(9) > a[download] {
    display: none;
  }

  .shop_wrapper .ciz > div:nth-child(10) {
    grid-column: 1 / -1;
    grid-row: 6;
    align-items: stretch;
    gap: 9px;
    padding-top: 7px !important;
  }

  .shop_wrapper .ciz > div:nth-child(10) input[type="number"] {
    flex: 0 0 62px;
    width: 62px !important;
    height: 42px;
  }

  .shop_wrapper .sepeteathizli,
  .shop_wrapper .stoktalebi {
    flex: 1;
    min-height: 42px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 800;
  }

  .shop_wrapper .sepeteathizli::after {
    margin-left: 8px;
    content: "Sepete Ekle";
  }

  .shop_wrapper .stoktalebi br {
    display: none;
  }

  .popover {
    display: none !important;
  }
}

@media (max-width: 359.98px) {
  .shop_wrapper .ciz,
  .shop_wrapper .uruncerceve:nth-of-type(odd) .ciz,
  .shop_wrapper .uruncerceve:hover .ciz {
    grid-template-columns: 78px repeat(3, 1fr);
    padding: 10px;
    gap: 5px 8px;
  }

  .shop_wrapper .ciz > div:nth-child(9) > a:first-child {
    width: 72px;
    height: 72px;
  }
}

