/* Wishlist Button Styles */
.add-to-wishlist {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    margin-bottom: 15px;
    outline: none;
    width: 100%;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
}

.add-to-wishlist:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.add-to-wishlist.added {
    background-color: #f7f7f7;
    color: #e03a3a;
    border-color: #e03a3a;
}

.add-to-wishlist i {
    margin-right: 5px;
    font-size: 16px;
}

.add-to-wishlist:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* WooCommerce single product page */
.woocommerce div.product form.cart {
    margin-bottom: 15px;
}

/* Center the wishlist button container on single product page */
.wishlist-button-wrapper {
    text-align: center;
    margin: 10px 0;
    display: flex;
    justify-content: center;
}

.woocommerce div.product .woocommerce-product-details__short-description + .add-to-wishlist,
.woocommerce div.product p + .add-to-wishlist {
    display: block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Wishlist notification */
.wishlist-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 15px 20px;
    border-radius: 4px;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 300px;
}

.wishlist-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.wishlist-notification.error {
    background-color: #f44336;
}

.wishlist-notification i {
    margin-right: 10px;
    font-size: 18px;
}

/* Wishlist Items in Dashboard */
.wishlist-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 992px) {
    .wishlist-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .wishlist-items {
        grid-template-columns: 1fr;
    }
}

.wishlist-item {
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

.wishlist-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.wishlist-item-image {
    position: relative;
    padding-bottom: 100%;
    height: 0;
    overflow: hidden;
}

.wishlist-item-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wishlist-item-info {
    padding: 15px;
}

.wishlist-item-info h3 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
}

.wishlist-item-info .price {
    color: #e03a3a;
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
}

.wishlist-item-info .button {
    display: inline-block;
    padding: 8px 12px;
    font-size: 13px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.remove-from-wishlist {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: white;
    border: none;
    color: #e03a3a;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.wishlist-item:hover .remove-from-wishlist {
    opacity: 1;
    transform: scale(1);
}

.remove-from-wishlist:hover {
    background-color: #e03a3a;
    color: white;
}

/* Shop page wishlist button */
.products .product .add-to-wishlist {
    margin-top: 5px;
    font-size: 12px;
    padding: 5px 10px;
}

.products .product .add-to-wishlist i {
    font-size: 14px;
} 