/* ==================================================
   DEMIRATLILAR MOTOR AKSESUAR
   PREMIUM SIYAH & KIRMIZI
   GENEL CSS V4
   ================================================== */

/* 1. MARKA RENKLERI */
:root {
  --dm-red: #d92332;
  --dm-red-hover: #b71928;
  --dm-black: #171b22;
  --dm-dark: #232832;
  --dm-text: #242933;
  --dm-gray: #747c88;
  --dm-border: #e5e8ed;
  --dm-light: #f6f7f9;
  --dm-white: #ffffff;
  --dm-radius: 12px;
  --dm-shadow: 0 8px 25px rgba(0,0,0,.08);
}

/* 2. TEMEL AYARLAR */
html {
  scroll-behavior: smooth;
}

body {
  color: var(--dm-text);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

/* 3. BAGLANTILAR */
a {
  transition: color .2s ease;
}

a:hover {
  color: var(--dm-red);
}

/* 4. BASLIKLAR */
h1, h2, h3, h4, h5, h6 {
  color: var(--dm-text);
  line-height: 1.35;
}

h1, h2 {
  font-weight: 800;
}

h3, h4 {
  font-weight: 700;
}

/* 5. HEADER - UST ALAN */
header,
.header,
#header,
.site-header {
  background-color: var(--dm-white);
}

/* 6. MENU BAGLANTILARI */
:is(
  .main-menu,
  .main-nav,
  .navbar,
  .nav-menu
) a {
  font-weight: 600;
  transition: color .2s ease;
}

:is(
  .main-menu,
  .main-nav,
  .navbar,
  .nav-menu
) a:hover {
  color: var(--dm-red);
}

/* 7. ARAMA KUTUSU */
input[type="search"],
input[name*="search" i],
input[placeholder*="ara" i] {
  max-width: 100%;
  border: 1px solid var(--dm-border);
  border-radius: 24px;
  background: #fff;
  color: var(--dm-text);
  padding: 11px 16px;
  transition:
    border-color .2s ease,
    box-shadow .2s ease;
}

input[type="search"]:focus,
input[name*="search" i]:focus,
input[placeholder*="ara" i]:focus {
  outline: none;
  border-color: var(--dm-red);
  box-shadow: 0 0 0 3px rgba(217,35,50,.12);
}

/* 8. FORM ALANLARI */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
textarea {
  max-width: 100%;
  border-radius: 8px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--dm-red);
  outline-offset: 2px;
}

