/* ==========================================================================
   AIBIKE SHOP – ẨN GIỎ HÀNG + NÚT "LIÊN HỆ" + ZALO / MESSENGER
   File: assets/contact-only.css
   Dùng kèm: assets/contact-only.js
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ẨN TOÀN BỘ GIAO DIỆN GIỎ HÀNG
   -------------------------------------------------------------------------- */
.header-action_cart,        /* icon giỏ hàng + số lượng trên header        */
.top-cart-content,          /* dropdown giỏ hàng của header                */
.cart-sidebar,              /* giỏ hàng trượt bên phải                     */
#popup-cart-desktop,        /* popup "đã thêm vào giỏ" (desktop)           */
#popup-cart-mobile,         /* popup "đã thêm vào giỏ" (mobile)            */
.popup-cart,
.popup-cart-mobile,
.cartbar-mobile,            /* thanh giỏ hàng cố định dưới đáy (mobile)    */
.cartbar-mobile-wrapper {
    display: none !important;
}

/* --------------------------------------------------------------------------
   2. ẨN MỌI NÚT THÊM VÀO GIỎ / MUA NGAY
   -------------------------------------------------------------------------- */
.btn_add_cart,              /* "Thêm vào giỏ hàng" – trang chi tiết SP     */
.btn-buyNow,                /* "Mua ngay" – trang chi tiết SP              */
.btn-mua .custom,           /* ô chọn số lượng (không còn ý nghĩa)         */
.custom-btn-number,
.btn-soldout,               /* nút "Hết hàng"                              */
.btn-buy.btn-cart,          /* nút giỏ trên thẻ sản phẩm ở trang danh mục  */
.product-item .btn-cart,
.product-item .add_to_cart,
.quickview .btn-cart,
.quickview .add_to_cart {
    display: none !important;
}

/* --------------------------------------------------------------------------
   3. CỤM NÚT LIÊN HỆ  (JS tự chèn vào vị trí nút mua cũ)
   -------------------------------------------------------------------------- */
/* Chốt an toàn: cụm nút này KHÔNG được xuất hiện trong thẻ sản phẩm
   ở trang danh mục / trang chủ (chỉ dùng ở trang chi tiết sản phẩm) */
.item_product_main .aibk-actions,
form.product-action .aibk-actions,
.products-view .aibk-actions,
.product-info .aibk-actions {
    display: none !important;
}

.aibk-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

/* --- Nút chính: LIÊN HỆ --- */
.aibk-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    min-width: 200px;
    padding: 0 26px;
    border: 0;
    border-radius: 40px;
    background: #000;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .2px;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s ease, transform .1s ease;
}

.aibk-contact:hover {
    background: #2b2b2b;
    color: #fff;
}

.aibk-contact:active {
    transform: scale(.985);
}

.aibk-contact svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    fill: currentColor;
}

/* --- Nút Zalo / Messenger --- */
.aibk-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aibk-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 15px;
    border: 0;
    border-radius: 40px;
    color: #fff;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: filter .18s ease, transform .1s ease;
}

.aibk-social-btn:hover {
    color: #fff;
    text-decoration: none;
    filter: brightness(1.1);
}

.aibk-social-btn:active {
    transform: scale(.98);
}

.aibk-social-btn svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.aibk-social-btn--zalo { background: #0068ff; }
.aibk-social-btn--mess { background: #0084ff; }

/* Mobile: nút chính full chiều ngang, 2 nút chat chia đôi */
@media (max-width: 991px) {
    .aibk-actions {
        display: block;
        margin-top: 12px;
    }

    .aibk-contact {
        width: 100%;
        height: 44px;
        font-size: 13px;
    }

    .aibk-socials {
        margin-top: 8px;
    }

    .aibk-social-btn {
        flex: 1 1 0;
        height: 40px;
    }
}

/* --------------------------------------------------------------------------
   4. HỘP THOẠI HIỆN SỐ ĐIỆN THOẠI
   -------------------------------------------------------------------------- */
.aibk-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .55);
}

.aibk-modal.is-open {
    display: flex;
}

.aibk-modal__box {
    position: relative;
    width: 100%;
    max-width: 350px;
    padding: 26px 22px 20px;
    background: #fff;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
    animation: aibk-pop .18s ease-out;
}

@keyframes aibk-pop {
    from { opacity: 0; transform: translateY(10px) scale(.97); }
    to   { opacity: 1; transform: none; }
}

.aibk-modal__close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #999;
    font-size: 22px;
    line-height: 26px;
    cursor: pointer;
}

.aibk-modal__close:hover {
    color: #000;
}

.aibk-modal__label {
    display: block;
    margin: 0 0 4px;
    color: #777;
    font-size: 13px;
    letter-spacing: .2px;
}

.aibk-modal__phone {
    display: block;
    margin: 0 0 4px;
    color: #000;
    font-size: 29px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .5px;
    text-decoration: none;
}

.aibk-modal__phone:hover {
    color: #000;
    text-decoration: none;
}

.aibk-modal__note {
    margin: 0 0 18px;
    color: #8a8a8a;
    font-size: 12.5px;
}

.aibk-modal__actions {
    display: flex;
    gap: 10px;
}

.aibk-modal__btn {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s ease;
}

.aibk-modal__btn--call {
    background: #000;
    color: #fff;
}

.aibk-modal__btn--call:hover {
    background: #2b2b2b;
    color: #fff;
    text-decoration: none;
}

.aibk-modal__btn--copy {
    background: #f1f1f1;
    color: #111;
}

.aibk-modal__btn--copy:hover {
    background: #e6e6e6;
}

.aibk-modal__btn--copy.is-done {
    background: #e7f6ec;
    color: #127a34;
}

.aibk-modal__btn svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

/* Hàng Zalo / Messenger trong hộp thoại */
.aibk-modal__social {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.aibk-modal__social .aibk-social-btn {
    flex: 1 1 0;
    height: 42px;
    border-radius: 8px;
    font-size: 13px;
}

.aibk-modal__divider {
    position: relative;
    margin: 16px 0 12px;
    color: #b0b0b0;
    font-size: 11.5px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.aibk-modal__divider:before,
.aibk-modal__divider:after {
    content: "";
    position: absolute;
    top: 50%;
    width: calc(50% - 34px);
    height: 1px;
    background: #ececec;
}

.aibk-modal__divider:before { left: 0; }
.aibk-modal__divider:after  { right: 0; }

body.aibk-modal-open {
    overflow: hidden;
}
