/**
 * Wishlist Styles
 * 
 * Styles for the wishlist functionality
 * Maintains consistent styling with product carousels and grids
 */

/* Wishlist Buttons */
.mc-wishlist-button,
.mc-wishlist-button-small {
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    transition: all 0.3s ease;
    color: #666;
}

/* Animacja wypełniania serca */
@keyframes heart-fill {
    0% { fill: transparent; }
    50% { fill: rgba(221, 44, 0, 0.5); }
    100% { fill: #DD2C00; }
}

@keyframes heart-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.mc-wishlist-button-small.loading svg,
.mc-wishlist-button.loading svg {
    animation: heart-fill 0.8s ease-in-out;
}

.mc-wishlist-button-small.loading,
.mc-wishlist-button.loading {
    animation: heart-pulse 0.8s ease-in-out;
}

.mc-wishlist-button {
    margin-left: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.mc-wishlist-button-small {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #FCFCFC;
    background-color: #FCFCFC !important;
    border-radius: 0;
    width: 44px;
    height: 44px;
    z-index: 5;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding:0 !important;;
}

.mc-wishlist-button:hover,
.mc-wishlist-button-small:hover {
    color: #e94560;
}

.mc-wishlist-button.in-wishlist,
.mc-wishlist-button-small.in-wishlist {
    color: #e94560;
}

.mc-wishlist-button .dashicons,
.mc-wishlist-button-small .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.mc-wishlist-button:hover .dashicons,
.mc-wishlist-button-small:hover .dashicons {
    transform: scale(1.2);
}

.mc-wishlist-button .wishlist-text {
    margin-left: 5px;
}

/* Wishlist Page */
.mc-wishlist-empty {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
}

.mc-wishlist-empty p {
    margin-bottom: 20px;
    font-size: 18px;
    color: #666;
}

.mc-wishlist-empty .button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #e94560;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.mc-wishlist-empty .button:hover {
    background-color: #d03050;
}

.mc-wishlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.mc-wishlist-header h2 {
    font-size: 24px;
    margin: 0;
}

.mc-wishlist-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Products Grid */
.mc-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Wishlist Item */
.mc-wishlist-item {
    position: relative;
}

.mc-wishlist-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
}

.mc-wishlist-remove:hover {
    background: #e94560;
    color: #fff;
}

.mc-wishlist-remove .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Wishlist Count Badge */
.mc-wishlist-count {
    position: relative;
    display: inline-block;
}

.mc-wishlist-count-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #e94560;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Menu Wishlist Icon */
.menu-item-wishlist {
    position: relative;
}

.menu-item-wishlist a {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.menu-item-wishlist .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
    transition: color 0.3s ease;
}

.menu-item-wishlist:hover .dashicons {
    color: #e94560;
}

/* Custom Wishlist Icon Shortcode */
.mc-wishlist-icon-shortcode {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.mc-wishlist-icon-svg {
    display: inline-block;
    line-height: 0;
}

.mc-wishlist-icon-svg svg {
    transition: all 0.3s ease;
}

.mc-wishlist-icon-shortcode:hover .mc-wishlist-icon-svg svg path {
    stroke: #EB8125;
}

.mc-wishlist-count-badge-custom {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: #EB8125;
    color: #FCFCFC;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-family: Montserrat, sans-serif;
    line-height: 12px;
    text-transform: uppercase;
    z-index: 10;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .mc-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .mc-wishlist-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mc-wishlist-header p {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .mc-products-grid {
        grid-template-columns: 1fr;
    }
}