.cart-page {
    background: linear-gradient(180deg, #fff 0%, #fdf6ff 100%);
    min-height: 70vh;
    padding: 48px 0 80px;
}
.cart-page .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.cart-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--purple-dark);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.cart-title i { font-size: 28px; }
.cart-title-count {
    font-size: 14px;
    font-weight: 500;
    color: #888;
    padding: 4px 12px;
    background: #f3e8ff;
    border-radius: 999px;
}

/* Empty state */
.cart-empty {
    text-align: center;
    padding: 80px 20px;
}
.cart-empty i {
    font-size: 64px;
    color: #d8b4fe;
    margin-bottom: 18px;
    display: block;
}
.cart-empty p { font-size: 18px; color: #888; margin-bottom: 28px; }
.btn-shop-now {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(90deg, var(--purple-dark), #9932CC);
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    transition: opacity 0.2s;
}
.btn-shop-now:hover { opacity: 0.88; color: #fff; }

/* Two-column layout */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}
@media (max-width: 860px) {
    .cart-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .cart-page {
        padding: 30px 0 48px;
    }

    .cart-page .container {
        padding: 0 14px;
    }

    .cart-title {
        font-size: 28px;
        margin-bottom: 22px;
        flex-wrap: wrap;
    }

    .cart-title-count {
        font-size: 13px;
    }

    .cart-item {
        padding: 16px;
        gap: 12px;
    }

    .cart-item-image-link {
        width: 72px;
        height: 72px;
        flex: 0 0 72px;
    }

    .cart-item-info {
        min-width: 0;
    }

    .cart-item-controls {
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }

    .cart-item-line-total {
        text-align: left;
    }

    .cart-summary {
        padding: 22px 18px;
    }
}

@media (max-width: 480px) {
    .cart-item {
        align-items: flex-start;
    }

    .cart-item-controls {
        gap: 10px;
    }

    .cart-item-line-total {
        width: 100%;
        order: 3;
    }

    .cart-remove-btn {
        margin-left: auto;
    }

    .summary-row {
        gap: 10px;
        font-size: 14px;
    }
}

/* Items list */
.cart-items { display: flex; flex-direction: column; gap: 14px; }
.cart-item {
    background: #fff;
    border: 1px solid #ede6f7;
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(106, 13, 173, 0.05);
    flex-wrap: wrap;
}
.cart-item-image-link {
    width: 82px;
    height: 82px;
    border-radius: 12px;
    overflow: hidden;
    flex: 0 0 82px;
    border: 1px solid #eee4fa;
    display: block;
}
.cart-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cart-item-info { flex: 1; min-width: 160px; }
.cart-item-name { font-size: 16px; font-weight: 600; color: var(--text-dark); margin-bottom: 4px; }
.cart-item-name a { color: inherit; text-decoration: none; }
.cart-item-name a:hover { color: var(--purple-dark); }
.cart-item-variant { font-size: 13px; color: #888; margin-bottom: 4px; }
.cart-item-unit-price { font-size: 13px; color: #888; }
.cart-item-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* Quantity controls */
.qty-form {
    display: flex;
    align-items: center;
    border: 1.5px solid #d8c8ec;
    border-radius: 999px;
    overflow: hidden;
}
.qty-btn {
    background: none;
    border: none;
    width: 34px;
    height: 34px;
    font-size: 18px;
    font-weight: 600;
    color: var(--purple-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.qty-btn:hover { background: #f3e8ff; }
.qty-val {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    min-width: 30px;
    text-align: center;
}
.cart-item-line-total {
    font-size: 17px;
    font-weight: 700;
    color: var(--purple-dark);
    min-width: 70px;
    text-align: right;
}
.cart-remove-btn {
    background: none;
    border: none;
    color: #c0392b;
    font-size: 16px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    transition: background 0.15s;
}
.cart-remove-btn:hover { background: #fee2e2; }

/* Order summary card */
.cart-summary {
    background: #fff;
    border: 1px solid #ede6f7;
    border-radius: 16px;
    padding: 26px 22px;
    box-shadow: 0 4px 16px rgba(106, 13, 173, 0.07);
    position: sticky;
    top: 95px;
}
.cart-summary h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--purple-dark);
    margin-bottom: 20px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: #555;
    margin-bottom: 12px;
}
.summary-total {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    border-top: 1.5px solid #ede6f7;
    padding-top: 14px;
    margin-top: 6px;
}
.btn-checkout {
    display: block;
    width: 100%;
    margin-top: 22px;
    padding: 13px 0;
    background: linear-gradient(90deg, var(--purple-dark), #9932CC);
    color: #fff;
    border-radius: 999px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
}
.btn-checkout:hover { opacity: 0.88; color: #fff; }
.btn-continue {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 11px 0;
    border: 1.5px solid #c7a8e6;
    background: #fff;
    color: var(--purple-dark);
    border-radius: 999px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}
.btn-continue:hover { background: #f3e8ff; color: var(--purple-dark); }
