/* === MAIN LAYOUT (Columns) === */
.cart-layout {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    align-items: flex-start;
}

.cart-left {
    flex: 2; /* Takes up 70% space */
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cart-right {
    flex: 1; /* Takes up 30% space */
}

/* === INDIVIDUAL CART ITEM STYLING === */
.cart-item {
    display: flex;           /* Makes the row flexible */
    align-items: center;     /* Centers items vertically */
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.cart-img {
    width: 120px;            /* Fixed width for consistency */
    height: auto;
    object-fit: contain;
    margin-right: 20px;      /* Space between image and text */
}

.cart-details {
    display: flex;
    flex-direction: column;
}

.cart-details h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.cart-details p {
    margin: 5px 0 0 0;
    color: #b12704;          /* Classic Amazon price red */
    font-weight: bold;
}

/* THE MAGIC: Pushes button to the far right */
.remove-btn {
    margin-left: auto;       /* Push to the right */
    background: transparent; /* No background */
    color: #ff4d4d;          /* Red color */
    border: none;
    
    /* Smaller, cleaner size */
    font-size: 2.5rem;       
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    padding: 5px;            /* Small padding for clickability */
    
    transition: transform 0.2s ease, color 0.2s ease;
}

.remove-btn:hover {
    color: #cc0000;          /* Darker red on hover */
    transform: scale(1.2);   /* Slight pop (20% bigger) */
}
/* === CHECKOUT BOX (Right Side) === */
.checkout-box {
    background: #f3f3f3;
    padding: 20px;
    border-radius: 8px;
    position: sticky;
    top: 20px; 
    border: 1px solid #ddd;
}

.checkout-btn {
    width: 100%;
    padding: 10px;
    background-color: #ffd814;
    border: 1px solid #fcd200;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 15px;
}

.checkout-btn:hover {
    background-color: #f7ca00;
}