:root {
    --theme-accent: #9cac43;
    --theme-accent-soft: #b5c15a;
    --theme-accent-strong: #78933c;
    --theme-highlight: #c0a958;
    --theme-background: #00130f;
    --theme-background-soft: #02140f;
    --theme-nav-bar: #00130f;
    --theme-card-background: #fffef9;
    --theme-surface: #05221b;
    --theme-text: #f3eee6;
    --theme-warm: #efe8de;
    --theme-muted: #b7bca2;
    --theme-line: #90a041;
    --theme-action-text: #06140f;
    --theme-white: #ffffff;
    --theme-black: #000000;
    --theme-danger: #bd4f3f;
    --theme-light-surface: #fffef9;
    --theme-light-surface-soft: #f8faf1;
    --theme-light-surface-panel: #f4f6ee;
    --theme-light-surface-field: #f5f8ec;
    --theme-light-surface-tint: #eef3df;
    --theme-light-surface-muted: #d9dec8;
    --theme-neutral-canvas: #f6f7fb;
    --theme-neutral-border: #c7c7c7;
    --theme-neutral-rule: #c9ced6;
    --theme-light-text-strong: #14362a;
    --theme-light-text: #0c3327;
    --theme-light-text-deep: #102b22;
    --theme-light-muted: #496356;
    --theme-light-subtle: #42513f;
    --theme-olive-text: #51691f;
    --theme-olive-accent: #6f8233;
    --theme-slate-text: #2c3d30;
    --theme-light-line: #748b3e;
    --theme-olive-shadow: #0e2c21;
    --theme-pale-action-mid: #cbd77a;
    --theme-pale-action-end: #95ac45;
    --theme-admin-active-fill: #d9df9a;
    --theme-light-gradient: #d6e0ba;
    --theme-pale-border: #d5de81;
    --theme-legacy-green: #84a13d;
    --theme-success-surface: #253e1f;
    --theme-danger-surface: #481919;
    --theme-danger-border: #c73737;
    --theme-warning-text: #ffb4a9;
    --theme-email-panel: #082820;
    --theme-dark-footer: #00110e;
    --theme-image-dark: #031611;
    --theme-dark-overlay: #000d0a;
    --theme-dark-overlay-soft: #000e0b;
    --theme-hero-overlay-start: #00100d;
    --theme-hero-overlay-mid: #021c16;
    --theme-hero-overlay-end: #031c16;
    --theme-hero-overlay-mobile: #031f18;
    --theme-background-deep-soft: #02120f;
    --theme-dark-gradient-end: #02221b;
    --theme-image-shadow-blue: #030a17;
    --theme-dark-text: #050505;
    --theme-accent-rgb: 156, 172, 67;
    --theme-accent-soft-rgb: 181, 193, 90;
    --theme-accent-strong-rgb: 120, 147, 60;
    --theme-highlight-rgb: 192, 169, 88;
    --theme-background-rgb: 0, 19, 15;
    --theme-background-soft-rgb: 2, 20, 15;
    --theme-nav-bar-rgb: 0, 19, 15;
    --theme-card-background-rgb: 255, 254, 249;
    --theme-surface-rgb: 5, 34, 27;
    --theme-text-rgb: 243, 238, 230;
    --theme-warm-rgb: 239, 232, 222;
    --theme-muted-rgb: 183, 188, 162;
    --theme-line-rgb: 144, 160, 65;
    --theme-action-text-rgb: 6, 20, 15;
    --theme-white-rgb: 255, 255, 255;
    --theme-black-rgb: 0, 0, 0;
    --theme-danger-rgb: 189, 79, 63;
    --theme-light-surface-rgb: 255, 254, 249;
    --theme-light-surface-soft-rgb: 248, 250, 241;
    --theme-light-surface-panel-rgb: 244, 246, 238;
    --theme-light-surface-field-rgb: 245, 248, 236;
    --theme-light-surface-tint-rgb: 238, 243, 223;
    --theme-light-surface-muted-rgb: 217, 222, 200;
    --theme-neutral-canvas-rgb: 246, 247, 251;
    --theme-neutral-border-rgb: 199, 199, 199;
    --theme-neutral-rule-rgb: 201, 206, 214;
    --theme-light-text-strong-rgb: 20, 54, 42;
    --theme-light-text-rgb: 12, 51, 39;
    --theme-light-text-deep-rgb: 16, 43, 34;
    --theme-light-muted-rgb: 73, 99, 86;
    --theme-light-subtle-rgb: 66, 81, 63;
    --theme-olive-text-rgb: 81, 105, 31;
    --theme-olive-accent-rgb: 111, 130, 51;
    --theme-slate-text-rgb: 44, 61, 48;
    --theme-light-line-rgb: 116, 139, 62;
    --theme-olive-shadow-rgb: 14, 44, 33;
    --theme-pale-action-mid-rgb: 203, 215, 122;
    --theme-pale-action-end-rgb: 149, 172, 69;
    --theme-admin-active-fill-rgb: 217, 223, 154;
    --theme-light-gradient-rgb: 214, 224, 186;
    --theme-pale-border-rgb: 213, 222, 129;
    --theme-legacy-green-rgb: 132, 161, 61;
    --theme-success-surface-rgb: 37, 62, 31;
    --theme-danger-surface-rgb: 72, 25, 25;
    --theme-danger-border-rgb: 199, 55, 55;
    --theme-warning-text-rgb: 255, 180, 169;
    --theme-email-panel-rgb: 8, 40, 32;
    --theme-dark-footer-rgb: 0, 17, 14;
    --theme-image-dark-rgb: 3, 22, 17;
    --theme-dark-overlay-rgb: 0, 13, 10;
    --theme-dark-overlay-soft-rgb: 0, 14, 11;
    --theme-hero-overlay-start-rgb: 0, 16, 13;
    --theme-hero-overlay-mid-rgb: 2, 28, 22;
    --theme-hero-overlay-end-rgb: 3, 28, 22;
    --theme-hero-overlay-mobile-rgb: 3, 31, 24;
    --theme-background-deep-soft-rgb: 2, 18, 15;
    --theme-dark-gradient-end-rgb: 2, 34, 27;
    --theme-image-shadow-blue-rgb: 3, 10, 23;
    --theme-dark-text-rgb: 5, 5, 5;
    --ink: var(--theme-text);
    --muted: var(--theme-muted);
    --line: rgba(var(--theme-line-rgb), 0.42);
    --paper: rgba(var(--theme-surface-rgb), 0.94);
    --soft: var(--theme-background-soft);
    --cyan: var(--theme-accent);
    --blue: var(--theme-accent-strong);
    --magenta: var(--theme-highlight);
    --emerald: var(--theme-accent-soft);
    --danger: var(--theme-danger);
    --deep: var(--theme-background);
    --deep-2: var(--theme-surface);
    --panel: rgba(var(--theme-surface-rgb), 0.9);
    --panel-strong: rgba(var(--theme-surface-rgb), 0.96);
    --warm: var(--theme-warm);
    --shadow: 0 24px 58px rgba(var(--theme-black-rgb), 0.34);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(var(--theme-accent-rgb), 0.12), transparent 380px),
        linear-gradient(135deg, var(--deep) 0%, var(--deep-2) 48%, var(--soft) 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

img {
    max-width: 100%;
    display: block;
}

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

a:hover {
    color: var(--magenta);
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
    padding: 14px max(24px, calc((100vw - 1180px) / 2));
    background: rgba(var(--theme-nav-bar-rgb), 0.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(var(--theme-accent-rgb), 0.26);
}

.brand-mark img {
    width: 100%;
    height: 100%;
}

.brand-text {
    font-size: 1.1rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--warm);
    font-weight: 700;
}

.nav-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 16px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    overflow-wrap: anywhere;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nav-cta,
.button-primary {
    color: var(--theme-action-text);
    background: linear-gradient(135deg, var(--warm), var(--theme-accent-soft) 52%, var(--theme-accent-strong));
    box-shadow: 0 12px 28px rgba(var(--theme-accent-rgb), 0.22);
}

.button-secondary {
    color: var(--warm);
    background: rgba(var(--theme-surface-rgb), 0.72);
    border-color: var(--line);
}

.button-danger {
    color: var(--theme-white);
    background: var(--danger);
}

.button.small {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.button.full-width {
    width: 100%;
}

.button:hover,
.nav-cta:hover {
    color: inherit;
    transform: translateY(-1px);
}

.button-primary:hover,
.nav-cta:hover {
    color: var(--theme-action-text);
    box-shadow: 0 16px 32px rgba(var(--theme-accent-rgb), 0.3);
}

.inline-form {
    display: inline;
    margin: 0;
}

.link-button {
    padding: 0;
    color: var(--warm);
    background: none;
    border: 0;
    font-weight: 800;
}

.mobile-header-actions {
    display: none;
}

.mobile-header-actions svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-icon-button,
.mobile-cart-button {
    color: inherit;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--theme-white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
}

.flash {
    width: min(1180px, calc(100% - 32px));
    margin: 18px auto 0;
    padding: 14px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--panel-strong);
    font-weight: 700;
}

.flash-success {
    border-color: rgba(var(--theme-accent-rgb), 0.55);
    background: rgba(var(--theme-success-surface-rgb), 0.94);
}

.flash-error {
    border-color: rgba(var(--theme-danger-border-rgb), 0.35);
    background: rgba(var(--theme-danger-surface-rgb), 0.94);
}

.cart-toast {
    position: fixed;
    top: 92px;
    left: 50%;
    z-index: 70;
    width: min(420px, calc(100% - 32px));
    padding: 13px 16px;
    color: var(--theme-action-text);
    background: linear-gradient(135deg, var(--warm), var(--theme-accent-soft) 52%, var(--theme-accent-strong));
    border: 1px solid rgba(var(--theme-warm-rgb), 0.4);
    border-radius: var(--radius);
    box-shadow: 0 18px 42px rgba(var(--theme-black-rgb), 0.34);
    font-weight: 900;
    text-align: center;
    transform: translateX(-50%);
}

.cart-toast[data-type="error"] {
    color: var(--theme-white);
    background: var(--danger);
}

.cart-toast[hidden] {
    display: none;
}

.hero {
    position: relative;
    min-height: auto;
    overflow: hidden;
    color: var(--theme-white);
    background: var(--deep);
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(var(--theme-hero-overlay-start-rgb), 0.96) 0%, rgba(var(--theme-hero-overlay-mid-rgb), 0.86) 45%, rgba(var(--theme-hero-overlay-end-rgb), 0.44) 100%),
        linear-gradient(180deg, rgba(var(--theme-accent-rgb), 0.16), rgba(var(--theme-background-deep-soft-rgb), 0.32));
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 28px;
    text-align: center;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
    max-width: 780px;
    margin: 0;
    font-size: 4.5rem;
    line-height: 0.96;
    letter-spacing: 0;
}

.hero h1 {
    margin: 0 auto;
}

.hero-copy {
    width: min(820px, 100%);
    margin: 16px auto 0;
    color: rgba(var(--theme-warm-rgb), 0.86);
    font-size: 1rem;
    line-height: 1.48;
}

.hero-copy p {
    margin: 0;
}

.hero-copy .hero-copy-note {
    margin-top: 10px;
    color: rgba(var(--theme-warm-rgb), 0.58);
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.45;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.page-home .hero {
    min-height: clamp(620px, calc(100svh - 132px), 840px);
    background: var(--theme-black);
}

.page-home .hero-media img {
    object-position: center center;
}

.page-home .hero-media::after {
    background: none;
}

.page-home .hero-content {
    display: grid;
    grid-template-rows: auto minmax(210px, 1fr) auto auto auto;
    align-items: center;
    min-height: inherit;
    padding: clamp(30px, 5vw, 58px) 0 clamp(28px, 4vw, 48px);
    gap: clamp(16px, 2.4vw, 28px);
}

.page-home .hero h1 {
    grid-row: 1;
    max-width: 100%;
    color: var(--theme-white);
    font-size: clamp(4.2rem, 8vw, 7.15rem);
    font-weight: 900;
    line-height: 0.92;
    text-shadow: 0 6px 22px rgba(var(--theme-black-rgb), 0.72);
}

.page-home .hero-actions {
    grid-row: 3;
    justify-self: center;
    display: grid;
    grid-template-columns: repeat(2, minmax(170px, 1fr));
    width: min(540px, 100%);
    gap: 14px;
    margin: 0;
}

.page-home .hero-actions .button {
    min-height: 52px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    box-shadow: 0 18px 42px rgba(var(--theme-black-rgb), 0.36);
}

.page-home .hero-actions .button-primary {
    color: var(--theme-action-text);
    background: linear-gradient(135deg, var(--theme-white), var(--theme-accent-soft) 54%, var(--theme-accent-strong));
}

.page-home .hero-actions .button-secondary {
    color: var(--theme-white);
    background: rgba(var(--theme-black-rgb), 0.46);
    border-color: rgba(var(--theme-white-rgb), 0.22);
}

.page-home .hero-badges {
    grid-row: 4;
    justify-self: center;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(12px, 2.2vw, 28px);
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 64px;
    min-width: min(100%, 260px);
    padding: 12px 24px;
    color: var(--theme-white);
    background: rgba(var(--theme-background-rgb), 0.68);
    border: 1px solid rgba(var(--theme-accent-soft-rgb), 0.36);
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(var(--theme-white-rgb), 0.04), 0 14px 28px rgba(var(--theme-black-rgb), 0.28);
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    font-weight: 900;
    line-height: 1.12;
    text-align: left;
}

.hero-badge svg {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    fill: none;
    stroke: var(--theme-accent-soft);
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-badge strong {
    max-width: 180px;
}

.page-home .hero-disclaimer {
    grid-row: 5;
    justify-self: center;
}

.hero-disclaimer {
    max-width: 820px;
    margin: 0 auto;
    color: rgba(var(--theme-warm-rgb), 0.68);
    font-size: clamp(1.05rem, 2vw, 1.55rem);
    font-weight: 500;
    line-height: 1.32;
    text-align: center;
    text-shadow: 0 4px 18px rgba(var(--theme-black-rgb), 0.76);
}

.section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    width: min(1180px, calc(100% - 32px));
    margin-top: 32px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--line);
    box-shadow: var(--shadow);
}