/* 9. GENEL BUTONLAR */
button,
.btn,
input[type="submit"] {
  transition:
    background-color .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

/* Sadece bilinen ana aksiyon butonlari */
:is(
  .btn-primary,
  .button-primary,
  .primary-button
) {
  background: var(--dm-red);
  border-color: var(--dm-red);
  color: var(--dm-white);
  border-radius: 8px;
  font-weight: 700;
}

:is(
  .btn-primary,
  .button-primary,
  .primary-button
):hover {
  background: var(--dm-red-hover);
  border-color: var(--dm-red-hover);
  color: var(--dm-white);
}

/* 10. URUN KARTLARI - DOGRULANMIS SINIFLAR */
.urun {
  min-width: 0;
}

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

@media (hover: hover) {
  .urun .urun_ic:hover {
    border-color: #cfd5dd !important;
    box-shadow: var(--dm-shadow);
  }
}

.urun .urun_resmi {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* 11. URUN ISIMLERI */
.urun :is(
  .urun_adi,
  .urunAdi,
  .product-name,
  .product-title
) {
  color: var(--dm-text);
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* 12. FIYATLAR */
.urun :is(
  .urun_fiyat,
  .urunFiyat,
  .product-price,
  .sale-price,
  .indirimliFiyat
) {
  color: var(--dm-red);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* 13. SEPETE EKLE BUTONLARI */
.urun :is(
  .sepeteEkle,
  .sepetEkle,
  .add-to-cart,
  .addToCart,
  .btn-cart
) {
  background: var(--dm-red);
  color: #fff;
  border: 1px solid var(--dm-red);
  border-radius: 8px;
  font-weight: 700;
  min-height: 44px;
}

.urun :is(
  .sepeteEkle,
  .sepetEkle,
  .add-to-cart,
  .addToCart,
  .btn-cart
):hover {
  background: var(--dm-red-hover);
  border-color: var(--dm-red-hover);
  color: #fff;
}

/* 14. BREADCRUMB - SAYFA YOLU */
:is(
  .breadcrumb,
  .breadcrumbs,
  .breadcrumb-area
) {
  font-size: 13px;
  color: var(--dm-gray);
}

:is(
  .breadcrumb,
  .breadcrumbs,
  .breadcrumb-area
) a:hover {
  color: var(--dm-red);
}

/* 15. ALT BILGI */
footer,
.footer,
#footer {
  background: var(--dm-black);
  color: #d0d5dc;
}

footer a,
.footer a,
#footer a {
  color: #d0d5dc;
}

footer a:hover,
.footer a:hover,
#footer a:hover {
  color: #ff6470;
}

/* 16. MOBIL GORUNUM */
@media (max-width: 768px) {
  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

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

  .urun :is(
    .urun_adi,
    .urunAdi,
    .product-name,
    .product-title
  ) {
    font-size: 13px;
  }

  .urun :is(
    .sepeteEkle,
    .sepetEkle,
    .add-to-cart,
    .addToCart,
    .btn-cart
  ) {
    min-height: 42px;
    font-size: 13px;
  }

  input[type="search"] {
    max-width: 100%;
  }
}

/* 17. ERISILEBILIRLIK */
:focus-visible {
  outline: 2px solid var(--dm-red);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* ===========================================
   DEMIRATLILAR MOTOR
   PREMIUM HEADER VE ARAMA - V5
   =========================================== */

/* UST ALAN */
header.position-relative {
  background: #ffffff;
  border-bottom: 1px solid #e7e9ee;
}

/* LOGO */
header .logo {
  position: relative;
  z-index: 2;
}

header .logo img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ARAMA FORMU */
header #urun_arama_form {
  width: 100%;
  max-width: 100%;
}

/* ARAMA KUTUSU */
header #urun_arama_input {
  background: #f3f4f6;
  color: #242933;
  border: 1px solid #e1e4e9;
  border-radius: 9px;
  min-height: 44px;
  padding: 10px 15px;
  font-size: 14px;
  transition:
    background-color .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

header #urun_arama_input::placeholder {
  color: #9299a4;
  opacity: 1;
}

/* ARAMA ODAK EFEKTI */
header #urun_arama_input:focus {
  outline: none;
  background: #ffffff;
  border-color: #d92332;
  box-shadow: 0 0 0 3px rgba(217,35,50,.12);
}

/* ARAMA ALANININ GENEL DUZENI */
header .categories {
  min-width: 0;
}

/* HEADER BAGLANTILARI */
header a {
  transition: color .2s ease;
}

header a:hover {
  color: #d92332;
}

/* KLAVYE ERISILEBILIRLIGI */
header a:focus-visible,
header button:focus-visible {
  outline: 2px solid #d92332;
  outline-offset: 3px;
}

/* MOBIL */
@media (max-width: 768px) {
  header #urun_arama_input {
    min-height: 44px;
    font-size: 14px;
  }

  header .logo img {
    max-width: 100%;
    height: auto;
  }
}

/* ==============================================
   DEMIRATLILAR MOTOR
   PREMIUM SIYAH KIRMIZI KATEGORI MENUSU V6
   ============================================== */

