/* Nội dung ngắn dưới giá sản phẩm chi tiết */
.short-desc-product {
    background: #f8f8f8;
    border-left: 4px solid #ff6600;
    margin: 10px 0 0 0;
    padding: 0px 0px 15px 15px;
    font-size: 14px;
    color: #333;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    
    width: 100%;
    float: left;
}
.chitiet .short-desc-product ul {

    margin: unset;
    float: unset;
    padding: unset;
   

}
.chitiet .short-desc-product ul li{
    width:100%;
     border-bottom:unset;
}
/* CSS cho nút gọi điện ở góc trái màn hình */
.fixed-call-button {
    position: fixed;
    z-index: 999;
}

/* Nút đặt hàng trên trang chi tiết sản phẩm */
a.datmua {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff9d00, #ff4d00);
    color: #fff !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(255, 77, 0, 0.32);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    border: none;
    cursor: pointer;
}

a.datmua span {
    font-size: 14px;
    line-height: 1;
}

a.datmua i {
    font-size: 16px;
}

a.datmua::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.4), transparent 65%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

a.datmua:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 14px 28px rgba(255, 77, 0, 0.38);
    background: linear-gradient(135deg, #ffb347, #ff5722);
}

a.datmua:hover::after {
    opacity: 1;
}

a.datmua:active {
    transform: translateY(1px) scale(0.99);
    box-shadow: 0 6px 16px rgba(255, 77, 0, 0.32);
}

@media (max-width: 768px) {
    a.datmua {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
        font-size: 14px;
        gap: 7px;
    }

    a.datmua span {
        font-size: 14px;
    }

    a.datmua i {
        font-size: 18px;
    }
    .shoppingCart{
        list-style-type: none;
        width: 115px;
    }
}

@media (max-width: 480px) {
    a.datmua {
        padding: 10px 10px;
        gap: 6px;
    }

    a.datmua i {
        font-size: 17px;
    }

    a.datmua span {
        font-size: 13.5px;
    }
}

.fixed-zalo-button {
    position: fixed;
    z-index: 999;
}

.fixed-map-button {
    position: fixed;
    z-index: 999;
}

.fixed-cart-button {
    position: fixed;
    z-index: 999;
}

/* Cart button - top nhất */
#fixed-cart-button {
    bottom: 520px;
    left: 30px;
}

#fixed-cart-button-mobile {
    display: none;
}

/* Zalo HCM - top nhất */
#fixed-zalo-button-hcm {
    bottom: 80px;
    right: 30px;
    left: auto;
}

/* Zalo HN */
#fixed-zalo-button-hn {
    bottom: 15px;
    right: 30px;
    left: auto;
}

/* Call HCM */
#fixed-call-button-hcm {
    bottom: 280px;
    right: 30px;
    left: auto;
}

/* Call HN */
#fixed-call-button-hn {
    bottom: 200px;
    right: 30px;
    left: auto;
}

/* Nút Google Maps HCM */
#fixed-map-button-hcm {
    bottom: 120px;
    right: 30px;
    left: auto;
}

/* Nút Google Maps HN - dưới cùng */
#fixed-map-button-hn {
    bottom: 40px;
    right: 30px;
    left: auto;
}

.fixed-call-button a, .fixed-zalo-button a {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    text-decoration: none;
    cursor: pointer;
}
 .fixed-cart-button a {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    text-decoration: none;
    cursor: pointer;
}
.fixed-map-button a {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    text-decoration: none;
    cursor: pointer;
}

.call-button-circle, .zalo-button-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
 /* .cart-button-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
} */

.map-button-circle {
    width: 45px;
    height: 45px;
   
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Specific size for Zalo */
.zalo-button-circle {
    width: 40px;
    height: 40px;
}

.call-button-circle {
    background: #cc0000;
}

/* .cart-button-circle {
    background: #1ea362;
} */

/* Style for cart count badge */
.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff0000;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}



.zalo-button-circle:before {
    animation: none;
}

.call-button-circle:before {
    border: 3px solid #28a745;
}

.zalo-button-circle:before {
    border: 3px solid #0068ff;
    animation: none;
}


.zalo-button-circle:after {
    border: 3px solid #0068ff;
    animation: none;
}