.band-item {
    min-height: 150px;
    padding: 26px;
    background: rgba(var(--theme-surface-rgb), 0.94);
}

.band-kicker,
.card-label,
.product-category {
    display: block;
    margin-bottom: 8px;
    color: var(--magenta);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.section-heading.tight {
    margin-bottom: 16px;
}

.section-heading h2,
.split-section h2,
.summary-panel h2,
.auth-panel h1,
.admin-form h2 {
    margin: 0;
    font-size: 2.25rem;
    line-height: 1.08;
    letter-spacing: 0;
}

.section-heading a {
    color: var(--magenta);
    font-weight: 900;
}

.product-section {
    padding-top: 28px;
}

.product-section-heading {
    align-items: center;
}

.product-section-heading h2 {
    color: var(--warm);
}

.product-section-heading p {
    max-width: 520px;
    margin: 8px 0 0;
    color: rgba(var(--theme-warm-rgb), 0.74);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--theme-light-text-strong);
    border: 1px solid rgba(var(--theme-light-line-rgb), 0.26);
    border-radius: var(--radius);
    background: var(--theme-card-background);
    box-shadow: 0 22px 52px rgba(var(--theme-black-rgb), 0.28);
}

.product-visual {
    display: grid;
    min-height: 170px;
    max-height: 340px;
    aspect-ratio: var(--product-image-ratio, 4 / 3);
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(var(--theme-white-rgb), 0.84), rgba(var(--theme-light-gradient-rgb), 0.72)),
        var(--theme-light-surface-panel);
}

.product-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-visual.large {
    width: var(--product-image-width, 100%);
    min-height: 0;
    max-height: min(680px, 72vh);
    aspect-ratio: var(--product-image-ratio, 1 / 1);
    justify-self: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.product-image-open {
    position: relative;
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    place-items: center;
    color: var(--theme-action-text);
    background: transparent;
    border: 0;
    cursor: zoom-in;
}

.product-image-open:focus-visible {
    outline: 3px solid rgba(var(--theme-highlight-rgb), 0.78);
    outline-offset: -5px;
}

.product-image-open-icon {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--theme-action-text);
    background: rgba(var(--theme-light-surface-rgb), 0.9);
    border: 1px solid rgba(var(--theme-line-rgb), 0.48);
    border-radius: 999px;
    box-shadow: 0 12px 24px rgba(var(--theme-black-rgb), 0.28);
}

.product-image-open-icon svg,
.product-image-viewer-close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.product-image-viewer-open {
    overflow: hidden;
}

.product-image-viewer[hidden] {
    display: none;
}

.product-image-viewer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    padding: clamp(12px, 3vw, 32px);
    place-items: center;
}

.product-image-viewer-backdrop {
    position: absolute;
    inset: 0;
    padding: 0;
    background: rgba(var(--theme-dark-overlay-rgb), 0.92);
    border: 0;
    cursor: zoom-out;
}

.product-image-viewer-panel {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(100%, 1180px);
    height: min(100%, 88vh);
    place-items: center;
}

.product-image-viewer-panel img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    background:
        linear-gradient(135deg, rgba(var(--theme-white-rgb), 0.92), rgba(var(--theme-light-gradient-rgb), 0.78)),
        var(--theme-light-surface-panel);
    border: 1px solid rgba(var(--theme-warm-rgb), 0.22);
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(var(--theme-black-rgb), 0.48);
}

.product-image-viewer-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    color: var(--theme-action-text);
    background: rgba(var(--theme-light-surface-rgb), 0.94);
    border: 1px solid rgba(var(--theme-line-rgb), 0.5);
    border-radius: 999px;
    box-shadow: 0 14px 30px rgba(var(--theme-black-rgb), 0.34);
    cursor: pointer;
}

.product-image-viewer-close:focus-visible {
    outline: 3px solid rgba(var(--theme-highlight-rgb), 0.84);
    outline-offset: 3px;
}

.product-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--theme-white);
    background:
        linear-gradient(135deg, rgba(var(--theme-warm-rgb), 0.28), rgba(var(--theme-accent-rgb), 0.78) 55%, rgba(var(--theme-dark-gradient-end-rgb), 0.94)),
        var(--theme-image-dark);
    font-size: 2.5rem;
    font-weight: 900;
}

.product-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.featured-product-card .product-card-body {
    flex: 0 0 auto;
}

.product-card .product-category {
    color: var(--theme-olive-accent);
}

