/* Shared shop-clock / open-status bar. Keep markup and this file in sync across pages. */

.site-ops-bar {
    border-top: 1px solid rgba(184, 92, 56, 0.4);
    background: linear-gradient(
        180deg,
        rgba(184, 92, 56, 0.18) 0%,
        rgba(10, 14, 39, 0.97) 55%,
        rgba(10, 14, 39, 1) 100%
    );
    padding: 0.55rem max(1.25rem, env(safe-area-inset-left)) 0.6rem max(1.25rem, env(safe-area-inset-right));
}

.site-ops-inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.store-status {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    width: 100%;
    max-width: 36rem;
    margin: 0;
    padding: 0.55rem 1rem 0.5rem 1rem;
    border: 1px solid rgba(212, 163, 115, 0.45);
    background: rgba(10, 14, 39, 0.75);
    box-shadow:
        0 0 0 1px rgba(244, 228, 193, 0.04),
        inset 0 0 24px rgba(212, 163, 115, 0.06);
    text-align: left;
}

.store-status-primary {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
}

.store-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-top: 0.32rem;
    flex-shrink: 0;
    background: rgba(184, 92, 56, 0.55);
    box-shadow: inset 0 0 8px rgba(10, 14, 39, 0.65);
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

.store-status[data-open="true"] .store-status-dot {
    background: rgba(244, 228, 193, 0.98);
    box-shadow:
        0 0 10px rgba(244, 228, 193, 0.65),
        0 0 22px rgba(212, 163, 115, 0.45),
        0 0 38px rgba(184, 92, 56, 0.25);
    animation: statusBeacon 4.5s ease-in-out infinite;
}

.store-status[data-open="false"] .store-status-dot {
    animation: none;
}

@keyframes statusBeacon {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
        filter: brightness(0.95);
    }
    50% {
        opacity: 1;
        transform: scale(1.14);
        filter: brightness(1.1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .store-status[data-open="true"] .store-status-dot {
        animation: none;
    }
}

.store-status-lines {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    flex: 1;
}

.store-status-main {
    font-family: 'Rustique', 'Orbitron', sans-serif;
    font-size: clamp(0.75rem, 1.9vw, 0.82rem);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #c9a882;
    line-height: 1.35;
    transition: color 0.45s ease;
}

.store-status[data-open="true"] .store-status-main {
    color: rgba(244, 228, 193, 0.95);
    text-shadow: 0 0 18px rgba(244, 228, 193, 0.2);
}

.store-status-hint {
    font-family: 'Space Mono', monospace;
    font-size: clamp(0.7rem, 1.75vw, 0.78rem);
    letter-spacing: 0.04em;
    color: rgba(244, 228, 193, 0.72);
    line-height: 1.4;
    transition: color 0.45s ease;
}

.store-status[data-open="true"] .store-status-hint {
    color: rgba(244, 228, 193, 0.62);
}

.store-status[data-open="false"] .store-status-hint:not(:empty) {
    color: rgba(244, 228, 193, 0.78);
}

.store-status-hint:empty {
    display: none;
}

.store-status-tz {
    font-family: 'Space Mono', monospace;
    font-size: clamp(0.62rem, 1.55vw, 0.7rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-align: center;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(212, 163, 115, 0.22);
    line-height: 1.45;
}

@media (min-width: 640px) {
    .store-status {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        max-width: 48rem;
        padding: 0.55rem 1.15rem;
        gap: 0;
    }

    .store-status-primary {
        align-items: flex-start;
        flex: 1;
        min-width: 0;
    }

    .store-status-tz {
        flex: 0 0 auto;
        max-width: 11rem;
        margin-left: 1rem;
        padding-top: 0;
        padding-left: 1rem;
        border-top: none;
        border-left: 1px solid rgba(212, 163, 115, 0.25);
        text-align: right;
    }
}

@media (max-width: 430px) {
    .store-status-main {
        letter-spacing: 0.16em;
    }

    .store-status-hint {
        font-size: 0.7rem;
    }

    .store-status-tz {
        font-size: 0.65rem;
    }
}
