/* Trance customer storefront — landing-style, editorial calm */

:root {
    --bg: #f6f3ee;
    --bg-deep: #12151c;
    --surface: #fffcf8;
    --surface-2: #f0ebe3;
    --text: #16181f;
    --text-soft: #5c5f6e;
    --muted: #7a7d8c;
    --border: rgba(22, 24, 31, 0.1);
    /* Brand teal / lime (Trance Hypnosis) */
    --brand-teal: #1cb5ac;
    --brand-lime: #6ed04b;
    --accent: #1a9e96;
    --accent-soft: rgba(28, 181, 172, 0.14);
    --accent-glow: rgba(28, 181, 172, 0.32);
    --gold: #b8956c;
    --danger: #b91c1c;
    --success: #047857;
    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 26px;
    --shadow-sm: 0 4px 20px rgba(18, 22, 33, 0.06);
    --shadow-md: 0 18px 50px rgba(18, 22, 33, 0.1);
    --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
    --font-ui: "DM Sans", system-ui, sans-serif;
    /* Horizontal inset — generous on small screens so cards & headings never hug the bezel */
    --page-gutter: clamp(22px, 4.5vw, 32px);
}

* {
    box-sizing: border-box;
}

html:has(body.store-body) {
    overflow-x: clip;
}

body.store-body {
    margin: 0;
    font-family: var(--font-ui);
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

a {
    color: inherit;
    text-decoration: none;
}

.store-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0;
    min-width: 0;
    padding-left: max(env(safe-area-inset-left, 0px), var(--page-gutter));
    padding-right: max(env(safe-area-inset-right, 0px), var(--page-gutter));
}

.store-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.store-btn--primary {
    background: linear-gradient(165deg, #22c4b8 0%, var(--brand-teal) 45%, #159a92 100%);
    color: #fff;
    box-shadow: 0 8px 24px var(--accent-glow);
}

.store-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(28, 181, 172, 0.42);
}

.store-btn--ghost {
    background: transparent;
    color: var(--text-soft);
    border: 1px solid var(--border);
}

.store-btn--ghost:hover {
    background: var(--surface);
    border-color: rgba(22, 24, 31, 0.18);
}

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

/* Legacy .btn (used across customer blades) */
a.btn,
button.btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 18px;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

a.btn:hover,
button.btn:hover {
    background: var(--surface-2);
}

a.btn.btn-primary,
button.btn.btn-primary {
    background: linear-gradient(165deg, #22c4b8 0%, var(--brand-teal) 45%, #159a92 100%);
    color: #fff;
    border: none;
    box-shadow: 0 8px 24px var(--accent-glow);
}

a.btn.btn-primary:hover,
button.btn.btn-primary:hover {
    transform: translateY(-1px);
    background: linear-gradient(165deg, #2ed4c8 0%, #1cb5ac 45%, #1a9e96 100%);
}

.btn-block {
    width: 100%;
}

button.btn.btn-danger,
a.btn.btn-danger {
    color: var(--danger);
    border: 1px solid rgba(185, 28, 28, 0.25);
    background: #fff;
    font-size: 13px;
}

/* ——— Main ——— */
.store-main {
    min-height: 48vh;
    padding-top: env(safe-area-inset-top, 0px);
}

.store-flash-bar {
    padding-top: 20px;
    padding-bottom: 0;
}

.flash {
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
}

.flash-success {
    background: #ecfdf5;
    color: var(--success);
    border: 1px solid #a7f3d0;
}

.flash-error {
    background: #fef2f2;
    color: var(--danger);
    border: 1px solid #fecaca;
}

/* ——— Hero (index) ——— */
.store-hero {
    position: relative;
    padding: clamp(2.25rem, 6vw, 4rem) 0 clamp(2.5rem, 5vw, 4rem);
    padding-left: max(env(safe-area-inset-left, 0px), var(--page-gutter));
    padding-right: max(env(safe-area-inset-right, 0px), var(--page-gutter));
    padding-top: max(clamp(2.25rem, 6vw, 4rem), env(safe-area-inset-top, 0px));
    margin-bottom: 0;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(28, 181, 172, 0.2), transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 20%, rgba(184, 149, 108, 0.18), transparent 50%),
        linear-gradient(165deg, #1a1f28 0%, #12151c 45%, #0d0f14 100%);
    color: #f4f1eb;
}

.store-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.5;
}

.store-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
}