.product-card h3 {
    margin: 0;
    color: var(--theme-light-text);
    font-size: 1.25rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.product-card p {
    min-height: 52px;
    margin: 10px 0 14px;
    color: var(--theme-light-muted);
    overflow-wrap: anywhere;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 2px 0 18px;
}

.product-meta span {
    padding: 6px 9px;
    color: var(--theme-olive-text);
    background: var(--theme-light-surface-tint);
    border: 1px solid rgba(var(--theme-olive-accent-rgb), 0.24);
    border-radius: var(--radius);
    font-size: 0.86rem;
    font-weight: 800;
}

.product-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.featured-product-card .product-card-bottom {
    margin-top: 16px;
}

.product-price {
    display: inline-grid;
    gap: 2px;
    padding: 8px 11px;
    color: var(--theme-light-text);
    background: var(--theme-light-surface-tint);
    border: 1px solid rgba(var(--theme-olive-accent-rgb), 0.28);
    border-radius: var(--radius);
    font-size: 1.28rem;
    line-height: 1.05;
}

.product-price span {
    color: var(--theme-olive-text);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.product-price b {
    color: inherit;
    font: inherit;
}

.featured-product-card .product-price {
    color: var(--theme-action-text);
    background: linear-gradient(135deg, var(--theme-warm), var(--theme-pale-action-mid) 52%, var(--theme-pale-action-end));
    border-color: rgba(var(--theme-olive-accent-rgb), 0.38);
    box-shadow: 0 12px 28px rgba(var(--theme-olive-text-rgb), 0.2);
    font-size: 1.48rem;
}

.featured-product-card .product-price span {
    color: rgba(var(--theme-action-text-rgb), 0.7);
}

.product-card-bottom .add-cart-form {
    display: grid;
    grid-template-columns: 74px minmax(108px, auto);
    gap: 5px;
    align-items: end;
    justify-items: stretch;
}

.product-card-bottom.has-mg-selector {
    align-items: stretch;
    flex-direction: column;
}

.product-card-bottom.has-mg-selector .product-price,
.product-card-bottom.has-mg-selector .add-cart-form {
    width: 100%;
}

.product-card-cart-form.has-mg-selector {
    grid-template-columns: minmax(116px, 1fr) 70px minmax(104px, auto);
}

.product-card-bottom .button {
    width: 100%;
    white-space: nowrap;
}

.quantity-field {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.quantity-field span {
    color: var(--theme-olive-text);
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.quantity-field input,
.mg-select-field select {
    min-height: 36px;
    padding: 7px 9px;
    color: var(--theme-light-text-strong);
    background: var(--theme-light-surface-soft);
    border-color: rgba(var(--theme-light-line-rgb), 0.34);
    font-weight: 900;
}

.product-quantity-field {
    width: 74px;
}

.cart-add-status {
    grid-column: 1 / -1;
    min-height: 1.2em;
    color: var(--theme-olive-text);
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1.2;
}

.cart-add-status[data-type="error"] {
    color: var(--danger);
}

.product-card .button-primary {
    color: var(--theme-light-surface);
    background: linear-gradient(135deg, var(--theme-accent-strong), var(--theme-accent));
    box-shadow: 0 12px 24px rgba(var(--theme-accent-rgb), 0.22);
}

.product-card .button-primary:hover {
    color: var(--theme-light-surface);
}

.product-card .button-primary:disabled {
    color: var(--theme-slate-text);
    background: var(--theme-light-surface-muted);
    box-shadow: none;
    opacity: 1;
}

.product-detail .button-primary {
    color: var(--theme-light-surface);
    background: linear-gradient(135deg, var(--theme-accent-strong), var(--theme-accent));
    box-shadow: 0 12px 24px rgba(var(--theme-accent-rgb), 0.22);
}

.product-detail .button-primary:hover {
    color: var(--theme-light-surface);
}

.product-load-more {
    display: grid;
    justify-items: center;
    gap: 10px;
    margin-top: 28px;
}

.product-load-more[hidden] {
    display: none;
}

.product-load-more span {
    color: rgba(var(--theme-warm-rgb), 0.74);
    font-size: 0.9rem;
    font-weight: 800;
}

.split-section {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 44px;
    align-items: start;
}

.split-section p {
    color: var(--muted);
    font-size: 1.05rem;
}

.process-list {
    display: grid;
    gap: 14px;
}

.process-list div {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 6px 18px;
    padding: 20px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.process-list span {
    grid-row: span 2;
    color: var(--emerald);
    font-size: 1.4rem;
    font-weight: 900;
}

.process-list p {
    margin: 0;
}

.page-hero {
    padding: 76px max(16px, calc((100vw - 1180px) / 2));
    color: var(--theme-white);
    background:
        linear-gradient(135deg, rgba(var(--theme-background-rgb), 0.96), rgba(var(--theme-surface-rgb), 0.94)),
        linear-gradient(90deg, var(--deep), var(--theme-accent-strong), var(--theme-highlight));
}

.compact-hero p:last-child {
    max-width: 680px;
    margin: 16px 0 0;
    color: rgba(var(--theme-white-rgb), 0.78);
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 260px auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 28px;
    padding: 18px;
    color: var(--theme-light-text-strong);
    border: 1px solid rgba(var(--theme-light-line-rgb), 0.26);
    border-radius: var(--radius);
    background: rgba(var(--theme-light-surface-rgb), 0.96);
    box-shadow: 0 18px 44px rgba(var(--theme-black-rgb), 0.22);
}

.filter-bar label {
    color: var(--theme-olive-text);
}

.filter-bar input,
.filter-bar select {
    color: var(--theme-light-text-strong);
    background: var(--theme-light-surface-soft);
    border-color: rgba(var(--theme-light-line-rgb), 0.28);
}

label {
    display: grid;
    gap: 7px;
    color: var(--warm);
    font-size: 0.9rem;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--ink);
    background: rgba(var(--theme-dark-overlay-soft-rgb), 0.78);
    border: 1px solid rgba(var(--theme-line-rgb), 0.48);
    border-radius: var(--radius);
    outline: none;
}

select option {
    color: var(--ink);
    background: var(--deep);
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(var(--theme-accent-rgb), 0.18);
}

.empty-state {
    padding: 34px;
    color: var(--muted);
    background: var(--panel);
    border: 1px dashed rgba(var(--theme-line-rgb), 0.55);
    border-radius: var(--radius);
    text-align: center;
}

.empty-state p {
    margin: 0 0 12px;
}

.empty-state p:last-child {
    margin-bottom: 0;
}

.empty-state .button {
    margin-top: 4px;
}

.product-detail {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 52px;
    align-items: start;
    margin-top: 36px;
    margin-bottom: 36px;
    padding: 32px;
    color: var(--theme-light-text-strong);
    background: rgba(var(--theme-light-surface-rgb), 0.97);
    border: 1px solid rgba(var(--theme-light-line-rgb), 0.26);
    border-radius: var(--radius);
    box-shadow: 0 24px 58px rgba(var(--theme-black-rgb), 0.3);
}

.product-gallery {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.product-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 10px;
}

.product-thumb {
    display: block;
    min-height: 0;
    padding: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--theme-light-surface);
    border: 2px solid rgba(var(--theme-light-line-rgb), 0.28);
    border-radius: var(--radius);
    cursor: pointer;
}

.product-thumb.active,
.product-thumb:hover {
    border-color: var(--theme-accent-strong);
    box-shadow: 0 0 0 3px rgba(var(--theme-accent-strong-rgb), 0.16);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info {
    display: grid;
    gap: 18px;
}

.product-info h1 {
    margin: 0;
    color: var(--theme-light-text);
    font-size: 3.25rem;
    line-height: 1;
    letter-spacing: 0;
}

.product-tagline {
    margin: 0;
    color: var(--theme-light-muted);
    font-size: 1.18rem;
}

.product-purchase-panel {
    display: grid;
    gap: 4px;
    width: min(280px, 100%);
    padding: 18px;
    color: var(--theme-light-text-strong);
    background: var(--theme-light-surface-field);
    border: 1px solid rgba(var(--theme-light-line-rgb), 0.24);
    border-radius: var(--radius);
    box-shadow: 0 12px 26px rgba(var(--theme-olive-shadow-rgb), 0.12);
}

.product-purchase-panel span {
    color: var(--theme-olive-text);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.product-purchase-panel strong {
    font-size: 2rem;
    line-height: 1.05;
}

.product-purchase-panel em {
    color: var(--theme-olive-text);
    font-size: 0.86rem;
    font-style: normal;
    font-weight: 900;
}

.product-detail-copy {
    display: grid;
    gap: 8px;
    width: min(620px, 100%);
    padding: 18px;
    color: var(--theme-light-text-strong);
    background: var(--theme-light-surface);
    border: 1px solid rgba(var(--theme-light-line-rgb), 0.22);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(var(--theme-olive-shadow-rgb), 0.1);
}

.product-detail-copy span,
.mg-select-field span {
    color: var(--theme-olive-text);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.product-detail-copy p {
    margin: 0;
    color: var(--theme-light-muted);
    line-height: 1.65;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 28px 0;
}

.spec-grid span {
    min-height: 88px;
    padding: 14px;
    color: var(--theme-light-muted);
    background: var(--theme-light-surface-soft);
    border: 1px solid rgba(var(--theme-light-line-rgb), 0.22);
    border-radius: var(--radius);
}

.spec-grid strong {
    display: block;
    color: var(--theme-light-text);
    font-size: 1.1rem;
}

.cart-form {
    display: grid;
    grid-template-columns: 120px auto;
    gap: 12px;
    align-items: end;
}

.simple-cart-form {
    grid-template-columns: 96px minmax(170px, 260px);
    align-items: end;
}

.simple-cart-form.has-mg-selector {
    grid-template-columns: minmax(140px, 220px) 78px minmax(170px, 240px);
}

.simple-cart-form .cart-add-status {
    grid-column: 1 / -1;
    color: var(--cyan);
}

.mg-select-field {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.product-accordions {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.product-accordion {
    color: var(--theme-light-text-strong);
    background: var(--theme-light-surface);
    border: 1px solid rgba(var(--theme-light-line-rgb), 0.22);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(var(--theme-olive-shadow-rgb), 0.1);
}

.product-accordion summary {
    position: relative;
    padding: 16px 46px 16px 18px;
    cursor: pointer;
    color: var(--theme-light-text);
    font-weight: 900;
    list-style: none;
}

.product-accordion summary::-webkit-details-marker {
    display: none;
}

.product-accordion summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 18px;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
    color: var(--theme-light-surface);
    background: linear-gradient(135deg, var(--theme-accent-strong), var(--theme-accent));
    border-radius: 999px;
    text-align: center;
    line-height: 24px;
}

.product-accordion[open] summary::after {
    content: "-";
}

.product-accordion p {
    margin: 0;
    padding: 0 18px 18px;
    color: var(--theme-light-muted);
}

.product-spec-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0 18px 18px;
}

.product-spec-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.product-spec-list div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.product-spec-list dt {
    color: var(--muted);
    font-weight: 800;
}

.product-spec-list dd {
    margin: 0;
    font-weight: 900;
    text-align: right;
}

.fine-print {
    color: var(--muted);
    font-size: 0.9rem;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 18px;
    align-items: start;
}

.cart-table,
.summary-panel,
.auth-panel,
.admin-form,
.dashboard-card {
    padding: 24px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.cart-table,
.summary-panel {
    padding: 0;
    overflow: hidden;
}

.cart-table-header,
.cart-summary-heading {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}

.cart-table-header h2,
.cart-summary-heading h2 {
    margin: 0;
    font-size: 1.28rem;
    line-height: 1.1;
}

.cart-table-header span:not(.cart-section-icon) {
    margin-top: 2px;
}

.cart-section-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--theme-light-text-strong);
    background: rgba(var(--theme-light-surface-rgb), 0.9);
    border: 1px solid rgba(var(--theme-line-rgb), 0.34);
    border-radius: 8px;
}

.cart-section-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-row {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) 152px 82px 92px;
    gap: 10px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}

.cart-item-summary {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.cart-item-photo {
    display: grid;
    width: 44px;
    max-width: 44px;
    aspect-ratio: 1 / 1;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(var(--theme-white-rgb), 0.88), rgba(var(--theme-light-gradient-rgb), 0.72)),
        var(--theme-light-surface-panel);
    border: 1px solid rgba(var(--theme-line-rgb), 0.38);
    border-radius: 8px;
}

.cart-item-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-copy {
    min-width: 0;
}

.cart-item-copy strong {
    display: block;
    font-size: 0.98rem;
    line-height: 1.2;
}

.cart-row > .cart-item-summary {
    align-self: center;
}

.cart-row:first-of-type {
    padding-top: 12px;
}

.cart-row span,
.order-card span,
.admin-product span {
    display: block;
    color: var(--muted);
    font-size: 0.88rem;
}

.cart-qty-form,
.cart-remove-form {
    margin: 0;
}

.cart-qty-form {
    display: grid;
    grid-template-columns: 62px 76px;
    gap: 7px;
    align-items: end;
}

.cart-quantity-field input {
    min-height: 34px;
    padding: 7px 9px;
    font-weight: 900;
}

.cart-qty-form .button,
.cart-remove-form .button {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    padding: 7px 10px;
    font-size: 0.88rem;
    border-color: rgba(var(--theme-highlight-rgb), 0.46);
    box-shadow: inset 0 0 0 1px rgba(var(--theme-warm-rgb), 0.04);
}

.cart-remove-form {
    align-self: center;
    padding-bottom: 0;
}

.cart-line-total {
    align-self: center;
    font-size: 0.98rem;
    text-align: right;
}

.summary-panel {
    position: sticky;
    top: 96px;
}

.summary-panel .summary-line {
    margin: 0;
    padding: 11px 16px;
    border-top: 0;
    border-bottom: 1px solid var(--line);
}

.summary-panel .summary-total {
    padding-top: 14px;
    padding-bottom: 14px;
}

.summary-panel .summary-total span,
.summary-panel .summary-total strong {
    color: var(--theme-warm);
    font-size: 1.15rem;
}

.discount-summary-line strong {
    color: var(--cyan);
}

.discount-code-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: end;
    margin: 0;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}

.discount-code-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.discount-code-form input {
    min-height: 40px;
    padding: 9px 11px;
}

.discount-code-form .button {
    min-height: 40px;
}

.discount-code-status {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--cyan);
    font-size: 0.88rem;
    font-weight: 800;
}

.discount-code-status.error {
    color: var(--theme-warning-text);
}

.summary-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 18px 0;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.checkout-form {
    display: grid;
    gap: 14px;
}

.summary-panel .checkout-form {
    gap: 11px;
    padding: 14px 16px 16px;
}

.summary-panel .checkout-form input,
.summary-panel .checkout-form textarea,
.summary-panel .checkout-form select {
    min-height: 40px;
    padding: 9px 11px;
}

.checkout-section {
    display: grid;
    gap: 12px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--line);
}

.checkout-section h3 {
    margin: 0;
    font-size: 1.05rem;
}

.checkout-address-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.checkout-address-grid .span-2 {
    grid-column: 1 / -1;
}

.payment-options {
    display: grid;
    gap: 12px;
}

.payment-option {
    display: grid;
    grid-template-columns: auto 44px 1fr;
    align-items: start;
    gap: 12px;
    min-height: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(var(--theme-background-rgb), 0.66);
    cursor: pointer;
}

.payment-cashapp {
    border-left: 4px solid var(--cyan);
}

.payment-venmo {
    border-left: 4px solid var(--magenta);
}

.payment-zelle {
    border-left: 4px solid var(--emerald);
}

.payment-stripe {
    border-left: 4px solid var(--theme-accent-strong);
}

.payment-paypal {
    border-left: 4px solid var(--theme-highlight);
}

.payment-option input {
    width: 18px;
    min-height: 18px;
    margin-top: 13px;
}

.payment-option-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--theme-action-text);
    background: linear-gradient(135deg, var(--warm), var(--theme-accent-soft) 54%, var(--theme-accent-strong));
    border: 1px solid rgba(var(--theme-warm-rgb), 0.5);
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(var(--theme-black-rgb), 0.22);
}

.payment-venmo .payment-option-icon {
    background: linear-gradient(135deg, var(--warm), var(--theme-highlight) 54%, var(--theme-accent-strong));
}

.payment-zelle .payment-option-icon {
    background: linear-gradient(135deg, var(--warm), var(--theme-accent) 54%, var(--theme-accent-strong));
}

.payment-stripe .payment-option-icon {
    background: linear-gradient(135deg, var(--warm), var(--theme-accent-soft) 54%, var(--theme-accent-strong));
}

.payment-paypal .payment-option-icon {
    background: linear-gradient(135deg, var(--warm), var(--theme-highlight) 54%, var(--theme-accent-strong));
}

.payment-option-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.payment-option-copy {
    display: grid;
    gap: 6px;
}

.payment-option-copy strong {
    font-size: 1.05rem;
    line-height: 1.1;
}

.summary-panel .payment-option {
    grid-template-columns: auto 38px 1fr;
    gap: 10px;
    padding: 11px;
}

.summary-panel .payment-option input {
    width: 16px;
    min-height: 16px;
    margin-top: 11px;
}

.summary-panel .payment-option-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
}

.summary-panel .payment-option-icon svg {
    width: 22px;
    height: 22px;
}

.summary-panel .payment-option-copy {
    gap: 4px;
}

.summary-panel .payment-option-copy strong {
    font-size: 0.98rem;
}

.summary-panel .payment-option em,
.summary-panel .payment-option small,
.summary-panel .payment-contact-field small {
    font-size: 0.8rem;
}

.payment-option small {
    color: var(--muted);
    font-weight: 700;
    line-height: 1.35;
}

.payment-option em {
    color: rgba(var(--theme-warm-rgb), 0.7);
    font-size: 0.88rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.35;
}

.payment-option:has(input:checked) {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(var(--theme-accent-rgb), 0.18);
}

