﻿/* ============================================================================
   Shared admin layout
   ----------------------------------------------------------------------------
   Viewport shell, constrained page widths, page heading, actions, and
   responsive header behavior.

   Source: Pasted text(20260903-154552).txt:5-92 and admin-only responsive rules from 328-369.
   ============================================================================ */

.store-admin-page {
    height: calc(100dvh - var(--store-app-bar-height, 4rem));
    min-height: 0;
    padding: clamp(0.75rem, 1.5vw, 1.25rem);
    overflow: hidden;
    box-sizing: border-box;
}

.store-admin-shell {
    display: flex;
    flex-direction: column;
    width: min(100%, 90rem);
    height: 100%;
    min-height: 0;
    margin: 0 auto;
}

.store-admin-shell--narrow {
    width: min(100%, 72rem);
}

.store-admin-shell--compact {
    width: min(100%, 60rem);
}

.store-admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex: 0 0 auto;
    margin-bottom: 0.75rem;
    padding: clamp(0.85rem, 1.5vw, 1.25rem);
}

.store-admin-heading {
    min-width: 0;
}

.store-admin-eyebrow {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--store-main-color);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.store-admin-title {
    margin: 0;
    color: var(--store-text-main);
    font-size: clamp(1.65rem, 4vw, 2.2rem);
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.store-admin-description {
    max-width: 42rem;
    margin-top: 0.35rem;
    color: var(--store-text-secondary);
    line-height: 1.5;
}

.store-admin-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex: 0 0 auto;
}

.store-admin-primary-action {
    min-width: 11.5rem;
    white-space: nowrap;
}

.store-admin-actions--title-aligned {
    align-self: flex-start;
    margin-top: 1.15rem;
}

@media screen and (max-width: 959.98px) {
    .store-admin-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .store-admin-actions, .store-admin-actions .store-btn {
        width: 100%;
    }

    .store-admin-primary-action {
        min-width: 0;
    }

    .store-admin-actions--title-aligned {
        margin-top: 0;
    }
}

@media screen and (max-width: 599.98px) {
    .store-admin-page {
        height: calc(100dvh - var(--store-app-bar-height-mobile, 3.5rem));
        padding: 0.5rem;
    }

    .store-admin-header {
        gap: 0.75rem;
        margin-bottom: 0.5rem;
        padding: 0.75rem;
        border-radius: var(--store-radius-md);
    }
}
