/* --- ADD-TO-CART TOAST ---
 * Single confirmation for every add-to-cart path. Bottom-centre card on
 * desktop; a full-width bar pinned to the bottom on phones so it's always
 * fully visible regardless of viewport.
 */
.toast-notice {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: min(440px, calc(100vw - 32px));
    background: var(--card-bg, #0c1018);
    border: 1px solid rgba(0, 200, 230, 0.35);
    color: var(--text-white);
    padding: 14px 18px;
    border-radius: 10px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 10010;
}

.toast-notice.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.toast-notice__icon {
    flex-shrink: 0;
    color: var(--cyan);
}

.toast-notice__msg {
    flex: 1;
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.35;
}

.toast-notice__link {
    flex-shrink: 0;
    font-family: var(--font-condensed);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--cyan);
    text-decoration: none;
    white-space: nowrap;
    padding: 6px 12px;
    border: 1px solid rgba(0, 200, 230, 0.35);
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.toast-notice__link:hover {
    background: var(--cyan);
    color: var(--black);
}

@media (max-width: 600px) {
    .toast-notice {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
        transform: translateY(20px);
    }

    .toast-notice.show {
        transform: translateY(0);
    }
}

/* --- 3. LOADER --- */
#loader {
    position: fixed;
    inset: 0;
    background: var(--black);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.7s ease, visibility 0.7s;
}

#loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 52px;
    height: 52px;
    border: 2px solid var(--border);
    border-top: 2px solid var(--cyan);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    box-shadow: 0 0 20px var(--cyan-glow);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
