/* Header cart icon + badge — loaded globally */
.header-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-md, 8px);
    transition: color 0.2s;
}

.header-cart:hover {
    color: var(--color-primary);
}

.header-cart i {
    font-size: 1.15rem;
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 0;
    background: var(--color-coral, #f97316);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

.cart-badge:empty,
.cart-badge[data-count="0"] {
    display: none;
}

/* Add to cart button states */
.btn--loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn--added {
    background: var(--color-success, #22c55e) !important;
    border-color: var(--color-success, #22c55e) !important;
}
