/* Lafinda mobile/tablet bottom navigation */
:root {
    --mobile-bottom-nav-height: 3.65rem;
}

.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1035;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 0.15rem;
    min-height: var(--mobile-bottom-nav-height);
    padding: 0.35rem 0.35rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 -4px 18px rgba(11, 27, 60, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mobile-bottom-nav__item {
    flex: 1 1 0;
    min-width: 0;
    max-width: 5.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.2rem 0.15rem;
    border-radius: 12px;
    text-decoration: none;
    color: #6b7280;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.01em;
    transition: color 0.15s ease, background-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-bottom-nav__item:hover,
.mobile-bottom-nav__item:focus-visible {
    color: var(--primary-color, #fe6a07);
    text-decoration: none;
}

.mobile-bottom-nav__item.is-active {
    color: var(--primary-color, #fe6a07);
}

.mobile-bottom-nav__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    font-size: 1.28rem;
    line-height: 1;
}

.mobile-bottom-nav__item.is-active .mobile-bottom-nav__icon {
    transform: translateY(-1px);
}

.mobile-bottom-nav__label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.mobile-bottom-nav__badge {
    position: absolute;
    top: -0.2rem;
    right: -0.45rem;
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1rem;
    text-align: center;
    border: 1.5px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.mobile-bottom-nav__item.is-active .mobile-bottom-nav__badge {
    border-color: #fff;
}

@media (max-width: 991.98px) {
    body.has-mobile-bottom-nav {
        padding-bottom: calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
    }

    body.has-mobile-bottom-nav .toast-container {
        bottom: calc(var(--mobile-bottom-nav-height) + 0.85rem + env(safe-area-inset-bottom, 0px));
    }
}

@media (min-width: 992px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

.mobile-bottom-nav__item.is-pressed {
    transform: scale(0.96);
}

.mobile-bottom-nav__item {
    transition: transform 0.12s ease, color 0.12s ease;
}

.wishlist-btn.is-store-loading,
.product-card-mobile-cart.is-store-loading {
    opacity: 0.65;
    pointer-events: none;
}

.store-action-spin {
    display: inline-block;
    animation: store-action-spin 0.65s linear infinite;
}

@keyframes store-action-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
