/* ============================
   🔹 GENEL CSS (Buraya istediğinde ekleme yapabilirsin)
   ============================ */

/* Masaüstü sepet yanındaki rozet */
.cart-badge-desktop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--theme-color);
    color: #fff;
    font-size: 11px;
    padding: 0 4px;
}


/* ============================
   🔹 MOBİL HEADER
   ============================ */
.mobile-header {
    display: none;
}

@media (max-width: 991.98px) {
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 16px;
        background-color: #ffffff;
        position: sticky;
        top: 0;
        z-index: 1001;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

    .mobile-header__menu-btn {
        position: absolute;
        left: 16px;
        border: none;
        background: transparent;
        padding: 6px 8px;
        cursor: pointer;
    }

    .mobile-header__menu-icon,
    .mobile-header__menu-icon::before,
    .mobile-header__menu-icon::after {
        display: block;
        width: 24px;
        height: 3px;
        border-radius: 999px;
        background: #444;
        content: "";
        position: relative;
        transition: 0.2s;
    }

    .mobile-header__menu-icon::before {
        top: -7px;
        position: absolute;
    }

    .mobile-header__menu-icon::after {
        top: 7px;
        position: absolute;
    }

    .mobile-header__logo img {
        max-height: 42px;
        width: auto;
    }

    .mobile-header__logo-text {
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        font-size: 20px;
        color: #6b3b24;
        text-decoration: none;
    }

    /* Sağ taraftaki sepet + üye ikonları */
    .mobile-header__actions {
        position: absolute;
        right: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mobile-header__icon-btn {
        position: relative; /* badge için */
        width: 36px;
        height: 36px;
        border-radius: 999px;
        border: 1px solid rgba(255, 102, 170, 0.35); /* tasarımla uyumlu pembe hat */
        background: #fff7fb;                          /* çok hafif pembe arka plan */
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        text-decoration: none;
        box-shadow: 0 2px 6px rgba(255, 102, 170, 0.25);
    }

    .mobile-header__icon {
        width: 20px;
        height: 20px;
        fill: var(--theme-color); /* sitenin ana rengiyle uyumlu */
    }

    /* Mobil sepet rozeti */
    .cart-badge-mobile {
        position: absolute;
        top: -4px;
        right: -4px;
        min-width: 16px;
        height: 16px;
        border-radius: 999px;
        background: var(--theme-color);
        color: #fff;
        font-size: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 3px;
        border: 1px solid #fff;
    }

    /* Masaüstü nav’ı mobilde gizle */
    .desktop-nav {
        display: none !important;
    }
}


/* ============================
   🔹 MOBİL MENÜ OVERLAY
   ============================ */
@media (max-width: 991.98px) {
    .mobile-menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        display: none;
        z-index: 1000;
    }

    .mobile-menu-overlay.is-open {
        display: block;
    }

    .mobile-menu-panel {
        width: 78%;
        max-width: 320px;
        height: 100%;
        background: #ffffff;
        padding: 18px;
        box-shadow: 4px 0 20px rgba(0,0,0,0.2);
        overflow-y: auto;
    }

    .mobile-menu-panel__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
    }

    .mobile-menu-title {
        font-weight: 600;
        font-size: 18px;
    }

    .mobile-menu-close {
        border: none;
        background: transparent;
        font-size: 28px;
        line-height: 1;
        cursor: pointer;
    }

    .mobile-menu-list,
    .mobile-submenu {
        list-style: none;
        padding-left: 0;
        margin: 0;
    }

    .mobile-menu-item {
        border-bottom: 1px solid #f1f1f1;
        padding: 8px 0;
    }

    .mobile-menu-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-decoration: none;
        color: #333;
        font-size: 15px;
        padding: 6px 0;
    }

    .mobile-submenu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
        padding-left: 10px;
    }

    .mobile-submenu.is-open {
        max-height: 500px;
    }

    .mobile-submenu-item .mobile-menu-link {
        font-size: 14px;
    }
}
/* ============================
   ✅ MOBİL SLIDER GÖRSELİ KIRPILMA FIX
   (Mobilde yarım görünme -> object-fit: contain)
   ============================ */
@media (max-width: 768px) {

    /* Senin sitede slider farklı class isimleriyle gelebilir.
       Bu yüzden yaygın slider selector'larını güvenli şekilde kapsıyoruz. */

    .hero-slider img,
    .hero img,
    .banner img,
    .slider img,
    .carousel-item img,
    .carousel-inner img,
    .swiper img,
    .swiper-slide img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        display: block;
    }

    /* Eğer slider dış kapsayıcısı sabit height + overflow hidden ile kırpıyorsa,
       mobilde kırpmayı azaltmak için overflow'u görünür yapıyoruz (güvenli). */
    .hero-slider,
    .hero,
    .banner,
    .slider,
    .carousel-item,
    .carousel-inner,
    .swiper,
    .swiper-slide {
        overflow: visible;
    }
}
