/**
 * Public styles voor WooCommerce Wishlist
 * Minimal styling to work with most WordPress themes
 *
 * @since      1.0.0
 * @package    WC_Wishlist
 * @subpackage WC_Wishlist/public/css
 */

:root {
    --vwish-button-color: #e74c3c;
    --vwish-button-text-color: #ffffff;
    --vwish-in-wishlist-color: #27ae60;
    --vwish-in-wishlist-text-color: #ffffff;
}

/* ==========================================================================
   Wishlist Button Styles
   ========================================================================== */

.vwish-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--vwish-button-color, #e74c3c);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: inherit;
    line-height: 1;
    background-color: var(--vwish-button-color, #e74c3c);
    color: var(--vwish-button-text-color, #ffffff);
}

/* Only apply in-wishlist styles to filled and outline, not minimal */
.vwish-button.vwish-filled.in-wishlist,
.vwish-button.vwish-outline.in-wishlist {
    background-color: var(--vwish-in-wishlist-color, #27ae60);
    color: var(--vwish-in-wishlist-text-color, #ffffff);
    border-color: var(--vwish-in-wishlist-color, #27ae60);
}

.vwish-button:hover {
    opacity: 0.8;
    text-decoration: none;
}

.vwish-button:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.vwish-button.loading {
    opacity: 0.7;
    pointer-events: none;
}

.vwish-button.loading .fa-solid,
.vwish-button.loading .fa-regular {
    position: relative;
}

.vwish-button.loading .fa-solid::after,
.vwish-button.loading .fa-regular::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: vwish-spin 0.8s linear infinite;
}

.vwish-button.loading .fa-solid > *,
.vwish-button.loading .fa-regular > * {
    opacity: 0;
}

/* Icon only buttons */
.vwish-button.icon-only {
    padding: 8px;
    min-width: 36px;
    justify-content: center;
}

.vwish-button.icon-only .vwish-text {
    display: none;
}

/* Button icon */
.vwish-icon {
    line-height: 1;
    display: flex;
    align-items: center;
}

/* Button text */
.vwish-text {
    white-space: nowrap;
}

/* Loop button container */
.vwish-loop-button {
    margin-top: 8px;
    text-align: center;
}

.vwish-loop-button .vwish-button {
    width: 100%;
    justify-content: center;
    margin: 0;
}

/* ==========================================================================
   Wishlist Page Styles
   ========================================================================== */

.vwish-container {
    margin-bottom: 2em;
}

.vwish-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5em;
    padding-bottom: 1em;
    border-bottom: 1px solid;
    border-color: inherit;
}

.vwish-title {
    margin: 0;
}

.vwish-actions {
    display: flex;
    align-items: center;
    gap: 1em;
}

.vwish-count {
    color: #666;
}

/* Empty wishlist */
.vwish-empty {
    text-align: center;
    padding: 3em 1em;
    border: 1px solid #ddd;
    background: #f9f9f9;
    border-radius: 3px;
}

.vwish-empty-icon {
    font-size: 3em;
    color: #ccc;
    margin-bottom: 0.5em;
}

.vwish-empty h3 {
    margin: 0 0 0.5em 0;
}

.vwish-empty p {
    margin: 0 0 1.5em 0;
    color: #666;
}

.vwish-shop-btn {
    display: inline-block;
    padding: 0.75em 1.5em;
    text-decoration: none;
    border: 1px solid currentColor;
    border-radius: 3px;
    transition: opacity 0.2s ease;
}

.vwish-shop-btn:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* ==========================================================================
   Wishlist Table Styles
   ========================================================================== */

.vwish-table-container {
    overflow-x: auto;
    margin-bottom: 1.5em;
}

.vwish-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid;
    border-color: inherit;
}

.vwish-table th,
.vwish-table td {
    padding: 0.75em;
    text-align: left;
    border-bottom: 1px solid;
    border-color: inherit;
    vertical-align: middle;
}

.vwish-table th {
    font-weight: bold;
    background: rgba(0,0,0,0.05);
}

.vwish-table tbody tr:hover {
    background: rgba(0,0,0,0.05);
}

/* Table columns */
.vwish-col-image {
    width: 80px;
    text-align: center;
}

.vwish-col-image img {
    max-width: 60px;
    height: auto;
    border-radius: 3px;
}

.vwish-col-name {
    min-width: 200px;
}

.vwish-product-name {
    text-decoration: none;
    color: inherit;
}

.vwish-product-name:hover {
    text-decoration: underline;
}

.vwish-variation-attributes,
.vwish-categories {
    margin-top: 0.25em;
}

.vwish-variation-attributes small,
.vwish-categories small {
    color: #666;
    font-size: 0.85em;
}

.vwish-col-price {
    width: 100px;
}

.vwish-col-stock {
    width: 120px;
}

.vwish-stock-status {
    padding: 0.25em 0.5em;
    border-radius: 1em;
    font-size: 0.85em;
    border: 1px solid currentColor;
}

.vwish-stock-status.instock {
    color: #28a745;
}

.vwish-stock-status.outofstock {
    color: #dc3545;
}

.vwish-stock-status.onbackorder {
    color: #ffc107;
}

.vwish-col-date {
    width: 100px;
    color: #666;
}

.vwish-col-actions {
    width: 120px;
}

.vwish-add-to-cart {
    padding: 0.5em 1em;
    border-radius: 3px;
    text-decoration: none;
    display: inline-block;
    border: 1px solid currentColor;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.vwish-add-to-cart:hover {
    opacity: 0.8;
    text-decoration: none;
}

.vwish-unavailable {
    opacity: 0.6;
    font-style: italic;
}

.vwish-col-remove {
    width: 50px;
    text-align: center;
}

.vwish-remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5em;
    border-radius: 3px;
    transition: opacity 0.2s ease;
    color: #dc3545;
}

.vwish-remove-btn:hover {
    opacity: 0.8;
}

/* ==========================================================================
   Notification Styles
   ========================================================================== */

.vwish-notification {
    position: fixed;
    top: 60px;
    right: 20px;
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.08);
    z-index: 999999;
    transform: translateX(calc(100% + 40px));
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-width: 380px;
    min-width: 320px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    opacity: 1;
    visibility: visible;
}