.store-hero__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.75rem, 5vw, 2.75rem);
    align-items: center;
}

.store-hero__copy {
    min-width: 0;
}

@media (min-width: 768px) {
    .store-hero__layout {
        grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
        gap: clamp(2rem, 5vw, 4rem);
        align-items: center;
    }
}

.store-hero__brand {
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (min-width: 768px) {
    .store-hero__brand {
        justify-content: flex-end;
        align-items: center;
    }
}

.store-hero__brand-link {
    display: inline-block;
    line-height: 0;
    max-width: 100%;
}

.store-hero__logo {
    display: block;
    width: auto;
    height: clamp(88px, 28vw, 160px);
    max-width: min(520px, 100%);
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
}

@media (min-width: 768px) {
    .store-hero__logo {
        margin: 0 0 0 auto;
        height: clamp(100px, 14vw, 168px);
        max-width: min(480px, 100%);
    }
}

.store-hero__eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(244, 241, 235, 0.55);
    margin-bottom: 14px;
}

.store-hero__title {
    margin: 0 0 16px;
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.35rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.02em;
    max-width: min(22ch, 100%);
}

.store-hero__lead {
    margin: 0 0 28px;
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.65;
    color: rgba(244, 241, 235, 0.72);
    max-width: 38ch;
}

.store-hero__search {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 520px;
}

.store-hero__search .input {
    flex: 1;
    min-width: 200px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-radius: 999px;
    padding: 14px 20px;
    font-size: 15px;
}

.store-hero__search .input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.store-hero__search .input:focus {
    outline: none;
    border-color: rgba(184, 149, 108, 0.5);
    box-shadow: 0 0 0 3px rgba(184, 149, 108, 0.15);
}

.store-hero__search .btn,
.store-hero__search button[type="submit"] {
    border-radius: 999px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.store-hero__search .btn:hover,
.store-hero__search button[type="submit"]:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* ——— Section ——— */
.store-section {
    padding: clamp(2rem, 5vw, 3.5rem) 0 3rem;
}

.store-section__head {
    margin-bottom: 28px;
    max-width: 100%;
}

.store-section__title {
    margin: 8px;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 400;
    letter-spacing: -0.02em;
}

.store-section__sub {
    margin: 8px;
    font-size: 1rem;
    color: var(--muted);
}

/* ——— Session grid ——— */
.session-grid-landing {
    margin: 8px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin: 10px;
}

.session-card-landing {
    position: relative;
    border-radius: var(--radius-lg);
    background: var(--surface);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(22, 24, 31, 0.06);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.session-card-landing__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.session-card-landing__link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: var(--radius-lg);
}

@media (prefers-reduced-motion: reduce) {
    .session-card-landing {
        transition: none;
    }
}

.session-card-landing:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.session-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--surface-2);
}

.session-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.session-card-landing:hover .session-card-media img {
    transform: scale(1.04);
}

.session-card-media__placeholder {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(28, 181, 172, 0.32), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(184, 149, 108, 0.3), transparent 45%),
        linear-gradient(135deg, #2a3d38 0%, #1e2a28 100%);
}

.session-card-body {
    padding: 20px clamp(20px, 5.5vw, 28px) 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.session-card-program {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
}

.session-media-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.session-media-badges--hero {
    margin-bottom: 12px;
}

.session-media-badge {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 8px;
}

.session-media-badge--audio {
    background: rgba(28, 181, 172, 0.16);
    color: #0a6b66;
}

.session-media-badge--video {
    background: rgba(110, 208, 75, 0.2);
    color: #2d6a22;
}

.session-media-badges--hero .session-media-badge--audio {
    background: rgba(28, 181, 172, 0.28);
    color: #c5faf6;
}

.session-media-badges--hero .session-media-badge--video {
    background: rgba(110, 208, 75, 0.28);
    color: #e8ffd8;
}

.session-card-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.session-card-desc {
    margin: 0;
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.session-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.session-card-price {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
}

.session-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
}

.session-card-landing:hover .session-card-cta {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px max(env(safe-area-inset-right, 0px), var(--page-gutter)) 48px max(env(safe-area-inset-left, 0px), var(--page-gutter));
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px dashed var(--border);
}

.empty-state h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin: 0 0 8px;
    font-weight: 400;
}

/* Pagination */
.pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.pagination nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-soft);
}

