/**
 * Reseller public store — layout 1 (compact, Inter, single-row top bar).
 * Brand tokens --st-brand and --st-brand-dark are set inline in store_public.blade.php.
 */
:root {
    --st-surface: #ffffff;
    --st-muted: #64748b;
    --st-border: #e2e8f0;
    --st-bg: #f1f5f9;
    --st-text: #0f172a;
    --st-radius: 14px;
    --st-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
    --st-shadow-lg: 0 4px 6px rgba(15, 23, 42, 0.04), 0 20px 48px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--st-bg);
    color: var(--st-text);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--st-brand);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--st-brand);
    outline-offset: 2px;
}

.st-shell {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.st-topbar {
    background: var(--st-surface);
    border-bottom: 1px solid var(--st-border);
    position: sticky;
    top: 0;
    z-index: 200;
    backdrop-filter: blur(10px);
}

.st-topbar-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.st-topbar-brand {
    display: contents;
}

.st-nav-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--st-border);
    border-radius: 12px;
    background: var(--st-surface);
    color: var(--st-text);
    cursor: pointer;
    flex-shrink: 0;
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.st-nav-menu-btn:hover {
    background: var(--st-bg);
}

.st-nav-menu-icon {
    display: block;
}

.st-nav-menu-icon--close {
    display: none;
}

.st-topbar-inner.st-menu-open .st-nav-menu-icon--bars {
    display: none;
}

.st-topbar-inner.st-menu-open .st-nav-menu-icon--close {
    display: block;
}

.st-logo {
    font-size: 17px;
    font-weight: 800;
    color: var(--st-text);
    text-decoration: none;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 42vw;
}

.st-logo span {
    color: var(--st-brand);
}

.st-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 640px) {
    .st-nav {
        gap: 2px;
    }
}

.st-nav a {
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--st-muted);
    padding: 8px 12px;
    border-radius: 10px;
    transition: background 0.15s, color 0.15s;
}

.st-nav a:hover {
    color: var(--st-text);
    background: rgba(15, 23, 42, 0.05);
}

.st-nav a.is-active {
    color: var(--st-brand);
    background: color-mix(in srgb, var(--st-brand) 12%, transparent);
}

.st-nav-cart {
    position: relative;
}

.st-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    background: var(--st-brand);
    color: #fff;
    border-radius: 999px;
    display: none;
}

.st-badge.is-visible {
    display: block;
}

.st-powered {
    font-size: 12px;
    color: var(--st-muted);
    text-decoration: none;
    white-space: nowrap;
}

.st-powered:hover {
    color: var(--st-text);
}

.st-main {
    flex: 1;
    width: 100%;
}

.st-wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 28px 20px 48px;
}

.st-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.st-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--st-muted);
    padding: 6px 12px;
}

