/* --- DESKTOP VƏ MOBİL NAVİQASİYA BADGE-LƏRİ --- */
/* Desktop Header-dəki Badge */
.header-icons .cart.icon-btn {
    position: relative !important;
}

.header-icons .cart.icon-btn .cart-count {
    background-color: #CE261B !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    font-family: Poppins, sans-serif !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    min-width: 20px !important;
    height: 20px !important;
    padding: 0 4px !important;
    line-height: 20px !important;
    text-align: center !important;
    box-sizing: border-box !important;
    position: absolute !important;
    top: -8px !important;
    right: -10px !important;
    z-index: 10 !important;
    display: inline-block !important;
}

.header-icons .cart.icon-btn .cart-count.double-digit,
.header-icons .cart.icon-btn .cart-count.triple-digit {
    width: auto !important;
}

/* Mobil Alt Menyudakı Badge */
.bottom-nav a.nav-item span.mobile-cart-badge {
    display: flex !important;
    background: #CE261B !important;
    color: white !important;
    border-radius: 50% !important;
    font-family: Poppins, sans-serif !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    width: 20px !important;
    height: 20px !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 4px !important;
    right: 18px !important;
    z-index: 10 !important;
}

/* ======================================================= */
/* MOBİL NAVİQASİYA MENYUSUNUN ƏSAS STİLLƏRİ */
/* ======================================================= */

.bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 70px !important;
    background: #2d2d2d !important;
    display: none;
    /* Mobil ölçüdə aşağıdakı kod bunu 'flex' edəcək */
    align-items: center !important;
    z-index: 1000 !important;
}

.nav-item {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: #b8b8b8 !important;
    padding: 8px 5px !important;
    height: 100% !important;
    font-family: 'Poppins', sans-serif !important;
    position: relative !important;
}

.bottom-nav button.nav-item {
    border: 0 !important;
    background: transparent !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.nav-item.active,
.nav-item:hover {
    color: #ffffff !important;
}

.nav-item i {
    font-size: 24px !important;
    margin-bottom: 4px !important;
}

.nav-item span {
    font-size: 12px !important;
    font-weight: 700 !important;
}

/* Bu kod menyunun yalnız mobil cihazlarda görünməsini təmin edir */
@media (max-width: 767px) {
    .bottom-nav {
        display: flex !important;
    }

    /* Padding footer.php-də footer-in özünə verildi */
}

/* Cart badge: 0 və ya boş olduqda tam gizlət */
.cart-count.hidden,
.cart-count:empty {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Tablet only: 768px - 1024px */
@media (min-width: 768px) and (max-width: 1366px) and (hover: none) and (pointer: coarse) {
    .bottom-nav {
        display: flex !important;
        /* mobilda necədirsə elə qalır */
        align-items: center !important;
        /* mərkəzləmə */
        justify-content: space-around !important;
        /* ikonlar bərabər paylansın */
    }

    /* Padding footer.php-də footer-in özünə verildi */
}

/* Tablet-only HDD nav item */
.nav-item-hdd {
    display: none !important;
}

@media (min-width: 768px) and (max-width: 1366px) and (hover: none) and (pointer: coarse) {
    .nav-item-hdd {
        display: flex !important;
    }

    .nav-item-hdd span {
        display: block !important;
    }

    .nav-item-hdd i {
        margin-bottom: 4px !important;
    }
}


/* Tablet: faydali bottom-nav item silinir, drawer-a keçir */
.nav-item-faydali {
    display: none !important;
}

/* Tablet-only More trigger */
.nav-item-more {
    display: none !important;
}

@media (min-width: 768px) and (max-width: 1366px) and (hover: none) and (pointer: coarse) {
    .nav-item-more {
        display: flex !important;
        order: 99 !important;
    }

    .nav-item-more span {
        display: block !important;
        white-space: nowrap !important;
    }

    .nav-item-more i {
        margin-bottom: 4px !important;
    }

    .bottom-nav .nav-item {
        padding: 7px 3px !important;
    }

    .bottom-nav .nav-item span {
        font-size: 11px !important;
    }

    .bottom-nav .nav-item i {
        font-size: 22px !important;
    }
}
