/* ==========================================================================
   MEDİKAL MAVİ TEMA STİLLERİ & OVERRIDE'LAR
   ========================================================================== */

:root {
  --medical-blue: #0066c0;
  --medical-dark: #003b73;
  --medical-light: #00a8cc;
  --medical-hover: #002244;
}

body {
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   1. SEPET (MODAL & OVERRIDE) STİLLERİ
   -------------------------------------------------------------------------- */
/* Sepetime Git Butonu (Medikal Mavi) */
#sepet a[href*="sepet"], 
#sepet .btn-success, 
#sepet a.btn:first-of-type {
  background: #0066c0 !important;
  border-color: #003b73 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

#sepet a[href*="sepet"]:hover, 
#sepet .btn-success:hover {
  background: #003b73 !important;
  color: #ffffff !important;
}

/* Alışverişe Devam Et Butonu (Koyu Mavi) */
#sepet a[href="javascript:void(0)"], 
#sepet .btn-default, 
#sepet .btn-secondary, 
#sepet a.btn:last-of-type {
  background: #003b73 !important;
  border-color: #002244 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

#sepet a[href="javascript:void(0)"]:hover, 
#sepet .btn-default:hover, 
#sepet .btn-secondary:hover {
  background: #002244 !important;
  color: #ffffff !important;
}

/* Buton İkonlarının Rengi */
#sepet a.btn i, 
#sepet .btn i {
  color: #ffffff !important;
}

/* Toplam Tutar Alanı */
#sepet div[style*="background"], 
#sepet .sepet_toplam, 
#sepet .toplam-tutari, 
#sepet [class*="toplam"] {
  background-color: #0066c0 !important;
  background: #0066c0 !important;
  color: #ffffff !important;
}

#sepet div[style*="background"] *, 
#sepet .sepet_toplam *, 
#sepet .toplam-tutari *, 
#sepet [class*="toplam"] * {
  color: #ffffff !important;
}

/* Kapat (X) Buton Arka Planı */
#sepet [class*="close"], 
#sepet [class*="kapat"],
#sepet .sepet_ust a,
#sepet .sepet_ust i,
#sepet > div:first-child a {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  color: #ffffff !important;
}

/* Sepet Üst Barı */
#sepet > div:first-child,
#sepet .sepet_ust,
#sepet .sepet-header {
  background: #0066c0 !important;
  background-color: #0066c0 !important;
  color: #ffffff !important;
}

#sepet > div:first-child *,
#sepet .sepet_ust * {
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   2. HEADER & MÜŞTERİ AKSİYON ALANLARI
   -------------------------------------------------------------------------- */
.top-bar-red {
  background-color: var(--medical-dark);
  color: #ffffff;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.top-bar-red a {
  color: #e2e8f0 !important;
  text-decoration: none;
  transition: color 0.2s ease;
}
.top-bar-red a:hover {
  color: #ffffff !important;
}

.main-header-red {
  background: linear-gradient(135deg, var(--medical-blue) 0%, var(--medical-dark) 100%);
  padding: 20px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  width: 100%;
}

.header-row {
  display: flex;
  align-items: center;
}

.search-box-custom {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.search-box-custom input {
  width: 100%;
  height: 46px;
  padding: 0 50px 0 20px;
  border-radius: 23px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  outline: none;
  font-size: 13.5px;
  color: #333;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.search-box-custom button {
  position: absolute;
  right: 4px;
  top: 4px;
  height: 38px;
  width: 42px;
  background: var(--medical-blue);
  border: none;
  border-radius: 19px;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-box-custom button:hover {
  background: var(--medical-dark);
}

.search-tags {
  margin-top: 6px;
  font-size: 11px;
  white-space: nowrap;
  overflow-x: auto;
  text-overflow: ellipsis;
  padding-bottom: 2px;
}
.search-tags a {
  color: rgba(255, 255, 255, 0.9);
  margin-right: 6px;
  background: rgba(0, 0, 0, 0.15);
  padding: 3px 8px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-block;
}
.search-tags a:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.header-center-logo {
  text-align: center;
}
.header-center-logo a {
  display: inline-block;
}
.header-center-logo img {
  max-width: 400px;
  max-height: 100px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.2));
  transition: transform 0.2s ease;
}
.header-center-logo img:hover {
  transform: scale(1.03);
}

