﻿
:root {
    --color-primary: #3f1c46;
    --color-lightYellow: #f1f1e5;
    --color-grey: #e9e9e9;
    --plum-light: #5a2864;
    --plum-deep: #2a1230;
    --sand: #e3dfdc;
    --sand-light: #f0ede9;
    --sand-dark: #ccc7c2;
    --cream: #faf8f5;
    --white: #ffffff;
    --text-dark: #1a0e1e;
    --text-mid: #5a4f60;
    --gold: #c9a96e;
    --gold-light: #e8d5a3;
    --font-calisto: 'Calisto MT';
    --font-outfit: 'Outfit';
}

.breadcrumb {
    color: #777;
    margin-bottom: 30px;
}

.cart-wrapper {
    display: flex;
    gap: 40px;
}

.cart-items {
    flex: 2;
}

.cart-item {
    position: relative;
    display: flex;
    border: 1px solid #d2bfd2;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 20px;
    align-items: center;
}

.product-img {
    width: 140px;
    height:140px;
    border-radius: 0.5rem;
    overflow: hidden;
}

.product-img img {
    height:100%;
    object-fit:cover;
    object-position:center;
}
    .product-details {
    margin-left: 20px;
    flex: 1;
}

    .product-details h3 {
        margin: 0.5rem;
        padding:0 !important;
        font-size:1.4rem;
        font-weight:600;
        color: #4b1d4b;
    }
    .product-details p{
        margin-bottom:0;
    }

    .product-details .product-title {
        font-size: 1.8rem;
        font-family: var(--font-calisto);
        color:var(--color-primary);
    }

.qty-control {
    display: flex;
    align-items:center;
    gap: 10px;
    margin-top: 10px;
}

    .qty-control button {
        width: 30px;
        height: 30px;
        cursor: pointer;
        border:1px solid #ccc;
        
    }

.price {
    font-size: 1.7rem;
    font-weight: bold;
    color: #4b1d4b;
    align-self:flex-end;
}

.remove-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #4b1d4b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
}

/* SUMMARY */
.summary {
    flex: 1;
    border-left: 1px solid #ddd;
    padding-left: 30px;
}

    .summary h2 {
        margin-bottom: 20px;
        font-size:22px;
        color:var(--color-primary);
    }

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

    .summary-row.total {
        font-size: 18px;
        font-weight: bold;
    }

.terms {
    display: block;
    margin: 20px 0;
}

.place-order {
    width: 100%;
    background: #4b1d4b;
    
    color: white;
    padding: 14px;
    border: none;
    cursor: pointer;
    border-radius: 6px;
}


/* ===============================
   RESPONSIVE CART CSS
================================ */

/* Tablets (≤ 992px) */
@media (max-width: 992px) {

    .cart-wrapper {
        flex-direction: column;
    }

    .summary {
        border-left: none;
        padding-left: 0;
        margin-top: 30px;
    }

    .cart-item {
        align-items: flex-start;
    }

    .price {
        font-size: 20px;
    }
}

/* Mobiles (≤ 768px) */
@media (max-width: 768px) {

    body {
        padding: 20px;
    }
        
    .remove-btn {
        top: 10px;
        right: 10px;
    }

    .qty-control {
        margin-top: 15px;
    }

    .summary {
        margin-top: 40px;
    }

    .place-order {
        font-size: 16px;
        padding: 12px;
    }
}

/* Small mobiles (≤ 480px) */
@media (max-width: 480px) {

    .page-title {
        font-size: 22px;
    }

    .product-details h2 {
        font-size: 18px;
    }

    .price {
        font-size: 18px;
        width: 100%;
        text-align:center;
        padding:0.25rem;
        margin-top:1rem;
        background-color: var(--color-primary);
        border-radius:0.25rem;
        color: #fff;
    }

    .summary h2 {
        font-size: 20px;
    }

    .summary-row {
        font-size: 14px;
    }

    .cart-item {
        flex-direction: column;
        text-align: left;
    }


    .product-img {
        width: 100%;
        max-width: 220px;
        margin-bottom: 15px;
        margin-inline: auto;
    }

    .product-details {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    .qty-control{
        justify-content:center;
    }
}
