/* ======================================== */
/* ASCENT CART — PREMIUM MINIMAL DESIGN */
/* ======================================== */

.cart-page {
    max-width: 1200px;
    margin: 70px auto;
    padding: 0 24px;
}

/* ======================================== */
/* HEADER */
/* ======================================== */

.cart-header {
    margin-bottom: 45px;
}

.cart-title {
    font-size: 2.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.cart-sub {
    color: var(--secondary);
    font-size: 0.95rem;
}

/* ======================================== */
/* LAYOUT */
/* ======================================== */

.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

/* ======================================== */
/* ITEMS */
/* ======================================== */

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ======================================== */
/* ITEM CARD */
/* ======================================== */

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;

    padding: 20px;

    background: var(--card);

    border: 1px solid var(--border);
    border-radius: 18px;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.cart-item:hover {
    transform: translateY(-4px);

    border-color: rgba(255,255,255,0.12);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.08);
}

/* ======================================== */
/* IMAGE */
/* ======================================== */

.cart-item img,
.cart-img-placeholder {
    width: 100px;
    height: 100px;

    border-radius: 14px;

    object-fit: cover;

    background: #f4f4f4;
}

.cart-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #aaa;

    font-size: 0.7rem;
    letter-spacing: 2px;
}

/* ======================================== */
/* INFO */
/* ======================================== */

.cart-info {
    flex: 1;
}

.cart-info h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    font-weight: 600;
}

.cart-info p {
    font-size: 0.88rem;
    color: var(--secondary);
    line-height: 1.5;
}

/* ======================================== */
/* CONTROLS */
/* ======================================== */

.cart-actions {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 16px;
}

/* QUANTITY BUTTONS */

.qty-btn {
    width: 34px;
    height: 34px;

    border-radius: 10px;

    border: 1px solid var(--border);

    background: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 0.95rem;

    cursor: pointer;

    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: black;
    color: white;
    border-color: black;
}

/* QTY */

.qty {
    min-width: 28px;

    text-align: center;

    font-size: 0.95rem;
    font-weight: 600;
}

/* ======================================== */
/* RIGHT */
/* ======================================== */

.cart-right {
    text-align: right;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    min-height: 100px;
}

.cart-right p {
    font-size: 1.05rem;
    font-weight: 700;
}

/* REMOVE */

.remove-btn {
    margin-top: 10px;

    background: transparent;
    border: none;

    color: #999;

    font-size: 0.82rem;

    cursor: pointer;

    transition: 0.2s;
}

.remove-btn:hover {
    color: #111;
}

/* ======================================== */
/* SUMMARY */
/* ======================================== */

.cart-summary {
    position: sticky;
    top: 110px;

    padding: 28px;

    border: 1px solid var(--border);
    border-radius: 20px;

    background: var(--card);

    height: fit-content;
}

/* TITLE */

.cart-summary h2 {
    font-size: 1.15rem;
    margin-bottom: 25px;
}

/* ROW */

.summary-row {
    display: flex;
    justify-content: space-between;

    margin-bottom: 14px;

    font-size: 0.92rem;
    color: var(--secondary);
}

/* TOTAL */

.summary-total {
    display: flex;
    justify-content: space-between;

    margin-top: 25px;
    padding-top: 20px;

    border-top: 1px solid var(--border);

    font-size: 1.15rem;
    font-weight: 700;
}

/* ======================================== */
/* BUTTON */
/* ======================================== */

.checkout-btn {
    width: 100%;

    margin-top: 28px;
    padding: 15px;

    border-radius: 14px;

    font-size: 0.95rem;
    font-weight: 600;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.checkout-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(0,0,0,0.12);
}

/* ======================================== */
/* CONTINUE */
/* ======================================== */

.continue {
    display: block;

    margin-top: 18px;

    text-align: center;

    font-size: 0.88rem;

    color: var(--secondary);

    text-decoration: none;

    transition: 0.2s;
}

.continue:hover {
    color: black;
}

/* ======================================== */
/* EMPTY */
/* ======================================== */

.empty-cart {
    text-align: center;

    padding: 90px 0;

    color: var(--secondary);
}

/* ======================================== */
/* RESPONSIVE */
/* ======================================== */

@media (max-width: 950px) {

    .cart-container {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: relative;
        top: 0;
    }
}

@media (max-width: 650px) {

    .cart-page {
        padding: 0 16px;
    }

    .cart-title {
        font-size: 1.8rem;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-right {
        width: 100%;

        flex-direction: row;
        align-items: center;

        margin-top: 10px;
    }

    .cart-item img,
    .cart-img-placeholder {
        width: 85px;
        height: 85px;
    }
}