/* Zero Byte: purchase feedback shared across product pages and catalog. */
.zb-product-page .zb-actions .zb-add-cart {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 56px;
    justify-content: center !important;
    gap: 12px;
    border: 1px solid #ff9400 !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #ff9100 0%, #ff7100 48%, #e84b00 100%) !important;
    color: #fff !important;
    box-shadow: 0 5px 20px #ff73002b, inset 0 1px 0 #ffffff30;
    font-size: 14px !important;
    font-weight: 750;
    letter-spacing: .2px;
    text-transform: none;
    transition: transform .16s ease, box-shadow .2s ease, filter .2s ease;
}
.zb-product-page .zb-actions .zb-add-cart span {
    color: #fff !important;
    font-weight: 750;
    border: 0 !important;
}
.zb-product-page .zb-actions .zb-add-cart b { display: none; }
.zb-product-page .zb-actions .zb-add-cart::before {
    display: inline-block !important;
    content: '\e812';
    font-family: 'molla';
    font-size: 22px;
    color: #fff;
    margin: 0 !important;
}
.zb-product-page .zb-actions .zb-add-cart::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -50% auto -50% -55%;
    width: 28%;
    background: linear-gradient(90deg, transparent, #ffffff48, transparent);
    transform: skewX(-24deg);
    pointer-events: none;
    animation: zb-purchase-sheen 1.1s ease .6s both;
}
@media (hover: hover) {
    .zb-product-page .zb-actions .zb-add-cart:hover {
        transform: translateY(-2px);
        filter: brightness(1.07);
        box-shadow: 0 8px 26px #ff730047;
    }
}
.zb-product-page .zb-actions .zb-add-cart:active { transform: scale(.97); }
.add-to-cart:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.zb-product-page .zb-actions .zb-add-cart.zb-cart-success::before {
    content: '\2713';
    font-family: sans-serif;
}
.add-to-cart.zb-cart-success { filter: brightness(1.06); }
.cart-count.zb-cart-bounce { animation: zb-cart-bounce .5s ease; }
@keyframes zb-purchase-sheen { to { left: 140%; } }
@keyframes zb-cart-bounce {
    0%, 100% { transform: scale(1) translateY(0); }
    40% { transform: scale(1.22) translateY(-5px); }
    70% { transform: scale(.95) translateY(1px); }
}
@media (prefers-reduced-motion: reduce) {
    .zb-product-page .zb-actions .zb-add-cart,
    .zb-product-page .zb-actions .zb-add-cart::after,
    .cart-count.zb-cart-bounce { animation: none; transition: none; }
    .zb-product-page .zb-actions .zb-add-cart:hover,
    .zb-product-page .zb-actions .zb-add-cart:active { transform: none; }
}
/* Shared modal and persistent wishlist states. */
.btn-wishlist[data-id]::before, .btn-wishlist[data-id] .zb-wishlist-heart, .btn-wishlist[data-id] > i { display: none !important; }
.btn-wishlist[data-id] .zb-state-heart { display: inline-block !important; width: 22px !important; height: 22px !important; flex: 0 0 22px; fill: none !important; stroke: #bcbcc2 !important; stroke-width: 1.7; color: #bcbcc2 !important; }
.btn-wishlist[data-id].zb-is-saved .zb-state-heart { fill: var(--zb-brand-primary, #ff8500) !important; stroke: var(--zb-brand-primary, #ff8500) !important; color: var(--zb-brand-primary, #ff8500) !important; }
.btn-wishlist[data-id].zb-is-saved { border-color: var(--zb-brand-primary, #ff8500) !important; }
.zb-product-page .zb-actions .zb-add-cart.zb-cart-success { box-shadow: 0 0 0 2px #ff9a0040, 0 6px 22px #ff730038; }
.zb-commerce-toast { position: fixed; bottom: 26px; right: 26px; z-index: 11000; width: min(380px, calc(100vw - 32px)); display: flex; gap: 14px; align-items: flex-start; padding: 20px; overflow: hidden; border-radius: 14px; border: 1px solid #ffffff22; background: #1b1c20; color: #fff; box-shadow: 0 12px 45px #0008; opacity: 0; transform: translateY(18px); transition: opacity .22s, transform .22s; pointer-events: none; }
.zb-commerce-toast[hidden] { display: none; }
.zb-commerce-toast.is-visible { opacity: 1; transform: translateY(0); }
.zb-toast-icon { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 50%; background: #ff800020; color: #ff9100; font-size: 23px; }
.zb-commerce-toast strong { display: block; font-size: 14px; line-height: 1.4; color: #fff; }
.zb-commerce-toast p { margin: 5px 0 0; color: #bcbec6; font-size: 12px; line-height: 1.5; }
.zb-toast-progress { position: absolute; bottom: 0; left: 0; height: 3px; width: 100%; background: var(--zb-brand-primary, #ff8500); transform-origin: left; }
.zb-commerce-toast.is-visible .zb-toast-progress { animation: zb-toast-time 3.8s linear forwards; }
@keyframes zb-toast-time { to { transform: scaleX(0); } }
@media(max-width:575px) { .zb-commerce-toast { right: 16px; bottom: max(18px, env(safe-area-inset-bottom)); } }
@media(prefers-reduced-motion:reduce) { .zb-commerce-toast { transition: none; transform: none; } .zb-commerce-toast.is-visible .zb-toast-progress { animation: none; } }

/* Header wishlist count centered inside the heart. */
.header-top .zb-header-wishlist-heart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 29px; margin-right: 7px; vertical-align: middle; flex-shrink: 0; }
.header-top .zb-header-wishlist-heart svg { display: block; width: 30px; height: 29px; fill: none; stroke: var(--zb-brand-primary, #ff8500); stroke-width: 1.6; overflow: visible; }
.header-top .zb-header-wishlist-heart #wishlist-count { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-bottom: 3px; color: #ff9500; font-size: 10px; font-weight: 750; line-height: 1; margin: 0; letter-spacing: -.3px; }

/* Compact header heart with centered count. */
.header-top .zb-header-wishlist-heart { width: 17px; height: 17px; margin-right: 4px; }
.header-top .zb-header-wishlist-heart svg { width: 17px; height: 17px; }
.header-top .zb-header-wishlist-heart #wishlist-count { font-size: 7px; padding-bottom: 2px; font-weight: 650; }
