/**
 * Wishlist button styles
 */

/* Common styles for all wishlist buttons */
.wishlist-btn,
.wishlist-toggle {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3;
    border-radius: 50%;
    background-color: transparent;
    border: none; /* Removed border */
    box-shadow: none;
}

/* Larger icon size */
.wishlist-btn i,
.wishlist-toggle i {
    font-size: 1.5rem;
    color: var(--bs-primary);
}

/* Active state - no background, just red color */
.wishlist-btn.active,
.wishlist-toggle.btn-danger {
    background-color: transparent;
}

/* Heart icon coloring for active state */
.wishlist-btn.active i,
.wishlist-toggle.btn-danger i {
    color: #dc3545;
}

/* Hover effects */
.wishlist-btn:hover,
.wishlist-toggle:hover {
    transform: scale(1.1);
}

/* Specific adjustments for category pages */
.wishlist-toggle.btn-dark {
    background-color: transparent;
}

.wishlist-toggle.btn-dark i {
    color: var(--bs-primary);
}

/* Position adjustments */
.position-absolute .wishlist-btn,
.position-absolute .wishlist-toggle {
    position: relative;
    top: auto;
    right: auto;
}

/* Remove button shadows and focus effects */
.wishlist-btn:focus,
.wishlist-toggle:focus,
.wishlist-btn:active,
.wishlist-toggle:active {
    box-shadow: none !important;
}

/* Dark background adjustments */
.bg-dark .wishlist-btn i,
.product-card .wishlist-btn i {
    color: #ffffff;
}

/* Promotion section adjustments - make hearts white for visibility */
.bg-parallax .wishlist-btn i {
    color: #ffffff;
}

/* Z-index fix to ensure wishlist buttons are clickable */
.wishlist-btn {
    z-index: 5;
}

/* Fix button positions within product cards */
.position-absolute.top-0.end-0 .wishlist-btn {
    margin-top: -5px;
    margin-right: -5px;
}

/* Ensure consistent product card styles */
.product-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1);
}

.product-card-img {
    max-height: 180px;
    object-fit: contain;
    padding: 5px;
    width: 100%;
}

.product-card .product-title a {
    font-size: 1rem;
}

.product-card .discounted-price,
.product-card .regular-price {
    color: #ffc107;
    font-size: 1.1rem;
}

.product-card .original-price {
    color: #adb5bd;
    font-size: 0.85rem;
}

.product-details-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #adb5bd;
    border-radius: 0.25rem;
    padding: 0.3rem 0.6rem;
}

.product-details-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #f8f9fa;
}
