/* Reaching the store from a phone (2026-11-28): the watches come first on the
   homepage, and a face's store button stays in reach as the page scrolls. */

/* A face page's store bar: phones only, above the tab bar. */
.buy-bar { display: none; }
@media (max-width: 47.99rem) {
    .buy-bar:not([hidden]) {
        position: fixed; left: 10px; right: 10px; z-index: 44;
        bottom: calc(70px + env(safe-area-inset-bottom));
        display: flex; align-items: center; gap: 10px;
        padding: 8px 8px 8px 14px; border: 1px solid var(--line); border-radius: 18px;
        background: color-mix(in srgb, var(--surface) 94%, transparent);
        backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
        box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .45);
        animation: buy-bar-in .25s ease-out both;
    }
    .buy-bar-name { display: grid; min-width: 0; flex: 1; line-height: 1.2; }
    .buy-bar-name strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .92rem; }
    .buy-bar-name small { color: var(--muted); font-size: .75rem; }
    .buy-bar .btn { flex: none; min-height: 44px; padding: 0 16px; font-size: .9rem; white-space: nowrap; }
    .buy-bar .btn-icon svg { width: 18px; height: 18px; }
    /* Room under the page's last lines for the bar. */
    body:has(.buy-bar:not([hidden])) { padding-bottom: calc(136px + env(safe-area-inset-bottom)); }

    /* Homepage: the watch faces first, the words under them. */
    .hero .hero-grid { gap: 6px; }
    .hero .hero-stage { order: -1; min-height: 0; margin-top: -6px; }
    .hero .hero-title { font-size: clamp(2.1rem, 10.5vw, 2.9rem); }
    .hero .hero-lede { margin-top: 12px; }
}
@keyframes buy-bar-in { from { transform: translateY(12px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .buy-bar:not([hidden]) { animation: none; } }
