/* CART PAGE STYLES */
.cart-layout{padding:40px 0 60px;max-width:1280px;margin:0 auto;padding-left:20px;padding-right:20px;}
.cart-table-wrap{background:#fff;border-radius:var(--r-lg);border:1px solid var(--clr-border);overflow-x:auto;margin-bottom:24px;}
.cart-table{width:100%;border-collapse:collapse;}
.cart-table thead tr{background:var(--clr-bg);border-bottom:2px solid var(--clr-border);}
.cart-table th{padding:14px 18px;font-size:13px;font-weight:700;color:var(--clr-muted);text-align:left;white-space:nowrap;}
.cart-table td{padding:16px 18px;border-bottom:1px solid var(--clr-border);vertical-align:middle;font-size:14px;}
.cart-table tbody tr:last-child td{border-bottom:none;}
.cart-table tbody tr:hover{background:#fafbff;}
.cart-product-info{display:flex;align-items:center;gap:14px;}
.cart-product-img{width:60px;height:80px;object-fit:cover;border-radius:var(--r-sm);border:1px solid var(--clr-border);}
.cart-product-title{font-size:14px;font-weight:700;color:var(--clr-dark);margin-bottom:3px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;line-height:1.4;}
.cart-product-author{font-size:12px;color:var(--clr-muted);}
.cart-qty-wrap{display:flex;align-items:center;gap:0;border:1.5px solid var(--clr-border);border-radius:var(--r-md);overflow:hidden;width:fit-content;}
.cart-qty-btn{width:34px;height:34px;border:none;background:var(--clr-bg);color:var(--clr-text);font-size:16px;font-weight:700;display:flex;align-items:center;justify-content:center;transition:var(--tr);}
.cart-qty-btn:hover{background:var(--clr-primary);color:#fff;}
.cart-qty-input{width:46px;height:34px;border:none;border-left:1.5px solid var(--clr-border);border-right:1.5px solid var(--clr-border);text-align:center;font-family:inherit;font-size:14px;font-weight:700;color:var(--clr-dark);}
.cart-qty-input:focus{outline:none;}
.cart-remove-btn{width:34px;height:34px;background:var(--clr-bg);border:1.5px solid var(--clr-border);border-radius:50%;color:var(--clr-muted);display:flex;align-items:center;justify-content:center;font-size:14px;transition:var(--tr);flex-shrink:0;}
.cart-remove-btn:hover{background:#fee2e2;border-color:var(--clr-danger);color:var(--clr-danger);}

.cart-coupon-bar{display:flex;gap:10px;padding:18px;background:#fff;border-radius:var(--r-lg);border:1px solid var(--clr-border);margin-bottom:24px;}
.cart-coupon-input{flex:1;padding:10px 18px;border:1.5px solid var(--clr-border);border-radius:var(--r-md);font-family:inherit;font-size:14px;}
.cart-coupon-input:focus{outline:none;border-color:var(--clr-primary);}
.cart-coupon-btn{background:var(--clr-primary);color:#fff;border:none;border-radius:var(--r-md);padding:10px 22px;font-family:inherit;font-weight:700;font-size:14px;white-space:nowrap;transition:var(--tr);}
.cart-coupon-btn:hover{background:var(--clr-primary-dk);}

.cart-summary{background:#fff;border-radius:var(--r-lg);border:1px solid var(--clr-border);padding:24px;position:sticky;top:90px;}
.cart-summary-title{font-size:17px;font-weight:700;color:var(--clr-dark);margin-bottom:20px;padding-bottom:14px;border-bottom:1px solid var(--clr-border);}
.cart-summary-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;font-size:14px;color:var(--clr-text);}
.cart-summary-row.total-row{margin-top:16px;padding-top:16px;border-top:2px solid var(--clr-border);font-size:17px;font-weight:700;color:var(--clr-dark);}
.cart-summary-row.total-row span:last-child{color:var(--clr-primary);}
.cart-discount-badge{font-size:12px;font-weight:600;color:var(--clr-success);background:#d1fae5;padding:2px 8px;border-radius:10px;}
.cart-checkout-btn{width:100%;padding:14px;background:var(--clr-primary);color:#fff;border:none;border-radius:var(--r-md);font-family:inherit;font-size:15px;font-weight:700;margin-top:18px;transition:var(--tr);}
.cart-checkout-btn:hover{background:var(--clr-primary-dk);transform:translateY(-1px);}
.cart-continue-btn{width:100%;padding:11px;background:transparent;border:1.5px solid var(--clr-border);border-radius:var(--r-md);font-family:inherit;font-size:14px;font-weight:600;color:var(--clr-muted);margin-top:10px;transition:var(--tr);}
.cart-continue-btn:hover{border-color:var(--clr-primary);color:var(--clr-primary);}

.cart-empty{text-align:center;padding:80px 20px;}
.cart-empty-icon{font-size:80px;margin-bottom:20px;opacity:0.3;}
.cart-empty h3{font-size:22px;font-weight:700;margin-bottom:8px;}
.cart-empty p{color:var(--clr-muted);margin-bottom:24px;}

@media(max-width:768px){
    .cart-layout { padding-left: 10px; padding-right: 10px; }
    .cart-table { min-width: 450px; }
    .cart-table th, .cart-table td { padding: 12px 10px; }
    /* Hide the unit price column on mobile to save space */
    .cart-table th:nth-child(2), .cart-table td:nth-child(2){display:none;}
    
    /* Ensure the last column (remove btn) has right padding so it doesn't touch the border */
    .cart-table th:last-child, .cart-table td:last-child { padding-right: 16px; }
    
    .cart-product-img{width:50px;height:70px;}
    .cart-product-title { font-size: 13px; }
    .cart-qty-btn { width: 28px; height: 28px; font-size: 14px; }
    .cart-qty-input { width: 36px; height: 28px; font-size: 13px; }
    .cart-remove-btn { width: 28px; height: 28px; font-size: 12px; }
    
    .cart-coupon-bar{flex-direction:column;padding:14px;}
    .cart-coupon-btn{width:100%;}
    
    #continueShopBtn {
        display: flex;
        margin: 0 auto;
        width: fit-content;
        justify-content: center;
    }
}