.pagination span[aria-current="page"] {
    background: var(--accent-soft);
    border-color: rgba(28, 181, 172, 0.35);
    color: var(--accent);
}

/* ——— Session detail ——— */
.session-detail-hero {
    position: relative;
    min-height: min(52vh, 420px);
    margin: 0 0 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
    background: var(--bg-deep);
}

.session-detail-hero__media {
    position: absolute;
    inset: 0;
}

.session-detail-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.session-detail-hero__placeholder {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(28, 181, 172, 0.38), transparent 55%),
        linear-gradient(160deg, #1e2f2c 0%, #12151c 100%);
}

.session-detail-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 11, 15, 0.92) 0%, rgba(10, 11, 15, 0.35) 45%, transparent 100%);
}

.session-detail-hero__content {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(3rem, 10vw, 5rem) 0 2rem;
    padding-left: max(env(safe-area-inset-left, 0px), var(--page-gutter));
    padding-right: max(env(safe-area-inset-right, 0px), var(--page-gutter));
    color: #f4f1eb;
}

.session-detail-hero__program {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(244, 241, 235, 0.55);
    margin-bottom: 12px;
}

.session-detail-hero__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 400;
    line-height: 1.05;
    max-width: 18ch;
}

.session-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
    padding: clamp(2rem, 4vw, 3rem) 0 4rem;
}

.session-prose {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-soft);
}

.session-prose h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--text);
    margin: 0 0 16px;
}

.purchase-panel {
    position: sticky;
    top: calc(20px + env(safe-area-inset-top, 0px));
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.purchase-panel__price {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.purchase-panel .stack {
    display: grid;
    gap: 10px;
}

.page-head {
    margin-bottom: 20px;
}

.page-title {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 400;
}

.muted {
    color: var(--muted);
}

.price {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
}

.detail-text {
    line-height: 1.75;
}

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

.stack {
    display: grid;
    gap: 10px;
}

/* Auth */
.auth-stage {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 0 64px;
    padding-left: max(env(safe-area-inset-left, 0px), var(--page-gutter));
    padding-right: max(env(safe-area-inset-right, 0px), var(--page-gutter));
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(28, 181, 172, 0.12), transparent 60%),
        var(--bg);
}

.auth-panel {
    width: 100%;
    max-width: 440px;
    padding: 36px 32px 40px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.auth-panel .page-title {
    text-align: center;
}

.auth-panel .muted {
    text-align: center;
    margin-bottom: 24px;
}

.form-wrap {
    width: 100%;
}

.field {
    margin-bottom: 16px;
}

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

.input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    font-family: var(--font-ui);
    background: #fff;
}

.input:focus {
    outline: none;
    border-color: rgba(28, 181, 172, 0.45);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.tiny-error {
    display: block;
    margin-top: 6px;
    color: var(--danger);
    font-size: 12px;
}

/* Checkout / success */
.checkout-stage,
.success-stage {
    padding: clamp(2rem, 6vw, 4rem) 0;
    padding-left: max(env(safe-area-inset-left, 0px), var(--page-gutter));
    padding-right: max(env(safe-area-inset-right, 0px), var(--page-gutter));
}

.checkout-card,
.success-card {
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 36px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(145deg, #34d399, #059669);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 28px;
    line-height: 1;
}

/* Orders */
.orders-list {
    display: grid;
    gap: 18px;
}

.order-card {
    border-radius: var(--radius);
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.order-card-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.order-lines {
    margin: 0 0 14px;
    padding-left: 18px;
    color: var(--text-soft);
    font-size: 14px;
}

.order-lines a {
    color: var(--accent);
    font-weight: 600;
}

.order-card-actions {
    margin-top: 4px;
}

.order-status {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 10px;
    border-radius: 999px;
}

.order-status--paid {
    background: #ecfdf5;
    color: var(--success);
}

.order-status--pending {
    background: var(--surface-2);
    color: var(--muted);
}

.order-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.order-line-detail {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.order-line-detail:last-child {
    border-bottom: none;
}

/* Footer */
.store-footer {
    margin-top: auto;
    padding: clamp(2rem, 5vw, 3rem) 0 max(40px, env(safe-area-inset-bottom, 0px));
    padding-left: max(env(safe-area-inset-left, 0px), var(--page-gutter));
    padding-right: max(env(safe-area-inset-right, 0px), var(--page-gutter));
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 252, 248, 0.95) 0%, rgba(246, 243, 238, 0.98) 100%);
}

.store-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(1.75rem, 4vw, 2.5rem);
    max-width: 1180px;
    margin: 0 auto;
}

.store-footer__brand {
    text-align: center;
    padding-bottom: clamp(1.25rem, 3vw, 1.75rem);
    border-bottom: 1px solid var(--border);
}

.store-footer__logo-link {
    display: inline-block;
    line-height: 0;
}

.store-footer__logo {
    display: block;
    height: clamp(52px, 14vw, 76px);
    width: auto;
    max-width: min(300px, 88vw);
    margin: 0 auto;
    object-fit: contain;
}

.store-footer__tagline {
    margin: 14px 0 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.store-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 2.25rem);
    align-items: start;
}

@media (min-width: 720px) {
    .store-footer__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: clamp(1.25rem, 3vw, 2.5rem);
    }
}