.call-button-circle i, .zalo-button-circle i {
    font-size: 24px;
    color: white;
   
}
 .cart-button-circle i {
    font-size: 24px;
    color: white;
   
}
.map-button-circle i {
    font-size: 24px;
    color: white;
    animation: shake 2s ease infinite;
}

/* Style for Zalo icon image */
.zalo-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    animation: none;
    display: block;
}

.call-button-text, .zalo-button-text {
    padding: 5px 15px;
    border-radius: 30px;
    margin-right: 10px;
    margin-left: 0;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    white-space: nowrap;
    color: white;
    text-align: center;
}

.map-button-text {
    padding: 7px 15px;
    border-radius: 30px;
    margin-right: 10px;
    margin-left: 0;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    color: white;
    background: #1ea362;
}

.call-button-text {
    background: #cc0000;
    box-shadow: 0px 5px 15px rgba(33,136,56,0.3);
}

.zalo-button-text {
    background: #0057d5;
    box-shadow: 0px 5px 15px rgba(0,87,213,0.3);
}

.cart-button-text {
    font-size: 16px;
}

.fixed-call-button a:hover .call-button-text {
    background: #bd2130;
    transform: translateY(-2px);
    box-shadow: 0px 8px 20px rgba(30,126,52,0.4);
}

.fixed-zalo-button a:hover .zalo-button-text {
    background: #004ec2;
    transform: translateY(-2px);
    box-shadow: 0px 8px 20px rgba(0,78,194,0.4);
}


.fixed-map-button a:hover .map-button-text {
    background: #bd2130;
    transform: translateY(-2px);
    box-shadow: 0px 8px 20px rgba(189,33,48,0.4);
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    20%, 40% { transform: rotate(-10deg); }
    30%, 50% { transform: rotate(10deg); }
    45% { transform: rotate(-5deg); }
    55% { transform: rotate(5deg); }
    60% { transform: rotate(0deg); }
}

@keyframes ripple {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Ẩn trên mobile - nhưng giữ lại cart button */
@media (max-width: 1025px) {
    .fixed-call-button, .fixed-zalo-button, .fixed-map-button {
        display: none;
    }

    #fixed-cart-button {
        display: none;
    }

    #fixed-cart-button-mobile {
        display: flex;
        align-items: center;
        bottom: 80px;
        right: 15px;
        left: auto;
        gap: 8px;
    }

    #fixed-cart-button-mobile .cart-button-circle {
        width: 45px;
        height: 45px;
    }

    #fixed-cart-button-mobile .cart-button-circle i {
        font-size: 20px;
    }


    #fixed-cart-button .cart-button-circle {
        width: 40px;
        height: 40px;
    }

    #fixed-cart-button .cart-button-circle i {
        font-size: 16px;
    }

    #fixed-cart-button .cart-button-text {
        display: none;
    }

    .cart-count {
        top: -6px;
        right: -6px;
        width: 18px;
        height: 18px;
        font-size: 10px;
        font-weight: bold;
        border: none;
    }
}

/* Responsive cho tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    #fixed-cart-button-mobile {
        bottom: 90px;
        right: 20px;
    }
}

/* Responsive cho mobile nhỏ */
@media (max-width: 480px) {
    #fixed-cart-button-mobile {
        bottom: 60px;
        left: 10px;
    }

    #fixed-cart-button-mobile .cart-button-circle {
        width: 40px;
        height: 40px;
    }

    #fixed-cart-button-mobile .cart-button-circle i {
        font-size: 18px;
    }

    #fixed-cart-button-mobile .cart-button-text {
        font-size: 13px;
        padding: 6px 14px;
    }

    .cart-count {
        width: 16px;
        height: 16px;
        font-size: 9px;
        top: -5px;
        right: -5px;
        border: none;
    }
}

