html{
    scroll-behavior: smooth;
}
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    margin: 0;
    direction: rtl;
    text-align: right;
}
.container{
    width: 1150px;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
}
.cart-container .container{
    display: flex;
    justify-content: center;
    gap:30px;
    align-items: start;
    margin: 100px auto;
}
.cart-left {
    flex: 1;
    overflow-x: auto;
    width: 65%;
    background: white;
    padding: 20px;
    border-radius: 8px;
}
.cart-right {
    width: 35%;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
h2 {
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-top: 0;
}
.cart-right h2{
    font-size: 20px;
}

.coupon-box {
    margin-bottom: 10px;
}
.coupon-box p{
    color: #000000B2;
    font-size: 13px
}
.coupon-input {
    display: flex;
    gap: 30px;
    margin-top: 10px;
}
.coupon-input input {
    font-family: 'Tajawal', sans-serif;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
}
.coupon-input button {
    font-family: 'Tajawal', sans-serif;
    background: #7FD3DF;
    color: white;
    font-size: 13px;
    border: none;
    padding: 0 20px;
    border-radius:8px;
    cursor: pointer;
}
.notes textarea {
    font-family: 'Tajawal', sans-serif;
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 10px;
    height: 40px;
    outline: none;
}
.totals {
    
    margin: 20px 0;
    border-top: 1px solid #eee;
    padding-top: 20px;
}
.total-row {
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.total-row.final {
    font-weight: bold;
    font-size: 14px;
}
.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
}
.cart-actions button {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.update-cart {
    font-family: 'Tajawal', sans-serif;
    background: #7FD3DF;
    color: #fff;
    font-size: 13px;
}
.checkout {
    font-family: 'Tajawal', sans-serif;
    background: #7FD3DF;
    color: white;
    font-size: 13px;
}

/* start table  */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
th {
    
    padding: 12px;
    text-align: right;
    border-bottom: 2px solid #eee;
}
td {
    padding: 15px 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}
.product-info {
    display: flex;
    align-items: center;
    gap: 15px;
}
.product-info img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}
.quantity-control {
    display: flex;
    align-items: center;
    gap: 5px;
}
.quantity-control button {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
}
.quantity-control span {
    width: 40px;
    text-align: center;
}
.remove-item {
    color: #e74c3c;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
}
.cart-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}
.cart-footer button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.continue-shopping {
    font-family: 'Tajawal', sans-serif;
    font-weight: bold;
    color: #7FD3DF;
    background-color: #fff;
    font-size: 20px;
    font-weight: 800;
}
.clear-cart {
    background-color: #fff;
    font-family: 'Tajawal', sans-serif;
    font-weight: bold;
    color: #7FD3DF;
    font-size: 20px;
    font-weight: 800;
}
@media (max-width: 480px){
    .container{
    width: 340px;
}
.cart-container .container{
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap:30px;
    align-items: start;
    margin: 100px auto
}
.cart-left {
    flex: 1;
    width: 100%;
}
.cart-right {
    width: 100%;
}
}
.cart-table.empty {
    transition: all 0.5s ease;
    opacity: 0.5;
}