/**
 * Wishlist Styles
 */

/* Quick View + Wishlist Button Floating container */
.abr-product-floating-actions {
    display: flex;
    flex-direction: column;
    gap: var(--abr-product-actions-gap, 8px);
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 30;
}

[dir="rtl"] .abr-product-floating-actions {
    right: auto;
    left: 15px;
}

/* Base button styles */
.aurabricks-wishlist-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: #fff;
    color: #111827;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.abr-product-card:hover .aurabricks-wishlist-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Icon */
.abr-wishlist-icon {
    width: 20px;
    height: 20px;
    transition: all 0.3s;
}

.aurabricks-wishlist-btn:hover {
    color: #ef4444;
    transform: scale(1.05) !important;
}

/* Active State */
.aurabricks-wishlist-btn.in-wishlist {
    color: #ef4444;
}

.aurabricks-wishlist-btn.in-wishlist .abr-wishlist-icon {
    fill: #ef4444;
    stroke: #ef4444;
}

/* Single Product Page Button */
.aurabricks-wishlist-btn.single-product-btn {
    opacity: 1;
    transform: none;
    width: auto;
    height: auto;
    padding: 12px 24px;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    box-shadow: none;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
    margin-bottom: 25px;
}

.aurabricks-wishlist-btn.single-product-btn:hover {
    background: #f1f5f9;
    color: #ef4444;
}

.aurabricks-wishlist-btn.single-product-btn.in-wishlist {
    background: #fef2f2;
    color: #ef4444;
}

/* Loading animation */
.aurabricks-wishlist-btn.is-loading {
    opacity: 0.7;
    pointer-events: none;
}
.aurabricks-wishlist-btn.is-loading .abr-wishlist-icon {
    animation: abr-pulse 1s infinite alternate;
}
@keyframes abr-pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.2); }
}

/* --- Table Styles --- */
.aurabricks-wishlist-table-container {
    overflow-x: auto;
    width: 100%;
    margin-bottom: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.aurabricks-wishlist-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    margin: 0 !important;
}

.aurabricks-wishlist-table th {
    text-align: left;
    padding: 16px;
    border-bottom: 2px solid #f1f5f9;
    color: #475569;
    font-weight: 600;
    background: #f8fafc;
}

[dir="rtl"] .aurabricks-wishlist-table th {
    text-align: right;
}

.aurabricks-wishlist-table td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.aurabricks-wishlist-table .product-remove {
    width: 50px;
    text-align: center;
}

.aurabricks-wishlist-table .product-remove .aurabricks-wishlist-btn {
    opacity: 1;
    transform: none;
    box-shadow: none;
    background: transparent;
    color: #94a3b8;
    margin: 0 auto;
}

.aurabricks-wishlist-table .product-remove .aurabricks-wishlist-btn:hover {
    color: #ef4444;
    transform: rotate(90deg) !important;
}

.aurabricks-wishlist-table .product-thumbnail img {
    width: 80px;
    height: auto;
    border-radius: 8px;
    display: block;
}

.aurabricks-wishlist-table .product-name a {
    color: #0f172a;
    font-weight: 500;
    text-decoration: none;
    font-size: 16px;
}

.aurabricks-wishlist-table .product-name a:hover {
    color: #4f46e5;
}

.aurabricks-wishlist-table .product-stock-status .stock.in-stock {
    color: #10b981;
    font-weight: 500;
}

.aurabricks-wishlist-table .product-stock-status .stock.out-of-stock {
    color: #ef4444;
    font-weight: 500;
}

.aurabricks-wishlist-table .product-add-to-cart .button {
    background: #4f46e5;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.aurabricks-wishlist-table .product-add-to-cart .button:hover {
    background: #4338ca;
}

.aurabricks-wishlist-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.aurabricks-wishlist-empty p {
    font-size: 18px;
    color: #475569;
    margin-bottom: 24px;
}

.aurabricks-wishlist-empty a.button {
    background: #4f46e5;
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
}

.aurabricks-wishlist-empty a.button:hover {
    background: #4338ca;
}

/* Mobile Fixes */
@media (max-width: 768px) {
    .aurabricks-wishlist-btn {
        opacity: 1; /* Always show on touch */
        transform: none;
    }
}
