*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial,sans-serif;
    background:#f0f0f0;
    background-color: #f0f0f0; /* Màu xám nhạt bao quanh các khung */
}

/* MAIN */

.cart-container{
    width:1250px;
    margin:30px auto;
}

.cart-main-title{
    font-size:22px;
    margin-bottom:20px;
}

.cart-main-title span{
    font-size:18px;
    font-weight:normal;
}
/* CHECKBOX - Ô tích chọn sản phẩm */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #C92127; 
}

/* LAYOUT */

.cart-layout{
    display:flex;
    gap:20px;
    align-items:stretch;
}

/* LEFT */

.cart-left{
    flex:7;
    background:#fff;
    border-radius:8px;
    overflow:hidden;
}

/* RIGHT */

.cart-right{
    flex:3;
    display:flex;
    flex-direction:column;
}

/* CHIỀU CAO BẰNG NHAU */

.cart-left,
.cart-right{
    align-self:stretch;
}

/* TABLE HEADER */

.cart-table-header{
    display:grid;
    grid-template-columns:2fr 1fr 1fr 40px;
    padding:15px 20px;
    border-bottom:1px solid #eee;
    font-size:14px;
    align-items:center;
}

.col-main{
    display:flex;
    align-items:center;
    gap:10px;
}

.col-qty{
    text-align:center;
}

.col-price{
    text-align:right;
}

/* ITEM */

.cart-item{
    display:grid;
    grid-template-columns:2fr 1fr 1fr 40px;
    align-items:center;
    padding:25px 20px;
    border-bottom:1px solid #eee;
    min-height:170px;
}

.item-main{
    display:flex;
    align-items:flex-start;
    gap:18px;
    width:100%;
}

.item-main img{
    width:80px;
    height:110px;
    object-fit:cover;
}

.item-info{
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    min-height:110px;
}

.item-name{
    font-size:15px;
    color:#000000;
    line-height:1.5;
}

.price-row{
    display:flex;
    align-items:center;
    gap:10px;
}

.price-new{
    font-size:15px;
    font-weight:bold;
}

.price-old{
    color:#999;
    text-decoration:line-through;
    font-size:12px;
}

/* QTY */

.item-qty{
    display:flex;
    justify-content:center;
}

.qty-control{
    display:flex;
    border:1px solid #ddd;
    border-radius:4px;
    overflow:hidden;
}

.qty-control button{
    width:28px;
    height:28px;
    border:none;
    background:#fff;
    cursor:pointer;
}

.qty-control input{
    width:35px;
    border:none;
    text-align:center;
    border-left:1px solid #ddd;
    border-right:1px solid #ddd;
}

/* TOTAL */

.item-total{
    text-align:right;
    color:#d91f26;
    font-size:15px;
    font-weight:bold;
}

.item-remove{
    text-align:center;
    color:#999;
    cursor:pointer;
}

/* PROMO */

.promo-card{
    background:#fff;
    border-radius:8px;
    padding:15px;
    margin-bottom:20px;
}

.promo-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding-bottom:12px;
    border-bottom:1px solid #eee;
}

.promo-header span{
    color:#2f80ed;
    font-weight:bold;
    font-size:14px;
}

.promo-header a{
    text-decoration:none;
    color:#2f80ed;
    font-size:12px;
}

.promo-body{
    margin-top:15px;
}

.promo-item{
    padding-bottom:15px;
    margin-bottom:15px;
    border-bottom:1px solid #eee;
}

.promo-info{
    display:flex;
    justify-content:space-between;
    margin-bottom:6px;
}

.promo-info strong{
    font-size:14px;
}

.detail-link{
    color:#2f80ed;
    text-decoration:none;
    font-size:12px;
}

.promo-condition{
    color:#777;
    font-size:12px;
    margin-bottom:10px;
}

.progress-container{
    width:100%;
    height:6px;
    background:#e5e5e5;
    border-radius:20px;
    overflow:hidden;
    margin-bottom:10px;
}

.progress-bar{
    width:60%;
    height:100%;
    background:#2f80ed;
}

.promo-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.promo-footer span{
    font-size:11px;
    color:#666;
}

.btn-buy-more{
    background:#2f80ed;
    color:#fff;
    border:none;
    padding:7px 15px;
    border-radius:4px;
    font-size:12px;
    font-weight:bold;
    cursor:pointer;
}

.promo-status-box{
    margin-top:10px;
    background:#e8f2ff;
    color:#2f80ed;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 12px;
    border-radius:6px;
    font-size:13px;
}

.info-note{
    margin-top:8px;
    font-size:11px;
    color:#999;
}

/* SUMMARY */

.summary-card{
    background:#fff;
    border-radius:8px;
    padding:18px;
    height:100%;
}

.summary-line{
    display:flex;
    justify-content:space-between;
    margin-bottom:15px;
    font-size:14px;
}

.summary-line.total{
    border-top:1px solid #eee;
    padding-top:15px;
    font-weight:bold;
}

.total-price{
    color:#d91f26;
    font-size:32px;
    font-weight:bold;
}

.btn-checkout{
    width:100%;
    height:50px;
    border:none;
    border-radius:6px;
    background:#d91f26;
    color:#fff;
    font-size:24px;
    font-weight:bold;
    cursor:pointer;
    margin-top:10px;
}

.note-red{
    margin-top:10px;
    text-align:center;
    color:#d91f26;
    font-size:11px;
}

/* FOOTER */

footer{
    width:100%;
    margin:20px 0;

    display:flex;
    justify-content:center;
}

/* KHUNG NHỎ LẠI */

.footer-container{
    width:1250px;
    background:#FCDAB0;
    padding:14px 20px;
    border-radius:12px;
}

/* CHIA 2 CỘT */

.footer-content{
    display:flex;
    justify-content:center;
    align-items:center;
    gap: 12px;
}

/* CỘT TRÁI */

.footer-left{
    display:flex;
    justify-content: flex-start;
    align-items:center;
}

/* INPUT */

.footer-input{
    display:flex;
    background:#fff;
    border:2px solid #ddd;
    border-radius:10px;
    overflow:hidden;
    margin-left: 100px;
    margin-top: 30px;
}

.footer-input input{
    width:450px;
    height:52px;
    border:none;
    outline:none;
    padding:0 18px;
    font-size:18px;
}

.footer-input button{
    height:52px;

    padding:0 30px;

    border:none;

    background:#C92127;
    color:#fff;

    font-size:18px;
    font-weight:bold;

    cursor:pointer;
}

/* CỘT PHẢI */

.footer-right{
    display:flex;
    align-items:center;
    margin-left: 20px;
    margin-top: 20px;
}

/* ICON */

.socials{
    display:flex;
    gap: 25px;
    margin-right: 45px;
    margin-top: 30px;
}
.socials i{
    font-size:48px;
    color:#C92127;
    cursor:pointer;
}
