/* ===================== Card image zoom only ===================== */
.product-card .product-img,
.collection-card-lg__img img,
.lookbook-card img,
.product-overlay-card__bg img,
.scrolling-layered-card__inner img,
.admin-product-preview__media img,
.admin-product-cell__media img {
    transform: scale(1);
    transform-origin: center;
    transition: transform 0.77s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.product-card:hover,
.product-card:focus-within {
    transform: none;
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.collection-card-lg:hover,
.collection-card-lg:focus-within {
    transform: none;
    box-shadow: none;
    color: #fff;
    text-decoration: none;
}

.theme-product-card:hover,
.theme-product-card:focus-within {
    transform: none;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.theme-product-card:hover::before,
.theme-product-card:focus-within::before {
    opacity: 0;
}

.theme-product-card:hover .theme-product-media,
.theme-product-card:focus-within .theme-product-media {
    transform: none;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.theme-product-card:hover .theme-product-arrow,
.theme-product-card:focus-within .theme-product-arrow {
    transform: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.theme-product-card:hover .theme-product-body,
.theme-product-card:focus-within .theme-product-body {
    transform: none;
}

.theme-product-card:hover .btn-sm,
.theme-product-card:focus-within .btn-sm {
    color: var(--ink);
    background: #eef2f6;
    box-shadow: none;
}

.product-card:hover .product-img,
.product-card:focus-within .product-img,
.collection-card-lg:hover .collection-card-lg__img img,
.collection-card-lg:focus-within .collection-card-lg__img img,
.lookbook-card:hover img,
.lookbook-card:focus-within img,
.product-overlay-card:hover .product-overlay-card__bg img,
.product-overlay-card:focus-within .product-overlay-card__bg img,
.scrolling-layered-card__inner:hover img,
.scrolling-layered-card__inner:focus-within img,
.admin-product-preview__media:hover img,
.admin-product-preview__media:focus-within img,
.admin-product-cell__media:hover img,
.admin-product-cell__media:focus-within img {
    transform: scale(1.03);
}

.theme-product-card:hover .theme-product-media img,
.theme-product-card:focus-within .theme-product-media img {
    transform: scale(1.03);
    filter: none;
}

.admin-flag-stack,
.admin-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-global-footer {
    margin-top: 24px;
    padding: 16px var(--theme-page-pad) 28px;
}

.is-admin-shell .admin-global-footer {
    display: none;
}

.admin-global-footer__inner {
    width: min(1120px, calc(100vw - var(--theme-page-pad) * 2));
    margin: 0 auto;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-radius: 18px;
    border: 1px solid rgba(19, 53, 50, 0.08);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 24px rgba(19, 53, 50, 0.05);
}

.admin-global-footer__inner strong,
.admin-global-footer__inner span {
    display: block;
}

.admin-global-footer__inner span {
    margin-top: 4px;
    color: rgba(21, 34, 31, 0.62);
}

.admin-global-footer__inner nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-global-footer__inner nav a {
    color: rgba(21, 34, 31, 0.72);
    text-decoration: none;
    font-weight: 700;
}

/* ===================== LUMOCAD TOP BAR PORT ===================== */
.junco-template-theme.has-template-hero .lumo-header {
    margin-bottom: calc((var(--header-height, 86px) + 6px) * -1);
}

.junco-template-theme.has-solid-header .lumo-header {
    margin-bottom: calc((var(--header-height, 86px) + 6px) * -1);
}

.junco-template-theme.has-admin-shell .lumo-header {
    margin-bottom: 12px;
}

.lumo-header {
    position: sticky;
    top: 0;
    z-index: 300;
    padding: 14px var(--theme-page-pad) 0;
    background: transparent;
    border: 0;
    backdrop-filter: none;
    transition: transform 0.32s ease, padding 0.32s ease;
}

body.mobile-menu-open .lumo-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
}

.lumo-header__background {
    display: none;
}

.lumo-header__top.theme-header-grid {
    position: relative;
    isolation: auto;
    width: min(1120px, calc(100vw - var(--theme-page-pad) * 2));
    min-height: 58px;
    padding: 0 16px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 18px;
    overflow: visible;
    background: #ffffff;
    border: 1px solid rgba(23, 22, 21, 0.1);
    border-radius: 6px;
    box-shadow: 0 14px 38px rgba(23, 22, 21, 0.1);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition:
        min-height 0.28s ease,
        box-shadow 0.64s ease,
        border-color 0.64s ease;
}

.junco-template-theme:not(.has-admin-shell) .lumo-header__top.theme-header-grid {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.lumo-header--scrolled .lumo-header__top.theme-header-grid {
    min-height: 52px;
    background: #ffffff;
    border-color: rgba(23, 22, 21, 0.1);
    box-shadow: 0 12px 34px rgba(23, 22, 21, 0.12);
}

.lumo-header__nav,
.lumo-header__logo,
.lumo-header__icons {
    position: relative;
    z-index: 30;
}

.lumo-mobile-menu {
    position: relative;
    z-index: auto;
}

.lumo-header__nav.theme-primary-nav {
    gap: 4px;
    justify-content: flex-start;
}

.lumo-header__nav.theme-primary-nav>a,
.lumo-nav-details>summary {
    position: relative;
    min-height: 38px;
    padding: 8px 11px;
    color: var(--theme-ink);
    border-radius: 5px;
    font-size: 0.82rem;
    font-weight: 780;
    text-decoration: none;
    transition: color 180ms ease;
}

.lumo-nav-link-label {
    position: relative;
    display: inline-block;
}

.lumo-nav-link-label::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -2px;
    left: 0;
    height: 1px;
    background: #000000;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 180ms ease;
    pointer-events: none;
}

.lumo-nav-details>summary:focus {
    outline: none;
}

.lumo-nav-details>summary:focus-visible {
    outline: 2px solid rgba(16, 132, 116, 0.42);
    outline-offset: 2px;
}

.lumo-header__nav.theme-primary-nav>a:focus-visible {
    outline: 2px solid rgba(16, 132, 116, 0.42);
    outline-offset: 2px;
}

.lumo-header__nav.theme-primary-nav>a:hover,
.lumo-header__nav.theme-primary-nav>a:focus-visible,
.lumo-nav-details>summary:hover,
.lumo-nav-details>summary:focus-visible,
.lumo-nav-details.is-opening>summary,
.lumo-nav-details.is-opened>summary {
    color: var(--theme-ink);
    background: transparent;
    box-shadow: none;
}

.lumo-header__nav.theme-primary-nav a:hover .lumo-nav-link-label::after,
.lumo-header__nav.theme-primary-nav a:focus-visible .lumo-nav-link-label::after,
.lumo-nav-details>summary:hover .lumo-nav-link-label::after,
.lumo-nav-details>summary:focus-visible .lumo-nav-link-label::after,
.lumo-nav-details.is-opening>summary .lumo-nav-link-label::after,
.lumo-nav-details.is-opened>summary .lumo-nav-link-label::after,
.lumo-category-mega-menu__trigger.is-active .lumo-nav-link-label::after {
    transform: scaleX(1);
}

.lumo-header__logo.theme-logo {
    min-width: 136px;
    justify-content: center;
}

.lumo-header__logo .site-logo-img {
    height: 38px;
    max-width: 142px;
    transition: height 0.28s ease;
}

.lumo-header--scrolled .lumo-header__logo .site-logo-img {
    height: 34px;
}

.lumo-header__icons.auth-area {
    min-width: 0;
    justify-content: flex-end;
    gap: 9px;
}

.site-language-switcher {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
}

.site-language-switcher .gt_selector {
    width: 94px;
    max-width: 94px;
    height: 36px;
    padding: 0 26px 0 10px;
    overflow: hidden;
    color: var(--theme-ink);
    font: inherit;
    font-size: 0.76rem;
    font-weight: 720;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
    background-color: #ffffff;
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 999px;
    cursor: pointer;
}

.site-language-switcher .gt_selector:hover {
    border-color: rgba(17, 17, 17, 0.28);
}

.site-language-switcher .gt_selector:focus-visible {
    outline: 2px solid rgba(16, 132, 116, 0.42);
    outline-offset: 2px;
}

.lumo-header-search,
.error-search__field {
    flex: 0 1 clamp(150px, 18vw, 240px);
    min-width: 130px;
    max-width: 100%;
    height: 38px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px 0 12px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.lumo-header-search:focus-within,
.error-search__field:focus-within {
    background: rgba(255, 255, 255, 0.94);
}

.lumo-header-search__icon,
.theme-mobile-search__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-muted);
    flex: 0 0 auto;
}

.lumo-header-search input,
.error-search__field input,
.theme-mobile-search input {
    width: 100%;
    min-width: 0;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 0;
    font-size: 0.88rem;
}

.lumo-header-search input::placeholder,
.error-search__field input::placeholder,
.theme-mobile-search input::placeholder {
    color: rgba(21, 34, 31, 0.48);
}

.lumo-header-search input:focus,
.error-search__field input:focus,
.theme-mobile-search input:focus {
    outline: none;
}

.lumo-header-search input::-webkit-search-cancel-button,
.error-search__field input::-webkit-search-cancel-button,
.theme-mobile-search input::-webkit-search-cancel-button {
    display: none;
    -webkit-appearance: none;
    appearance: none;
}

.lumo-header-search input::-ms-clear,
.error-search__field input::-ms-clear,
.theme-mobile-search input::-ms-clear {
    display: none;
}

.header-search-clear {
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #6b7280;
    background: transparent;
    border: 0;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.16s ease;
}

.header-search-clear[hidden] {
    display: none;
}

.header-search-clear .icon {
    width: 15px;
    height: 15px;
    stroke-width: 2.25;
}

.header-search-clear:hover {
    background: #eeeeef;
}

.header-search-clear:focus-visible {
    outline: 2px solid #000000;
    outline-offset: 1px;
}

.storefront-search-field { display: block; position: relative; min-width: 0; }
.storefront-search-field input::-webkit-search-cancel-button { display: none; -webkit-appearance: none; appearance: none; }
.storefront-search-field input::-ms-clear { display: none; }
.storefront-search-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; color: #6b7280; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.storefront-search-clear[hidden] { display: none; }
.storefront-search-clear .icon { width: 15px; height: 15px; }
.storefront-search-clear:hover { background: #eeeeef; }
.storefront-search-clear:focus-visible { outline: 2px solid #64748b; outline-offset: 2px; }
.catalog-toolbar .catalog-search.storefront-search-field input { padding-right: 42px; }

.lumo-header-search__submit,
.theme-mobile-search__submit {
    width: 26px;
    height: 26px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--theme-green);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    flex: 0 0 auto;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.lumo-header-search__submit:hover,
.theme-mobile-search__submit:hover {
    background: var(--theme-green-dark);
    transform: translateX(1px);
}

.header-search-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 35;
    width: min(560px, calc(100vw - 32px));
    box-sizing: border-box;
    max-width: calc(100vw - 32px);
    padding: 0;
    overflow: hidden;
    color: #000000;
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: headerSearchPanelIn 0.18s ease;
}

.header-search-panel__scroll {
    width: 100%;
    max-width: 100%;
    max-height: min(72vh, 720px);
    box-sizing: border-box;
    padding: 24px 18px 18px 24px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #e4e4e7 transparent;
}

.header-search-panel__scroll::-webkit-scrollbar {
    width: 6px;
    height: 0;
}

.header-search-panel__scroll::-webkit-scrollbar-track {
    background: transparent;
}

.header-search-panel__scroll::-webkit-scrollbar-thumb {
    background: #e4e4e7;
    border: 1px solid transparent;
    border-radius: 9999px;
    background-clip: padding-box;
}

.header-search-panel__scroll::-webkit-scrollbar-thumb:hover {
    background: #d4d4d8;
    background-clip: padding-box;
}

.header-search-panel__results {
    width: 100%;
    max-width: 100%;
    display: grid;
    gap: 26px;
    overflow-x: hidden;
}

.header-search-section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: grid;
    gap: 13px;
    overflow-x: hidden;
}

.header-search-section h2 {
    margin: 0;
    color: #000000;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0;
}

.header-search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.header-search-chip {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    color: #52525b;
    background: #eeeeef;
    border: 1px solid transparent;
    border-radius: 9999px;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.2;
    transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.header-search-chip:hover,
.header-search-chip.is-active {
    color: #000000;
    background: #ffffff;
    border-color: #a1a1aa;
}

.header-search-chip:focus-visible,
.header-search-featured:focus-visible,
.header-search-product:focus-visible,
.header-search-category:focus-visible,
.header-search-panel__footer:focus-visible {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

.header-search-featured-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.header-search-featured {
    min-width: 0;
    position: relative;
    display: grid;
    gap: 8px;
    align-content: start;
    color: #000000;
    border-radius: 12px;
}

.header-search-featured__media,
.header-search-product__media {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f1f3f4;
    border-radius: 16px;
}

.header-search-featured__media {
    width: 100%;
    aspect-ratio: 1;
}

.header-search-featured__media img,
.header-search-product__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.18s ease;
}

.header-search-featured:hover .header-search-featured__media img,
.header-search-featured.is-active .header-search-featured__media img {
    transform: scale(1.025);
}

.header-search-item__placeholder {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #71717a;
}

.header-search-featured>strong {
    min-width: 0;
    overflow: hidden;
    color: #000000;
    font-size: 0.86rem;
    font-weight: 750;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-search-featured__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    color: #ffffff;
    background: #6278d1;
    border-radius: 9999px;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
}

.header-search-featured__badge.is-sale {
    background: #d9341b;
}

.header-search-featured__badge.is-hot {
    background: #55a96d;
}

.header-search-product-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 12px;
}

.header-search-category-list {
    display: grid;
    gap: 4px;
}

.header-search-product {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    box-sizing: border-box;
    padding: 0;
    color: #000000;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
}

.header-search-category:hover,
.header-search-category.is-active {
    background: #fbfbf5;
}

.header-search-product .header-search-product__media {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0;
    overflow: hidden;
    background: transparent;
    border-radius: 14px;
}

.header-search-product__details {
    width: 100%;
    height: auto;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    padding: 7px 0 3px;
}

.header-search-product__details h3 {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.header-search-product__title {
    display: -webkit-box;
    height: 2.7em;
    min-height: 2.7em;
    max-height: 2.7em;
    overflow: hidden;
    white-space: normal;
    overflow-wrap: anywhere;
    color: #111;
    font-size: 0.86rem;
    font-weight: 750;
    line-height: 1.35;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.header-search-price {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    color: #000000;
    font-size: 0.82rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
}

.header-search-price__original {
    color: #71717a;
    font-size: 0.7rem;
    font-weight: 600;
}

.header-search-price.is-sale .header-search-price__current {
    color: #111;
}

.header-search-colors {
    min-height: 20px;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.header-search-color {
    width: 17px;
    height: 17px;
    display: inline-block;
    background: var(--search-color-primary);
    border: 2px solid #ffffff;
    border-radius: 9999px;
    box-shadow: 0 0 0 1px #d4d4d8;
}

.header-search-color.is-dual {
    background: linear-gradient(135deg,
            var(--search-color-primary) 0 50%,
            var(--search-color-secondary) 50% 100%);
}

.header-search-color.is-gradient {
    background: linear-gradient(135deg,
            var(--search-color-primary),
            var(--search-color-secondary));
}

.header-search-colors__overflow {
    color: #71717a;
    font-size: 0.7rem;
    font-weight: 700;
}

.header-search-category {
    min-width: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    color: #52525b;
    border-radius: 10px;
    transition: color 0.16s ease, background-color 0.16s ease;
}

.header-search-category>span {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.header-search-category strong,
.header-search-category small {
    min-width: 0;
    overflow-wrap: anywhere;
}

.header-search-category strong {
    color: #000000;
    font-size: 0.86rem;
    font-weight: 700;
}

.header-search-category small {
    color: #71717a;
    font-size: 0.74rem;
}

.header-search-empty {
    padding: 14px 2px;
    color: #71717a;
    font-size: 0.84rem;
    line-height: 1.5;
}

.header-search-panel__footer {
    display: inline-flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    margin-top: 18px;
    padding: 14px 2px 2px;
    color: #000000;
    border-top: 1px solid #e4e4e7;
    font-size: 0.82rem;
    font-weight: 700;
}

.lumo-header-search.is-open,
.theme-mobile-search.is-open {
    z-index: 36;
}

.lumo-user-menu.user-menu {
    position: relative;
}

.lumo-user-trigger.user-menu-trigger,
.lumo-user-trigger {
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111111;
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.lumo-user-trigger.user-menu-trigger:hover,
.lumo-user-trigger.user-menu-trigger[aria-expanded="true"],
.lumo-user-trigger:hover {
    color: #000000;
    background: #f3f1ed;
    border-color: transparent;
}

.lumo-user-menu .user-menu-panel {
    top: calc(100% + 12px);
    width: 250px;
    padding: 10px;
    border-radius: 18px;
    border-color: rgba(17, 17, 17, 0.08);
    box-shadow: 0 24px 64px rgba(17, 17, 17, 0.14);
}

.lumo-user-menu .user-menu-meta {
    padding: 12px;
    border-bottom-color: rgba(17, 17, 17, 0.08);
}

.lumo-user-menu .user-menu-meta em {
    display: inline-flex;
    margin-top: 8px;
    padding: 4px 8px;
    color: #0f6f63;
    background: rgba(16, 132, 116, 0.1);
    border-radius: 999px;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 800;
    text-transform: capitalize;
}

.lumo-user-menu .user-menu-panel a {
    gap: 8px;
    border-radius: 12px;
}

.lumo-header__promise {
    max-width: 210px;
    overflow: hidden;
    color: var(--theme-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.junco-template-theme.has-template-hero .page-hero,
.junco-template-theme.has-solid-header .page-hero {
    padding-top: calc(var(--header-height, 86px) + 22px);
}

.junco-template-theme.has-template-hero .catalog-hero-shell,
.junco-template-theme.has-solid-header .catalog-hero-shell,
.junco-template-theme.has-template-hero .product-detail-shell,
.junco-template-theme.has-solid-header .product-detail-shell,
.junco-template-theme.has-template-hero .post-detail-shell,
.junco-template-theme.has-solid-header .post-detail-shell,
.junco-template-theme.has-template-hero .design-center,
.junco-template-theme.has-solid-header .design-center {
    padding-top: calc(var(--header-height, 86px) + 26px);
}

.lumo-admin-storefront-link {
    white-space: nowrap;
}

.theme-mobile-search {
    position: relative;
    margin-bottom: 8px;
}

.theme-mobile-search__field {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px 0 12px;
    background: rgba(244, 247, 246, 0.92);
    border: 1px solid rgba(19, 53, 50, 0.08);
    border-radius: 999px;
}

.header-search-panel--mobile {
    position: static;
    width: 100%;
    margin-top: 10px;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 20px 38px rgba(17, 17, 17, 0.1);
}

.header-search-panel--mobile .header-search-panel__scroll {
    max-height: none;
    padding: 18px 14px 14px;
}

@keyframes headerSearchPanelIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .header-search-panel {
        animation: none;
    }

    .header-search-chip,
    .header-search-clear,
    .header-search-featured__media img,
    .header-search-product,
    .header-search-category {
        transition: none;
    }
}

.is-admin-shell .lumo-header {
    padding-top: 10px;
}

.is-admin-shell .lumo-header__top.theme-header-grid {
    min-height: 54px;
    padding: 0 14px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.26)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(247, 246, 242, 0.12));
}

.is-admin-shell .lumo-header__nav.theme-primary-nav {
    gap: 2px;
}

.is-admin-shell .lumo-header__nav.theme-primary-nav>a {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 0.78rem;
}

.is-admin-shell .lumo-header__logo .site-logo-img {
    height: 34px;
}

.is-admin-shell .lumo-header__icons.auth-area {
    gap: 10px;
}

.is-admin-shell .lumo-header__promise {
    max-width: 150px;
    font-size: 0.74rem;
}

.is-admin-shell .site-footer,
.is-admin-shell .site-chat {
    display: none;
}

.lumo-icon-link.cart-link,
.lumo-icon-link {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111111;
    border-radius: 999px;
    transition: background 0.18s ease, transform 0.18s ease;
}

.lumo-icon-link:hover {
    color: #000000;
    background: #f3f1ed;
    transform: translateY(-1px);
}

@media (max-width: 1180px) {
    .junco-template-theme:not(.has-admin-shell) .lumo-header__top.theme-header-grid {
        grid-template-columns: minmax(220px, 1fr) auto minmax(280px, 1fr);
    }

    .lumo-header-search {
        flex-basis: 248px;
        min-width: 226px;
    }

    .lumo-header__promise {
        max-width: 150px;
    }
}

@media (max-width: 1040px) {
    .lumo-header__promise {
        display: none;
    }

    .lumo-header-search {
        flex-basis: 226px;
        min-width: 210px;
    }
}

@media (max-width: 640px) {
    .header-search-chip {
        min-height: 44px;
        padding-inline: 15px;
    }

    .header-search-panel__results {
        gap: 22px;
    }

    .header-search-featured-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        overflow-x: hidden;
    }

}

/* Product catalog filter layout */
body.junco-template-theme:has(.catalog-shell) {
    background: #ffffff;
}

.junco-template-theme .catalog-shell {
    width: min(1120px, calc(100vw - var(--theme-page-pad) * 2));
    max-width: 100%;
    box-sizing: border-box;
    padding-top: calc(var(--header-height, 86px) + 28px);
}

.catalog-shell .catalog-topbar,
.catalog-shell .catalog-active-strip,
.catalog-shell .catalog-layout {
    transition: opacity 160ms ease;
}

.catalog-shell.is-catalog-loading {
    cursor: progress;
}

.catalog-shell.is-catalog-loading .catalog-topbar,
.catalog-shell.is-catalog-loading .catalog-active-strip,
.catalog-shell.is-catalog-loading .catalog-layout {
    opacity: 0.52;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .catalog-shell .catalog-topbar,
    .catalog-shell .catalog-active-strip,
    .catalog-shell .catalog-layout,
    .catalog-filter-accordions .catalog-sidebar-panel > summary strong,
    .catalog-sidebar .catalog-filter-option__label {
        transition: none;
    }
}

.catalog-shell .catalog-breadcrumbs {
    width: 100%;
    min-height: 24px;
    padding: 0 0 14px;
    color: #52525b;
    opacity: 1;
    visibility: visible;
}

.catalog-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding-bottom: 18px;
    border-bottom: 0;
}

.catalog-main-categories {
    position: relative;
    margin: 10px 0 32px;
}

.catalog-main-categories__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 36px) / 3);
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 10px;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.catalog-main-categories__track::-webkit-scrollbar {
    display: none;
}

.catalog-main-categories__track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.catalog-main-categories__track.is-dragging a {
    cursor: grabbing;
}

.catalog-main-category {
    display: block;
    min-width: 0;
    color: #171717;
    text-decoration: none;
    scroll-snap-align: start;
}

.catalog-main-category:is(:hover, :focus-visible) {
    color: #171717;
    text-decoration: none;
}

.catalog-main-category__image {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 20px;
    background: #f0f1f2;
}

.catalog-main-category__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-main-category strong {
    position: relative;
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-top: 14px;
    color: #171717;
    font-size: 17px;
    line-height: 1.4;
}

.catalog-main-category strong::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -2px;
    left: 0;
    height: 1px;
    background: #000;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 180ms ease;
    pointer-events: none;
}

.catalog-main-category:is(:hover, :focus-visible) strong::after {
    transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
    .catalog-main-category strong::after { transition: none; }
}

.catalog-main-category p {
    margin: 12px 0 0;
    color: #525252;
    font-size: 14px;
    line-height: 1.5;
}

.catalog-main-categories button {
    position: absolute;
    top: clamp(80px, 12vw, 170px);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: #171717;
    background: rgba(255, 255, 255, 0.9) linear-gradient(#111, #111) left center / 0% 100% no-repeat;
    background-origin: border-box;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: color 0.4s ease,
        background-size 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.catalog-main-categories button:not(:disabled):is(:hover, :focus-visible) {
    color: #fff;
    background-size: 100% 100%;
}

.catalog-main-categories__previous { left: 8px; }
.catalog-main-categories__next { right: 8px; }
.catalog-main-categories button[hidden] { display: none; }
.catalog-main-categories :is(a, button):focus-visible { outline: 2px solid #171717; outline-offset: 3px; }

@media (max-width: 640px) {
    .catalog-main-categories__track { grid-auto-columns: 78%; gap: 14px; }
    .catalog-main-categories button { top: 110px; }
}

.catalog-topbar__summary {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: 0 0 auto;
}

.catalog-mobile-controls {
    display: contents;
}

.catalog-filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 18px;
    color: #111111;
    background: transparent linear-gradient(#111, #111) left center / 0% 100% no-repeat;
    background-origin: border-box;
    border: 1px solid rgba(17, 17, 17, 0.24);
    border-radius: 999px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: color 0.4s ease, border-color 0.4s ease,
        background-size 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.catalog-filter-toggle:not(:disabled):is(:hover, :focus-visible),
.catalog-filter-toggle[aria-expanded="false"] {
    color: #ffffff;
    background-size: 100% 100%;
    border-color: #111111;
}

@media (prefers-reduced-motion: reduce) {
    .catalog-main-categories button,
    .catalog-filter-toggle { transition: none; }
}

.catalog-count {
    display: block;
    margin: 0;
    color: #4d4d4d;
    font-size: 0.92rem;
    white-space: nowrap;
}

.catalog-count strong {
    color: #111111;
    font-weight: 800;
}

.catalog-toolbar.catalog-toolbar--enhanced {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    width: min(100%, 660px);
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.catalog-search {
    position: relative;
    flex: 1 1 280px;
    min-width: 210px;
}

.catalog-search > span {
    position: absolute;
    top: 50%;
    left: 16px;
    display: grid;
    color: #666666;
    transform: translateY(-50%);
    pointer-events: none;
}

.catalog-toolbar .catalog-search input {
    min-height: 46px;
    padding: 0 18px 0 44px;
    background: #ffffff;
    border: 1px solid #cfcfcf;
    border-radius: 999px;
}

.catalog-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.catalog-sort--mobile {
    display: none;
}

.catalog-sort label {
    margin: 0;
    white-space: nowrap;
}

.catalog-toolbar .catalog-sort select {
    width: 220px;
    min-height: 46px;
    padding: 0 42px 0 18px;
    background-color: #ffffff;
    border: 1px solid #cfcfcf;
    border-radius: 999px;
    cursor: pointer;
}

.catalog-shell .catalog-active-strip {
    display: flex;
    justify-content: flex-start;
    margin: 0;
    padding: 16px 0 20px;
}

.catalog-shell .catalog-active-pills {
    justify-content: flex-start;
    gap: 9px;
}

.catalog-shell .catalog-active-pill {
    gap: 8px;
    min-height: 38px;
    padding: 0 13px 0 15px;
    color: #111111;
    background: #ebebeb;
    border: 0;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.catalog-shell .catalog-active-pill:hover {
    color: #ffffff;
    background: #111111;
}

.catalog-shell .catalog-active-pill .icon {
    width: 15px;
    height: 15px;
}

.catalog-active-pill__swatch {
    width: 14px;
    height: 14px;
    overflow: hidden;
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 50%;
}

.catalog-active-pill__swatch .color-swatch {
    width: 100%;
    height: 100%;
}

.catalog-clear-filters {
    margin-left: 6px;
    color: #111111;
    font-size: 0.82rem;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.catalog-layout.catalog-layout--enhanced {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 28px;
    margin: 4px 0 0;
}

.catalog-shell.is-filters-collapsed .catalog-layout--enhanced {
    grid-template-columns: minmax(0, 1fr);
}

.catalog-sidebar[hidden] {
    display: none !important;
}

@media (min-width: 981px) {
    .catalog-shell.is-filters-collapsed .product-grid--catalog {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.catalog-sidebar.catalog-sidebar--stacked {
    gap: 0;
}

.catalog-sidebar--stacked .catalog-sidebar-panel,
.catalog-sidebar--stacked .catalog-sidebar-panel--note {
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 0;
    box-shadow: none;
}

.catalog-sidebar--stacked .catalog-sidebar-panel:last-child {
    border-bottom: 0;
}

.catalog-filter-accordions .catalog-sidebar-panel > summary {
    min-height: 54px;
    padding: 0 2px;
    color: #111111;
    font-size: 0.92rem;
    line-height: 1.3;
}

.catalog-filter-accordions .catalog-sidebar-panel > summary strong {
    font: inherit;
    font-weight: 800;
}

.catalog-filter-accordions .catalog-sidebar-panel > summary strong,
.catalog-sidebar .catalog-filter-option__label {
    background-image: linear-gradient(#111111, #111111);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 0 1px;
    transition: background-size 180ms ease;
}

.catalog-sidebar .catalog-filter-option__label {
    width: fit-content;
    min-width: 0;
    flex: 0 1 auto;
}

.catalog-filter-accordions .catalog-sidebar-panel > summary:hover strong,
.catalog-filter-accordions .catalog-sidebar-panel > summary:focus-visible strong,
.catalog-sidebar a:hover .catalog-filter-option__label,
.catalog-sidebar a:focus-visible .catalog-filter-option__label {
    background-size: 100% 1px;
}

.catalog-filter-accordions .catalog-sidebar-panel > summary:focus-visible {
    outline-color: rgba(17, 17, 17, 0.2);
}

.catalog-filter-panel__body {
    padding: 0 0 18px;
}

.catalog-subcategory-filter-list,
.catalog-color-filter {
    display: grid;
    gap: 2px;
    margin: 0;
}

.catalog-subcategory-filter-list {
    padding: 0;
}

.catalog-sidebar .catalog-filter-row,
.catalog-sidebar .catalog-color-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 5px 7px;
    color: #555555;
    background: transparent;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 550;
}

.catalog-sidebar .catalog-subcategory-filter-list .catalog-filter-row {
    display: flex !important;
    justify-content: flex-start;
    text-align: left;
}

.catalog-sidebar .catalog-filter-row:hover,
.catalog-sidebar .catalog-filter-row.active,
.catalog-sidebar .catalog-color-option:hover,
.catalog-sidebar .catalog-color-option.active {
    color: #111111;
    background: #f1f1f1;
}

.catalog-filter-row img {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    object-fit: cover;
    border-radius: 50%;
}

.catalog-filter-row span {
    min-width: 0;
    flex: 1;
}

.catalog-filter-row small {
    margin-left: auto;
    color: #777777;
    font-size: 0.76rem;
    font-variant-numeric: tabular-nums;
}

.catalog-color-option__swatch {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    overflow: hidden;
    border: 1px solid rgba(17, 17, 17, 0.15);
    border-radius: 50%;
}

.catalog-color-option__swatch .color-swatch {
    width: 100%;
    height: 100%;
}

.catalog-color-option .catalog-filter-option__label {
    min-width: 0;
    flex: 0 1 auto;
}

.catalog-color-option__count {
    margin-left: auto;
    color: #777777;
    font-size: 0.76rem;
    font-variant-numeric: tabular-nums;
}

.catalog-sidebar .catalog-status-option {
    justify-content: flex-start;
}

.catalog-filter-row .catalog-status-option__checkbox {
    width: 18px;
    min-width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    background: #ffffff;
    border: 1px solid #9d9d9d;
    border-radius: 3px;
}

.catalog-status-option__checkbox .icon {
    width: 13px;
    height: 13px;
    stroke-width: 3;
}

.catalog-sidebar .catalog-status-option.active .catalog-status-option__checkbox {
    color: #ffffff;
    background: #111111;
    border-color: #111111;
}

.catalog-price-note {
    margin: 0 0 14px;
    color: #666666;
    font-size: 0.8rem;
}

.catalog-price-filter {
    --catalog-price-start: 0%;
    --catalog-price-end: 100%;
}

.catalog-price-range {
    position: relative;
    height: 34px;
    margin: 0 9px 12px;
    cursor: ew-resize;
    touch-action: none;
    user-select: none;
}

.catalog-price-range::before {
    position: absolute;
    top: 16px;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right,
        #dedede 0 var(--catalog-price-start),
        #111111 var(--catalog-price-start) var(--catalog-price-end),
        #dedede var(--catalog-price-end) 100%);
    content: '';
}

.catalog-price-range input[type="range"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    pointer-events: none;
}

.catalog-price-thumb {
    appearance: none;
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    padding: 0;
    margin: 0;
    background: #ffffff;
    border: 1.5px solid #111111;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(17, 17, 17, 0.22);
    transform: translate(-50%, -50%);
    cursor: grab;
    pointer-events: auto;
}

.catalog-price-thumb--min {
    left: var(--catalog-price-start);
}

.catalog-price-thumb--max {
    left: var(--catalog-price-end);
}

.catalog-price-range.is-dragging .catalog-price-thumb {
    cursor: grabbing;
}

.catalog-price-range input[data-price-range-min]:focus-visible ~ .catalog-price-thumb--min,
.catalog-price-range input[data-price-range-max]:focus-visible ~ .catalog-price-thumb--max {
    outline: 3px solid rgba(17, 17, 17, 0.2);
    outline-offset: 3px;
}

.catalog-price-inputs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.catalog-price-inputs label {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 42px;
    padding: 0 12px;
    background: #f1f1f1;
    border: 1px solid transparent;
    border-radius: 999px;
}

.catalog-price-inputs label span {
    color: #555555;
    font-size: 0.82rem;
}

.catalog-price-inputs input {
    width: 100%;
    min-width: 0;
    padding: 0 0 0 5px;
    color: #111111;
    background: transparent;
    border: 0;
    outline: 0;
    font: inherit;
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
}

.catalog-price-inputs input::-webkit-inner-spin-button,
.catalog-price-inputs input::-webkit-outer-spin-button {
    appearance: none;
    margin: 0;
}

.catalog-size-filter {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.catalog-sidebar .catalog-size-filter a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 10px;
    color: #555555;
    background: #f1f1f1;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.catalog-sidebar .catalog-size-filter a:hover {
    color: #111111;
    background: #e8e8e5;
    border-color: rgba(17, 17, 17, 0.12);
}

.catalog-sidebar .catalog-size-filter a.active {
    color: #ffffff;
    background: #111111;
    border-color: #111111;
}

.catalog-filter-toggle:focus-visible,
.catalog-active-pill:focus-visible,
.catalog-clear-filters:focus-visible,
.catalog-sidebar a:focus-visible {
    outline: 3px solid rgba(17, 17, 17, 0.18);
    outline-offset: 3px;
}

@media (max-width: 1100px) {
    .junco-template-theme .catalog-shell {
        width: calc(100% - 20px);
    }
}

@media (max-width: 980px) {
    .catalog-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .catalog-toolbar.catalog-toolbar--enhanced {
        justify-content: flex-start;
        width: 100%;
    }

    .catalog-layout.catalog-layout--enhanced {
        grid-template-columns: minmax(0, 1fr);
    }

    .catalog-sidebar.catalog-sidebar--stacked {
        position: static;
        display: grid;
        overflow: visible;
        padding: 0;
    }
}

@media (max-width: 640px) {
    .junco-template-theme .catalog-shell {
        padding-top: calc(var(--header-height, 72px) + 20px);
    }

    .catalog-topbar {
        gap: 6px;
        padding-bottom: 8px;
    }

    .catalog-topbar__summary {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 6px;
    }

    .catalog-mobile-controls {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .catalog-filter-toggle {
        min-height: 40px;
        padding: 0 13px;
        gap: 7px;
        font-size: 0.82rem;
    }

    .catalog-count {
        font-size: 0.78rem;
    }

    .catalog-toolbar.catalog-toolbar--enhanced {
        align-items: stretch;
        flex-direction: column;
        gap: 6px;
    }

    .catalog-search {
        flex-basis: auto;
        min-width: 0;
    }

    .catalog-toolbar .catalog-sort--desktop {
        display: none;
    }

    .catalog-sort--mobile {
        min-width: 0;
        display: flex;
        justify-content: flex-end;
        gap: 5px;
    }

    .catalog-sort--mobile label {
        font-size: 0.72rem;
        font-weight: 750;
    }

    .catalog-sort--mobile select {
        width: min(37vw, 128px);
        min-height: 40px;
        padding: 0 30px 0 11px;
        background-color: #ffffff;
        border: 1px solid #cfcfcf;
        border-radius: 999px;
        font-size: 0.75rem;
        cursor: pointer;
    }

    .catalog-sidebar--stacked .catalog-sidebar-panel,
    .catalog-sidebar--stacked .catalog-sidebar-panel--note {
        padding: 0;
        border-radius: 0;
    }

    .catalog-shell .catalog-active-strip {
        padding: 4px 0 12px;
    }

    .catalog-shell .catalog-active-pills {
        gap: 6px;
    }

    .catalog-shell .catalog-active-pill {
        min-height: 32px;
        padding: 0 10px 0 12px;
        font-size: 0.72rem;
    }
}

.lumo-auth-link.btn-sm {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 0.8rem;
}

.lumo-mega-menu.theme-mega-menu,
.lumo-dropdown-menu.theme-mega-menu {
    isolation: isolate;
    overflow: visible;
    z-index: 40;
    top: 100%;
    width: min(720px, calc(100vw - 40px));
    padding: 18px;
    border-radius: 0 0 6px 6px;
    background: #ffffff;
    border: 1px solid rgba(23, 22, 21, 0.1);
    border-top: none;
    box-shadow:
        0 14px 38px rgba(23, 22, 21, 0.14),
        0 1px 0 rgba(255, 255, 255, 0.86) inset;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, -8px, 0) scale(0.985);
    transform-origin: top center;
    visibility: hidden;
    will-change: opacity, transform;
}

/* Override [open] — keep Lumo menus hidden until is-opening class is applied */
.lumo-nav-details[open] .lumo-mega-menu.theme-mega-menu,
.lumo-nav-details[open] .lumo-dropdown-menu.theme-mega-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, -8px, 0) scale(0.985);
}

.lumo-dropdown-menu.theme-mega-menu {
    width: min(260px, calc(100vw - 40px));
    grid-template-columns: 1fr;
}

.lumo-nav-details.is-opening .lumo-mega-menu.theme-mega-menu,
.lumo-nav-details.is-opening .lumo-dropdown-menu.theme-mega-menu {
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
    transition:
        opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        visibility 0.35s step-start;
}

.lumo-nav-details.is-opened .lumo-mega-menu.theme-mega-menu,
.lumo-nav-details.is-opened .lumo-dropdown-menu.theme-mega-menu {
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
}

.lumo-nav-details.is-closing .lumo-mega-menu.theme-mega-menu,
.lumo-nav-details.is-closing .lumo-dropdown-menu.theme-mega-menu {
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, -8px, 0) scale(0.985);
    visibility: hidden;
    transition:
        opacity 0.15s cubic-bezier(0.4, 0, 1, 1),
        transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.15s step-end;
}

.lumo-mega-menu.theme-mega-menu>div,
.lumo-mega-menu.theme-mega-menu>.theme-mega-feature,
.lumo-dropdown-menu.theme-mega-menu>div {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lumo-nav-details.is-opening .theme-mega-menu>div,
.lumo-nav-details.is-opening .theme-mega-menu>.theme-mega-feature,
.lumo-nav-details.is-opened .theme-mega-menu>div,
.lumo-nav-details.is-opened .theme-mega-menu>.theme-mega-feature {
    opacity: 1;
    transform: translateY(0);
}

.lumo-nav-details.is-opening .theme-mega-menu> :nth-child(1) {
    transition-delay: 0.06s;
}

.lumo-nav-details.is-opening .theme-mega-menu> :nth-child(2) {
    transition-delay: 0.12s;
}

.lumo-nav-details.is-opening .theme-mega-menu> :nth-child(3) {
    transition-delay: 0.18s;
}

.lumo-mega-menu .theme-mega-feature {
    border-radius: 12px;
    transform: translateY(0);
    transition: transform 0.48s ease, filter 0.48s ease;
}

.lumo-mega-menu .theme-mega-feature:hover {
    transform: none;
    filter: none;
}

/* Shop mega menu: shortcut rail, category thumbnails, and campaign feature */
.lumo-category-mega-menu.theme-mega-menu {
    top: 100%;
    left: -16px;
    width: min(1120px, calc(100vw - var(--theme-page-pad) * 2));
    height: auto;
    box-sizing: border-box;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: start;
    gap: 0;
    padding: 0;
    overflow: visible;
    background: #ffffff;
    border: 1px solid rgba(23, 22, 21, 0.1);
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 14px 38px rgba(23, 22, 21, 0.14);
}

.lumo-header__top.theme-header-grid:has(.lumo-nav-details[open] > .lumo-category-mega-menu),
.lumo-header__top.theme-header-grid:has(.lumo-nav-details.is-opening > .lumo-category-mega-menu),
.lumo-header__top.theme-header-grid:has(.lumo-nav-details.is-opened > .lumo-category-mega-menu),
.lumo-header__top.theme-header-grid:has(.lumo-nav-details.is-opening > .lumo-dropdown-menu),
.lumo-header__top.theme-header-grid:has(.lumo-nav-details.is-opened > .lumo-dropdown-menu) {
    border-bottom-color: transparent;
    border-radius: 6px 6px 0 0;
}

.lumo-header--scrolled .lumo-category-mega-menu.theme-mega-menu {
    top: 100%;
}

.lumo-category-mega-menu__shortcuts {
    display: grid;
    align-content: start;
    gap: 9px;
    padding: 30px 26px;
    border-right: 1px solid rgba(23, 22, 21, 0.09);
}

.lumo-category-mega-menu__shortcuts a {
    position: relative;
    width: 100%;
    min-width: 0;
    padding: 3px 0;
    color: var(--theme-ink);
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 750;
    line-height: 1.35;
    text-decoration: none;
    transition: none;
}

.lumo-category-mega-menu__shortcuts a:hover,
.lumo-category-mega-menu__shortcuts a:focus-visible {
    color: var(--theme-ink);
    transform: none;
}

.lumo-category-mega-menu__content {
    min-width: 0;
    padding: 0;
}

.lumo-category-mega-menu__panel {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr);
}

.lumo-category-mega-menu__panel[hidden] {
    display: none;
}

.lumo-category-mega-menu__panel .lumo-shop-feature[hidden] {
    display: none;
}

.lumo-category-mega-menu__catalog {
    grid-template-columns: repeat(auto-fill, minmax(min(180px, calc((100% - 20px) / 2)), 1fr));
    grid-auto-rows: minmax(58px, auto);
    gap: 10px 20px !important;
    padding: 26px 28px;
}

.lumo-category-mega-menu__panel[data-mega-category-panel="shop-all"] {
    grid-template-columns: max-content minmax(0, 1.45fr) minmax(210px, 1fr);
    align-items: start;
}

.lumo-category-mega-menu__catalog.lumo-category-mega-menu__main-categories {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    padding: 26px 12px;
    border-right: 1px solid rgba(23, 22, 21, 0.09);
}

.lumo-category-mega-menu__catalog.lumo-category-mega-menu__subcategories {
    min-width: 0;
    align-content: start;
    padding: 26px 12px;
}

.lumo-category-mega-menu__panel .lumo-category-mega-menu__subcategories[hidden] {
    display: none;
}

.lumo-category-mega-menu__empty { grid-column: 1 / -1; color: #525252; }

.lumo-category-mega-menu__item {
    position: relative;
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 4px 6px !important;
    color: var(--theme-ink) !important;
    border-radius: 12px;
    transition: none;
}

.lumo-category-mega-menu__item:hover,
.lumo-category-mega-menu__item:focus-visible {
    background: transparent;
    transform: none;
}

.lumo-dropdown-menu a {
    color: var(--theme-ink);
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 750;
    line-height: 1.35;
    text-decoration: none;
}

.lumo-category-mega-menu__item:focus-visible,
.lumo-category-mega-menu__shortcuts a:focus-visible,
.lumo-shop-feature:focus-visible {
    outline: 2px solid rgba(16, 132, 116, 0.42);
    outline-offset: 2px;
}

.lumo-category-mega-menu__thumb {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--theme-green-dark);
    background: #f0f3f1;
    border-radius: 12px;
}

.lumo-category-mega-menu__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lumo-category-mega-menu__item strong {
    min-width: 0;
    justify-self: start;
    max-width: 100%;
    padding-bottom: 2px;
    overflow: hidden;
    font-size: 0.92rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 标签按文字宽度收缩，让下划线只覆盖文字。 */
.lumo-category-mega-menu__shortcuts .lumo-nav-link-label,
.lumo-category-mega-menu__item .lumo-nav-link-label {
    display: inline-block;
    width: fit-content;
    min-width: 0;
    max-width: 100%;
    padding-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lumo-category-mega-menu .lumo-nav-link-label::after {
    bottom: 1px;
}

.lumo-shop-feature.theme-mega-feature {
    position: relative;
    min-height: 264px;
    margin: 22px;
    padding: 26px;
    align-content: center;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #315a55, #8eb7aa);
    border-radius: 15px;
}

.lumo-shop-feature::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(18, 24, 32, 0.84), rgba(18, 24, 32, 0.12));
    pointer-events: none;
}

.lumo-shop-feature>img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lumo-shop-feature>span,
.lumo-shop-feature>strong,
.lumo-shop-feature>em {
    position: relative;
    z-index: 2;
}

.lumo-shop-feature strong {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
    max-width: min(190px, 100%);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2.15vw, 2rem);
    line-height: 1.02;
}

.lumo-shop-feature em {
    width: fit-content;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 12px;
    padding: 8px 12px 8px 15px;
    color: var(--theme-ink);
    background: #fff linear-gradient(#111, #111) left center / 0% 100% no-repeat;
    background-origin: border-box;
    border-radius: 999px;
    font-size: 0.8rem;
    font-style: normal;
    font-weight: 850;
    text-decoration: none;
    transition: color 0.4s ease,
        background-size 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lumo-shop-feature em .lumo-nav-link-label {
    color: inherit;
}

.lumo-shop-feature em .lumo-nav-link-label::after {
    content: none;
}

.lumo-shop-feature:is(:hover, :focus-visible) em {
    color: #fff;
    background-size: 100% 100%;
}

.lumo-shop-feature:focus-visible {
    outline: 2px solid var(--theme-ink);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .lumo-shop-feature em { transition: none; }
}

.lumo-mobile-shop {
    display: grid;
    gap: 2px;
    padding: 7px 0 10px;
    border-bottom: 1px solid rgba(23, 22, 21, 0.09);
}

.lumo-mobile-shop__title {
    padding: 5px 12px;
    color: var(--theme-muted);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lumo-mobile-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 5px 0 10px;
    border-bottom: 1px solid rgba(23, 22, 21, 0.09);
}

.lumo-mobile-panel.theme-mobile-panel .lumo-mobile-category-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 7px !important;
    background: rgba(23, 22, 21, 0.035);
}

.lumo-mobile-category-item img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 9px;
}

.lumo-mobile-category-item strong {
    overflow: hidden;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lumo-mobile-panel.theme-mobile-panel {
    position: fixed;
    top: calc(var(--header-height, 58px) + 10px);
    left: 12px;
    z-index: 410;
    width: min(calc(100vw - 24px), 320px);
    max-height: calc(100dvh - var(--header-height, 58px) - 22px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #ffffff;
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 18px;
    box-shadow: 0 16px 42px rgba(17, 17, 17, 0.2);
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, -10px, 0) scale(0.985);
    transform-origin: top left;
    transition:
        opacity 0.28s ease,
        transform 0.36s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.28s ease;
}

.lumo-mobile-menu[open] .lumo-mobile-scrim,
.lumo-mobile-menu.is-opening .lumo-mobile-scrim,
.lumo-mobile-menu.is-opened .lumo-mobile-scrim {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lumo-mobile-menu[open] .lumo-mobile-panel {
    clip-path: none;
    filter: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
}

.lumo-mobile-menu.is-closing .lumo-mobile-scrim {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.lumo-mobile-menu.is-closing .lumo-mobile-panel {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, -8px, 0) scale(0.985);
}

.lumo-mobile-panel.theme-mobile-panel a {
    opacity: 1;
    transform: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.lumo-mobile-menu[open] .lumo-mobile-panel a {
    opacity: 1;
    transform: none;
}

.lumo-mobile-menu.is-closing .lumo-mobile-panel a {
    opacity: 0;
    transform: translate3d(0, 6px, 0);
    transition-delay: 0s !important;
}

.lumo-mobile-menu[open] .lumo-mobile-panel a:nth-child(1) {
    transition-delay: 0.04s;
}

.lumo-mobile-menu[open] .lumo-mobile-panel a:nth-child(2) {
    transition-delay: 0.07s;
}

.lumo-mobile-menu[open] .lumo-mobile-panel a:nth-child(3) {
    transition-delay: 0.1s;
}

.lumo-mobile-menu[open] .lumo-mobile-panel a:nth-child(4) {
    transition-delay: 0.13s;
}

.lumo-mobile-menu[open] .lumo-mobile-panel a:nth-child(5) {
    transition-delay: 0.16s;
}

.lumo-mobile-menu[open] .lumo-mobile-panel a:nth-child(6) {
    transition-delay: 0.19s;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .lumo-header__top.theme-header-grid {
        background: #ffffff;
    }

    .lumo-mega-menu.theme-mega-menu,
    .lumo-dropdown-menu.theme-mega-menu {
        background: rgba(255, 255, 255, 0.96);
    }
}

@media (prefers-reduced-motion: reduce) {

    .lumo-mega-menu.theme-mega-menu,
    .lumo-dropdown-menu.theme-mega-menu,
    .lumo-mega-menu.theme-mega-menu>div,
    .lumo-mega-menu.theme-mega-menu>.theme-mega-feature,
    .lumo-dropdown-menu.theme-mega-menu>div,
    .theme-mobile-menu summary,
    .theme-mobile-menu summary .icon-lg,
    .theme-mobile-menu__toggle,
    .theme-mobile-menu__toggle .icon-lg,
    .lumo-mobile-scrim,
    .lumo-mobile-panel.theme-mobile-panel,
    .lumo-mobile-panel.theme-mobile-panel a,
    .lumo-nav-link-label::after,
    .site-chat-toggle,
    .site-chat-panel,
    .site-chat-close {
        transition: none;
    }
}

@media (max-width: 1100px) {

    html,
    body,
    .junco-template-theme {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .lumo-header {
        padding: 8px 10px 0;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .lumo-header__nav.theme-primary-nav {
        display: none !important;
    }

    .lumo-header__top.theme-header-grid {
        width: 100%;
        max-width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 4px;
        box-sizing: border-box;
        padding: 0 8px;
        overflow: visible !important;
    }

    .lumo-mobile-menu.theme-mobile-menu {
        display: block;
        order: 1;
        flex: 0 0 36px;
        min-width: 36px;
    }

    .lumo-header__logo.theme-logo,
    .lumo-header__logo {
        order: 2;
        display: flex;
        justify-content: center;
        align-items: center;
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
    }

    .lumo-header__logo .site-logo-img {
        height: 28px;
        max-width: min(100px, 100%);
        object-fit: contain;
        flex-shrink: 1;
    }

    .lumo-header__icons.auth-area {
        order: 3;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 3px;
        flex: 0 0 auto;
        max-width: 42%;
        min-width: 0;
        overflow: visible;
    }

    .lumo-header__promise,
    .lumo-auth-link.btn-sm {
        display: none;
    }
}

@media (max-width: 700px) {
    .junco-template-theme.has-solid-header .lumo-header {
        margin-bottom: calc((var(--header-height, 72px) + 6px) * -1);
    }

    .junco-template-theme.has-admin-shell .lumo-header {
        margin-bottom: 10px;
    }

    .lumo-header__top.theme-header-grid {
        min-height: 50px;
        padding: 0 8px;
        gap: 4px;
    }

    .is-admin-shell .lumo-header__promise {
        display: none;
    }

    .lumo-header-search {
        display: none !important;
    }

    .site-language-switcher .gt_selector {
        display: none !important;
    }

    .lumo-icon-link.cart-link,
    .lumo-icon-link,
    .lumo-user-trigger {
        width: 30px;
        height: 30px;
        min-width: 30px;
        flex-shrink: 0;
    }

    .auth-modal-card {
        width: min(calc(100vw - 24px), 480px);
        max-width: 100%;
        margin: auto;
        padding: 22px 16px 20px;
        border-radius: 20px;
        box-sizing: border-box;
    }

    .auth-modal-head {
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    .auth-modal-head h2 {
        font-size: 1.6rem;
    }

    .auth-modal-subtitle {
        font-size: 0.88rem;
    }

    .auth-modal-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
        padding: 4px;
        box-sizing: border-box;
    }

    .auth-modal-tab {
        width: 100%;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
    }

    .auth-email-code__grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        align-items: center;
    }

    .auth-email-code__send {
        width: auto;
        min-height: 44px;
        padding: 0 14px;
        white-space: nowrap;
        justify-content: center;
    }

    .auth-modal-panel[data-auth-panel="join"] .auth-modal-form {
        grid-template-columns: 1fr;
    }

    .auth-captcha__grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        align-items: center;
    }

    .auth-captcha__visual {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px;
        gap: 8px;
        align-items: center;
    }

    .auth-captcha__image,
    .auth-captcha__refresh {
        width: auto;
        min-width: 0;
    }
}

/* ================= Mobile Menu Account Section ================= */
.lumo-mobile-account {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
    width: 100%;
    box-sizing: border-box;
}

.lumo-mobile-account-btn,
.lumo-mobile-account-link {
    width: 100%;
    min-height: 44px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff;
    background: var(--theme-ink, #111111);
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(17, 17, 17, 0.16);
    transition: background-color 0.2s ease, transform 0.18s ease;
    box-sizing: border-box;
}

.lumo-mobile-account-btn:hover,
.lumo-mobile-account-link:hover {
    color: #ffffff;
    background: #2b2a28;
    transform: translateY(-1px);
}

/* ===================== Responsive completion pass ===================== */
@media (max-width: 1100px) {
    .auth-modal-shell {
        padding: 0;
    }

    .auth-modal-shell .auth-modal-card,
    .auth-modal-shell[data-auth-mode="join"] .auth-modal-card {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        margin: 0;
        padding: max(22px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
        border: 0;
        border-radius: 0;
        box-shadow: none;
        overflow-y: auto;
    }

    .auth-modal-shell .auth-modal-card,
    .auth-modal-shell.is-open .auth-modal-card,
    .auth-modal-shell.is-closing .auth-modal-card {
        transform: none;
    }

    .auth-modal-shell .auth-modal-close {
        top: max(16px, env(safe-area-inset-top));
        right: max(16px, env(safe-area-inset-right));
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 820px) {
    .editorial-grid--posts {
        grid-template-columns: 1fr;
    }

    .post-related__head {
        flex-direction: column;
        align-items: start;
    }

    .post-detail-hero__copy h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .cart-preview {
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .page-hero h1,
    .compact-hero h1,
    .section-title {
        overflow-wrap: anywhere;
    }

    .footer-newsletter div {
        grid-template-columns: 1fr;
    }

    .footer-newsletter .btn-sm,
    .footer-newsletter button {
        width: 100%;
    }

    .catalog-sidebar {
        position: static;
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 4px;
        border: 0;
        background: transparent;
        box-shadow: none;
        scrollbar-width: thin;
    }

    .catalog-sidebar h2 {
        display: none;
    }

    .catalog-sidebar a {
        flex: 0 0 auto;
        min-height: 40px;
        padding: 0 14px;
        white-space: nowrap;
        border-radius: 999px;
    }

    .catalog-main,
    .catalog-search,
    .catalog-sort {
        min-width: 0;
    }

    .catalog-toolbar {
        gap: 12px;
    }

    .catalog-toolbar .btn-sm,
    .catalog-toolbar .btn-primary-sm {
        width: 100%;
    }

    .product-detail-badges,
    .product-detail-price,
    .product-detail-actions,
    .purchase-buttons,
    .quantity-selector,
    .admin-shell__actions,
    .admin-shell__meta,
    .admin-row-actions,
    .admin-user-actions {
        flex-wrap: wrap;
    }

    .product-detail-price {
        display: flex;
        align-items: baseline;
        gap: 8px;
    }

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

    .sku-option {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
    }

    .sku-option em {
        grid-column: 2;
    }

    .product-rich-panel {
        padding: 20px;
    }

    .rich-copy {
        max-width: none;
    }

    .cart-summary-row,
    .cart-summary-total,
    .checkout-total,
    .checkout-item {
        gap: 10px;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .checkout-item strong,
    .checkout-total strong,
    .cart-summary-total strong {
        margin-left: auto;
    }

    .site-chat-panel {
        width: min(420px, calc(100vw - 20px));
        right: -2px;
    }

    .admin-workspace-nav__item {
        min-height: 34px;
        padding: 0 8px;
        font-size: 0.86rem;
    }

    .admin-product-cell {
        align-items: flex-start;
    }

    .admin-product-cell__copy,
    .admin-product-cell__copy strong,
    .admin-product-cell__copy small {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .design-header,
    .admin-surface__head,
    .admin-shell__header {
        flex-wrap: wrap;
    }

    .design-tools,
    .design-stage,
    .contact-panel,
    .about-content,
    .value-card-list,
    .order-detail-card,
    .service-card,
    .post-card {
        padding: 18px;
    }

    .design-button-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .design-button-row .btn,
    .design-button-row .btn-sm,
    .admin-surface__head .btn,
    .admin-surface__head .btn-sm,
    .admin-shell__header .btn,
    .admin-shell__header .btn-sm {
        width: 100%;
        justify-content: center;
    }

    .chat-window {
        height: min(52dvh, 420px);
    }

    .chat-bubble {
        max-width: min(86%, 560px);
    }

    .chat-status,
    .post-meta,
    .faq-item p,
    .service-card span {
        overflow-wrap: anywhere;
    }

    .promo-panel.compact-panel .btn {
        width: 100%;
        justify-content: center;
    }

    .admin-action-row,
    .admin-checklist__item {
        min-width: 0;
    }

    .admin-action-row>div,
    .admin-checklist__item>div {
        min-width: 0;
    }

    .home-marquee,
    .lookbook-marquee-section,
    .lookbook-marquee-section .home-section__inner,
    .testimonials-slider {
        overflow: hidden;
    }

    .marquee-track,
    .lookbook-marquee-track {
        will-change: transform;
    }
}

body.junco-template-theme:has(.post-detail-shell),
body.junco-template-theme:has(.post-detail-shell) main {
    background: #ffffff;
}

body.junco-template-theme:has(.post-detail-shell) .post-detail-body {
    background: transparent;
    border: 0;
    box-shadow: none;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    border-radius: 0;
    overflow: visible;
}

body.junco-template-theme:has(.post-detail-shell) .post-detail-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
}

body.junco-template-theme:has(.post-detail-shell) .post-detail-hero__copy {
    width: min(100%, 960px);
    justify-self: center;
    align-items: center;
    box-sizing: border-box;
    padding: 34px 24px 12px;
    text-align: center;
    background: transparent;
    border: 0;
    box-shadow: none;
}

body.junco-template-theme:has(.post-detail-shell) .post-detail-hero__copy h1 {
    max-width: 52rem;
}

body.junco-template-theme:has(.post-detail-shell) .post-detail-meta {
    justify-content: center;
}

body.junco-template-theme:has(.post-detail-shell) .post-detail-layout {
    width: min(100%, 960px);
    grid-template-columns: minmax(0, 1fr);
    justify-self: center;
}

body.junco-template-theme:has(.post-detail-shell) .post-detail-side {
    display: none;
}

body.junco-template-theme:has(.post-detail-shell) .post-html-embed-shell {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body.junco-template-theme:has(.post-detail-shell) .post-html-embed-shell::-webkit-scrollbar {
    display: none;
}

body.junco-template-theme:has(.post-detail-shell) .post-detail-hero__media {
    position: relative;
    isolation: isolate;
    width: min(100%, 960px);
    min-height: 0;
    aspect-ratio: 16 / 7;
    justify-self: center;
}

body.junco-template-theme:has(.post-detail-shell) .post-category--detail-media {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    display: inline-flex;
    margin: 0;
    padding: 8px 12px;
    color: #171615;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 999px;
    box-shadow: 0 3px 12px rgba(23, 22, 21, 0.1);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: none;
    pointer-events: none;
}

body.junco-template-theme:has(.post-detail-shell) .post-detail-summary {
    margin: 0 0 30px;
    padding: 18px 22px;
    color: #626262;
    background: #f2f2f2;
    border-left: 4px solid #b8b8b8;
    border-radius: 0 12px 12px 0;
    font-size: 1.02rem;
    font-style: italic;
    line-height: 1.75;
}

body.junco-template-theme:has(.post-detail-shell) .post-detail-body__tags {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

body.junco-template-theme:has(.post-detail-shell) .post-detail-body__tags .post-tags {
    margin: 0;
}

@media (min-width: 821px) {
    .post-page-eyebrow {
        display: none;
    }

    .post-detail-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .post-detail-hero__copy {
        width: min(100%, 960px);
        justify-self: center;
        align-items: center;
        box-sizing: border-box;
        padding: 34px 24px 12px;
        text-align: center;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .post-detail-hero__copy h1 {
        max-width: 52rem;
    }

    .post-detail-meta {
        justify-content: center;
    }

    .post-detail-hero__media {
        width: min(100%, 960px);
        min-height: 0;
        aspect-ratio: 16 / 7;
        justify-self: center;
    }

    .post-detail-layout {
        width: min(100%, 960px);
        grid-template-columns: minmax(0, 1fr);
        justify-self: center;
    }

    .post-detail-side {
        display: none;
    }

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

    .post-hub-shell .post-spotlight,
    .post-card-collection .post-card--entry {
        position: relative;
        cursor: pointer;
        transform-origin: center;
        transition: transform 0.24s ease, box-shadow 0.24s ease;
    }

    .post-card-collection .post-card--entry {
        grid-template-rows: auto auto;
        align-content: start;
    }

    .post-hub-shell .post-spotlight__media,
    .post-card-collection .post-card__media {
        position: relative;
        isolation: isolate;
    }

    .post-hub-shell .post-spotlight__media img,
    .post-card-collection .post-card__media img {
        display: block;
        transition: transform 0.32s ease;
    }

    .post-card-collection .post-category--media {
        position: absolute;
        z-index: 2;
        top: 14px;
        left: 14px;
        display: inline-flex;
        margin: 0;
        padding: 8px 12px;
        color: #171615;
        background: rgba(255, 255, 255, 0.94);
        border-radius: 999px;
        box-shadow: 0 3px 12px rgba(23, 22, 21, 0.1);
        font-size: 0.76rem;
        font-weight: 800;
        line-height: 1.2;
        text-transform: none;
        pointer-events: none;
    }

    .post-card-collection .post-media-meta {
        position: absolute;
        z-index: 2;
        right: 14px;
        bottom: 14px;
        max-width: calc(100% - 28px);
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 6px 12px;
        padding: 8px 11px;
        color: #ffffff;
        background: rgba(17, 17, 17, 0.76);
        border-radius: 999px;
        box-shadow: 0 4px 14px rgba(17, 17, 17, 0.2);
        font-size: 0.76rem;
        font-weight: 700;
        line-height: 1.25;
        opacity: 0;
        transform: translateY(6px);
        transition: opacity 0.2s ease, transform 0.2s ease;
        pointer-events: none;
    }

    .post-card-collection .post-media-meta>span {
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

    .post-hub-shell .post-spotlight__copy>.post-category,
    .post-hub-shell .post-spotlight__copy>.post-meta,
    .post-card-collection .post-card__body>.post-category,
    .post-card-collection .post-card__body>.post-meta {
        display: none;
    }

    .post-card-collection .post-card__body {
        grid-template-rows: none;
        align-self: start;
        align-content: start;
        align-items: start;
    }

    .post-hub-shell .post-spotlight__copy {
        justify-content: flex-start;
    }

    .post-hub-shell .post-spotlight__copy .post-excerpt,
    .post-card-collection .post-card__body .post-excerpt {
        min-height: 0;
        -webkit-line-clamp: 3;
    }

    .post-hub-shell .post-spotlight__copy h2 a::after,
    .post-card-collection .post-card__body h3 a::after {
        content: "";
        position: absolute;
        z-index: 3;
        inset: 0;
        border-radius: inherit;
    }

    .post-hub-shell .post-spotlight__copy h2 a:focus-visible::after,
    .post-card-collection .post-card__body h3 a:focus-visible::after {
        box-shadow: inset 0 0 0 2px var(--theme-green);
    }

    .post-hub-shell .post-spotlight:hover,
    .post-hub-shell .post-spotlight:focus-within,
    .post-card-collection .post-card--entry:hover,
    .post-card-collection .post-card--entry:focus-within {
        transform: scale(1.015);
        box-shadow: 0 22px 54px rgba(10, 43, 39, 0.14);
    }

    .post-hub-shell .post-spotlight:hover .post-media-meta,
    .post-hub-shell .post-spotlight:focus-within .post-media-meta,
    .post-card-collection .post-card--entry:hover .post-media-meta,
    .post-card-collection .post-card--entry:focus-within .post-media-meta {
        opacity: 1;
        transform: translateY(0);
    }

    .post-hub-shell .post-spotlight:hover .post-spotlight__media img,
    .post-hub-shell .post-spotlight:focus-within .post-spotlight__media img,
    .post-card-collection .post-card--entry:hover .post-card__media img,
    .post-card-collection .post-card--entry:focus-within .post-card__media img {
        transform: scale(1.045);
    }
}

@media (min-width: 821px) and (prefers-reduced-motion: reduce) {
    .post-hub-shell .post-spotlight,
    .post-card-collection .post-card--entry,
    .post-hub-shell .post-spotlight__media img,
    .post-card-collection .post-card__media img,
    .post-card-collection .post-media-meta {
        transition: none;
    }

    .post-hub-shell .post-spotlight:hover,
    .post-hub-shell .post-spotlight:focus-within,
    .post-card-collection .post-card--entry:hover,
    .post-card-collection .post-card--entry:focus-within,
    .post-hub-shell .post-spotlight:hover .post-spotlight__media img,
    .post-hub-shell .post-spotlight:focus-within .post-spotlight__media img,
    .post-card-collection .post-card--entry:hover .post-card__media img,
    .post-card-collection .post-card--entry:focus-within .post-card__media img {
        transform: none;
    }
}

@media (max-width: 640px) {

    .junco-template-theme {
        --theme-page-pad: 1rem;
    }

    .top-strip {
        gap: 12px;
        padding-left: 14px;
        padding-right: 14px;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .top-strip::-webkit-scrollbar {
        display: none;
    }

    .section {
        margin-bottom: 26px;
    }

    .home-section,
    .home-section__inner,
    .testimonials-slider,
    .testimonials-track {
        min-width: 0;
        overflow-x: clip;
    }

    .design-header h1,
    .admin-shell__header h2 {
        overflow-wrap: anywhere;
    }

    .hero-slideshow,
    .slide,
    .slide__content,
    .scrolling-cards__content,
    .scrolling-cards__content-inner,
    .scrolling-cards__cards,
    .scrolling-cards__grid,
    .scrolling-layered-section,
    .scrolling-layered-cards,
    .products-highlight-grid,
    .trust-grid,
    .image-text-grid,
    .collection-cards-grid {
        min-width: 0;
    }

    .section h1 {
        font-size: 1.55rem;
    }

    .section h2 {
        font-size: 1.2rem;
    }

    .page-hero {
        padding: 22px 16px;
    }

    .page-hero .btn,
    .page-hero .btn-sm,
    .product-detail-topbar .btn-sm {
        width: 100%;
    }

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

    .product-detail-img {
        padding: 14px;
    }

    .product-detail-features {
        gap: 10px;
    }

    .feature-item {
        text-align: left;
        align-items: flex-start;
    }

    .sku-option {
        gap: 8px;
        padding: 12px;
    }

    .sku-option span,
    .sku-option em,
    .sku-option small {
        overflow-wrap: anywhere;
    }

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

    .quantity-selector input {
        width: 88px;
    }

    .purchase-buttons,
    .product-detail-actions {
        width: 100%;
    }

    .product-contact-btn {
        margin-top: 0;
    }

    .cart-item {
        grid-template-columns: 56px minmax(0, 1fr);
        padding: 14px;
    }

    .cart-item-visual {
        width: 56px;
        height: 56px;
    }

    .cart-item-info,
    .cart-item-info h3,
    .cart-item-sku {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .cart-item-actions {
        gap: 10px;
        align-items: stretch;
    }

    .form-actions,
    .design-button-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .form-actions .btn,
    .form-actions .btn-sm,
    .design-button-row .btn,
    .design-button-row .btn-sm {
        width: 100%;
        justify-content: center;
    }

    .order-form,
    .contact-form,
    .admin-form {
        max-width: none;
    }

    .design-tools,
    .design-stage,
    .post-card,
    .service-card,
    .contact-panel,
    .about-content,
    .value-card-list,
    .form-panel {
        padding: 16px;
    }

    .design-header {
        align-items: flex-start;
        margin-bottom: 14px;
    }

    .design-header h1 {
        font-size: 1.6rem;
        line-height: 1.05;
    }

    .design-stage {
        overflow: hidden;
    }

    .design-status {
        font-size: 0.84rem;
    }

    .cart-qty-form input {
        width: 100%;
        max-width: 84px;
    }

    .checkout-form-panel,
    .checkout-summary,
    .cart-summary,
    .order-detail-card {
        padding: 18px;
    }

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

    .order-detail-card .admin-table thead {
        display: none;
    }

    .order-detail-card .admin-table,
    .order-detail-card .admin-table tbody,
    .order-detail-card .admin-table tr,
    .order-detail-card .admin-table td {
        display: block;
        width: 100%;
    }

    .order-detail-card .admin-table tr {
        padding: 12px 0;
        border-bottom: 1px solid #edf1f5;
    }

    .order-detail-card .admin-table tr:last-child {
        border-bottom: 0;
    }

    .order-detail-card .admin-table td {
        padding: 6px 0;
        border-bottom: 0;
    }

    .order-detail-card .admin-table td::before {
        display: block;
        margin-bottom: 2px;
        color: var(--muted);
        font-size: 0.76rem;
        font-weight: 800;
        text-transform: uppercase;
    }

    .order-detail-card .admin-table td:nth-child(1)::before {
        content: "Product";
    }

    .order-detail-card .admin-table td:nth-child(2)::before {
        content: "Qty";
    }

    .order-detail-card .admin-table td:nth-child(3)::before {
        content: "Price";
    }

    .order-detail-card .admin-table td:nth-child(4)::before {
        content: "Total";
    }

    .site-chat {
        right: max(10px, env(safe-area-inset-right, 0px));
        bottom: max(10px, env(safe-area-inset-bottom, 0px));
    }

    .site-chat-panel {
        right: -4px;
        bottom: 54px;
        width: min(calc(100vw - 20px), 420px);
        height: min(540px, calc(100dvh - 84px));
    }

    .chat-window {
        height: min(50dvh, 400px);
        padding: 12px;
    }

    .chat-bubble {
        max-width: 92%;
    }

    .chat-compose textarea {
        min-height: 44px;
    }

    .post-meta {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .post-spotlight,
    .post-card--entry,
    .post-detail-hero__copy,
    .post-detail-hero__media,
    .post-detail-body,
    .post-detail-side__card {
        border-radius: 20px;
    }

    .faq-item {
        padding: 12px 14px;
    }

    .service-card strong,
    .post-card h2,
    .post-card h3 {
        overflow-wrap: anywhere;
    }

    .admin-table-wrap {
        margin-left: -2px;
        margin-right: -2px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-metric-card,
    .admin-surface {
        padding: 18px;
    }

    .admin-surface__head {
        margin-bottom: 14px;
    }

    .admin-action-row,
    .admin-checklist__item {
        padding: 14px;
    }

    .admin-metric-card h3 {
        font-size: 2rem;
    }

    .product-overlay-card__content {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
        overflow: hidden;
    }

    .product-overlay-card__content .btn {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
    }

    .product-overlay-card__thumb {
        width: 44px;
        height: 44px;
    }

    .product-overlay-card__title {
        font-size: 0.88rem;
    }

    .testimonial-card {
        padding: 28px 18px;
    }

    .testimonial-card blockquote {
        font-size: 1rem;
        max-width: none;
    }

    .testimonials-slider {
        max-width: 100%;
    }

    .testimonials-track {
        min-height: 260px;
    }

    .testimonials-controls {
        flex-wrap: wrap;
        gap: 12px;
    }

    .testimonials-pagination {
        order: 3;
        width: 100%;
    }

    .product-overlay-card__price {
        overflow-wrap: anywhere;
    }

    .lookbook-card {
        width: min(68vw, 260px);
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
        padding-bottom: 32px;
    }

    .compact-hero,
    .page-hero {
        margin-left: -14px;
        margin-right: -14px;
        border-radius: 0;
    }

    .shop-rail a {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
    }

    .shop-rail small {
        text-align: left;
    }

    .lumo-mobile-panel.theme-mobile-panel {
        width: min(calc(100vw - 24px), 340px);
        max-height: calc(100dvh - 88px);
        overflow-y: auto;
    }

    .user-menu-panel,
    .lumo-user-menu .user-menu-panel {
        position: fixed;
        top: calc(var(--header-height, 72px) + 10px);
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
        min-width: 0;
        transform-origin: top right;
    }

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

    .product-detail-price {
        font-size: 1.45rem;
    }

    .product-detail-price .detail-original-price {
        font-size: 0.88rem;
    }

    .site-chat-panel {
        width: calc(100vw - 20px);
    }

    .design-button-row,
    .form-actions {
        grid-template-columns: 1fr;
    }

    .design-tools,
    .design-stage,
    .post-card,
    .service-card,
    .about-content,
    .value-card-list,
    .contact-panel,
    .form-panel,
    .admin-surface,
    .admin-metric-card {
        padding: 14px;
    }

    .chat-window {
        height: min(48dvh, 360px);
        padding: 10px;
    }

    .chat-bubble {
        max-width: 94%;
        padding: 9px 10px;
    }

    .design-header h1 {
        font-size: 1.45rem;
    }

    .slide__content {
        padding: 22px 16px 108px;
    }

    .slide__title {
        font-size: clamp(1.95rem, 9vw, 2.55rem);
    }

    .slide__desc {
        font-size: 0.9rem;
        max-width: 18rem;
    }

    .slide__actions .btn--lg {
        min-height: 44px;
        padding: 11px 20px;
        font-size: 0.9rem;
    }

    .slideshow-controls {
        left: 16px;
        right: 68px;
        bottom: 14px;
        gap: 10px;
        padding: 9px 10px;
    }

    .slideshow-nav {
        gap: 8px;
    }

    .slideshow-nav__btn {
        width: 36px;
        height: 36px;
    }

    .slideshow-progress {
        min-width: 44px;
        max-width: none;
    }

    .home-section__inner {
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .testimonials-track {
        min-height: 300px;
    }

    .product-overlay-card__content {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 8px;
        padding: 10px;
    }

    .product-overlay-card__thumb {
        width: 40px;
        height: 40px;
    }

    .admin-shell__header h2 {
        font-size: 1.7rem;
    }
}

/* Catalog and product detail refresh */
.catalog-hero-shell {
    padding: 28px 32px;
    background:
        radial-gradient(circle at top right, rgba(19, 137, 124, 0.12), transparent 28%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 246, 0.96));
    border: 1px solid rgba(19, 53, 50, 0.08);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(19, 53, 50, 0.06);
}

.catalog-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 28px;
    align-items: start;
}

.catalog-hero-copy h1 {
    max-width: 12ch;
    margin: 10px 0 12px;
    font-size: clamp(2.3rem, 4vw, 4rem);
    line-height: 0.96;
}

.catalog-hero-copy>p {
    max-width: 60ch;
    color: rgba(21, 34, 31, 0.68);
    font-size: 1.02rem;
    line-height: 1.7;
}

.catalog-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.catalog-category-chips {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
}

.catalog-category-chip {
    display: grid;
    gap: 5px;
    padding: 15px 16px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(19, 53, 50, 0.08);
    border-radius: 18px;
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.catalog-category-chip strong {
    font-size: 0.98rem;
}

.catalog-category-chip small {
    color: var(--muted);
}

.catalog-category-chip:hover,
.catalog-category-chip.is-active {
    background: rgba(237, 247, 247, 0.96);
    border-color: rgba(19, 137, 124, 0.22);
    box-shadow: 0 14px 28px rgba(19, 53, 50, 0.06);
}

.catalog-hero-insight {
    display: grid;
    gap: 16px;
}

.catalog-hero-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.catalog-hero-stat,
.catalog-hero-note,
.catalog-sidebar-panel,
.product-gallery-note,
.product-story-card,
.product-purchase-panel {
    padding: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(19, 53, 50, 0.08);
    border-radius: 20px;
    box-shadow: 0 14px 32px rgba(19, 53, 50, 0.05);
}

.catalog-hero-stat strong {
    display: block;
    margin-bottom: 5px;
    color: var(--teal-dark);
    font-size: 1.8rem;
    line-height: 1;
}

.catalog-hero-stat span,
.catalog-hero-note p {
    color: rgba(21, 34, 31, 0.68);
}

.catalog-hero-note__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--teal-dark);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.catalog-layout--enhanced {
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: 28px;
}

.catalog-sidebar--stacked {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 14px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

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

.catalog-sidebar-panel a {
    border-radius: 12px;
}

.catalog-sidebar-panel--note {
    background: linear-gradient(160deg, rgba(245, 249, 248, 0.96), rgba(255, 255, 255, 0.96));
}

.catalog-note-list {
    display: grid;
    gap: 10px;
    color: rgba(21, 34, 31, 0.7);
    padding-left: 18px;
}

.catalog-toolbar--enhanced {
    padding: 18px;
    border-radius: 20px;
}

.catalog-active-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.catalog-active-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.catalog-active-pill {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    color: var(--ink);
    background: #f4f8f7;
    border: 1px solid rgba(19, 53, 50, 0.08);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 750;
}

.catalog-active-pill.is-static {
    color: var(--teal-dark);
    background: rgba(237, 247, 247, 0.96);
}

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

.catalog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
}

.catalog-pagination__button {
    min-width: 112px;
    justify-content: center;
}

.catalog-pagination__button.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.catalog-pagination__count {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.product-card-meta--spread {
    align-items: flex-start;
    justify-content: space-between;
}

.product-card-flags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.theme-line-badge {
    color: var(--teal-dark);
    background: rgba(237, 247, 247, 0.96);
}

.product-card-specs {
    display: grid;
    gap: 6px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.83rem;
}

.product-card-specs span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.product-price-stack {
    display: grid;
    gap: 4px;
}

.product-price-note {
    color: var(--muted);
    font-size: 0.8rem;
}

.product-detail-shell {
    display: grid;
    gap: 0;
    margin-bottom: 0;
}

.product-detail-initial-view {
    min-width: 0;
    display: grid;
    gap: 16px;
}

.product-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.88rem;
}

.product-breadcrumbs a {
    color: inherit;
}

.product-breadcrumbs a:hover {
    color: var(--teal-dark);
}

.post-breadcrumbs {
    width: 100%;
    min-height: 24px;
    align-items: center;
    margin: 0 0 18px;
    padding: 0;
    color: #52525b;
}

.post-breadcrumbs [aria-current="page"] {
    min-width: 0;
    color: var(--theme-ink);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.page-hero .post-breadcrumbs {
    margin-bottom: 16px;
}

.post-detail-breadcrumbs {
    margin-bottom: 0;
}

.product-lumo-column.product-detail-column>.product-lumo-breadcrumbs {
    width: 100%;
    min-height: 24px;
    display: flex;
    flex: 0 0 auto;
    padding: 2px 0 8px;
    color: #52525b;
    opacity: 1;
    visibility: visible;
}

.product-detail-topbar--split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.product-topbar-note {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.product-detail-layout--refined {
    grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
    gap: 34px;
}

.product-detail-gallery {
    display: grid;
    gap: 16px;
}

.product-detail-layout--refined .product-detail-visual {
    min-height: 560px;
    height: auto;
    border-radius: 24px;
}

.product-thumb-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    gap: 12px;
}

.product-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 8px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(19, 53, 50, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.product-thumb:hover,
.product-thumb.is-active {
    border-color: rgba(19, 137, 124, 0.28);
    box-shadow: 0 14px 24px rgba(19, 53, 50, 0.08);
    transform: translateY(-2px);
}

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

.product-gallery-note strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.product-gallery-note p,
.product-purchase-panel__head p,
.product-reassurance-item span,
.product-story-card p {
    color: rgba(21, 34, 31, 0.68);
}

.product-detail-column {
    display: grid;
    gap: 18px;
    align-self: start;
    position: sticky;
    top: 96px;
}

.product-detail-copy {
    display: grid;
    gap: 10px;
}

.product-detail-copy h1 {
    margin-bottom: 0;
    font-size: clamp(2.35rem, 3.8vw, 4.2rem);
    line-height: 0.95;
}

.product-detail-price {
    margin-bottom: 0;
}

.product-detail-shell .product-detail-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
    color: #e60023;
    font-size: 23px;
    font-weight: 400;
    line-height: 24px;
}

.product-detail-shell .product-detail-price .detail-original-price {
    margin-left: 0;
    color: #666;
    font-size: 15px;
    font-weight: 400;
    line-height: 20px;
    text-decoration: line-through;
}

.product-detail-shell .product-detail-savings {
    align-self: center;
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: #cc0033;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    white-space: nowrap;
}

.product-detail-shell .product-detail-price [hidden] {
    display: none;
}

.product-detail-subprice {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.product-detail-features--refined {
    margin-bottom: 0;
}

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

.product-purchase-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.product-purchase-panel__head h2 {
    margin: 0 0 6px;
    font-size: 1.3rem;
}

.product-panel-stock {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    color: var(--teal-dark);
    background: rgba(237, 247, 247, 0.96);
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
}

.product-purchase-reassurance {
    display: grid;
    gap: 10px;
}

.product-reassurance-item {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    background: #f7fbfa;
    border: 1px solid rgba(19, 53, 50, 0.08);
    border-radius: 14px;
}

.product-reassurance-item strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.product-story-card {
    min-height: 210px;
}

.product-story-card h2 {
    margin: 10px 0 12px;
    font-size: 1.3rem;
    line-height: 1.08;
}

@media (max-width: 1180px) {

    .catalog-category-chips,
    .product-grid--catalog,
    .product-story-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-detail-layout--refined {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
    }

    .product-detail-layout--refined .product-detail-visual {
        min-height: 480px;
    }
}

@media (max-width: 980px) {

    .catalog-hero-grid,
    .catalog-layout--enhanced,
    .product-detail-layout--refined,
    .product-gallery-notes,
    .product-story-grid {
        grid-template-columns: 1fr;
    }

    .catalog-sidebar--stacked,
    .product-detail-column {
        position: static;
        top: auto;
    }

    .catalog-category-chips {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-active-strip,
    .product-detail-topbar--split,
    .product-purchase-panel__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-detail-layout--refined .product-detail-visual {
        min-height: 420px;
    }
}

@media (max-width: 640px) {
    .catalog-hero-shell {
        padding: calc(var(--header-height, 72px) + 18px) 18px 22px;
        border-radius: 20px;
    }

    .catalog-hero-copy h1,
    .product-detail-copy h1 {
        max-width: none;
        font-size: 2rem;
        line-height: 0.98;
    }

    .catalog-category-chips,
    .catalog-hero-stat-grid {
        grid-template-columns: 1fr;
    }

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

    .catalog-toolbar--enhanced,
    .catalog-hero-stat,
    .catalog-hero-note,
    .catalog-sidebar-panel,
    .product-gallery-note,
    .product-story-card,
    .product-purchase-panel {
        padding: 16px;
        border-radius: 18px;
    }

    .catalog-active-pills,
    .product-topbar-note {
        justify-content: flex-start;
    }

    .catalog-pagination {
        gap: 8px;
    }

    .catalog-pagination__button {
        min-width: 0;
        padding-inline: 10px;
    }

    .product-detail-layout--refined .product-detail-visual {
        min-height: 300px;
        border-radius: 18px;
    }

    .product-thumb-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-purchase-panel__head h2,
    .product-story-card h2 {
        font-size: 1.15rem;
    }

    .product-panel-stock {
        white-space: normal;
    }

    .product-card-flags {
        justify-content: flex-start;
    }
}

/* Final product-detail specificity layer */
.product-lumo-layout.product-detail-layout {
    grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.88fr);
    gap: clamp(40px, 6vw, 76px);
}

.product-detail-media-pane,
.product-gallery-primary {
    min-width: 0;
}

.product-gallery-primary {
    display: grid;
    align-content: start;
    gap: 22px;
}

.product-gallery-accordions {
    width: 80%;
    justify-self: center;
}

@media (min-width: 1025px) {
    .product-lumo-layout.product-detail-layout {
        height: max(440px, calc(100dvh - var(--header-height, 86px) - 104px));
        align-items: stretch;
        overflow: hidden;
    }

    .product-detail-media-pane,
    .product-lumo-column.product-detail-column {
        min-height: 0;
        height: 100%;
        overflow-y: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .product-detail-media-pane::-webkit-scrollbar,
    .product-lumo-column.product-detail-column::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .product-detail-media-pane {
        /* 阻止左栏滚到底后链式滚动整页，避免布局上移导致视觉回滚。 */
        overscroll-behavior-y: contain;
        padding-right: 8px;
    }

    .product-lumo-column.product-detail-column {
        overscroll-behavior-y: contain;
    }

    .product-lumo-column.product-detail-column {
        position: static;
        align-self: stretch;
        align-content: start;
        padding-right: 8px;
    }

}

.product-lumo-visual.product-detail-visual {
    width: 80%;
    min-width: 0;
    min-height: 0;
    height: auto;
    max-height: min(68vh, 680px);
    aspect-ratio: 1 / 1.02;
    background: transparent;
    border: 0;
    border-radius: 14px;
    display: block;
    justify-self: center;
    position: relative;
    overflow: visible;
}

.product-detail-visual-item {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 14px;
}

.product-detail-visual-item[hidden] {
    display: none;
}

.product-detail-visual-item.is-active {
    position: relative;
    z-index: 1;
}

.product-detail-visual-item.is-gallery-leaving {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.product-lumo-visual .product-detail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
    border-radius: 14px;
}

.product-gallery-nav {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(17, 17, 17, 0.14);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(17, 17, 17, 0.12);
    transform: translateY(-50%);
    cursor: pointer;
}

.product-gallery-nav--previous {
    right: calc(100% + 10px);
}

.product-gallery-nav--next {
    left: calc(100% + 10px);
}

.product-gallery-nav:hover:not(:disabled) {
    background: #fff;
}

.product-gallery-nav:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
}

.product-gallery-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.product-lumo-gallery.product-detail-gallery.has-media-rail {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
}

.product-media-rail {
    min-width: 0;
    min-height: 0;
    height: min(68vh, 680px);
    max-height: min(68vh, 680px);
    align-self: start;
    contain: size;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    padding: 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.product-media-rail::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.product-lumo-gallery .product-media-rail .product-sku-thumb-strip {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: visible;
}

.product-lumo-gallery .product-media-rail .product-thumb {
    width: 100%;
    flex: 0 0 auto;
    padding: 0;
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none;
    transform: none;
}

.product-lumo-gallery .product-media-rail .product-thumb img {
    border-radius: 0;
}

.product-lumo-gallery .product-media-rail .product-thumb:hover {
    border-color: #71717a;
    box-shadow: none;
    transform: none;
}

.product-lumo-gallery .product-media-rail .product-thumb.is-active {
    border: 2px solid #111;
    box-shadow: none;
    transform: none;
}

.product-lumo-gallery .product-media-rail .product-thumb:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.product-media-rail .product-detail-thumb-slot {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #e4e4e7;
}

.product-lumo-column.product-detail-column {
    gap: 22px;
    top: 92px;
}

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

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

.junco-template-theme .product-lumo-add.btn {
    color: #111;
    background: #efefed;
    border-color: #efefed;
}

.junco-template-theme .product-lumo-add.btn:hover {
    color: #fff;
    background: #111;
    border-color: #111;
}

.junco-template-theme .product-lumo-buy.btn {
    color: #fff;
    background: #111;
    border-color: #111;
}

.junco-template-theme .product-lumo-buy.btn:hover {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
}

body:has(.product-lumo-shell) .site-chat {
    right: max(18px, env(safe-area-inset-right, 0px));
    left: auto;
}

body:has(.product-lumo-shell) .site-chat-toggle {
    width: 48px;
    min-width: 48px;
    padding: 0;
    justify-content: center;
}

.account-menu-logout,
.account-menu-logout button {
    width: 100%;
}

/* ================= Customer profile and avatars ================= */
.storefront-avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
    color: var(--theme-ink, #111111);
    background: #f3f1ed;
    border-radius: 999px;
}

.storefront-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.storefront-avatar--header,
.storefront-avatar--menu {
    width: 30px;
    height: 30px;
}

.storefront-avatar--confirm {
    width: 80px;
    height: 80px;
}

.storefront-avatar__fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.user-menu-meta .storefront-avatar,
.storefront-avatar .storefront-avatar__fallback {
    display: inline-flex;
}

.storefront-avatar .storefront-avatar__fallback[hidden] {
    display: none;
}

.lumo-user-menu .user-menu-meta,
.user-menu .user-menu-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-menu-meta__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    height: auto;
}

.user-menu-meta__copy strong,
.user-menu-meta__copy>span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.15;
}

.user-menu-meta__copy strong {
    font-size: calc(0.88rem + 1px);
}

.user-menu-meta__copy>span {
    margin-top: 0;
    font-size: calc(0.74rem + 1px);
    line-height: 1.4;
    padding-block: 1px;
}

.account-center-hero,
.profile-page-hero {
    padding-top: 18px;
    padding-bottom: 16px;
}

.account-center-hero h1 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.35em;
}

.account-center-hero h1 .icon {
    width: 1em;
    height: 1em;
    flex: 0 0 1em;
    margin: 0;
}

.account-center-shell,
.profile-shell {
    display: grid;
    grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(18px, 3vw, 32px);
    padding-top: 18px;
    padding-bottom: 40px;
}

.account-center-sidebar {
    position: sticky;
    top: calc(var(--header-height, 86px) + 24px);
    display: grid;
    gap: 8px;
    padding: 8px;
    background: #f7f7f5;
    border: 1px solid #e4e4e0;
    border-radius: 18px;
}

.account-center-sidebar__identity {
    min-width: 0;
    padding: 12px 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #e4e4e0;
}

.storefront-avatar--account {
    width: 48px;
    height: 48px;
}

.account-center-sidebar__identity-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.account-center-sidebar__identity-copy strong,
.account-center-sidebar__identity-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-center-sidebar__identity-copy strong {
    color: #171717;
    font-size: 0.9rem;
}

.account-center-sidebar__identity-copy span {
    color: #73706b;
    font-size: 0.7rem;
    white-space: normal;
    overflow-wrap: anywhere;
}

.account-center-nav {
    display: grid;
    gap: 6px;
}

.account-center-nav__item {
    min-height: 42px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #55524d;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 750;
}

.account-center-nav__item:hover {
    color: #171717;
    background: #ecece8;
}

.account-center-nav__item.is-active {
    color: #ffffff;
    background: var(--theme-ink, #111111);
}

.account-center-nav__item.is-active:hover {
    color: #ffffff;
    background: var(--theme-ink, #111111);
}

.account-center-content,
.profile-content,
.profile-form {
    min-width: 0;
}

.profile-form {
    padding: clamp(18px, 3vw, 30px);
    background: #ffffff;
    border: 1px solid #e4e4e0;
    border-radius: 20px;
    box-shadow: 0 22px 60px rgba(17, 17, 17, 0.07);
}

.profile-section-heading {
    padding-bottom: 18px;
    border-bottom: 1px solid #ecece8;
}

.profile-section-heading h2 {
    margin: 4px 0 0;
    font-size: clamp(1.55rem, 2.5vw, 2rem);
}

.profile-section-heading p {
    margin: 8px 0 0;
    color: #67645f;
}

.profile-confirm-dialog p {
    margin: 0;
    color: #67645f;
    line-height: 1.65;
}

.profile-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 18px 0;
}

.profile-fields .form-group {
    margin: 0;
}

.profile-fields input[readonly] {
    color: #67645f;
    background: #f7f7f5;
    cursor: not-allowed;
}

.profile-password-form {
    margin-top: 20px;
}

.profile-password-controls,
.profile-password-methods {
    min-width: 0;
    border: 0;
}

.profile-password-methods {
    margin: 18px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.profile-password-methods legend {
    margin-bottom: 10px;
    font-weight: 700;
}

.profile-password-methods label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.profile-password-methods input {
    width: auto;
    accent-color: var(--teal);
}

.profile-password-email {
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}

.profile-password-code {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-password-code .form-group {
    flex: 1 1 180px;
    margin: 0;
}

.profile-password-code button {
    min-height: 44px;
}

.profile-avatar-fieldset {
    min-width: 0;
    margin: 0;
    padding: 18px 0 0;
    border: 0;
    border-top: 1px solid #ecece8;
}

.profile-avatar-fieldset>legend {
    padding: 0;
    color: #171717;
    font-size: clamp(1.45rem, 2.4vw, 1.85rem);
    font-weight: 850;
    letter-spacing: -0.025em;
}

.profile-avatar-editor {
    display: grid;
    grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
    align-items: stretch;
    gap: clamp(16px, 2.4vw, 24px);
    margin-top: 18px;
}

.profile-avatar-option {
    min-width: 0;
    padding: clamp(18px, 2.4vw, 24px);
    background: #ffffff;
    border: 1px solid #e3e2dd;
    border-radius: 20px;
}

.profile-avatar-option--random {
    display: flex;
    flex-direction: column;
}

.profile-avatar-option__head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-avatar-option__icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    color: #ffffff;
    background: linear-gradient(145deg, #1e655b, #0a4b43);
    border-radius: 13px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.profile-avatar-option__icon .icon {
    width: 23px;
    height: 23px;
    margin: 0;
    display: block;
}

.profile-avatar-option h3 {
    margin: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 1.18rem;
    font-weight: 850;
    line-height: 1.2;
}

.profile-upload-control {
    width: min(100%, 184px);
    min-height: 44px;
    margin-top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;
    color: #ffffff;
    background: #171717;
    border-radius: 999px;
    font-size: 0.94rem;
    font-weight: 800;
    cursor: pointer;
}

.profile-upload-control:focus-within {
    outline: 2px solid #0d766e;
    outline-offset: 3px;
}

.profile-upload-control input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.profile-upload-name {
    max-width: min(100%, 184px);
    margin-top: 8px;
    display: block;
    overflow: hidden;
    color: #67645f;
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-avatar-upload {
    width: 100%;
    display: grid;
    justify-items: center;
}

.profile-avatar-upload small {
    margin-top: 6px;
    color: #73706b;
    font-size: 0.72rem;
}

.profile-avatar-mobile-actions {
    display: none;
}

.profile-style-dialog {
    width: min(480px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    box-sizing: border-box;
    padding: 20px 20px 0;
    color: #171717;
    background: #fff;
    border: 0;
    border-radius: 20px;
    overflow-y: auto;
}

.profile-style-dialog::backdrop {
    background: rgba(15, 20, 18, 0.58);
}

.profile-style-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.profile-style-dialog__header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.profile-style-dialog__header button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: inherit;
    background: #f1f1ef;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.profile-style-dialog__content .profile-style-grid {
    max-height: min(420px, calc(100dvh - 140px));
    padding-bottom: 0;
}

.profile-style-dialog__content .profile-style-retry {
    margin-top: 12px;
}

.profile-style-grid[hidden],
.profile-style-retry[hidden] {
    display: none;
}

.profile-style-grid {
    max-height: 244px;
    margin-top: 18px;
    padding: 1px 7px 1px 1px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(49, 90, 85, 0.16) transparent;
}

.profile-style-grid::-webkit-scrollbar {
    width: 6px;
    height: 0;
}

.profile-style-grid::-webkit-scrollbar-track {
    background: transparent;
}

.profile-style-grid::-webkit-scrollbar-thumb {
    background: rgba(49, 90, 85, 0.14);
    border: 1px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
}

.profile-style-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(49, 90, 85, 0.24);
    background-clip: padding-box;
}

.profile-style-grid::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

.profile-style-card {
    position: relative;
    min-width: 0;
    min-height: 104px;
    padding: 10px 8px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 7px;
    color: #45423e;
    background: #ffffff;
    border: 1px solid #dfddd7;
    border-radius: 16px;
    cursor: pointer;
    transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.profile-style-card:has(input:checked) {
    color: #0f6f63;
    border-color: #0d766e;
    background: #fbfffd;
    box-shadow: none;
}

.profile-style-card:has(input:focus-visible) {
    outline: 2px solid #0d766e;
    outline-offset: 2px;
}

.profile-style-card input {
    position: absolute;
    inset: 0;
    appearance: none;
    opacity: 0;
    outline: none;
    cursor: pointer;
}

.profile-style-card img {
    width: 62px;
    height: 62px;
    object-fit: cover;
    border-radius: 999px;
}

.profile-style-card span {
    max-width: 100%;
    overflow: hidden;
    font-size: 0.76rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-style-status {
    margin-top: 12px;
    padding: 10px;
    color: #4f4c47;
    background: #f1f1ef;
    border-radius: 10px;
    font-size: 0.8rem;
}

.profile-style-status[data-type="error"] {
    color: #8b302b;
    background: #fff0ee;
}

.profile-avatar-style-actions {
    margin-top: auto;
    padding-top: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-avatar-style-actions .profile-style-retry {
    min-width: 90px;
    color: #252525;
    background: #f0f2f5;
    border-color: transparent;
}

.profile-avatar-style-actions .profile-randomize {
    min-width: 160px;
    color: #ffffff;
    background: linear-gradient(135deg, #159b89, #087d70);
    border-color: transparent;
}

.profile-form .btn,
.profile-form .btn-sm,
.profile-confirm-dialog .btn,
.profile-confirm-dialog .btn-sm {
    min-height: 44px;
    padding: 11px 20px;
    font-size: 0.94rem;
    font-weight: 750;
}

.profile-avatar-working-preview {
    margin: 0;
    padding: clamp(22px, 3vw, 30px) 18px;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: center;
    gap: 14px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 30%, rgba(197, 235, 229, 0.28), transparent 55%),
        #fbfdfc;
    border: 1px solid rgba(13, 118, 110, 0.28);
    border-radius: 20px;
}

.profile-avatar-working-preview[data-pending="true"] {
    background:
        radial-gradient(circle at 50% 30%, rgba(172, 228, 220, 0.4), transparent 58%),
        #f6fcfa;
    border-color: rgba(13, 118, 110, 0.48);
    box-shadow: none;
}

.profile-avatar-working-preview__image {
    width: clamp(132px, 14vw, 168px);
    height: clamp(132px, 14vw, 168px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #45423e;
    background: #ffffff;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 18px 36px rgba(17, 56, 50, 0.12);
}

.profile-avatar-working-preview__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-working-preview__copy {
    min-width: 0;
}

.profile-avatar-working-preview__copy h3 {
    margin: 2px 0 10px;
    font-size: 1.2rem;
    font-weight: 850;
}

.profile-avatar-working-preview__state {
    width: fit-content;
    min-height: 32px;
    margin: 0 auto;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #315a55;
    background: rgba(229, 242, 239, 0.88);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1.2;
}

.profile-avatar-working-preview__state-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    background: #118777;
    border-radius: 999px;
}

.profile-avatar-working-preview[data-pending="true"] .profile-avatar-working-preview__state {
    color: #8a5a00;
    background: #fff3c4;
}

.profile-avatar-working-preview[data-pending="true"] .profile-avatar-working-preview__state-dot {
    background: #d79600;
}

.profile-avatar-working-preview__notice {
    margin-top: 7px;
    display: block;
    color: #0f6f63;
    font-size: 0.82rem;
    line-height: 1.5;
}

.profile-avatar-working-preview__notice[hidden] {
    display: none;
}

.profile-randomize.is-loading {
    opacity: 0.7;
    cursor: wait;
}

.profile-form-status {
    margin: 14px 0 0;
    padding: 10px 12px;
    color: #315a55;
    background: #eef7f4;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 700;
}

.profile-form-status[data-type="error"] {
    color: #8b302b;
    background: #fff0ee;
}

.profile-save-state {
    margin: 18px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #73706b;
    font-size: 0.86rem;
    font-weight: 750;
}

.profile-save-state[data-ready="true"] {
    color: #176e64;
}

.profile-save-state .icon {
    width: 18px;
    height: 18px;
}

.profile-actions {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-actions>button {
    min-width: 150px;
}

.profile-actions [data-profile-save] {
    color: #ffffff;
    background: linear-gradient(135deg, #159b89, #087d70);
    border-color: transparent;
}

.profile-actions [data-profile-reset] {
    color: #252525;
    background: #f0f2f5;
    border-color: transparent;
}

.profile-actions button:disabled,
.profile-confirm-dialog button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.profile-toast {
    position: fixed;
    top: calc(var(--header-height, 86px) + 12px);
    left: 50%;
    right: auto;
    bottom: auto;
    z-index: 1000;
    max-width: min(360px, calc(100vw - 32px));
    min-height: 48px;
    padding: 11px 16px 11px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    background: #153f3a;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    box-shadow: 0 18px 46px rgba(17, 43, 39, 0.24);
    font-size: 0.86rem;
    font-weight: 750;
    opacity: 0;
    transform: translate(-50%, -12px);
    transition: opacity 180ms ease, transform 180ms ease;
    pointer-events: none;
}

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

.profile-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.profile-toast__icon {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 26px;
    color: #0f6f63;
    background: #dff5ee;
    border-radius: 999px;
    aspect-ratio: 1;
    padding: 0;
    line-height: 1;
}

.profile-toast__icon .icon {
    display: block;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin: 0;
}

.profile-confirm-dialog {
    width: min(calc(100vw - 32px), 480px);
    max-height: calc(100dvh - 32px);
    padding: 0;
    overflow-y: auto;
    color: #171717;
    background: #ffffff;
    border: 0;
    border-radius: 22px;
    box-shadow: 0 30px 90px rgba(17, 17, 17, 0.3);
}

.profile-style-dialog[open],
.profile-confirm-dialog[open] {
    position: fixed;
    inset: 50% auto auto 50%;
    margin: 0;
    transform: translate(-50%, -50%);
}

.profile-confirm-dialog::backdrop {
    background: rgba(15, 20, 18, 0.58);
    backdrop-filter: blur(4px);
}

.profile-confirm-dialog__body {
    padding: 28px;
}

.profile-confirm-dialog h2 {
    margin: 6px 0 18px;
}

.profile-confirm-summary {
    margin-bottom: 18px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f7f7f5;
    border-radius: 16px;
}

.profile-confirm-summary>div {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.profile-confirm-summary strong,
.profile-confirm-summary span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-confirm-summary span {
    color: #67645f;
    font-size: 0.78rem;
}

.profile-confirm-dialog__actions {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.profile-confirm-dialog__actions>button {
    flex: 1 1 0;
}

.account-history {
    padding: clamp(18px, 3vw, 30px);
    background: #ffffff;
    border: 1px solid #e4e4e0;
    border-radius: 20px;
    box-shadow: 0 22px 60px rgba(17, 17, 17, 0.07);
}

.account-center-section-heading {
    padding-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid #ecece8;
}

.account-center-section-heading h2 {
    margin: 0;
    font-size: clamp(1.55rem, 2.5vw, 2rem);
}

.account-history-count {
    flex: 0 0 auto;
    padding: 7px 11px;
    color: #3f3f3c;
    background: #f3f3f0;
    border: 1px solid #e4e4e0;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
}

.account-history-grid {
    padding-top: 20px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
}

.account-history-card {
    min-width: 0;
    overflow: hidden;
    background: #fafaf8;
    border: 1px solid #e5e4df;
    border-radius: 16px;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.account-history-card:hover {
    border-color: #c8c6c0;
    box-shadow: 0 16px 34px rgba(17, 17, 17, 0.09);
    transform: translateY(-2px);
}

.account-history-card__media {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #45423e;
    background: #f1f0ec;
}

.account-history-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 240ms ease;
}

.account-history-card:hover .account-history-card__media img {
    transform: scale(1.025);
}

.account-history-card__placeholder {
    color: #85817a;
}

.account-history-card__arrow {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(17, 17, 17, 0.86);
    border-radius: 999px;
}

.account-history-card__body {
    padding: 10px 12px;
}

.account-history-card__body time {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #76726b;
    font-size: 0.7rem;
    font-weight: 700;
}

.account-history-card__body h3 {
    margin: 6px 0 8px;
    font-size: 0.98rem;
    line-height: 1.4;
}

.account-history-card__body h3 a {
    color: #171717;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.account-history-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.account-history-card__footer>strong {
    color: #171717;
    font-size: 0.9rem;
}

.account-history-card__footer>span {
    display: flex;
    gap: 4px;
}

.account-history-card__footer em {
    padding: 4px 6px;
    color: #315a55;
    background: #e8f2ef;
    border-radius: 999px;
    font-size: 0.62rem;
    font-style: normal;
    font-weight: 800;
}

.account-history-pagination {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #ecece8;
}

.account-history-pagination__controls {
    display: grid;
    grid-template-columns: minmax(108px, auto) minmax(0, 1fr) minmax(108px, auto);
    align-items: center;
    gap: 12px;
}

.account-history-pagination__direction,
.account-history-pagination__page {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #171717;
    background: #ffffff;
    border: 1px solid #d8d8d3;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1;
}

.account-history-pagination__direction {
    padding: 9px 14px;
    gap: 5px;
}

.account-history-pagination__direction:last-child {
    justify-self: end;
}

.account-history-pagination__direction:hover,
.account-history-pagination__page:hover {
    color: #ffffff;
    background: #171717;
    border-color: #171717;
}

.account-history-pagination__direction:focus-visible,
.account-history-pagination__page:focus-visible {
    outline: 3px solid rgba(17, 17, 17, 0.2);
    outline-offset: 2px;
}

.account-history-pagination__direction.is-disabled {
    color: #aaa7a1;
    background: #f8f8f6;
    border-color: #ecece8;
    cursor: default;
}

.account-history-pagination__pages {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.account-history-pagination__page {
    width: 38px;
    padding: 0;
    font-variant-numeric: tabular-nums;
}

.account-history-pagination__page.is-current {
    color: #ffffff;
    background: #171717;
    border-color: #171717;
}

.account-history-pagination__ellipsis {
    width: 22px;
    color: #85817a;
    font-size: 0.82rem;
    text-align: center;
}

.account-history-pagination__summary {
    margin: 12px 0 0;
    color: #76726b;
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    text-align: center;
}

.account-history-empty {
    min-height: 320px;
    padding: 42px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.account-history-empty__icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #315a55;
    background: #eef7f4;
    border-radius: 18px;
}

.account-history-empty h3 {
    margin: 16px 0 6px;
}

.account-history-empty p {
    margin: 0 0 20px;
    color: #67645f;
}

/* Desktop profile spacing uses 70% of the previous values for a 30% tighter layout. */
@media (min-width: 901px) {
    .profile-page-hero {
        padding-top: 13px;
        padding-bottom: 11px;
    }

    .profile-page-hero h1 {
        margin-bottom: 0;
    }

    .profile-shell {
        gap: clamp(13px, 2.1vw, 22px);
        padding-top: 13px;
        padding-bottom: 28px;
    }

    .profile-shell .account-center-sidebar {
        top: calc(var(--header-height, 86px) + 17px);
        gap: 6px;
        padding: 6px;
    }

    .profile-shell .account-center-sidebar__identity {
        padding: 8px 7px 10px;
        gap: 7px;
    }

    .profile-shell .account-center-nav {
        gap: 4px;
    }

    .profile-shell .account-center-nav__item {
        padding: 6px 8px;
        gap: 6px;
    }

    .profile-form {
        padding: clamp(13px, 2.1vw, 21px);
    }

    .profile-section-heading {
        padding-bottom: 13px;
    }

    .profile-section-heading h2 {
        margin-top: 0;
    }

    .profile-section-heading p {
        margin-top: 6px;
    }

    .profile-fields {
        gap: 10px;
        padding: 13px 0;
    }

    .profile-avatar-fieldset {
        padding-top: 13px;
    }

    .profile-avatar-editor {
        gap: clamp(11px, 1.68vw, 17px);
        margin-top: 13px;
    }

    .profile-avatar-option {
        padding: clamp(13px, 1.68vw, 17px);
    }

    .profile-avatar-option__head {
        gap: 8px;
    }

    .profile-style-grid {
        margin-top: 13px;
        padding-right: 5px;
        gap: 7px;
    }

    .profile-style-card {
        padding: 7px 6px;
        gap: 5px;
    }

    .profile-avatar-style-actions {
        padding-top: 13px;
        gap: 7px;
    }

    .profile-avatar-working-preview {
        padding: clamp(15px, 2.1vw, 21px) 13px;
        gap: 10px;
    }

    .profile-avatar-working-preview__copy h3 {
        margin-bottom: 7px;
    }

    .profile-avatar-working-preview__notice {
        margin-top: 5px;
    }

    .profile-form-status {
        margin-top: 10px;
        padding: 7px 8px;
    }

    .profile-save-state {
        margin-top: 13px;
        gap: 6px;
    }

    .profile-actions {
        margin-top: 11px;
        gap: 7px;
    }
}

@media (max-width: 900px) {
    .account-center-shell,
    .profile-shell {
        grid-template-columns: 1fr;
    }

    .account-center-sidebar {
        position: static;
    }

    .account-center-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 640px) {
    .account-center-hero,
    .profile-page-hero {
        text-align: left;
    }

    .account-center-sidebar__identity {
        padding-inline: 8px;
    }

    .account-center-nav {
        grid-template-columns: 1fr;
    }

    .profile-form {
        padding: 16px 14px;
        border-radius: 18px;
    }

    .profile-avatar-editor {
        grid-template-columns: 1fr;
    }

    .profile-avatar-option--random {
        display: none;
        padding-bottom: 0;
    }

    .profile-avatar-mobile-actions {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-top: 8px;
    }

    .profile-style-trigger {
        min-width: 0;
        max-width: 60%;
        min-height: 44px;
        margin-left: auto;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        color: #171717;
        background: #fff;
        border: 1px solid #dfddd7;
        border-radius: 12px;
        font: inherit;
        cursor: pointer;
    }

    .profile-style-trigger span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .profile-style-trigger .icon {
        flex-shrink: 0;
    }

    .profile-fields {
        grid-template-columns: 1fr;
    }

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

    .profile-avatar-style-actions {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .profile-avatar-style-actions>button {
        flex: 1 1 130px;
    }

    .profile-avatar-working-preview__image {
        width: 128px;
        height: 128px;
    }

    .profile-actions,
    .profile-confirm-dialog__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-actions button,
    .profile-confirm-dialog__actions button {
        width: 100%;
    }

    .account-history {
        padding: 16px 14px;
        border-radius: 18px;
    }

    .account-center-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-history-grid {
        grid-template-columns: 1fr;
    }

    .account-history-pagination__controls {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 10px;
    }

    .account-history-pagination__direction {
        width: 100%;
    }

    .account-history-pagination__pages {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .account-history-card,
    .account-history-card__media img,
    .profile-style-card,
    .profile-toast {
        transition: none;
    }
}

.account-menu-logout button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.lumo-user-menu .user-menu-panel a .icon-inline,
.account-menu-logout button .icon-inline {
    margin-right: 0;
}

.account-menu-logout button:hover,
.account-menu-logout button:focus-visible {
    color: var(--teal-dark);
    background: var(--teal-soft);
}

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

    .product-detail-media-pane,
    .product-lumo-column.product-detail-column {
        height: auto;
        position: static;
        overflow: visible;
    }

    .product-gallery-accordions {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .product-lumo-gallery.product-detail-gallery.has-media-rail {
        grid-template-columns: 60px minmax(0, 1fr);
        gap: 8px;
    }

    .product-media-rail,
    .product-lumo-gallery .product-media-rail .product-sku-thumb-strip {
        gap: 6px;
    }

    .product-media-rail .product-detail-thumb-slot {
        gap: 6px;
        padding-top: 10px;
    }
}

/* Admin product editor aligned with the storefront purchase column */
.admin-product-rich-editor {
    margin-top: 4px;
}

.admin-quill-editor {
    min-height: 280px;
    background: #fff;
}

.admin-rich-editor .ql-toolbar,
.admin-product-rich-editor .ql-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
    padding: 9px 10px;
    background: #f4f6f5;
    border-color: rgba(17, 17, 17, 0.12);
    border-radius: 8px 8px 0 0;
}

.admin-rich-editor .ql-toolbar .ql-formats,
.admin-product-rich-editor .ql-toolbar .ql-formats {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-right: 6px;
}

.admin-rich-editor .ql-container,
.admin-product-rich-editor .ql-container {
    min-height: 280px;
    overflow: hidden;
    background: #fff;
    border-color: rgba(17, 17, 17, 0.12);
    border-radius: 0 0 8px 8px;
    font-family: inherit;
    font-size: 0.95rem;
}

.admin-rich-editor .ql-editor,
.admin-product-rich-editor .ql-editor {
    min-height: inherit;
    padding: 18px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.admin-rich-editor .ql-container:focus-within,
.admin-product-rich-editor .ql-container:focus-within {
    border-color: rgba(16, 132, 116, 0.48);
    box-shadow: 0 0 0 4px rgba(16, 132, 116, 0.11);
}

.admin-product-rich-editor .admin-quill-editor,
.admin-product-rich-editor .ql-container {
    min-height: 230px;
}

.admin-product-detail-preview {
    display: grid;
    gap: 10px;
    padding: 14px;
    color: #171717;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 8px;
}

.admin-product-detail-preview__main-label,
.admin-product-detail-preview__thumb-label {
    color: rgba(21, 34, 31, 0.58);
    font-size: 0.7rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.admin-product-detail-preview__thumb-label {
    margin-top: 2px;
}

.admin-product-detail-preview__media {
    width: min(100%, 220px);
    aspect-ratio: 1;
    justify-self: center;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: rgba(21, 34, 31, 0.58);
    background: rgba(237, 240, 236, 0.94);
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 8px;
}

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

.admin-product-detail-preview__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-product-detail-preview__thumb {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    padding: 3px;
    color: rgba(21, 34, 31, 0.68);
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 6px;
    cursor: pointer;
}

.admin-product-detail-preview__thumb.is-active {
    border-color: var(--theme-green);
    box-shadow: 0 0 0 2px rgba(16, 132, 116, 0.12);
}

.admin-product-detail-preview__thumb img {
    width: 100%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 4px;
    background: rgba(237, 240, 236, 0.94);
    object-fit: cover;
}

.admin-product-detail-preview__thumb small {
    display: none;
}

.admin-product-detail-preview__crumb {
    color: #737373;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-product-detail-preview h4 {
    margin: 0;
    font-size: clamp(1.25rem, 1.8vw, 1.65rem);
    line-height: 1.02;
}

.admin-product-detail-preview p {
    margin: 0;
    color: #676767;
    font-size: 0.86rem;
    line-height: 1.55;
}

.admin-product-detail-preview__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-product-detail-preview__price strong {
    font-size: 1.15rem;
}

.admin-product-detail-preview__price span {
    color: #858585;
    font-size: 0.78rem;
    text-decoration: line-through;
}

.admin-product-detail-preview__stock {
    color: #c83b32;
    font-size: 0.78rem;
}

.admin-product-detail-preview__stock.is-preorder {
    color: var(--theme-green-dark);
}

.admin-product-detail-preview__option {
    display: grid;
    gap: 5px;
    padding-top: 4px;
}

.admin-product-detail-preview__option span {
    color: #737373;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-product-detail-preview__option strong {
    width: fit-content;
    max-width: 100%;
    padding: 8px 11px;
    overflow-wrap: anywhere;
    border: 1px solid #191919;
    border-radius: 999px;
    font-size: 0.78rem;
}

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

.admin-product-detail-preview__actions span {
    min-height: 40px;
    display: grid;
    place-items: center;
    padding: 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
}

.admin-product-detail-preview__actions span:first-child {
    background: #efefed;
}

.admin-product-detail-preview__actions span:last-child {
    color: #fff;
    background: #111;
}

.admin-product-detail-preview__trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding-top: 10px;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.admin-product-detail-preview__trust span {
    color: #707070;
    font-size: 0.65rem;
    line-height: 1.3;
    text-align: center;
}

.admin-product-detail-preview.product-lumo-shell {
    width: 100%;
    padding: 12px;
    gap: 0;
    color: #171717;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 8px;
}

.admin-product-detail-preview .admin-product-detail-preview__layout.product-lumo-layout.product-detail-layout,
.admin-product-detail-preview .admin-product-detail-preview__layout.product-lumo-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.admin-product-detail-preview .product-lumo-gallery {
    display: grid;
    gap: 8px;
}

.admin-product-detail-preview .admin-product-detail-preview__media.product-lumo-visual.product-detail-visual,
.admin-product-detail-preview .admin-product-detail-preview__media.product-lumo-visual {
    width: 100%;
    max-width: none;
    aspect-ratio: 1 / 0.92;
    justify-self: stretch;
    border: 0;
    border-radius: 10px;
    background: #f1f1ef;
}

.admin-product-detail-preview .product-lumo-visual .product-detail-img {
    padding: 16px;
    object-fit: contain;
}

.admin-product-detail-preview .product-shape {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: rgba(21, 34, 31, 0.42);
}

.admin-product-detail-preview .product-shape[hidden] {
    display: none;
}

.admin-product-detail-preview .product-thumb-strip {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.admin-product-detail-preview .product-thumb {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    padding: 2px;
    border-radius: 6px;
}

.admin-product-detail-preview .product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.admin-product-detail-preview .product-lumo-column.product-detail-column,
.admin-product-detail-preview .product-lumo-column {
    position: static;
    display: grid;
    gap: 10px;
}

.admin-product-detail-preview .product-lumo-breadcrumbs {
    font-size: 0.68rem;
}

.admin-product-detail-preview .product-lumo-copy {
    display: grid;
    gap: 8px;
}

.admin-product-detail-preview .product-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
}

.admin-product-detail-preview .product-detail-badges .badge {
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 0.68rem;
}

.admin-product-detail-preview .product-lumo-copy.product-detail-copy h1,
.admin-product-detail-preview .product-lumo-copy h1 {
    max-width: none;
    margin: 0;
    font-size: clamp(1.28rem, 4.4vw, 1.7rem);
    line-height: 1.04;
}

.admin-product-detail-preview .product-lumo-price {
    margin: 0;
    font-size: 1.08rem;
}

.admin-product-detail-preview .detail-original-price {
    color: #858585;
    font-size: 0.78rem;
    text-decoration: line-through;
}

.admin-product-detail-preview .product-lumo-stock {
    margin: 0;
    font-size: 0.72rem;
}

.admin-product-detail-preview .product-lumo-copy .product-detail-desc {
    max-width: none;
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.48;
}

.admin-product-detail-preview .product-lumo-form {
    display: grid;
    gap: 9px;
}

.admin-product-detail-preview .product-lumo-sku-picker legend {
    margin-bottom: 6px;
    font-size: 0.72rem;
}

.admin-product-detail-preview .product-lumo-sku-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.admin-product-detail-preview .product-lumo-sku {
    width: 100%;
    min-width: 0;
    padding: 7px 9px;
    border-radius: 7px;
    cursor: pointer;
}

.admin-product-detail-preview .product-lumo-sku span {
    min-width: 0;
}

.admin-product-detail-preview .product-lumo-sku strong,
.admin-product-detail-preview .product-lumo-sku small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-product-detail-preview .product-lumo-sku strong {
    font-size: 0.74rem;
}

.admin-product-detail-preview .product-lumo-sku small,
.admin-product-detail-preview .product-lumo-sku em {
    font-size: 0.66rem;
}

.admin-product-detail-preview .product-lumo-actions {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 7px;
}

.admin-product-detail-preview .product-lumo-quantity {
    min-height: 38px;
    grid-template-columns: 26px 1fr 26px;
    padding: 0 4px;
}

.admin-product-detail-preview .product-lumo-quantity button {
    min-height: 36px;
    font-size: 1rem;
}

.admin-product-detail-preview .product-lumo-add,
.admin-product-detail-preview .product-lumo-buy {
    min-height: 38px;
    border-radius: 999px;
    font-size: 0.76rem;
}

.admin-product-detail-preview .product-lumo-payment-note {
    margin: -2px 0 0;
    font-size: 0.66rem;
}

.admin-product-detail-preview .product-lumo-trust {
    gap: 5px;
    padding: 11px 0;
}

.admin-product-detail-preview .product-lumo-trust div {
    gap: 2px;
}

.admin-product-detail-preview .product-lumo-trust .icon {
    width: 18px;
    height: 18px;
    margin-bottom: 2px;
}

.admin-product-detail-preview .product-lumo-trust strong {
    font-size: 0.62rem;
}

.admin-product-detail-preview .product-lumo-trust span {
    font-size: 0.58rem;
}

.admin-product-detail-preview .product-lumo-accordions summary {
    min-height: 36px;
    font-size: 0.72rem;
}

.admin-product-detail-preview .product-lumo-accordions details>p {
    margin-bottom: 12px;
    font-size: 0.72rem;
    line-height: 1.45;
}

@media (max-width: 1180px) {
    .admin-form-layout--editor {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    }
}

@media (max-width: 900px) {
    .admin-form-layout--editor {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 0.58fr);
    }

    .admin-form-layout--editor .admin-side-column--sticky {
        position: static;
    }

    .admin-product-edit-form .sku-admin-grid--editor {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-product-edit-form .sku-admin-grid--editor .form-group:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .admin-form-layout--editor {
        grid-template-columns: 1fr;
    }

    .admin-side-column--sticky {
        position: static;
    }
}

@media (max-width: 560px) {

    .admin-product-detail-preview__actions,
    .admin-product-detail-preview__trust {
        grid-template-columns: 1fr;
    }

    .admin-rich-editor .ql-toolbar,
    .admin-product-rich-editor .ql-toolbar {
        max-height: 152px;
        overflow-y: auto;
    }

    .admin-rich-editor .ql-toolbar .ql-formats,
    .admin-product-rich-editor .ql-toolbar .ql-formats {
        margin-right: 2px;
    }
}

/* Article editor is a fixed workspace: only the live preview scrolls. */
.is-admin-shell .admin-workspace-main:has(.admin-post-form) {
    overflow: hidden;
}

.admin-shell:has(.admin-post-form),
.admin-shell:has(.admin-post-form) .admin-post-form,
.admin-shell:has(.admin-post-form) .admin-form-layout--editor,
.admin-shell:has(.admin-post-form) .admin-side-column--sticky,
.admin-shell:has(.admin-post-form) .admin-post-preview-surface,
.admin-shell:has(.admin-post-form) .admin-post-preview {
    min-height: 0;
    overflow: hidden;
}

.admin-shell:has(.admin-post-form) {
    gap: 5px;
    padding-bottom: 6px;
}

.admin-shell:has(.admin-post-form) .admin-post-form {
    grid-template-rows: auto minmax(0, 1fr);
    gap: 5px;
}

.admin-shell:has(.admin-post-form) .admin-post-form>.admin-submit-bar {
    grid-row: 1;
    min-height: 30px;
    margin: 0;
    padding: 3px 8px;
}

.admin-shell:has(.admin-post-form) .admin-post-form>.admin-submit-bar .btn,
.admin-shell:has(.admin-post-form) .admin-post-form>.admin-submit-bar .btn-sm {
    min-height: 28px;
    padding: 0 8px;
    font-size: 0.78rem;
}

.admin-shell:has(.admin-post-form) .admin-post-form>.admin-form-layout--editor {
    grid-row: 2;
    height: 100%;
}

.is-admin-shell .admin-post-form .admin-surface--compact-editor,
.is-admin-shell .admin-post-form .admin-rich-editor {
    padding: 10px;
}

.is-admin-shell .admin-post-form .admin-surface__head,
.is-admin-shell .admin-post-form .admin-surface__head--compact {
    margin-bottom: 5px;
}

.is-admin-shell .admin-post-form .admin-surface__head h3 {
    font-size: 0.9rem;
}

.is-admin-shell .admin-post-form .admin-two-col {
    gap: 8px;
}

.is-admin-shell .admin-post-form .form-group {
    margin-bottom: 5px;
}

.is-admin-shell .admin-post-form label {
    margin-bottom: 3px;
    font-size: 0.76rem;
}

.is-admin-shell .admin-post-form input,
.is-admin-shell .admin-post-form textarea,
.is-admin-shell .admin-post-form .admin-select,
.is-admin-shell .admin-post-form .admin-category-picker__trigger {
    min-height: 30px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.is-admin-shell .admin-post-form textarea {
    min-height: 44px;
}

.is-admin-shell .admin-post-form .admin-rich-editor {
    margin-top: 5px;
}

.is-admin-shell .admin-post-form .admin-rich-editor .ql-toolbar {
    padding: 4px 6px;
}

.is-admin-shell .admin-post-form .admin-quill-editor,
.is-admin-shell .admin-post-form .admin-rich-editor .ql-container {
    height: 118px;
    min-height: 118px;
}

.is-admin-shell .admin-post-form .admin-rich-editor .ql-editor {
    height: 118px;
    min-height: 118px;
    max-height: 118px;
    padding: 8px 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.admin-shell:has(.admin-post-form) .admin-post-preview__scroll {
    overflow-y: auto;
    overscroll-behavior: contain;
}

@media (max-width: 640px) {
    .product-lumo-visual.product-detail-visual {
        min-height: 0;
        border-radius: 12px;
    }

    .product-gallery-nav {
        width: 40px;
        height: 40px;
    }

    .product-lumo-copy.product-detail-copy h1 {
        max-width: none;
        font-size: 2.15rem;
    }

    .product-lumo-purchase.product-purchase-panel {
        padding: 0;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .product-gallery-nav--previous {
        right: auto;
        left: 10px;
    }

    .product-gallery-nav--next {
        right: 10px;
        left: auto;
    }
}

/* ================= shadcn Language Selector ================= */
.shadcn-language-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

/* Hide default gtranslate select if present, keep only the flag switcher */
.site-language-switcher .gt_selector,
.shadcn-language-switcher .gt_selector {
    display: none !important;
}

.shadcn-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 32px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(17, 17, 17, 0.14);
    border-radius: 6px;
    color: var(--theme-ink, #111111);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.shadcn-dropdown-trigger * {
    pointer-events: none;
}

@media (max-width: 768px) {
    .shadcn-dropdown-trigger__label {
        display: none !important;
    }

    .shadcn-dropdown-trigger {
        padding: 0 4px;
        gap: 3px;
        height: 32px;
        background: rgba(255, 255, 255, 0.85);
        border: 1px solid rgba(17, 17, 17, 0.12);
        box-shadow: none;
    }

    .shadcn-dropdown-trigger__flag {
        width: 20px;
        height: 15px;
        display: inline-flex;
    }
}

.shadcn-dropdown-trigger:hover {
    background: #ffffff;
    border-color: rgba(17, 17, 17, 0.28);
}

.shadcn-dropdown-trigger:focus-visible {
    outline: 2px solid rgba(16, 132, 116, 0.42);
    outline-offset: 2px;
}

.shadcn-dropdown-trigger__flag,
.shadcn-dropdown-item__flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 13.5px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.shadcn-dropdown-trigger__flag svg,
.shadcn-dropdown-item__flag svg,
.shadcn-flag {
    width: 18px;
    height: 13.5px;
    object-fit: cover;
    display: block;
}

.shadcn-dropdown-trigger__label {
    white-space: nowrap;
}

.shadcn-dropdown-trigger__icon {
    width: 12px;
    height: 12px;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.7;
    flex-shrink: 0;
}

.shadcn-dropdown-trigger[aria-expanded="true"] .shadcn-dropdown-trigger__icon {
    transform: rotate(180deg);
    opacity: 1;
}

.shadcn-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    max-width: 220px;
    background: #ffffff;
    color: #09090b;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    padding: 4px;
    z-index: 9999;
    opacity: 0;
    transform: scale(0.95) translateY(-4px);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity 0.15s cubic-bezier(0.16, 1, 0.3, 1), transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.shadcn-dropdown-menu.is-open {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.shadcn-dropdown-menu__header {
    padding: 6px 8px 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #71717a;
    border-bottom: 1px solid #f4f4f5;
    margin-bottom: 4px;
}

.shadcn-dropdown-menu__list {
    max-height: 280px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e4e4e7 transparent;
}

.shadcn-dropdown-menu__list::-webkit-scrollbar {
    width: 4px;
}

.shadcn-dropdown-menu__list::-webkit-scrollbar-thumb {
    background: #e4e4e7;
    border-radius: 4px;
}

.shadcn-dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    height: 34px;
    padding: 0 8px;
    border: none;
    background: transparent;
    border-radius: 4px;
    color: #18181b;
    font-size: 0.81rem;
    font-weight: 450;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.12s ease, color 0.12s ease;
    gap: 8px;
}

.shadcn-dropdown-item:hover,
.shadcn-dropdown-item:focus-visible {
    background-color: #f4f4f5;
    color: #09090b;
    outline: none;
}

.shadcn-dropdown-item.is-selected {
    font-weight: 600;
    background-color: #f4f4f5;
}

.shadcn-dropdown-item__label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shadcn-dropdown-item__check {
    width: 14px;
    height: 14px;
    color: #09090b;
    flex-shrink: 0;
    opacity: 0;
}

.shadcn-dropdown-item.is-selected .shadcn-dropdown-item__check {
    opacity: 1;
}

/* Streamline PC product cards by hiding redundant text descriptions and price notes */
.product-reviews-section {
    max-width: 1040px;
    padding-top: clamp(48px, 7vw, 88px);
}

.product-reviews-heading {
    margin-bottom: 32px;
    text-align: center;
}

.product-reviews-heading h2 {
    margin: 0;
    color: #111;
    font-family: "Outfit", sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
}

.product-review-summary {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.2fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: center;
    padding: 28px 0 36px;
    border-bottom: 1px solid #e4e4e7;
}

.product-review-average {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
}

.product-review-average strong {
    color: #111;
    font-size: 1.15rem;
}

.product-review-average>span:last-child {
    color: #52525b;
}

.review-stars,
.product-review-card__stars,
.review-distribution-stars {
    color: #efc64b;
    font-size: 1.1rem;
    letter-spacing: 2px;
    line-height: 1;
}

.review-stars {
    font-size: 1.85rem;
}

.review-stars>span {
    color: transparent;
    background: linear-gradient(90deg, #efc64b var(--rating-percent), #d4d4d8 var(--rating-percent));
    background-clip: text;
    -webkit-background-clip: text;
}

.product-review-distribution {
    display: grid;
    gap: 6px;
}

.review-distribution-row {
    display: grid;
    grid-template-columns: 112px minmax(120px, 1fr) 32px;
    gap: 14px;
    align-items: center;
    min-height: 34px;
    padding: 3px 6px;
    color: #111;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
}

.review-distribution-row:hover,
.review-distribution-row.is-selected {
    border-color: #d4d4d8;
}

.review-distribution-row:focus-visible,
.review-clear-filter:focus-visible,
.product-review-pagination button:focus-visible,
.product-review-toolbar select:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.review-distribution-track {
    height: 8px;
    overflow: hidden;
    background: #e4e4e7;
    border-radius: 999px;
}

.review-distribution-track span {
    display: block;
    height: 100%;
    background: #efc64b;
    border-radius: inherit;
}

.review-distribution-count {
    text-align: right;
}

.product-review-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 76px;
}

.product-review-toolbar label {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: auto;
    color: #52525b;
    font-size: 0.9rem;
}

.product-review-toolbar select {
    min-height: 42px;
    padding: 0 34px 0 12px;
    color: #111;
    background: #fff;
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    font: inherit;
}

.review-clear-filter {
    min-height: 42px;
    padding: 0 16px;
    color: #111;
    background: #fff;
    border: 1px solid #111;
    border-radius: 999px;
    cursor: pointer;
}

.product-review-status {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 12px 16px;
    color: #52525b;
    background: transparent;
    border-radius: 8px;
}

.product-review-status[hidden] {
    display: none;
}

.product-review-status[data-type="error"] {
    color: #9f1239;
    background: #fff1f2;
}

.product-review-status button {
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.product-review-list {
    display: grid;
}

.product-review-card {
    padding: 32px 0;
    border-bottom: 1px solid #e4e4e7;
}

.product-review-card__identity {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    grid-template-rows: auto 1fr;
    gap: 5px 16px;
    align-items: start;
    min-height: 56px;
}

.product-review-avatar {
    grid-row: 1 / 3;
    width: 56px;
    height: 56px;
}

.product-review-card__identity>strong {
    align-self: start;
    color: #111;
    font-size: 1.05rem;
}

.product-review-card__identity>time {
    grid-column: 3;
    grid-row: 1;
    color: #71717a;
    font-size: 0.9rem;
}

.product-review-card__stars {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
}

.product-review-card h3 {
    margin: 22px 0 8px;
    color: #111;
    font-size: 1.05rem;
}

.product-review-card>p {
    max-width: 820px;
    margin: 0;
    color: #526156;
    font-size: 1rem;
    line-height: 1.75;
    white-space: pre-wrap;
}

.product-review-images {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.product-review-images a {
    position: relative;
    display: flex;
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #71717a;
    background: #f3f1ed;
    border-radius: 8px;
}

.product-review-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-review-images a>span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    text-align: center;
}

.product-review-images a>span[hidden] {
    display: none;
}

.product-review-empty {
    padding: 48px 16px;
    color: #71717a;
    text-align: center;
    border-bottom: 1px solid #e4e4e7;
}

.product-review-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    padding-top: 28px;
}

.product-review-pagination button {
    min-width: 42px;
    min-height: 42px;
    padding: 0 13px;
    color: #111;
    background: #fff;
    border: 1px solid #d4d4d8;
    border-radius: 999px;
    cursor: pointer;
}

.product-review-pagination button.is-current {
    color: #fff;
    background: #111;
    border-color: #111;
}

.product-review-pagination button:disabled {
    color: #a1a1aa;
    cursor: not-allowed;
    background: #f4f4f5;
}

@media (max-width: 720px) {
    .product-review-summary {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .review-distribution-row {
        grid-template-columns: 102px minmax(80px, 1fr) 28px;
        min-height: 44px;
        gap: 10px;
    }

    .product-review-toolbar {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        padding: 16px 0;
    }

    .product-review-toolbar label {
        justify-content: space-between;
        margin-left: 0;
    }

    .product-review-card {
        padding: 26px 0;
    }

    .product-review-card__identity {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .product-review-card__identity>time {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        font-size: 0.78rem;
    }

    .product-review-card__identity>strong {
        padding-right: 90px;
    }

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

.product-card .product-copy,
.theme-product-card .product-copy,
.product-price-note {
    display: none !important;
}

.product-review-pagination button:disabled {
    color: #a1a1aa;
    cursor: not-allowed;
    background: #f4f4f5;
}

@media (max-width: 720px) {
    .product-review-summary {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .review-distribution-row {
        grid-template-columns: 102px minmax(80px, 1fr) 28px;
        min-height: 44px;
        gap: 10px;
    }

    .product-review-toolbar {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        padding: 16px 0;
    }

    .product-review-toolbar label {
        justify-content: space-between;
        margin-left: 0;
    }

    .product-review-card {
        padding: 26px 0;
    }

    .product-review-card__identity {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .product-review-card__identity>time {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        font-size: 0.78rem;
    }

    .product-review-card__identity>strong {
        padding-right: 90px;
    }

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

.product-card .product-copy,
.theme-product-card .product-copy,
.product-price-note {
    display: none !important;
}

/* Keep recommendations inside the detail container but below its initial viewport. */
.product-detail-shell.product-lumo-shell {
    min-height: 100dvh;
    margin-bottom: 0 !important;
}

@media (min-width: 1025px) {
    .junco-template-theme.has-template-hero .product-detail-shell.product-lumo-shell,
    .junco-template-theme.has-solid-header .product-detail-shell.product-lumo-shell {
        padding-top: 0;
    }

    .product-detail-shell.product-lumo-shell {
        height: auto;
        overflow: visible;
    }

    .product-detail-initial-view {
        min-height: 100dvh;
        height: 100dvh;
        grid-template-rows: auto minmax(0, 1fr);
        padding-top: calc(var(--header-height, 86px) + 26px);
    }

    .product-detail-initial-view>.product-lumo-layout.product-detail-layout {
        min-height: 0;
        height: 100%;
    }

    body:has(.product-detail-shell) {
        /* 整页始终可滚动，避免图片栏到底时切换滚动条并触发布局回跳。 */
        overflow-y: auto;
    }
}

.junco-template-theme .product-detail-shell>.product-recommendations-section.section {
    width: 100%;
    max-width: none;
    margin: 20px 0 0 !important;
    box-sizing: border-box;
}

.product-detail-shell>.product-recommendations-section .product-grid--catalog {
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (max-width: 1024px) {
    .product-detail-shell>.product-recommendations-section .product-grid--catalog {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .junco-template-theme .product-detail-shell.product-lumo-shell {
        width: 100%;
        padding-top: var(--header-height, 72px);
    }

    .product-detail-initial-view {
        gap: 0;
    }

    .product-detail-initial-view>.product-lumo-back {
        display: none;
    }

    .product-detail-initial-view>.product-lumo-layout.product-detail-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .product-detail-media-pane,
    .product-lumo-gallery.product-detail-gallery,
    .product-gallery-primary {
        display: contents;
    }

    .product-lumo-visual.product-detail-visual {
        order: 1;
        width: 100%;
        max-height: none;
        justify-self: stretch;
        border-radius: 0;
        overflow: hidden;
        cursor: grab;
        touch-action: pan-y pinch-zoom;
        user-select: none;
        -webkit-user-select: none;
    }

    .product-lumo-visual.product-detail-visual.is-swiping {
        cursor: grabbing;
    }

    .product-lumo-visual.product-detail-visual .product-detail-visual-item.is-active {
        transform: translate3d(var(--product-gallery-swipe-x, 0), 0, 0);
        transition: transform 180ms ease;
        will-change: transform;
    }

    .product-lumo-visual.product-detail-visual.is-swiping .product-detail-visual-item.is-active {
        transition: none;
    }

    .product-lumo-visual.product-detail-visual .product-detail-img {
        -webkit-user-drag: none;
    }

    .product-detail-visual-item,
    .product-lumo-visual .product-detail-img {
        border-radius: 0;
    }

    .product-lumo-visual.product-detail-visual .product-gallery-nav {
        display: none;
    }

    .product-media-rail {
        order: 2;
        width: 100%;
        height: auto;
        max-height: none;
        contain: none;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 10px 16px;
        box-sizing: border-box;
        scrollbar-width: none;
    }

    .product-lumo-gallery .product-media-rail .product-sku-thumb-strip,
    .product-media-rail .product-detail-thumb-slot {
        flex: 0 0 auto;
        flex-direction: row;
        gap: 6px;
    }

    .product-media-rail .product-detail-thumb-slot {
        padding-top: 0;
        border-top: 0;
    }

    .product-lumo-gallery .product-media-rail .product-thumb {
        width: 58px;
        flex: 0 0 58px;
    }

    .product-lumo-column.product-detail-column {
        order: 3;
        width: 100%;
        gap: 18px;
        padding: 8px 16px 0;
        box-sizing: border-box;
    }

    .product-lumo-actions {
        grid-template-columns: minmax(104px, 116px) minmax(0, 1fr);
        align-items: stretch;
        gap: 8px;
    }

    .product-lumo-quantity,
    .product-lumo-add {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .product-lumo-quantity {
        overflow: hidden;
    }

    .product-lumo-quantity input {
        width: 100%;
        min-width: 0;
    }

    .product-gallery-accordions {
        order: 4;
        width: auto;
        margin: 8px 16px 0;
        justify-self: stretch;
    }

    .product-lumo-trust {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2px;
        padding: 18px 0;
    }

    .product-lumo-trust div {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        gap: 2px;
        text-align: center;
    }

    .product-lumo-trust .icon {
        grid-row: auto;
        margin-bottom: 3px;
    }

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

    .product-lumo-trust span {
        font-size: 0.6rem;
        line-height: 1.25;
    }

    .junco-template-theme .product-detail-shell>.product-recommendations-section.section {
        padding: 0 16px;
    }

    .product-recommendations-section .section-heading-row.compact {
        align-items: center;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 10px;
    }

    .product-recommendations-section .section-heading-row.compact>div {
        min-width: 0;
    }

    .product-recommendations-section .section-heading-row.compact h2 {
        font-size: clamp(0.95rem, 3.2vw, 1.2rem);
        white-space: nowrap;
    }

    .product-recommendations-section .section-heading-row.compact>.text-link {
        flex: 0 0 auto;
        margin-left: auto;
        text-align: right;
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-lumo-visual.product-detail-visual .product-detail-visual-item.is-active {
        transition: none;
    }
}

body:has(.product-lumo-shell) main,
body:has(.product-detail-shell) main {
    padding-bottom: 10px !important;
    margin-bottom: 0 !important;
}

/* Product title font size 20px */
.product-lumo-copy.product-detail-copy h1,
.product-detail-copy h1,
.product-lumo-copy h1 {
    width: 100%;
    max-width: none;
    font-size: 20px !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em;
}

@media (max-width: 720px) {
    .product-lumo-copy.product-detail-copy h1,
    .product-detail-copy h1,
    .product-lumo-copy h1 {
        font-size: 20px !important;
    }
}

/* Star rating & review count trigger below price */
.product-detail-rating-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 2px 0;
    margin: 4px 0 8px;
    cursor: pointer;
    font-size: 0.92rem;
    color: var(--ink, #1f2937);
    transition: opacity 0.2s ease;
    text-align: left;
}

.product-detail-rating-trigger:hover {
    opacity: 0.85;
}

.product-detail-rating-stars {
    color: #f59e0b;
    font-size: 1.05rem;
    line-height: 1;
    letter-spacing: 1px;
}

.product-detail-rating-stars .review-stars-fill {
    display: inline-block;
    color: transparent;
    background: linear-gradient(90deg, #f59e0b var(--rating-percent, 0%), #d1d5db var(--rating-percent, 0%));
    background-clip: text;
    -webkit-background-clip: text;
}

.product-detail-rating-stars .review-stars-empty {
    color: #d1d5db;
}

.product-detail-rating-score {
    font-weight: 700;
    color: var(--ink, #111827);
}

.product-detail-rating-count {
    color: #6b7280;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}

/* Option legend selected values */
.sku-picker legend .selected-option-value {
    font-weight: 600;
    color: var(--ink, #111827);
    margin-left: 2px;
}

/* Product Reviews Right Drawer */
.product-review-write {
    display: grid;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e4e4e7;
}

.product-review-write__toggle,
.product-review-form__actions button[type="submit"] {
    min-height: 44px;
    padding: 10px 20px;
    color: #fff;
    background: #111;
    border: 1px solid #111;
    border-radius: 8px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.product-review-write__toggle:hover,
.product-review-form__actions button[type="submit"]:hover {
    background: #333;
}

.product-review-form {
    display: grid;
    gap: 12px;
    padding: 4px 0 8px;
}

.product-review-form[hidden],
.product-review-write__status[hidden] {
    display: none;
}

.product-review-form>label {
    color: #111;
    font-weight: 600;
}

.product-review-form>input[type="text"],
.product-review-form>textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #a1a1aa;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font: inherit;
    box-sizing: border-box;
}

.product-review-form>textarea {
    resize: vertical;
}

.product-review-form__rating {
    position: relative;
    width: fit-content;
    min-height: 48px;
}

.product-review-form__stars {
    position: relative;
    display: block;
    color: #d4d4d8;
    font-size: 2.25rem;
    letter-spacing: 5px;
    line-height: 48px;
    white-space: nowrap;
}

.product-review-form__stars>span {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    overflow: hidden;
    color: #efc64b;
    white-space: nowrap;
}

.product-review-form__rating input[type="range"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    touch-action: none;
}

.product-review-form__rating:has(input:focus-visible) {
    outline: 2px solid #111;
    outline-offset: 2px;
    border-radius: 4px;
}

.product-review-form>.product-review-form__upload-title {
    margin-top: 10px;
}

.product-review-form__dropzone {
    position: relative;
    overflow: hidden;
    border: 1px dashed #d4d4d8;
    border-radius: 24px;
    background: #fff;
}

.product-review-form__dropzone input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.product-review-form__dropzone label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 158px;
    cursor: pointer;
}

.product-review-form__dropzone:hover {
    border-color: #71717a;
}

.product-review-form__dropzone:has(input:focus-visible) {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.product-review-form__dropzone .product-review-form__upload-icon {
    width: 64px;
    height: 64px;
    color: #858585;
}

.product-review-form__previews {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.product-review-form__previews[hidden] {
    display: none;
}

.product-review-form__preview {
    position: relative;
    aspect-ratio: 1;
}

.product-review-form__preview-open {
    position: absolute;
    inset: 0;
    display: block;
    padding: 0;
    overflow: hidden;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    background: #fff;
    cursor: zoom-in;
}

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

.product-review-form__preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    cursor: pointer;
}

.product-review-form__preview-remove .icon {
    width: 16px;
    height: 16px;
}

.product-review-form__preview-remove:hover {
    background: #111;
}

.product-review-form__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.product-review-form__actions button[type="button"] {
    min-height: 44px;
    padding: 10px;
    border: 1px solid #a1a1aa;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font: inherit;
    cursor: pointer;
}

.product-review-write__toggle:focus-visible,
.product-review-form button:focus-visible,
.product-review-form input:focus-visible,
.product-review-form textarea:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.product-review-form__actions button:disabled,
.product-review-write__toggle:disabled {
    opacity: 0.6;
    cursor: wait;
}

.product-review-write__status {
    padding: 12px;
    border-radius: 8px;
    background: #eef7ed;
    color: #14532d;
}

.product-review-write__status[data-type="error"] {
    background: #fff1f2;
    color: #9f1239;
}

body.reviews-drawer-open {
    overflow: hidden !important;
}

.product-reviews-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    justify-content: flex-end;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-reviews-drawer.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.product-reviews-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    cursor: pointer;
}

.product-reviews-drawer__content {
    position: relative;
    width: 100%;
    max-width: 520px;
    height: 100%;
    background: #ffffff;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 1;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-x: hidden;
}

.product-reviews-drawer.is-open .product-reviews-drawer__content {
    transform: translateX(0);
}

.product-reviews-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 2;
    box-sizing: border-box;
    width: 100%;
}

.product-reviews-drawer__header .product-reviews-heading h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.product-reviews-drawer__close {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #4b5563;
    transition: background 0.15s ease, color 0.15s ease;
}

.product-reviews-drawer__close:hover {
    background: #f3f4f6;
    color: #111827;
}

.product-reviews-drawer__body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

.product-reviews-drawer .product-review-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 4px 0 16px;
    width: 100%;
    box-sizing: border-box;
}

.product-reviews-drawer .product-review-average {
    gap: 4px;
}

.product-reviews-drawer .review-distribution-row {
    grid-template-columns: 80px minmax(60px, 1fr) 28px;
    gap: 8px;
    padding: 2px 4px;
    width: 100%;
    box-sizing: border-box;
}

.product-reviews-drawer .review-distribution-stars {
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.product-reviews-drawer .product-review-toolbar {
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.product-reviews-drawer .product-review-toolbar label {
    width: 100%;
    justify-content: space-between;
}

.product-reviews-drawer .product-review-card {
    padding: 16px 0;
    width: 100%;
    box-sizing: border-box;
}

.product-reviews-drawer .product-review-card__identity {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    column-gap: 7px;
    row-gap: 5px;
}

.product-reviews-drawer .product-review-card__identity>strong,
.product-reviews-drawer .product-review-card__stars {
    grid-column: 2;
    justify-self: start;
    text-align: left;
}

.product-reviews-drawer .product-review-card__identity>strong {
    grid-row: 1;
}

.product-reviews-drawer .product-review-card__stars {
    grid-row: 2;
}

.product-reviews-drawer .product-review-card__identity>time {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
}

.product-reviews-drawer .product-review-images {
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 8px;
}

@media (max-width: 720px) {
    .product-reviews-drawer .product-review-card__identity {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .product-reviews-drawer .product-review-card__identity>strong {
        padding-right: 0;
    }

    .product-reviews-drawer .product-review-card__identity>time {
        grid-column: 2;
        grid-row: 3;
        justify-self: start;
    }
}

/* Reusable Image Viewer Lightbox Modal */
body.image-viewer-open {
    overflow: hidden !important;
}

.image-viewer-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.image-viewer-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.image-viewer-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.image-viewer-modal__content {
    position: relative;
    z-index: 1;
    width: min(90vw, 1000px);
    height: min(85vh, 800px);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.image-viewer-modal__img {
    width: auto;
    height: auto;
    pointer-events: auto;
    max-width: 100%;
    max-height: min(80vh, 760px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-viewer-modal.is-open .image-viewer-modal__img {
    transform: scale(1);
}

.image-viewer-modal__close {
    position: absolute;
    z-index: 2;
    top: -48px;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.2s ease, transform 0.2s ease;
}

.image-viewer-modal__close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.08);
}

.image-viewer-modal__nav {
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.image-viewer-modal__nav:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) scale(1.08);
}

.image-viewer-modal__nav:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.image-viewer-modal__nav--prev {
    left: -20px;
}

.image-viewer-modal__nav--next {
    right: -20px;
}

.image-viewer-modal__counter {
    position: absolute;
    bottom: -44px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    pointer-events: auto;
}

@media (max-width: 640px) {
    .image-viewer-modal__content {
        width: 100%;
        height: 100dvh;
    }
    .image-viewer-modal__img {
        max-width: calc(100vw - 32px);
        max-height: calc(100dvh - 128px);
        border-radius: 0;
        box-shadow: none;
    }
    .image-viewer-modal__nav--prev {
        left: 8px;
    }
    .image-viewer-modal__nav--next {
        right: 8px;
    }
    .image-viewer-modal__close {
        top: max(12px, env(safe-area-inset-top));
        right: max(12px, env(safe-area-inset-right));
        width: 44px;
        height: 44px;
    }
    .image-viewer-modal__counter {
        bottom: max(16px, env(safe-area-inset-bottom));
    }
}

@media (max-width: 820px) {
    .post-hub-shell,
    .post-card-collection .editorial-grid--posts {
        gap: 34px;
    }

    .editorial-grid--posts {
        grid-template-columns: 1fr;
    }

    .post-hub-shell .post-spotlight,
    .post-card-collection .post-card--entry {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
        overflow: visible;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .post-hub-shell .post-spotlight__media,
    .post-card-collection .post-card__media {
        position: relative;
        height: auto;
        min-height: 0;
        aspect-ratio: 1.7 / 1;
        border-radius: 16px;
        isolation: isolate;
    }

    .post-card-collection .post-category--media {
        position: absolute;
        z-index: 2;
        top: 10px;
        left: 10px;
        display: inline-flex;
        margin: 0;
        padding: 7px 11px;
        color: #171615;
        background: #ffffff;
        border-radius: 999px;
        box-shadow: 0 2px 8px rgba(23, 22, 21, 0.08);
        font-size: 0.75rem;
        font-weight: 800;
        line-height: 1.2;
        text-transform: none;
        pointer-events: none;
    }

    .post-hub-shell .post-spotlight__copy,
    .post-card-collection .post-card__body {
        height: auto;
        display: grid;
        grid-template-rows: none;
        align-content: start;
        align-items: start;
        gap: 8px;
        padding: 16px 0 0;
    }

    .post-hub-shell .post-spotlight__copy h2,
    .post-card-collection .post-card__body h3 {
        font-size: 1rem;
        font-weight: 800;
        line-height: 1.3;
    }

    .post-card-collection .post-meta {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        margin: 0;
        color: #52525b;
        font-size: 0.84rem;
        line-height: 1.4;
    }

    .post-card-collection .post-meta__date svg,
    .post-card-collection .post-meta__reading,
    .post-card-collection .post-meta__reading-separator {
        display: none;
    }

    .post-card-collection .post-meta__author {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .post-hub-shell .post-spotlight__copy>.post-category,
    .post-card-collection .post-card__body>.post-category,
    .post-card-collection .post-tags,
    .post-card-collection .post-excerpt,
    .post-hub-shell .post-spotlight__actions,
    .post-card-collection .post-card__body>.text-link {
        display: none;
    }
}
.customer-package-list {
    display: grid;
    gap: 0.9rem;
    margin-top: 1rem;
}

.customer-package {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 1rem;
}

.customer-package__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.customer-package__items {
    margin: 0.8rem 0 0;
    padding-left: 1.2rem;
}

.customer-order-timeline ol {
    display: grid;
    gap: 0;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.customer-order-timeline li {
    position: relative;
    display: grid;
    grid-template-columns: 1rem minmax(0, 1fr);
    gap: 0.85rem;
    padding-bottom: 1.2rem;
}

.customer-order-timeline li:not(:last-child)::before {
    position: absolute;
    top: 0.85rem;
    bottom: 0;
    left: 0.34rem;
    width: 1px;
    background: #d4d4d4;
    content: '';
}

.customer-order-timeline__marker {
    position: relative;
    z-index: 1;
    width: 0.72rem;
    height: 0.72rem;
    margin-top: 0.28rem;
    border-radius: 50%;
    background: var(--teal-dark);
}

.customer-order-timeline p,
.customer-order-timeline time {
    margin: 0.2rem 0 0;
    color: #71717a;
}

.customer-order-timeline time {
    font-size: 0.8rem;
}

.service-support-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
    align-items: stretch;
    gap: 24px;
}

.service-grid > .service-card {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.service-grid > .service-card > .icon {
    flex-shrink: 0;
    margin: 0;
}

.service-grid .service-card-copy {
    min-width: 0;
    overflow-wrap: anywhere;
}

.about-grid {
    align-items: stretch;
}

.about-grid > .value-card-list {
    min-width: 0;
    padding: 0;
    grid-template-rows: repeat(3, 1fr);
}

.about-grid .value-card {
    min-width: 0;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 14px;
}

.about-grid .value-card > .icon {
    flex-shrink: 0;
    margin: 0;
}

.about-grid .value-card-copy {
    min-width: 0;
    overflow-wrap: anywhere;
}

.service-support-layout > .faq-section {
    min-width: 0;
}

.service-support-layout > .service-support-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

@media (max-width: 800px) {
    .service-support-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* 搜索商品卡片独立排版，只共享交互的数据标记。 */
.header-search-product .header-search-product__media > a {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.header-search-product .header-search-product__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 180ms ease, filter 180ms ease;
}

.header-search-product__media img.is-switching-sku {
    opacity: 0.58;
    filter: blur(8px);
}

.header-search-preview,
.header-search-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111;
    background: #fff linear-gradient(#111, #111) left center / 0% 100% no-repeat;
    background-origin: border-box;
    border: 1px solid rgba(18, 24, 32, 0.2);
    box-shadow: 0 3px 9px rgba(18, 24, 32, 0.18);
    box-sizing: border-box;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: color 0.4s ease, border-color 0.4s ease,
        background-size 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-search-preview {
    position: absolute;
    z-index: 2;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
}

.header-search-preview .icon { width: 17px; height: 17px; }

.header-search-product__cart {
    position: absolute;
    z-index: 2;
    left: 8px;
    right: 8px;
    bottom: 8px;
}

.header-search-preview,
.header-search-product__cart {
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 160ms ease, transform 160ms ease,
        color 0.4s ease, border-color 0.4s ease,
        background-size 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-search-product__media:hover .header-search-preview,
.header-search-product:has(:focus-visible) .header-search-preview,
.header-search-preview.is-loading,
.header-search-product__media:hover .header-search-product__cart,
.header-search-product__cart:has(:focus-visible),
.header-search-product__cart:has(.is-loading) {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.header-search-cart {
    position: relative;
    width: 100%;
    height: 34px;
    justify-content: space-between;
    gap: 4px;
    padding: 0 6px 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.header-search-cart__label { white-space: nowrap; }
.header-search-cart__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    color: #fff;
    background: #111;
    border-radius: 50%;
}
.header-search-cart__icon .icon { width: 14px; height: 14px; }
.header-search-preview:not(:disabled):is(:hover, :focus-visible),
.header-search-cart:not(:disabled):is(:hover, :focus-visible) {
    color: #fff;
    border-color: #111;
    background-size: 100% 100%;
}
.header-search-cart:not(:disabled):is(:hover, :focus-visible) .header-search-cart__icon { color: #111; background: #fff; }
.header-search-cart:disabled:not(.is-loading) { opacity: 0.45; cursor: not-allowed; }
.header-search-cart.is-loading { color: #fff; background: #111; cursor: progress; }
.header-search-cart.is-loading::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.2);
    animation: product-card-add-progress 1.2s ease-in-out infinite;
}
.header-search-cart.is-loading .header-search-cart__icon { background: transparent; }
.header-search-cart.is-loading .icon,
.header-search-preview.is-loading .icon { visibility: hidden; }
.header-search-cart.is-loading::after,
.header-search-preview.is-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: product-quick-view-spin 720ms linear infinite;
}
.header-search-cart.is-loading::after { right: 9px; }
.header-search-preview.is-loading::after { inset: 0; margin: auto; }

.header-search-color { appearance: none; padding: 0; cursor: pointer; flex: 0 0 auto; }
.header-search-color.is-active { box-shadow: 0 0 0 2px #111; }
.header-search-color[data-in-stock="false"] { opacity: 0.45; }
.header-search-color:focus-visible,
.header-search-preview:focus-visible,
.header-search-cart:focus-visible,
.header-search-product__title:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
.header-search-product .header-search-colors { padding: 3px 2px; }

@media (hover: none) {
    .header-search-preview,
    .header-search-product__cart { opacity: 1; pointer-events: auto; transform: none; }
}

@media (max-width: 480px) {
    .header-search-product-list,
    .header-search-featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 8px; }
    .header-search-product__title { font-size: 0.8rem; }
    .header-search-price { font-size: 0.78rem; }
    .header-search-price__original { font-size: 0.66rem; }
}

@media (prefers-reduced-motion: reduce) {
    .header-search-preview,
    .header-search-cart,
    .header-search-product__cart,
    .header-search-product__media img { transition: none; }
    .header-search-cart.is-loading::before { animation: none; }
    .header-search-cart.is-loading::after,
    .header-search-preview.is-loading::after { animation-duration: 1.5s; }
}
