﻿@import url("https://fonts.googleapis.com/css2?family=Montserrat&display=swap");

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
}

/* ===== PAGE BACKGROUND ===== */
.banner {
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(to left, #8942a8, #ba382f);
    padding: 40px 20px;
}

/* ===== TITLE ===== */
.page-title {
    color: #f5c542;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 30px;
}

/* ===== PRODUCT GRID ===== */
.main-cart {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

/* ===== CARD ===== */
.card {
    width: 260px;
    background: #252c58;
    border-radius: 20px;
    overflow: hidden;
    color: #fec400;
    transition: 0.4s ease;
}

    .card:hover {
        transform: translateY(-8px);
    }

/* IMAGE */
.img-container {
    height: 180px;
    background: #252c58;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img {
    max-width: 100%;
    max-height: 100%;
}

/* DETAILS */
.details {
    padding: 15px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
}

.product-price {
    color: #f5c542;
    margin: 8px 0;
}

/* BUTTONS */
.action-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.add-btn {
    border: 1px solid #fff;
    background: none;
    color: #fec400;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
}

    .add-btn:hover {
        background: #fec400;
        color: #000;
    }

.buy-btn {
    background: #f5c542;
    border: none;
    color: #000;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}

    .buy-btn:hover {
        background: #e3b92e;
    }

/* ===== TOP CART ===== */
.top-cart {
    position: fixed;
    top: 20px;
    right: 30px;
    background: #000;
    color: #fff;
    padding: 10px 14px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    z-index: 9999;
}
/* ===== CART PAGE ===== */
/* ===== CART LAYOUT ===== */
.cart-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 20px;
}

/* LEFT SIDE */
.cart-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* CART CARD */
.cart-card {
    display: flex;
    gap: 20px;
    background: #252c58;
    padding: 18px;
    border-radius: 18px;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* IMAGE */
.cart-img {
    width: 120px;
    height: 120px;
    background: #1f254d;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .cart-img img {
        max-width: 100%;
        max-height: 100%;
        border-radius: 12px;
    }

/* DETAILS */
.cart-details h4 {
    color: #fec400;
    margin-bottom: 6px;
}

.cart-details p {
    color: #fff;
    margin: 4px 0;
}

.cart-total {
    margin-top: 8px;
    font-weight: bold;
    color: #f5c542;
}

/* RIGHT SIDE SUMMARY */
.cart-right {
    background: #1f254d;
    padding: 25px;
    border-radius: 20px;
    height: fit-content;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

    .cart-right h3 {
        color: #fec400;
        margin-bottom: 15px;
    }

.grand-total {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 25px;
}

/* CHECKOUT BUTTON */
.checkout-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background: #f5c542;
    color: #000;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

    .checkout-btn:hover {
        background: #e3b92e;
    }

/* ===== MOBILE ===== */
@media (max-width: 900px) {
    .cart-wrapper {
        grid-template-columns: 1fr;
    }
}
.back-btn {
    display: inline-block;
    margin-top: 15px;
    text-align: center;
    padding: 10px;
    width: 100%;
    background: transparent;
    color: #fec400;
    border: 2px solid #fec400;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

    .back-btn:hover {
        background: #fec400;
        color: #000;
    }


/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .main-cart {
        flex-direction: column;
        align-items: center;
    }
}
