/* Small-screen usability improvements. Loaded after the theme's main stylesheet. */
:where(a,button,input,select,textarea,summary):focus-visible {
    outline: 3px solid #6f9f37;
    outline-offset: 3px;
}

@media (max-width: 720px) {
    .brand {
        flex: 1 1 auto;
        min-width: 0;
        max-width: calc(100% - 58px);
        gap: 8px;
    }

    .brand-name {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .custom-logo-link {
        min-width: 0;
        max-width: 100%;
    }

    .custom-logo {
        max-width: 100%;
    }

    .nav-toggle {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        touch-action: manipulation;
    }

    .primary-nav {
        max-height: calc(100vh - 70px);
        max-height: calc(100dvh - 70px);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .menu li a {
        min-height: 44px;
        align-items: center;
        padding-block: 11px;
    }

    body.menu-open {
        overflow: hidden;
    }

    .home-product-grid,
    .home-package-grid,
    .product-card,
    .package-card {
        min-width: 0;
    }

    .product-card,
    .package-card {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 380px) {
    .hero-premium .hero-proof {
        gap: 8px;
    }

    .catalog-window {
        padding-inline: 12px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .hero-actions .button,
    .hero-actions .text-link {
        justify-content: center;
        min-height: 44px;
    }
}
