/* =========================================
   MOBILE STICKY FOOTER - 08.05.26
========================================= */

.mobile-sticky-footer {
    display: none;
}

@media (max-width: 340px) {

    body {
        padding-bottom: calc(100rem + env(safe-area-inset-bottom)) !important;
    }
    .mobile-sticky-item {
        padding: 6px 6px 0px 6px !important;
    }
}

@media (max-width: 767px) {

    body {
        padding-bottom: calc(100rem + env(safe-area-inset-bottom)) !important;
    }

    .mobile-sticky-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 10000;
        display: flex;
        align-items: stretch;
        background: #a6c76c;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.12);
    }

    .mobile-sticky-item {
        flex: 1;
        border: 0;
        background: transparent;

        color: #fff !important;
        text-align: center;
        text-decoration: none !important;

        padding: 10px 6px;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        min-height: 60px;
    }

    .mobile-sticky-item:not(:last-child) {
        border-right: 1px solid rgba(255,255,255,0.15);
    }

    .mobile-sticky-title {
        font-size: 13px;
        font-weight: 600;
        line-height: 1.2;
        margin-bottom: 4px;
    }

    .mobile-sticky-phone {
        font-size: 13px;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .mobile-sticky-phone i {
        font-size: 12px;
    }

    .mobile-toggle-btn {
        cursor: pointer;
    }

    .mobile-sticky-arrow i {
        font-size: 12px;
        display: inline-block;
        transition: transform 0.3s ease;
    }

    /* CONTENT COLLAPSE */
    .mobile-footer-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .mobile-footer-content.active {
        max-height: 3000px;
    }

    .mobile-footer-content.active + .footer-bottom {
        display: block;
    }

    .footer-bottom {
        display: none;
    }

    .mobile-footer-content.active ~ .footer-bottom {
        display: block;
    }

    /* XOAY ICON */
    .mobile-toggle-btn.active .mobile-sticky-arrow i {
        transform: rotate(180deg);
    }

    /* MOBILE FOOTER STYLE */
    .footer-middle {
        padding-bottom: 20px;
    }

    .footer .widget {
        margin-bottom: 20px;
    }

    .footer .widget-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .footer .widget-list li {
        margin-bottom: 8px;
    }

    .footer .widget-list a {
        font-size: 14px;
    }

    .footer-logo {
        max-width: 180px;
    }
}


/* ===== CATEGORY DROPDOWN ===== */

.mobile-category-dropdown {
    position: relative;
}

.mobile-category-toggle {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Rotate arrow */
.mobile-category-toggle.active .icon-angle-up {
    transform: rotate(180deg);
}

.mobile-category-toggle .icon-angle-up {
    transition: 0.3s;
}

/* Dropdown */
.mobile-category-menu {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);

    min-width: 180px;

    background: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);

    padding: 8px 0;

    opacity: 0;
    visibility: hidden;

    transition: 0.25s;

    margin-bottom: 0px;

    z-index: 9999;
}

/* Show */
.mobile-category-menu.active {
    opacity: 1;
    visibility: visible;
}

/* Item */
.mobile-category-link {
    display: block;
    padding: 10px 10px;
    color: #409eff !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.mobile-category-link:hover {
    background: #f5f5f5;
    color: #ff3860 !important;
}

/* Text Tip */
.mobile-category-link a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.tip-all-cat {
    font-size: 8px;
    background: #8bc34a;
    color: #fff;
    padding: 1px 2px;
    border-radius: 4px;
    line-height: 1.2;
}