/**
 * WooCommerce Wishlist Styles
 * Version: 1.0.9
 * Aligned with custom-wishlist.php
 */

/* ============================================================================
   WISHLIST COUNT BADGE (My Account Menu)
   ============================================================================ */
.wishlist-count {
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    margin-left: 6px;
    padding: 0 5px;
    vertical-align: middle;
}

/* ============================================================================
   WISHLIST ICON ON PRODUCT LOOP (Injected via JS)
   ============================================================================ */
.wc-wishlist-icon-wrapper {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Show on hover */
.product-small.box:hover .wc-wishlist-icon-wrapper,
.product-small:hover .wc-wishlist-icon-wrapper {
    opacity: 1;
    visibility: visible;
}

.wc-wishlist-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.wc-wishlist-icon:hover {
    background: #fff;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.wc-wishlist-icon svg {
    width: 20px;
    height: 20px;
    color: #333;
    transition: all 0.3s ease;
}

/* In wishlist state */
.wc-wishlist-icon.in-wishlist {
    background: #e74c3c;
}

.wc-wishlist-icon.in-wishlist svg {
    color: #fff;
}

.wc-wishlist-icon.in-wishlist svg path {
    fill: #fff;
    fill-opacity: 1;
    stroke: #fff;
}

.wc-wishlist-icon.in-wishlist:hover {
    background: #c0392b;
}

/* Loading state */
.wc-wishlist-icon.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* ============================================================================
   WISHLIST ICON ON SINGLE PRODUCT PAGE
   ============================================================================ */
.wc-wishlist-single-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width: 50px;
    height: 50px;
    padding: 0;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.wc-wishlist-single-icon:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.wc-wishlist-single-icon svg {
    width: 24px;
    height: 24px;
    color: #333;
    transition: all 0.3s ease;
}

.wc-wishlist-single-icon.in-wishlist {
    background: #e74c3c;
}

.wc-wishlist-single-icon.in-wishlist svg {
    color: #fff;
}

.wc-wishlist-single-icon.in-wishlist svg path {
    fill: #fff;
    fill-opacity: 1;
    stroke: #fff;
}

.wc-wishlist-single-icon.in-wishlist:hover {
    background: #c0392b;
}

.wc-wishlist-single-icon.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* ============================================================================
   WISHLIST PAGE CONTAINER
   ============================================================================ */
.wc-wishlist-page {
    padding: 20px 0;
}

.woocommerce-wishlist-guest-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.woocommerce-wishlist-guest-page .entry-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
}

.woocommerce-wishlist-guest-page .wc-wishlist-page {
    padding: 0;
}

/* Guest notice banner */
.guest-wishlist-notice {
    margin-bottom: 30px;
    padding: 20px;
    background: #e8f4f8;
    border-left: 4px solid #2c3e50;
    border-radius: 4px;
}

.guest-wishlist-notice p {
    margin: 0 0 15px;
    line-height: 1.6;
}

.guest-wishlist-notice p:last-child {
    margin-bottom: 0;
}

.guest-wishlist-notice strong {
    color: #2c3e50;
    font-size: 16px;
}

/* ============================================================================
   EMPTY WISHLIST STATE
   ============================================================================ */
.wc-wishlist-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.wishlist-empty-icon {
    margin: 0 auto 20px;
    color: #ddd;
}

