/*=================================
  GIỚI THIỆU SẢN PHẨM
==================================*/

.products-intro{
    padding:15px 20px 15px;
    margin:0;
}

.products-box{
    width:950px;
    margin:0 auto;
}

.products-desc{
    font-size:22px;
    line-height:2;
    color:#555;
    text-align:left;
}

.products-intro h2{
    text-align:center;
    font-size:34px;
    color:#1B5E20;
    font-weight:700;
    margin-top:15px;
    margin-bottom:5px;
}

.title-decoration{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:18px;
    color:#2E7D32;
    font-size:22px;
    margin-bottom:50px;
}

.title-decoration span{
    width:140px;
    height:2px;
    background:#2E7D32;
}


/*=================================
  THÔNG TIN SẢN PHẨM
==================================*/

.product-main{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:80px;
    margin-top:60px;
}

.product-left{
    flex:1;
    text-align:center;
}

.product-left img{
    width:100%;
    max-width:650px;
}

.product-right{
    flex:1;
}

.product-right h2{
    font-size:25px;
    color:#1B5E20;
    margin-bottom:15px;
}

.product-right p{
    font-size:18px;
    line-height:1.2;
    color:#444;
    margin-bottom:10px;
}

.info-item{
    display:flex;
    align-items:center;
    gap:20px;
    padding:20px 0;
    border-bottom:1px solid #ddd;
}

.info-icon{
    width:58px;
    height:58px;
    border:2px solid #2E7D32;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    color:#2E7D32;
    font-size:28px;
}

.info-text h3{
    margin:0;
    font-size:18px;
    color:#2E7D32;
    font-weight:500;
}

.info-text p{
    margin:6px 0 0;
    font-size:18px;
    font-weight:bold;
    color:#222;
}

.diameter-icon{
    font-size:34px;
    font-weight:bold;
    font-family:Arial,sans-serif;
}


/*=================================
  PHÓNG TO ẢNH
==================================*/

.zoom-image{
    cursor:zoom-in;
    transition:.2s;
}

.zoom-image:hover{
    transform:scale(1.02);
}

.image-modal{
    display:none;
    position:fixed;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.8);
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.image-modal img{
    max-width:95vw;
    max-height:95vh;
    object-fit:contain;
    cursor:zoom-out;
}


/*=================================
  TRA CỨU
==================================*/

.calculator{
    max-width:700px;
    margin:0 auto 50px;
    background:#fcfffc;
    border-radius:12px;
    box-shadow:0 8px 24px rgba(0,0,0,.08);
}

#btnTraCuu{
    display:block;
    width:100%;
    padding:0;
    background:none;
    border:none;
    color:#1B5E20;
    font-size:20px;
    font-weight:bold;
    text-align:center;
    cursor:pointer;
}

#btnDatHang{
    display:block;
    width:100%;
    padding:0;
    background:none;
    border:none;
    color:#1B5E20;
    font-size:20px;
    font-weight:bold;
    text-align:center;
    cursor:pointer;
}

#btnTraCuu i,
#btnDatHang i {
    margin-right: 6px;
    font-size: 18px;
}

.order-section{
    max-width:700px;
    margin:0 auto 50px;
    background:#fcfffc;
    border-radius:12px;
    box-shadow:0 8px 24px rgba(0,0,0,.08);
}

#orderForm{
    display:none;
}

#calculatorForm{
    display:none;
}

.calculator-note{
    text-align:center;
    color:#777;
    font-size:18px;
    margin-top:-10px;
    margin-bottom:25px;
}
.calculator-note2{
    margin-top:8px;
    color:#777;
    font-size:13px;
}

.calculator-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    margin-bottom:12px;
}

.calculator-intro{
    font-size: 20px;
    font-style:italic;
    color:#666;
    margin:0;
}

.reset-link{
    color:#444;
    font-size:15px;
    font-weight: 700;
    text-decoration:none;
    cursor:pointer;
    user-select:none;
    transition:.25s;
}

.reset-link:hover{
    color:#1B5E20;
    text-decoration:none;
}

.row2{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:20px;
    margin-bottom:15px;
}

.item-left,
.item-right{
    flex:1;
}

.item-left label,
.item-right label{
    display:block;
    margin-bottom:6px;
    font-weight:bold;
}

.item-left select,
.item-left input,
.item-right select,
.item-right input{
    width:100%;
    height:38px;
    padding:6px 10px;
    font-size:24px;
    border:1px solid #ccc;
    border-radius:6px;
    box-sizing:border-box;
}