.payment-contact-field {
    display: grid;
    gap: 8px;
    padding: 16px;
    background: rgba(var(--theme-background-rgb), 0.42);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.summary-panel .payment-contact-field {
    gap: 6px;
    padding: 12px;
}

.payment-contact-field small {
    color: rgba(var(--theme-warm-rgb), 0.68);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
}

.payment-contact-field[data-payment-method="cashapp"] {
    border-color: rgba(var(--theme-accent-rgb), 0.55);
}

.payment-contact-field[data-payment-method="venmo"] {
    border-color: rgba(var(--theme-highlight-rgb), 0.55);
}

.payment-contact-field[data-payment-method="zelle"] {
    border-color: rgba(var(--theme-legacy-green-rgb), 0.55);
}

.payment-contact-field[data-payment-method="stripe"],
.payment-contact-field[data-payment-method="paypal"] {
    opacity: 0.72;
}

.payment-instructions-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.manual-payment-card,
.payment-summary-panel {
    padding: 28px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.manual-payment-card {
    border-top: 6px solid var(--cyan);
}

.manual-payment-card.method-cashapp {
    border-top-color: var(--cyan);
}

.manual-payment-card.method-venmo {
    border-top-color: var(--magenta);
}

.manual-payment-card.method-zelle {
    border-top-color: var(--emerald);
}

.manual-payment-card.method-stripe {
    border-top-color: var(--theme-olive-accent);
}

.manual-payment-card.method-paypal {
    border-top-color: var(--theme-highlight);
}

.pay-method-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding-bottom: 22px;
    border-bottom: 2px solid var(--theme-neutral-rule);
}

.pay-method-heading h2 {
    flex: 1;
    min-width: 220px;
    margin: 0;
    font-size: 2.1rem;
    line-height: 1.1;
}

.payment-radio-dot {
    width: 28px;
    height: 28px;
    border: 8px solid var(--cyan);
    border-radius: 999px;
    background: var(--theme-white);
}

.pay-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: var(--theme-white);
    border-radius: var(--radius);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.cashapp-icon {
    background: var(--cyan);
}

.venmo-icon {
    background: var(--magenta);
}

.zelle-icon {
    background: var(--emerald);
}

.stripe-icon {
    background: var(--theme-olive-accent);
}

.paypal-icon {
    background: var(--theme-highlight);
}

.stripe-payment-box,
.paypal-payment-box,
.payment-success-panel {
    display: grid;
    gap: 14px;
    margin-top: 20px;
    padding: 18px;
    background: rgba(var(--theme-background-rgb), 0.68);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.stripe-card-element {
    min-height: 48px;
    padding: 14px 12px;
    background: var(--theme-light-surface);
    border: 1px solid rgba(var(--theme-line-rgb), 0.48);
    border-radius: var(--radius);
}

.payment-inline-status {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 800;
}

.payment-inline-status[data-type="success"] {
    color: var(--cyan);
}

.payment-inline-status[data-type="error"] {
    color: var(--theme-warning-text);
}

.payment-success-panel strong {
    color: var(--cyan);
    font-size: 1.2rem;
}

.manual-payment-card h3 {
    display: inline-block;
    margin: 28px 0 18px;
    font-size: 1.75rem;
    line-height: 1.15;
    text-decoration: underline;
}

.manual-payment-card p {
    max-width: 720px;
    margin: 0 0 18px;
    font-size: 1.2rem;
    line-height: 1.55;
}

.payment-warning {
    color: var(--warm);
    font-weight: 900;
}

.payment-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0 0;
}

.payment-contact-review {
    display: grid;
    gap: 4px;
    margin-top: 28px;
    padding: 18px;
    background: rgba(var(--theme-background-rgb), 0.68);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.payment-contact-review span {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.zelle-card {
    display: grid;
    gap: 12px;
    width: min(430px, 100%);
    margin: 18px 0 0;
    padding: 30px;
    text-align: center;
    border: 4px solid var(--theme-neutral-border);
    border-radius: 24px;
    background: var(--theme-white);
}

.zelle-card-name {
    color: var(--theme-dark-text);
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 500;
}

.zelle-card-phone {
    color: var(--theme-dark-text);
    font-size: 1.35rem;
    font-weight: 900;
}

.zelle-card-note {
    padding: 18px;
    color: var(--muted);
    background: var(--theme-neutral-canvas);
    border-radius: var(--radius);
    font-weight: 800;
}

.zelle-wordmark {
    color: var(--emerald);
    font-size: 2.4rem;
    line-height: 1;
    font-weight: 900;
}

.payment-summary-panel {
    position: sticky;
    top: 96px;
}

.payment-summary-panel h2 {
    margin: 0;
    font-size: 1.6rem;
}

.payment-items {
    display: grid;
    gap: 12px;
    margin: 18px 0;
    padding: 0;
    list-style: none;
}

.payment-items li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.payment-item-summary {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    min-width: 0;
}

.payment-item-photo {
    width: 40px;
    max-width: 40px;
}

.payment-item-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.payment-item-name {
    overflow-wrap: anywhere;
}

.payment-item-copy small {
    color: rgba(var(--theme-warm-rgb), 0.68);
    font-size: 0.82rem;
    font-weight: 800;
}

.payment-items li > strong {
    white-space: nowrap;
}

.payment-items .payment-shipping-line,
.payment-items .payment-discount-line {
    display: flex;
    justify-content: space-between;
}

.payment-items .payment-discount-line strong {
    color: var(--cyan);
}

.payment-items span {
    color: var(--muted);
}

.payment-summary-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.auth-shell {
    width: min(520px, calc(100% - 32px));
    margin: 0 auto;
    padding: 84px 0;
}

.legal-shell {
    width: min(460px, calc(100% - 28px));
    margin: 0 auto;
    padding: clamp(18px, 4vw, 36px) 0;
}

.legal-verify-shell {
    display: grid;
    min-height: calc(100vh - 132px);
    align-items: center;
}

.legal-panel {
    padding: 22px;
    background: rgba(var(--theme-surface-rgb), 0.93);
    border: 1px solid rgba(var(--theme-line-rgb), 0.38);
    border-radius: 10px;
    box-shadow: 0 20px 46px rgba(var(--theme-black-rgb), 0.28);
}

.legal-verify-panel {
    display: grid;
    gap: 11px;
}

.legal-verify-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    background: rgba(var(--theme-light-surface-rgb), 0.08);
    border: 1px solid rgba(var(--theme-warm-rgb), 0.18);
    border-radius: 999px;
}

.legal-brand-mark img {
    width: 25px;
    height: 25px;
}

.legal-verify-brand strong {
    color: var(--theme-light-surface);
    font-size: 1rem;
    line-height: 1;
}

.legal-panel h1 {
    margin: 0;
    max-width: 390px;
    font-size: clamp(1.58rem, 3.8vw, 2rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.legal-panel.declined {
    text-align: center;
}

.legal-panel.declined h1,
.legal-panel.declined .legal-intro {
    margin-right: auto;
    margin-left: auto;
}

.legal-intro {
    margin: 0;
    color: rgba(var(--theme-warm-rgb), 0.76);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.42;
}

.legal-confirm-list {
    display: grid;
    gap: 10px;
}

.legal-confirm-item {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px 11px;
    background: rgba(var(--theme-background-rgb), 0.48);
    border: 1px solid rgba(var(--theme-line-rgb), 0.34);
    border-radius: 8px;
}

.legal-confirm-icon {
    display: grid;
    position: relative;
    width: 26px;
    height: 26px;
    place-items: center;
    color: var(--theme-action-text);
    background: linear-gradient(135deg, var(--warm), var(--theme-accent-soft) 54%, var(--theme-accent-strong));
    border-radius: 999px;
}

.legal-confirm-icon::before,
.legal-confirm-icon::after {
    content: "";
    display: block;
    position: absolute;
    height: 2.2px;
    background: currentColor;
    border-radius: 999px;
    transform-origin: left center;
}

.legal-confirm-icon::before {
    top: 13px;
    left: 7px;
    width: 6px;
    transform: rotate(45deg);
}

.legal-confirm-icon::after {
    top: 17px;
    left: 11px;
    width: 12px;
    transform: rotate(-45deg);
}

.legal-confirm-icon svg {
    display: none;
}

.legal-confirm-item strong,
.legal-confirm-item span {
    display: block;
}

.legal-confirm-item strong {
    color: var(--theme-light-surface);
    font-size: 0.9rem;
    line-height: 1.25;
}

.legal-confirm-item div > span {
    margin-top: 3px;
    color: rgba(var(--theme-warm-rgb), 0.72);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.36;
}

.legal-copy-details {
    background: rgba(var(--theme-background-rgb), 0.36);
    border: 1px solid rgba(var(--theme-accent-rgb), 0.28);
    border-radius: 8px;
}

.legal-copy-details summary {
    position: relative;
    padding: 11px 40px 11px 12px;
    color: var(--theme-warm);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 800;
    list-style: none;
}

.legal-copy-details summary::-webkit-details-marker {
    display: none;
}

.legal-copy-details summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 14px;
    width: 22px;
    height: 22px;
    transform: translateY(-50%);
    background:
        linear-gradient(var(--theme-action-text), var(--theme-action-text)) center / 9px 2px no-repeat,
        linear-gradient(var(--theme-action-text), var(--theme-action-text)) center / 2px 9px no-repeat,
        var(--theme-accent-soft);
    border-radius: 999px;
}

.legal-copy-details[open] summary::after {
    background:
        linear-gradient(var(--theme-action-text), var(--theme-action-text)) center / 9px 2px no-repeat,
        var(--theme-accent-soft);
}

.legal-copy {
    display: grid;
    gap: 10px;
    padding: 0 12px 12px;
}

.legal-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.legal-copy strong {
    color: var(--warm);
}

.legal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.legal-verify-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 0;
}

.legal-verify-actions form,
.legal-verify-actions .button {
    width: 100%;
}

.legal-verify-actions .button {
    min-height: 42px;
    font-size: 0.9rem;
    font-weight: 800;
}

.legal-action-note {
    max-width: 390px;
    margin: 0 auto;
    color: rgba(var(--theme-warm-rgb), 0.66);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
}

.stack-form {
    display: grid;
    gap: 14px;
    margin: 24px 0 18px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.dashboard-card h2 {
    margin: 0 0 8px;
    font-size: 2rem;
    line-height: 1.1;
}

.dashboard-card p {
    color: var(--muted);
}

.order-list {
    display: grid;
    gap: 14px;
}

.order-list.compact {
    gap: 10px;
}

.order-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px 24px;
    padding: 20px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.order-card-side {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.order-action-form {
    margin: 0;
}

.order-action-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.tracking-form {
    display: grid;
    gap: 8px;
    width: min(320px, 100%);
    padding: 12px;
    background: rgba(var(--theme-white-rgb), 0.08);
    border: 1px solid rgba(var(--theme-warm-rgb), 0.18);
    border-radius: var(--radius);
}

.tracking-form label {
    display: grid;
    gap: 4px;
    color: var(--warm);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.tracking-form input[type="text"],
.tracking-form input[type="url"] {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    color: var(--ink);
    background: rgba(var(--theme-background-rgb), 0.74);
    border: 1px solid rgba(var(--theme-warm-rgb), 0.22);
    border-radius: 6px;
}

.tracking-toggle {
    display: flex !important;
    grid-template-columns: none;
    align-items: center;
    gap: 8px !important;
    color: var(--muted) !important;
    font-size: 0.86rem !important;
    font-weight: 800 !important;
    text-transform: none !important;
}

.tracking-toggle input {
    width: auto;
    min-height: 0;
}

.tracking-confirmed {
    color: var(--cyan);
    font-size: 0.82rem;
    font-weight: 900;
}

.tracking-block {
    display: grid;
    gap: 3px;
    margin-top: 12px;
    padding: 12px;
    color: var(--muted);
    background: rgba(var(--theme-white-rgb), 0.07);
    border: 1px solid rgba(var(--theme-warm-rgb), 0.16);
    border-radius: var(--radius);
    font-size: 0.92rem;
}

.tracking-block span {
    color: var(--warm);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.tracking-block p {
    margin: 0;
}

.tracking-block strong,
.tracking-block a {
    color: var(--ink);
}

.order-card > .tracking-block {
    grid-column: 1 / -1;
}

.order-card ul {
    grid-column: 1 / -1;
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.address-block {
    display: grid;
    gap: 3px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.92rem;
}

.address-block span {
    color: var(--warm);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.address-block p {
    margin: 0;
}

.order-card .address-block {
    grid-column: 1 / -1;
}

.admin-tabs-section {
    padding-top: 22px;
    padding-bottom: 0;
}

.admin-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    padding: 1px;
    background:
        linear-gradient(135deg, rgba(var(--theme-text-rgb), 0.18), rgba(var(--theme-accent-rgb), 0.48), rgba(var(--theme-surface-rgb), 0.72)),
        rgba(var(--theme-background-rgb), 0.72);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 22px 52px rgba(var(--theme-black-rgb), 0.3);
}

.admin-tab-link {
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 8px;
    align-items: center;
    gap: 12px;
    min-height: 86px;
    padding: 16px 14px;
    overflow: hidden;
    color: var(--warm);
    background:
        linear-gradient(180deg, rgba(var(--theme-surface-rgb), 0.96), rgba(var(--theme-background-rgb), 0.96)),
        var(--panel);
    border-radius: calc(var(--radius) - 1px);
    font-weight: 900;
    isolation: isolate;
}

.admin-tab-link::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, rgba(var(--theme-warm-rgb), 0.08), rgba(var(--theme-accent-rgb), 0.14));
    opacity: 0;
    transition: opacity 160ms ease;
}

.admin-tab-link:hover::before,
.admin-tab-link.active::before {
    opacity: 1;
}

.admin-tab-link:hover {
    color: var(--warm);
}

.admin-tab-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: var(--warm);
    background: rgba(var(--theme-background-rgb), 0.62);
    border: 1px solid rgba(var(--theme-warm-rgb), 0.14);
    border-radius: var(--radius);
}

.admin-tab-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-tab-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.admin-tab-copy strong,
.admin-tab-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-tab-copy strong {
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.15;
}

.admin-tab-copy small {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.25;
    text-transform: uppercase;
    font-weight: 900;
}

.admin-tab-marker {
    display: block;
    width: 7px;
    height: 42px;
    background: rgba(var(--theme-accent-rgb), 0.24);
    border-radius: 999px;
}

.admin-tab-link.active {
    color: var(--theme-action-text);
    background:
        linear-gradient(135deg, var(--warm), var(--theme-accent-soft) 54%, var(--theme-accent-strong)),
        var(--theme-accent-soft);
    box-shadow: inset 0 0 0 1px rgba(var(--theme-warm-rgb), 0.42);
}

.admin-tab-link.active .admin-tab-icon {
    color: var(--theme-action-text);
    background: rgba(var(--theme-white-rgb), 0.34);
    border-color: rgba(var(--theme-action-text-rgb), 0.16);
}

.admin-tab-link.active .admin-tab-copy strong,
.admin-tab-link.active .admin-tab-copy small {
    color: var(--theme-action-text);
}

.admin-tab-link.active .admin-tab-marker {
    background: var(--theme-action-text);
}

.admin-layout {
    display: grid;
    grid-template-columns: minmax(320px, 430px) 1fr;
    gap: 28px;
    align-items: start;
}

.admin-form {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 14px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.check-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.check-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.check-row input {
    width: 18px;
    min-height: 18px;
}

.vip-product-controls {
    display: grid;
    gap: 12px;
    padding: 14px;
    background: rgba(var(--theme-dark-overlay-soft-rgb), 0.42);
    border: 1px solid rgba(var(--theme-highlight-rgb), 0.42);
    border-radius: var(--radius);
}

.vip-toggle {
    display: flex !important;
    grid-template-columns: none;
    align-items: center;
    gap: 10px !important;
    color: var(--warm) !important;
    font-weight: 900 !important;
}

.vip-toggle input {
    width: 18px;
    min-height: 18px;
}

.admin-upload {
    display: grid;
    gap: 12px;
    padding: 14px;
    background: rgba(var(--theme-dark-overlay-soft-rgb), 0.42);
    border: 1px solid rgba(var(--theme-line-rgb), 0.34);
    border-radius: var(--radius);
}

.admin-upload > div:first-child {
    display: grid;
    gap: 4px;
}

.admin-upload > div:first-child strong,
.admin-upload-dropzone strong {
    color: var(--ink);
    font-weight: 900;
}

.admin-upload > div:first-child span,
.admin-upload-dropzone small,
.admin-photo-card span {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.admin-upload-dropzone {
    position: relative;
    display: grid;
    min-height: 158px;
    place-items: center;
    gap: 8px;
    padding: 20px;
    overflow: hidden;
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(var(--theme-accent-rgb), 0.18), transparent 48%),
        rgba(var(--theme-surface-rgb), 0.86);
    border: 1px dashed rgba(var(--theme-pale-border-rgb), 0.68);
    border-radius: var(--radius);
    cursor: pointer;
}

.admin-upload-dropzone:hover,
.admin-upload-dropzone.is-dragover {
    border-color: var(--warm);
    box-shadow: 0 0 0 4px rgba(var(--theme-accent-rgb), 0.18);
}

.admin-upload-dropzone input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.admin-upload-icon {
    position: relative;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(var(--theme-pale-border-rgb), 0.58);
    border-radius: 999px;
}

.admin-upload-icon::before,
.admin-upload-icon::after {
    content: "";
    position: absolute;
    background: var(--warm);
    border-radius: 999px;
}

.admin-upload-icon::before {
    width: 20px;
    height: 3px;
}

.admin-upload-icon::after {
    width: 3px;
    height: 20px;
}

.admin-upload-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.admin-upload-preview:empty {
    display: none;
}

.admin-upload-preview figure {
    display: grid;
    gap: 6px;
    min-width: 0;
    margin: 0;
    padding: 8px;
    background: rgba(var(--theme-surface-rgb), 0.82);
    border: 1px solid rgba(var(--theme-line-rgb), 0.28);
    border-radius: var(--radius);
}

.admin-upload-preview img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: calc(var(--radius) - 2px);
}

.admin-upload-preview figcaption {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-photo-list {
    display: grid;
    gap: 10px;
}

.admin-photo-card {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    background: rgba(var(--theme-surface-rgb), 0.82);
    border: 1px solid rgba(var(--theme-line-rgb), 0.28);
    border-radius: var(--radius);
}

.admin-photo-card img,
.admin-thumb {
    width: 128px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius);
}

.admin-photo-card img {
    width: 72px;
}

.admin-photo-card strong {
    display: block;
}

.coaching-photo-upload .admin-upload-preview {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.coaching-photo-upload .admin-upload-preview figure {
    max-width: none;
}

.coaching-photo-upload .admin-upload-preview img,
.coaching-current-photo .admin-photo-card img {
    width: 100%;
    height: auto;
    max-height: 360px;
    aspect-ratio: var(--admin-photo-ratio, auto);
    object-fit: contain;
    background:
        linear-gradient(135deg, rgba(var(--theme-warm-rgb), 0.08), rgba(var(--theme-accent-rgb), 0.12)),
        var(--theme-action-text);
}

.coaching-current-photo .admin-photo-card {
    grid-template-columns: minmax(96px, 180px) minmax(0, 1fr) auto;
}

.coaching-banner-list {
    padding: 14px;
    background: rgba(var(--theme-dark-overlay-soft-rgb), 0.34);
    border: 1px solid rgba(var(--theme-line-rgb), 0.24);
    border-radius: var(--radius);
}

.coaching-banner-card {
    grid-template-columns: 40px minmax(96px, 180px) minmax(0, 1fr) auto !important;
}

.coaching-banner-card.is-dragging {
    border-color: var(--cyan);
    opacity: 0.62;
}

.coaching-banner-details {
    display: grid;
    min-width: 0;
    gap: 7px;
}

.coaching-banner-details label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
}

.coaching-banner-details input {
    min-height: 38px;
}

.coaching-current-photo .admin-photo-card img {
    max-height: 180px;
}

.admin-photo-remove {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.86rem;
    font-weight: 900;
    white-space: nowrap;
}

.admin-photo-remove input {
    width: 18px;
    min-height: 18px;
}

.admin-list {
    display: grid;
    gap: 12px;
}

.admin-list-heading {
    align-items: center;
}

.admin-sort-status {
    min-height: 1.4em;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: right;
}

.admin-product {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.admin-product.is-dragging {
    border-color: var(--cyan);
    opacity: 0.58;
}

.admin-drag-handle {
    flex: 0 0 auto;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    background: rgba(var(--theme-surface-rgb), 0.72);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: grab;
}

.admin-drag-handle:active {
    cursor: grabbing;
}

.admin-drag-handle::before {
    content: "";
    width: 16px;
    height: 20px;
    background-image: radial-gradient(circle, var(--warm) 2px, transparent 2.5px);
    background-size: 8px 8px;
    opacity: 0.86;
}

.admin-product-info {
    flex: 1 1 auto;
    min-width: 0;
}

.mg-options-field {
    margin: 2px 0 6px;
}

.mg-options-field span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-actions {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: end;
}

.admin-users-section {
    padding-top: 0;
}

.admin-users-layout {
    display: grid;
    grid-template-columns: minmax(300px, 390px) 1fr;
    gap: 22px;
    align-items: start;
}

.admin-users-list {
    display: grid;
    gap: 10px;
}

.admin-search-form {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
    padding: 16px;
    background: rgba(var(--theme-background-rgb), 0.62);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.admin-user-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.admin-user-card.active {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(var(--theme-accent-rgb), 0.16);
}

.admin-user-card span,
.user-detail-header p {
    display: block;
    color: var(--muted);
    font-size: 0.92rem;
}

.admin-user-detail {
    display: grid;
    gap: 18px;
}

.user-detail-header {
    display: grid;
    grid-template-columns: 1fr minmax(220px, 280px);
    gap: 18px;
    padding: 22px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.user-detail-header h3,
.user-records h3 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.15;
}

.user-detail-header p {
    margin: 8px 0 0;
}

.role-form {
    display: grid;
    gap: 10px;
}

.user-records {
    display: grid;
    gap: 12px;
}

.payment-admin {
    padding-top: 0;
}

.payment-settings-panel {
    display: grid;
    gap: 16px;
}

.payment-settings-grid {
    display: grid;
    grid-template-columns: minmax(340px, 1.35fr) minmax(280px, 0.65fr);
    gap: 18px;
    align-items: start;
}

.payment-admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.payment-admin-card {
    padding: 22px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.payment-admin-card h3 {
    margin: 0 0 8px;
    font-size: 1.3rem;
}

.payment-admin-card p {
    margin: 0;
    color: var(--muted);
}

.payment-admin-card label {
    display: grid;
    gap: 8px;
    margin: 16px 0;
    color: var(--muted);
    font-weight: 900;
}

.payment-admin-card .button {
    width: 100%;
}

.stats-admin,
.affiliate-admin {
    padding-top: 0;
}

.report-range-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, 220px)) auto auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
    padding: 16px;
    background: rgba(var(--theme-background-rgb), 0.62);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.report-range-form label,
.affiliate-code-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 900;
}

.stats-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.stats-metric,
.stats-chart-card,
.affiliate-code-form,
.affiliate-code-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stats-metric {
    display: grid;
    gap: 4px;
    padding: 18px;
}

.stats-metric span,
.stats-metric small,
.affiliate-code-card span {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 800;
}

.stats-metric strong {
    color: var(--warm);
    font-size: 1.65rem;
    line-height: 1.1;
}

.stats-chart-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.stats-chart-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stats-chart-card {
    display: grid;
    gap: 14px;
    min-width: 0;
    padding: 18px;
}

.stats-chart-card > div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.stats-chart-card > div:first-child strong {
    color: var(--warm);
}

.stats-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.stats-chart-header > div {
    display: grid;
    gap: 4px;
}

.chart-expand-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 8px 10px;
    color: var(--warm);
    background: rgba(var(--theme-white-rgb), 0.08);
    border: 1px solid rgba(var(--theme-warm-rgb), 0.18);
    border-radius: var(--radius);
    font-size: 0.82rem;
    font-weight: 900;
}

.chart-expand-button:hover,
.chart-expand-button:focus-visible {
    border-color: var(--cyan);
    color: var(--cyan);
}

.chart-expand-button svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.stats-chart {
    width: 100%;
    aspect-ratio: 720 / 220;
    overflow: visible;
}

.stats-chart line,
.stats-chart polyline,
.stats-chart circle {
    fill: none;
    stroke: rgba(var(--theme-warm-rgb), 0.34);
    stroke-width: 2;
}

.stats-chart .chart-grid {
    stroke: rgba(var(--theme-line-rgb), 0.28);
}

.stats-chart polyline {
    stroke: var(--cyan);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stats-chart circle {
    fill: var(--panel);
    stroke: var(--cyan);
    stroke-width: 3;
}

.stats-chart .chart-point-hit {
    fill: transparent;
    stroke: transparent;
    stroke-width: 0;
    cursor: pointer;
    pointer-events: all;
}

.stats-chart .chart-point-dot {
    pointer-events: none;
}

.stats-chart .chart-point-hit:hover + .chart-point-dot,
.stats-chart .chart-point-hit:focus-visible + .chart-point-dot {
    fill: var(--cyan);
    stroke: var(--warm);
    stroke-width: 4;
    r: 5;
}

.stats-chart text {
    fill: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.stats-chart .chart-end-label {
    text-anchor: end;
}

.stats-bar-list {
    display: grid;
    gap: 10px;
}

.stats-bar-row {
    display: grid;
    grid-template-columns: minmax(84px, 0.8fr) minmax(90px, 1.6fr) minmax(70px, auto);
    gap: 10px;
    align-items: center;
}

.stats-bar-row span,
.stats-bar-row strong {
    overflow-wrap: anywhere;
}

.stats-bar-row div {
    height: 12px;
    overflow: hidden;
    background: rgba(var(--theme-warm-rgb), 0.12);
    border: 1px solid rgba(var(--theme-warm-rgb), 0.16);
    border-radius: 999px;
}

.stats-bar-row i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--magenta));
}

.chart-tooltip {
    position: fixed;
    z-index: 200;
    display: grid;
    gap: 2px;
    max-width: min(240px, calc(100vw - 24px));
    padding: 10px 12px;
    color: var(--warm);
    background: rgba(var(--theme-background-rgb), 0.96);
    border: 1px solid rgba(var(--theme-warm-rgb), 0.24);
    border-radius: var(--radius);
    box-shadow: 0 18px 40px rgba(var(--theme-black-rgb), 0.34);
    pointer-events: none;
}

.chart-tooltip[hidden] {
    display: none;
}

.chart-tooltip strong {
    font-size: 0.88rem;
}

.chart-tooltip span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.chart-modal {
    position: fixed;
    inset: 0;
    z-index: 180;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(var(--theme-black-rgb), 0.72);
}

.chart-modal[hidden] {
    display: none;
}

.chart-modal-panel {
    display: grid;
    gap: 16px;
    width: min(1100px, 100%);
    max-height: calc(100vh - 48px);
    padding: 20px;
    overflow: auto;
    background: var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 28px 80px rgba(var(--theme-black-rgb), 0.44);
}

.chart-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.chart-modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
}

.chart-modal-close {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    color: var(--warm);
    background: rgba(var(--theme-white-rgb), 0.08);
    border: 1px solid rgba(var(--theme-warm-rgb), 0.2);
    border-radius: var(--radius);
}

.chart-modal-close svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.chart-modal-body .stats-chart {
    width: 100%;
    min-height: min(58vh, 560px);
}

body.chart-modal-open {
    overflow: hidden;
}

.affiliate-admin-layout {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.affiliate-code-form {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 12px;
    padding: 20px;
}

.affiliate-code-form h3 {
    margin: 0;
    font-size: 1.35rem;
}

.affiliate-toggle {
    display: flex !important;
    align-items: center;
    gap: 10px !important;
}

.affiliate-toggle input {
    width: auto;
    min-height: 0;
}

.affiliate-report-stack,
.affiliate-code-list {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.affiliate-code-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, auto) auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
}

.affiliate-code-card strong {
    color: var(--warm);
}

.affiliate-code-card > div:first-child {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.affiliate-code-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 8px 14px;
}

.affiliate-code-metrics span {
    display: grid;
    gap: 2px;
}

.theme-admin {
    padding-top: 0;
}

.theme-settings-panel {
    display: grid;
    gap: 16px;
}

.theme-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    align-items: start;
}