.st-step i {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 2px solid var(--st-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-size: 12px;
    background: var(--st-surface);
}

.st-step.is-done i,
.st-step.is-current i {
    border-color: var(--st-brand);
    background: color-mix(in srgb, var(--st-brand) 15%, #fff);
    color: var(--st-brand);
}

.st-step.is-current {
    color: var(--st-text);
}

.st-step-arrow {
    color: #cbd5e1;
    font-size: 14px;
    user-select: none;
}

@media (max-width: 520px) {
    .st-step-arrow {
        display: none;
    }

    .st-steps {
        justify-content: flex-start;
    }
}

.st-card {
    background: var(--st-surface);
    border-radius: var(--st-radius);
    border: 1px solid var(--st-border);
    box-shadow: var(--st-shadow);
}

.st-h1 {
    font-size: clamp(1.65rem, 4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 8px;
    line-height: 1.2;
}

.st-lead {
    color: var(--st-muted);
    font-size: 1rem;
    margin: 0 0 24px;
    max-width: 52ch;
}

.st-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
    font-family: inherit;
}

.st-btn:active {
    transform: scale(0.98);
}

.st-btn--primary {
    background: linear-gradient(180deg, color-mix(in srgb, var(--st-brand) 92%, #fff) 0%, var(--st-brand) 100%);
    color: #fff;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--st-brand) 35%, transparent);
}

.st-btn--primary:hover {
    filter: brightness(1.05);
}

.st-btn--ghost {
    background: var(--st-surface);
    color: var(--st-text);
    border: 1px solid var(--st-border);
}

.st-btn--ghost:hover {
    background: var(--st-bg);
}

.st-btn--block {
    width: 100%;
}

.st-footer {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: var(--st-muted);
    border-top: 1px solid var(--st-border);
    background: var(--st-surface);
}

.st-footer a {
    font-weight: 600;
}

.st-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid var(--st-border);
    border-radius: 12px;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.st-input:focus {
    border-color: var(--st-brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-brand) 20%, transparent);
    outline: none;
}

label.st-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--st-text);
}

.st-muted {
    color: var(--st-muted);
    font-size: 14px;
}

.st-topbar-cluster {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    justify-content: flex-end;
    flex: 1;
}

.st-btn--sm {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 10px;
}

.st-nav-auth {
    display: flex;
    align-items: center;
    gap: 8px;
}

.st-user-menu-wrap {
    position: relative;
}

.st-user-btn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 2px solid var(--st-border);
    background: color-mix(in srgb, var(--st-brand) 12%, #fff);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: var(--st-brand);
    font-family: inherit;
    padding: 0;
}

.st-dropdown-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 232px;
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: 12px;
    box-shadow: var(--st-shadow-lg);
    padding: 8px 0;
    z-index: 400;
    display: none;
}

.st-dropdown-panel.is-open {
    display: block;
}

.st-dropdown-meta {
    padding: 8px 14px 12px;
    border-bottom: 1px solid var(--st-border);
    font-size: 13px;
}

.st-dropdown-email {
    color: var(--st-muted);
    font-size: 12px;
    word-break: break-all;
    margin-top: 4px;
}

.st-dropdown-panel a,
.st-dropdown-panel button[type="submit"] {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--st-text);
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
}

.st-dropdown-panel a:hover,
.st-dropdown-panel button[type="submit"]:hover {
    background: var(--st-bg);
}

@media (max-width: 767px) {
    .st-topbar-inner {
        flex-wrap: wrap;
        position: relative;
        height: auto;
        min-height: 56px;
        padding: 10px 16px;
        gap: 0;
    }

    .st-topbar-brand {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .st-nav-menu-btn {
        display: inline-flex;
    }

    .st-logo {
        max-width: calc(100% - 56px);
    }

    .st-topbar-cluster {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        flex: none;
        gap: 16px;
        padding: 12px 16px 18px;
        margin: 0;
        background: var(--st-surface);
        border-bottom: 1px solid var(--st-border);
        box-shadow: var(--st-shadow-lg);
        max-height: min(72vh, 520px);
        overflow-y: auto;
        z-index: 250;
        -webkit-overflow-scrolling: touch;
    }

    .st-topbar-inner.st-menu-open .st-topbar-cluster {
        display: flex;
    }

    .st-nav {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 4px;
        justify-content: flex-start;
    }

    .st-nav a {
        padding: 14px 14px;
        border-radius: 10px;
        font-size: 15px;
    }

    .st-nav-auth {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 10px;
    }

    .st-nav-auth .st-btn {
        width: 100%;
        justify-content: center;
    }

    .st-user-menu-wrap {
        width: 100%;
    }

    .st-user-btn {
        width: 100%;
        height: 48px;
        border-radius: 12px;
    }

    .st-dropdown-panel {
        left: 0;
        right: 0;
        width: 100%;
        min-width: 0;
    }

    .st-powered {
        text-align: center;
        padding-top: 12px;
        margin-top: 4px;
        border-top: 1px solid var(--st-border);
        white-space: normal;
        font-size: 12px;
    }
}
