/* Color Variables */
:root {
    --primary: #214948;
    --accent: #ffc107;
    --text: #333;
    --light: #ffffff;
    --gray: #f5f5f5;
}

/* General Styling */
body {
    background-color: var(--gray);
    color: var(--text);
}

/* Wishlist Container */
.wishlist-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Wishlist Item */
.wishlist-item {
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background-color: var(--light);
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.wishlist-item:last-child {
    border-bottom: none;
}

.wish-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.wish-right {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
}

/* Product Image */
.product-image {
    width: 100px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Product Info */
.product-info {
    text-align: center;
    width: 100%;
}

.product-name {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.rating {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.badge-review {
    background-color: var(--accent);
    color: var(--text);
}

.price-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Price Styling */
.price {
    font-size: 1.25rem;
    font-weight: bold;
    color: orangered;
}

.original-price {
    text-decoration: line-through;
    color: #888;
}

.discount {
    color: #28a745;
    font-weight: 500;
}

/* Action Icons */
.actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.icon-btn-cart, .icon-btn-delete {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.5rem;
}

.icon-btn-cart {
    color: var(--primary);
}

.icon-btn-cart:hover {
    color: rgb(109, 109, 220);
}

.icon-btn-delete {
    color: red;
}

.icon-btn-delete:hover {
    color: #28a745;
}

/* Confirmation Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: var(--light);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    width: 90%;
    max-width: 400px;
}

.d-none {
    display: none;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 1rem;
}

.btn-light {
    background-color: #f8f9fa;
    border: 1px solid #ccc;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .wishlist-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .wish-left {
        flex-direction: row;
        align-items: center;
        width: auto;
    }

    .wish-right {
        flex-direction: column;
        width: auto;
        margin-top: 0;
    }

    .product-image {
        margin-right: 1rem;
        margin-bottom: 0;
    }

    .product-info {
        text-align: left;
        padding: 0 1rem;
    }

    .rating, .price-section {
        justify-content: flex-start;
    }

    .actions {
        flex-direction: column;
    }
}