.container, .container-lg {
    max-width: 1440px;
}

.text-000 {
    font-weight: 600;
}
.thumb-cover img {
    bottom: 0;
    object-position: top right;
}
html {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;
}
.phoneQuickSpCustom {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(31, 27, 86, 0.7); 
    
    animation: phone-ripple 1.6s infinite ease-in-out;
    transition: all 0.3s ease;
}

.phoneQuickSpCustom::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(31, 27, 86, 0.4);
    animation: phone-ripple-delayed 1.6s infinite ease-in-out;
}

.phoneQuickSpCustom:hover {
    transform: scale(1.05);
    background-color: #15123a; 
}

.phoneQuickSpCustom:hover {
    background: #fff !important;
}

@keyframes phone-ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(31, 27, 86, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(31, 27, 86, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(31, 27, 86, 0);
    }
}

@keyframes phone-ripple-delayed {
    0% {
        box-shadow: 0 0 0 0 rgba(31, 27, 86, 0.4);
    }
    70% {
        box-shadow: 0 0 0 25px rgba(31, 27, 86, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(31, 27, 86, 0);
    }
}
.has-submenu-custom {
    position: relative; 
}

.sub-menu-custom {
    position: absolute;
    top: 60px;    
    width: max-content;  
    z-index: 999;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    padding: 20px;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px); 
    transition: all 0.3s ease;
}

.has-submenu-custom:hover > .sub-menu-custom {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu-custom a {
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.sub-menu-custom::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: transparent;
}

.title-menu-custom a {
    position: relative;
    text-decoration: none;
    padding-bottom: 2px; 
}

.title-menu-custom a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0; 
    height: 2px;
    background-color: #F1C40F;
    transition: width 0.3s ease-in-out;
}
.has-submenu-custom:hover .title-menu-custom a::after {
    width: 100%;
}

.has-submenu-custom:hover .title-menu-custom a {
    color: #F1C40F !important;
}

.submenu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}
.submenu-grid >div {
    width: 100%;
}

.main-menu > .has-submenu-custom:nth-last-child(-n+5) .sub-menu-custom {
    left: auto; 
    right: 0;  
}

.title-menu-custom img {
    margin-right: 3px;
}
.title-menu-custom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.phoneQuickSpCustom {
    cursor: pointer;
    display: inline-block;
}

.hotline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.overlay-close-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1;
}

.hotline-popup-content {
    position: relative;
    background-color: #ffffff;
    width: 90%;
    max-width: 650px;
    padding: 30px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    z-index: 2;
    transform: scale(0.8);
    transition: transform 0.3s ease-in-out;
}

.hotline-popup-checkbox:checked ~ .hotline-overlay {
    opacity: 1;
    visibility: visible;
}
.hotline-popup-checkbox:checked ~ .hotline-overlay .hotline-popup-content {
    transform: scale(1);
}

.popup-close-btn {
    position: absolute;
    top: 5px;
    right: 18px;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
    font-weight: bold;
    color: #000;
}
.popup-close-btn:hover {
    color: #333333;
}

.popup-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #000000;
}

.popup-meta-info {
    font-size: 14px;
    color: #333333;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.popup-grid-regions {
    display: grid;
    grid-template-columns: 1fr 1fr; 
}

.region-box:first-child {
    border-right: 1px solid #eeeeee;
    padding-right: 15px;
}

.region-title {
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: #000000;
}

.phone-row-item {
    text-align: center;
    margin-bottom: 20px;
}
.phone-row-item:last-child {
    margin-bottom: 0;
}

.phone-number {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #000000;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 4px;
    width: 105px;
    transition: opacity 0.2s;
}
.btn-action:hover {
    opacity: 0.85;
}

.btn-call {
    background-color: #00cc11;
}
.btn-zalo {
    background-color: #007bff; 
}

.map-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.map-popup-overlay.active {
    display: flex;
}

.map-popup-content {
    background-color: #ffffff;
    width: 100%;
    max-width: 1100px; 
    border-radius: 16px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    padding: 30px;
    box-sizing: border-box;
    animation: mapFadeIn 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.shop-title {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: #1f1b56;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 2px solid #1f1b56; 
    display: inline-block;
}

.map-popup-body {
    display: flex;
    gap: 30px;
}

.popup-column-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f9fafb; 
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #f3f4f6;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 15px;
    color: #000;
    line-height: 1.5;
}
.info-item .icon-location {
    margin-right: 8px;
    font-size: 1.1rem;
}
.info-item p {
    margin: 0;
}
.info-item strong {
    color: #1f1b56; 
}

.map-wrapper {
    width: 100%;
    height: 280px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 0 1px rgba(0,0,0,0.2);
}
.map-wrapper iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
}

.map-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: #4b5563;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.map-close-btn:hover {
    background-color: #1f1b56;
    color: #ffffff;
    transform: rotate(90deg); 
}

.view-product-smart {
    z-index: 1;
}

.tool-fb,
.tool-zalo {
    display: flex; 
    align-items: center; 
    justify-content: center;
}

@keyframes mapFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 1440px) {
    .container, .container-lg {
       width: 95%;
    }
}
@media (max-width: 992px) {
    .glide__slide picture img {
        aspect-ratio: auto !important; 
        padding-top: 0 !important;
        height: auto !important; 
    }
    .map-popup-content {
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }
    .map-popup-body {
        flex-direction: column; 
        gap: 20px;
    }
    .shop-title {
        font-size: 1rem;
        margin-bottom: 15px;
        max-width: 85%;
    }

    .map-wrapper {
        height: 140px;
    }

    .page-item, .pagination {
        display: flex;
        gap: 3px;
        justify-content: center;
    }
}
@media (max-width: 767px) {
    .container, .container-lg {
       width: 100%;
    }
    .popup-grid-regions {
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    .region-box:first-child {
        border-right: none;
        border-bottom: 1px solid #eeeeee;
        padding-right: 0;
        padding-bottom: 20px;
    }
    .hotline-popup-content {
        padding: 20px 15px;
    }

    .map-trigger-btn,
    .tool-fb,
    .tool-zalo,
    .tool-mess {
        display: none;
    }

    .custom-tool-mb { 
        left: 5%;
        right: auto;
        bottom: 0% !important;
    }

    .has-submenu:has(input:checked)>.sub-menu.main-menu {
        margin-top: 13px;
    }

    .has-submenu:has(input:checked)>.sub-menu.sub-menu-custom-left {
        text-align: left;
        padding-left: 20px;
        box-shadow: none;
        padding-top: 3px;
    }

    .icon-close.fs-30 {
        font-size: 21px;
    }
    #modalCompareProduct .container.showContent.pe-25 {
        padding-right: 5px;
    }

    .cart-title {
        line-height: 20px;
    }

    .custom-bl {
        padding: 0;
    }

    .btn-action {
        width: 45%;
    }
}

@media screen and (min-width: 992px) {
    .image-baohanh {
        width: 100%;
    }
    .product-item-thumb {
        height: 190px;
    }

    .text-center .rounded-10.bg-1F1B56.text-fff.py-10.px-30.home-cat-view-all.text-A9A9A9-hover:hover {
        background: #cfcfcf!important;
        color: #1f1b56 !important;
    }
    
}