.theme-color-card {
    display: grid;
    gap: 12px;
}

.theme-token-name {
    margin-top: -6px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.theme-color-control {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 14px;
    align-items: end;
}

.theme-color-picker-label input[type="color"] {
    width: 100%;
    min-height: 48px;
    padding: 4px;
    background: rgba(var(--theme-background-rgb), 0.66);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.theme-preview {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 12px;
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(var(--theme-background-rgb), 0.76), rgba(var(--theme-surface-rgb), 0.92)),
        var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 34px rgba(var(--theme-accent-rgb), 0.24);
}

.theme-preview span {
    width: 42px;
    height: 42px;
    background: var(--theme-preview-color, var(--theme-accent));
    border: 2px solid rgba(var(--theme-white-rgb), 0.62);
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(var(--theme-action-text-rgb), 0.18);
}

.theme-preview strong,
.theme-preview small {
    min-width: 0;
    overflow-wrap: anywhere;
}

.theme-preview strong {
    font-weight: 900;
}

.theme-preview small {
    font-weight: 900;
    opacity: 0.82;
}

.theme-settings-panel > .button {
    justify-self: start;
    min-width: 220px;
}

.payment-method-sort-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.payment-method-sort-item {
    display: grid;
    grid-template-columns: 40px 44px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 12px;
    background: rgba(var(--theme-background-rgb), 0.58);
    border: 1px solid rgba(var(--theme-line-rgb), 0.32);
    border-radius: var(--radius);
}

.payment-method-sort-item.is-dragging {
    border-color: var(--cyan);
    opacity: 0.62;
}

.payment-method-sort-item > div {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.payment-method-sort-item strong,
.payment-method-sort-item small {
    overflow-wrap: anywhere;
}

.payment-method-sort-item small {
    color: var(--muted);
    font-weight: 800;
}

.payment-method-sort-item .payment-option-icon {
    border-radius: var(--radius);
}

.payment-method-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 8px !important;
    margin: 0 !important;
    color: var(--warm) !important;
    font-size: 0.86rem;
    white-space: nowrap;
}

.payment-method-toggle input {
    width: 18px;
    min-height: 18px;
    margin: 0;
}

.payment-settings-panel .admin-sort-status {
    margin: 12px 0 0;
    text-align: left;
}

.smtp-admin {
    padding-top: 0;
}

.smtp-settings-panel {
    display: grid;
    gap: 18px;
}

.smtp-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.smtp-card {
    display: grid;
    gap: 14px;
    padding: 22px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.smtp-card h3 {
    margin: 0;
    font-size: 1.28rem;
    line-height: 1.2;
}

.smtp-toggle {
    display: flex !important;
    grid-template-columns: none;
    align-items: flex-start;
    gap: 10px !important;
    color: var(--muted) !important;
    font-weight: 900 !important;
}

.smtp-toggle input {
    flex: 0 0 auto;
    width: 18px;
    min-height: 18px;
    margin-top: 2px;
}

.small-toggle {
    font-size: 0.84rem !important;
}

.smtp-template-preview {
    display: grid;
    gap: 6px;
    padding: 16px;
    background: var(--theme-email-panel);
    border: 1px solid rgba(var(--theme-line-rgb), 0.42);
    border-radius: var(--radius);
}

.smtp-template-preview strong {
    color: var(--warm);
    font-size: 1.05rem;
}

.smtp-template-preview span,
.smtp-card .fine-print {
    color: var(--muted);
}

.smtp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.email-template-admin {
    display: grid;
    gap: 18px;
    margin-top: 26px;
}

.email-template-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.email-template-nav a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 8px 12px;
    color: var(--warm);
    background: rgba(var(--theme-surface-rgb), 0.72);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 900;
}

.email-template-nav a.active {
    color: var(--theme-action-text);
    background: linear-gradient(135deg, var(--warm), var(--theme-accent-soft) 52%, var(--theme-accent-strong));
}

.email-template-editor {
    display: grid;
    gap: 16px;
    padding: 22px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.email-template-editor[hidden] {
    display: none;
}

.email-template-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.email-template-header h3 {
    margin: 0;
    font-size: 1.28rem;
}

.email-template-header p {
    margin: 6px 0 0;
    color: var(--muted);
}

.email-template-workbench {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: 16px;
    align-items: start;
}

.email-template-editing,
.email-preview-panel {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.email-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.email-editor-modes,
.email-rich-actions,
.email-token-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.email-editor-modes button,
.email-rich-actions button,
.email-token-list button {
    min-height: 34px;
    padding: 6px 10px;
    color: var(--warm);
    background: rgba(var(--theme-surface-rgb), 0.82);
    border: 1px solid rgba(var(--theme-warm-rgb), 0.16);
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 900;
}

.email-editor-modes button.active {
    color: var(--theme-action-text);
    background: var(--warm);
}

.email-token-list {
    padding: 10px;
    background: rgba(var(--theme-background-rgb), 0.5);
    border: 1px solid rgba(var(--theme-line-rgb), 0.28);
    border-radius: var(--radius);
}

.email-token-list button {
    color: var(--theme-action-text);
    background: var(--theme-admin-active-fill);
}

.email-template-editor textarea,
.email-visual-surface {
    min-height: 360px;
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.55;
}

.email-template-editor textarea[name="text"] {
    min-height: 280px;
}

.email-visual-surface {
    overflow: auto;
    padding: 14px;
    color: var(--ink);
    background: rgba(var(--theme-dark-overlay-soft-rgb), 0.78);
    border: 1px solid rgba(var(--theme-line-rgb), 0.48);
    border-radius: var(--radius);
}

.email-preview-panel {
    padding: 14px;
    background: rgba(var(--theme-background-rgb), 0.62);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.email-preview-header {
    display: grid;
    gap: 4px;
}

.email-preview-header strong {
    color: var(--warm);
}

.email-preview-panel iframe {
    width: 100%;
    min-height: 620px;
    background: var(--deep);
    border: 1px solid rgba(var(--theme-warm-rgb), 0.18);
    border-radius: var(--radius);
}

.email-campaign-admin {
    padding-top: 0;
}

.email-campaign-layout {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.email-campaign-list,
.email-campaign-workspace {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.email-campaign-list {
    position: sticky;
    top: 96px;
    padding: 16px;
    background: rgba(var(--theme-background-rgb), 0.62);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.email-campaign-card {
    display: grid;
    gap: 4px;
    padding: 12px;
    background: var(--panel);
    border: 1px solid rgba(var(--theme-line-rgb), 0.48);
    border-radius: var(--radius);
}

.email-campaign-card.active {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(var(--theme-accent-rgb), 0.14);
}

.email-campaign-card strong {
    color: var(--warm);
}

.email-campaign-card span {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 800;
}

.email-campaign-editor {
    margin: 0;
}

.email-campaign-send-panel {
    display: grid;
    gap: 16px;
    padding: 20px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.campaign-progress {
    display: grid;
    gap: 8px;
}

.campaign-progress > div {
    height: 16px;
    overflow: hidden;
    background: rgba(var(--theme-warm-rgb), 0.12);
    border: 1px solid rgba(var(--theme-warm-rgb), 0.18);
    border-radius: 999px;
}

.campaign-progress i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--magenta));
    transition: width 180ms ease;
}

.campaign-progress span,
.campaign-send-status {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 800;
}

.campaign-send-status {
    min-height: 1.4em;
    margin: 0;
}

.campaign-send-status[data-type="error"] {
    color: var(--theme-warning-text);
}

.campaign-send-settings {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr)) repeat(3, auto);
    gap: 12px;
    align-items: end;
}

.campaign-send-settings label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 900;
}

.campaign-send-settings input {
    min-height: 40px;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1.1fr);
    gap: 28px;
    align-items: start;
}

.coaching-page {
    display: grid;
    gap: 28px;
    align-items: start;
}

.coaching-page.has-portrait {
    grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
}

.coaching-page.image-landscape,
.coaching-page.image-panoramic {
    grid-template-columns: 1fr;
    max-width: 1040px;
}

.coaching-page.text-only {
    max-width: 920px;
    margin-right: auto;
    margin-left: auto;
}

.coaching-page.banner-only {
    grid-template-columns: 1fr;
    max-width: 1180px;
    padding-top: 28px;
}

.coaching-portrait {
    position: sticky;
    top: 96px;
    display: grid;
    width: 100%;
    min-height: clamp(260px, 34vw, 520px);
    margin: 0;
    overflow: hidden;
    aspect-ratio: var(--coaching-photo-ratio, 3 / 4);
    background:
        linear-gradient(135deg, rgba(var(--theme-warm-rgb), 0.1), rgba(var(--theme-accent-rgb), 0.14)),
        var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.coaching-page.image-landscape .coaching-portrait,
.coaching-page.image-panoramic .coaching-portrait {
    position: static;
    justify-self: center;
    max-width: 960px;
    min-height: clamp(220px, 38vw, 460px);
}

.coaching-page.image-tall .coaching-portrait {
    min-height: clamp(360px, 58vw, 720px);
}

.coaching-page.banner-only .coaching-portrait {
    position: relative;
    justify-self: center;
    max-width: min(1120px, 100%);
    min-height: clamp(360px, 52vw, 680px);
    border: 2px solid rgba(var(--theme-pale-border-rgb), 0.58);
    box-shadow:
        0 34px 90px rgba(var(--theme-black-rgb), 0.42),
        0 0 0 1px rgba(var(--theme-warm-rgb), 0.1),
        inset 0 0 70px rgba(var(--theme-accent-rgb), 0.1);
}

.coaching-page.banner-only.image-portrait .coaching-portrait,
.coaching-page.banner-only.image-tall .coaching-portrait {
    max-width: min(760px, 100%);
    min-height: clamp(460px, 76vw, 840px);
}

.coaching-page.banner-only.image-square .coaching-portrait {
    max-width: min(860px, 100%);
}

.coaching-page.banner-only.image-panoramic .coaching-portrait {
    min-height: clamp(300px, 42vw, 540px);
}

.coaching-slider {
    isolation: isolate;
}

.coaching-slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 360ms ease;
}

.coaching-slide.active {
    z-index: 1;
    opacity: 1;
    pointer-events: auto;
}

.coaching-portrait-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
}