input[readonly]{
    text-align:center;
    font-size:24px;
    font-weight:bold;
    color:#1B5E20;
    background:#eef8ee;
}

/*=================================
  NÚT BẤM
==================================*/
.calculator-buttons{
    margin-top:20px;
}

.btn-quote{
    display:block;
    width:100%;
    box-sizing:border-box;
    padding:12px;
    background:#2E7D32;
    color:#fff;
    text-decoration:none;
    text-align:center;
    font-size:17px;
    font-weight:bold;
    border-radius:6px;
    transition:.3s;
}

.btn-quote:hover{
    background:#388E3C;
}

/* THÔNG TIN KHÁCH HÀNG */
.order-customer{
    padding:15px;
}

.order-customer h3{
    margin:0 0 20px;
    text-align:center;
    color:#1B5E20;
    font-size:18px;
}

.order-form-row{
    display:flex;
    gap:20px;
    margin-bottom:10px;
}

.order-form-group{
    flex:1;
}

.order-form-group label{
    display:block;
    margin-bottom:6px;
    font-size:16px;
    font-weight:bold;
    color:#222;
}

.order-form-group input{
    width:100%;
    box-sizing:border-box;
    padding:10px 12px;
    border:1px solid #ccc;
    border-radius:6px;
    font-size:16px;
    font-family:Arial, sans-serif;
}

.order-form-group input:focus{
    outline:none;
    border-color:#2E7D32;
    box-shadow:0 0 4px rgba(46,125,50,.25);
}

.order-form-group input::placeholder{
    color:#999;
}

/* DANH SÁCH HÀNG */

.order-products{
    padding:10px 15px 15px;
}

.order-products h3{
    margin:0px 0 10px;
    text-align:center;
    color:#1B5E20;
    font-size:18px;
}

/* Khung cho phép kéo ngang trên điện thoại */
.order-table-wrapper{
    width:100%;
    overflow-x:auto;
}

/* Bảng */
#orderTable{
    width:100%;
    min-width:670px;
    border-collapse:collapse;
    font-size:15px;
}

#orderTable th:nth-child(1),
#orderTable td:nth-child(1){
    width:100px;
}

#orderTable th:nth-child(2),
#orderTable td:nth-child(2){
    width:70px;
}

#orderTable th:nth-child(3),
#orderTable td:nth-child(3){
    width:65px;
}

#orderTable th:nth-child(4),
#orderTable td:nth-child(4){
    width:60px;
}

#orderTable th:nth-child(5),
#orderTable td:nth-child(5){
    width:50px;
}

#orderTable th:nth-child(6),
#orderTable td:nth-child(6){
    width:80px;
}

#orderTable th:nth-child(7),
#orderTable td:nth-child(7){
    width:20px;
}

/* Tiêu đề cột */
#orderTable th{
    padding:10px 6px;
    background:#2E7D32;
    color:white;
    text-align:center;
    font-weight:bold;
    border:1px solid #ddd;
}

/* Các ô */
#orderTable td{
    padding:7px 5px;
    text-align:center;
    border:1px solid #ddd;
    vertical-align:middle;
}

#orderTable .khoGiay,
#orderTable .dinhLuong,
#orderTable .soKgTB,
#orderTable .soCuon{
    text-align:center;
}

#orderTable .soLuongKg{
    text-align:right;
}

/* Các ô nhập */
#orderTable input,
#orderTable select{
    width:100%;
    box-sizing:border-box;
    padding:8px 6px;
    border:1px solid #ccc;
    border-radius:5px;
    font-size:15px;
    font-family:Arial, sans-serif;
}

/* Khi ô được chọn */
#orderTable input:focus,
#orderTable select:focus{
    outline:none;
    border-color:#2E7D32;
    box-shadow:0 0 4px rgba(46,125,50,.25);
}

/* Các ô do hệ thống tính */
#orderTable input[readonly]{
    background:#eef7ee;
    font-weight:bold;
}

/* Nút xóa dòng */
.btn-delete-row{
    border:none;
    background:none;
    color:#c62828;
    font-size:17px;
    cursor:pointer;
    padding:6px;
}

.btn-delete-row:hover{
    color:#e53935;
}

