/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* ====== Bố cục ====== */
form.cart {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
}

/* ====== Cột số lượng (20%) ====== */
form.cart .quantity {
    width: 20%;
    min-width: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 2px;
    background: #fff;
}

form.cart .quantity input.qty {
    border: none !important;
    background: transparent !important;
    width: 40px;
    text-align: center;
    font-size: 16px;
    outline: none !important;
}

form.cart .quantity .action svg {
    width: 18px;
    height: 18px;
}

/* ====== Nút Thêm vào giỏ hàng (40%) ====== */
form.cart .single_add_to_cart_button {
    width: 40%;
    padding: 14px 0 !important;
    background: #e5e8eb !important;
    color: #333 !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    border: none !important;
}

/* ====== Nút Mua ngay (40%) ====== */
form.cart .buy_now_button {
    width: 40%;
    padding: 14px 0 !important;
    background:#a52a2a !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border: none !important;
    cursor: pointer;
    transition: 0.25s ease;
}
form.cart .quantity .minus, form.cart .quantity .plus {
    border: none;
}
form.cart .buy_now_button:hover {
    background: #ddad63 !important;
}

/* Khi loading */
.devvn-quickbuy button.buy_now_button {
    color: rgba(255,255,255,0.05) !important;
}

/* ====== Mobile: full width ====== */
@media (max-width: 768px) {
    form.cart {
        flex-direction: column;
    }
    form.cart .quantity,
    form.cart .single_add_to_cart_button,
    form.cart .buy_now_button {
        width: 100% !important;
    }
}
form.cart .quantity+button{
    margin-top: 0px !important;
}