/* WordPress admin bar adjustment */
body.admin-bar .vwish-notification {
    top: 92px;
}

.vwish-notification.show {
    transform: translateX(0);
}

.vwish-notification.hide {
    transform: translateX(calc(100% + 40px));
    opacity: 0;
}

.vwish-notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    width: 14px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    background: none;
    padding: 0;
    box-shadow: none;
}

.vwish-notification-close:hover {
    color: #666;
    transform: scale(1.1);
    background: none;
}

.vwish-notification.show {
    transform: translateX(0);
}

.vwish-notification-success {
    /* Clean design without border */
}

.vwish-notification-error {
    /* Clean design without border */
}

.vwish-notification-info {
    /* Clean design without border */
}

.vwish-notification-content {
    display: flex;
    align-items: flex-start;
    padding: 16px 40px 16px 16px;
    gap: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.vwish-notification-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 16px;
    margin-top: 2px;
}

.vwish-notification-success .vwish-notification-icon {
    background: #28a745;
}

.vwish-notification-error .vwish-notification-icon {
    background: #dc3545;
}

.vwish-notification-message {
    flex: 1;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
    color: #1d1d1f;
}

.vwish-notification-actions {
    margin-top: 8px;
    padding-right: 0;
}

.vwish-notification-link {
    display: inline-block;
    padding: 6px 12px;
    text-decoration: none;
    background: #007cba;
    color: white;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.vwish-notification-link:hover {
    background: #005a87;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ==========================================================================
   Counter Badge
   ========================================================================== */

.vwish-count-badge {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 0.125em 0.375em;
    border-radius: 1em;
    font-size: 0.75em;
    font-weight: bold;
    line-height: 1;
    min-width: 1.125em;
    text-align: center;
}



/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes vwish-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .vwish-header {
        flex-direction: column;
        gap: 1em;
        align-items: flex-start;
    }
    
    .vwish-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .vwish-table th,
    .vwish-table td {
        padding: 0.5em;
    }
    
    .vwish-col-image {
        width: 60px;
    }
    
    .vwish-col-image img {
        max-width: 40px;
    }
    
    .vwish-col-date,
    .vwish-variation-attributes,
    .vwish-categories {
        display: none;
    }
    
    .vwish-notification {
        top: 20px;
        right: 12px;
        left: 12px;
        max-width: none;
        min-width: auto;
        transform: translateY(-120%);
    }
    
    .vwish-notification.show {
        transform: translateY(0);
    }
    
    body.admin-bar .vwish-notification {
        top: 52px;
    }
    
}
/* ==========================================================================
   Button Style Variations
   ========================================================================== */

/* Base button styles */
.vwish-button {
    transition: all 0.2s ease;
}

/* Filled Style */
.vwish-button.vwish-filled {
    background-color: var(--vwish-button-color);
    color: var(--vwish-button-text-color);
    border: 1px solid var(--vwish-button-color);
}

.vwish-button.vwish-filled:hover {
    opacity: 0.9;
}

.vwish-button.vwish-filled.in-wishlist {
    background-color: var(--vwish-in-wishlist-color);
    color: var(--vwish-in-wishlist-text-color);
    border-color: var(--vwish-in-wishlist-color);
}

/* Outline Style */
.vwish-button.vwish-outline {
    background: transparent;
    color: var(--vwish-button-color);
    border: 2px solid var(--vwish-button-color);
}

.vwish-button.vwish-outline:hover {
    background-color: var(--vwish-button-color);
    color: var(--vwish-button-text-color);
}

.vwish-button.vwish-outline.in-wishlist {
    background-color: var(--vwish-in-wishlist-color);
    color: var(--vwish-in-wishlist-text-color);
    border-color: var(--vwish-in-wishlist-color);
}

/* Minimal Style */
.vwish-button.vwish-minimal {
    background: transparent;
    color: var(--vwish-button-color);
    border: 1px solid transparent;
}

.vwish-button.vwish-minimal:hover {
    background-color: rgba(0,0,0,0.05);
}

.vwish-button.vwish-minimal.in-wishlist {
    color: var(--vwish-in-wishlist-color);
    font-weight: 600;
}

/* Corner Styles */
.vwish-button.vwish-corners-square {
    border-radius: 0px;
}

.vwish-button.vwish-corners-rounded {
    border-radius: 8px;
}

.vwish-button.vwish-corners-pill {
    border-radius: 25px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 480px) {
    .vwish-button .vwish-text {
        display: none;
    }
    
    .vwish-button {
        padding: 8px;
        min-width: 36px;
        justify-content: center;
    }
}/* =====
=====================================================================
   Button Position Wrappers
   ========================================================================== */

.vwish-single-button-wrapper {
    margin: 15px 0;
    clear: both;
}

.vwish-single-button-wrapper .vwish-button {
    display: inline-flex;
    margin: 0;
}

/* Specific positioning adjustments */
.single-product .vwish-single-button-wrapper {
    margin: 10px 0;
}

/* Loop button wrapper */
.vwish-loop-button {
    margin-top: 10px;
    text-align: center;
    clear: both;
}

.vwish-loop-button .vwish-button {
    width: 100%;
    justify-content: center;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .vwish-single-button-wrapper {
        margin: 8px 0;
    }
    
    .vwish-single-button-wrapper .vwish-button {
        width: 100%;
        justify-content: center;
    }
}/*
 ==========================================================================
   Enhanced Button Positioning
   ========================================================================== */

/* Single product page positioning */
.vwish-single-button-wrapper {
    margin: 10px 0;
    clear: both;
    width: 100%;
}

.vwish-single-button-wrapper .vwish-button {
    display: inline-flex;
    margin: 0;
}

/* Loop/shop page positioning */
.vwish-loop-button-wrapper {
    margin: 8px 0;
    clear: both;
    width: 100%;
}

.vwish-loop-button-wrapper .vwish-button {
    display: inline-flex;
    margin: 0;
    min-width: 120px;
}

/* Button alignment options */
.vwish-loop-button-wrapper.align-left {
    text-align: left;
}

.vwish-loop-button-wrapper.align-center {
    text-align: center;
}

.vwish-loop-button-wrapper.align-right {
    text-align: right;
}

.vwish-loop-button-wrapper.align-full {
    text-align: center;
}

.vwish-loop-button-wrapper.align-full .vwish-button {
    width: 100%;
    justify-content: center;
    min-width: auto;
}

/* Theme-specific adjustments */
.ast-woo-shop-archive .vwish-loop-button-wrapper,
.ast-woo-related-product .vwish-loop-button-wrapper {
    margin: 5px 0;
}

/* Upsells, cross-sells, related products */
.upsells .vwish-loop-button-wrapper,
.cross-sells .vwish-loop-button-wrapper,
.related .vwish-loop-button-wrapper {
    margin: 8px 0;
}

/* Ensure buttons don't break layout */
.vwish-single-button-wrapper,
.vwish-loop-button-wrapper {
    box-sizing: border-box;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .vwish-single-button-wrapper,
    .vwish-loop-button-wrapper {
        margin: 5px 0;
    }
    
    /* On mobile, make buttons full width unless specifically set to align left/right */
    .vwish-loop-button-wrapper:not(.align-left):not(.align-right) .vwish-button {
        width: 100%;
        min-width: auto;
    }
    
    /* Keep alignment for left/right aligned buttons on mobile */
    .vwish-loop-button-wrapper.align-left .vwish-button,
    .vwish-loop-button-wrapper.align-right .vwish-button {
        width: auto;
        min-width: 120px;
    }
}/* =======
===================================================================
   Positioning States
   ========================================================================== */

/* Hidden state for positioning */
.vwish-positioning {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vwish-positioned {
    opacity: 1;
    visibility: visible;
}

/* Prevent layout shift during positioning */
.vwish-single-button-wrapper[data-position],
.vwish-loop-button-wrapper[data-loop-position] {
    opacity: 0;
    visibility: hidden;
}

.vwish-single-button-wrapper.positioned,
.vwish-loop-button-wrapper.positioned {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease;
}/* 
==========================================================================
   Icon Styling
   ========================================================================== */

.vwish-button .fa-solid,
.vwish-button .fa-regular {
    display: inline-block;
    font-size: 16px;
    line-height: 1;
    vertical-align: middle;
    margin-right: 4px;
}

.vwish-button .vwish-text {
    display: inline-block;
    vertical-align: middle;
}

/* Icon only buttons */
.vwish-button.icon-only .vwish-text {
    display: none;
}

.vwish-button.icon-only {
    padding: 8px;
    min-width: 32px;
    justify-content: center;
}

.vwish-button.icon-only .fa-solid,
.vwish-button.icon-only .fa-regular {
    margin-right: 0;
}

/* Button corner styles */
.vwish-button.vwish-corners-square {
    border-radius: 0 !important;
}

.vwish-button.vwish-corners-rounded {
    border-radius: 8px !important;
}

.vwish-button.vwish-corners-pill {
    border-radius: 25px !important;
}

/* Button style variants */
.vwish-button.vwish-filled {
    background-color: var(--vwish-button-color, #e74c3c);
    color: var(--vwish-button-text-color, #ffffff);
    border-color: var(--vwish-button-color, #e74c3c);
}

.vwish-button.vwish-filled.in-wishlist {
    background-color: var(--vwish-in-wishlist-color, #27ae60);
    color: var(--vwish-in-wishlist-text-color, #ffffff);
    border-color: var(--vwish-in-wishlist-color, #27ae60);
}

.vwish-button.vwish-outline {
    background: transparent;
    color: var(--vwish-button-color, #e74c3c);
    border-color: var(--vwish-button-color, #e74c3c);
}

.vwish-button.vwish-outline:hover {
    background-color: var(--vwish-button-color, #e74c3c);
    color: var(--vwish-button-text-color, #ffffff);
}

.vwish-button.vwish-outline.in-wishlist {
    background-color: var(--vwish-in-wishlist-color, #27ae60);
    color: var(--vwish-in-wishlist-text-color, #ffffff);
    border-color: var(--vwish-in-wishlist-color, #27ae60);
}

.vwish-button.vwish-minimal {
    background: transparent;
    color: var(--vwish-button-color, #e74c3c);
    border-color: transparent;
}

.vwish-button.vwish-minimal:hover {
    background-color: rgba(0,0,0,0.05);
}

.vwish-button.vwish-minimal.in-wishlist {
    background: transparent;
    color: var(--vwish-in-wishlist-color, #27ae60);
    border-color: transparent;
    font-weight: 600;
}
/* ====
======================================================================
   Force Button Colors - Debug Fix
   ========================================================================== */



/* ==========================================================================
   Button Style Variations - Clean Implementation
   ========================================================================== */

/* Outline Style */
.vwish-button.vwish-outline {
    background: transparent;
    color: var(--vwish-button-color, #e74c3c);
    border: 2px solid var(--vwish-button-color, #e74c3c);
}

.vwish-button.vwish-outline:hover {
    background-color: var(--vwish-button-color, #e74c3c);
    color: var(--vwish-button-text-color, #ffffff);
}

/* Minimal Style */
.vwish-button.vwish-minimal {
    background: transparent;
    color: var(--vwish-button-color, #e74c3c);
    border: 1px solid transparent;
}

.vwish-button.vwish-minimal:hover {
    background-color: rgba(0,0,0,0.05);
}

.vwish-button.vwish-minimal.in-wishlist {
    background: transparent;
    color: var(--vwish-in-wishlist-color, #27ae60);
    border: 1px solid transparent;
    font-weight: 600;
}

/* Filled Style (default - inherits from base .vwish-button) */
.vwish-button.vwish-filled:hover {
    opacity: 0.9;
}

/* ==========================================================================
   Wishlist Widget Styles (Mini Cart Style)
   Uses plugin settings for icons and colors
   ========================================================================== */

.vwish-widget-container {
    display: inline-block;
}

.vwish-widget-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: opacity 0.2s ease;
}

.vwish-widget-link:hover {
    text-decoration: none;
    color: inherit;
    opacity: 0.85;
}

.vwish-widget-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vwish-widget-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
}

/* Font Awesome icon styling */
.vwish-widget-icon {
    font-size: 24px;
    line-height: 1;
    color: inherit;
}

/* Custom image icon styling */
.vwish-widget-icon-image {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
}

/* Count badge - uses same colors as wishlist buttons */
.vwish-widget-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--vwish-button-color, #e74c3c);
    color: var(--vwish-button-text-color, #ffffff);
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    padding: 2px;
    box-sizing: border-box;
}

.vwish-widget-text {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .vwish-widget-text {
        display: none;
    }
}