/**
 * WooCommerce Wishlist Styles
 * Version: 1.2.0
 */

:root {
    --wcwl-primary: #396D1C;
    --wcwl-danger: #ef4444;
    --wcwl-text: #333;
    --wcwl-text-muted: #666;
    --wcwl-text-light: #999;
    --wcwl-border: #e1e1e1;
    --wcwl-bg-light: #f9f9f9;
    --wcwl-bg: #fff;
    --wcwl-success: #27ae60;
    --wcwl-error: #e74c3c;
    --wcwl-shadow-sm: 0 2px 8px rgba(0, 0, 0, .15);
}

/* ============================================================================
   WISHLIST BUTTON (Shortcode)
   ============================================================================ */
.wcwl-wishlist-trigger {
    position: relative;
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--wcwl-primary);
    transition: all 0.3s ease;
}

.wcwl-wishlist-trigger:hover {
    transform: scale(1.1);
}

.wcwl-wishlist-trigger svg {
    width: 24px;
    height: 24px;
    color: inherit;
}
.wcwl-counter-icon:hover {
  background: rgba(0, 179, 113, 0.1);
}
.wcwl-counter-icon {
  width: 40px;
  height: 40px;
  position: relative;
  display: flex !important;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
}
.wcwl-counter-icon svg {
/*     margin-top: 11px; */
    width: 21px;
}
.wcwl-counter-button .wcwl-counter__badge-text {
	right: 4px;
}

/* ============================================================================
   WISHLIST PAGE
   ============================================================================ */
.post-3052 .page-content {
    background: #F9FBF4;
}

.wcwl-page-container {
    max-width: 100%;
    margin: 0 auto;
}

.wcwl-page-header,
.wcwl-page {
    max-width: 1366px;
    margin: auto;
}

.wcwl-page-header {
    display: flex;
    align-items: center;
    justify-content: end;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    padding: 0 24px;
}

.wcwl-page-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    color: var(--wcwl-text);
}

.wcwl-clear-btn {
    padding: 10px 20px;
    background: white !important;
    color: #396D1C !important;
    border: 2px solid #396D1C !important;
    background-image: none !important;
    border-radius: 14px !important;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wcwl-clear-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: var(--wcwl-shadow-sm);
    background-color: #396D1C !important;
    color: #fff !important;
}

/* ============================================================================
   WISHLIST PAGE CONTENT
   ============================================================================ */
.wcwl-page {
    width: 100%;
    padding: 0 24px 64px 24px;
    background: transparent;
}

.wcwl-items {
    margin-top: 20px;
}

/* Adjust WooCommerce product list for wishlist */
.wcwl-items .products {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wcwl-items .product {
    position: relative;
}

/* ============================================================================
   ITEM CARD
   ============================================================================ */
.wcwl-loop-grid .e-loop-item {
    box-shadow: rgba(35, 50, 27, 0.12) 0px 8px 24px -8px;
    border-radius: 12px;
}

.wcwl-item__remove-wrapper {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.wcwl-item__remove {
    position: relative;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, .95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--wcwl-shadow-sm);
    color: var(--wcwl-text-muted);
    padding: 0;
}

.wcwl-item__remove:hover {
    background: var(--wcwl-primary);
    color: white;
    transform: scale(1.1);
}

.wcwl-item__remove svg {
    width: 18px;
    height: 18px;
}

/* ============================================================================
   EMPTY STATE
   ============================================================================ */
.wcwl-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--wcwl-bg-light);
    border-radius: 8px;
}

.wcwl-empty__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 17px;
    color: #396D1C !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf0db;
    border-radius: 40px;
}

.wcwl-empty__icon svg {
    width: 32px;
    height: 32px;
}

.wcwl-empty__title {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 600;
    color: var(--wcwl-text);
}

.wcwl-empty__text {
    margin: 0 0 20px;
    color: var(--wcwl-text-muted);
    font-size: 16px;
    line-height: 1.5;
}

