/* 
   FILE CSS TỔNG HỢP CÁC FIX CHO MOBILE & MENU
   Dành cho dự án hkhsolutions.com.vn
*/

/* 1. STICKY NAVBAR FIX (Màu trắng khi cuộn) */
.sticky {
    position: fixed !important;
    left: 0 !important;
    width: 100% !important;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.9s !important;
}

/* 2. NAVBAR & LOGO ALIGNMENT (Mobile 50px) */
@media (max-width: 991px) {
    html, body {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 50px !important;
        line-height: 50px !important;
        z-index: 10000 !important;
        background: #fff !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        padding: 0 !important;
        margin: 0 !important;
    }
    .navbar .container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: 50px !important;
        padding: 0 15px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }
    .navbar .logo {
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
        height: 50px !important;
    }
    .navbar .logo img {
        max-height: 30px !important;
        width: auto !important;
    }
    .hamburger-menu {
        position: static !important;
        margin: 0 !important;
        z-index: 100003 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        touch-action: manipulation !important;
    }
    .navbar .site-menu, .navbar .navbar-button {
        display: none !important;
    }
    .side-widget.active {
        left: 0 !important;
        width: 100vw !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 100004 !important;
    }
}

/* 3. SIDE WIDGET / MOBILE MENU PANEL */
.sp-split-row {
    display: flex !important;
    align-items: center;
    height: 46px !important;
    width: 100% !important;
}
.sp-split-row a.sp-name {
    flex: 1;
    display: flex;
    align-items: center;
    height: 46px;
    padding: 0 0 0 16px;
    color: #333 !important;
    font-size: 18px;
    text-decoration: none;
}
.sp-split-row a.sp-name:hover {
    color: #1590ca !important;
}
.sp-split-row button.sp-open-btn {
    flex-shrink: 0;
    height: 46px;
    width: 44px;
    background: none;
    border: none;
    border-left: 1px solid #f0f0f0;
    cursor: pointer;
    color: #bbb;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sp-split-row button.sp-open-btn:hover {
    color: #1590ca;
    background: #fff5f5;
}
.side-widget .show-mobile,
.side-widget .show-mobile .sp-panels,
.side-widget .show-mobile .sp-panel,
.side-widget .show-mobile .sp-list {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.sp-panels {
    position: relative;
    overflow: hidden;
}
.sp-panel {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    min-height: 100px;
}
.sp-panel.sp-active {
    position: relative !important;
    transform: translateX(0);
}
.sp-panel.sp-behind {
    transform: translateX(-30%);
}
.sp-panel-header {
    background: none !important;
    color: #222 !important;
    display: flex !important;
    align-items: center;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    margin: 0 !important;
    border-bottom: 2px solid #1590ca;
}
.sp-back-btn {
    background: none;
    border: none;
    color: #1590ca !important;
    font-size: 22px;
    cursor: pointer;
    padding: 0 10px 0 0;
    line-height: 1;
    font-weight: 700;
}
.sp-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.sp-list li {
    display: block !important;
    width: 100% !important;
    height: 46px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}
.sp-list li a, .sp-list li .sp-row {
    display: flex !important;
    align-items: center;
    height: 46px !important;
    width: 100% !important;
    padding: 0 16px !important;
    color: #333 !important;
    font-size: 18px;
    text-decoration: none;
    cursor: pointer;
}
.sp-list li a:hover {
    color: #1590ca !important;
    background: #fff5f5 !important;
}

/* 4. ĐỐI TÁC (SWIPER DOITAC) */
.swiper-doitac .swiper-slide {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 140px !important;
}
.swiper-doitac .logo-inner {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.swiper-doitac .marka {
    display: block;
    max-height: 100px !important;
    width: auto !important;
    max-width: 90% !important;
    object-fit: contain !important;
}
@media (max-width: 767px) {
    .swiper-doitac .swiper-slide {
        height: 100px !important;
    }
    .swiper-doitac .marka {
        max-height: 85px !important;
    }
}

/* 5. DESKTOP NAVBAR FIXES (Media queries từ header) */
@media (max-width: 1500px) and (min-width: 1200px) {
    .navbar .site-menu ul li a {
        padding-left: 8px !important;
        padding-right: 8px !important;
        font-size: 14px !important;
    }
    .navbar-button .btn-1 { padding: 0 10px !important; }
    .navbar-button .btn-1 p.asdas { font-size: 13px !important; }
    .navbar .logo img { max-height: 55px !important; }
}
@media (max-width: 1199px) and (min-width: 992px) {
    .navbar .site-menu ul li a {
        padding-left: 4px !important;
        padding-right: 4px !important;
        font-size: 13px !important;
    }
    .navbar .logo img { max-height: 40px !important; }
    .navbar-button .btn-1 { padding: 0 5px !important; }
    .navbar-button .btn-1 p.asdas { font-size: 11px !important; }
}
@media (max-width: 1050px) and (min-width: 992px) {
    .navbar .site-menu ul li a {
        padding-left: 3px !important;
        padding-right: 3px !important;
        font-size: 12px !important;
    }
    .navbar-button { margin-left: 5px !important; }
}
@media (min-width: 992px) {
    .navbar .container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }
    .navbar .site-menu {
        flex: 1;
        display: flex;
        justify-content: flex-end;
        margin-right: 10px;
    }
    .navbar .site-menu ul {
        display: flex !important;
        flex-direction: row !important;
    }
}
