/**
 * Header Wishlist Icon Component Styles
 *
 * Component: Wishlist Link + Badge Counter
 * Part of: MainTheme\Presentation\Presentation
 * Clean Architecture - Presentation Layer Only
 *
 * @package MainTheme\Assets\CSS
 */

@layer theme {

/* ══════════════════════════════════════════════
   WISHLIST LINK CONTAINER
   Position context for badge (absolute)
   ══════════════════════════════════════════════ */

.wishlist-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--header-icon-color, #111);
    text-decoration: none;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.wishlist-icon:hover {
    color: var(--header-icon-hover-color, #666);
}

.wishlist-icon__svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   WISHLIST COUNT BADGE
   Positioned absolute to wishlist-icon container
   ══════════════════════════════════════════════ */

.wishlist-count-badge {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(40%, -40%);
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    font-family: var(--ds-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    line-height: 17px;
    text-align: center;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 10;
    pointer-events: none;
}

.wishlist-count--has-items {
    opacity: 1;
    visibility: visible;
}

.wishlist-count--empty {
    opacity: 0;
    visibility: hidden;
    transform: translate(40%, -40%) scale(0.8);
}

.wishlist-icon:hover .wishlist-count-badge {
    background: #c0392b;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */

@media (max-width: 768px) {
    .wishlist-icon {
        width: 20px;
        height: 20px;
    }

    .wishlist-icon__svg {
        width: 18px;
        height: 18px;
    }

    .wishlist-count-badge {
        min-width: 15px;
        height: 15px;
        font-size: 9px;
        line-height: 15px;
    }
}

} /* end @layer theme */