
/* ==================================
   BREW & BEAN - PREMIUM CART DESIGN
================================== */

body {
    background: #faf8f4;
}

.cart-hero {
    background: #eee6da;
    padding: 95px 8% 85px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.cart-hero::after {
    content: "B&B";
    position: absolute;
    right: 8%;
    top: 5px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(130px, 22vw, 280px);
    color: rgba(76, 49, 34, 0.045);
    pointer-events: none;
}

.cart-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(65px, 9vw, 110px);
    color: #30221b;
    line-height: 1;
    margin: 15px 0 22px;
    position: relative;
    z-index: 1;
}

.cart-hero h1 span {
    color: #b77b4e;
}

.cart-hero > p:last-child {
    color: #827064;
    font-size: 14px;
}

.cart-section {
    max-width: 1500px;
    margin: auto;
    padding: 85px 8% 110px;
}

.cart-title-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 35px;
}

.cart-title-row h2 {
    font-family: 'Playfair Display', serif;
    color: #30221b;
    font-size: 40px;
}

.clear-cart-btn {
    border: none;
    border-bottom: 1px solid #b77b4e;
    background: transparent;
    color: #a66c43;
    padding: 8px 0;
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 1px;
    transition: 0.3s;
}

.clear-cart-btn:hover {
    color: #30221b;
    border-color: #30221b;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 45px;
    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    background: #fff;
    border: 1px solid #eee7dd;
    border-radius: 12px;
    padding: 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: 0.3s;
}

.cart-item:hover {
    border-color: #d7b99e;
    transform: translateY(-2px);
}

/* Product information */

.cart-item-info {
    flex: 1;
}

.cart-item-info h3 {
    font-family: 'Playfair Display', serif;
    color: #30221b;
    font-size: 24px;
    margin-bottom: 9px;
}

.cart-item-info p {
    color: #a28c7b;
    font-size: 10px;
    letter-spacing: 1.8px;
}

.cart-item-price {
    color: #b77b4e;
    font-weight: 700;
    font-size: 17px;
    margin-top: 15px;
}

/* Quantity */

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f5f1eb;
    border: 1px solid #eee5db;
    padding: 8px 12px;
    border-radius: 50px;
}

.quantity-control button {
    width: 25px;
    height: 25px;
    border: none;
    background: transparent;
    color: #39271e;
    font-size: 19px;
    cursor: pointer;
}

.quantity-control button:hover {
    color: #bd7b49;
}

.quantity-control span {
    color: #30221b;
    font-size: 13px;
    font-weight: 700;
    min-width: 12px;
    text-align: center;
}

.remove-item {
    background: transparent;
    border: none;
    color: #b48c78;
    font-size: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.remove-item:hover {
    color: #a34030;
}

/* Summary */

.cart-summary {
    background: #30221b;
    color: white;
    border-radius: 14px;
    padding: 35px 30px;
    position: sticky;
    top: 30px;
    box-shadow: 0 15px 40px rgba(48, 34, 27, 0.12);
}

.cart-summary h3 {
    font-family: 'Playfair Display', serif;
    font-size: 29px;
    font-weight: 500;
    margin-bottom: 35px;
    color: #fff;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    color: #c4b4a7;
    font-size: 13px;
}

.summary-row strong {
    color: #fff;
    font-size: 14px;
}

.summary-divider {
    border-top: 1px solid rgba(255,255,255,0.15);
    margin: 30px 0;
}

.total-row {
    color: white;
    font-size: 15px;
    font-weight: 600;
}

.total-row strong {
    color: #d5a47e;
    font-size: 23px;
}

.checkout-btn {
    width: 100%;
    border: none;
    border-radius: 50px;
    background: #c18a5c;
    color: #fff;
    padding: 17px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 18px;
}

.checkout-btn:hover {
    background: #e0b18a;
    color: #30221b;
    transform: translateY(-3px);
}

.continue-shopping {
    display: block;
    text-align: center;
    margin-top: 22px;
    color: #d0b7a2;
    font-size: 12px;
    text-decoration: none;
}

.continue-shopping:hover {
    color: white;
}

.cart-note {
    text-align: center;
    color: #a99484;
    font-size: 11px;
    margin-top: 30px;
}

/* Empty cart */

.empty-cart {
    background: #fff;
    border: 1px solid #eee7dd;
    padding: 90px 25px;
    text-align: center;
    border-radius: 14px;
}

.empty-cart h3 {
    font-family: 'Playfair Display', serif;
    color: #30221b;
    font-size: 32px;
    margin-bottom: 15px;
}

.empty-cart p {
    color: #958477;
    font-size: 13px;
    margin-bottom: 28px;
}

.empty-cart a {
    display: inline-block;
    background: #30221b;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 12px;
    transition: 0.3s;
}

.empty-cart a:hover {
    background: #bd7b49;
}

/* Responsive */

@media (max-width: 1000px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 600px) {
    .cart-hero {
        padding: 75px 6%;
    }

    .cart-section {
        padding: 55px 5%;
    }

    .cart-title-row {
        align-items: start;
        gap: 15px;
    }

    .cart-title-row h2 {
        font-size: 29px;
    }

    .cart-item {
        flex-direction: column;
        align-items: stretch;
        padding: 22px;
    }

    .cart-item-actions {
        justify-content: space-between;
    }

    .cart-summary {
        padding: 28px 23px;
    }
}
/* Remove red background from cart page */

body {
    background: #faf8f4 !important;
}

.cart-page,
.cart-section,
.cart-items {
    background: #faf8f4 !important;
}

.cart-hero {
    background: #eee6da !important;
}

.cart-item {
    background: #ffffff !important;
}

.cart-summary {
    background: #30221b !important;
}

/* Product Images in Cart */

.cart-item {
    display: grid;
    grid-template-columns: 115px minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
}

.cart-product-image {
    width: 115px;
    height: 115px;
    object-fit: cover;
    border-radius: 9px;
    background: #eee6da;
}

.cart-item-info {
    min-width: 0;
}

@media (max-width: 600px) {
    .cart-item {
        grid-template-columns: 85px minmax(0, 1fr);
        gap: 15px;
    }

    .cart-product-image {
        width: 85px;
        height: 85px;
    }

    .cart-item-actions {
        grid-column: 1 / -1;
    }
}
