:root {
    --eact-primary: #2f62b8;
    --eact-primary-dark: #224f99;
    --eact-text: #111827;
    --eact-border: #d8e1f1;
    --eact-bg: #ffffff;
}

.eact-wishlist-btn {
    border: 1px solid var(--eact-border);
    background: var(--eact-bg);
    color: var(--eact-primary);
    border-radius: 8px;
    padding: 9px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: all .2s ease;
    margin-top: 10px;
    font-weight: 500;
}

.eact-wishlist-btn:hover,
.eact-wishlist-btn.is-active {
    border-color: var(--eact-primary);
    color: var(--eact-primary-dark);
    background: #f5f8ff;
    box-shadow: 0 6px 18px rgba(47,98,184,.12);
}

.eact-heart {
    font-size: 20px;
    line-height: 1;
    color: var(--eact-primary);
}

.eact-wishlist-single {
    margin: 12px 0;
}

/* Eastcom-style header wishlist icon */
.eact-wishlist-counter.eact-header-wishlist,
.eact-wishlist-counter {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--eact-primary) !important;
    text-decoration: none !important;
    vertical-align: middle;
    line-height: 1;
}

.eact-header-heart,
.eact-wishlist-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.eact-wishlist-svg {
    width: 28px;
    height: 28px;
    transition: all .2s ease;
}

.eact-wishlist-counter:hover .eact-wishlist-svg {
    color: var(--eact-primary-dark);
    transform: translateY(-1px);
}

.eact-header-count,
.eact-wishlist-counter > span:not(.eact-header-heart) {
    position: absolute;
    top: 0;
    right: -2px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #06142f;
    color: #fff;
    border: 2px solid #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.eact-wishlist-page {
    max-width: 1140px;
    margin: 0 auto;
    padding: 30px 15px;
}

.eact-wishlist-page h2 {
    color: var(--eact-text);
    font-weight: 700;
    margin-bottom: 20px;
}

.eact-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 22px;
}

.eact-wishlist-card {
    border: 1px solid var(--eact-border);
    border-radius: 14px;
    background: #fff;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(47,98,184,.06);
}

.eact-wishlist-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.eact-wishlist-card h3 {
    font-size: 16px;
    margin: 12px 0 8px;
}

.eact-wishlist-card h3 a {
    text-decoration: none;
    color: inherit;
}

.eact-price {
    margin-bottom: 12px;
    font-weight: 600;
}

.eact-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.eact-actions .button {
    background: var(--eact-primary) !important;
    border-color: var(--eact-primary) !important;
    color: #fff !important;
    border-radius: 8px !important;
}

.eact-remove-wishlist {
    border: 1px solid var(--eact-border);
    background: #f5f8ff;
    color: var(--eact-primary);
    border-radius: 8px;
    padding: 9px 12px;
    cursor: pointer;
    font-weight: 500;
}

.eact-remove-wishlist:hover {
    background: #eef4ff;
    color: var(--eact-primary-dark);
}

.eact-empty {
    background: #f9fbff;
    border: 1px dashed var(--eact-border);
    padding: 18px;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .eact-wishlist-counter.eact-header-wishlist,
    .eact-wishlist-counter {
        width: 38px;
        height: 38px;
    }

    .eact-wishlist-svg {
        width: 26px;
        height: 26px;
    }

    .eact-wishlist-btn {
        width: 100%;
    }

    .variable-items-wrapper,
    .swatch-wrapper,
    .woocommerce div.product form.cart .variations ul {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
}
