/* Wishlist Button */
.wc-wishlist-button {
    display: inline-block;
    position: relative;
    margin: 0 5px;
    width: 36px;
    height: 36px;
    text-align: center;
    line-height: 36px;
    border-radius: 50%;
    background: #f8f8f8;
    transition: all 0.3s ease;
}

.wc-wishlist-button:hover {
    background: #ebebeb;
}

.wc-wishlist-button.loading {
    opacity: 0.5;
    pointer-events: none;
}

.wc-wishlist-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    position: relative;
}

/* Heart icon using pseudo-elements */
.wc-wishlist-icon:before,
.wc-wishlist-icon:after {
    content: '';
    position: absolute;
    top: 0;
    width: 10px;
    height: 16px;
    border-radius: 10px 10px 0 0;
    background: #999;
    transition: all 0.3s ease;
}

.wc-wishlist-icon:before {
    left: 0;
    transform: rotate(-45deg);
    transform-origin: 100% 100%;
}

.wc-wishlist-icon:after {
    left: 8px;
    transform: rotate(45deg);
    transform-origin: 0 100%;
}

/* Added to wishlist state */
.wc-wishlist-button.added .wc-wishlist-icon:before,
.wc-wishlist-button.added .wc-wishlist-icon:after {
    background: #e94b35;
}

/* Wishlist Table */
.wc-wishlist-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.wc-wishlist-table th,
.wc-wishlist-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ebebeb;
}

.wc-wishlist-table th {
    background: #f8f8f8;
}

.wc-wishlist-item {
    transition: opacity 0.3s ease;
}

.wc-wishlist-item.loading {
    opacity: 0.5;
}

.wc-wishlist-item-image {
    width: 80px;
}

.wc-wishlist-item-image img {
    max-width: 100%;
    height: auto;
}

.wc-wishlist-remove {
    color: #e94b35;
    text-decoration: none;
}

.wc-wishlist-remove:hover {
    text-decoration: underline;
}

.wc-wishlist-empty {
    padding: 30px 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 767px) {
    .wc-wishlist-table,
    .wc-wishlist-table thead,
    .wc-wishlist-table tbody,
    .wc-wishlist-table th,
    .wc-wishlist-table td,
    .wc-wishlist-table tr {
        display: block;
    }
    
    .wc-wishlist-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .wc-wishlist-table tr {
        border: 1px solid #ebebeb;
        margin-bottom: 15px;
    }
    
    .wc-wishlist-table td {
        border: none;
        border-bottom: 1px solid #ebebeb;
        position: relative;
        padding-left: 50%;
    }
    
    .wc-wishlist-table td:before {
        position: absolute;
        top: 15px;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
    }
    
    .wc-wishlist-table td:nth-of-type(1):before { content: "Product"; }
    .wc-wishlist-table td:nth-of-type(2):before { content: "Price"; }
    .wc-wishlist-table td:nth-of-type(3):before { content: "Stock"; }
    .wc-wishlist-table td:nth-of-type(4):before { content: "Actions"; }
}