/* =========================
   MOBILE OVERRIDE SYSTEM
   ========================= */

@media (max-width: 768px) {

  * {
    box-sizing: border-box;
  }

  body {
    overflow-x: hidden;
  }

  /* GENEL */
  .container,
  .wrapper,
  .content {
    width: 100% !important;
    padding: 0 12px !important;
  }

  img {
    max-width: 100%;
    height: auto;
  }

}
@media (max-width: 768px) {

  .product-grid,
  .products,
  .product-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }

  .product-card {
    width: 100% !important;
  }

}
@media (max-width: 768px) {

  .main-nav {
    display: none !important;
  }

  .hamburger {
    display: block !important;
  }

}
@media (max-width: 768px) {

  [style*="width:"] {
    max-width: 100% !important;
  }

}
/* =========================
   FOOTER – MOBILE
========================= */
@media (max-width: 768px) {

  .footer-nav {
    padding: 35px 0 15px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
  }

  /* Marka */
  .footer-brand strong {
    font-size: 17px;
  }

  .footer-brand span {
    font-size: 12px;
  }

  /* Linkler */
  .footer-links {
    flex-direction: column;
    gap: 14px;
  }

  .footer-links a {
    font-size: 14px;
  }

  /* Sosyal */
  .footer-social {
    gap: 18px;
  }

  .footer-social a {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  /* Alt yazı */
  .footer-bottom {
    font-size: 11px;
    padding-top: 15px;
  }
}
/* Başlangıçta menüyü sağa veya sola gizle */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Menü sağda gizli */
    width: 80%;
    height: 100%;
    background: #fff;
    z-index: 999999;
    transition: 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    padding: 50px 20px;
}

/* JS ile active class'ı gelince menüyü içeri çek [cite: 2026-01-06] */
.mobile-menu.active {
    right: 0;
}
#hamburgerBtn {
    cursor: pointer !important;
    position: relative !important;
    z-index: 999999 !important; /* Her şeyin üstünde olsun */
    pointer-events: auto !important; /* Tıklamayı zorunlu kıl */
}

/* Menü açıldığında her şeyin üstünde göründüğünden emin olalım */
#mobileMenu {
    z-index: 1000000 !important; 
}
.mobile-menu {
  display: none;
}

.mobile-menu.active {
  display: block;
}
/* SEARCH OVERLAY */
.mobile-search-overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 999999;
  display: none;
  flex-direction: column;
}

.mobile-search-overlay.active {
  display: flex;
}

/* HEADER */
.mobile-search-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid #eee;
}

.mobile-search-header input {
  flex: 1;
  height: 44px;
  font-size: 16px;
  padding: 0 12px;
  border: 1px solid #ddd;
  outline: none;
  color: #000;
}

.mobile-search-header button {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #000;
}

/* BODY */
.mobile-search-body {
  padding: 20px;
}

.mobile-search-body p {
  font-size: 14px;
  margin-bottom: 12px;
  color: #000;
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-tags span {
  padding: 8px 14px;
  border: 1px solid #000;
  font-size: 13px;
  cursor: pointer;
  color: #000;
}
.mobile-menu {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 999999;
  transform: translateX(100%);
  transition: transform .35s ease;
}

.mobile-menu.active {
  transform: translateX(0);
}

body.menu-open {
  overflow: hidden;
}
/* === HAMBURGER === */
.hamburger {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #000;
}

/* === MOBILE MENU === */
.mobile-menu {
  position: fixed;
  right: 0 !important;
  left: auto !important;
  top: 0 !important;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background: #fff;
  z-index: 9999999;

  transform: translateX(100%);
  transition: transform 0.35s ease;

  display: flex;
  flex-direction: column;
  padding: 20px;

  box-shadow: -15px 0 40px rgba(0,0,0,0.25);
}

.mobile-menu.active {
  transform: translateX(0);
}

body.menu-open {
  overflow: hidden;
}

/* === HEADER === */
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.mobile-menu-header .logo {
  font-size: 20px;
  font-weight: 700;
  color: #000;
}

#closeMenu {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #000;
}

/* === LINKS === */
.mobile-menu-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-links li {
  margin-bottom: 6px;
}

.mobile-menu-links a,
.submenu-title {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  font-size: 16px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  border-radius: 12px;
}

