:root {
    --font-body: "Manrope", "Aptos", "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Outfit", "Aptos Display", "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "Aptos Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --ink: #121820;
    --muted: #647181;
    --line: #dde5ec;
    --surface: #ffffff;
    --surface-soft: #f3f6f8;
    --teal: #0d766e;
    /* 与个人信息 .form-group 编辑框共用，前台焦点样式只在这里定义。 */
    --form-focus-border: var(--teal);
    --form-focus-shadow: 0 0 0 3px rgba(15, 139, 141, 0.14);
    --teal-dark: #07534d;
    --teal-soft: #e7f4f0;
    --teal-wash: #f2f8f6;
    --forest: #182a24;
    --sky: #2f80ed;
    --danger: #cf3f3f;
    --shadow-sm: 0 1px 2px rgba(18, 24, 32, 0.06);
    --shadow-md: 0 18px 42px rgba(18, 24, 32, 0.12);
    /* Responsive Tokens */
    --touch-target-min: 44px;
    --container-pad-sm: 12px;
    --container-pad-md: 20px;
    --container-pad-lg: 32px;
    --z-header: 100;
    --z-drawer: 200;
    --z-chat: 300;
    --z-modal: 400;
}

/* Product taxonomy: admin management, product forms, and storefront navigation */
.lumo-category-mega-menu {
    width: min(920px, calc(100vw - 48px));
    overflow-y: auto;
    padding: 18px;
}

.lumo-category-mega-menu__all {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
    font-weight: 700;
}

.lumo-category-mega-menu__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.lumo-category-mega-menu__group {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(26, 24, 22, 0.1);
    border-radius: 16px;
}

.lumo-category-mega-menu__main,
.lumo-category-mega-menu__subs>a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.lumo-category-mega-menu__main img,
.lumo-category-mega-menu__subs img,
.lumo-mobile-category-group img {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 10px;
    object-fit: cover;
    background: #f3f0eb;
}

.lumo-category-mega-menu__main span,
.lumo-category-mega-menu__subs span {
    display: grid;
    min-width: 0;
}

