﻿/* Tổng thể container bao quanh */
.order-main-container {
    display: flex;
    flex-direction: row; /* Chia làm 2 cột dọc */
    gap: 30px; /* Tăng khoảng cách để không chạm vào form */
    margin: 0 auto;
    padding: 20px;
    background-color: #f4f7f6;
}

/* Cột bên trái: Hiển thị danh sách ảnh */
.product-images-col {
    flex: 1;
    /*max-width: 70%;*/ /* Điều chỉnh lại 70% để form bên phải có không gian thở */
}

/* Container bọc ảnh để xử lý hiệu ứng nổi lên */
.img-item-wrapper {
    overflow: hidden; /* Cắt phần ảnh dư khi zoom */
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.4s ease; /* Hiệu ứng mượt cho cả khối */
    cursor: pointer;
}

.product-images-col img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease; /* Hiệu ứng mượt cho riêng tấm ảnh */
}

/* HIỆU ỨNG KHI HOVER: Ảnh nổi lên và phóng to nhẹ */
.img-item-wrapper:hover {
    transform: translateY(-8px); /* Nhấc cả khối lên */
    box-shadow: 0 15px 30px rgba(0,0,0,0.2); /* Đổ bóng sâu hơn tạo cảm giác nổi */
}

    .img-item-wrapper:hover img {
        transform: scale(1.05); /* Phóng to ảnh 5% bên trong khung */
    }

/* Cột bên phải: Form đặt hàng Sticky */
.order-form-col {
    flex: 0 0 350px;
}

.sticky-form-box {
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-top: 5px solid #008d44; /* Màu xanh K-Market */
}

/* Tối ưu lại giao diện form cho gọn đẹp theo K-Market */
.form-title {
    font-size: 3.4rem;
    font-weight: 800;
    color: #008d44; /* Xanh K-Market */
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    border-bottom: 2px solid #e0f2f1;
    padding-bottom: 10px;
}

.form-group label {
    font-weight: 600;
    font-size: 20px;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 10px;
    height: auto;
}

    .form-control:focus {
        border-color: #00a651;
        box-shadow: 0 0 0 0.2rem rgba(0,166,81,0.1);
    }

.btn-submit-order {
    width: 100%;
    background: linear-gradient(135deg, #00a651 0%, #008d44 100%); /* Gradient xanh thương hiệu */
    color: white;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .btn-submit-order:hover {
        background: linear-gradient(135deg, #008d44 0%, #006b33 100%);
        box-shadow: 0 5px 15px rgba(0,141,68,0.3);
        transform: translateY(-2px);
    }

/* Responsive cho di động */
@media (max-width: 992px) {
    .order-main-container {
        flex-direction: column;
    }

    .product-images-col, .order-form-col {
        max-width: 100%;
        flex: none;
    }

    .sticky-form-box {
        position: relative;
        top: 0;
    }
}

/* Tối ưu Header Mobile */
.kt-header-mobile__toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
    justify-content: flex-end;
}

.kt-header-mobile__language {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Nút đặt hàng Mobile */
.btn-mobile-order {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #00a651; /* Màu xanh K-Market */
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 11px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    white-space: nowrap;
}

    .btn-mobile-order i {
        font-size: 16px;
    }

/* Hiệu ứng rung nhẹ để thu hút sự chú ý (Tùy chọn) */
@keyframes shake {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.btn-mobile-order {
    animation: shake 2s infinite;
}

/* Ẩn nút này khi ở trên máy tính */
@media (min-width: 993px) {
    .btn-mobile-order {
        display: none;
    }
}

/* Tối ưu Form trên Mobile */
@media (max-width: 992px) {
    .order-main-container {
        padding: 10px;
    }

    .sticky-form-box {
        margin-top: 20px;
        padding: 15px;
    }
}
