
/* ==================================================
   DEMIRATLILAR MOTOR AKSESUAR
   PREMIUM SIYAH & KIRMIZI - KATEGORI V6.0
   ================================================== */

/* 1. MARKA RENKLERI */
:root {
  --dm-red: #d92332;
  --dm-red-hover: #b71928;
  --dm-dark: #171b22;
  --dm-text: #242933;
  --dm-muted: #747c88;
  --dm-border: #e5e8ed;
  --dm-light: #f6f7f9;
  --dm-white: #ffffff;
  --dm-radius: 12px;
}

/* 2. KATEGORI BASLIKLARI */
:is(
  .category-title,
  .categoryTitle,
  .kategoriBaslik
) {
  color: var(--dm-dark);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.35;
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 3px solid var(--dm-red);
}

/* 3. KATEGORI ACIKLAMALARI */
:is(
  .category-description,
  .category-desc,
  .kategoriAciklama
) {
  color: var(--dm-muted);
  font-size: 14px;
  line-height: 1.75;
}

/* 4. FILTRE KUTULARI */
:is(
  .filter-box,
  .filter-panel,
  .filter-area,
  .filterBox,
  .filtreAlani
) {
  background: #ffffff;
  border: 1px solid var(--dm-border);
  border-radius: 12px;
  padding: 16px;
}

/* 5. FILTRE BASLIKLARI */
:is(
  .filter-title,
  .filter-heading,
  .filterTitle,
  .filtreBaslik
) {
  color: var(--dm-dark);
  font-weight: 700;
  font-size: 15px;
}

/* 6. FILTRE SECIMLERI */
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--dm-red);
}

/* 7. SIRALAMA */
:is(
  .sort-box,
  .sorting-box,
  .product-sort,
  .sorting
) select {
  background: #fff;
  color: var(--dm-text);
  border: 1px solid var(--dm-border);
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 42px;
}

/* 8. URUN KARTLARI */
.urun {
  min-width: 0;
}

.urun .urun_ic {
  background: #ffffff;
  border: 1px solid var(--dm-border) !important;
  border-radius: var(--dm-radius);
  overflow: hidden;
  transition:
    border-color .25s ease,
    box-shadow .25s ease;
}

/* 9. URUN KARTI HOVER */
@media (hover: hover) {
  .urun .urun_ic:hover {
    border-color: var(--dm-red) !important;
    box-shadow: 0 12px 28px rgba(0,0,0,.11);
  }
}

/* 10. URUN GORSELLERI */
.urun .urun_resmi {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform .3s ease;
}

@media (hover: hover) {
  .urun .urun_ic:hover .urun_resmi {
    transform: scale(1.025);
  }
}

/* 11. URUN ISIMLERI */
.urun .urun_ismi {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;

  color: var(--dm-text) !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  height: 42px;
  min-height: 42px;
  margin-bottom: 8px !important;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.urun .urun_ismi:hover {
  color: var(--dm-red) !important;
}

/* 12. URUN FIYATI */
.urun .urun_fiyatlar .urun_kdvdahil_fiyati,
.urun .urun_fiyatlar .urun_kdvdahil_fiyati span {
  color: var(--dm-red) !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.urun .urun_fiyatlar {
  margin-bottom: 10px !important;
}

/* 13. SEPETE EKLE KAPSAYICISI */
.urun .urun_butonlar {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: static !important;
  transform: none !important;
  width: auto;
  margin: 8px 10px 12px !important;
}

/* 14. SEPETE EKLE BUTONU */
.urun .urun_butonlar .addToCart {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center;
  justify-content: center;

  position: static !important;
  transform: none !important;

  width: 100%;
  min-height: 44px;
  padding: 11px 12px;

  background: var(--dm-red) !important;
  border: 1px solid var(--dm-red) !important;
  border-radius: 8px;

  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;

  transition: background-color .2s ease;
}

/* 15. SEPET BUTONU HOVER */
.urun .urun_butonlar .addToCart:hover {
  background: var(--dm-red-hover) !important;
  border-color: var(--dm-red-hover) !important;
  color: #ffffff !important;
}

/* 16. UC ETIKETIN ORTAK TASARIMI */
.urun :is(
  .yeni_urun_ikon,
  .kargo_bedavali_urun_ikon,
  .ayni_gun_kargo_urun_ikon
) {
  display: table;
  width: max-content;
  max-width: 100%;
  height: auto;
  min-height: 22px;
  padding: 4px 7px;
  margin-bottom: 4px;
  border-radius: 5px;
  background-image: none !important;
  box-shadow: 0 2px 5px rgba(0,0,0,.08);
  line-height: 1.3;
  box-sizing: border-box;
}

/* 17. YENI ETIKETI */
.urun .yeni_urun_ikon {
  background: #d92332 !important;
}

.urun .yeni_urun_ikon::before {
  content: "Yeni" !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  white-space: nowrap;
}

/* 18. UCRETSIZ KARGO */
.urun .kargo_bedavali_urun_ikon {
  background: #171b22 !important;
}

.urun .kargo_bedavali_urun_ikon::before {
  content: "Ücretsiz Kargo" !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  white-space: nowrap;
}

/* 19. AYNI GUN KARGO */
.urun .ayni_gun_kargo_urun_ikon {
  background: #e5f3eb !important;
  border: 1px solid #c6e6d2;
}

.urun .ayni_gun_kargo_urun_ikon::before {
  content: "Aynıgün Kargo" !important;
  color: #17643a !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  white-space: nowrap;
}

/* 20. SAYFALAMA */
:is(
  .pagination,
  .paging,
  .sayfalama
) a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 6px;

  background: #fff;
  color: var(--dm-text);
  border: 1px solid var(--dm-border);
  border-radius: 7px;
  text-decoration: none;
}

:is(
  .pagination,
  .paging,
  .sayfalama
) a:hover {
  background: var(--dm-red);
  border-color: var(--dm-red);
  color: #fff;
}

/* 21. MOBIL TASARIM */
@media (max-width: 768px) {

  .urun .urun_ic {
    border-radius: 9px;
  }

  .urun .urun_ismi {
    font-size: 12px;
    height: 38px;
    min-height: 38px;
  }

  .urun .urun_fiyatlar .urun_kdvdahil_fiyati,
  .urun .urun_fiyatlar .urun_kdvdahil_fiyati span {
    font-size: 17px !important;
  }

  .urun .urun_butonlar {
    margin: 8px 6px 10px !important;
  }

  .urun .urun_butonlar .addToCart {
    min-height: 42px;
    padding: 10px 8px;
    font-size: 12px;
  }

  .urun :is(
    .yeni_urun_ikon,
    .kargo_bedavali_urun_ikon,
    .ayni_gun_kargo_urun_ikon
  ) {
    min-height: 18px;
    padding: 3px 5px;
  }

  .urun :is(
    .yeni_urun_ikon,
    .kargo_bedavali_urun_ikon,
    .ayni_gun_kargo_urun_ikon
  )::before {
    font-size: 9px !important;
  }
}

/* 22. ERISILEBILIRLIK */
@media (prefers-reduced-motion: reduce) {
  .urun .urun_ic,
  .urun .urun_resmi,
  .urun .urun_butonlar .addToCart {
    transition: none;
  }
}
