/* Sticky header */
.main_nav.is-stuck {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: #fff;
    transition: all 0.25s ease;
}

/* Cart count pulse */
@keyframes cart-pulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.35); }
    100% { transform: scale(1); }
}
.cart_bt strong.is-pulsing { animation: cart-pulse 0.5s ease-out; display: inline-block; }

/* Cart preview fade-slide */
.dropdown-cart .dropdown-menu,
.dropdown-access .dropdown-menu {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.dropdown-cart:hover .dropdown-menu,
.dropdown-access:hover .dropdown-menu,
.dropdown-cart .dropdown-menu.show,
.dropdown-access .dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
}

/* Categories underline grow */
nav.categories #menu ul li a {
    position: relative;
    display: inline-block;
}
nav.categories #menu ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    inset-inline-start: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.2s ease;
}
nav.categories #menu ul li a:hover::after { width: 100%; }

/* Buttons */
.btn_1, .btn_1:active, .btn_1:focus { transition: transform 0.1s ease, filter 0.15s ease; }
.btn_1:hover { filter: brightness(1.05); }
.btn_1:active { transform: scale(0.98); }

/* Async form spinner */
.btn_1[data-loading] { position: relative; pointer-events: none; opacity: 0.7; }
.btn_1[data-loading]::after {
    content: '';
    position: absolute;
    inset-inline-end: 12px;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Cart row remove slide-out */
.cart-list tr.is-removing {
    transition: opacity 0.3s ease, max-height 0.3s ease;
    opacity: 0;
    max-height: 0;
}

/* Toast */
.app-toast {
    position: fixed;
    top: 20px;
    inset-inline-end: 20px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    border-radius: 6px;
    padding: 12px 16px;
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    border-inline-start: 4px solid #888;
}
.app-toast.is-shown { transform: translateX(0); }
.app-toast.success { border-color: #2ecc71; }
.app-toast.danger { border-color: #e74c3c; }

/* Free shipping unlocked celebration */
@keyframes ship-strike {
    from { width: 0; }
    to { width: 100%; }
}
.shipping-strike { position: relative; }
.shipping-strike::after {
    content: '';
    position: absolute;
    top: 50%;
    inset-inline-start: 0;
    height: 2px;
    background: #2ecc71;
    animation: ship-strike 0.4s ease-out forwards;
}