/* SADECE MASAUSTU ANA MENU */
@media (min-width: 768px) {

  .top-menu {
    background: #171b22;
    border-bottom: 3px solid #d92332;
  }

  /* ANA MENU LISTESI */
  .top-menu #PopupMenu1 {
    background: #171b22;
    border: none;
    box-shadow: none !important;
  }

  /* ANA KATEGORI SATIRLARI */
  .top-menu #PopupMenu1 > li {
    background: transparent;
    border: none;
  }

  /* ANA KATEGORI YAZILARI */
  .top-menu #PopupMenu1 > li > a {
    display: flex;
    align-items: center;
    color: #ffffff;
    background: transparent;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition:
      background-color .2s ease,
      color .2s ease;
  }

  /* FARE UZERINE GELINCE */
  .top-menu #PopupMenu1 > li:hover > a,
  .top-menu #PopupMenu1 > li > a:hover,
  .top-menu #PopupMenu1 > li > a:focus-visible {
    color: #ffffff;
    background: #d92332;
  }

  /* ALT MENULERIN AYRI GORUNMESI */
  .top-menu #PopupMenu1 li > ul {
    background: #ffffff;
    border: 1px solid #e5e8ed;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 12px 28px rgba(0,0,0,.15);
  }

  /* ALT MENU BAGLANTILARI */
  .top-menu #PopupMenu1 li > ul a {
    color: #242933;
    background: transparent;
    text-decoration: none;
  }

  .top-menu #PopupMenu1 li > ul a:hover,
  .top-menu #PopupMenu1 li > ul a:focus-visible {
    color: #d92332;
    background: #f6f7f9;
  }

  /* KLAVYE ILE GEZINME */
  .top-menu #PopupMenu1 a:focus-visible {
    outline: 2px solid #ff6673;
    outline-offset: -2px;
  }
}

/* MOBIL MENUYU SIMDILIK DEGISTIRMIYORUZ */

/* ==========================================
   DEMIRATLILAR MOTOR
   PREMIUM MENU V7 - SON DOKUNUSLAR
   ========================================== */

@media (min-width: 768px) {

  /* Ana kategori baglantilari */
  .top-menu #PopupMenu1 > li > a {
    position: relative;
    min-height: 48px;
    padding: 12px 22px !important;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    background: transparent;
    transition:
      color .2s ease,
      background-color .2s ease;
  }

  /* Kirmizi alt cizgi */
  .top-menu #PopupMenu1 > li > a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    background: #d92332;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s ease;
    pointer-events: none;
  }

  /* Uzerine gelindiginde */
  .top-menu #PopupMenu1 > li:hover > a,
  .top-menu #PopupMenu1 > li > a:hover,
  .top-menu #PopupMenu1 > li > a:focus-visible {
    background: #252b35;
    color: #ffffff;
  }

  .top-menu #PopupMenu1 > li:hover > a::after,
  .top-menu #PopupMenu1 > li > a:hover::after,
  .top-menu #PopupMenu1 > li > a:focus-visible::after {
    transform: scaleX(1);
  }

  /* Menu gecisleri */
  .top-menu {
    border-bottom: 2px solid #d92332;
  }
}

/* Hareket hassasiyeti */
@media (prefers-reduced-motion: reduce) {
  .top-menu #PopupMenu1 > li > a,
  .top-menu #PopupMenu1 > li > a::after {
    transition: none;
  }
}

/* ============================================
   DEMIRATLILAR MOTOR
   PREMIUM MEGA MENU V8
   ============================================ */

