.cart-page {
    padding: 5rem 0;
    min-height: 100vh;
    background-color: #fdfcf8;
}

.cart-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
}

.cart-title {
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin: 0;
}

/* Top bar with Clear Bag */
.cart-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.clear-cart-btn {
    background: none;
    border: 1.5px solid #ddd;
    color: #888;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.clear-cart-btn:hover {
    border-color: #e00;
    color: #e00;
    background: #fff5f5;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.cart-item {
    display: flex;
    gap: 25px;
    padding: 25px 0;
    border-bottom: 1px solid #eee;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.cart-item-img {
    width: 140px;
    height: 140px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.item-header h4 {
    font-weight: 500;
    font-size: 1.15rem;
    margin: 0;
}

.item-price {
    font-weight: 700;
    color: #8A2BE2;
    font-size: 1.1rem;
}

.item-meta {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 15px;
}

/* Item Actions row */
.item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.qty-controls {
    display: inline-flex;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 4px;
}

.qty-controls button {
    background: none;
    border: none;
    padding: 5px 15px;
    cursor: pointer;
    font-size: 1rem;
}

.qty-controls span {
    padding: 0 10px;
    font-weight: 500;
    min-width: 30px;
    text-align: center;
}

/* Remove Item Button */
.remove-item-btn {
    background: none;
    border: 1px solid #eee;
    color: #aaa;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.82rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.remove-item-btn:hover {
    border-color: #e00;
    color: #e00;
    background: #fff5f5;
}

/* Empty Cart */
.cart-page-empty {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.empty-cart-message i {
    font-size: 5rem;
    color: #eee;
    margin-bottom: 2rem;
    display: block;
}

.empty-cart-message h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.empty-cart-message p {
    color: #999;
    margin-bottom: 2.5rem;
}

.start-shopping-btn,
.checkout-btn {
    background-color: #000;
    color: #333333;
    border: none;
    padding: 18px 45px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.checkout-btn {
    width: 100%;
    background-color: #8A2BE2;
    color: #000;
    font-weight: 700;
    margin-top: 2rem;
}

/* View Wishlist Link in Summary */
.view-wishlist-link {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #b59b5a;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
    transition: color 0.2s;
}

.view-wishlist-link:hover {
    color: #8a7235;
}

/* Wishlist empty state link */
.wishlist-link-empty {
    display: block;
    margin-top: 1.5rem;
    color: #b59b5a;
    text-decoration: none;
    font-size: 0.95rem;
}

.wishlist-link-empty:hover {
    text-decoration: underline;
}

/* Wishlist count badge on nav heart icon */
.wishlist-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #b59b5a;
    color: #333333;
    border-radius: 50%;
    font-size: 0.6rem;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

@media (max-width: 992px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cart-page {
        padding: 3rem 0;
    }

    .cart-container {
        padding: 0 4%;
    }

    .cart-title {
        font-size: 1.7rem;
    }

    .cart-item {
        flex-direction: column;
        gap: 15px;
    }

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

    .item-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .item-actions {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .cart-title {
        font-size: 1.4rem;
    }

    .cart-item-img {
        height: 180px;
    }

    .start-shopping-btn,
    .checkout-btn {
        padding: 14px 24px;
        font-size: 0.9rem;
    }
}