/* Nút thêm sản phẩm */
#btnThemHang{
    margin:5px 0 0;
    padding:6px 16px;
    border:1px solid #2E7D32;
    border-radius:6px;
    background:white;
    color:#1B5E20;
    font-size:14px;
    font-weight:bold;
    cursor:pointer;
}

#btnThemHang:hover{
    background:#f1f8f1;
}

/* Tổng cộng */
.order-total{
    display:flex;
    justify-content:flex-end;
    gap:35px;
    margin-top:20px;
    padding-top:15px;
    border-top:1px solid #ddd;
    font-size:17px;
    color:#222;
}

.order-total strong{
    color:#1B5E20;
    font-size:19px;
}
.soKgTB,
.soLuong {
    text-align: right !important;
    padding-right: 4px !important;
}

.order-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.order-total {
    display: flex;
    gap: 35px;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

#btnGuiDonHang {
    padding: 10px 22px;
    border: 1px solid #2E7D32;
    border-radius: 6px;
    background:#1B5E20;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

#btnGuiDonHang:hover {
    background:#2E7D32;
}

#btnGuiDonHang i {
    margin-right: 6px;
}

/* GỢI Ý KHÁCH HÀNG */
.khach-hang-group {
    position: relative;
}
#goiYKhachHang {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 2px;
    background: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 6px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    max-height: 280px;
    overflow-y: auto;
    z-index: 1000;
}
#goiYMstKhachHang {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 2px;
    background: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 6px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    max-height: 280px;
    overflow-y: auto;
    z-index: 1000;
}
.goi-y-khach-hang {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eeeeee;
}
.goi-y-khach-hang:last-child {
    border-bottom: none;
}
.goi-y-khach-hang:hover {
    background: #eef8ee;
}
.goi-y-khach-hang-ten {
    display: block;
    color: #1B5E20;
    font-size: 15px;
    font-weight: bold;
}
.goi-y-khach-hang-mst {
    display: block;
    margin-top: 3px;
    color: #777777;
    font-size: 13px;
}
/*=================================
  MOBILE
==================================*/
@media (max-width:768px){
    /* ---------- Giới thiệu ---------- */
    .products-intro{
        padding:30px 0;
    }
    .products-box{
        width:100%;
    }
    .products-intro h2{
        font-size:28px;
    }
    .products-desc{
        font-size:18px;
        line-height:1.8;
        text-align:justify;
    }
    .title-decoration{
        gap:12px;
        margin-bottom:30px;
    }
    .title-decoration span{
        width:70px;
    }
    /* ---------- Thông tin sản phẩm ---------- */
    .product-main{
        flex-direction:column;
        gap:30px;
        margin-top:35px;
    }
    .product-left img{
        max-width:100%;
    }
    .product-right h2{
        font-size:24px;
        text-align:center;
    }
    .product-right p{
        font-size:17px;
        line-height:1.5;
    }
    .info-item{
        gap:15px;
        padding:16px 0;
    }
    .info-icon{
        width:50px;
        height:50px;
        font-size:24px;
    }
    .diameter-icon{
        font-size:28px;
    }
    .info-text h3{
        font-size:17px;
    }
    .info-text p{
        font-size:17px;
    }
    /* ---------- Calculator ---------- */
    .calculator{
        width:100%;
        padding:20px;
    }
    .calculator h2{
        font-size:24px;
        margin-bottom:20px;
    }
    .calculator-intro{
        font-size:17px;
    }
    .calculator-note{
        font-size:16px;
    }
    .calculator-header{
        flex-direction:column;
        gap:8px;
        align-items:flex-start;
    }
    .row2{
        flex-direction:column;
        align-items:stretch;
        gap:15px;
    }
    .item-left input,
    .item-left select,
    .item-right input,
    .item-right select{
        font-size:20px;
    }
    .btn-quote{
        font-size:18px;
        padding:14px;
    }
    .order-bottom {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    #btnGuiDonHang {
        align-self: flex-start;
        width: auto;
        white-space: nowrap;
    }
    .order-total {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }
    .order-total > div {
        white-space: nowrap;
    }
    
    .order-form-group {
        min-width: 0;
    }
    .order-form-group input {
        min-width: 0;
    }
    #ngayGiao {
        width: 100% !important;
        height: 40px !important;
        min-width: 0 !important;
        min-height: 40px !important;
        max-height: 40px !important;
        box-sizing: border-box;
        padding: 10px 12px !important;
        font-size: 16px;
        line-height: 20px;
        -webkit-appearance: none;
        appearance: none;
    }
}
    
    
    
    