@media (min-width: 768px) {

  /* 1. ANA MENU AKTIF YAZISI */
  .top-menu #PopupMenu1 > li:hover > a,
  .top-menu #PopupMenu1 > li > a:hover,
  .top-menu #PopupMenu1 > li > a:focus,
  .top-menu #PopupMenu1 > li.active > a,
  .top-menu #PopupMenu1 > li.show > a {
    color: #ffffff !important;
    background: #252b35;
  }

  /* 2. MEGA MENU DIS ALANI */
  .top-menu #PopupMenu1 > li > ul {
    background: #ffffff;
    border: 1px solid #e5e8ed;
    border-top: 3px solid #d92332;
    box-shadow: 0 15px 35px rgba(0,0,0,.12);
  }

  /* 3. MEGA MENU GENEL BAGLANTILARI */
  .top-menu #PopupMenu1 > li > ul a {
    color: #505763;
    background: transparent;
    text-decoration: none;
    transition: color .2s ease;
  }

  /* 4. ALT KATEGORI HOVER */
  .top-menu #PopupMenu1 > li > ul a:hover,
  .top-menu #PopupMenu1 > li > ul a:focus-visible {
    color: #d92332;
    background: transparent;
  }

  /* 5. ALT MENU SATIR ARALIKLARI */
  .top-menu #PopupMenu1 > li > ul li {
    line-height: 1.65;
  }

  /* 6. KLAVYE ERISILEBILIRLIGI */
  .top-menu #PopupMenu1 a:focus-visible {
    outline: 2px solid #d92332;
    outline-offset: 2px;
  }
}

/* 7. HAREKET HASSASIYETI */
@media (prefers-reduced-motion: reduce) {
  .top-menu #PopupMenu1 a {
    transition: none;
  }
}

/* ==========================================
   DEMIRATLILAR MOTOR
   PREMIUM MEGA MENU BASLIKLARI V9
   ========================================== */

@media (min-width: 768px) {

  /* MEGA MENU ICINDEKI KATEGORI BASLIKLARI */
  .top-menu #PopupMenu1
  > li.has_child
  > ul.drilldown-sub
  > li.has_child
  > a.dropdown-item {
    position: relative;
    display: inline-block;
    width: auto;
    max-width: 100%;
    padding-bottom: 12px !important;
    margin-bottom: 8px;
    color: #171b22 !important;
    background: transparent !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
    text-decoration: none;
  }

  /* KIRMIZI BASLIK CIZGISI */
  .top-menu #PopupMenu1
  > li.has_child
  > ul.drilldown-sub
  > li.has_child
  > a.dropdown-item::after {
    content: "";
    position: absolute;
    left: 16px;
    bottom: 4px;
    width: 45px;
    height: 3px;
    background: #d92332;
    border-radius: 3px;
    pointer-events: none;
  }

  /* BASLIK METNI */
  .top-menu #PopupMenu1
  > li.has_child
  > ul.drilldown-sub
  > li.has_child
  > a.dropdown-item > span {
    color: #171b22;
    font-weight: 800;
  }

  /* BASLIGA GELINCE */
  .top-menu #PopupMenu1
  > li.has_child
  > ul.drilldown-sub
  > li.has_child
  > a.dropdown-item:hover > span {
    color: #d92332;
  }
}

/* =========================================
   DEMIRATLILAR MOTOR
   PREMIUM MEGA MENU V10
   SON GORSEL IYILESTIRMELER
   ========================================= */

@media (min-width: 768px) {

  /* Mega menu kategori baglantilari */
  .top-menu #PopupMenu1
  .drilldown-sub li:not(.has_child) > a {
    display: block;
    color: #555d68;
    font-size: 13px;
    line-height: 1.55;
    text-decoration: none;
    transition:
      color .2s ease,
      background-color .2s ease;
  }

  /* Baglanti hover efekti */
  .top-menu #PopupMenu1
  .drilldown-sub li:not(.has_child) > a:hover {
    color: #d92332;
    background: rgba(217,35,50,.04);
  }

  /* Baslik yazilari */
  .top-menu #PopupMenu1
  .drilldown-sub li.has_child > a > span {
    font-weight: 800;
  }

  /* Klavye ile gezinme */
  .top-menu #PopupMenu1
  .drilldown-sub a:focus-visible {
    outline: 2px solid #d92332;
    outline-offset: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .top-menu #PopupMenu1
  .drilldown-sub a {
    transition: none;
  }
}