.mobile-menu-links a i,
.submenu-title i {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

/* Hover / tap */
.mobile-menu-links a:active,
.submenu-title:active {
  background: #f3f3f3;
}

/* === SUBMENU === */
.submenu {
  margin-top: 6px;
}

.submenu-title {
  cursor: pointer;
}

.submenu-links {
  padding-left: 38px;
  display: none;
  flex-direction: column;
}

.submenu-links a {
  font-size: 14px;
  padding: 10px 0;
  color: #000;
}

.submenu.active .submenu-links {
  display: flex;
}
body.menu-open {
  overflow: hidden;
}
/* Senin CSS'in */
.notif-dot {
  position: absolute;
  top: -2px;
  right: -10px;
  width: 8px;
  height: 8px;
  background-color: red;
  border-radius: 50%;
  display: none; /* JS ile açılacak */
}
/* Bu kod her şeyi ezer geçer (Force Override) */
@media (max-width: 768px) {
    /* 1. Çekmeceyi ekranın tam ortasına veya yanına %100 daya */
    .cart-drawer-content {
        width: 100vw !important; /* Ekran genişliği neyse o! */
        min-width: 100vw !important;
        max-width: 100vw !important;
        right: 0 !important;
        left: 0 !important;
        height: 100vh !important;
        position: fixed !important;
        border-radius: 0 !important; /* Mobilde köşe yumuşatmayı boşver tam kaplasın */
    }

    /* 2. İçindeki elemanların taşmasını engelle */
    .cart-drawer-items {
        width: 100% !important;
        padding: 10px !important;
        box-sizing: border-box !important; /* Padding genişliği bozmasın */
    }

    /* 3. Eğer ürün isimleri sığmıyorsa diye */
    .cart-item {
        display: flex !important;
        width: 100% !important;
        box-sizing: border-box !important;
        gap: 10px !important;
    }

    /* 4. Alt kısımdaki ödeme butonunu ve toplamı sabitle */
    .cart-drawer-footer {
        width: 100% !important;
        box-sizing: border-box !important;
        position: absolute;
        bottom: 0;
        left: 0;
    }
}
/* Yan menü kapalıyken overlay tıklamayı engellemesin */
    .cart-drawer-overlay {
      pointer-events: none;
    }

    /* Yan menü açıldığında (active class'ı varsa) overlay çalışsın */
    .cart-drawer.active .cart-drawer-overlay {
      pointer-events: auto;
    }
    .footer-payment-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid rgba(0,0,0,0.05); /* Üstten ince bir çizgi */
    margin-top: 20px;
}

.payment-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.payment-logo {
    height: 22px; /* Logoları çok devasa yapma, zarif dursun */
    width: auto;
    filter: grayscale(1); /* Siyah beyaz/gri tonlama */
    opacity: 0.5;
    transition: all 0.3s ease;
}

.payment-logo:hover {
    filter: grayscale(0); /* Mouse ile gelince renkli olsun */
    opacity: 1;
}

.payment-logo.iyzico {
    height: 28px; /* iyzico biraz daha belirgin olsun */
}

@media (max-width: 600px) {
    .payment-logo {
        height: 18px; /* Mobilde daha kibar dursun */
    }
}
.sub-dropdown {
    position: relative; /* Sağdaki menünün buna göre hizalanması için */
}

.sub-menu-content {
    display: none; /* Başta gizli */
    position: absolute;
    top: 0;
    left: 100%; /* Tam olarak ana menünün sağında başlar */
    background: #fff;
    min-width: 200px;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    border-left: 1px solid #f0f0f0;
    padding: 10px 0;
    z-index: 1000;
}

/* iPhone 11 satırına gelince sağdaki menüyü göster */
.sub-dropdown:hover .sub-menu-content {
    display: block;
}

/* Ok işaretini sağa yasla */
.sub-link {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}

.sub-menu-content a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.sub-menu-content a:hover {
    background-color: #f8f8f8;
    color: #000;
}
.track-modal {
    display: none; 
    position: fixed;
    z-index: 99999; /* En üstte durması için */
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px); /* Arkadaki siteyi hafif bulanıklaştırır, çok modern durur */
}

/* Modal Kutusu */
.track-modal-content {
    background-color: #fff;
    margin: 15vh auto;
    padding: 40px 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 380px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.close-track {
    position: absolute;
    right: 15px; top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.track-form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.track-form-group input {
    padding: 15px;
    border: 1px solid #eee;
    background: #f8f8f8;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    text-align: center;
}

.track-form-group button {
    padding: 15px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 1px;
    transition: 0.3s;
}

.track-form-group button:hover {
    background: #333;
}
.notif-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    border: 2px solid #fff;
}