.store-footer__heading {
    margin: 0 0 14px;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.store-footer__list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.store-footer__list-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-soft);
    text-decoration: none;
    line-height: 1.35;
}

.store-footer__list-link:hover {
    color: var(--accent);
}

.store-footer__list-link--primary {
    color: var(--accent);
}

.store-footer__list-link--btn {
    appearance: none;
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-align: left;
}

.store-footer__list-meta {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
    max-width: 100%;
}

.store-footer__logout {
    margin: 0;
}

.store-footer__contact {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-soft);
}

.store-footer__contact-line {
    margin: 0 0 10px;
}

.store-footer__contact-line:last-child {
    margin-bottom: 0;
}

.store-footer__contact a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.store-footer__contact a:hover {
    text-decoration: underline;
}

.store-footer__main-site-hint {
    color: var(--muted);
    font-weight: 400;
}

.store-footer__sep {
    color: var(--muted);
}

.store-footer__bottom {
    padding-top: clamp(1.25rem, 3vw, 1.5rem);
    border-top: 1px solid var(--border);
    text-align: center;
}

.store-footer__copyright {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

/* Browse page: account CTAs below session grid */
.store-browse-actions {
    margin-top: clamp(1.5rem, 4vw, 2.25rem);
    padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.1rem, 3vw, 1.5rem);
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.store-browse-actions__hint {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.55;
}

.store-browse-actions__hint strong {
    color: var(--text);
    font-weight: 600;
}

.store-browse-actions__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
}

.store-browse-actions__form {
    margin: 0;
    display: inline;
}

/* Legal pages (Privacy, Terms, Refund) */
.store-legal .store-section__title {
    font-size: clamp(1.85rem, 4vw, 2.5rem);
}

.legal-prose {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-soft);
    max-width: 52rem;
    margin: 0 auto;
}

.legal-prose h2 {
    font-family: var(--font-ui);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin: 1.75rem 0 0.65rem;
}

.legal-prose p,
.legal-prose ul {
    margin: 0 0 1rem;
}

.legal-prose ul {
    padding-left: 1.25rem;
}

.legal-prose li {
    margin-bottom: 0.35rem;
}

.legal-prose a {
    color: var(--accent);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1020px) {
    :root {
        --page-gutter: clamp(24px, 5.5vw, 36px);
    }

    .session-grid-landing {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .session-detail-layout {
        grid-template-columns: 1fr;
    }

    .purchase-panel {
        position: static;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    :root {
        --page-gutter: clamp(26px, 7vw, 40px);
    }

    .session-grid-landing {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .store-hero__search {
        flex-direction: column;
    }

    .store-hero__search .btn,
    .store-hero__search button[type="submit"] {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .store-btn {
        min-height: 44px;
    }

    .store-browse-actions__row .store-btn {
        flex: 1 1 auto;
        min-width: min(100%, 160px);
        justify-content: center;
    }
}

@media (max-width: 520px) {
    :root {
        --page-gutter: clamp(28px, 8vw, 44px);
    }

    .session-grid-landing {
        gap: 20px;
    }

    .session-card-body {
        padding: 22px clamp(22px, 6vw, 30px) 24px;
    }

    .store-section__head {
        margin-bottom: 24px;
    }
}

@media (max-width: 380px) {
    .store-hero__logo {
        max-width: min(340px, 96vw);
        height: auto;
        min-height: 72px;
    }

    .store-footer__logo {
        max-width: min(260px, 90vw);
    }
}