.wcwl-empty__btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--wcwl-primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.wcwl-empty__btn:hover {
    opacity: 0.9;
}

.woocommerce a.button.alt {
    background: #396D1C !important;
    color: #fff !important;
    border-radius: 14px !important;
}

/* ============================================================================
   TOAST NOTIFICATIONS
   ============================================================================ */
.wcwl-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.wcwl-toast {
    background: var(--wcwl-primary);
    color: white;
    padding: 14px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    pointer-events: auto;
    max-width: 320px;
}

.wcwl-toast.wcwl-toast--visible {
    transform: translateX(0);
}

.wcwl-toast.wcwl-toast--success {
    background: var(--wcwl-success);
}

.wcwl-toast.wcwl-toast--error {
    background: var(--wcwl-error);
}

.wcwl-toast__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.wcwl-toast__icon svg {
    width: 100%;
    height: 100%;
}

.wcwl-toast__message {
    flex: 1;
}

.wcwl-toast__close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.wcwl-toast__close:hover {
    opacity: 1;
}

.wcwl-counter__badge-text {
    background-color: #00b371 !important;
    color: #fff !important;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-radius: 40px;
}

.wcwl-loop-btn {
    background-color: none !important;
    background-image: none !important;
    color: var(--wcwl-text-muted);
    display: flex !important;
}

.wcwl-icon-outline svg {
    width: 16px;
}

.wcwl-icon-filled svg {
    width: 16px;
}

/* Default: show outline, hide filled */
.wcwl-loop-btn .wcwl-icon-filled,
.wcwl-single-btn .wcwl-icon-filled {
    display: none;
}

.wcwl-loop-btn .wcwl-icon-outline,
.wcwl-single-btn .wcwl-icon-outline {
    display: inline-flex;
}

/* On hover: make outline (stroke) red */
.wcwl-loop-btn-wrapper button:hover,
.wcwl-single-btn-wrapper button:hover {
    background: none !important;
    color: var(--wcwl-danger);
}

/* When in wishlist: show filled red heart */
.wcwl-loop-btn.wcwl-in-wishlist,
.wcwl-single-btn.wcwl-in-wishlist {
    color: var(--wcwl-danger);
    padding: 0 !important;
    display: flex !important;
}

.wcwl-loop-btn.wcwl-in-wishlist .wcwl-icon-filled,
.wcwl-single-btn.wcwl-in-wishlist .wcwl-icon-filled {
    display: inline-flex;
}

.wcwl-loop-btn.wcwl-in-wishlist .wcwl-icon-outline,
.wcwl-single-btn.wcwl-in-wishlist .wcwl-icon-outline {
    display: none;
}

/* ============================================================================
   LOADER
   ============================================================================ */
.wcwl-loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: wcwl-spin 0.8s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes wcwl-spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 768px) {
    .wcwl-items__grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }

    .wcwl-page-header,
    .wcwl-page {
        padding: 0 16px;
    }

    .wcwl-page {
        padding: 0 16px 48px 16px;
    }

    .wcwl-page-title {
        font-size: 26px;
    }

    .wcwl-clear-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .wcwl-items__grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .wcwl-empty {
        padding: 40px 15px;
    }

    .wcwl-empty__icon {
        width: 60px;
        height: 60px;
    }

    .wcwl-empty__title {
        font-size: 20px;
    }

    .wcwl-empty__text {
        font-size: 14px;
    }

    .wcwl-item__actions {
        flex-direction: column;
    }

    .wcwl-item__cart-btn,
    .wcwl-item__view-btn {
        width: 100%;
    }

    .wcwl-item__title {
        font-size: 15px;
    }

    .wcwl-item__price {
        font-size: 16px;
    }

    .wcwl-page-title {
        font-size: 22px;
    }

    .wcwl-toast-container {
        left: 15px;
        right: 15px;
        bottom: 15px;
    }

    .wcwl-toast {
        max-width: none;
    }
}