.coaching-portrait-link:focus-visible {
    outline: 3px solid var(--warm);
    outline-offset: -8px;
}

.coaching-portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 180ms ease;
}

.coaching-portrait-link:hover img {
    transform: scale(1.018);
}

.coaching-slider-dots {
    position: absolute;
    right: 18px;
    bottom: 16px;
    z-index: 3;
    display: flex;
    gap: 8px;
    padding: 8px;
    background: rgba(var(--theme-background-rgb), 0.72);
    border: 1px solid rgba(var(--theme-warm-rgb), 0.24);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.coaching-slider-dots button {
    width: 10px;
    height: 10px;
    min-height: 10px;
    padding: 0;
    background: rgba(var(--theme-warm-rgb), 0.5);
    border: 0;
    border-radius: 999px;
}

.coaching-slider-dots button.active {
    width: 24px;
    background: var(--warm);
}

.contact-ticket-form {
    display: grid;
    gap: 14px;
}

.contact-ticket-list,
.ticket-admin-list {
    display: grid;
    gap: 14px;
}

.ticket-card p {
    grid-column: 1 / -1;
    margin: 12px 0 0;
    color: var(--muted);
    white-space: normal;
}

.ticket-note {
    margin-top: 14px;
    padding: 12px;
    background: rgba(var(--theme-white-rgb), 0.07);
    border: 1px solid rgba(var(--theme-warm-rgb), 0.16);
    border-radius: var(--radius);
}

.ticket-note span {
    color: var(--warm);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ticket-admin-card {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
}

.ticket-admin-form {
    display: grid;
    gap: 10px;
}

.coaching-editor-panel {
    display: grid;
    gap: 14px;
    padding: 24px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.rich-content {
    min-width: 0;
    padding: 28px;
    color: var(--theme-light-text-strong);
    background: rgba(var(--theme-light-surface-rgb), 0.97);
    border: 1px solid rgba(var(--theme-light-line-rgb), 0.26);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.rich-content h2,
.rich-content h3,
.rich-content h4 {
    margin: 0 0 12px;
    color: var(--theme-light-text-deep);
    line-height: 1.15;
}

.rich-content h2 {
    font-size: 2rem;
}

.rich-content h3 {
    margin-top: 24px;
    font-size: 1.35rem;
}

.rich-content p,
.rich-content li {
    color: var(--theme-light-subtle);
    font-size: 1rem;
}

.rich-content p {
    margin: 0 0 16px;
}

.rich-content ul,
.rich-content ol {
    display: grid;
    gap: 8px;
    margin: 0 0 18px;
    padding-left: 22px;
}

.rich-content a {
    color: var(--theme-olive-text);
    font-weight: 900;
    text-decoration: underline;
}

.rich-editor {
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.rich-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
    background: rgba(var(--theme-background-rgb), 0.82);
    border-bottom: 1px solid var(--line);
}

.rich-editor-toolbar button {
    min-width: 40px;
    min-height: 36px;
    padding: 6px 10px;
    color: var(--warm);
    background: rgba(var(--theme-surface-rgb), 0.82);
    border: 1px solid rgba(var(--theme-warm-rgb), 0.16);
    border-radius: 6px;
    font-weight: 900;
}

.rich-editor-toolbar button:hover {
    border-color: var(--cyan);
}

.rich-editor-surface {
    min-height: 420px;
    max-height: 720px;
    overflow: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.rich-editor-surface:focus {
    outline: none;
    box-shadow: inset 0 0 0 4px rgba(var(--theme-accent-rgb), 0.18);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.faq-grid.two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-card {
    min-height: 0;
    padding: 22px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.faq-card summary {
    position: relative;
    padding-right: 34px;
    color: var(--ink);
    cursor: pointer;
    font-weight: 900;
    font-size: 1.15rem;
    line-height: 1.25;
    letter-spacing: 0;
    list-style: none;
}

.faq-card summary::-webkit-details-marker {
    display: none;
}

.faq-card summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    color: var(--theme-action-text);
    background: linear-gradient(135deg, var(--warm), var(--cyan));
    border-radius: 50%;
    transform: translateY(-50%);
}

.faq-card[open] summary::after {
    content: "-";
}

.faq-card p {
    margin: 14px 0 0;
    color: var(--muted);
}

.policy-page {
    display: grid;
    gap: 16px;
    max-width: 880px;
}

.policy-page article {
    padding: 24px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.policy-page h2 {
    margin: 0 0 10px;
    font-size: 1.35rem;
    line-height: 1.2;
}

.policy-page p {
    margin: 0;
    color: var(--muted);
}

.site-footer {
    display: grid;
    gap: 22px;
    padding: 32px max(24px, calc((100vw - 1180px) / 2));
    color: rgba(var(--theme-white-rgb), 0.78);
    background: var(--theme-dark-footer);
    border-top: 1px solid var(--line);
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-top div {
    display: grid;
    gap: 2px;
}

.site-footer strong {
    color: var(--theme-white);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: rgba(var(--theme-white-rgb), 0.9);
    font-weight: 800;
}

.footer-links a:hover {
    color: var(--theme-white);
}

.site-footer p {
    margin: 0;
}

.footer-disclaimer {
    display: grid;
    gap: 12px;
    max-width: 1180px;
    color: rgba(var(--theme-warm-rgb), 0.72);
    font-size: 0.82rem;
    line-height: 1.55;
}

.footer-copyright {
    color: var(--warm);
    font-weight: 900;
}

@media (max-width: 960px) {
    .site-header {
        min-height: 78px;
        padding: 12px clamp(12px, 3vw, 26px);
        gap: clamp(6px, 1.6vw, 14px);
        color: var(--theme-white);
        background:
            radial-gradient(circle at 26% 18%, rgba(var(--theme-accent-rgb), 0.22), transparent 34%),
            linear-gradient(90deg, var(--deep) 0%, var(--deep-2) 52%, var(--deep) 100%);
        border-bottom: 0;
        box-shadow: 0 16px 36px rgba(var(--theme-black-rgb), 0.34);
        backdrop-filter: none;
    }

    .brand {
        flex: 0 1 auto;
        min-width: 0;
        gap: clamp(7px, 1.3vw, 12px);
        color: var(--theme-white);
    }

    .brand-mark {
        width: clamp(42px, 8vw, 56px);
        height: clamp(42px, 8vw, 56px);
        border-radius: 0;
        box-shadow: none;
    }

    .brand-text {
        max-width: none;
        color: var(--theme-white);
        font-size: clamp(1.1rem, 3.2vw, 1.55rem);
        font-weight: 900;
        line-height: 1;
        white-space: nowrap;
        text-shadow: 0 2px 10px rgba(var(--theme-black-rgb), 0.55);
    }

    .mobile-header-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: clamp(5px, 2.1vw, 18px);
        margin-left: auto;
    }

    .mobile-header-actions svg {
        width: clamp(24px, 4.8vw, 34px);
        height: clamp(24px, 4.8vw, 34px);
    }

    .mobile-icon-button,
    .nav-toggle {
        display: grid;
        width: clamp(34px, 6.8vw, 46px);
        height: clamp(34px, 6.8vw, 46px);
        min-height: clamp(34px, 6.8vw, 46px);
        place-items: center;
        padding: 0;
        color: var(--theme-white);
        background: transparent;
        border: 0;
        border-radius: 999px;
    }

    .mobile-icon-button:hover,
    .mobile-cart-button:hover {
        color: var(--theme-white);
        background: rgba(var(--theme-white-rgb), 0.08);
    }

    .mobile-cart-button {
        position: relative;
        display: grid;
        width: clamp(52px, 10.5vw, 72px);
        height: clamp(38px, 7.7vw, 50px);
        min-height: clamp(38px, 7.7vw, 50px);
        place-items: center;
        color: var(--theme-white);
        border: 2px solid rgba(var(--theme-white-rgb), 0.9);
        border-radius: 999px;
        filter: drop-shadow(0 3px 8px rgba(var(--theme-black-rgb), 0.45));
    }

    .mobile-cart-button span {
        position: absolute;
        top: clamp(1px, 0.7vw, 4px);
        right: clamp(5px, 1.2vw, 9px);
        display: grid;
        min-width: clamp(17px, 3.5vw, 23px);
        height: clamp(17px, 3.5vw, 23px);
        place-items: center;
        padding: 0 5px;
        color: var(--theme-action-text);
        background: var(--theme-white);
        border-radius: 999px;
        font-size: 0.8rem;
        font-weight: 900;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        color: var(--theme-white);
        background: var(--theme-nav-bar);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        box-shadow: 0 24px 50px rgba(var(--theme-image-shadow-blue-rgb), 0.32);
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a,
    .site-nav button {
        color: var(--theme-white);
        text-align: left;
    }

    .site-nav .nav-cta {
        justify-content: flex-start;
    }

    .hero h1,
    .page-hero h1 {
        font-size: clamp(2.35rem, 7vw, 3rem);
        line-height: 1.02;
    }

    .hero-content {
        padding: 32px 0 22px;
    }

    .page-hero {
        padding: 48px max(20px, calc((100vw - 1180px) / 2));
    }

    .compact-hero p:last-child {
        max-width: 620px;
        margin-top: 12px;
        font-size: 1rem;
        line-height: 1.5;
    }

    .section {
        padding: 44px 0;
    }

    .band,
    .faq-grid,
    .faq-grid.two-column,
    .split-section,
    .product-detail,
    .cart-layout,
    .payment-instructions-layout,
    .dashboard-grid,
    .admin-layout,
    .admin-users-layout,
    .user-detail-header,
    .payment-settings-grid,
    .theme-settings-grid,
    .payment-admin-grid,
    .report-range-form,
    .stats-chart-grid,
    .stats-chart-grid.two,
    .affiliate-admin-layout,
    .smtp-settings-grid,
    .email-template-workbench,
    .email-campaign-layout,
    .campaign-send-settings,
    .contact-layout,
    .coaching-page,
    .ticket-admin-card {
        grid-template-columns: 1fr;
    }

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

    .product-card-body {
        padding: 14px;
    }

    .product-card h3 {
        font-size: clamp(1rem, 3.2vw, 1.1rem);
    }

    .product-card p {
        min-height: 0;
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .product-card-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .product-price {
        width: 100%;
    }

    .product-card-bottom .button {
        width: 100%;
    }

    .product-card-bottom .add-cart-form {
        width: 100%;
        grid-template-columns: 78px 1fr;
        justify-items: stretch;
    }

    .product-card-cart-form.has-mg-selector {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .product-card-cart-form.has-mg-selector .product-card-mg-field {
        grid-column: 1 / -1;
    }

    .product-card-bottom .cart-add-status {
        text-align: center;
    }

    .product-detail {
        padding: 22px;
    }

    .band {
        margin-top: 0;
    }

    .filter-bar {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 24px;
        padding: 16px;
    }

    .filter-bar .button {
        width: 100%;
    }

    .filter-bar input,
    .filter-bar select {
        min-height: 42px;
        font-size: 0.98rem;
    }

    .admin-search-form {
        grid-template-columns: 1fr;
    }

    .summary-panel,
    .payment-summary-panel,
    .admin-form,
    .affiliate-code-form,
    .email-campaign-list,
    .coaching-portrait {
        position: static;
    }

    .admin-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .spec-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .site-header {
        min-height: 70px;
        padding: 10px 10px;
    }

    .brand-text {
        font-size: clamp(1.02rem, 4.6vw, 1.32rem);
    }

    .hero {
        min-height: auto;
    }

    .hero-media img {
        object-position: 64% center;
    }

    .hero-media::after {
        background:
            linear-gradient(90deg, rgba(var(--theme-hero-overlay-start-rgb), 0.96), rgba(var(--theme-hero-overlay-mobile-rgb), 0.82)),
            linear-gradient(180deg, rgba(var(--theme-accent-rgb), 0.16), rgba(var(--theme-background-deep-soft-rgb), 0.26));
    }

    .hero h1,
    .page-hero h1 {
        font-size: clamp(2rem, 9.2vw, 2.38rem);
        line-height: 1.02;
    }

    .hero-copy {
        font-size: 0.9rem;
    }

    .hero-content {
        padding: 26px 0 18px;
    }

    .page-hero {
        padding: 34px 16px 38px;
    }

    .compact-hero p:last-child {
        margin-top: 10px;
        font-size: 0.96rem;
        line-height: 1.48;
    }

    .section {
        width: min(1180px, calc(100% - 24px));
        padding: 30px 0;
    }

    .product-section {
        padding-top: 18px;
    }

    .section-heading {
        display: grid;
        align-items: start;
    }

    .section-heading h2,
    .split-section h2,
    .summary-panel h2,
    .auth-panel h1,
    .admin-form h2 {
        font-size: 1.85rem;
    }

    .product-info h1 {
        font-size: 2.3rem;
    }

    .filter-bar {
        gap: 10px;
        margin-bottom: 22px;
        padding: 14px;
        border-radius: 7px;
    }

    .filter-bar label {
        gap: 6px;
        font-size: 0.9rem;
    }

    .filter-bar input,
    .filter-bar select {
        min-height: 40px;
        padding: 9px 10px;
    }

    .filter-bar .button {
        min-height: 42px;
        padding: 10px 12px;
    }

    .product-card-bottom .add-cart-form {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .product-card-cart-form.has-mg-selector {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .product-card-bottom .button {
        white-space: normal;
    }

    .product-quantity-field {
        width: 64px;
    }

    .cart-form,
    .order-card,
    .form-grid,
    .theme-color-control,
    .discount-code-form,
    .affiliate-code-card,
    .affiliate-code-metrics,
    .stats-bar-row,
    .spec-grid,
    .ticket-admin-card {
        grid-template-columns: 1fr;
    }

    .discount-code-form .button,
    .report-range-form .button,
    .affiliate-code-card .button,
    .campaign-send-settings .button {
        width: 100%;
    }

    .simple-cart-form {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .simple-cart-form.has-mg-selector {
        grid-template-columns: minmax(0, 1fr) 58px;
    }

    .simple-cart-form.has-mg-selector .button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .quantity-field input,
    .mg-select-field select {
        min-height: 32px;
        padding: 6px 8px;
    }

    .quantity-field span,
    .mg-select-field span {
        font-size: 0.64rem;
    }

    .legal-panel {
        padding: 16px;
    }

    .legal-panel h1 {
        font-size: clamp(1.5rem, 6.3vw, 1.72rem);
    }

    .legal-verify-shell {
        min-height: calc(100vh - 118px);
    }

    .legal-verify-panel {
        gap: 10px;
        padding: 16px;
    }

    .legal-verify-panel h1 {
        font-size: clamp(1.5rem, 6.3vw, 1.72rem);
    }

    .legal-brand-mark {
        width: 30px;
        height: 30px;
    }

    .legal-brand-mark img {
        width: 22px;
        height: 22px;
    }

    .legal-confirm-item {
        grid-template-columns: 24px minmax(0, 1fr);
        gap: 9px;
        padding: 10px;
    }

    .legal-confirm-icon {
        width: 24px;
        height: 24px;
    }

    .legal-confirm-icon::before {
        top: 12px;
        left: 6.5px;
        width: 5.5px;
    }

    .legal-confirm-icon::after {
        top: 15.5px;
        left: 10px;
        width: 11px;
    }

    .legal-actions,
    .legal-actions form,
    .legal-actions .button {
        width: 100%;
    }

    .cart-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 10px;
        align-items: center;
        padding: 12px 14px;
    }

    .cart-qty-form {
        grid-column: 1 / 2;
        grid-template-columns: 48px 64px;
    }

    .cart-quantity-field input {
        min-height: 30px;
        padding: 5px 7px;
    }

    .cart-qty-form .button,
    .cart-remove-form .button {
        min-height: 30px;
        padding: 5px 8px;
        font-size: 0.78rem;
    }

    .cart-item-summary {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .cart-item-photo {
        width: 44px;
        max-width: 44px;
    }

    .cart-table,
    .summary-panel {
        padding: 0;
    }

    .cart-table-header,
    .cart-summary-heading {
        grid-template-columns: 38px minmax(0, 1fr);
        padding: 12px 14px;
    }

    .cart-section-icon {
        width: 38px;
        height: 38px;
    }

    .cart-table-header h2,
    .cart-summary-heading h2 {
        font-size: 1.12rem;
    }

    .cart-line-total {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        align-self: center;
        text-align: right;
        white-space: nowrap;
    }

    .payment-items li {
        grid-template-columns: 1fr;
    }

    .cart-remove-form {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
        align-self: end;
    }

    .cart-remove-form .button {
        width: auto;
        min-width: 72px;
    }

    .cart-line-total {
        text-align: right;
    }

    .summary-panel .summary-line {
        padding: 10px 14px;
    }

    .summary-panel .checkout-form {
        padding: 13px 14px 14px;
    }

    .checkout-address-grid {
        grid-template-columns: 1fr;
    }

    .order-card-side {
        justify-items: start;
    }

    .pay-method-heading h2 {
        font-size: 1.75rem;
    }

    .manual-payment-card p {
        font-size: 1rem;
    }

    .zelle-card {
        padding: 22px;
        border-radius: var(--radius);
    }

    .zelle-card-name {
        font-size: 1.45rem;
    }

    .admin-product,
    .footer-top {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-tabs {
        display: grid;
        grid-template-columns: 1fr;
    }

    .smtp-actions,
    .smtp-actions .button,
    .email-template-header,
    .email-template-header .button {
        width: 100%;
    }

    .email-template-header {
        display: grid;
    }

    .email-preview-panel iframe {
        min-height: 520px;
    }

    .rich-content,
    .coaching-editor-panel {
        padding: 20px;
    }

    .coaching-portrait,
    .coaching-page.image-tall .coaching-portrait {
        min-height: clamp(240px, 88vw, 520px);
    }

    .coaching-page.image-landscape .coaching-portrait,
    .coaching-page.image-panoramic .coaching-portrait {
        min-height: clamp(180px, 62vw, 340px);
    }

    .coaching-page.banner-only {
        padding-top: 18px;
    }

    .coaching-page.banner-only .coaching-portrait,
    .coaching-page.banner-only.image-portrait .coaching-portrait,
    .coaching-page.banner-only.image-tall .coaching-portrait,
    .coaching-page.banner-only.image-panoramic .coaching-portrait {
        max-width: 100%;
        min-height: clamp(260px, 82vw, 520px);
    }

    .coaching-slider-dots {
        right: 12px;
        bottom: 12px;
    }

    .coaching-banner-card {
        grid-template-columns: 40px minmax(0, 1fr) !important;
    }

    .coaching-banner-card img,
    .coaching-banner-details,
    .coaching-banner-card .admin-photo-remove {
        grid-column: 1 / -1;
    }

    .rich-editor-surface {
        min-height: 340px;
    }

    .admin-list-heading {
        align-items: flex-start;
    }

    .admin-sort-status {
        text-align: left;
    }

    .admin-drag-handle {
        align-self: flex-start;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 420px) {
    .site-header {
        min-height: 64px;
        padding: 8px 7px;
        gap: 4px;
    }

    .brand-text {
        display: inline;
        max-width: 112px;
        overflow: hidden;
        font-size: clamp(0.98rem, 5.2vw, 1.14rem);
        text-overflow: ellipsis;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .mobile-header-actions {
        gap: 2px;
    }

    .mobile-icon-button,
    .nav-toggle {
        width: 30px;
        height: 30px;
        min-height: 30px;
    }

    .mobile-header-actions svg {
        width: 22px;
        height: 22px;
    }

    .mobile-cart-button {
        width: 46px;
        height: 34px;
        min-height: 34px;
    }

    .mobile-cart-button span {
        top: 1px;
        right: 5px;
        min-width: 18px;
        height: 18px;
        font-size: 0.72rem;
    }

    .product-grid {
        gap: 9px;
    }

    .product-card-body {
        padding: 10px;
    }

    .product-card h3 {
        font-size: clamp(0.84rem, 4.3vw, 0.98rem);
        line-height: 1.12;
    }

    .product-card p {
        margin: 7px 0 9px;
        font-size: 0.8rem;
        line-height: 1.32;
    }

    .product-card .product-category {
        margin-bottom: 5px;
        font-size: 0.66rem;
    }

    .product-visual {
        max-height: 260px;
        aspect-ratio: var(--product-image-ratio, 1 / 1);
    }

    .product-image-open-icon {
        right: 8px;
        bottom: 8px;
        width: 34px;
        height: 34px;
    }

    .product-image-viewer {
        padding: 8px;
    }

    .product-image-viewer-panel {
        width: 100%;
        height: calc(100dvh - 16px);
    }

    .product-image-viewer-panel img {
        max-height: calc(100dvh - 16px);
        border-radius: 6px;
    }

    .product-image-viewer-close {
        top: 8px;
        right: 8px;
        width: 42px;
        height: 42px;
    }

    .filter-bar {
        padding: 12px;
    }

    .filter-bar input,
    .filter-bar select {
        font-size: 0.92rem;
    }

    .button {
        min-height: 40px;
        padding: 9px 10px;
    }

    .product-detail {
        padding: 16px;
    }

    .simple-cart-form {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .simple-cart-form.has-mg-selector {
        grid-template-columns: minmax(0, 1fr) 52px;
    }

    .product-card-bottom .add-cart-form {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .product-card-cart-form.has-mg-selector {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .product-quantity-field {
        width: 56px;
    }

    .cart-qty-form {
        grid-template-columns: 44px 58px;
    }

    .product-meta {
        gap: 6px;
        margin-bottom: 12px;
    }

    .product-meta span {
        padding: 5px 7px;
        font-size: 0.72rem;
    }
}

@media (max-width: 960px) {
    .page-home .site-header {
        min-height: 78px;
        padding: 12px clamp(12px, 3vw, 26px);
        gap: clamp(6px, 1.6vw, 14px);
    }

    .page-home .brand-mark {
        width: clamp(42px, 8vw, 56px);
        height: clamp(42px, 8vw, 56px);
        box-shadow: none;
    }

    .page-home .brand-text {
        font-size: clamp(1.1rem, 3.2vw, 1.55rem);
    }

    .page-home .mobile-header-actions {
        gap: clamp(5px, 2.1vw, 18px);
    }

    .page-home .mobile-header-actions svg {
        width: clamp(24px, 4.8vw, 34px);
        height: clamp(24px, 4.8vw, 34px);
    }

    .page-home .mobile-icon-button,
    .page-home .nav-toggle {
        width: clamp(34px, 6.8vw, 46px);
        height: clamp(34px, 6.8vw, 46px);
        min-height: clamp(34px, 6.8vw, 46px);
    }

    .page-home .mobile-cart-button {
        width: clamp(52px, 10.5vw, 72px);
        height: clamp(38px, 7.7vw, 50px);
        min-height: clamp(38px, 7.7vw, 50px);
    }

    .page-home .mobile-cart-button span {
        top: clamp(1px, 0.7vw, 4px);
        right: clamp(5px, 1.2vw, 9px);
        min-width: clamp(17px, 3.5vw, 23px);
        height: clamp(17px, 3.5vw, 23px);
        font-size: 0.8rem;
    }
}

@media (max-width: 640px) {
    .page-home .hero {
        min-height: clamp(560px, calc(100svh - 78px), 650px);
    }

    .page-home .hero-media img {
        object-position: center top;
    }

    .page-home .hero-content {
        grid-template-rows: auto minmax(185px, 1fr) auto auto auto;
        padding: 18px 0 16px;
        gap: 9px;
    }

    .page-home .hero h1 {
        font-size: clamp(2.45rem, 10vw, 3.2rem);
    }

    .page-home .hero-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .page-home .hero-actions .button {
        min-height: 42px;
        padding: 8px;
        border-radius: 8px;
        font-size: clamp(0.82rem, 3.7vw, 1rem);
    }

    .page-home .hero-badges {
        flex-wrap: nowrap;
        gap: 5px;
    }

    .page-home .hero-badge {
        flex: 1 1 0;
        min-width: 0;
        min-height: 38px;
        padding: 6px 4px;
        gap: 4px;
        font-size: clamp(0.58rem, 2.35vw, 0.74rem);
        line-height: 1.05;
        text-align: center;
    }

    .page-home .hero-badge svg {
        width: 18px;
        height: 18px;
    }

    .page-home .hero-badge strong {
        max-width: none;
    }

    .page-home .hero-disclaimer {
        max-width: 340px;
        font-size: 0.78rem;
        line-height: 1.25;
    }
}

@media (max-width: 420px) {
    .page-home .site-header {
        min-height: 64px;
        padding: 8px 7px;
        gap: 4px;
    }

    .page-home .brand-text {
        max-width: 112px;
        overflow: hidden;
        font-size: clamp(0.98rem, 5.2vw, 1.14rem);
        text-overflow: ellipsis;
    }

    .page-home .brand-mark {
        width: 38px;
        height: 38px;
    }

    .page-home .mobile-header-actions {
        gap: 2px;
    }

    .page-home .mobile-icon-button,
    .page-home .nav-toggle {
        width: 30px;
        height: 30px;
        min-height: 30px;
    }

    .page-home .mobile-header-actions svg {
        width: 22px;
        height: 22px;
    }

    .page-home .mobile-cart-button {
        width: 46px;
        height: 34px;
        min-height: 34px;
    }

    .page-home .mobile-cart-button span {
        top: 1px;
        right: 5px;
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        font-size: 0.66rem;
    }

    .page-home .hero {
        min-height: clamp(540px, calc(100svh - 64px), 620px);
    }

    .page-home .hero-content {
        grid-template-rows: auto minmax(170px, 1fr) auto auto auto;
        padding: 16px 0 14px;
        gap: 8px;
    }

    .page-home .hero h1 {
        font-size: clamp(2.2rem, 9.5vw, 2.9rem);
    }

    .page-home .hero-badges {
        gap: 4px;
    }

    .page-home .hero-badge {
        min-height: 34px;
        padding: 5px 3px;
        gap: 3px;
        font-size: clamp(0.52rem, 2.45vw, 0.66rem);
    }

    .page-home .hero-badge svg {
        width: 16px;
        height: 16px;
    }
}