.header-right-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}
.action-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none !important;
  padding: 9px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}
.action-item:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-1px);
}
.action-item i {
  font-size: 26px;
}
.action-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.action-text span {
  font-size: 11px;
  opacity: 0.85;
}
.action-text strong {
  font-size: 14px;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   3. KATEGORİ MENÜ BARI & MEGAMENU
   -------------------------------------------------------------------------- */
.category-nav-bar {
  background-color: #ffffff;
  border-bottom: 3px solid var(--medical-blue);
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}
.menu-red-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.menu-red-list > li {
  position: relative;
}
.menu-red-list > li > a {
  display: block;
  padding: 14px 22px;
  color: #222;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.menu-red-list > li:hover > a {
  background-color: var(--medical-blue);
  color: #fff;
}

.menu-red-list li .acilirdis {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 550px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  border-top: 3px solid var(--medical-blue);
  z-index: 999;
  padding: 15px;
}
.menu-red-list li:hover .acilirdis {
  display: flex;
  flex-wrap: wrap;
}
.acilirdis h3 a {
  color: var(--medical-blue);
  font-size: 14px;
  font-weight: bold;
}
.acilirdis ul {
  list-style: none;
  padding: 0;
}
.acilirdis ul li a {
  color: #555;
  font-size: 12px;
  padding: 4px 0;
  display: block;
  text-decoration: none;
}
.acilirdis ul li a:hover {
  color: var(--medical-blue);
}

/* --------------------------------------------------------------------------
   4. FOOTER STİLLERİ
   -------------------------------------------------------------------------- */
footer.footer-red-custom {
  background: linear-gradient(135deg, var(--medical-blue) 0%, var(--medical-dark) 100%);
  color: #ffffff;
  padding-top: 40px;
  border-top: 4px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
}
footer.footer-red-custom a {
  color: rgba(255, 255, 255, 0.85) !important;
  transition: color 0.2s ease;
}
footer.footer-red-custom a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}
.footer_menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer_menu li {
  margin-bottom: 8px;
  font-size: 13px;
}
.footer_menu li.footer-title {
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 5px;
  display: inline-block;
}
.destek i {
  color: #ffffff !important;
  font-size: 30px;
}
.destek span, .destek a, .adres-email span {
  color: #ffffff !important;
}
.footer_sosyal {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 10px;
}
.footer_sosyal li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff !important;
  font-size: 18px;
  transition: all 0.2s ease;
}
.footer_sosyal li a:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}
.copyright-red {
  background-color: var(--medical-dark);
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.copyright-red a b {
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   5. MOBİL MENÜ DÜZENLEMELERİ & DRAWER
   -------------------------------------------------------------------------- */
.mobile-menu-toggle {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 24px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  z-index: 105;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: #fff;
  z-index: 99999;
  transition: left 0.3s ease;
  box-shadow: 2px 0 10px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
}
.mobile-nav-drawer.active {
  left: 0;
}

.mobile-drawer-header {
  background: var(--medical-blue);
  color: #fff;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-drawer-header h5 {
  margin: 0;
  font-weight: 700;
  color: #fff;
}
.close-drawer {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

.mobile-drawer-body {
  overflow-y: auto;
  padding: 10px 0;
}
.mobile-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-cat-list li a {
  display: block;
  padding: 12px 20px;
  color: #333;
  font-weight: 600;
  border-bottom: 1px solid #eee;
  text-decoration: none;
}
.mobile-cat-list li a:hover {
  background: #f8f9fa;
  color: var(--medical-blue);
}

.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 99998;
  display: none;
}
.mobile-drawer-overlay.active {
  display: block;
}

/* --------------------------------------------------------------------------
   6. ÜRÜN KARTI / SEPET & FAVORİ İKON FIXLERI
   -------------------------------------------------------------------------- */
.product-box i,
.product-card i,
.item i,
[class*="product"] i,
[class*="urun"] i {
  display: inline-block !important;
  font-family: 'Line Awesome Free', 'Line Awesome Brands', 'Font Awesome 5 Free' !important;
  font-weight: 900 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.btn-add-cart,
.add-to-cart,
.sepet-ekle-btn,
a[href*="sepet-ekle"],
.btn-wishlist,
a[href*="favori"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: all 0.2s ease-in-out !important;
}

.btn-add-cart i,
.add-to-cart i,
.sepet-ekle-btn i,
a[href*="sepet-ekle"] i {
  font-size: 18px !important;
  color: inherit !important;
}

.btn-wishlist i,
a[href*="favori"] i {
  font-size: 16px !important;
  color: var(--medical-blue) !important;
}

.btn-wishlist:hover i,
a[href*="favori"]:hover i {
  color: var(--medical-dark) !important;
  transform: scale(1.15);
}

.product-actions,
.urun-butonlar,
.action-buttons {
  z-index: 5 !important;
  position: relative !important;
}

/* --------------------------------------------------------------------------
   7. MEDIA QUERIES (RESPONSIVE)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .main-header-red {
    padding: 12px 0 16px 0;
    position: relative;
    z-index: 10;
  }
  .header-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .header-center-logo {
    order: 1;
    width: 100%;
    margin-bottom: 2px;
    position: relative;
    z-index: 101;
    padding: 0 10px;
  }
  .header-center-logo a {
    display: block;
    width: 100%;
    position: relative;
    z-index: 102;
    cursor: pointer;
  }
  .header-center-logo img {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 120px;
    height: auto;
    object-fit: contain;
    pointer-events: none;
  }

  .header-search-col {
    order: 2;
    width: 100%;
    padding: 0 10px;
    position: relative;
    z-index: 101;
  }
  .search-box-custom {
    position: relative;
    z-index: 102;
  }
  .search-box-custom input {
    height: 42px;
    background: #fff;
    font-size: 13px;
    position: relative;
    z-index: 103;
    pointer-events: auto !important;
  }
  .search-box-custom button {
    height: 34px;
    width: 36px;
    top: 4px;
    right: 4px;
    position: absolute;
    z-index: 104;
    cursor: pointer;
    pointer-events: auto !important;
  }

  .header-right-actions {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 0 10px;
    position: relative;
    z-index: 101;
  }
  .action-item {
    flex: 1;
    padding: 8px 10px;
    justify-content: center;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 102;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
  }
  .action-item * {
    pointer-events: none;
  }
}       

@media (max-width: 767px) {
  .top-bar-red {
    text-align: center;
  }
  .top-bar-red .text-right {
    text-align: center !important;
    margin-top: 5px;
  }
  footer.footer-red-custom [class*="col-"] {
    margin-bottom: 25px;
  }
  footer.footer-red-custom [class*="col-"]:last-child {
    margin-bottom: 0;
  }
  .copyright-red {
    text-align: center;
  }
  .copyright-red .text-center, 
  .copyright-red .pull-right {
    float: none !important;
    text-align: center;
    margin-top: 10px;
  }
  .copyright-red img {
    display: inline-block;
    max-width: 100%;
    height: auto;
  }
}
/* ==========================================================================
   MINICART (SAĞ SEPET) ÜRÜN BAŞLIĞI FIX
   ========================================================================== */

/* Sepet içindeki ürün başlık linkinin arka planını temizle ve düzelt */
#sepet .urun_baslik,
#sepet .baslik_link,
#sepet a.baslik,
#sepet div a,
#sepet li a,
#sepet ul li a {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: #0066c0 !important;
  font-weight: 700 !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-block !important;
}

#sepet .urun_baslik:hover,
#sepet div a:hover,
#sepet li a:hover {
  background: transparent !important;
  color: #002244 !important;
  text-decoration: underline !important;
}

/* Sadece en alttaki İşlem Butonlarına Mavi Arka Plan Ver (Başlıkları Hariç Tut) */
#sepet a.btn,
#sepet button.btn,
#sepet .sepet-butonlar a,
#sepet a[href*="sepetim"],
#sepet a[href*="alisveris"] {
  background: #003b73 !important;
  background-color: #003b73 !important;
  color: #ffffff !important;
  padding: 10px 15px !important;
  border-radius: 6px !important;
  display: block !important;
  text-align: center !important;
}

/* Sil Çöp Kutusu İkonunu Kırmızı Tut */
#sepet i.la-trash,
#sepet i.las.la-trash,
#sepet .sil i,
#sepet [data-sepet-sil] {
  color: #dc3545 !important;
  background: transparent !important;
}