/* ==========================================================================
   OnX Online Technologies — Storefront
   Extends style.css (brand tokens: dark navy + cyan, Inter, pill radii).
   Loaded AFTER style.css so these rules win where they overlap.
   ========================================================================== */

/* --- Masthead ----------------------------------------------------------- */
.store-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(64px, 9vw, 112px) 5% clamp(40px, 5vw, 64px);
    text-align: center;
    background:
        radial-gradient(circle at 50% 12%, rgba(0, 240, 255, 0.12), transparent 26%),
        linear-gradient(180deg, rgba(10, 22, 38, 0.72) 0%, rgba(6, 14, 25, 0.86) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.store-hero h1 {
    max-width: 20ch;
    margin: 18px auto 20px;
    font-size: clamp(2.4rem, 5.4vw, 4rem);
    overflow-wrap: anywhere;
}

.store-hero p {
    max-width: 720px;
    margin: 0 auto 32px;
    font-size: 1.1rem;
    color: var(--text-soft);
}

/* --- Toolbar / filters -------------------------------------------------- */
.store-toolbar {
    position: sticky;
    top: 96px;
    z-index: 40;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    width: min(var(--container-width), calc(100% - 10%));
    margin: clamp(36px, 5vw, 56px) auto 0;
    padding: 14px 16px;
    background: rgba(7, 17, 31, 0.86);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.store-toolbar .field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 200px;
    min-width: 0;
}

.store-toolbar label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.store-toolbar input,
.store-toolbar select {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.92rem;
    outline: none;
}

.store-toolbar input:focus,
.store-toolbar select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.14);
}

.store-toolbar .result-count {
    flex: 0 0 auto;
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* --- Catalog sections --------------------------------------------------- */
.store-sections {
    width: min(var(--container-width), calc(100% - 10%));
    margin: 0 auto;
    padding: 40px 0 var(--section-space);
}

.store-section {
    margin-top: 40px;
}

.store-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 14px;
    padding-bottom: 14px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--surface-border);
}

.store-section-head .num {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--primary-color);
}

.store-section-head h2 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.store-section-head p {
    flex: 1 1 320px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* --- Cards -------------------------------------------------------------- */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
}

.store-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid #1e293b;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.store-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: var(--shadow-md);
}

.store-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.store-card__kind {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.store-card__title {
    font-size: 1.18rem;
    line-height: 1.25;
    margin-bottom: 8px;
    color: #ffffff;
}

.store-card__tagline {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.store-card__desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 18px;
}

.store-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.store-tag {
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-pill);
}

.store-card__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid var(--surface-border);
}

.store-card__price {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-soft);
    line-height: 1.4;
}

.store-card__cta {
    flex-shrink: 0;
    padding: 11px 20px;
    font-size: 0.86rem;
}

/* --- Status badges ------------------------------------------------------ */
.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.store-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.store-badge--live {
    color: #5cffb0;
    background: rgba(92, 255, 176, 0.1);
    border: 1px solid rgba(92, 255, 176, 0.3);
}

.store-badge--beta {
    color: #ffd15c;
    background: rgba(255, 209, 92, 0.1);
    border: 1px solid rgba(255, 209, 92, 0.3);
}

.store-badge--coming-soon {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--surface-border);
}

/* --- Empty / error states ----------------------------------------------- */
.store-empty {
    margin-top: 40px;
    padding: 40px 24px;
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px dashed var(--surface-border);
    border-radius: var(--radius-md);
}

/* --- Language toggle ---------------------------------------------------- */
.nav-links a.is-active {
    color: #ffffff;
    background-color: rgba(0, 240, 255, 0.08);
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
    .store-toolbar {
        position: static;
        top: auto;
    }
}

@media (max-width: 768px) {
    .store-hero {
        padding: 56px 16px 40px;
    }

    .store-section-head {
        flex-direction: column;
        gap: 6px;
    }

    .store-card__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .store-card__cta {
        width: 100%;
    }
}