.wc-wishlist-empty h3 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.wc-wishlist-empty p {
    margin: 0 0 20px;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.wc-wishlist-empty .guest-hint {
    font-size: 14px;
    font-style: italic;
    color: #999;
    margin-bottom: 30px;
}

.wc-wishlist-empty .button {
    margin-top: 10px;
}

/* ============================================================================
   WISHLIST GRID LAYOUT
   ============================================================================ */
.wc-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* ============================================================================
   WISHLIST ITEM CARD
   ============================================================================ */
.wc-wishlist-item {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.wc-wishlist-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Item Image */
.wishlist-item-image {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 1;
}

.wishlist-item-image a {
    display: block;
    height: 100%;
}

.wishlist-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.wc-wishlist-item:hover .wishlist-item-image img {
    transform: scale(1.05);
}

/* Remove Button on Item */
.wishlist-item-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: #666;
    z-index: 5;
}

.wishlist-item-remove:hover {
    background: #e74c3c;
    color: #fff;
    transform: scale(1.1);
}

/* Item Details */
.wishlist-item-details {
    padding: 15px;
}

.wishlist-item-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.wishlist-item-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.wishlist-item-title a:hover {
    color: #2c3e50;
}

/* Item Price */
.wishlist-item-price {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

.wishlist-item-price del {
    color: #999;
    font-weight: 400;
    font-size: 14px;
    margin-right: 5px;
}

.wishlist-item-price ins {
    text-decoration: none;
    color: #e74c3c;
}

/* Stock Status */
.wishlist-item-stock {
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 500;
}

.wishlist-item-stock .in-stock {
    color: #27ae60;
}

.wishlist-item-stock .out-of-stock {
    color: #e74c3c;
}

/* Item Actions */
.wishlist-item-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wishlist-item-actions .button {
    flex: 1;
    min-width: 120px;
    text-align: center;
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.wishlist-item-actions .add-to-cart-button {
    background: #2c3e50;
    color: #fff;
    border: 2px solid #2c3e50;
}

.wishlist-item-actions .add-to-cart-button:hover {
    background: #1a252f;
    border-color: #1a252f;
}

.wishlist-item-actions .button-secondary {
    background: transparent;
    color: #333;
    border: 2px solid #ddd;
}

.wishlist-item-actions .button-secondary:hover {
    background: #f5f5f5;
    border-color: #999;
}

/* Item Date */
.wishlist-item-date {
    padding: 10px 15px;
    background: #f9f9f9;
    font-size: 12px;
    color: #999;
    border-top: 1px solid #e1e1e1;
    text-align: center;
}

/* Removing state */
.wc-wishlist-item.removing {
    opacity: 0.5;
    pointer-events: none;
}
.wc-wishlist-item:hover .wishlist-item-remove{
    background:  #e74c3c !important;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

/* Tablet */
@media (max-width: 768px) {
    .wc-wishlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }

    .woocommerce-wishlist-guest-page {
        padding: 30px 15px;
    }

    .woocommerce-wishlist-guest-page .entry-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .wc-wishlist-icon {
        width: 36px;
        height: 36px;
    }

    .wc-wishlist-icon svg {
        width: 18px;
        height: 18px;
    }

    .wc-wishlist-single-icon {
        width: 45px;
        height: 45px;
    }

    .wc-wishlist-single-icon svg {
        width: 22px;
        height: 22px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .wc-wishlist-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .wc-wishlist-empty {
        padding: 40px 15px;
    }

    .wc-wishlist-empty h3 {
        font-size: 20px;
    }

    .wc-wishlist-empty p {
        font-size: 14px;
    }

    .wishlist-item-actions {
        flex-direction: column;
    }

    .wishlist-item-actions .button {
        width: 100%;
        min-width: auto;
    }

    .wishlist-item-title {
        font-size: 15px;
    }

    .wishlist-item-price {
        font-size: 16px;
    }

    .guest-wishlist-notice {
        padding: 15px;
    }

    .woocommerce-wishlist-guest-page .entry-title {
        font-size: 22px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .wc-wishlist-icon {
        width: 32px;
        height: 32px;
    }

    .wc-wishlist-icon svg {
        width: 16px;
        height: 16px;
    }
}


/* Wishlist Css */


.wc-wishlist-icon svg{
	color:#e74c3c!important;
}
.wishlist-item-remove svg path{
	fill:#ff0000;
}

.wc-wishlist-page .wc-wishlist-item .wishlist-item-actions .add-to-cart-button{
	background:#75dcf2!important;
	color:#fff!important;
	border:unset;
	margin:0px!important;
	margin-bottom:7px!important;
	border-radius:100px;
	padding:6px 10px!important;
}

.wc-wishlist-page .wc-wishlist-item .wishlist-item-actions .add-to-cart-button:hover{
	background:#d66ce8!important;
}

.wc-wishlist-page .wc-wishlist-item .wishlist-item-details{
	text-align:center;
}

.wc-wishlist-page .wc-wishlist-item .wishlist-item-actions .button-secondary{
		display:none;
}

.wc-wishlist-page .wc-wishlist-item .wishlist-item-details{
	height:190px;
}

.wc-wishlist-page .amount{
    background: linear-gradient(137deg, rgba(117, 220, 242, 1) 20%, rgba(214, 108, 232, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.guest-wishlist-notice .button{
	background:#75dcf2!important;
	color:#fff!important;
	border-radius:100px;
}

.guest-wishlist-notice .button:hover{
		background:#d66ce8!important;
}

.guest-wishlist-notice{
	border-left:4px solid #75dcf2;
}

@media (max-width:767px){
.wc-wishlist-page .wc-wishlist-item .wishlist-item-details{
	height:unset;
}	
	
	.wishlist-item-actions .button{
		font-size:12px;
	}
}