/* ======== Cart ========*/
:root {
    --figma-bronze: #9C704C;
    --figma-gold: #CFB482;
    --figma-dark: #252230;
    --figma-darker: #1c1a27;
    --figma-text: #CFB482;
}

#your-cart {
    flex: 0 0 64%;
}

#order-summary {
    flex: 0 0 32%;
}

/* Responsive Stack for Mobile */
@media (max-width: 820px) {
    #cart-page-main {
        flex-direction: column;
        padding: 1.5rem;
    }
}
/* ========== CART PAGE ========== */
#cart-page-main {
    display: flex;
    gap: 1rem;
    justify-content: space-around;
    margin: 1rem;
}

#cart-heading {
    font-weight: bold;
    font-size: 1.3rem;
    color: black;
}

h3,
p,
i,
h4 {
    color: black;
}

hr {
    width: 100%;
}

#your-cart,
#order-summary {
    display: flex;
    flex-direction: column;
    font-weight: bold;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid black;
}

#your-cart {
    width: 65%;
}

#order-summary {
    width: 35%;
    height: 50%;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
}

.cart-left {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    height: 100%;
}

.cart-details input {
    margin-top: 1.5rem;
}

.cart-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-img {
    height: 100px;
    width: 100px;
}

#grand-total {
    border: var(--bg) solid 1px;
    width: 100%;
    border-radius: 4px;
}

    #grand-total button {
        border: 1px solid black;
        width: 100%;
        justify-self: center;
        border-radius: 4px;
        height: 1.75rem;
        margin: 0.5rem 0;
        font-weight: bold;
        font-size: 1rem;
        cursor: pointer;
    }

        #grand-total button:hover {
            box-shadow: inset 4px 4px 8px var(--muted), inset -4px -4px 8px var(--muted);
            transition: 0.5s;
            transform: translateY(1px);
        }

@media (max-width: 768px) {
    #cart-page-main {
        flex-direction: column;
        justify-content: center;
    }

    #your-cart,
    #order-summary {
        flex: 1 1 100%;
    }
}

/* Panels */
#your-cart,
#order-summary {
    background: var(--figma-dark);
    border: 1px solid var(--figma-gold);
    padding: 2rem;
    border-radius: 16px;
    color: var(--figma-text);
    flex: 1 1 45%;
}

/* Title */
.deck-title {
    font-family: 'Metamorphous', serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--figma-gold);
    letter-spacing: 0.5px;
}

/* Items */
.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cart-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
}

.cart-info h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--figma-gold);
}

.cart-info p {
    font-size: 0.875rem;
    margin: 0.25rem 0;
    color: var(--figma-text);
}

/* Qty */
.qty {
    display: inline-flex;
    gap: 0.25rem;
    align-items: center;
}

.qty-btn {
    background: var(--figma-gold);
    border: none;
    color: var(--figma-dark);
    font-weight: bold;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    font-size: 1rem;
}

.qty-input {
    width: 40px;
    height: 30px;
    text-align: center;
    background: var(--figma-dark);
    border: 1px solid var(--figma-gold);
    color: var(--figma-gold);
    border-radius: 6px;
}

.checkout-btn {
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    background: var(--figma-bronze); /* #9C704C */
    color: var(--figma-dark); /* #252230 */
    border: none;
    border-radius: 12px;
    font-family: 'Metamorphous', serif;
    font-size: 1.5rem; /* text size */
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    line-height: 1; /* keeps text vertically centered */
}

    .checkout-btn:hover {
        background: var(--figma-gold); /* #CFB482 */
        color: var(--figma-dark);
    }
/* body for cart main */
/* Full-bleed PNG background for cart */
#cart-page-main {
    --cart-bg: url('Content/background.jpeg'); /* <-- background Jpeg path */
    /* dark tint over the art to keep text legible */
    background-image: linear-gradient(rgba(28,26,39,.78), rgba(28,26,39,.78)), var(--cart-bg);
    background-position: center;
    background-size: cover; /* scales to fill */
    background-repeat: no-repeat;
    background-attachment: fixed; /* subtle parallax (disable on iOS below) */
    padding: 3rem 0;
}

/* iOS/mobile prefers no fixed backgrounds for performance */
@media (max-width: 820px) {
    #cart-page-main {
        background-attachment: scroll;
    }
}

/* === Cart two-column layout (force) === */
.cart-inner {
    display: flex;
    flex-wrap: nowrap; /* stay side-by-side */
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    margin: 20px;
}

#your-cart {
    flex: 0 64%;
    min-width: 0;
}

#order-summary {
    flex: 0 32%;
    min-width: 0;
}

/* Stack on small screens only */
@media (max-width: 900px) {
    .cart-inner {
        flex-wrap: wrap;
    }

    #your-cart, #order-summary {
        flex: 1 1 100%;
    }
}