.lumo-category-mega-menu__main small,
.lumo-category-mega-menu__subs small {
    overflow: hidden;
    color: rgba(26, 24, 22, 0.58);
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lumo-category-mega-menu__subs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.lumo-category-mega-menu__subs>a {
    padding: 7px !important;
    border-radius: 11px;
    background: rgba(26, 24, 22, 0.035);
}

.lumo-category-mega-menu__subs img {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 8px;
}

.lumo-mobile-category-group {
    display: grid;
    gap: 4px;
    padding: 6px 0 8px;
    border-bottom: 1px solid rgba(26, 24, 22, 0.08);
}

.lumo-mobile-category-main,
.lumo-mobile-category-sub {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.lumo-mobile-category-sub {
    padding-left: 18px !important;
    font-size: 0.9rem;
}

.lumo-mobile-category-sub img {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
}

.admin-category-shell {
    display: grid;
    gap: 14px;
}

.admin-category-surface,
.admin-category-tree {
    min-width: 0;
}

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

.admin-category-node {
    overflow: hidden;
    border: 1px solid rgba(35, 32, 29, 0.12);
    border-radius: 16px;
    background: #fff;
    transition: opacity 0.18s ease, box-shadow 0.18s ease;
}

.admin-category-node.is-dragging,
.admin-subcategory-node.is-dragging {
    opacity: 0.45;
    box-shadow: 0 12px 28px rgba(26, 24, 22, 0.16);
}

.admin-category-node.is-inactive,
.admin-subcategory-node.is-inactive {
    background: #f8f7f5;
}

.admin-category-row,
.admin-subcategory-node {
    display: grid;
    grid-template-columns: auto auto minmax(180px, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
}

.admin-category-drag {
    width: 30px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: #8b837b;
    background: transparent;
    cursor: grab;
}

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

.admin-category-thumb,
.admin-category-image-preview {
    display: inline-grid;
    width: 52px;
    height: 52px;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
    color: #81786e;
    background: #eee9e2;
}

.admin-category-thumb img,
.admin-category-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-category-thumb--sub {
    width: 42px;
    height: 42px;
    border-radius: 10px;
}

.admin-category-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.admin-category-copy p {
    margin: 0;
    overflow: hidden;
    color: #706960;
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-category-title-line,
.admin-category-meta,
.admin-category-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.admin-category-title-line code {
    padding: 2px 6px;
    border-radius: 6px;
    color: #675f57;
    background: #f3f0ec;
    font-size: 0.72rem;
}

.admin-category-meta {
    color: #8b837b;
    font-size: 0.75rem;
}

.admin-subcategory-list {
    display: grid;
    gap: 1px;
    padding: 0 12px 12px 58px;
}

.admin-subcategory-list[hidden] {
    display: none;
}

.admin-category-collapse .icon {
    transition: transform 0.18s ease;
}

.admin-category-collapse[aria-expanded="false"] .icon {
    transform: rotate(-90deg);
}

.admin-subcategory-node {
    border-radius: 12px;
    background: #faf9f7;
}

.admin-category-empty-sub {
    padding: 12px;
    border-radius: 10px;
    color: #8b837b;
    background: #faf9f7;
    font-size: 0.82rem;
    text-align: center;
}

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

body.has-admin-category-modal {
    overflow: hidden;
}

.admin-category-modal {
    position: fixed;
    z-index: 1600;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}

.admin-category-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(15, 14, 13, 0.52);
}

.admin-category-modal__card {
    position: relative;
    z-index: 1;
    width: min(680px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 20px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.admin-category-modal__head,
.admin-category-modal__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-category-modal__head {
    margin-bottom: 16px;
}

.admin-category-modal__head h2 {
    margin: 2px 0 0;
}

.admin-category-modal__eyebrow {
    color: #8b837b;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.admin-category-modal__actions {
    justify-content: flex-end;
    padding-top: 6px;
}

.admin-category-preview-field {
    align-content: start;
}

.admin-product-category-fields {
    display: grid;
    gap: 12px;
    margin: 14px 0;
    padding: 14px;
    border: 1px solid rgba(35, 32, 29, 0.12);
    border-radius: 14px;
    background: #faf9f7;
}

.admin-product-subcategory-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.admin-product-subcategory-fieldset legend {
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 700;
}

.admin-product-subcategory-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.admin-product-subcategory-option {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 8px;
    border: 1px solid rgba(35, 32, 29, 0.11);
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
}

.admin-product-subcategory-option[hidden] {
    display: none;
}

.admin-product-subcategory-option>span:last-child {
    display: grid;
    min-width: 0;
}

.admin-product-subcategory-option small {
    overflow: hidden;
    color: #857d74;
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-product-subcategory-option__thumb {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    overflow: hidden;
    border-radius: 8px;
    background: #eee9e2;
}

.admin-product-subcategory-option__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-product-subcategory-empty {
    margin: 8px 0 0;
    color: #857d74;
    font-size: 0.8rem;
}

.admin-products-search {
    flex-wrap: wrap;
}

.admin-products-category-filters {
    display: flex;
    gap: 8px;
}

.admin-products-category-filters select {
    min-width: 150px;
}

.admin-product-category-cell,
.admin-product-category-tags {
    display: grid;
    gap: 5px;
}

.admin-product-category-tags {
    display: flex;
    flex-wrap: wrap;
}

.admin-product-category-tags span,
.theme-subcategory-badge {
    padding: 3px 7px;
    border-radius: 999px;
    color: #5d554d;
    background: #eeeae4;
    font-size: 0.72rem;
    text-decoration: none;
}

.product-card-taxonomy {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.catalog-category-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
    align-items: stretch;
    gap: 24px;
}

.catalog-category-hero:not(.has-category-image) {
    grid-template-columns: 1fr;
}

.catalog-category-hero__copy {
    display: grid;
    align-content: center;
    gap: 12px;
    min-height: 230px;
}

.catalog-category-hero__copy h1,
.catalog-category-hero__copy p {
    margin: 0;
}

.catalog-category-hero__media {
    min-height: 230px;
    overflow: hidden;
    border-radius: 18px;
}

.catalog-category-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-category-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-block: 10px 18px;
}

.catalog-category-card {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 190px;
    padding: 9px;
    border: 1px solid rgba(35, 32, 29, 0.12);
    border-radius: 13px;
    color: inherit;
    background: #fff;
    text-decoration: none;
}

.catalog-category-card.is-active {
    border-color: #2d2925;
    box-shadow: inset 0 0 0 1px #2d2925;
}

.catalog-category-card img,
.catalog-category-card__fallback {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 10px;
    object-fit: cover;
    background: #eee9e2;
}

.catalog-category-card__fallback {
    display: grid;
    place-items: center;
}

.catalog-category-card>span:not(.catalog-category-card__fallback) {
    display: grid;
}

.catalog-category-card small {
    color: #817970;
}

.catalog-category-filter-group {
    display: grid;
    gap: 4px;
}

.catalog-category-filter-main {
    justify-content: space-between;
}

.catalog-subcategory-filter-list {
    display: grid;
    gap: 4px;
    padding: 2px 0 7px 14px;
}

.catalog-subcategory-filter-list a {
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
}

.catalog-subcategory-filter-list img {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    object-fit: cover;
}

.catalog-subcategory-filter-empty {
    padding: 7px;
    color: #857d74;
}

@media (max-width: 820px) {

    .lumo-category-mega-menu__grid,
    .admin-product-subcategory-options,
    .catalog-category-hero {
        grid-template-columns: 1fr;
    }

    .admin-category-row,
    .admin-subcategory-node {
        grid-template-columns: auto auto minmax(0, 1fr);
    }

    .admin-category-row>.status,
    .admin-category-row>.admin-category-actions,
    .admin-subcategory-node>.status,
    .admin-subcategory-node>.admin-category-actions {
        grid-column: 3;
    }

    .admin-subcategory-list {
        padding-left: 18px;
    }
}

@media (max-width: 560px) {

    .admin-category-row,
    .admin-subcategory-node {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .admin-category-thumb {
        display: none;
    }

    .admin-category-copy,
    .admin-category-row>.status,
    .admin-category-row>.admin-category-actions,
    .admin-subcategory-node>.status,
    .admin-subcategory-node>.admin-category-actions {
        grid-column: 2;
    }

    .admin-products-category-filters {
        width: 100%;
        flex-direction: column;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background:
        linear-gradient(180deg, #eef3f5 0, var(--surface-soft) 240px, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.58;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.has-template-hero {
    overflow-x: clip;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
}

code,
pre,
.mono {
    font-family: var(--font-mono);
}

a {
    color: var(--teal);
    text-decoration: none;
}

/* SVG Icon System */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.icon-sm {
    width: 0.85em;
    height: 0.85em;
}

.icon.icon-back {
    width: 16px;
    height: 16px;
}

.icon-lg {
    width: 1.25em;
    height: 1.25em;
}

.icon-xl {
    width: 1.5em;
    height: 1.5em;
}

.icon-2x {
    width: 2em;
    height: 2em;
}

.icon-inline {
    margin-right: 0.35em;
}

.icon-back.icon-inline {
    margin-right: 0.175em;
}

.icon-inline-end {
    margin-left: 0.35em;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a:hover {
    color: var(--teal-dark);
    text-decoration: none;
}

.container {
    flex: 1;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 20px 40px;
}

.top-strip {
    display: flex;
    justify-content: center;
    gap: 28px;
    padding: 8px 20px;
    color: #f8fafc;
    background: var(--forest);
    font-size: 0.78rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.header-inner {
    max-width: 1180px;
    height: 66px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo {
    color: var(--ink);
    font-size: 1.2rem;
    font-weight: 800;
    white-space: nowrap;
}

.logo-image-link {
    display: inline-flex;
    align-items: center;
    min-width: 118px;
}

.site-logo-img {
    display: block;
    width: auto;
    height: 42px;
    max-width: 150px;
    object-fit: contain;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}

.main-nav a {
    color: var(--muted);
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 650;
    white-space: nowrap;
}

.main-nav>a:hover {
    color: var(--ink);
    background: transparent;
}

.shop-rail {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px 12px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.shop-rail a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 8px 12px;
    color: var(--ink);
    background: rgba(242, 248, 246, 0.86);
    border: 1px solid rgba(13, 118, 110, 0.16);
    border-radius: 8px;
}

.shop-rail a:hover {
    color: var(--ink);
    background: #ffffff;
    border-color: rgba(13, 118, 110, 0.3);
    box-shadow: var(--shadow-sm);
}

.shop-rail span {
    font-size: 0.84rem;
    font-weight: 800;
}

.shop-rail small {
    color: var(--muted);
    font-size: 0.72rem;
    text-align: right;
}

.auth-area {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--ink);
    border-radius: 8px;
}

.cart-link:hover {
    color: var(--teal);
    background: #edf7f7;
}

.cart-preview {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: -14px;
}

.cart-preview-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 230;
    width: 360px;
    max-width: min(360px, calc(100vw - 32px));
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 64px rgba(17, 17, 17, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, -8px, 0) scale(0.985);
    transform-origin: top right;
    transition:
        opacity 0.18s ease,
        transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.18s ease;
}

.cart-preview:hover .cart-preview-panel,
.cart-preview:focus-within .cart-preview-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
}

.cart-preview-panel__head,
.cart-preview-panel__actions,
.cart-preview-item {
    display: grid;
    align-items: center;
    gap: 12px;
}

.cart-preview-panel__head {
    grid-template-columns: minmax(0, 1fr) auto;
}

.cart-preview-panel__head strong {
    display: block;
    color: #111111;
    font-size: 0.95rem;
    font-weight: 800;
}

.cart-preview-panel__head span,
.cart-preview-more,
.cart-preview-empty span,
.cart-preview-item__copy span,
.cart-preview-item__meta span {
    color: rgba(17, 17, 17, 0.62);
    font-size: 0.82rem;
}

.cart-preview-empty {
    display: grid;
    gap: 4px;
    padding: 16px;
    border-radius: 16px;
    background: #f7f7f5;
}

.cart-preview-empty strong,
.cart-preview-item__copy strong,
.cart-preview-item__meta strong {
    color: #111111;
    font-weight: 800;
}

.cart-preview-list {
    display: grid;
    gap: 8px;
}

.cart-preview-item {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    padding: 8px;
    border-radius: 16px;
    color: inherit;
    text-decoration: none;
    transition: background 0.18s ease, transform 0.18s ease;
}

.cart-preview-item:hover {
    background: #f7f7f5;
    transform: translateY(-1px);
}

.cart-preview-item__media {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    overflow: hidden;
    background: #f1efe9;
    border: 1px solid rgba(17, 17, 17, 0.06);
}

.cart-preview-item__media img,
.cart-preview-item__placeholder {
    width: 100%;
    height: 100%;
}

.cart-preview-item__media img {
    display: block;
    object-fit: cover;
}

.cart-preview-item__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(17, 17, 17, 0.48);
}

.cart-preview-item__copy,
.cart-preview-item__meta {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.cart-preview-item__copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-preview-item__meta {
    justify-items: end;
    text-align: right;
}

.cart-preview-more {
    padding: 0 4px;
    font-weight: 700;
}

.cart-preview-panel__actions {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-top: 2px;
}

.cart-preview-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    color: var(--theme-green-dark);
    font-weight: 800;
    text-decoration: none;
}

.cart-preview-link:hover {
    color: var(--theme-green);
}

.cart-icon {
    width: 20px;
    height: 20px;
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--teal);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
}

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

.user-menu {
    position: relative;
}

.user-menu-trigger {
    min-height: 38px;
    padding: 8px 11px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--ink);
    background: #eef2f6;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 800;
}

.user-menu-trigger:hover,
.user-menu-trigger[aria-expanded="true"] {
    color: var(--teal-dark);
    background: #edf7f7;
    border-color: #b8dddd;
}

.menu-chevron {
    margin-left: 2px;
    transition: transform 0.15s;
}

.user-menu-trigger[aria-expanded="true"] .menu-chevron {
    transform: rotate(180deg);
}

.user-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 200;
    width: 220px;
    padding: 8px;
    display: grid;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.user-menu-panel[hidden] {
    display: none;
}

.user-menu-panel a {
    display: flex;
    align-items: center;
    padding: 10px 11px;
    color: var(--ink);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 750;
}

.user-menu-panel a:hover {
    color: var(--teal-dark);
    background: var(--teal-soft);
}

.user-menu-meta {
    padding: 10px 11px 9px;
    border-bottom: 1px solid var(--line);
}

.user-menu-meta strong,
.user-menu-meta span {
    display: block;
}

.user-menu-meta strong {
    color: var(--ink);
    font-size: 0.92rem;
}

.user-menu-meta span {
    color: var(--teal-dark);
    margin-top: 2px;
    font-size: 0.76rem;
    font-weight: 750;
}

.site-footer {
    position: relative;
    z-index: 2;
    margin-top: auto;
    color: #d9e0e7;
    background: var(--forest);
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 20px 22px;
    display: grid;
    grid-template-columns: minmax(240px, 1.2fr) minmax(360px, 1.4fr) minmax(230px, 0.8fr);
    align-items: flex-start;
    gap: 28px;
}

.footer-inner strong {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
}

.footer-inner p,
.footer-fine {
    color: #b9c4cf;
    font-size: 0.88rem;
}

.footer-brand p {
    max-width: 360px;
}

.footer-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.footer-proof span {
    padding: 6px 9px;
    color: #e9f7f4;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 750;
}

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

.footer-nav div {
    display: grid;
    align-content: start;
    gap: 7px;
}

.footer-nav a {
    color: #dce8e5;
    font-size: 0.88rem;
}

.footer-nav a:hover {
    color: #ffffff;
}

.footer-newsletter {
    padding: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}

.footer-newsletter div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 12px;
}

.footer-newsletter input {
    min-width: 0;
    height: 36px;
    padding: 0 10px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
}

.footer-newsletter input::placeholder {
    color: #adbfba;
}

.footer-fine {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px 22px;
}

.section {
    margin-bottom: 34px;
}

.section h1,
.section h2,
.section h3 {
    color: var(--ink);
    line-height: 1.12;
}

.section h1 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.section h2 {
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--teal-dark);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.text-link {
    color: var(--teal-dark);
    font-weight: 750;
    font-size: 0.9rem;
}

.btn,
.btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 750;
    transition: transform 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
}

.btn[disabled],
.btn-sm[disabled] {
    cursor: not-allowed;
    opacity: 0.62;
    transform: none;
}

.btn {
    min-height: 44px;
    padding: 11px 20px;
    color: #ffffff;
    background: var(--teal);
    font-size: 0.94rem;
}

.btn:hover {
    color: #ffffff;
    background: var(--teal-dark);
    transform: translateY(-1px);
}

.btn:active,
.btn-sm:active {
    transform: translateY(1px);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(15, 139, 141, 0.28);
    outline-offset: 2px;
}

.btn-full {
    width: 100%;
}

.btn-sm {
    min-height: 34px;
    padding: 7px 13px;
    color: var(--ink);
    background: #eef2f6;
    font-size: 0.82rem;
}

.btn-sm:hover {
    color: var(--ink);
    background: #dde6ee;
}

.btn-accent {
    background: var(--teal);
}

.btn-accent:hover {
    background: var(--teal-dark);
}

.btn-buy-now {
    color: #ffffff;
    background: var(--forest);
}

.btn-buy-now:hover {
    color: #ffffff;
    background: #0f1d18;
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

.btn-ghost-light {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-ghost-light:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.btn-primary-sm {
    color: #ffffff;
    background: var(--teal);
}

.btn-primary-sm:hover {
    color: #ffffff;
    background: var(--teal-dark);
}

.btn-danger {
    color: #ffffff;
    background: var(--danger);
}

.btn-danger:hover {
    color: #ffffff;
    background: #b83232;
}

.home-hero {
    min-height: 560px;
    margin: -24px -20px 34px;
    padding: 72px 20px 54px;
    background-image:
        linear-gradient(90deg, rgba(18, 32, 28, 0.9), rgba(18, 32, 28, 0.58) 44%, rgba(18, 32, 28, 0.08) 78%),
        url("/images/hero-merch.png");
    background-size: cover;
    background-position: center;
    border-radius: 0 0 8px 8px;
    display: flex;
    align-items: center;
}

.home-hero-content {
    width: min(1180px, 100%);
    margin: 0 auto;
    color: #ffffff;
}

.home-hero-content .eyebrow {
    color: #9ee7df;
}

.home-hero h1 {
    max-width: 580px;
    color: #ffffff;
    font-size: 3.35rem;
    line-height: 1.04;
    margin-bottom: 16px;
}

.home-hero p {
    max-width: 520px;
    color: #edf7f4;
    font-size: 1.08rem;
}

.template-home-hero {
    position: relative;
    overflow: hidden;
    align-items: flex-end;
    background-image:
        linear-gradient(90deg, rgba(15, 26, 23, 0.92), rgba(15, 26, 23, 0.62) 48%, rgba(15, 26, 23, 0.12) 82%),
        url("/images/hero-merch.png");
}

.template-home-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 120px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(243, 246, 248, 0.9));
}

.template-home-hero .home-hero-content {
    position: relative;
    z-index: 1;
}

.hero-proof-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.hero-proof-row span {
    padding: 7px 10px;
    color: #f8fffd;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 750;
}

.hero-merch-card {
    position: absolute;
    right: max(20px, calc((100vw - 1180px) / 2 + 20px));
    bottom: 48px;
    z-index: 1;
    width: min(300px, 30vw);
    padding: 18px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(14px);
}

.hero-merch-card span,
.collection-card span,
.route-edit-copy .eyebrow {
    display: block;
    color: var(--teal-dark);
    font-size: 0.75rem;
    font-weight: 850;
    text-transform: uppercase;
}

.hero-merch-card strong,
.hero-merch-card small {
    display: block;
}

.hero-merch-card strong {
    margin: 4px 0 8px;
    font-size: 1.35rem;
    line-height: 1.1;
}

.hero-merch-card small {
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.page-hero {
    margin-left: -20px;
    margin-right: -20px;
    padding: 34px 20px 30px;
    color: var(--ink);
    background: linear-gradient(90deg, var(--teal-wash), rgba(255, 255, 255, 0));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
}

.page-hero p {
    max-width: 620px;
    color: var(--muted);
}

.page-hero .btn,
.page-hero .btn-sm {
    margin-top: 16px;
}

.compact-hero {
    padding-top: 30px;
    padding-bottom: 26px;
}

.about-hero,
.service-hero {
    background: linear-gradient(90deg, var(--teal-wash), rgba(255, 255, 255, 0));
}

.category-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.category-tile,
.service-card,
.value-card,
.contact-panel,
.form-panel,
.admin-table,
.stat-card,
.message-card,
.post-card,
.empty-state-card,
.design-tools,
.design-stage {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.category-tile {
    padding: 18px;
    color: var(--ink);
    min-height: 126px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.category-tile:hover {
    color: var(--ink);
    border-color: #b8dddd;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.category-tile .icon {
    color: var(--teal);
    margin-bottom: 6px;
}

.category-tile strong,
.category-tile small {
    display: block;
}

.category-tile small {
    color: var(--muted);
    margin-top: 2px;
}

.template-trust-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: -10px;
}

.template-trust-bar div {
    min-height: 104px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.template-trust-bar .icon {
    color: var(--teal);
    margin-bottom: 8px;
}

.template-trust-bar strong,
.template-trust-bar span {
    display: block;
}

.template-trust-bar span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.86rem;
}

.template-collection-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    grid-auto-rows: minmax(170px, auto);
    gap: 14px;
}

.collection-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 170px;
    padding: 20px;
    color: var(--ink);
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(231, 244, 240, 0.9)),
        var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.collection-card::after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -54px;
    width: 160px;
    height: 160px;
    border: 1px solid rgba(13, 118, 110, 0.12);
    border-radius: 999px;
}

.collection-card:hover {
    color: var(--ink);
    border-color: #b8dddd;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.collection-card.large {
    grid-row: span 2;
    min-height: 354px;
    color: #ffffff;
    background:
        linear-gradient(150deg, rgba(18, 42, 36, 0.92), rgba(13, 118, 110, 0.72)),
        url("/images/hero-merch.png");
    background-size: cover;
    background-position: center;
}

.collection-card.large span,
.collection-card.large small {
    color: #d8fff7;
}

.collection-card.sale {
    background: linear-gradient(135deg, #ffffff, #f3f7fb);
}

.collection-card strong {
    position: relative;
    z-index: 1;
    max-width: 360px;
    margin: 14px 0 20px;
    font-size: 1.22rem;
    line-height: 1.2;
}

.collection-card.large strong {
    margin-top: auto;
    font-size: 2rem;
}

.collection-card small {
    position: relative;
    z-index: 1;
    color: var(--teal-dark);
    font-weight: 850;
}

.section-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.section-heading-row h2 {
    margin-bottom: 0;
}

.section-note {
    color: var(--muted);
    margin-top: 6px;
    max-width: 52ch;
}

.section-heading-row.compact {
    margin-bottom: 14px;
}

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

.product-card {
    overflow: visible;
    display: flex;
    flex-direction: column;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: none;
}

.product-card:hover {
    transform: none;
    border-color: transparent;
    box-shadow: none;
}

.product-visual {
    position: relative;
    height: 188px;
    background: linear-gradient(145deg, #f9fbfc 0%, #e7eef1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 16px;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-shape {
    position: relative;
    display: block;
}

.sku-color-swatch {
    width: 16px;
    height: 12px;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.sku-color-swatch:hover {
    border-color: #999;
}

.product-visual-backpack .product-shape,
.product-visual-carry .product-shape,
.product-visual-tote .product-shape,
.product-visual-crossbody .product-shape,
.product-visual-duffel .product-shape {
    background: linear-gradient(145deg, #22362f, #0f766e);
    box-shadow: inset 0 -18px rgba(0, 0, 0, 0.16), 0 18px 34px rgba(18, 24, 32, 0.16);
}

.product-visual-carry .product-shape {
    width: 118px;
    height: 92px;
    border-radius: 22px;
}

.product-visual-carry .product-shape::before {
    content: "";
    position: absolute;
    inset: 16px 22px 18px;
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-radius: 14px;
}

.product-visual-backpack .product-shape {
    width: 96px;
    height: 122px;
    border-radius: 24px 24px 18px 18px;
}

.product-visual-backpack .product-shape::before,
.product-visual-backpack .product-shape::after {
    content: "";
    position: absolute;
    top: 20px;
    bottom: 18px;
    width: 12px;
    border: 3px solid #c9d6d2;
    border-radius: 999px;
}

.product-visual-backpack .product-shape::before {
    left: -18px;
}

.product-visual-backpack .product-shape::after {
    right: -18px;
}

.product-visual-tote .product-shape {
    width: 112px;
    height: 108px;
    border-radius: 10px 10px 18px 18px;
}

.product-visual-tote .product-shape::before {
    content: "";
    position: absolute;
    left: 28px;
    top: -26px;
    width: 56px;
    height: 44px;
    border: 8px solid #22362f;
    border-bottom: none;
    border-radius: 999px 999px 0 0;
}

.product-visual-crossbody .product-shape {
    width: 118px;
    height: 82px;
    border-radius: 18px;
}

.product-visual-crossbody .product-shape::before {
    content: "";
    position: absolute;
    left: -34px;
    top: -22px;
    width: 184px;
    height: 92px;
    border-top: 7px solid #263840;
    transform: rotate(-20deg);
}

.product-visual-duffel .product-shape {
    width: 142px;
    height: 76px;
    border-radius: 28px 28px 18px 18px;
}

.product-visual-duffel .product-shape::before {
    content: "";
    position: absolute;
    left: 42px;
    top: -18px;
    width: 58px;
    height: 34px;
    border: 7px solid #22362f;
    border-bottom: none;
    border-radius: 999px 999px 0 0;
}

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

.product-card-meta {
    min-height: 25px;
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.product-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.product-title-link {
    color: var(--ink);
}

.product-title-link:hover {
    color: var(--teal-dark);
}

.product-copy {
    color: var(--muted);
    font-size: 0.88rem;
}

.product-card-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.product-actions .btn-sm {
    width: 100%;
    padding-left: 8px;
    padding-right: 8px;
}

.price {
    color: var(--teal-dark);
    font-size: 1.1rem;
    font-weight: 850;
}

.original-price {
    margin-left: 8px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
    text-decoration: line-through;
}

.detail-original-price {
    font-size: 0.95rem;
    vertical-align: middle;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 850;
    text-transform: uppercase;
}

.badge-hot {
    color: var(--teal-dark);
    background: var(--teal-soft);
}

.badge-sale {
    color: var(--teal-dark);
    background: #e7f4f4;
}

/* Product Detail Page */
.product-detail-topbar {
    margin-bottom: 14px;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
    gap: 32px;
    align-items: start;
}

.product-detail-image {
    position: sticky;
    top: 96px;
}

.product-detail-visual {
    height: 400px;
    background:
        radial-gradient(circle at 20% 18%, rgba(15, 139, 141, 0.14), transparent 28%),
        linear-gradient(135deg, #f8fafc, #edf4f2);
    border-radius: 8px;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-detail-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 20px;
}

.product-detail-visual .product-shape {
    transform: scale(1.6);
}

.product-detail-info {
    padding: 8px 0;
}

.product-detail-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.product-detail-info h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.product-detail-price {
    color: var(--teal-dark);
    font-size: 1.8rem;
    font-weight: 850;
    margin-bottom: 16px;
}

.product-detail-desc {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.product-detail-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.feature-item {
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.feature-item .icon {
    color: var(--teal);
    margin-bottom: 2px;
}

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

.feature-item span {
    color: var(--muted);
    font-size: 0.88rem;
    margin-top: 4px;
}

.product-detail-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

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

.product-contact-btn {
    width: 100%;
    margin-top: -6px;
    color: var(--teal-dark);
    background: var(--teal-wash);
    border: 1px solid #c7ded9;
}

.product-contact-btn:hover {
    color: var(--forest);
    background: #dff0ec;
}

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

.sku-picker {
    padding: 0;
    border: 0;
}

.sku-picker legend {
    margin-bottom: 10px;
    color: var(--ink);
    font-weight: 850;
}

.color-card-list,
.catalog-color-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.catalog-color-filter {
    margin-top: 10px;
}

.color-card {
    width: 48px;
    height: 32px;
    box-sizing: border-box;
    display: block;
    flex: 0 0 48px;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #d6d6d2;
    border-radius: 3px;
    cursor: pointer;
}

.catalog-sidebar .color-card {
    display: block;
    padding: 0;
    color: inherit;
    background: #fff;
    border-radius: 3px;
    font-weight: 400;
}

.color-card:hover,
.catalog-sidebar .color-card:hover {
    background: #fff;
    border-color: #7a7a74;
}

.color-card.is-selected {
    border: 2px solid #171717;
}

.color-card:focus-visible,
.product-variant-option:focus-visible {
    outline: 3px solid rgba(16, 132, 116, 0.28);
    outline-offset: 2px;
}

.color-card:disabled,
.product-variant-option:disabled,
.product-lumo-sku.is-disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.color-swatch {
    width: 100%;
    height: 100%;
    display: block;
}

.product-variant-picker {
    display: grid;
    gap: 8px;
}

.product-variant-picker legend {
    margin-bottom: 0;
    font-size: 0.82rem;
}

.product-variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-variant-option {
    min-width: 48px;
    min-height: 36px;
    padding: 7px 12px;
    color: #242424;
    background: #fff;
    border: 1px solid #d6d6d2;
    border-radius: 6px;
    cursor: pointer;
}

.product-variant-option:hover {
    border-color: #7a7a74;
}

.product-variant-option.is-selected {
    color: #fff;
    background: #171717;
    border-color: #171717;
}

.sku-options {
    display: grid;
    gap: 10px;
}

.sku-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 13px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
}

.sku-option.selected,
.sku-option:hover {
    border-color: var(--teal);
    background: var(--teal-wash);
}

.sku-option span,
.sku-option small {
    display: block;
}

.sku-option small,
.cart-item-sku,
.table-subtext,
.checkout-item small {
    color: var(--muted);
    font-size: 0.8rem;
}

.sku-option em {
    color: var(--teal-dark);
    font-style: normal;
    font-weight: 850;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-selector label {
    font-weight: 750;
    font-size: 0.9rem;
    color: var(--muted);
}

.quantity-selector input {
    width: 70px;
    padding: 10px 12px;
    text-align: center;
    border: 1px solid #ccd6e0;
    border-radius: 8px;
    font-size: 0.95rem;
}

.quantity-selector input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(15, 139, 141, 0.14);
}

.back-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.9rem;
}

.product-rich-panel {
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.rich-copy {
    max-width: 820px;
    color: var(--ink);
}

.rich-copy h2,
.rich-copy h3 {
    margin: 0 0 12px;
    line-height: 1.15;
}

.rich-copy p {
    color: var(--muted);
    margin-bottom: 14px;
    line-height: 1.7;
}

.rich-copy ul,
.rich-copy ol {
    display: grid;
    gap: 8px;
    margin: 0 0 16px 20px;
    color: var(--muted);
}

/* Cart Page */
.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    gap: 24px;
    align-items: start;
}

.cart-items {
    display: grid;
    gap: 14px;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.cart-item-visual {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-item-placeholder {
    width: 40px;
    height: 40px;
    background: #edf7f7;
    border-radius: 8px;
}

.cart-item-info h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.cart-item-info h3 a {
    color: var(--ink);
}

.cart-item-info h3 a:hover {
    color: var(--teal);
}

.cart-item-price {
    color: var(--muted);
    font-size: 0.9rem;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.cart-qty-form input {
    width: 60px;
    padding: 6px 8px;
    text-align: center;
    border: 1px solid #ccd6e0;
    border-radius: 8px;
    font-size: 0.9rem;
}

.cart-qty-form input:focus {
    outline: none;
    border-color: var(--teal);
}

.cart-item-subtotal {
    color: var(--teal-dark);
    font-weight: 800;
    font-size: 1rem;
}

.btn-danger-sm {
    min-height: 28px;
    padding: 4px 10px;
    color: #ffffff;
    background: var(--danger);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.76rem;
}

.btn-danger-sm:hover {
    background: #b83232;
}

.cart-summary {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 96px;
}

.cart-summary h2 {
    font-size: 1.15rem;
    margin-bottom: 16px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    margin-top: 8px;
    border-top: 2px solid var(--line);
    font-size: 1.1rem;
}

.cart-summary-total strong {
    color: var(--teal-dark);
    font-size: 1.3rem;
}

.cart-summary .btn {
    margin-top: 16px;
}

.cart-continue {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 0.9rem;
}

/* Checkout Page */
.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    gap: 24px;
    align-items: start;
}

.checkout-form-panel {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.checkout-form-panel--wide {
    max-width: none;
}

.checkout-summary {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 96px;
}

.checkout-summary h2 {
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: var(--muted);
    font-size: 0.9rem;
    border-bottom: 1px solid #edf1f5;
}

.checkout-item strong {
    color: var(--ink);
}

.checkout-item--stacked {
    align-items: flex-start;
    gap: 10px;
}

.checkout-item small,
.table-subtext {
    display: block;
    margin-top: 3px;
}

.checkout-breakdown {
    display: grid;
    gap: 10px;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid #edf1f5;
}

.checkout-breakdown__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0 0;
    margin-top: 8px;
    font-size: 1.1rem;
}

.checkout-total strong {
    color: var(--teal-dark);
    font-size: 1.3rem;
}

.checkout-section-block+.checkout-section-block {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #edf1f5;
}

.checkout-form {
    max-width: none;
}

.discount-code-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.discount-code-row input {
    flex: 1 1 auto;
    min-width: 0;
}

.discount-code-row .btn-sm {
    flex: 0 0 auto;
}

.payment-method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.payment-method-card {
    position: relative;
    display: grid;
    gap: 12px;
    min-height: 164px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(19, 53, 50, 0.10);
    background: rgba(255, 255, 255, 0.96);
    cursor: pointer;
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.payment-method-card input[type="radio"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.payment-method-card__top {
    display: grid;
    gap: 4px;
}

.payment-method-card__top strong {
    font-size: 1.02rem;
}

.payment-method-card__top small,
.payment-method-card__body {
    color: var(--muted);
}

.payment-method-card.is-selected {
    border-color: rgba(26, 148, 131, 0.28);
    background: rgba(237, 247, 247, 0.92);
    box-shadow: 0 14px 28px rgba(19, 53, 50, 0.08);
}

.payment-method-card.is-disabled {
    cursor: not-allowed;
    opacity: 0.66;
}

.payment-method-card.is-disabled input[type="radio"] {
    cursor: not-allowed;
}

@media (max-width: 980px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
    }

    .product-detail-image {
        position: static;
    }

    .product-detail-visual {
        height: 300px;
    }
}

@media (max-width: 640px) {
    .product-detail-features {
        grid-template-columns: 1fr;
    }

    .product-detail-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .purchase-buttons {
        grid-template-columns: 1fr;
    }

    .quantity-selector {
        justify-content: space-between;
    }
}

/* LumoCAD-inspired product detail: quiet gallery, direct purchase column */
.product-lumo-shell {
    width: min(1180px, calc(100% - 40px));
    padding-top: 32px;
    gap: 24px;
}

.product-lumo-back {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 3.5px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.product-lumo-layout {
    grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.88fr);
    gap: clamp(40px, 6vw, 76px);
    align-items: start;
}

.product-lumo-gallery {
    min-width: 0;
    gap: 12px;
}

.product-lumo-visual {
    width: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1 / 1.02;
    background: #f1f1ef;
    border: 0;
    border-radius: 18px;
}

.product-lumo-visual .product-detail-img {
    padding: clamp(28px, 5vw, 72px);
}

.product-lumo-gallery .product-thumb-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.product-lumo-gallery .product-thumb {
    flex: 0 0 78px;
    border-radius: 10px;
    box-shadow: none;
}

.product-lumo-column {
    min-width: 0;
    position: sticky;
    top: 92px;
    gap: 22px;
}

.product-lumo-breadcrumbs {
    gap: 10px;
    color: #777;
    font-size: 0.8rem;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
}

.product-lumo-breadcrumbs::-webkit-scrollbar {
    display: none;
}

.product-lumo-breadcrumbs__item {
    display: inline-flex;
    align-items: center;
    gap: inherit;
    flex-shrink: 0;
}

.product-lumo-copy {
    gap: 15px;
}

.product-lumo-copy .product-detail-badges {
    margin: 0;
}

.product-lumo-copy h1 {
    max-width: 14ch;
    margin: 0;
    font-size: clamp(2.35rem, 3.3vw, 3.65rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.product-lumo-price {
    color: #111;
    font-size: 1.8rem;
}

.product-lumo-stock {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 14px 0 0;
    color: #b23c35;
    font-size: 0.82rem;
    font-weight: 650;
}

.product-lumo-stock>span {
    display: inline-flex;
    align-items: center;
}

.product-lumo-stock>span[hidden] {
    display: none;
}

.product-lumo-stock.is-preorder {
    color: var(--teal-dark);
}

.product-lumo-discount {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin: 7px 0 0;
    color: var(--teal-dark);
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.45;
}

.product-lumo-discount .product-discount-code {
    font-size: 1.05rem;
    font-weight: 800;
    color: inherit;
    letter-spacing: 0.03em;
    overflow-wrap: anywhere;
}

.product-lumo-stock .icon,
.product-discount-icon .icon {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
}

.product-discount-icon {
    display: inline-flex;
    flex: 0 0 1.1rem;
}

.product-discount-content {
    min-width: 0;
    position: relative;
    top: -6px;
}

.product-lumo-discount [data-discount-countdown] {
    display: inline-block;
    max-width: 100%;
    margin-top: 7px;
    padding: 5px 10px;
    border-radius: 6px;
    background: var(--teal-soft);
    color: var(--teal-dark);
    font-size: 0.78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.product-lumo-copy .product-detail-desc {
    max-width: 48ch;
    margin: 10px 0 0;
    color: #262626;
    line-height: 1.65;
}

.product-lumo-purchase {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.product-lumo-form {
    gap: 14px;
}

.product-lumo-sku-picker legend {
    margin-bottom: 9px;
    font-size: 0.82rem;
}

.product-lumo-sku-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-lumo-sku {
    position: relative;
    width: auto;
    min-width: 118px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 10px 12px;
    background: #fff;
    border-color: #dcdcd8;
    border-radius: 8px;
}

.product-lumo-sku input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.product-lumo-sku:has(input:focus-visible) {
    outline: 3px solid rgba(16, 132, 116, 0.22);
    outline-offset: 2px;
}

.product-lumo-sku.selected,
.product-lumo-sku:hover {
    color: #fff;
    background: #171717;
    border-color: #171717;
}

.product-lumo-sku.selected small,
.product-lumo-sku:hover small,
.product-lumo-sku.selected em,
.product-lumo-sku:hover em {
    color: rgba(255, 255, 255, 0.68);
}

.product-lumo-sku em {
    color: #555;
    font-size: 0.74rem;
    font-style: normal;
    font-weight: 750;
}

.product-lumo-actions {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 10px;
    margin: 2px 0 0;
}

.product-lumo-quantity {
    min-height: 50px;
    display: grid;
    grid-template-columns: 34px 1fr 34px;
    gap: 0;
    padding: 0 6px;
    border: 1px solid #dededa;
    border-radius: 999px;
}

.product-lumo-quantity button {
    height: 100%;
    min-height: 46px;
    padding: 0;
    color: #111;
    background: transparent;
    border: 0;
    font-size: 1.2rem;
    cursor: pointer;
}

.product-lumo-quantity input {
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    -moz-appearance: textfield;
}

.product-lumo-quantity input::-webkit-inner-spin-button,
.product-lumo-quantity input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.product-lumo-add,
.product-lumo-buy {
    min-height: 50px;
    justify-content: center;
    border-radius: 999px;
}

.product-lumo-add {
    color: #111;
    background: #efefed;
}

.product-lumo-add:hover {
    color: #fff;
    background: #111;
}

.product-lumo-buy {
    color: #fff;
    background: #111;
}

.product-lumo-buy:hover {
    background: var(--teal-dark);
}

.product-lumo-payment-note {
    margin: -3px 0 0;
    color: var(--muted);
    font-size: 0.76rem;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.product-lumo-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 22px 0;
    border-bottom: 1px solid #e5e5e1;
}

.product-lumo-trust div {
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 4px;
    text-align: center;
}

.product-lumo-trust .icon {
    margin-bottom: 5px;
}

.product-lumo-trust strong {
    font-size: 0.74rem;
}

.product-lumo-trust span {
    color: var(--muted);
    font-size: 0.68rem;
}

.product-lumo-accordions {
    border-top: 1px solid #e5e5e1;
}

.product-lumo-accordions details {
    border-bottom: 1px solid #e5e5e1;
}

.product-lumo-accordions summary {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 750;
    list-style: none;
}

.product-lumo-accordions summary:focus-visible,
.product-lumo-contact:focus-visible,
.product-lumo-back:focus-visible {
    outline: 3px solid rgba(16, 132, 116, 0.22);
    outline-offset: 3px;
}

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

.product-lumo-accordions summary span {
    font-size: 1.25rem;
    font-weight: 400;
    transition: transform 180ms ease;
}

.product-lumo-accordions details[open] summary span {
    transform: rotate(45deg);
}

.product-lumo-accordions details>p,
.product-lumo-accordions .rich-copy,
.product-lumo-accordions .product-lumo-contact {
    margin: 0 0 18px;
}

.product-lumo-accordions .delivery-returns-copy {
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.product-lumo-accordions .rich-copy {
    padding-right: 8px;
    font-size: 0.85rem;
}

.product-lumo-accordions .rich-copy img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 12px auto;
    border-radius: 12px;
}

.product-detail-content-images {
    display: grid;
    gap: 12px;
    margin: 0 0 18px;
}

.product-detail-content-images img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    background: #f4f4f1;
}

.product-lumo-contact {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    color: var(--teal-dark);
    background: transparent;
    border: 0;
    font-weight: 750;
    cursor: pointer;
}

.product-lumo-story {
    padding-top: 74px;
    padding-bottom: 74px;
    border-top: 1px solid #e4e4e0;
    border-bottom: 1px solid #e4e4e0;
}

.product-lumo-story h2 {
    max-width: 13ch;
    margin: 10px 0 38px;
    font-size: clamp(2.4rem, 5vw, 5rem);
    line-height: 0.98;
}

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

.product-lumo-story-grid p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.product-lumo-story-grid strong {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
}

@media (max-width: 980px) {
    .product-lumo-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .product-lumo-column {
        position: static;
    }

    .product-lumo-visual {
        min-height: 520px;
    }
}

@media (max-width: 640px) {
    .product-lumo-shell {
        width: min(100%, calc(100% - 24px));
        padding-top: calc(var(--header-height, 72px) + 16px);
    }

    .product-lumo-visual {
        min-height: 360px;
        border-radius: 12px;
    }

    .product-lumo-copy h1 {
        font-size: 2.15rem;
    }

    .product-lumo-actions {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .product-lumo-sku-options {
        display: grid;
        grid-template-columns: 1fr;
    }

    .product-lumo-sku {
        width: 100%;
    }

    .product-lumo-trust,
    .product-lumo-story-grid {
        grid-template-columns: 1fr;
    }

    .product-lumo-trust {
        gap: 18px;
    }

    .product-lumo-trust div {
        grid-template-columns: auto minmax(0, 1fr);
        justify-items: start;
        text-align: left;
    }

    .product-lumo-trust .icon {
        grid-row: span 2;
    }

    .product-lumo-story {
        padding-top: 46px;
        padding-bottom: 46px;
    }
}

.promo-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: center;
    padding: 28px;
    color: var(--ink);
    background: linear-gradient(135deg, var(--teal-soft), #ffffff);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.promo-panel .eyebrow,
.promo-panel h2,
.promo-panel p {
    color: var(--ink);
}

.promo-copy p {
    color: var(--muted);
    max-width: 620px;
    margin: 8px 0 18px;
}

.promo-image-wrap {
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #ffffff;
    aspect-ratio: 4 / 3;
}

.promo-image-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 60% center;
}

.template-promo-panel {
    background:
        linear-gradient(135deg, rgba(231, 244, 240, 0.94), rgba(255, 255, 255, 0.98) 48%, rgba(243, 247, 251, 0.94));
}

.route-edit-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.15fr) repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.route-edit-copy,
.route-card {
    min-height: 160px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.route-edit-copy {
    background: linear-gradient(135deg, #ffffff, var(--teal-wash));
}

.route-edit-copy h2 {
    margin: 8px 0 10px;
}

.route-edit-copy p {
    color: var(--muted);
}

.route-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(18, 24, 32, 0.04)),
        #ffffff;
}

.route-card:hover {
    color: var(--ink);
    border-color: #b8dddd;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.route-card strong {
    font-size: 1.05rem;
}

.route-card span {
    color: var(--muted);
    margin-top: 8px;
    font-size: 0.88rem;
}

.compact-panel {
    grid-template-columns: minmax(0, 1fr) auto;
}

.split-section,
.about-grid,
.contact-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.compact-product-list {
    display: grid;
    gap: 8px;
}

.compact-product {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.compact-product:hover {
    color: var(--ink);
    border-color: #b8dddd;
}

.sale-row strong {
    color: var(--teal-dark);
}

.service-row,
.service-grid,
.stats-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.service-row div,
.stats-band div {
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.service-row div .icon,
.stats-band div .icon {
    color: var(--teal);
    margin-bottom: 4px;
}

.service-row strong,
.service-row span,
.stats-band strong,
.stats-band span {
    display: block;
}

.service-row span,
.stats-band span {
    color: var(--muted);
    margin-top: 4px;
    font-size: 0.9rem;
}

.stats-band strong {
    color: var(--teal-dark);
    font-size: 2rem;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.catalog-sidebar {
    position: sticky;
    top: 96px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.catalog-sidebar h2 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.catalog-sidebar a {
    display: block;
    padding: 9px 10px;
    color: var(--muted);
    border-radius: 8px;
    font-weight: 700;
}

.catalog-sidebar a.active,
.catalog-sidebar a:hover {
    color: var(--ink);
    background: #edf7f7;
}

.catalog-main {
    min-width: 0;
}

.catalog-toolbar {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 190px auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 12px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.catalog-toolbar label,
.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--ink);
    font-weight: 750;
    font-size: 0.84rem;
}

.catalog-count {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 16px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group textarea,
.form-group input[type="file"],
.form-group select,
.catalog-toolbar input,
.catalog-toolbar select,
.reply-form textarea,
.admin-table select {
    width: 100%;
    padding: 10px 12px;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid #ccd6e0;
    border-radius: 8px;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.catalog-toolbar input:focus,
.catalog-toolbar select:focus,
.reply-form textarea:focus,
.chat-compose textarea:focus {
    outline: none;
    border-color: var(--form-focus-border);
    box-shadow: var(--form-focus-shadow);
}

.checkbox-group {
    display: flex;
    gap: 20px;
}

.form-hint {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.82rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 650;
}

.empty-state,
.empty-state-card {
    text-align: center;
    color: var(--muted);
}

.empty-state-card {
    padding: 34px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.empty-state-card .icon {
    color: var(--muted);
    margin-bottom: 8px;
}

.empty-state-card h2 {
    margin-bottom: 8px;
}

.empty-state-card .btn {
    margin-top: 18px;
}

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

.post-card {
    padding: 20px;
}

.feature-post {
    grid-column: span 2;
    background: linear-gradient(135deg, #ffffff, var(--teal-soft));
}

.post-category {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    color: var(--teal-dark);
    font-size: 0.74rem;
    font-weight: 850;
    text-transform: uppercase;
}

.post-category--media,
.post-media-meta,
.post-meta__author {
    display: none;
}

.post-meta__date,
.post-meta__reading {
    display: inline-flex;
    align-items: center;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.post-tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 9px;
    border: 1px solid rgba(23, 100, 92, 0.16);
    border-radius: 999px;
    background: rgba(232, 245, 242, 0.86);
    color: var(--teal-dark);
    font-size: 0.74rem;
    font-weight: 750;
    line-height: 1.2;
}

.post-meta {
    color: var(--muted);
    font-size: 0.84rem;
    margin: 8px 0;
}

.post-hub-shell {
    display: grid;
    gap: 22px;
}

.post-spotlight {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: stretch;
    gap: 24px;
    padding: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 245, 242, 0.78));
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(10, 43, 39, 0.08);
}

.post-spotlight__media,
.post-card__media {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(223, 236, 233, 0.9);
}

.post-spotlight__media {
    height: 100%;
    min-height: 320px;
}

.post-spotlight__media img,
.post-card__media img,
.post-detail-hero__media img,
.admin-post-preview__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-spotlight__copy {
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 30px 24px;
}

.post-spotlight__copy>.post-meta,
.post-spotlight__copy>.post-category,
.post-spotlight__copy>.post-tags {
    margin: 0;
}

.post-spotlight__copy h2,
.post-card__body h3,
.post-related__head h2 {
    margin: 0;
}

.post-spotlight__copy h2 a,
.post-card__body h3 a {
    color: inherit;
}

.post-spotlight__copy p,
.post-card__body p,
.post-detail-side__card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.post-spotlight__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
}

.editorial-grid--posts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card--entry {
    display: grid;
    gap: 0;
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 22px;
    box-shadow: 0 14px 40px rgba(10, 43, 39, 0.06);
}

.post-card__media {
    border-radius: 0;
    aspect-ratio: 1.2 / 1;
}

.post-card__body {
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    gap: 10px;
    padding: 20px;
}

.post-card__body h3 {
    font-size: 1.18rem;
    line-height: 1.16;
}

.post-excerpt {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

.post-spotlight__copy .post-excerpt {
    max-width: 32rem;
    -webkit-line-clamp: 4;
}

.post-card__body .post-excerpt {
    min-height: calc(1.7em * 4);
    -webkit-line-clamp: 4;
}

.post-excerpt--compact {
    -webkit-line-clamp: 3;
}

.post-card__body .text-link {
    margin-top: auto;
}

.post-empty-state {
    max-width: 680px;
    margin: 0 auto;
}

.post-detail-shell {
    display: grid;
    gap: 26px;
}

.post-detail-back {
    width: fit-content;
    color: var(--theme-green-dark);
    font-weight: 700;
}

.post-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.76fr);
    gap: 24px;
    align-items: stretch;
}

.post-detail-hero__copy,
.post-detail-hero__media,
.post-detail-body,
.post-detail-side__card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(10, 43, 39, 0.06);
}

.post-detail-hero__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
    padding: 30px;
}

.post-detail-hero__copy h1 {
    margin: 0;
    font-size: clamp(2.35rem, 3.2vw, 3.8rem);
    line-height: 0.98;
}

.post-detail-hero__excerpt {
    margin: 0;
    color: var(--theme-ink);
    font-size: 1.06rem;
    line-height: 1.72;
}

.post-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--muted);
    font-size: 0.88rem;
    margin: 0;
}

.post-detail-hero__copy > .post-category,
.post-detail-hero__copy > .post-tags {
    margin: 0;
}

.post-detail-hero__media {
    overflow: hidden;
    min-height: 360px;
}

.post-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

.post-detail-body {
    min-width: 0;
    padding: 30px;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.post-detail-side {
    position: sticky;
    top: calc(var(--header-height, 74px) + 18px);
}

.post-detail-side__card {
    padding: 24px;
    display: grid;
    gap: 12px;
}

.post-related {
    display: grid;
    gap: 18px;
}

.post-related__head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 14px;
}

.rte-content h1,
.rte-content h2,
.rte-content h3,
.rte-content h4 {
    margin: 1.55em 0 0.6em;
    color: var(--theme-ink);
    line-height: 1.08;
}

.rte-content h1:first-child,
.rte-content h2:first-child,
.rte-content h3:first-child,
.rte-content h4:first-child,
.rte-content p:first-child,
.rte-content ul:first-child,
.rte-content ol:first-child,
.rte-content blockquote:first-child {
    margin-top: 0;
}

.rte-content p,
.rte-content ul,
.rte-content ol,
.rte-content blockquote {
    margin: 0 0 1rem;
    color: var(--theme-ink);
    line-height: 1.8;
}

.rte-content ul,
.rte-content ol {
    padding-left: 1.2rem;
}

.rte-content blockquote {
    padding: 14px 18px;
    background: rgba(16, 132, 116, 0.08);
    border-left: 3px solid var(--theme-green);
    border-radius: 14px;
}

.rte-content a {
    color: var(--theme-green-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rte-content pre {
    max-width: 100%;
    margin: 0 0 1rem;
    padding: 16px 18px;
    overflow-x: auto;
    color: #f7f7f5;
    background: #171615;
    border-radius: 12px;
    line-height: 1.65;
}

.rte-content code {
    padding: 0.12em 0.35em;
    background: rgba(17, 17, 17, 0.07);
    border-radius: 5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
        "Courier New", monospace;
    font-size: 0.9em;
}

.rte-content pre code {
    padding: 0;
    color: inherit;
    background: transparent;
}

.rte-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1.2rem;
    overflow-x: auto;
    border-collapse: collapse;
}

.rte-content th,
.rte-content td {
    min-width: 120px;
    padding: 11px 13px;
    border: 1px solid rgba(17, 17, 17, 0.12);
    text-align: left;
    vertical-align: top;
}

.rte-content th {
    background: rgba(17, 17, 17, 0.05);
    font-weight: 750;
}

.rte-content hr {
    margin: 1.8rem 0;
    border: 0;
    border-top: 1px solid rgba(17, 17, 17, 0.14);
}

.rte-content figure,
.rte-content details {
    max-width: 100%;
    margin: 0 0 1rem;
}

.rte-content summary {
    cursor: pointer;
    font-weight: 700;
}

.post-detail-body.rte-content img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 24px auto;
    object-fit: contain;
    border-radius: 12px;
}

.post-html-embed-shell {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 16px;
}

.post-html-embed {
    display: block;
    width: 100%;
    min-height: 320px;
    background: #fff;
    border: 0;
}

.admin-product-cell--post .admin-product-cell__copy small {
    max-width: 30rem;
    display: -webkit-box;
    color: var(--muted);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-rich-editor {
    margin-top: 16px;
}

.rich-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.rich-editor-toolbar .btn-sm {
    min-height: 34px;
    padding: 7px 10px;
}

.rich-editor-surface {
    min-height: 340px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    overflow-wrap: anywhere;
}

.rich-editor-surface:focus {
    outline: none;
    border-color: rgba(16, 132, 116, 0.24);
    box-shadow: 0 0 0 4px rgba(16, 132, 116, 0.12);
}

.admin-post-preview {
    display: grid;
    gap: 16px;
}

.admin-post-preview__media {
    aspect-ratio: 1.28 / 1;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(223, 236, 233, 0.9);
}

.admin-post-preview__body {
    display: grid;
    gap: 10px;
}

.admin-post-preview__body strong {
    font-size: 1.16rem;
    line-height: 1.2;
}

.admin-post-preview__body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.admin-post-preview__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.about-content,
.value-card-list {
    padding: 24px;
}

.about-content {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.about-content p {
    color: var(--muted);
    margin-bottom: 12px;
}

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

.value-card {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.value-card .icon {
    color: var(--teal);
    margin-bottom: 4px;
}

.value-card strong,
.value-card span {
    display: block;
}

.value-card span {
    color: var(--muted);
    margin-top: 4px;
}

.contact-panel,
.form-panel {
    padding: 22px;
}

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

.contact-detail strong,
.contact-detail span {
    display: block;
}

.contact-detail span {
    color: var(--muted);
    margin-top: 2px;
}

.contact-panel .text-link {
    display: inline-block;
    margin-top: 18px;
}

.contact-form,
.admin-form {
    max-width: 760px;
}

.sku-admin-panel {
    margin: 18px 0;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

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

.sku-admin-row {
    display: grid;
    grid-template-columns: minmax(160px, 1.2fr) minmax(110px, 0.8fr) minmax(100px, 0.6fr) minmax(90px, 0.5fr);
    gap: 10px;
}

.sku-admin-row--card {
    display: block;
}

.sku-admin-row input {
    width: 100%;
    padding: 10px 12px;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid #ccd6e0;
    border-radius: 8px;
    font-size: 0.92rem;
}

.sku-admin-row input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(13, 118, 110, 0.14);
}

.service-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.service-card .icon {
    color: var(--teal);
    margin-bottom: 4px;
}

.service-card strong,
.service-card span {
    display: block;
}

.service-card span {
    color: var(--muted);
    margin-top: 6px;
}

.faq-section h2 {
    margin-bottom: 14px;
}

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

.faq-item {
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 800;
}

.faq-item p {
    color: var(--muted);
    margin-top: 9px;
    white-space: pre-line;
}

.design-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.design-header h1 {
    margin-bottom: 0;
}

.design-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.design-tools {
    padding: 18px;
}

.form-group input[type="color"] {
    height: 42px;
    padding: 4px;
}

.design-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.design-stage {
    padding: 16px;
}

.design-stage canvas {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 640 / 520;
    border: 1px solid #d1dbe5;
    border-radius: 8px;
    background: #f8fafc;
}

.design-status {
    margin-top: 10px;
    color: var(--teal-dark);
    font-weight: 750;
    font-size: 0.9rem;
}

.design-status.error {
    color: var(--danger);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, 220px));
    gap: 16px;
    margin: 18px 0 24px;
}

.stat-card {
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.stat-card .icon {
    color: var(--teal);
    margin-bottom: 4px;
}

.stat-card h3 {
    color: var(--muted);
    font-size: 0.88rem;
    margin-bottom: 8px;
}

.stat-number {
    color: var(--teal-dark);
    font-size: 2rem;
    font-weight: 850;
}

.admin-nav,
.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.admin-toolbar {
    margin-bottom: 18px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
}

.admin-table-spaced {
    margin-top: 16px;
}

.inline-form {
    display: inline;
}

.admin-table th,
.admin-table td {
    padding: 13px 15px;
    text-align: left;
    border-bottom: 1px solid #edf1f5;
}

.admin-table th {
    color: var(--muted);
    background: #f8fafc;
    font-size: 0.82rem;
    font-weight: 850;
}

.admin-table tr:hover {
    background: #f9fcfc;
}

.status {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
}

.status-active {
    color: #0b6d4f;
    background: #eaf8f1;
}

.status-inactive {
    color: #b43b27;
    background: #fff1ed;
}

.status-pending,
.status-processing {
    color: #8a5a00;
    background: #fff7db;
}

.status-shipped {
    color: #0b6d4f;
    background: #eaf8f1;
}

.status-completed {
    color: #0b696b;
    background: #edf7f7;
}

.status-cancelled {
    color: #b43b27;
    background: #fff1ed;
}

.status-neutral {
    color: #245c5a;
    background: #edf7f7;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 18px;
}

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

.order-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.order-card:hover {
    color: var(--ink);
    border-color: #b8dddd;
    box-shadow: var(--shadow-md);
}

.order-card h2 {
    margin-bottom: 4px;
}

.order-id {
    display: inline-block;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 5px;
}

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

.order-form-panel {
    max-width: 680px;
}

.order-form {
    max-width: 620px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.order-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 20px;
    align-items: start;
}

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

.order-detail-card--stacked {
    display: grid;
    gap: 20px;
}

.admin-order-grid {
    margin-top: 20px;
}

.prewrap {
    white-space: pre-wrap;
}

.tracking-box {
    margin-top: 16px;
    padding: 14px;
    background: #edf7f7;
    border: 1px solid #b8dddd;
    border-radius: 8px;
}

.tracking-box span,
.tracking-box strong {
    display: block;
}

.tracking-box span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 750;
}

.ship-form {
    margin-top: 18px;
}

.order-summary-box {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    padding: 16px;
    border-radius: 12px;
    background: #f8fbfb;
    border: 1px solid #e0ecec;
}

.order-summary-box__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
}

.order-summary-box__row strong {
    color: var(--ink);
    text-align: right;
}

.order-summary-box__row--total {
    padding-top: 12px;
    border-top: 1px solid #e0ecec;
}

.order-summary-box__row--total strong {
    color: var(--teal-dark);
    font-size: 1.08rem;
}

.resume-payment-form {
    margin-top: 16px;
}

.break-anywhere {
    overflow-wrap: anywhere;
}

.site-chat {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 300;
}

.site-chat-toggle {
    position: relative;
    min-width: 48px;
    width: 48px;
    height: 48px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff;
    background: var(--forest);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    box-shadow: 0 16px 42px rgba(18, 24, 32, 0.22);
    cursor: pointer;
    font: inherit;
    font-weight: 850;
    transition:
        background 0.22s ease,
        transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.24s ease;
}

.site-chat-toggle__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.site-chat-toggle__icon--close,
.site-chat-toggle[aria-expanded="true"] .site-chat-toggle__icon--chat {
    display: none;
}

.site-chat-toggle[aria-expanded="true"] .site-chat-toggle__icon--close {
    display: inline-flex;
}

.site-chat-toggle__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    pointer-events: none;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #d43f58;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(212, 63, 88, 0.34);
}

.site-chat-toggle__badge[hidden] {
    display: none !important;
}

.site-chat.has-unread .site-chat-toggle {
    animation: chat-attention-pulse 1.8s ease-in-out infinite;
}

.site-chat-toggle:hover {
    background: #0f1d18;
}

.site-chat.is-open .site-chat-toggle,
.site-chat.is-opening .site-chat-toggle {
    transform: translateY(-2px) scale(0.985);
    box-shadow: 0 22px 48px rgba(18, 24, 32, 0.26);
}

.site-chat-panel {
    position: absolute;
    right: 0;
    bottom: 58px;
    width: min(380px, calc(100vw - 28px));
    height: min(620px, calc(100dvh - 110px));
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 20px;
    box-shadow: 0 28px 76px rgba(18, 24, 32, 0.24);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, 18px, 0) scale(0.975);
    transform-origin: bottom right;
    transition:
        opacity 0.2s ease,
        transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.2s ease;
}

.site-chat-panel[hidden] {
    display: none;
}

.site-chat.is-open .site-chat-panel,
.site-chat.is-opening .site-chat-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
}

.site-chat.is-closing .site-chat-panel {
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    transform: translate3d(0, 14px, 0) scale(0.982);
}

.site-chat-header {
    grid-row: 1;
    padding: 16px 16px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #ffffff;
    background:
        linear-gradient(180deg, rgba(17, 32, 29, 0.98), rgba(14, 27, 24, 0.96));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-chat-header__copy {
    min-width: 0;
}

.site-chat-header strong,
.site-chat-header span,
.site-chat-admin-note strong,
.site-chat-admin-note span,
.site-chat-guest strong,
.site-chat-guest span {
    display: block;
}

.site-chat-header span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #b9cfc8;
    font-size: 0.78rem;
}

.site-chat-header span::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(185, 207, 200, 0.55);
}

.site-chat.has-support-online .site-chat-header span::before {
    background: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
}

.site-chat-close {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.site-chat-close:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.site-chat-messages {
    grid-row: 3;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 14px 10px;
    background:
        linear-gradient(180deg, #f8fbfb 0%, #f4f7f8 100%);
    scrollbar-gutter: stable;
}

.site-chat-messages .empty-state {
    min-height: 100%;
    display: grid;
    place-items: center;
    padding: 16px;
    text-align: center;
    color: rgba(21, 34, 31, 0.58);
}

.site-chat-messages .chat-bubble {
    max-width: min(84%, 280px);
    padding: 11px 12px;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(18, 24, 32, 0.06);
}

.site-chat-messages .chat-bubble strong {
    font-size: 0.78rem;
}

.site-chat-messages .chat-bubble span {
    font-size: 0.72rem;
}

.site-chat-messages .chat-bubble p {
    margin: 2px 0;
}

.chat-date-separator {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 8px 0 6px;
    color: rgba(21, 34, 31, 0.56);
    font-size: 0.7rem;
    line-height: 1;
}

.chat-date-separator::before,
.chat-date-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(21, 34, 31, 0.12);
}

.chat-date-separator:first-child {
    margin-top: 0;
}

.chat-date-separator time {
    white-space: nowrap;
}

.site-chat-footer {
    grid-row: 5;
    display: grid;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.site-chat-compose {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 30.6px;
    gap: 8px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fbfdff;
    box-shadow: none;
}

.site-chat-compose .btn-sm {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    width: 30.6px;
    height: 30.6px;
    min-height: 30.6px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(16, 132, 116, 0.22);
}

.site-chat-compose textarea {
    grid-column: 1 / -1;
    grid-row: 1;
    box-sizing: border-box;
    width: 100%;
    min-height: 56px;
    max-height: 104px;
    padding: 4px 5px;
    overflow-y: auto;
    resize: none;
    border: 0;
    border-radius: 0;
    font: inherit;
    line-height: 1.45;
    background: transparent;
    box-shadow: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.site-chat-compose textarea::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.site-chat-compose textarea:focus {
    outline: none;
    border: 0;
    box-shadow: none;
}

.site-chat-admin-note,
.site-chat-guest {
    padding: 14px 16px;
    display: grid;
    gap: 8px;
    background: linear-gradient(180deg, rgba(237, 247, 247, 0.96), rgba(247, 250, 249, 0.98));
    border-bottom: 1px solid rgba(17, 17, 17, 0.07);
}

.site-chat-admin-note {
    grid-row: 2;
}

.site-chat-guest {
    grid-row: 2 / -1;
    align-content: center;
}

.site-chat-panel>.chat-typing-status {
    grid-row: 4;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.94);
}

.site-chat-admin-note span,
.site-chat-guest span {
    color: var(--muted);
    font-size: 0.86rem;
}

.site-chat-admin-note .btn-sm,
.site-chat-guest .btn {
    justify-self: start;
}

.admin-chat-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.chat-window {
    height: auto;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.chat-message-row {
    width: fit-content;
    max-width: min(78%, 560px);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.chat-message-row.from-user {
    align-self: flex-end;
    align-items: flex-start;
}

.chat-message-row.from-admin {
    align-self: flex-start;
    align-items: flex-start;
}

.site-chat-messages .chat-message-row {
    max-width: min(84%, 280px);
    flex-direction: row;
    align-items: flex-end;
    gap: 6px;
}

.site-chat-messages .chat-message-row .chat-bubble {
    width: auto;
}

.site-chat-messages .chat-message-state {
    flex: 0 0 16px;
    align-self: flex-end;
    margin: 0 0 2px;
}

.site-chat-messages .chat-read-state.is-read {
    color: #aeb7c0;
}

.chat-message-row .chat-bubble {
    width: 100%;
    max-width: 100%;
}

.chat-message-state {
    min-height: 16px;
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
}

.chat-bubble.from-admin.is-unread {
    position: relative;
}

.chat-bubble.from-admin.is-unread::after {
    content: '';
    position: absolute;
    top: 10px;
    right: -5px;
    width: 9px;
    height: 9px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.chat-bubble {
    max-width: min(78%, 560px);
    min-width: 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.chat-bubble.from-user {
    align-self: flex-end;
    color: #ffffff;
    background: var(--teal);
    border-color: var(--teal);
}

.chat-bubble.from-user span,
.chat-bubble.from-user p {
    color: #eefafa;
}

.chat-bubble.from-admin {
    align-self: flex-start;
}

.chat-bubble p {
    margin: 4px 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.chat-bubble p a {
    color: inherit;
    font-weight: 700;
    word-break: break-all;
}

.chat-bubble span {
    color: var(--muted);
    font-size: 0.75rem;
}

.chat-message-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.chat-message-meta span {
    margin: 0;
}

.chat-read-state {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(21, 34, 31, 0.46);
}

.chat-read-state .icon {
    width: 14px;
    height: 14px;
}

.chat-read-state.is-read {
    color: var(--teal-dark);
}

.chat-read-state.is-unread {
    color: rgba(21, 34, 31, 0.42);
}

.chat-typing-status {
    margin: 0;
    min-height: 20px;
    display: flex;
    align-items: center;
    color: var(--teal-dark);
    font-size: 0.82rem;
    font-weight: 800;
}

.chat-typing-status[hidden] {
    display: none;
}

.chat-compose {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 12px;
}

.chat-compose textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccd6e0;
    border-radius: 8px;
    resize: vertical;
    font-size: 0.95rem;
}

.chat-status {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.85rem;
}

@keyframes chat-attention-pulse {

    0%,
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 16px 42px rgba(18, 24, 32, 0.22);
    }

    50% {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 22px 50px rgba(16, 132, 116, 0.3);
    }
}

.admin-chat-quickreplies {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-chat-composer__shortcuts {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-chat-quickreply {
    min-height: 26px;
    padding: 0 9px;
    border: 1px solid rgba(19, 53, 50, 0.1);
    border-radius: 6px;
    background: rgba(244, 248, 247, 0.98);
    color: rgba(21, 34, 31, 0.78);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.admin-chat-quickreply:hover {
    background: rgba(233, 243, 241, 1);
}

.admin-chat-manage-quickreplies {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 9px;
    border: 1px solid rgba(16, 132, 116, 0.18);
    border-radius: 6px;
    background: rgba(237, 247, 247, 0.92);
    color: var(--teal-dark);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 850;
    cursor: pointer;
}

.admin-chat-manage-quickreplies:hover {
    background: rgba(220, 240, 238, 0.98);
}

.admin-chat-shell {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.admin-chat-layout {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    min-height: 0;
    height: 100%;
    gap: 0;
    align-items: stretch;
    overflow: hidden;
}

.chat-session-list {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    align-content: stretch;
    gap: 8px;
    padding: 12px;
    background: #f7faf9;
    border-right: 1px solid var(--line);
}

.admin-chat-tools {
    display: grid;
    gap: 8px;
    margin-bottom: 2px;
}

.admin-search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(19, 53, 50, 0.11);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
}

.admin-search-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--ink);
    font: inherit;
}

.admin-filter-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(19, 53, 50, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: rgba(21, 34, 31, 0.72);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.admin-filter-pill.active {
    color: #ffffff;
    background: var(--teal);
    border-color: var(--teal);
    box-shadow: 0 12px 24px rgba(22, 121, 111, 0.18);
}

.chat-session-stack {
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
    scrollbar-gutter: stable;
}

.chat-session-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 850;
}

.chat-session {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 12px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.chat-session:hover,
.chat-session.active {
    color: var(--ink);
    border-color: #b8dddd;
    background: #edf7f7;
}

.chat-session strong,
.chat-session span,
.chat-session em {
    display: block;
}

.chat-session__topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.chat-session__topline strong {
    min-width: 0;
    flex: 1 1 auto;
}

.chat-session__topline em {
    flex: 0 0 auto;
}

.chat-session-unread-badge {
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    flex: 0 0 auto;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-top: 0 !important;
    border-radius: 999px;
    color: #ffffff !important;
    background: #ef4444;
    font-size: 0.74rem !important;
    font-weight: 950;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.22);
}

.chat-session-presence {
    flex: 0 0 auto;
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    margin-top: 2px !important;
    color: rgba(21, 34, 31, 0.5) !important;
    font-size: 0.74rem !important;
    font-weight: 850;
    white-space: nowrap;
}

.chat-session-presence::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(21, 34, 31, 0.28);
}

.chat-session.is-online .chat-session-presence {
    color: var(--teal-dark) !important;
}

.chat-session.is-online .chat-session-presence::before {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.chat-session span {
    color: var(--muted);
    font-size: 0.8rem;
    margin-top: 2px;
}

.chat-session-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    min-width: 0;
}

.chat-session-preview {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.chat-session.is-typing .chat-session-preview {
    color: var(--teal-dark);
    font-weight: 850;
}

.chat-session-meta span {
    min-width: 0;
    margin-top: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-session-time {
    flex: 1 1 auto;
}

.chat-session-operator {
    flex: 0 1 auto;
    justify-content: flex-end;
    max-width: 48%;
    padding: 2px 7px;
    border: 1px solid rgba(16, 132, 116, 0.12);
    border-radius: 999px;
    background: rgba(237, 247, 247, 0.92);
    color: var(--teal-dark) !important;
    font-weight: 850;
    text-align: right;
}

.chat-session-operator.is-unassigned {
    color: rgba(21, 34, 31, 0.55) !important;
    background: rgba(241, 244, 244, 0.92);
}

.chat-session em {
    color: var(--teal-dark);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 800;
    margin-top: 5px;
}

.admin-chat-tools .admin-filter-pill {
    gap: 6px;
}

.admin-chat-tools .admin-filter-pill span {
    min-width: 20px;
    min-height: 20px;
    display: inline-grid;
    place-items: center;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(19, 53, 50, 0.08);
    font-size: 0.76rem;
    line-height: 1;
}

.admin-chat-tools .admin-filter-pill.active span {
    background: rgba(255, 255, 255, 0.24);
}

.admin-chat-panel {
    min-height: 0;
    height: 100%;
    padding: 12px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    gap: 8px;
    overflow: hidden;
    border: 0;
    box-shadow: none;
}

.admin-chat-panel .empty-state-card {
    grid-row: 1 / -1;
    height: 100%;
    min-height: 0;
}

.admin-chat-panel .chat-window {
    grid-row: 2;
    min-height: 0;
    height: auto;
    overflow-y: auto;
    padding: 12px;
    gap: 8px;
    scrollbar-gutter: stable;
}

.admin-chat-panel .chat-typing-status {
    grid-row: 3;
    padding: 0 4px;
}

.admin-chat-composer {
    grid-row: 4;
    display: grid;
    gap: 7px;
    padding: 9px;
    border: 1px solid rgba(19, 53, 50, 0.10);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
}

.admin-chat-panel .chat-compose {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: stretch;
    margin-top: 0;
}

.chat-compose__actions {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 6px;
    min-width: 78px;
}

.admin-chat-panel .chat-compose textarea {
    min-height: 90px;
    max-height: 132px;
    padding: 8px 10px;
    resize: vertical;
    line-height: 1.35;
    font-size: 0.88rem;
}

.admin-chat-panel .chat-compose .btn {
    min-width: 78px;
    min-height: 42px;
    padding: 0 12px;
}

.admin-chat-panel .chat-compose .btn-quiet {
    color: rgba(21, 34, 31, 0.68);
    background: rgba(244, 248, 247, 0.94);
    border-color: rgba(19, 53, 50, 0.12);
    box-shadow: none;
}

.admin-chat-composer__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.admin-chat-composer__meta .chat-status {
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
}

.admin-context-card {
    grid-row: 1;
    margin-bottom: 0;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: linear-gradient(180deg, rgba(247, 250, 249, 0.98), rgba(239, 246, 245, 0.92));
    border: 1px solid rgba(19, 53, 50, 0.1);
    border-radius: 14px;
}

.admin-context-card>div {
    min-width: 0;
    flex: 1 1 320px;
}

.admin-context-card p {
    margin: 4px 0 0;
    color: rgba(21, 34, 31, 0.62);
    overflow-wrap: anywhere;
}

.admin-chat-quickreply-modal[hidden] {
    display: none;
}

.admin-chat-quickreply-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 20px;
}

.admin-chat-quickreply-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 24, 22, 0.48);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.admin-chat-quickreply-modal__dialog {
    position: relative;
    width: min(920px, calc(100vw - 32px));
    max-height: min(760px, calc(100dvh - 32px));
    min-width: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(19, 53, 50, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 28px 80px rgba(10, 18, 16, 0.24);
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition: opacity 160ms ease, transform 160ms ease;
}

.admin-chat-quickreply-modal.is-open .admin-chat-quickreply-modal__dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.admin-chat-quickreply-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(19, 53, 50, 0.10);
}

.admin-chat-quickreply-modal__header h3 {
    margin: 2px 0 0;
    font-size: 1.2rem;
}

.admin-chat-quickreply-modal__close {
    width: 34px;
    min-width: 34px;
    padding: 0;
}

.admin-chat-quickreply-form {
    display: grid;
    grid-template-columns: minmax(180px, 0.72fr) minmax(0, 1.4fr) auto;
    gap: 10px;
    align-items: end;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(19, 53, 50, 0.08);
    background: rgba(248, 251, 250, 0.94);
}

.admin-chat-quickreply-form label {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.admin-chat-quickreply-form label span {
    color: rgba(21, 34, 31, 0.62);
    font-size: 0.76rem;
    font-weight: 850;
}

.admin-chat-quickreply-form input,
.admin-chat-quickreply-form textarea {
    width: 100%;
    border: 1px solid rgba(19, 53, 50, 0.12);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
}

.admin-chat-quickreply-form input {
    min-height: 38px;
    padding: 0 10px;
}

.admin-chat-quickreply-form textarea {
    min-height: 38px;
    max-height: 112px;
    padding: 9px 10px;
    resize: vertical;
}

.admin-chat-quickreply-form__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-chat-quickreply-status {
    color: var(--teal-dark);
    font-size: 0.78rem;
    font-weight: 850;
    white-space: nowrap;
}

.admin-chat-quickreply-status.is-floating-success {
    position: fixed;
    top: calc(var(--header-height, 56px) + 10px);
    right: 18px;
    z-index: 30000;
    min-height: 34px;
    width: fit-content;
    max-width: min(180px, calc(100vw - 32px));
    margin: 0;
    padding: 7px 12px;
    display: inline-flex;
    align-items: center;
    color: #075c43;
    background: rgba(234, 248, 241, 0.96);
    border: 1px solid rgba(12, 126, 90, 0.22);
    border-radius: 999px;
    box-shadow: 0 16px 34px rgba(18, 32, 28, 0.18);
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
    animation: adminFloatingFlash 3.2s ease forwards;
}

.admin-chat-quickreply-status.is-error {
    color: var(--danger);
}

.admin-chat-quickreply-table-wrap {
    min-height: 0;
    overflow: auto;
    padding: 0 16px 16px;
}

.admin-chat-quickreply-table.admin-table-spaced {
    margin-top: 14px;
}

.admin-chat-quickreply-table tbody tr {
    transition: background 120ms ease, box-shadow 120ms ease;
}

.admin-chat-quickreply-table tbody tr.is-dragging {
    opacity: 0.58;
    background: rgba(237, 247, 247, 0.92);
}

.admin-chat-quickreply-drag {
    width: 30px;
    min-width: 30px;
    min-height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(21, 34, 31, 0.55);
    background: rgba(248, 251, 250, 0.96);
    border: 1px dashed rgba(19, 53, 50, 0.16);
    border-radius: 6px;
    cursor: grab;
}

.admin-chat-quickreply-drag:active {
    cursor: grabbing;
}

.admin-chat-quickreply-drag .icon {
    pointer-events: none;
}

.admin-chat-quickreply-preview {
    max-width: 460px;
    display: -webkit-box;
    overflow: hidden;
    color: rgba(21, 34, 31, 0.72);
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.admin-chat-quickreply-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-chat-quickreply-empty {
    color: rgba(21, 34, 31, 0.54);
    text-align: center !important;
}

.message-list {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.message-card {
    padding: 18px;
}

.message-card.unread {
    border-left: 4px solid var(--teal);
}

.message-card.replied {
    border-left: 4px solid var(--teal-dark);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.message-body {
    color: var(--ink);
    white-space: pre-wrap;
    margin-bottom: 12px;
}

.reply-box {
    padding: 10px 12px;
    color: #0b6d4f;
    background: #eaf8f1;
    border-radius: 8px;
}

.reply-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
}

.alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-weight: 700;
}

.alert-success {
    color: #0b6d4f;
    background: #eaf8f1;
    border: 1px solid #bdebd6;
}

.is-admin-shell .alert.alert-success {
    position: fixed;
    top: calc(var(--header-height, 56px) + 10px);
    right: 18px;
    z-index: 30000;
    min-height: 34px;
    width: fit-content;
    max-width: min(180px, calc(100vw - 32px));
    margin: 0;
    padding: 7px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #075c43;
    background: rgba(234, 248, 241, 0.96);
    border-color: rgba(12, 126, 90, 0.22);
    border-radius: 999px;
    box-shadow: 0 16px 34px rgba(18, 32, 28, 0.18);
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
    animation: adminFloatingFlash 3.2s ease forwards;
}

.is-admin-shell .alert.alert-success .icon {
    width: 15px;
    height: 15px;
}

@keyframes adminFloatingFlash {
    0% {
        opacity: 0;
        transform: translateY(-8px);
    }

    12%,
    78% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
    }
}

.alert-error {
    color: #b43b27;
    background: #fff1ed;
    border: 1px solid #ffd0c3;
}

.alert-warning {
    color: #8a5a00;
    background: #fff7db;
    border: 1px solid #f0d78d;
}

body.auth-modal-open {
    position: fixed;
    top: var(--auth-modal-scroll-offset, 0);
    right: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    overscroll-behavior: none;
}

html {
    scrollbar-gutter: stable;
}

.auth-modal-shell {
    position: fixed;
    inset: 0;
    z-index: 420;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 3vw, 24px);
    overflow: hidden;
    overscroll-behavior: contain;
    pointer-events: none;
}

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

.auth-modal-shell.is-open,
.auth-modal-shell.is-closing {
    pointer-events: auto;
}

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 31, 28, 0.42);
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.auth-modal-card {
    position: relative;
    isolation: isolate;
    width: min(calc(100vw - 24px), 540px);
    max-width: 100%;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    margin: auto;
    padding: 26px 28px 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.64)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(247, 246, 242, 0.22));
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 26px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.86),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2),
        0 32px 92px rgba(16, 31, 28, 0.24);
    backdrop-filter: blur(34px) saturate(180%) contrast(1.04);
    -webkit-backdrop-filter: blur(34px) saturate(180%) contrast(1.04);
    opacity: 0;
    transform: translateY(28px) scale(0.98);
    transition:
        opacity 0.22s ease,
        height 0.36s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: height, opacity, transform;
}

.auth-modal-card::before,
.auth-modal-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

.auth-modal-card::before {
    background:
        linear-gradient(110deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.08) 44%, rgba(16, 132, 116, 0.07)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
    opacity: 0.78;
}

.auth-modal-card::after {
    inset: 1px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.16);
}

.auth-modal-card>* {
    position: relative;
    z-index: 1;
}

.auth-modal-card.is-resizing {
    overflow: hidden;
}

/* 容器接收打开时的焦点，焦点提示由内部表单控件提供。 */
.auth-modal-card:focus {
    outline: none;
}

.auth-modal-shell[data-auth-mode="join"] .auth-modal-card {
    width: min(100% - 24px, 560px);
}

.auth-modal-shell.is-open .auth-modal-backdrop {
    opacity: 1;
}

.auth-modal-shell.is-open .auth-modal-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.auth-modal-shell.is-closing .auth-modal-backdrop {
    opacity: 0;
}

.auth-modal-shell.is-closing .auth-modal-card {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
}

.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    background: rgba(16, 132, 116, 0.08);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.auth-modal-close:hover {
    color: #ffffff;
    background: var(--theme-green);
    transform: translateY(-1px);
}

.auth-modal-head {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    transition:
        opacity 0.18s ease,
        filter 0.18s ease,
        transform 0.18s ease;
}

.auth-modal-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 0 11px;
    color: var(--theme-green-dark);
    background: rgba(16, 132, 116, 0.1);
    border: 1px solid rgba(16, 132, 116, 0.12);
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-modal-head h2 {
    position: relative;
    margin: 0;
    width: fit-content;
    padding-bottom: 8px;
    font-size: clamp(2rem, 2.4vw, 2.6rem);
    line-height: 0.98;
}

.auth-modal-head h2::after {
    content: "";
    position: absolute;
    left: 1px;
    bottom: 0;
    width: 34px;
    height: 3px;
    background: var(--theme-green);
    border-radius: 999px;
}

.auth-modal-subtitle {
    max-width: 31rem;
    margin: 0;
    color: var(--theme-muted);
    font-size: 0.92rem;
    line-height: 1.56;
}

.auth-modal-tabs {
    padding: 4px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    background: rgba(16, 132, 116, 0.08);
    border-radius: 999px;
}

.auth-modal-tab {
    min-height: 40px;
    padding: 0 14px;
    color: var(--theme-muted);
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    transition: background 0.24s ease, color 0.24s ease, transform 0.24s ease;
}

.auth-modal-tab.is-active {
    color: #ffffff;
    background: var(--theme-green);
    box-shadow: 0 10px 28px rgba(16, 132, 116, 0.24);
}

.auth-modal-panels {
    margin-top: 16px;
    transition:
        opacity 0.18s ease,
        filter 0.18s ease,
        transform 0.18s ease;
}

.auth-modal-shell.is-switching .auth-modal-head,
.auth-modal-shell.is-switching .auth-modal-panels {
    opacity: 0.42;
    filter: blur(5px);
    transform: translateY(4px);
}

.auth-modal-panel {
    display: grid;
    gap: 14px;
}

.auth-modal-panel[hidden] {
    display: none !important;
}

.auth-modal-copy {
    padding: 16px 18px;
    background:
        linear-gradient(180deg, rgba(16, 132, 116, 0.09), rgba(16, 132, 116, 0.03)),
        rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(16, 132, 116, 0.12);
    border-radius: 18px;
}

.auth-modal-copy strong {
    display: block;
    margin-bottom: 6px;
    color: #111111;
    font-size: 1rem;
}

.auth-modal-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.6;
}

.auth-modal-alert {
    margin-bottom: 0;
}

.auth-modal-form {
    display: grid;
    gap: 12px;
}

.auth-modal-panel[data-auth-panel="join"] .auth-modal-form {
    grid-template-columns: 1fr;
}

.auth-modal-panel[data-auth-panel="join"] .auth-captcha,
.auth-modal-panel[data-auth-panel="join"] .auth-modal-submit {
    grid-column: 1 / -1;
}

.auth-modal-field {
    margin-bottom: 0;
}

.auth-modal-field label:not(.sr-only) {
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--theme-ink);
    font-size: 0.88rem;
    font-weight: 820;
}

.auth-modal-field label:not(.sr-only) .icon {
    color: var(--theme-green);
    stroke-width: 2.4;
}

.auth-field-control {
    min-height: 50px;
    padding: 0 14px;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    color: var(--theme-ink);
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(19, 53, 50, 0.1);
    border-radius: 16px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.74),
        0 6px 20px rgba(10, 43, 39, 0.04);
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.auth-field-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(16, 132, 116, 0.9);
}

.auth-field-control:focus-within {
    border-color: var(--theme-green);
    background: #ffffff;
    box-shadow:
        0 0 0 4px rgba(16, 132, 116, 0.12),
        0 14px 28px rgba(10, 43, 39, 0.08);
    transform: translateY(-1px);
}

.auth-modal-form .form-group input[type="text"],
.auth-modal-form .form-group input[type="email"],
.auth-modal-form .form-group input[type="password"] {
    min-height: 48px;
    padding: 0;
    color: var(--theme-ink);
    background: transparent;
    border: 0;
    border-bottom: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 1rem;
    font-weight: 720;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.auth-modal-form .form-group input[type="text"]:hover,
.auth-modal-form .form-group input[type="email"]:hover,
.auth-modal-form .form-group input[type="password"]:hover {
    border-color: transparent;
}

.auth-modal-form .form-group input[type="text"]:focus,
.auth-modal-form .form-group input[type="email"]:focus,
.auth-modal-form .form-group input[type="password"]:focus {
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

.auth-modal-form .form-group input::placeholder {
    color: rgba(23, 22, 21, 0.46);
    font-weight: 650;
}

.auth-modal-submit {
    min-height: 50px;
    margin-top: 2px;
    box-shadow: 0 18px 34px rgba(16, 132, 116, 0.2);
}

.auth-modal-submit[disabled] {
    opacity: 0.78;
    cursor: wait;
}

.auth-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0 4px;
    font-size: 0.86rem;
    color: var(--theme-muted);
}

.auth-remember-me {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--theme-ink);
}

.auth-remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    border-radius: 4px;
    accent-color: var(--theme-green);
    cursor: pointer;
}

.auth-forgot-link {
    color: var(--theme-green);
    font-weight: 700;
    font-size: 0.86rem;
    text-decoration: none;
    transition: opacity 0.18s ease, color 0.18s ease;
}

.auth-forgot-link:hover {
    text-decoration: underline;
    opacity: 0.85;
}

.auth-login-mode-footer {
    margin-top: 6px;
    text-align: center;
}

.auth-login-mode-toggle {
    background: transparent;
    border: none;
    padding: 6px 12px;
    color: var(--theme-muted);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.18s ease, text-decoration 0.18s ease;
}

.auth-login-mode-toggle:hover {
    color: var(--theme-green);
    text-decoration: underline;
}

.auth-modal-shell[data-auth-mode="forgot"] .auth-modal-tabs {
    display: none;
}

.auth-reset-form,
.auth-reset-step {
    display: grid;
    gap: 12px;
}

.auth-reset-step[hidden] {
    display: none;
}

.auth-reset-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.auth-reset-actions .auth-modal-submit {
    width: 100%;
    margin: 0;
}

.auth-reset-secondary,
.auth-reset-back {
    min-height: 44px;
    padding: 6px 10px;
    color: var(--theme-green);
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 750;
    cursor: pointer;
}

.auth-reset-secondary:hover,
.auth-reset-back:hover {
    text-decoration: underline;
}

.auth-reset-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2.5px;
    justify-self: center;
}

.auth-reset-status {
    margin: 0;
    padding: 10px 12px;
    color: #0d6b5e;
    background: rgba(16, 132, 116, 0.09);
    border: 1px solid rgba(16, 132, 116, 0.16);
    border-radius: 12px;
    font-size: 0.82rem;
    line-height: 1.5;
}

.auth-captcha {
    padding: 0;
    background: transparent;
    border: none;
}

.auth-captcha__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 196px;
    gap: 12px;
    align-items: end;
}

.auth-captcha__input {
    min-width: 0;
}

.auth-captcha__visual {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 10px;
    align-items: center;
}

.auth-captcha__image {
    min-height: 52px;
    min-width: 0;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid rgba(16, 132, 116, 0.14);
    border-radius: 8px;
}

.auth-captcha__image svg {
    width: 100%;
    height: 42px;
}

.auth-captcha__refresh {
    width: 44px;
    height: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-ink);
    background: #ffffff;
    border: 1px solid rgba(16, 132, 116, 0.16);
    border-radius: 8px;
    cursor: pointer;
    transition:
        background 0.18s ease,
        transform 0.18s ease,
        border-color 0.18s ease;
}

.auth-captcha__refresh:hover {
    color: #ffffff;
    background: var(--theme-green);
    border-color: rgba(16, 132, 116, 0.22);
    transform: translateY(-1px);
}

.auth-captcha__hint {
    margin: 10px 0 0;
    color: var(--theme-muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.auth-email-code {
    padding: 0;
    background: transparent;
    border: none;
}

.auth-email-code__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.auth-email-code__input {
    min-width: 0;
}

.auth-email-code__send {
    min-height: 50px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--theme-green);
    border: 1px solid rgba(16, 132, 116, 0.22);
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition:
        background 0.18s ease,
        transform 0.18s ease,
        opacity 0.18s ease;
}

.auth-email-code__send:hover {
    background: #0d6b5e;
    transform: translateY(-1px);
}

.auth-email-code__send[disabled] {
    opacity: 0.72;
    cursor: wait;
    transform: none;
}

.verification-code-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.verification-code-button:disabled {
    cursor: default;
}

.verification-code-button.is-sending-code::before {
    content: '';
    width: 14px;
    height: 14px;
    flex: none;
    box-sizing: border-box;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: verification-code-spin 700ms linear infinite;
}

@keyframes verification-code-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .verification-code-button.is-sending-code::before {
        animation: none;
    }
}

.auth-email-code__hint {
    margin: 10px 0 0;
    color: var(--theme-muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

/* 错误页不使用首屏图片，取消导航为首屏叠加预留的负边距。 */
.junco-template-theme.has-template-hero:has(main > .error-page) > .lumo-header {
    margin-bottom: 0;
}

.junco-template-theme main.container:has(> .error-page) {
    display: grid;
    align-items: center;
    padding-block: 60px;
}

.error-page {
    display: flex;
    justify-content: center;
    margin-bottom: 0;
}

.error-box {
    width: min(100%, 520px);
    padding: 34px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.error-box .icon {
    color: var(--muted);
    margin-bottom: 8px;
}

.error-box h1 {
    color: var(--muted);
    font-size: 2.6rem;
    margin-bottom: 10px;
}

.error-box p {
    color: var(--muted);
    margin-bottom: 20px;
}

.error-page--not-found {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    min-width: 0;
}

.error-page--not-found .error-box {
    width: 100%;
    max-width: 720px;
    box-sizing: border-box;
}

.error-search {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.error-search .error-search__field {
    flex: 1;
    min-width: 0;
}

.error-search .icon { margin: 0; }
.error-search .btn {
    flex: 0 0 auto;
    min-height: 38px;
    height: 38px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--theme-green);
}
.error-search .btn:hover { background: var(--theme-green-dark); }

.error-search input[type="search"] {
    flex: 1;
    min-width: 0;
    width: 0;
    margin: 0;
}

.error-recovery {
    display: grid;
    gap: 36px;
    width: 100%;
    min-width: 0;
}

.error-recovery-section { min-width: 0; }
.error-recovery-section h2 { margin: 0 0 20px; text-align: left; }
.error-categories { display: flex; gap: 12px; overflow-x: auto; padding: 4px; }
.error-categories .btn { flex: 0 0 auto; white-space: nowrap; }
.error-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    padding: 4px;
}
.error-home { text-align: center; }

@media (max-width: 900px) {
    .error-products {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: minmax(240px, 40%);
        overflow-x: auto;
    }
}

@media (max-width: 640px) {
    .error-page--not-found .error-box { padding: 24px 16px; }
    .error-search { gap: 8px; }
    .error-categories { flex-wrap: wrap; gap: 8px; overflow-x: visible; }
    .error-categories .btn {
        max-width: 100%;
        min-height: 36px;
        padding: 8px 12px;
        font-size: 0.8rem;
        line-height: 1.3;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .error-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-flow: row;
        grid-auto-columns: auto;
        gap: 16px 12px;
        overflow-x: visible;
    }
}

@media (max-width: 980px) {

    .post-spotlight,
    .post-detail-hero,
    .post-detail-layout {
        grid-template-columns: 1fr;
    }

    .post-detail-side {
        position: static;
    }

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

    .post-spotlight__media,
    .post-detail-hero__media {
        min-height: 280px;
    }

    .post-detail-hero__copy,
    .post-detail-body,
    .post-detail-side__card {
        padding: 24px;
    }

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

    .top-strip {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .header-inner {
        height: auto;
        min-height: 66px;
        flex-wrap: wrap;
        padding-top: 10px;
        padding-bottom: 10px;
    }

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

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .user-menu-panel {
        left: 0;
        right: auto;
    }

    .home-hero {
        min-height: 480px;
    }

    .home-hero h1 {
        font-size: 2.7rem;
    }

    .hero-merch-card {
        position: relative;
        right: auto;
        bottom: auto;
        width: min(100%, 420px);
        margin: 28px auto 0;
    }

    .template-home-hero {
        display: block;
    }

    .service-row,
    .service-grid,
    .stats-band,
    .editorial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .template-trust-bar,
    .template-collection-grid,
    .route-edit-grid,
    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .collection-card.large {
        grid-row: span 1;
        min-height: 260px;
    }

    .footer-newsletter {
        grid-column: 1 / -1;
    }

    .promo-panel,
    .split-section,
    .about-grid,
    .contact-layout,
    .catalog-layout,
    .order-detail-grid,
    .admin-chat-layout,
    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .admin-chat-layout {
        grid-template-rows: minmax(180px, 28%) minmax(0, 1fr);
    }

    .chat-session-list {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .cart-summary,
    .checkout-summary {
        position: static;
    }

    .catalog-sidebar {
        position: static;
    }

    .catalog-toolbar {
        grid-template-columns: 1fr;
    }

    .sku-admin-row {
        grid-template-columns: 1fr 1fr;
    }

    .design-shell {
        grid-template-columns: 1fr;
    }

    .admin-directory-tools {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .admin-search-field--wide {
        max-width: none;
    }

    .admin-context-card {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .admin-chat-quickreply-form__message,
    .admin-chat-quickreply-form__actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 20px 14px 34px;
    }

    .top-strip {
        gap: 16px;
        font-size: 0.72rem;
    }

    .shop-rail {
        grid-template-columns: 1fr;
        padding-left: 14px;
        padding-right: 14px;
    }

    .shop-rail a {
        min-height: 40px;
    }

    .auth-area {
        width: 100%;
        justify-content: flex-start;
    }

    .home-hero {
        margin-left: -14px;
        margin-right: -14px;
        min-height: 430px;
        padding: 52px 16px 38px;
        background-position: 62% center;
    }

    .home-hero h1 {
        font-size: 2.15rem;
    }

    .hero-proof-row {
        gap: 6px;
    }

    .hero-merch-card {
        width: 100%;
        margin-top: 22px;
    }

    .page-hero {
        margin-left: -14px;
        margin-right: -14px;
        padding: 24px 18px;
    }

    .section h1 {
        font-size: 1.65rem;
    }

    .section-heading-row,
    .catalog-count,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-strip,
    .template-trust-bar,
    .template-collection-grid,
    .route-edit-grid,
    .service-row,
    .service-grid,
    .stats-band,
    .editorial-grid,
    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .collection-card,
    .collection-card.large {
        min-height: 190px;
    }

    .collection-card.large strong {
        font-size: 1.45rem;
    }

    .footer-nav,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .feature-post {
        grid-column: span 1;
    }

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

    .compact-panel {
        grid-template-columns: 1fr;
    }

    .promo-panel {
        padding: 22px;
    }

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

    .order-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .chat-compose {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 60px minmax(0, 1fr);
        gap: 12px;
    }

    .cart-item-actions {
        grid-column: span 2;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .admin-table {
        display: block;
        overflow-x: auto;
    }

    .sku-admin-row {
        grid-template-columns: 1fr;
    }

    .site-chat {
        right: max(14px, env(safe-area-inset-right, 0px));
        bottom: max(14px, env(safe-area-inset-bottom, 0px));
    }

    .site-chat-toggle {
        min-width: 48px;
        width: 48px;
        padding: 0;
    }

    .site-chat-panel {
        bottom: 58px;
        height: min(560px, calc(100dvh - 92px));
    }

    .admin-chat-layout {
        min-height: 0;
        height: 100%;
    }

    .chat-session-list {
        height: 100%;
        max-height: none;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .admin-chat-composer__meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-chat-composer__meta .chat-status {
        white-space: normal;
    }

    .admin-chat-quickreply-modal {
        padding: 8px;
    }

    .admin-chat-quickreply-modal__dialog {
        width: calc(100vw - 16px);
        max-height: calc(100dvh - 16px);
    }

    .admin-chat-quickreply-form {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .admin-chat-quickreply-form__message,
    .admin-chat-quickreply-form__actions {
        grid-column: auto;
    }

    .admin-chat-quickreply-table-wrap {
        padding: 0 12px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Template theme rebuild based on D:\template, adapted for The Junco carry goods. */
.junco-template-theme {
    --theme-ink: #171615;
    --theme-muted: #686765;
    --theme-border: #e3e0da;
    --theme-panel: #ffffff;
    --theme-soft: #f7f7f5;
    --theme-wash: #edf4f2;
    --theme-green: #108474;
    --theme-green-dark: #0c5f55;
    --theme-charcoal: #171f1d;
    --theme-page-width: 1440px;
    --theme-page-pad: 5rem;
    --theme-radius: 20px;
    --theme-card-radius: 20px;
    --theme-shadow: 0 20px 50px rgba(23, 22, 21, 0.1);
    color: var(--theme-ink);
    background: var(--theme-soft);
    font-family: var(--font-body);
}

.junco-template-theme .container {
    max-width: none;
    padding: 0;
}

.junco-template-theme .section,
.junco-template-theme .catalog-layout,
.junco-template-theme .page-hero {
    width: min(var(--theme-page-width), calc(100% - var(--theme-page-pad) * 2));
    margin-left: auto;
    margin-right: auto;
}

.theme-announcement {
    overflow: hidden;
    color: #ffffff;
    background: var(--theme-charcoal);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.theme-announcement-track {
    display: flex;
    width: max-content;
    gap: 42px;
    padding: 10px var(--theme-page-pad);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    animation: theme-scroll 30s linear infinite;
}

.theme-announcement-track span::before,
.theme-marquee span::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 12px;
    border-radius: 999px;
    background: currentColor;
    vertical-align: 0.12em;
}

@keyframes theme-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-35%);
    }
}

.theme-header {
    position: sticky;
    top: 0;
    z-index: 120;
    background: rgba(247, 247, 245, 0.9);
    border-bottom: 1px solid var(--theme-border);
    backdrop-filter: blur(18px);
}

.theme-header-grid {
    width: min(var(--theme-page-width), calc(100% - var(--theme-page-pad) * 2));
    min-height: 82px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}

.theme-logo {
    justify-content: center;
    min-width: 160px;
}

.theme-logo .site-logo-img {
    height: 50px;
    max-width: 170px;
}

.theme-primary-nav {
    justify-content: flex-start;
    gap: 6px;
}

.theme-primary-nav>a,
.theme-nav-details>summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 13px;
    color: var(--theme-ink);
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 850;
}

.theme-primary-nav>a:hover,
.theme-nav-details>summary:hover {
    color: var(--theme-ink);
    background: #ffffff;
}

.theme-nav-details {
    position: relative;
}

.theme-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: min(760px, calc(100vw - 40px));
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 22px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius);
    box-shadow: var(--theme-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.theme-nav-details[open] .theme-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-mega-menu div,
.theme-mega-feature {
    display: grid;
    align-content: start;
    gap: 9px;
}

.theme-mega-menu strong {
    color: var(--theme-ink);
    font-size: 1rem;
}

.theme-mega-menu a {
    color: var(--theme-muted);
    font-weight: 720;
}

.theme-mega-feature {
    min-height: 170px;
    padding: 18px;
    color: #ffffff;
    background:
        linear-gradient(150deg, rgba(23, 31, 29, 0.92), rgba(16, 132, 116, 0.76)),
        url("/images/hero-merch.png");
    background-size: cover;
    background-position: center;
    border-radius: var(--theme-card-radius);
}

.theme-mega-feature span,
.theme-kicker {
    color: var(--theme-green);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.theme-mega-feature strong,
.theme-mega-feature span {
    color: #ffffff;
}

.theme-mobile-menu {
    display: none;
}

body.mobile-menu-open {
    overflow: hidden;
}

.auth-area {
    justify-content: flex-end;
}

.junco-template-theme .btn,
.junco-template-theme .btn-sm {
    border-radius: 999px;
}

.junco-template-theme .btn,
.junco-template-theme .btn-accent,
.junco-template-theme .btn-primary-sm {
    color: #ffffff;
    background: var(--theme-green);
}

.junco-template-theme .btn:hover,
.junco-template-theme .btn-accent:hover,
.junco-template-theme .btn-primary-sm:hover {
    color: #ffffff;
    background: var(--theme-green-dark);
}

.theme-collection-strip {
    width: min(var(--theme-page-width), calc(100% - var(--theme-page-pad) * 2));
    margin: 0 auto;
    padding: 0 0 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.theme-collection-strip a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 9px 14px;
    color: var(--theme-ink);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--theme-border);
    border-radius: 999px;
}

.theme-collection-strip span {
    font-weight: 900;
}

.theme-collection-strip small {
    color: var(--theme-muted);
    font-size: 0.76rem;
}

.theme-section,
.theme-section-full {
    position: relative;
}

.theme-hero {
    min-height: calc(100dvh - 128px);
    display: grid;
    grid-template-columns: minmax(var(--theme-page-pad), 1fr) minmax(0, calc(var(--theme-page-width) / 2)) minmax(0, calc(var(--theme-page-width) / 2)) minmax(var(--theme-page-pad), 1fr);
    align-items: end;
    overflow: hidden;
    color: #ffffff;
    background: var(--theme-charcoal);
}

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

.theme-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(23, 31, 29, 0.88), rgba(23, 31, 29, 0.52) 42%, rgba(23, 31, 29, 0.1)),
        linear-gradient(0deg, rgba(23, 31, 29, 0.5), rgba(23, 31, 29, 0));
}

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

.theme-hero-content {
    position: relative;
    z-index: 1;
    grid-column: 2;
    max-width: 650px;
    padding: 86px 0;
}

.theme-hero-content .theme-kicker {
    color: #d4fff7;
}

.theme-hero h1 {
    color: #ffffff;
    max-width: 720px;
    margin: 10px 0 18px;
    font-size: 4rem;
    line-height: 1;
}

.theme-hero p {
    max-width: 560px;
    color: #eff8f5;
    font-size: 1.08rem;
}

.theme-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.theme-hero-floating {
    position: relative;
    z-index: 1;
    grid-column: 3;
    justify-self: end;
    width: min(340px, 80%);
    margin-bottom: 76px;
    padding: 22px;
    color: var(--theme-ink);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--theme-card-radius);
    box-shadow: var(--theme-shadow);
    backdrop-filter: blur(14px);
}

.theme-hero-floating span,
.theme-hero-floating strong,
.theme-hero-floating small {
    display: block;
}

.theme-hero-floating span {
    color: var(--theme-green);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.theme-hero-floating strong {
    margin: 6px 0 8px;
    font-size: 1.35rem;
    line-height: 1.1;
}

.theme-hero-floating small {
    color: var(--theme-muted);
}

.theme-marquee {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 16px var(--theme-page-pad);
    color: var(--theme-green-dark);
    background: #ffffff;
    border-bottom: 1px solid var(--theme-border);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.theme-section {
    width: min(var(--theme-page-width), calc(100% - var(--theme-page-pad) * 2));
    margin: 0 auto;
    padding: 72px 0;
}

.theme-section+.theme-section {
    border-top: 1px solid var(--theme-border);
}

.theme-section-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
    margin-bottom: 28px;
}

.theme-section-header h2 {
    margin: 8px 0 0;
    max-width: 760px;
    font-size: 2.65rem;
    line-height: 1.08;
}

.theme-section-header p {
    max-width: 620px;
    color: var(--theme-muted);
}

.theme-section-header.centered {
    display: block;
    text-align: center;
}

.theme-section-header.centered h2,
.theme-section-header.centered p {
    margin-left: auto;
    margin-right: auto;
}

.theme-section-header.compact {
    display: block;
    margin-bottom: 18px;
}

.theme-section-header.compact h2 {
    font-size: 1.75rem;
}

.theme-collection-cards {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 16px;
}

.theme-collection-card {
    min-height: 255px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: var(--theme-ink);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(237, 244, 242, 0.92)),
        #ffffff;
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-card-radius);
    box-shadow: 0 1px 0 rgba(23, 22, 21, 0.04);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.theme-collection-card:hover,
.theme-product-card:hover,
.route-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--theme-shadow);
}

.theme-collection-card.is-featured {
    grid-row: span 2;
    min-height: 526px;
    color: #ffffff;
    background:
        linear-gradient(160deg, rgba(23, 31, 29, 0.88), rgba(16, 132, 116, 0.62)),
        url("/images/hero-merch.png");
    background-size: cover;
    background-position: center;
}

.theme-collection-card.is-sale {
    background: linear-gradient(135deg, #ffffff, #ecf4f2);
}

.theme-collection-card span {
    color: var(--theme-green);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.theme-collection-card.is-featured span {
    color: #d5fff7;
}

.theme-collection-card strong {
    max-width: 420px;
    margin-top: 12px;
    font-size: 1.3rem;
    line-height: 1.18;
}

.theme-collection-card.is-featured strong {
    font-size: 2.25rem;
}

.theme-product-grid,
.product-grid {
    gap: 20px;
}

.theme-product-card {
    position: relative;
    padding: 12px 12px 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(221, 229, 236, 0.88);
    border-radius: calc(var(--theme-card-radius) + 6px);
    box-shadow: 0 8px 24px rgba(18, 24, 32, 0.08), 0 2px 6px rgba(18, 24, 32, 0.04);
    backdrop-filter: blur(12px);
    min-height: auto;
    overflow: hidden;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.32s ease, background 0.32s ease;
}

.theme-product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(231, 244, 240, 0.34));
    opacity: 0;
    transition: opacity 0.32s ease;
    pointer-events: none;
}

.theme-product-media {
    position: relative;
    aspect-ratio: 1 / 1.18;
    height: auto;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--theme-ink);
    background:
        linear-gradient(145deg, #ffffff, #eef5f3);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-card-radius);
    transform: translateZ(0);
    transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.36s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, background 0.28s ease;
}

.theme-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.77s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}

.theme-product-arrow {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.34s ease, border-color 0.34s ease, box-shadow 0.34s ease;
}

.theme-product-arrow svg,
.theme-product-arrow .icon {
    width: 1.15em;
    height: 1.15em;
    transform: scale(1.15);
}

.theme-product-body {
    position: relative;
    z-index: 1;
    padding: 16px 8px 4px;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-product-card h3 {
    font-size: 1.05rem;
    line-height: 1.25;
}

.theme-product-card .product-copy {
    color: var(--theme-muted);
}

.theme-product-card .price {
    color: var(--theme-ink);
}

.theme-product-card:hover,
.theme-product-card:focus-within {
    transform: translateY(-7px);
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(13, 118, 110, 0.18);
    box-shadow: 0 28px 58px rgba(18, 24, 32, 0.12);
}

.theme-product-card:hover::before,
.theme-product-card:focus-within::before {
    opacity: 1;
}

.theme-product-card:hover .theme-product-media,
.theme-product-card:focus-within .theme-product-media {
    transform: translateY(-2px);
    background: linear-gradient(145deg, #ffffff, #e9f6f1);
    border-color: rgba(13, 118, 110, 0.18);
    box-shadow: 0 18px 36px rgba(18, 24, 32, 0.08);
}

.theme-product-card:hover .theme-product-media img,
.theme-product-card:focus-within .theme-product-media img {
    transform: scale(1.035);
    filter: saturate(1.03) contrast(1.01);
}

.theme-product-card:hover .theme-product-arrow,
.theme-product-card:focus-within .theme-product-arrow {
    transform: translate3d(2px, -2px, 0);
    background: var(--theme-green);
    box-shadow: 0 14px 28px rgba(13, 118, 110, 0.26);
}

.theme-product-card:hover .theme-product-body,
.theme-product-card:focus-within .theme-product-body {
    transform: translateY(-1px);
}

.theme-product-card .btn-sm {
    transition: background 0.24s ease, color 0.24s ease, box-shadow 0.24s ease;
}

.theme-product-card:hover .btn-sm,
.theme-product-card:focus-within .btn-sm {
    color: var(--theme-ink);
    background: #f3f8f6;
    box-shadow: inset 0 0 0 1px rgba(13, 118, 110, 0.08);
}

.theme-sku-badge {
    color: var(--theme-green-dark);
    background: #e6f3f0;
}

.theme-image-text {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.theme-image-panel {
    overflow: hidden;
    border-radius: var(--theme-card-radius);
    border: 1px solid var(--theme-border);
    aspect-ratio: 1 / 1;
}

.theme-image-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.theme-copy-panel {
    padding: 34px;
    background: #ffffff;
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-card-radius);
}

.theme-copy-panel h2 {
    margin: 10px 0 14px;
    font-size: 2.35rem;
}

.theme-copy-panel p {
    color: var(--theme-muted);
}

.theme-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 24px 0;
}

.theme-proof-grid div {
    padding: 14px;
    background: var(--theme-soft);
    border: 1px solid var(--theme-border);
    border-radius: 16px;
}

.theme-proof-grid .icon {
    color: var(--theme-green);
    margin-bottom: 8px;
}

.theme-proof-grid strong,
.theme-proof-grid span {
    display: block;
}

.theme-proof-grid span {
    color: var(--theme-muted);
    margin-top: 4px;
    font-size: 0.84rem;
}

.theme-split-rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.theme-rail-panel {
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-card-radius);
}

.theme-rail-panel.dark {
    color: #ffffff;
    background: var(--theme-charcoal);
}

.theme-rail-panel.dark h2,
.theme-rail-panel.dark .compact-product,
.theme-rail-panel.dark .theme-kicker {
    color: #ffffff;
}

.theme-rail-panel.dark .compact-product {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.compact-product {
    border-radius: 16px;
}

.theme-testimonials {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 16px;
}

.theme-testimonials article,
.theme-testimonials>div {
    min-height: 190px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-card-radius);
}

.theme-testimonials h2 {
    margin-top: 10px;
    font-size: 2rem;
}

.theme-testimonials p {
    color: var(--theme-muted);
    margin-top: 10px;
}

.theme-newsletter-band {
    text-align: center;
    color: #ffffff;
    background:
        linear-gradient(145deg, rgba(23, 31, 29, 0.94), rgba(16, 132, 116, 0.75)),
        url("/images/hero-merch.png");
    background-size: cover;
    background-position: center;
    border: 0;
    border-radius: var(--theme-card-radius);
    padding: 58px 24px;
    margin-bottom: 72px;
}

.theme-newsletter-band .theme-kicker,
.theme-newsletter-band h2 {
    color: #ffffff;
}

.theme-newsletter-band h2 {
    max-width: 720px;
    margin: 10px auto 24px;
    font-size: 2.35rem;
}

.theme-newsletter-band form {
    width: min(560px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.theme-newsletter-band input {
    min-height: 46px;
    min-width: 0;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.theme-newsletter-band input::placeholder {
    color: rgba(255, 255, 255, 0.76);
}

.junco-template-theme .site-footer {
    color: #ffffff;
    background: var(--theme-charcoal);
}

.junco-template-theme .footer-inner {
    width: min(var(--theme-page-width), calc(100% - var(--theme-page-pad) * 2));
    padding: 54px 0 32px;
    grid-template-columns: minmax(280px, 1.2fr) minmax(420px, 1.2fr) minmax(260px, 0.8fr);
}

.junco-template-theme .footer-fine {
    width: min(var(--theme-page-width), calc(100% - var(--theme-page-pad) * 2));
    padding-left: 0;
    padding-right: 0;
}

.junco-template-theme .footer-newsletter,
.junco-template-theme .footer-proof span {
    border-radius: 16px;
}

@media (max-width: 1100px) {
    .junco-template-theme {
        --theme-page-pad: 24px;
    }

    .theme-header-grid {
        grid-template-columns: auto 1fr auto;
    }

    .theme-mobile-menu {
        display: block;
        position: relative;
        isolation: auto;
    }

    .theme-mobile-menu summary,
    .theme-mobile-menu__toggle {
        position: relative;
        z-index: 30;
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: #ffffff;
        border: 1px solid var(--theme-border);
        cursor: pointer;
        list-style: none;
        transition:
            background 0.22s ease,
            border-color 0.22s ease,
            box-shadow 0.28s ease,
            transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .theme-mobile-menu summary::-webkit-details-marker {
        display: none;
    }

    .theme-mobile-menu summary .icon-lg,
    .theme-mobile-menu__toggle .icon-lg {
        transition:
            transform 0.36s cubic-bezier(0.16, 1, 0.3, 1),
            color 0.22s ease;
    }

    .lumo-mobile-menu.is-opening summary,
    .lumo-mobile-menu.is-opened summary,
    .lumo-mobile-menu.is-opening .theme-mobile-menu__toggle,
    .lumo-mobile-menu.is-opened .theme-mobile-menu__toggle {
        background: rgba(16, 132, 116, 0.08);
        border-color: rgba(16, 132, 116, 0.22);
        box-shadow: 0 14px 34px rgba(18, 43, 39, 0.14);
        transform: translateY(-1px) scale(1.02);
    }

    .lumo-mobile-menu.is-opening summary .icon-lg,
    .lumo-mobile-menu.is-opened summary .icon-lg,
    .lumo-mobile-menu.is-opening .theme-mobile-menu__toggle .icon-lg,
    .lumo-mobile-menu.is-opened .theme-mobile-menu__toggle .icon-lg {
        transform: rotate(90deg) scale(0.94);
        color: var(--theme-green-dark);
    }

    .lumo-mobile-scrim {
        position: fixed;
        inset: 0;
        z-index: 18;
        border: 0;
        padding: 0;
        background: rgba(23, 31, 29, 0.18);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.24s ease, visibility 0.24s ease;
    }

    .theme-mobile-panel {
        position: absolute;
        z-index: 24;
        top: calc(100% + 12px);
        left: 0;
        width: min(320px, calc(100vw - 32px));
        display: grid;
        gap: 6px;
        padding: 16px;
        background: #ffffff;
        border: 1px solid var(--theme-border);
        border-radius: var(--theme-card-radius);
        box-shadow: var(--theme-shadow);
    }

    .theme-mobile-panel a {
        padding: 11px 12px;
        color: var(--theme-ink);
        border-radius: 12px;
        font-weight: 850;
    }

    .theme-primary-nav {
        display: none;
    }

    .theme-logo {
        justify-content: flex-start;
    }

    .theme-hero {
        grid-template-columns: var(--theme-page-pad) minmax(0, 1fr) var(--theme-page-pad);
    }

    .theme-hero-content,
    .theme-hero-floating {
        grid-column: 2;
    }

    .theme-hero-floating {
        justify-self: start;
        width: min(420px, 100%);
        margin: 0 0 40px;
    }

    .theme-collection-cards,
    .theme-image-text,
    .theme-split-rail,
    .theme-testimonials,
    .junco-template-theme .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .theme-collection-card.is-featured {
        grid-row: span 1;
        min-height: 320px;
    }

    .theme-proof-grid {
        grid-template-columns: 1fr;
    }

    .junco-template-theme .footer-newsletter {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .junco-template-theme {
        --theme-page-pad: 14px;
        --theme-radius: 16px;
        --theme-card-radius: 16px;
    }

    .theme-announcement-track {
        padding-inline: 14px;
    }

    .theme-header-grid {
        min-height: 70px;
        gap: 10px;
    }

    .theme-logo .site-logo-img {
        height: 40px;
        max-width: 136px;
    }

    .theme-collection-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .theme-collection-strip a {
        border-radius: 14px;
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .theme-hero {
        min-height: auto;
    }

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

    .theme-hero h1 {
        font-size: 2.45rem;
    }

    .theme-hero-floating {
        margin-bottom: 26px;
    }

    .theme-section {
        padding: 46px 0;
    }

    .theme-section-header,
    .theme-collection-cards,
    .theme-image-text,
    .theme-split-rail,
    .theme-testimonials,
    .theme-newsletter-band form,
    .junco-template-theme .footer-inner,
    .junco-template-theme .footer-nav {
        grid-template-columns: 1fr;
    }

    .theme-section-header h2,
    .theme-copy-panel h2,
    .theme-newsletter-band h2 {
        font-size: 1.85rem;
    }

    .theme-collection-card,
    .theme-collection-card.is-featured {
        min-height: 220px;
    }

    .theme-collection-card.is-featured strong {
        font-size: 1.55rem;
    }

    .theme-copy-panel,
    .theme-rail-panel {
        padding: 18px;
    }

    .theme-newsletter-band {
        margin-bottom: 46px;
        padding: 38px 18px;
    }
}

/* Support 政策链接独立成列，窄屏按两列排列。 */
@media (max-width: 760px) {
    .footer-nav,
    .junco-template-theme .footer-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