/* Đảm bảo cart button luôn clickable */
.fixed-cart-button {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.fixed-cart-button a {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.cart-count-inline {
    color: #fd0002;
    font-weight: 700;
}

/* Bộ lọc tìm kiếm sản phẩm trên trang danh mục */
.tim-kiem-sanpham {
    flex: 1 1 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 10px 15px 12px;
}

.tim-kiem-sanpham .tk-o {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 170px;
    flex: 1 1 170px;
    min-width: 0;
    height: 34px;
    margin: 0 8px 8px 0;
    padding: 0 8px;
    color: #666;
    font-size: 13px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 2px;
    box-sizing: border-box;
}

.tim-kiem-sanpham .tk-o-rong {
    -ms-flex: 2 1 260px;
    flex: 2 1 260px;
}

.tim-kiem-sanpham .tk-o:focus {
    outline: none;
    border-color: #e08011;
}

/* Thanh gon va bang truot chi dung cho mobile */
.tk-thanh-mobile,
.tim-kiem-sanpham .tk-sheet-dau,
.tim-kiem-sanpham .tk-sheet-chan,
.tk-nen {
    display: none;
}

@media (max-width: 600px) {
    .tk-thanh-mobile {
        -ms-flex: 1 1 100%;
        flex: 1 1 100%;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        margin: 8px 5px 10px;
        padding: 6px 10px;
        background-color: #fff;
        border: 1px solid #e5e5e5;
        border-radius: 4px;
    }

    .tk-thanh-mobile .tk-sapxep {
        max-width: 60%;
        color: #333;
        font-size: 14px;
        font-weight: 700;
        border: none;
        background-color: transparent;
    }

    .tk-thanh-mobile .tk-nut-boloc {
        color: #3f51b5;
        font-size: 14px;
        font-weight: 700;
        padding: 4px 2px;
        border: none;
        background-color: transparent;
    }

    .tk-thanh-mobile .tk-nut-boloc i {
        margin-left: 4px;
    }

    .tk-nen {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        /* Cao hon #wrap-phone (z-index 999) de khong bi thanh goi dien de len */
        z-index: 1000;
        background-color: rgba(0, 0, 0, .45);
    }

    body.tk-khoa {
        overflow: hidden;
    }

    body.tk-khoa .tk-nen {
        display: block;
    }

    .tim-kiem-sanpham {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1001;
        max-height: 80%;
        overflow-y: auto;
        margin: 0;
        padding: 0 12px 16px;
        background-color: #fff;
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, .2);
        -webkit-transform: translateY(100%);
        transform: translateY(100%);
        -webkit-transition: -webkit-transform .25s ease;
        transition: transform .25s ease;
    }

    .tim-kiem-sanpham.mo {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }

    .tim-kiem-sanpham .tk-sheet-dau {
        -ms-flex: 1 1 100%;
        flex: 1 1 100%;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        margin-bottom: 12px;
        padding: 12px 0 10px;
        color: #333;
        font-size: 16px;
        font-weight: 700;
        background-color: #fff;
        border-bottom: 1px solid #eee;
    }

    .tim-kiem-sanpham .tk-dong {
        color: #999;
        font-size: 26px;
        line-height: 1;
        padding: 0 4px;
        border: none;
        background-color: transparent;
    }

    .tim-kiem-sanpham .tk-sheet-chan {
        -ms-flex: 1 1 100%;
        flex: 1 1 100%;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        position: -webkit-sticky;
        position: sticky;
        bottom: 0;
        margin-top: 4px;
        padding: 10px 0 4px;
        background-color: #fff;
        border-top: 1px solid #eee;
    }

    .tim-kiem-sanpham .tk-nut {
        -webkit-box-flex: 1;
        -ms-flex: 1 1 0;
        flex: 1 1 0;
        height: 42px;
        font-size: 14px;
        font-weight: 700;
        border-radius: 3px;
    }

    .tim-kiem-sanpham .tk-nut-xoa {
        margin-right: 10px;
        color: #555;
        background-color: #fff;
        border: 1px solid #ccc;
    }

    .tim-kiem-sanpham .tk-nut-apdung {
        color: #fff;
        background-color: #e08011;
        border: 1px solid #e08011;
    }

    /* Sap xep da nam tren thanh gon nen an ban trong bang loc */
    .tim-kiem-sanpham .tk-o-thutu {
        display: none;
    }

    .tim-kiem-sanpham .tk-o {
        -ms-flex: 1 1 140px;
        flex: 1 1 140px;
        height: 40px;
        margin-right: 6px;
    }
}
