:root {
    --background: #f6f7f5;
    --surface: #ffffff;
    --surface-muted: #eef2ee;
    --text: #1f2924;
    --muted: #68736d;
    --border: #dce3de;

    --accent: #256c4a;
    --accent-dark: #1c553a;
    --accent-soft: #e3f0e8;

    --header: #17251f;
    --header-light: #21362d;

    --danger: #b84040;
    --danger-soft: #f7e6e6;

    --shadow:
        0 14px 40px rgba(25, 45, 35, 0.08);

    --radius-small: 6px;
    --radius: 12px;
    --radius-large: 20px;

    --max-width: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Hiragino Kaku Gothic ProN",
        "Hiragino Sans",
        "Yu Gothic",
        Meiryo,
        sans-serif;
    line-height: 1.7;
}

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

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--accent-dark);
}

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

button,
input {
    border-radius: 0;
}

button {
    cursor: pointer;
}

.container {
    width: min(
        calc(100% - 40px),
        var(--max-width)
    );
    margin-right: auto;
    margin-left: auto;
}

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

/* Header */

.site-header {
    position: relative;
    z-index: 20;
    color: var(--site-header-top-text, #ffffff);
}

.header-main {
    background: var(--site-header-top-bg, var(--header));
    color: var(--site-header-top-text, #ffffff);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-main-inner {
    display: grid;
    grid-template-columns: auto minmax(260px, 620px) auto;
    gap: 32px;
    align-items: center;
    min-height: 88px;
}

.site-logo {
    display: flex;
    flex-direction: column;
    color: var(--site-header-top-text, #ffffff);
    line-height: 1;
    text-decoration: none;
}

.site-logo:hover {
    color: var(--site-header-top-text, #ffffff);
}

.site-logo-main {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.site-logo-sub {
    margin-top: 7px;
    color: var(--site-header-top-text, #ffffff);
    opacity: 0.58;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.header-search {
    display: grid;
    grid-template-columns: 1fr auto;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--site-header-search-border, #d1d5db);
    border-radius: var(--radius-small);
}

.header-search input {
    min-width: 0;
    height: 46px;
    padding: 0 16px;
    background: #ffffff;
    border: 0;
    outline: 0;
}

.header-search input:focus {
    box-shadow: inset 0 0 0 2px var(--accent);
}

.header-search button {
    min-width: 82px;
    padding: 0 18px;
    background: var(--site-header-search-button, var(--accent));
    color: #ffffff;
    border: 0;
    font-weight: 700;
}

.header-search button:hover {
    filter: brightness(0.92);
}

.header-search-submit__icon {
    display: none;
}

.header-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    white-space: nowrap;
}

.public-language-select {
    flex: 0 0 auto;
    width: auto;
    width: 104px;
    max-width: 104px;
    height: 34px;
    padding: 0 18px 0 8px;
    background: #ffffff;
    color: #1f2933;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.header-cart {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--site-header-top-text, #ffffff);
    text-decoration: none;
}

.header-cart:hover {
    color: var(--site-header-top-text, #ffffff);
}

.header-cart-label {
    font-size: 0.92rem;
    font-weight: 700;
}

.header-cart-count {
    display: grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    padding: 0 7px;
    background: var(--site-header-cart-badge, var(--accent));
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
}

.site-nav {
    background: var(--site-header-nav-bg, var(--header-light));
}

.site-nav-inner {
    display: flex;
    gap: 0;
    overflow-x: auto;
}

.site-nav a {
    flex: 0 0 auto;
    padding: 13px 18px;
    color: var(--site-header-nav-text, #ffffff);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav a:hover {
    background: var(--site-header-nav-hover-bg, rgba(255, 255, 255, 0.07));
    color: var(--site-header-nav-hover-text, var(--site-header-nav-text, #ffffff));
}

/* Main */

.site-main {
    min-height: 60vh;
}

.site-main--subpage {
    background: var(--site-subpage-background, #ffffff);
    color: var(--site-subpage-text, #1f2933);
}

.site-main--subpage a:not(.manage-button):not(.button):not([class*='button']) {
    color: inherit;
}

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            120deg,
            #ffffff 0%,
            #ffffff 52%,
            #edf3ef 52%,
            #e6eee9 100%
        );
    border-bottom: 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 60px;
    align-items: center;
    min-height: 520px;
    padding-top: 72px;
    padding-bottom: 72px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    letter-spacing: -0.04em;
    line-height: 1.15;
}

.hero-description {
    max-width: 650px;
    margin: 26px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}

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

.hero-visual {
    position: relative;
    min-height: 360px;
}

.hero-visual-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 260px;
    height: 340px;
    padding: 28px;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
}

.hero-visual-card-back {
    top: 4px;
    right: 38px;
    transform: rotate(8deg);
    background: #cddbd2;
    color: #557064;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.hero-visual-card-front {
    top: 24px;
    right: 105px;
    transform: rotate(-6deg);
    background: var(--header);
    color: #ffffff;
}

.hero-visual-mark {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    background: var(--accent);
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-visual-card-front p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}



/* Manage hero background preview */
.manage-image-preview--hero {
    width: 360px !important;
    max-width: 100% !important;
    height: 160px !important;
    overflow: hidden;
    border-radius: var(--radius-medium);
}

.manage-image-preview--hero img {
    display: block !important;
    width: 360px !important;
    max-width: 100% !important;
    height: 160px !important;
    object-fit: cover;
}

/* TOP hero - fixed display (step 1) */

.top-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 520px;
    --hero-overlay-color: #17382f;
    --hero-overlay-opacity: 0.45;
    background: #000000;
    color: #ffffff;
    border-bottom: 1px solid var(--border);
}

.top-hero--gradient {
    background: linear-gradient(
        var(--hero-gradient-angle, 135deg),
        var(--hero-gradient-start, #000000),
        var(--hero-gradient-end, #2a5343)
    );
}

.top-hero--image {
    background-image: var(--hero-background-image);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

@media (max-width: 720px) {
    .top-hero--image {
        background-image: var(--hero-background-image-mobile, var(--hero-background-image));
    }
}

.top-hero--image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--hero-overlay-color);
    opacity: var(--hero-overlay-opacity);
}

.top-hero--gradient::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 78% 26%, rgba(255, 255, 255, 0.14), transparent 30%),
        radial-gradient(circle at 92% 82%, rgba(255, 255, 255, 0.08), transparent 28%);
}

.top-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 64px;
    align-items: center;
    min-height: 520px;
    padding-top: 76px;
    padding-bottom: 76px;
}

.top-hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.top-hero-eyebrow {
    margin: 0 0 18px;
    color: var(--site-hero-shop-name, #ffffff);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.top-hero-title {
    margin: 0;
    color: var(--hero-title-color, #ffffff);
    font-size: clamp(30px, 5vw, var(--hero-title-font-size, 64px));
    line-height: 1.14;
    letter-spacing: -0.04em;
}

.top-hero-description {
    max-width: 620px;
    margin: 28px 0 0;
    color: var(--hero-description-color, #dce8e3);
    font-size: clamp(13px, 2vw, var(--hero-description-font-size, 17px));
    line-height: 1.9;
}

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

.top-hero .button-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.08);
}

.top-hero .button-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
}

.top-hero-inner--without-panel {
    grid-template-columns: minmax(0, 1fr);
}

.top-hero-inner--without-panel .top-hero-content {
    max-width: 860px;
}

.top-hero-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 340px;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-large);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(8px);
    transform: rotate(2deg);
}

.top-hero-panel strong {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: var(--hero-panel-title-color, #ffffff);
    font-size: clamp(26px, 4.5vw, var(--hero-panel-title-font-size, 56px));
    line-height: 1.05;
}

.top-hero-panel-label,
.top-hero-panel-caption {
    font-weight: 800;
    letter-spacing: 0.16em;
}

.top-hero-panel-label {
    color: var(--hero-panel-label-color, #c7d8d1);
    font-size: clamp(9px, 1.6vw, var(--hero-panel-label-font-size, 12px));
}

.top-hero-panel-caption {
    color: var(--hero-panel-caption-color, #c7d8d1);
    font-size: clamp(9px, 1.6vw, var(--hero-panel-caption-font-size, 12px));
    font-weight: 800;
    letter-spacing: 0.16em;
}

.top-hero--text-shadow .top-hero-eyebrow,
.top-hero--text-shadow .top-hero-title,
.top-hero--text-shadow .top-hero-description,
.top-hero--text-shadow .top-hero-panel-label,
.top-hero--text-shadow .top-hero-panel strong,
.top-hero--text-shadow .top-hero-panel-caption {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.top-hero-button {
    text-decoration: none;
}

.top-hero-button--1 {
    font-size: clamp(12px, 2vw, var(--hero-button-1-font-size, 16px));
}

.top-hero-button--2 {
    font-size: clamp(12px, 2vw, var(--hero-button-2-font-size, 16px));
}


.top-hero-button:hover {
    filter: brightness(1.08);
}


.top-hero-products {
    position: absolute;
    inset: 0;
    z-index: -3;
    overflow: hidden;
    background: #14261f;
}

.top-hero-products::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--hero-overlay-color);
    opacity: var(--hero-overlay-opacity);
}

.top-hero-products-track {
    display: grid;
    grid-template-columns: repeat(8, minmax(100px, 1fr));
    gap: 8px;
    width: 100%;
    min-height: 100%;
    padding: 8px;
    transform: scale(1.05) rotate(-2deg);
}

.top-hero-product-tile {
    overflow: hidden;
    min-height: 150px;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
}

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

.top-hero-products--scroll {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px 0;
}

.top-hero-products-row {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.top-hero-products--scroll .top-hero-products-track {
    display: flex;
    grid-template-columns: none;
    width: max-content;
    height: 100%;
    padding: 0;
    transform: none;
    animation: top-hero-product-scroll 42s linear infinite;
}

.top-hero-products--scroll .top-hero-products-row--reverse .top-hero-products-track {
    animation-name: top-hero-product-scroll-reverse;
}

.top-hero-products--scroll .top-hero-product-tile {
    flex: 0 0 clamp(110px, 12vw, 190px);
    height: 100%;
    min-height: 0;
    border-radius: 0;
}

.top-hero-products--speed-slow .top-hero-products-track { animation-duration: 64s; }
.top-hero-products--speed-normal .top-hero-products-track { animation-duration: 42s; }
.top-hero-products--speed-fast .top-hero-products-track { animation-duration: 24s; }

@keyframes top-hero-product-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes top-hero-product-scroll-reverse {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .top-hero-products--scroll .top-hero-products-track { animation: none; }
}

.top-hero-decoration {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.top-hero-decoration-circle {
    position: absolute;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
}

.top-hero-decoration-circle-large {
    top: -180px;
    right: -120px;
    width: 520px;
    height: 520px;
}

.top-hero-decoration-circle-small {
    right: 28%;
    bottom: -110px;
    width: 250px;
    height: 250px;
}

.top-hero-decoration-line {
    position: absolute;
    top: 0;
    right: 34%;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(18deg);
}

@media (max-width: 960px) {
    .top-hero,
    .top-hero-inner {
        min-height: auto;
    }

    .top-hero-inner {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .top-hero-panel {
        min-height: 220px;
        transform: none;
    }
}

@media (max-width: 720px) {
    .top-hero-inner {
        padding-top: 58px;
        padding-bottom: 60px;
    }

    .top-hero-actions {
        gap: 8px;
        margin-top: 26px;
    }

    .top-hero-button {
        min-height: 44px;
        padding: 9px 16px;
    }

    .top-hero-panel {
        min-height: 180px;
        padding: 26px;
    }

    .top-hero-title {
        font-size: clamp(32px, 9vw, var(--hero-title-font-size, 64px));
    }

    .top-hero-description {
        font-size: clamp(15px, 4.2vw, var(--hero-description-font-size, 17px));
    }

    .top-hero-panel strong {
        font-size: clamp(28px, 8vw, var(--hero-panel-title-font-size, 56px));
    }

    .top-hero-panel-label,
    .top-hero-panel-caption {
        font-size: clamp(12px, 3.5vw, var(--hero-panel-label-font-size, 12px));
    }

    .top-hero-panel-caption {
        font-size: clamp(12px, 3.5vw, var(--hero-panel-caption-font-size, 12px));
    }

    .top-hero-button--1 {
        font-size: clamp(14px, 4vw, var(--hero-button-1-font-size, 16px));
    }

    .top-hero-button--2 {
        font-size: clamp(14px, 4vw, var(--hero-button-2-font-size, 16px));
    }

    .top-hero-products-track {
        grid-template-columns: repeat(4, minmax(80px, 1fr));
        gap: 5px;
        padding: 5px;
    }

    .top-hero-product-tile {
        min-height: 110px;
    }

    .top-hero-products--scroll .top-hero-product-tile {
        flex-basis: 120px;
        min-height: 100%;
    }
}

/* Buttons */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 24px;
    border: 1px solid transparent;
    border-radius: var(--radius-small);
    font-weight: 700;
    text-decoration: none;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--accent);
    color: #ffffff;
}

.button-primary:hover {
    background: var(--accent-dark);
    color: #ffffff;
}

.button-secondary {
    background: #ffffff;
    color: var(--text);
    border-color: var(--border);
}

.button-secondary:hover {
    background: var(--site-sidebar-hover-bg, var(--surface-muted));
    color: var(--text);
}

/* Notice */

.notice-section {
    padding: 24px 0;
}

.notice-bar {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: center;
    padding: 16px 20px;
    background: var(--site-sidebar-bg, var(--surface));
    border: 1px solid var(--site-sidebar-border, var(--border));
    border-radius: var(--radius);
}

.notice-label {
    margin: 0;
    padding-right: 20px;
    color: var(--accent);
    border-right: 1px solid var(--border);
    font-size: 0.82rem;
    font-weight: 800;
}

.notice-bar a {
    color: var(--text);
    font-size: 0.9rem;
    text-decoration: none;
}

.notice-bar a:hover {
    color: var(--accent);
}

/* Sections */

.section {
    padding: 72px 0;
}

.section-muted {
    background: var(--site-sidebar-hover-bg, var(--surface-muted));
    border-top: 1px solid var(--site-sidebar-border, var(--border));
    border-bottom: 1px solid var(--border);
}

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

.section-heading h2 {
    margin: 3px 0 0;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    line-height: 1.3;
}

.section-heading-sub {
    margin: 0;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.text-link {
    flex: 0 0 auto;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Category */

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

.category-card {
    display: flex;
    gap: 18px;
    align-items: center;
    min-height: 112px;
    padding: 22px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(25, 45, 35, 0.04);
    text-decoration: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    color: var(--text);
    border-color: #a9c1b3;
    box-shadow: var(--shadow);
}

.category-card-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 54px;
    height: 54px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 50%;
    font-size: 1.05rem;
    font-weight: 800;
}

.category-card-body {
    display: flex;
    flex-direction: column;
}

.category-card-body strong {
    font-size: 1rem;
}

.category-card-body small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.72rem;
}

/* Product cards */

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

.product-card {
    overflow: hidden;
    background: var(--site-sidebar-bg, var(--surface));
    border: 1px solid var(--site-sidebar-border, var(--border));
    border-radius: var(--radius);
    transition:
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.product-card-image {
    position: relative;
    display: grid;
    aspect-ratio: 1 / 1;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #3b3f43,
            #2d3034
        );
    color: var(--muted);
    text-decoration: none;
}

.product-image-placeholder {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}

.product-badge-soldout {
    background: rgba(35, 42, 38, 0.88);
    color: #ffffff;
}

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

.product-card-category {
    margin: 0 0 7px;
    color: var(--site-product-card-category-text, var(--accent));
    font-size: 0.72rem;
    font-weight: 800;
}

.product-card-title {
    min-height: 3.3em;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
}

.product-card-title a {
    color: var(--text);
    text-decoration: none;
}

.product-card-title a:hover {
    color: var(--accent);
}

.product-card-condition {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.product-card-price {
    display: flex;
    gap: 2px;
    align-items: baseline;
    margin: 13px 0 0;
    color: var(--text);
}

.product-card-price strong {
    font-size: 1.35rem;
    line-height: 1;
}

.product-card-price span {
    font-size: 0.9rem;
    font-weight: 700;
}

.product-card-price small {
    margin-left: 4px;
    color: var(--muted);
    font-size: 0.68rem;
}


/* Product list */

.product-search-form {
    display: grid;
    grid-template-columns:
        minmax(180px, 1fr)
        minmax(150px, 0.8fr)
        minmax(180px, 1fr)
        auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 30px;
    padding: 18px;
    background: var(--site-sidebar-bg, var(--surface));
    border: 1px solid var(--site-sidebar-border, var(--border));
    border-radius: var(--radius);
}

.product-search-form__field {
    display: grid;
    min-width: 0;
    gap: 6px;
}

.product-search-form__label {
    color: var(--text);
    font-size: 0.76rem;
    font-weight: 700;
}

.product-search-form__input,
.product-search-form__select {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    background: #ffffff;
    border: 1px solid var(--site-sidebar-border, var(--border));
    border-radius: var(--radius-small);
    color: var(--site-sidebar-text, var(--text));
    font-size: 0.86rem;
}

.product-search-form__input:focus,
.product-search-form__select:focus {
    border-color: var(--accent);
    outline: 2px solid rgba(37, 108, 74, 0.14);
    outline-offset: 1px;
}

.product-search-form__actions {
    display: flex;
    gap: 8px;
    align-items: center;
    min-height: 44px;
}

.product-search-form__submit,
.product-search-form__reset {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: var(--radius-small);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.product-search-form__submit {
    cursor: pointer;
    background: var(--accent);
    border: 1px solid var(--accent);
    color: #ffffff;
}

.product-search-form__submit:hover {
    background: var(--accent-dark);
}

.product-search-form__reset {
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--muted);
}

.product-search-form__reset:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.product-list-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
}

.product-list-keyword {
    margin: 0 0 6px;
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
}

.product-list-count {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.product-list-empty {
    margin: 0;
    padding: 54px 24px;
    background: var(--site-sidebar-bg, var(--surface));
    border: 1px solid var(--site-sidebar-border, var(--border));
    border-radius: var(--radius);
    color: var(--muted);
    text-align: center;
}

.product-list-empty__title {
    margin: 0;
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
}

.product-list-empty__text {
    margin: 10px 0 0;
    font-size: 0.86rem;
}

.product-list-empty__link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    margin-top: 22px;
    padding: 0 18px;
    background: var(--site-sidebar-heading-bg, var(--surface-muted));
    border: 1px solid var(--site-sidebar-heading-bg, var(--surface-muted));
    border-radius: var(--radius-small);
    color: var(--site-sidebar-heading-text, var(--text));
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.product-list-empty__link:hover {
    opacity: 0.88;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: center;
    margin-top: 44px;
}

.pagination__pages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    align-items: center;
}

.pagination__item {
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 13px;
    background:
        var(--site-pagination-bg, var(--surface));
    border: 1px solid
        var(--site-pagination-border, var(--border));
    border-radius: var(--radius-small);
    color:
        var(--site-pagination-text, var(--text));
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.pagination__item:hover,
.pagination__item:focus-visible {
    background:
        var(
            --site-pagination-hover-bg,
            var(--surface-muted)
        );
    border-color:
        var(
            --site-pagination-hover-border,
            var(--accent)
        );
    color:
        var(
            --site-pagination-hover-text,
            var(--accent)
        );
}

.pagination__current {
    background:
        var(
            --site-pagination-current-bg,
            var(--accent)
        );
    border-color:
        var(
            --site-pagination-current-border,
            var(--accent)
        );
    color:
        var(
            --site-pagination-current-text,
            #ffffff
        );
}

.pagination__current:hover,
.pagination__current:focus-visible {
    background:
        var(
            --site-pagination-current-bg,
            var(--accent)
        );
    border-color:
        var(
            --site-pagination-current-border,
            var(--accent)
        );
    color:
        var(
            --site-pagination-current-text,
            #ffffff
        );
}

.pagination__disabled {
    background:
        var(--site-pagination-bg, var(--surface));
    border-color:
        var(--site-pagination-border, var(--border));
    color:
        var(
            --site-pagination-disabled-text,
            var(--muted)
        );
    cursor: default;
    opacity: 1;
}

.pagination__disabled:hover,
.pagination__disabled:focus-visible {
    background:
        var(--site-pagination-bg, var(--surface));
    border-color:
        var(--site-pagination-border, var(--border));
    color:
        var(
            --site-pagination-disabled-text,
            var(--muted)
        );
}

.pagination__ellipsis {
    display: grid;
    place-items: center;
    min-width: 24px;
    height: 42px;
    color:
        var(
            --site-pagination-ellipsis,
            var(--muted)
        );
}


@media (max-width: 900px) {
    .product-search-form {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .product-search-form__actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .product-search-form {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 24px;
        padding: 16px;
    }

    .product-search-form__actions {
        grid-column: auto;
    }

    .product-search-form__submit {
        flex: 1 1 auto;
    }

    .product-search-form__reset {
        flex: 0 0 auto;
    }
}

@media (max-width: 600px) {
    .product-list-header {
        margin-bottom: 18px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 34px;
    }

    .pagination__pages {
        order: 3;
        width: 100%;
    }

    .pagination__previous,
    .pagination__next {
        min-width: 88px;
    }
}


/* Guide */

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

.guide-card {
    padding: 30px;
    background: var(--site-sidebar-bg, var(--surface));
    border: 1px solid var(--site-sidebar-border, var(--border));
    border-radius: var(--radius);
}

.guide-card-number {
    margin: 0 0 16px;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.guide-card h2 {
    margin: 0;
    font-size: 1.2rem;
}

.guide-card p:last-child {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Footer */

.site-footer {
    padding: 58px 0 24px;
    background: var(--site-footer-bg, var(--header));
    color: var(--site-footer-text, #ffffff);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 56px;
}

.footer-logo {
    margin: 0;
    color: var(--site-footer-text, #ffffff);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.footer-description {
    max-width: 380px;
    margin: 16px 0 0;
    font-size: 0.85rem;
}

.footer-heading {
    margin: 0 0 14px;
    color: var(--site-footer-text, #ffffff);
    font-size: 0.85rem;
    font-weight: 800;
}

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li + li {
    margin-top: 8px;
}

.footer-links a {
    color: var(--site-footer-text, #ffffff);
    font-size: 0.82rem;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--site-footer-text, #ffffff);
    opacity: 0.78;
}

.footer-bottom {
    margin-top: 42px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.76rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

/* Error page */

.error-page {
    padding: 100px 0;
    text-align: center;
}

.error-code {
    margin: 0;
    color: var(--accent);
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
}

.request-path {
    color: var(--muted);
    word-break: break-all;
}

/* Responsive */

@media (max-width: 960px) {
    .header-main-inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 12px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .site-logo {
        min-width: 0;
        max-width: 150px;
    }

    .header-search {
        min-width: 0;
    }

    .header-search input {
        height: 42px;
        padding-right: 10px;
        padding-left: 12px;
    }

    .header-search button {
        min-width: 64px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .hero {
        background: #ffffff;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-content {
        max-width: 720px;
    }

    .hero-visual {
        display: none;
    }

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

@media (max-width: 720px) {
    .container {
        width: min(
            calc(100% - 28px),
            var(--max-width)
        );
    }

    .header-main-inner {
        grid-template-columns: 72px minmax(0, 1fr) auto;
        min-height: auto;
        gap: 6px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .site-logo {
        width: 72px;
        max-width: 72px;
        min-width: 0;
        overflow: hidden;
    }

    .site-logo-main {
        overflow: hidden;
        font-size: 1rem;
        letter-spacing: 0.06em;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .site-logo-sub {
        display: none;
    }

    .header-search {
        width: 100%;
        min-width: 0;
        grid-template-columns: minmax(0, 1fr) 38px;
    }

    .header-search input {
        width: 100%;
        min-width: 0;
        height: 38px;
        padding-right: 6px;
        padding-left: 8px;
        font-size: 0.8rem;
    }

    .header-search-submit {
        display: grid;
        place-items: center;
        width: 38px;
        min-width: 38px;
        height: 38px;
        padding: 0;
    }

    .header-search-submit__label {
        display: none;
    }

    .header-search-submit__icon {
        display: block;
    }

    .header-cart {
        gap: 0;
    }

    .header-cart-label {
        display: none;
    }

    .header-cart-count {
        min-width: 27px;
        height: 27px;
        padding-right: 6px;
        padding-left: 6px;
    }

    .site-nav-inner {
        width: 100%;
        padding-left: 7px;
    }

    .site-nav a {
        padding-right: 12px;
        padding-left: 12px;
    }

    .hero-inner {
        padding-top: 54px;
        padding-bottom: 56px;
    }

    .hero h1 {
        font-size: clamp(2.15rem, 12vw, 3.25rem);
    }

    .section {
        padding: 54px 0;
    }

    .section-heading {
        align-items: flex-start;
    }

    .section-heading .text-link {
        display: inline-flex;
        align-items: center;
        flex: 0 0 auto;
        max-width: 46%;
        font-size: 0.78rem;
        line-height: 1.35;
        text-align: right;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .category-card {
        min-height: 92px;
        padding: 16px;
    }

    .product-grid {
        gap: 12px;
    }

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

    .product-card-title {
        font-size: 0.86rem;
    }

    .product-card-price strong {
        font-size: 1.18rem;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .notice-bar {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .notice-label {
        padding-right: 0;
        padding-bottom: 6px;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }
}

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

    .product-card {
        display: grid;
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .product-card-image {
        height: 100%;
        min-height: 170px;
        aspect-ratio: auto;
    }

    .product-card-title {
        min-height: auto;
    }
}

.product-card-image__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.page-hero {
    padding: 58px 0 48px;
    border-bottom: 1px solid #e3e8e5;
    background: #f5f7f6;
}

.page-hero__eyebrow {
    margin: 0 0 10px;
    color: #267555;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.page-hero__title {
    margin: 0;
    font-size: clamp(28px, 5vw, 44px);
    line-height: 1.4;
}

.content-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 42px 48px;
    border: 1px solid #e2e7e4;
    border-radius: 14px;
    background: #ffffff;
}

.content-page__body {
    color: #39463f;
    font-size: 15px;
    line-height: 2.15;
    overflow-wrap: anywhere;
}

.content-page__empty {
    margin: 0;
    color: #738078;
    text-align: center;
}

@media (max-width: 700px) {
    .page-hero {
        padding: 42px 0 36px;
    }

    .content-page {
        padding: 28px 22px;
    }
}

/* Category list and detail */

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

.category-list-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    min-height: 150px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

.category-list-card:hover {
    transform: translateY(-2px);
    border-color: #a9c1b3;
    box-shadow: var(--shadow);
    color: var(--text);
}

.category-list-card__image {
    display: grid;
    place-items: center;
    min-height: 150px;
    overflow: hidden;
    background: var(--accent-soft);
    color: var(--accent);
}

.category-list-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-list-card__image span {
    font-size: 2rem;
    font-weight: 800;
}

.category-list-card__body {
    padding: 22px;
}

.category-list-card__body h2 {
    margin: 0;
    font-size: 1.15rem;
}

.category-list-card__body p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.8;
}

.category-detail {
    max-width: 960px;
    margin: 0 auto;
}

.category-detail__image {
    max-height: 420px;
    margin-bottom: 28px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.category-detail__image img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
}

.category-detail__description {
    padding: 28px 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--muted);
    line-height: 2;
}

.category-detail__products {
    margin-top: 28px;
    padding: 34px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: var(--site-sidebar-hover-bg, var(--surface-muted));
    color: var(--muted);
    text-align: center;
}

.category-detail__products p {
    margin: 0;
}

@media (max-width: 960px) {
    .category-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .category-list-grid {
        grid-template-columns: 1fr;
    }

    .category-list-card {
        grid-template-columns: 96px minmax(0, 1fr);
        min-height: 120px;
    }

    .category-list-card__image {
        min-height: 120px;
    }

    .category-list-card__body {
        padding: 18px;
    }

    .category-detail__description {
        padding: 22px;
    }
}

/* TOP page empty state */

.top-empty {
    margin: 0;
    padding: 36px 24px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--muted);
    text-align: center;
}

/* Product filter desktop layout */

@media (min-width: 701px) {
    form.product-search-form {
        display: flex;
        flex-flow: row nowrap;
        gap: 12px;
        align-items: flex-end;
        width: 100%;
    }

    form.product-search-form
    > .product-search-form__field {
        display: flex;
        flex: 1 1 0;
        flex-direction: column;
        min-width: 0;
    }

    form.product-search-form
    > .product-search-form__field:first-of-type {
        flex-basis: 220px;
    }

    form.product-search-form
    > .product-search-form__actions {
        display: flex;
        flex: 0 0 auto;
        flex-direction: row;
        grid-column: auto;
        align-items: center;
        min-width: max-content;
    }
}

/* Category product list */

.category-product-list {
    margin-top: 34px;
}

.category-detail + .category-product-list {
    margin-top: 42px;
}



@media (max-width: 700px) {
    .category-product-list {
        margin-top: 26px;
    }

    .category-detail
    + .category-product-list {
        margin-top: 32px;
    }
}


/* Adult product card */

.product-card--adult-masked {
    background: var(--surface);
}

.product-card-image--adult-masked {
    position: relative;
    background:
        repeating-linear-gradient(
            135deg,
            #e4e8e5 0,
            #e4e8e5 14px,
            #d9dfdb 14px,
            #d9dfdb 28px
        );
}

.product-card-adult-placeholder {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    background: rgba(23, 37, 31, 0.9);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.product-badge-adult {
    background: rgba(184, 64, 64, 0.94);
    color: #ffffff;
}

.product-card-adult-title {
    margin: 0;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 800;
}

.product-card-adult-message {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.7;
}

.product-card-adult-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-top: 14px;
    padding: 0 14px;
    background: var(--header);
    border-radius: var(--radius-small);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.product-card-adult-link:hover {
    background: var(--header-light);
    color: #ffffff;
}


/* Shop two-column layout */

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

.shop-layout__main {
    min-width: 0;
}

/* Shop sidebar */

.shop-sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 20px;
}

.shop-sidebar__section {
    overflow: hidden;
    background: var(--site-sidebar-bg, var(--surface));
    border: 1px solid var(--site-sidebar-border, var(--border));
    border-radius: var(--radius);
}

.shop-sidebar__heading {
    margin: 0;
    padding: 14px 16px;
    background: var(--site-sidebar-heading-bg, var(--surface-muted));
    border-bottom: 1px solid var(--site-sidebar-border, var(--border));
    color: var(--site-sidebar-heading-text, var(--text));
    font-size: 0.86rem;
    font-weight: 800;
}

/* Sidebar filter */

.shop-filter-form {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.shop-filter-form__field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.shop-filter-form__label {
    color: var(--site-sidebar-text, var(--text));
    font-size: 0.74rem;
    font-weight: 700;
}

.shop-filter-form__select {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 10px;
    background: #ffffff;
    border: 1px solid var(--site-sidebar-border, var(--border));
    border-radius: var(--radius-small);
    color: var(--site-sidebar-text, var(--text));
    font-size: 0.82rem;
}

.shop-filter-form__select:focus {
    border-color: var(--accent);
    outline: 2px solid rgba(37, 108, 74, 0.14);
    outline-offset: 1px;
}

.shop-filter-form__submit,
.shop-filter-form__reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border-radius: var(--radius-small);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.shop-filter-form__submit {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: #ffffff;
}

.shop-filter-form__submit:hover {
    background: var(--site-sidebar-button-hover-bg, var(--accent-dark));
    border-color: var(--site-sidebar-button-hover-bg, var(--accent-dark));
}

.shop-filter-form__reset {
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--muted);
}

.shop-filter-form__reset:hover {
    border-color: var(--accent);
    color: var(--accent);
}


.shop-filter-form__details {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
}

.shop-filter-form__details-summary {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 0 12px;
    color: var(--site-sidebar-text, var(--text));
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    list-style: none;
}

.shop-filter-form__details-summary::-webkit-details-marker {
    display: none;
}

.shop-filter-form__details-summary::after {
    content: "⌄";
    color: var(--muted);
    font-size: 0.9rem;
    transition: transform 0.18s ease;
}

.shop-filter-form__details[open] .shop-filter-form__details-summary::after {
    transform: rotate(180deg);
}

.shop-filter-form__details-summary span {
    margin-left: auto;
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
}

.shop-filter-form__checkboxes {
    display: grid;
    gap: 0;
    max-height: 220px;
    overflow-y: auto;
    border-top: 1px solid var(--site-sidebar-border, var(--border));
}

.shop-filter-form__checkbox {
    display: flex;
    gap: 8px;
    align-items: center;
    min-height: 38px;
    padding: 7px 12px;
    color: var(--site-sidebar-text, var(--text));
    cursor: pointer;
    font-size: 0.78rem;
}

.shop-filter-form__checkbox + .shop-filter-form__checkbox {
    border-top: 1px solid var(--site-sidebar-border, var(--border));
}

.shop-filter-form__checkbox:hover {
    background: var(--site-sidebar-hover-bg, var(--surface-muted));
}

.shop-filter-form__checkbox input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--accent);
    flex: 0 0 auto;
}

/* Sidebar links */

.shop-sidebar__links {
    margin: 0;
    padding: 8px 0;
    list-style: none;
}

.shop-sidebar__links li + li {
    border-top: 1px solid var(--site-sidebar-border, var(--border));
}

.shop-sidebar__links a {
    position: relative;
    display: block;
    padding: 11px 34px 11px 16px;
    color: var(--site-sidebar-text, var(--text));
    font-size: 0.8rem;
    text-decoration: none;
}

.shop-sidebar__links a::after {
    position: absolute;
    top: 50%;
    right: 15px;
    content: "\203A";
    color: var(--muted);
    transform: translateY(-50%);
}

.shop-sidebar__links a:hover {
    background: var(--site-sidebar-hover-bg, var(--surface-muted));
    color: var(--accent);
}

.shop-sidebar__links a.is-current {
    background: var(--site-sidebar-current-bg, var(--accent-soft));
    color: var(--site-sidebar-current-text, var(--accent-dark));
    font-weight: 800;
}

.shop-sidebar__links a.is-current::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: var(--site-sidebar-accent, var(--accent));
    content: "";
}

/*
 * サイドバーを設けたため、
 * 商品表示部分はPCで3列とする。
 */

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

/* Responsive */

@media (max-width: 960px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: static;
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .shop-sidebar__section {
        min-width: 0;
    }

    .shop-layout__main .product-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .shop-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .shop-layout__main .product-grid {
        grid-template-columns: 1fr;
    }
}


.shop-filter-form__input {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 10px;
    background: #ffffff;
    border: 1px solid var(--site-sidebar-border, var(--border));
    border-radius: var(--radius-small);
    color: var(--site-sidebar-text, var(--text));
    font-size: 0.82rem;
}

.shop-filter-form__input:focus {
    border-color: var(--accent);
    outline: 2px solid rgba(37, 108, 74, 0.14);
    outline-offset: 1px;
}

.shop-filter-form__price {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.shop-filter-form__price-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    align-items: center;
}

.shop-filter-form__price-input span {
    color: var(--muted);
    font-size: 0.75rem;
}

.shop-filter-form__price-separator {
    display: none;
    color: var(--muted);
    font-size: 0.78rem;
    text-align: center;
}


/* =========================================================
   商品詳細
========================================================= */

.product-detail-page {
    padding-top: 28px;
    padding-bottom: 72px;
}

.product-detail-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 24px;
    font-size: 13px;
    color: #666;
}

.product-detail-breadcrumbs a {
    color: inherit;
}

.product-detail-header {
    margin-bottom: 28px;
}

.product-detail__sold-out {
    display: inline-block;
    margin: 0 0 12px;
    padding: 6px 12px;
    border-radius: 4px;
    background: #555;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.product-detail__title {
    margin: 0;
    font-size: clamp(25px, 3vw, 40px);
    line-height: 1.4;
    overflow-wrap: anywhere;
}

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

.product-detail__main {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(300px, 1.15fr);
    gap: 32px;
    min-width: 0;
    align-items: start;
}

.product-detail__gallery,
.product-detail__summary,
.product-detail__purchase {
    min-width: 0;
}

.product-gallery {
    width: 100%;
}

.product-gallery__main-wrap {
    position: relative;
}

.product-gallery__main {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 18px;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: zoom-in;
}

.product-gallery__main:not([data-gallery-open]) {
    cursor: default;
}

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

.product-gallery__arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 56px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
    color: #222;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.product-gallery__arrow:hover {
    background: #fff;
}

.product-gallery__arrow--previous { left: 10px; }
.product-gallery__arrow--next { right: 10px; }

.product-gallery__thumbnails {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.product-gallery__thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

.product-gallery__thumbnail:hover { border-color: #888; }
.product-gallery__thumbnail.is-active { border-color: #222; box-shadow: 0 0 0 1px #222; }
.product-gallery__thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }

.product-detail__basic-data {
    margin: 0;
    border-top: 1px solid #ddd;
}

.product-detail__basic-data > div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid #ddd;
}

.product-detail__basic-data dt { color: #666; font-size: 14px; }
.product-detail__basic-data dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }

.product-detail__description { margin-top: 28px; }
.product-detail__description:first-child { margin-top: 0; }
.product-detail__description h2 { margin: 0 0 12px; font-size: 18px; }
.product-detail__description-body { line-height: 1.9; overflow-wrap: anywhere; }

.product-purchase-box {
    padding: 24px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: #fafafa;
}

.product-purchase-box__price { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; margin: 0 0 18px; }
.product-purchase-box__price strong { font-size: clamp(30px, 3vw, 40px); line-height: 1; }
.product-purchase-box__price span { font-size: 18px; font-weight: 700; }
.product-purchase-box__price small { color: #666; }
.product-purchase-box__status { margin-bottom: 14px; }
.product-purchase-box__stock { display: inline-block; font-weight: 700; }
.product-purchase-box__stock--available { color: #19703a; }
.product-purchase-box__stock--sold-out { color: #a12020; }
.product-purchase-box__shipping { margin: 0 0 20px; color: #555; font-size: 14px; line-height: 1.7; }
.product-purchase-box__cart { display: grid; grid-template-columns: 72px 1fr; gap: 10px; align-items: center; }
.product-purchase-box__cart label { font-weight: 700; }
.product-purchase-box__cart select { width: 100%; min-height: 44px; padding: 0 10px; }
.product-purchase-box__cart-button { grid-column: 1 / -1; width: 100%; min-height: 52px; margin-top: 4px; border: 0; border-radius: 5px; background: #555; color: #fff; font-size: 16px; font-weight: 700; }
.product-purchase-box__cart-button:disabled { cursor: not-allowed; opacity: 0.65; }
.product-purchase-box__note { margin: 10px 0 0; color: #777; font-size: 12px; text-align: center; }
.product-purchase-box__guide { margin-top: 22px; padding-top: 18px; border-top: 1px solid #ddd; color: #555; font-size: 13px; line-height: 1.7; }
.product-purchase-box__guide p { margin: 5px 0; }

.product-detail-fields {
    grid-column: 1 / -1;
    margin-top: 12px;
    padding-top: 32px;
    border-top: 1px solid #ddd;
}

.product-detail-fields h2 { margin: 0 0 20px; font-size: 24px; }
.product-detail-fields__list { margin: 0; border-top: 1px solid #ddd; }
.product-detail-fields__row { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr); border-bottom: 1px solid #ddd; }
.product-detail-fields__row dt { padding: 15px 18px; background: #f7f7f7; color: #555; font-weight: 700; }
.product-detail-fields__row dd { min-width: 0; margin: 0; padding: 15px 18px; line-height: 1.75; overflow-wrap: anywhere; }

body.is-gallery-modal-open { overflow: hidden; }
.product-gallery-modal { position: fixed; z-index: 10000; inset: 0; display: none; align-items: center; justify-content: center; padding: 24px; }
.product-gallery-modal.is-open { display: flex; }
.product-gallery-modal__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(0, 0, 0, 0.82); cursor: zoom-out; }
.product-gallery-modal__dialog { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: min(1100px, 94vw); height: min(860px, 90vh); padding: 54px 70px 46px; border-radius: 8px; background: #fff; }
.product-gallery-modal__image { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.product-gallery-modal__close { position: absolute; z-index: 2; top: 10px; right: 14px; width: 42px; height: 42px; padding: 0; border: 0; background: transparent; color: #222; font-size: 34px; line-height: 1; cursor: pointer; }
.product-gallery-modal__arrow { position: absolute; z-index: 2; top: 50%; display: flex; align-items: center; justify-content: center; width: 50px; height: 70px; padding: 0; border: 0; border-radius: 5px; background: rgba(0, 0, 0, 0.08); color: #222; font-size: 48px; line-height: 1; cursor: pointer; transform: translateY(-50%); }
.product-gallery-modal__arrow:hover { background: rgba(0, 0, 0, 0.14); }
.product-gallery-modal__arrow--previous { left: 12px; }
.product-gallery-modal__arrow--next { right: 12px; }
.product-gallery-modal__counter { position: absolute; bottom: 15px; left: 50%; margin: 0; color: #555; font-size: 14px; transform: translateX(-50%); }

@media (max-width: 1050px) {
    .product-detail { grid-template-columns: 1fr; }
    .product-detail__main { grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr); }
    .product-detail__purchase { grid-column: auto; }
    .product-purchase-box { max-width: none; }
    .product-purchase-box__cart { grid-template-columns: 72px 120px 1fr; }
    .product-purchase-box__cart-button { grid-column: auto; margin-top: 0; }
}

@media (max-width: 720px) {
    .product-detail-page { padding-top: 18px; padding-bottom: 48px; }
    .product-detail-header { margin-bottom: 22px; }
    .product-detail__title { font-size: 25px; }
    .product-detail { grid-template-columns: 1fr; gap: 28px; }
    .product-detail__main { grid-template-columns: 1fr; gap: 28px; }
    .product-detail__purchase { grid-column: auto; }
   .product-gallery__main { max-height: none; }
    .product-gallery__arrow { width: 36px; height: 50px; font-size: 32px; }
    .product-gallery__arrow--previous { left: 6px; }
    .product-gallery__arrow--next { right: 6px; }
    .product-gallery__thumbnails { grid-template-columns: repeat(5, minmax(58px, 1fr)); overflow-x: auto; padding-bottom: 4px; }
    .product-detail__basic-data > div { grid-template-columns: 105px 1fr; gap: 12px; }
    .product-purchase-box { padding: 20px; }
    .product-purchase-box__cart { grid-template-columns: 72px 1fr; }
    .product-purchase-box__cart-button { grid-column: 1 / -1; }
    .product-detail-fields { margin-top: 40px; }
    .product-detail-fields__row { grid-template-columns: 1fr; }
    .product-detail-fields__row dt { padding: 12px 14px; }
    .product-detail-fields__row dd { padding: 13px 14px; }
    .product-gallery-modal { padding: 10px; }
    .product-gallery-modal__dialog { width: 96vw; height: 90vh; padding: 52px 46px 42px; }
    .product-gallery-modal__arrow { width: 40px; height: 58px; font-size: 40px; }
    .product-gallery-modal__arrow--previous { left: 4px; }
    .product-gallery-modal__arrow--next { right: 4px; }
}

/* Phase A step 2: compact product carousel */
.product-detail-related {
    margin-top: 40px;
    margin-bottom: 40px;
}

.product-carousel-page-section {
    padding-top: 16px;
}

.product-carousel-section {
    min-width: 0;
}

.product-carousel-section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.product-carousel-section__header h2 {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.product-carousel-section__eyebrow {
    margin: 0 0 4px;
    color: #777;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
}

.product-carousel-controls {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}

.product-carousel-controls button {
    width: 38px;
    height: 38px;
    border: 1px solid #d8d8d8;
    border-radius: 50%;
    background: #fff;
    color: #222;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.product-carousel-controls button:hover {
    border-color: #999;
    background: #f7f7f7;
}

.product-carousel-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 2px 2px 12px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.product-carousel-item {
    flex: 0 0 clamp(150px, 16vw, 205px);
    min-width: 0;
    scroll-snap-align: start;
}

.product-card-compact {
    height: 100%;
    overflow: hidden;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    background: #fff;
}

.product-card-compact__image {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #3b3f43,
            #2d3034
        );
}


.product-card-compact__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .2s ease;
}

.product-card-compact:hover .product-card-compact__image img {
    transform: scale(1.03);
}

.product-card-compact__soldout {
    position: absolute;
    right: 7px;
    bottom: 7px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(40, 40, 40, .85);
    color: #fff;
    font-size: .7rem;
}

.product-card-compact__body {
    padding: 10px 11px 12px;
}

.product-card-compact__category,
.product-card-compact__condition {
    margin: 0 0 5px;
    color: #777;
    font-size: .72rem;
}

.product-card-compact__category {
    color: var(--site-product-card-category-text, var(--accent));
}

.product-card-compact__title {
    display: -webkit-box;
    min-height: 2.8em;
    margin: 0 0 8px;
    overflow: hidden;
    font-size: .88rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-card-compact__title a {
    color: inherit;
    text-decoration: none;
}

.product-card-compact__price {
    margin: 0;
    color: #222;
}

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

.product-card-compact__price span {
    margin-left: 2px;
    font-size: .75rem;
}

@media (max-width: 767px) {
    .product-detail-related {
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .product-carousel-item {
        flex-basis: 42vw;
        max-width: 175px;
    }

    .product-carousel-controls button {
        width: 34px;
        height: 34px;
    }
}


/* Phase A corrective responsive rules */
.product-gallery-modal[hidden] {
    display: none !important;
}

@media (max-width: 960px) {
    .shop-layout__main {
        order: 1;
    }

    .shop-sidebar {
        order: 2;
        margin-top: 28px;
    }
}

@media (max-width: 720px) {
    .product-detail-page {
        overflow-x: hidden;
    }

    .product-gallery__main-wrap,
   .product-gallery__main {
        width: 100%;
        max-width: 100%;
    }

   .product-gallery__main {
        aspect-ratio: 1 / 1;
        padding: 10px;
    }

    .product-gallery__thumbnails {
        display: flex;
        gap: 8px;
        width: 100%;
        overflow-x: auto;
        padding: 2px 0 8px;
        scroll-snap-type: x proximity;
    }

    .product-gallery__thumbnail {
        flex: 0 0 64px;
        width: 64px;
        height: 64px;
        aspect-ratio: auto;
        scroll-snap-align: start;
    }

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

    .shop-sidebar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .shop-sidebar__section {
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background: var(--surface);
        box-shadow: var(--shadow-soft);
    }
}

/* Phase B: uploaded header logo */
.site-logo--image {
    width: min(220px, 24vw);
    height: 64px;
    justify-content: center;
}

.site-logo-image {
    display: block;
    max-width: 100%;
    max-height: 58px;
    object-fit: contain;
    object-position: left center;
}

@media (max-width: 960px) {
    .site-logo--image {
        width: min(150px, 20vw);
        height: 46px;
    }

    .site-logo-image {
        max-height: 42px;
    }
}

@media (max-width: 720px) {
    .site-logo--image {
        width: 72px;
        max-width: 72px;
        height: 38px;
    }

    .site-logo-image {
        max-width: 72px;
        max-height: 34px;
    }
}


/* Product page settings */
.product-detail__gallery .product-gallery__main {
    width: 100%;
    max-width: var(--product-main-image-width, 600px);
    margin-inline: auto;
}
.product-detail__gallery .product-gallery__thumbnails {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding-bottom: 6px;
    scrollbar-width: thin;
}
.product-detail__gallery .product-gallery__thumbnail {
    flex: 0 0 auto;
}

/* Product thumbnail strip: keep sub images small while allowing horizontal scroll */
.product-detail__gallery .product-gallery__thumbnail {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    aspect-ratio: auto;
}

.product-detail__gallery .product-gallery__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 720px) {
    .product-detail__gallery .product-gallery__thumbnail {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
    }
}


/* Product shipping summary */
.product-shipping-summary{margin-top:16px;padding:14px;border:1px solid #d8dee8;border-radius:10px;background:#f8fafc;font-size:.92rem}.product-shipping-summary p{margin:0}.product-shipping-summary p+p{margin-top:6px}.product-shipping-summary__fee{font-size:1rem;font-weight:700}.product-shipping-summary__free-note{color:#176b45;font-weight:600}.product-shipping-summary__days{color:#475569}.product-shipping-help{position:relative;display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;margin-left:4px;border-radius:50%;background:#64748b;color:#fff;font-size:12px;cursor:help}.product-shipping-help__tooltip{position:absolute;z-index:20;left:50%;bottom:calc(100% + 8px);width:280px;padding:10px 12px;border-radius:8px;background:#1e293b;color:#fff;font-size:12px;font-weight:400;line-height:1.5;transform:translateX(-50%);opacity:0;visibility:hidden;pointer-events:none}.product-shipping-help:hover .product-shipping-help__tooltip,.product-shipping-help:focus .product-shipping-help__tooltip{opacity:1;visibility:visible}@media(max-width:640px){.product-shipping-help__tooltip{left:auto;right:-10px;transform:none;width:min(260px,75vw)}}


.product-condition-badge{display:inline-flex;align-items:center;max-width:100%;padding:.28em .65em;border-radius:999px;font-size:.84rem;font-weight:700;line-height:1.35}.product-condition-description{margin:.55rem 0 0;color:#475569;font-size:.92rem;line-height:1.65}.product-card-condition .product-condition-badge{font-size:.78rem}

/* Age verification */
.product-card-image--adult-masked,
.product-card-compact--adult-masked .product-card-compact__image {
    position: relative;
    overflow: hidden;
}
.product-card-image__img--adult-masked,
.product-card-compact__image img.is-adult-masked {
    filter: blur(12px);
    transform: scale(1.08);
}
.product-card-adult-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: 1rem;
    text-align: center;
    color: #fff;
    background: rgba(0, 0, 0, .42);
}
.product-card-adult-overlay strong { font-size: .95rem; }
.product-card-adult-overlay small { font-size: .75rem; }
.age-verification-page { padding-top: 3rem; padding-bottom: 4rem; }
.age-verification-card {
    max-width: 620px;
    margin: 0 auto;
    padding: clamp(1.5rem, 5vw, 3rem);
    border: 1px solid #ddd;
    border-radius: 18px;
    text-align: center;
    background: #fff;
    box-shadow: 0 12px 36px rgba(0,0,0,.08);
}
.age-verification-card__mark { margin: 0 0 1rem; font-size: 3rem; font-weight: 800; }
.age-verification-card__description { line-height: 1.8; }
.age-verification-card__actions { display: grid; gap: .75rem; margin-top: 1.75rem; }
.age-verification-card__actions button { min-height: 52px; border-radius: 10px; font-weight: 700; cursor: pointer; }
.age-verification-card__yes { border: 0; color: #fff; background: #222; }
.age-verification-card__no { border: 1px solid #bbb; color: #333; background: #fff; }

.manage-section-subtitle {
    margin: 28px 0 12px;
    font-size: 1rem;
}


/* Hero STEP8: unverified adult product masking */
.top-hero-product-tile--adult-masked {
    overflow: hidden;
    position: relative;
}

.top-hero-product-tile--adult-masked img {
    filter: blur(var(--hero-adult-blur-strength, 18px)) brightness(.58);
    transform: scale(1.14);
}

.top-hero-product-tile--adult-masked::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(18, 24, 22, .22);
    pointer-events: none;
}

/* Category cards: actual product thumbnail collage */
.category-list-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.category-list-card {
    position: relative;
    display: block;
    min-height: 230px;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius-large);
    background: #26352d;
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(20, 33, 27, 0.12);
    isolation: isolate;
}

.category-list-card:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(20, 33, 27, 0.18);
}

.category-list-card__background {
    position: absolute;
    inset: 0;
    z-index: -3;
    display: grid;
    width: 100%;
    height: 100%;
    background: var(--accent-soft);
}

.category-list-card__background--1 {
    grid-template-columns: 1fr;
}

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

.category-list-card__background--3,
.category-list-card__background--4 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.category-list-card__background--3 .category-list-card__tile:first-child {
    grid-row: 1 / 3;
}

.category-list-card__tile {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.category-list-card__tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-list-card:hover .category-list-card__tile img {
    transform: scale(1.035);
}

.category-list-card__fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--accent);
    font-size: 4rem;
    font-weight: 900;
}

.category-list-card__shade {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(
            180deg,
            rgba(10, 17, 13, 0.08) 0%,
            rgba(10, 17, 13, 0.28) 42%,
            rgba(10, 17, 13, 0.82) 100%
        );
}

.category-list-card__content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    gap: 12px;
    align-items: flex-end;
    justify-content: space-between;
    padding: 26px;
}

.category-list-card__name {
    max-width: calc(100% - 90px);
    font-size: 1.35rem;
    font-weight: 850;
    line-height: 1.35;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.category-list-card__link {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.category-list-card__age-label {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 9px;
    background: rgba(20, 20, 20, 0.72);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.category-list-card.is-age-masked .category-list-card__background {
    filter: blur(16px) brightness(0.58);
    transform: scale(1.08);
}

@media (max-width: 960px) {
    .category-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .category-list-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .category-list-card {
        min-height: 190px;
    }

    .category-list-card__content {
        padding: 22px;
    }

    .category-list-card__name {
        font-size: 1.2rem;
    }
}

/* Category card shared design: TOP + category list */
.category-list-card--compact {
    min-height: 112px;
    border-radius: var(--radius);
}

.category-list-card--compact .category-list-card__content {
    padding: 18px 20px;
}

.category-list-card--compact .category-list-card__name {
    max-width: 100%;
    font-size: 1rem;
}

.category-list-card__tile.is-adult-masked {
    position: relative;
    overflow: hidden;
}

.category-list-card__tile.is-adult-masked::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(18, 24, 22, .22);
    pointer-events: none;
}

/* STEP10 uses per-image inline blur values. Disable the old fixed whole-card blur. */
.category-list-card.is-age-masked .category-list-card__background {
    filter: none;
    transform: none;
}

/* STEP14: make the entire product card clickable via the title link */
.product-card,
.product-card-compact {
    position: relative;
    cursor: pointer;
}

.product-card-title a::after,
.product-card-compact__title a::after {
    position: absolute;
    inset: 0;
    z-index: 3;
    content: "";
}

.product-card:focus-within,
.product-card-compact:focus-within {
    outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
    outline-offset: 3px;
}

.product-card-image,
.product-card-compact__image,
.product-card-adult-overlay,
.product-badge,
.product-card-compact__soldout {
    pointer-events: none;
}


/* TOPページ部品ごとの共通デザイン設定 */
.top-page-block .section-heading h2,
.top-page-block .product-carousel-section__header h2,
.top-page-block .notice-label,
.top-page-block .top-free-html__heading {
    color: var(--top-page-block-heading-color, inherit);
}

.top-page-block .section-heading-sub,
.top-page-block .product-carousel-section__eyebrow {
    color: var(--top-page-block-eyebrow-color, var(--accent));
}

.top-page-block .text-link,
.top-page-block .text-link:visited {
    color: var(--top-page-block-link-color, inherit);
}

.top-page-block .text-link:hover {
    color: var(--top-page-block-link-color, inherit);
    opacity: 0.78;
}

/* TOPページ部品同士の境界にテーマ由来の罫線を出さない */
.top-page-block.section-muted {
    border-top: 0;
    border-bottom: 0;
}

.top-page-block + .top-page-block {
    margin-top: 0;
}



/* STEP15-10: ヒーロー直下・TOP部品境界の白線を完全に除去 */
.top-hero {
    border-bottom: 0;
}

.top-hero + .top-page-block,
.top-page-block + .top-page-block {
    border-top: 0;
    margin-top: 0;
}

/* Rich content rendered by fixed pages/posts */
.content-page__body { color: inherit; line-height: 1.9; }
.content-page__body h2, .content-page__body h3, .content-page__body h4 { color: inherit; line-height: 1.45; }
.content-page__body table { width: 100%; margin: 1.5em 0; border-collapse: collapse; }
.content-page__body th, .content-page__body td { padding: 12px; border: 1px solid currentColor; vertical-align: top; }
.content-page__body blockquote { margin: 1.5em 0; padding: 1em 1.25em; border-left: 4px solid currentColor; background: rgba(127,127,127,.08); }
.content-page__body img { max-width: 100%; height: auto; }

/* =========================================================
   STEP15-12: 下層ページ配色の適用範囲調整
========================================================= */

/* 商品詳細の購入・カートカードは、下層ページの文字色設定を継承させない。 */
.site-main--subpage .product-purchase-box {
    background: #fafafa;
    color: #1f2933;
}

.site-main--subpage .product-purchase-box select,
.site-main--subpage .product-purchase-box input,
.site-main--subpage .product-purchase-box textarea {
    color: #1f2933;
    background: #ffffff;
}

/* 商品詳細下部からフッター直前まで、下層ページの設定色を途切れさせない。 */
.site-main--subpage,
.site-main--subpage .product-detail-page,
.site-main--subpage .product-detail-related,
.site-main--subpage .product-carousel-page-section {
    background-color: var(--site-subpage-background, #ffffff);
    color: var(--site-subpage-text, #1f2933);
}

.site-main--subpage:has(.product-detail-page) {
    padding-bottom: 1px;
}

.site-main--subpage .product-detail-related:last-of-type {
    margin-bottom: 0;
    padding-bottom: 40px;
}

/* 固定ページのタイトル帯も、下層ページの設定色を使用する。 */
.site-main--subpage .page-hero {
    border-bottom-color: color-mix(in srgb, currentColor 18%, transparent);
    background: var(--site-subpage-background, #ffffff);
    color: var(--site-subpage-text, #1f2933);
}

.site-main--subpage .page-hero__eyebrow,
.site-main--subpage .page-hero__title {
    color: inherit;
}

/* 固定ページ本文カードは配置と余白だけを担当し、配色は親から継承する。 */
.site-main--subpage .content-page {
    border-color: color-mix(in srgb, currentColor 18%, transparent);
    background: transparent;
    color: inherit;
    box-shadow: none;
}

.site-main--subpage .content-page__body,
.site-main--subpage .content-page__empty {
    color: inherit;
}

@supports not (color: color-mix(in srgb, black 50%, white)) {
    .site-main--subpage .page-hero,
    .site-main--subpage .content-page {
        border-color: currentColor;
    }
}

/* STEP15-13: fixed page content is not displayed as a card */
.site-main--subpage .content-page {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    color: inherit;
}

.content-page__body .page-info-table {
    margin: 2rem 0 0;
    overflow-x: auto;
}
.content-page__body .page-info-table table {
    margin: 0;
    min-width: 520px;
}
.content-page__body .page-info-table th {
    width: 28%;
    font-weight: 700;
    text-align: left;
}


/* STEP19-8 商品・ブログ共通サイドメニュー配色 */
.shop-sidebar__section {
    background: var(--site-sidebar-bg, var(--surface));
    border-color: var(--site-sidebar-border, var(--border));
    color: var(--site-sidebar-text, var(--text));

    border-radius: var(--site-sidebar-radius, 10px);
    overflow: hidden;}

.shop-sidebar__heading {
    background: var(--site-sidebar-heading-bg, var(--surface-muted));
    border-bottom-color: var(--site-sidebar-border, var(--border));
    color: var(--site-sidebar-heading-text, var(--text));
}

.shop-filter-form,
.shop-filter-form__details,
.shop-filter-form__select,
.shop-filter-form__input {
    color: var(--site-sidebar-text, var(--text));
}

.shop-filter-form__select,
.shop-filter-form__input,
.shop-filter-form__details {
    background: var(--site-sidebar-bg, #ffffff);
    border-color: var(--site-sidebar-border, var(--border));
}

.shop-filter-form__label,
.shop-filter-form__details-summary,
.shop-filter-form__checkbox {
    color: var(--site-sidebar-text, var(--text));
}

.shop-filter-form__checkbox + .shop-filter-form__checkbox,
.shop-filter-form__checkboxes,
.shop-sidebar__links li + li {
    border-color: var(--site-sidebar-border, var(--border));
}

.shop-filter-form__checkbox:hover,
.shop-sidebar__links a:hover {
    background: var(--site-sidebar-hover-bg, var(--surface-muted));
}

.shop-sidebar__links a {
    color: var(--site-sidebar-text, var(--text));
}

.shop-sidebar__links a:hover {
    color: var(--site-sidebar-accent, var(--accent));
}

.shop-sidebar__links a.is-current {
    background: var(--site-sidebar-current-bg, var(--accent-soft));
    color: var(--site-sidebar-current-text, var(--accent-dark));
}

.shop-sidebar__links a.is-current::before {
    background: var(--site-sidebar-accent, var(--accent));
}

.shop-filter-form__submit {
    background: var(--site-sidebar-accent, var(--accent));
    border-color: var(--site-sidebar-accent, var(--accent));
}


/* STEP21-3 売切商品カード */
.product-card--soldout .product-card-image::after,
.product-card-compact--soldout .product-card-compact__image::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(67, 72, 77, 0.64);
    content: "";
    pointer-events: none;
}

.product-card--soldout .product-card-image__img,
.product-card-compact--soldout .product-card-compact__image img {
    filter: grayscale(82%) brightness(0.72);
}

.product-card-soldout-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: block;
    width: 64px;
    height: 64px;
    overflow: hidden;
    color: #ffffff;
    pointer-events: none;
}

.product-card-soldout-ribbon::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-top: 64px solid #d91622;
    border-right: 64px solid transparent;
    content: "";
}

.product-card-soldout-ribbon::after {
    content: none;
}

.product-card--soldout:hover .product-card-image__img,
.product-card-compact--soldout:hover .product-card-compact__image img {
    transform: none;
}

/* STEP21-4 カート追加ボタン */
.product-purchase-box__cart-button {
    background: #1677d2;
}
.product-purchase-box__cart-button:hover:not(:disabled) {
    background: #0f65b8;
}
.product-purchase-box__cart-button:disabled {
    background: #8c959d;
}


/* STEP24-2 商品サイドバー見出し開閉 */
.shop-sidebar__heading {
    padding: 0;
}

.shop-sidebar__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    text-align: left;
    cursor: pointer;
}

.shop-sidebar__toggle:hover {
    background:
        var(
            --site-sidebar-hover-bg,
            rgba(0, 0, 0, 0.035)
        );
}

.shop-sidebar__toggle:focus-visible {
    outline:
        2px solid
        var(
            --site-sidebar-accent,
            var(--accent)
        );
    outline-offset: -2px;
}

.shop-sidebar__toggle-icon {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform:
        translateY(-2px)
        rotate(45deg);
    transition: transform 0.16s ease;
}

.shop-sidebar__section.is-collapsed
.shop-sidebar__toggle-icon {
    transform:
        translateY(2px)
        rotate(-135deg);
}

.shop-sidebar__section.is-collapsed
.shop-sidebar__heading {
    border-bottom: 0;
}

/* 2026-08-04: sidebar heading / notice link / adult payment / fixed page alignment */
.shop-sidebar__heading {
    min-height: 48px;
    padding: 14px 18px;
    line-height: 1.45;
}

.notice-bar__more {
    justify-self: end;
    text-align: right;
}

.adult-payment-help {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35em;
    height: 1.35em;
    margin-left: 0.35em;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 0.78em;
    font-weight: 800;
    line-height: 1;
    cursor: help;
}

.adult-payment-help__tooltip {
    position: absolute;
    right: 0;
    bottom: calc(100% + 9px);
    z-index: 20;
    display: none;
    width: max-content;
    max-width: min(320px, 78vw);
    padding: 9px 11px;
    border-radius: 7px;
    background: #20262b;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.55;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.adult-payment-help:hover .adult-payment-help__tooltip,
.adult-payment-help:focus .adult-payment-help__tooltip,
.adult-payment-help:focus-within .adult-payment-help__tooltip {
    display: block;
}

.site-main--subpage .content-page {
    width: min(100%, 900px);
    margin-right: auto;
    margin-left: auto;
}

@media (max-width: 700px) {
    .notice-bar__more {
        justify-self: end;
    }
}

/* Sidebar headings with a toggle keep the same visual height without double padding. */
.shop-sidebar__heading:has(.shop-sidebar__toggle) {
    padding: 0;
}

.shop-sidebar__heading .shop-sidebar__toggle {
    min-height: 48px;
    padding: 14px 16px;
}

@media (min-width: 701px) {
    .notice-bar {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }
}


@media (max-width: 900px) {
    .header-main-inner {
        grid-template-columns: auto minmax(160px, 1fr) auto;
        gap: 14px;
    }

    .header-actions {
        gap: 7px;
    }

    .public-language-select {
        width: 98px;
        max-width: 98px;
        padding-left: 7px;
        padding-right: 16px;
        font-size: 0.7rem;
    }
}

@media (max-width: 720px) {
    .header-actions {
        gap: 4px;
        min-width: 0;
    }

    .public-language-select {
        width: 64px;
        max-width: 64px;
        height: 32px;
        padding: 0 3px;
        font-size: 0.68rem;
    }

    .header-cart--icon-only {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }

    .header-cart-icon {
        font-size: 1.2rem;
    }

    .header-cart--icon-only .header-cart-count {
        top: -4px;
        right: -4px;
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        font-size: 0.58rem;
        line-height: 13px;
    }
}

.header-cart--icon-only{position:relative;flex:0 0 36px;width:36px;height:36px;justify-content:center;gap:0}
.header-cart-icon{display:block;font-size:1.35rem;line-height:1}
.header-cart--icon-only .header-cart-count{position:absolute;top:-5px;right:-7px;min-width:18px;height:18px;padding:0 5px;border:2px solid var(--site-header-top-bg,var(--header));font-size:.62rem;line-height:14px}
.category-list-card,.category-list-card:link,.category-list-card:visited,.category-list-card:hover,.category-list-card:focus,.category-list-card:active,.category-list-card__name{color:#fff}


.product-card-soldout-ribbon__text {
    position: absolute;
    top: 11px;
    left: -7px;
    z-index: 3;
    display: block;
    width: 64px;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    transform: rotate(-45deg);
    transform-origin: center;
}

.contact-file-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.contact-file-picker__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.contact-file-picker__button {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    cursor: pointer;
}

.contact-file-picker:has(.contact-file-picker__input:focus-visible)
.contact-file-picker__button {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.contact-file-picker__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* Stage 8.22: compact one-line mobile header */
.public-language-control {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
}

.public-language-short-label,
.public-language-short-caret {
    display: none;
}

@media (max-width: 720px) {
    .header-main-inner {
        grid-template-columns: 68px minmax(0, 1fr) auto;
        gap: 4px;
    }

    .site-logo,
    .site-logo--image {
        width: 68px;
        max-width: 68px;
    }

    .site-logo-image {
        max-width: 68px;
    }

    .header-search {
        grid-template-columns: minmax(0, 1fr) 36px;
    }

    /*
     * 既存の .header-search button { padding: 0 18px; } より
     * 詳細度を上げ、スマホ時は検索ボタンを36px固定にする。
     * アイコンはflexやpaddingに依存せず、ボタン中心へ絶対配置。
     */
    .header-search button.header-search-submit {
        position: relative;
        display: block;
        width: 36px;
        min-width: 36px;
        max-width: 36px;
        height: 38px;
        margin: 0;
        padding: 0;
        line-height: 1;
    }

    .header-search button.header-search-submit .header-search-submit__icon {
        position: absolute;
        top: 50%;
        left: 50%;
        display: block;
        width: 18px;
        height: 18px;
        margin: 0;
        transform: translate(-50%, -50%);
        transform-origin: center;
    }

    .header-actions {
        gap: 2px;
    }

    .public-language-control {
        width: 50px;
        height: 32px;
    }

    .public-language-select {
        position: absolute;
        inset: 0;
        z-index: 2;
        width: 50px;
        max-width: 50px;
        height: 32px;
        margin: 0;
        padding: 0;
        opacity: 0;
        cursor: pointer;
    }

    .public-language-select option {
        color: #1f2933;
    }

    .public-language-short-label {
        position: absolute;
        top: 50%;
        left: 5px;
        z-index: 1;
        display: block;
        max-width: 34px;
        overflow: hidden;
        color: #1f2933;
        font-size: 0.68rem;
        font-weight: 700;
        line-height: 1;
        white-space: nowrap;
        transform: translateY(-50%);
        pointer-events: none;
    }

    .public-language-short-caret {
        position: absolute;
        top: 50%;
        right: 4px;
        z-index: 1;
        display: block;
        color: #1f2933;
        font-size: 0.72rem;
        font-weight: 800;
        line-height: 1;
        transform: translateY(-55%);
        pointer-events: none;
    }

    .public-language-control::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 0;
        background: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.5);
        border-radius: 6px;
        pointer-events: none;
    }

    .header-cart--icon-only {
        flex: 0 0 30px;
        width: 30px;
        min-width: 30px;
        height: 34px;
    }

    .header-cart-icon {
        font-size: 1.2rem;
        line-height: 1;
    }

    .header-cart--icon-only .header-cart-count {
        top: 4px;
        left: 50%;
        right: auto;
        min-width: 14px;
        height: 14px;
        padding: 0 3px;
        border: 1px solid var(--site-header-top-bg, var(--header));
        font-size: 0.5rem;
        line-height: 12px;
        transform: translateX(-50%);
    }
}


/* Overseas shipping estimate on product detail */
.product-shipping-summary--international {
    position: relative;
    border-color: #cfd8e3;
    background: #f7fafc;
}
.product-shipping-summary--international .product-shipping-summary__fee {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.product-shipping-summary--unavailable {
    color: #64748b;
}
.product-shipping-help__tooltip--international {
    width: min(390px, 82vw);
    max-height: 340px;
    overflow: auto;
    text-align: left;
}
.product-shipping-help__tooltip--international > strong {
    display: block;
    margin-bottom: 8px;
}
.product-shipping-help__tooltip--international > small {
    display: block;
    margin-top: 9px;
    color: #dbe6f1;
    line-height: 1.5;
}
.product-international-shipping-list {
    display: grid;
    gap: 5px;
}
.product-international-shipping-list__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255,255,255,.15);
}
.product-international-shipping-list__row > span {
    min-width: 0;
    overflow-wrap: anywhere;
}
.product-international-shipping-list__row > strong {
    white-space: nowrap;
}


/* International shipping tooltip: anchor its right edge to the ? icon. */
.product-shipping-help__tooltip--international {
    left: auto;
    right: 0;
    transform: none;
}
@media (max-width: 640px) {
    .product-shipping-help__tooltip--international {
        left: auto;
        right: 0;
        transform: none;
        width: min(260px, 75vw);
    }
}

.international-customs-note{margin-top:7px!important;color:#64748b;font-size:.78rem!important;font-weight:400!important;line-height:1.55}

/* Payment brand marks */
.payment-brand-logo {
    display: inline-block;
    width: auto;
    max-width: 72px;
    height: 22px;
    margin-right: 7px;
    object-fit: contain;
    vertical-align: middle;
}

.payment-option__content,
.payment-display-with-logo {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.payment-option__text {
    display: inline;
}

@media (max-width: 560px) {
    .payment-brand-logo {
        max-width: 62px;
        height: 20px;
    }
}

/* Payment logo/layout refinements */
.product-payment-logos {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 9px;
}

.product-payment-logos .payment-brand-logo {
    margin-right: 0;
}

.checkout-form .payment-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    text-align: left;
}

.checkout-form .payment-option > input[type="radio"] {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
}

.checkout-form .payment-option__content {
    flex: 0 1 auto;
    justify-content: flex-start;
    text-align: left;
}

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

.order-conversation__attachment-status {
    display: inline-block;
    margin-left: 10px;
    color: #667085;
    font-size: .9rem;
    vertical-align: middle;
}

/* 2026-08-27: 商品一覧・ブログ一覧などの共通サイドメニュー独立スクロール
 * 固定ヘッダーの直下へ張り付き、画面下端までをメニュー自身の
 * スクロール領域として使う。ヘッダー高さは shop-sidebar.js で実測する。
 */
@media (min-width: 961px) {
    .shop-layout > .shop-sidebar {
        position: sticky;
        top: var(--shop-sidebar-sticky-top, 0px);
        max-height: var(
            --shop-sidebar-visible-height,
            calc(100vh - var(--shop-sidebar-sticky-top, 0px))
        );
        max-height: var(
            --shop-sidebar-visible-height,
            calc(100dvh - var(--shop-sidebar-sticky-top, 0px))
        );
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
        padding-right: 3px;
    }
}

@media (max-width: 960px) {
    .shop-layout > .shop-sidebar {
        top: auto;
        max-height: none;
        overflow: visible;
        padding-right: 0;
        scrollbar-gutter: auto;
    }
}


/* Product card settings */
.product-grid,.shop-layout__main .product-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--site-product-card-list-min-width,220px)),1fr))}.product-card,.product-card-compact{background:var(--site-product-card-bg,#fff);border:var(--site-product-card-border-width,1px) solid var(--site-product-card-border-color,#d9e0e5);border-radius:var(--site-product-card-radius,12px);box-shadow:var(--site-product-card-shadow,none)}.product-card:hover{box-shadow:var(--site-product-card-hover-shadow,var(--site-product-card-shadow,none))}.product-card-body{display:flex;height:var(--site-product-card-text-height,150px);flex-direction:column;padding:14px 18px;box-sizing:border-box}.product-card-body>.product-card-category,.product-card-body>.product-card-title,.product-card-body>.product-card-condition,.product-card-body>.product-card-price{min-height:0;margin:0;overflow:hidden}.product-card-category{display:var(--site-product-card-category-display,flex);flex:var(--site-product-card-category-ratio,15) 1 0;align-items:center;color:var(--site-product-card-category-text,#256c4a)}.product-card-title{display:flex;flex:var(--site-product-card-title-ratio,40) 1 0;align-items:center;min-height:0}.product-card-title a{display:-webkit-box;overflow:hidden;color:var(--site-product-card-title-text,var(--text));-webkit-box-orient:vertical;-webkit-line-clamp:3}.product-card-title a:hover{color:var(--site-product-card-title-text,var(--text))}.product-card-condition{display:var(--site-product-card-condition-display,flex);flex:var(--site-product-card-condition-ratio,18) 1 0;align-items:center}.product-card-price{display:flex;flex:var(--site-product-card-price-ratio,27) 1 0;align-items:baseline;color:var(--site-product-card-price-text,var(--text))}.product-card-price small{color:var(--site-product-card-tax-text,var(--muted))}.product-carousel-item{flex:0 0 var(--site-product-card-related-width,180px);max-width:none}.product-card-compact__body{display:flex;height:var(--site-product-card-compact-text-height,117px);flex-direction:column;padding:9px 11px 10px;box-sizing:border-box}.product-card-compact__body>.product-card-compact__category,.product-card-compact__body>.product-card-compact__title,.product-card-compact__body>.product-card-compact__condition,.product-card-compact__body>.product-card-compact__price{min-height:0;margin:0;overflow:hidden}.product-card-compact__category{display:var(--site-product-card-category-display,flex);flex:var(--site-product-card-category-ratio,15) 1 0;align-items:center;color:var(--site-product-card-category-text,#256c4a)}.product-card-compact__title{display:flex;flex:var(--site-product-card-title-ratio,40) 1 0;align-items:center;min-height:0}.product-card-compact__title a{display:-webkit-box;overflow:hidden;color:var(--site-product-card-title-text,inherit);-webkit-box-orient:vertical;-webkit-line-clamp:2}.product-card-compact__condition{display:var(--site-product-card-condition-display,flex);flex:var(--site-product-card-condition-ratio,18) 1 0;align-items:center}.product-card-compact__price{display:flex;flex:var(--site-product-card-price-ratio,27) 1 0;align-items:baseline;color:var(--site-product-card-price-text,#222)}.product-card-compact__price small{margin-left:4px;color:var(--site-product-card-tax-text,var(--muted));font-size:.64rem}@media(max-width:420px){.product-grid,.shop-layout__main .product-grid{grid-template-columns:1fr}}

.product-card-category{font-size:var(--site-product-card-category-font,.72rem)}.product-card-title{font-size:var(--site-product-card-title-font,.95rem);line-height:1.45}.product-card-condition .product-condition-badge{font-size:var(--site-product-card-condition-font,.78rem)}.product-card-price strong{font-size:var(--site-product-card-price-font,1.35rem)}.product-card-price span{font-size:var(--site-product-card-price-suffix-font,.9rem)}.product-card-price small{font-size:var(--site-product-card-tax-font,.68rem)}.product-card-compact__category{font-size:var(--site-product-card-compact-category-font,.72rem)}.product-card-compact__title{font-size:var(--site-product-card-compact-title-font,.88rem);line-height:1.35}.product-card-compact__condition .product-condition-badge{font-size:var(--site-product-card-compact-condition-font,.72rem)}.product-card-compact__price strong{font-size:var(--site-product-card-compact-price-font,1.05rem)}.product-card-compact__price span{font-size:var(--site-product-card-compact-price-suffix-font,.75rem)}.product-card-compact__price small{font-size:var(--site-product-card-compact-tax-font,.64rem)}

/* Product card settings: top/list density, top-aligned ellipsis title, item gap */
.product-grid.product-grid--top{grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--site-product-card-top-min-width,220px)),1fr))}
.product-card-body{gap:var(--site-product-card-item-gap,0px)}
.product-card-title{align-items:flex-start}
.product-card-title a{width:100%;line-height:1.35;-webkit-line-clamp:var(--site-product-card-title-lines,3)}
.product-card-compact__body{gap:calc(var(--site-product-card-item-gap,0px) * .78)}
.product-card-compact__title{align-items:flex-start}
.product-card-compact__title a{width:100%;line-height:1.35;-webkit-line-clamp:var(--site-product-card-compact-title-lines,2)}

/* Product card settings v3: paging sync, two-line titles, connected grid mode */
.product-grid{gap:var(--site-product-card-list-layout-gap,22px)}
.product-grid.product-grid--top{gap:var(--site-product-card-top-layout-gap,22px)}
.product-carousel-track{gap:var(--site-product-card-carousel-gap,14px)}
.product-card-title,
.product-card-compact__title{align-items:flex-start;min-height:calc(var(--site-product-card-title-font,.95rem) * 1.35 * 2)}
.product-card-title a,
.product-card-compact__title a{-webkit-line-clamp:2!important}
body.product-card-list-layout-connected .product-grid:not(.product-grid--top),
body.product-card-top-layout-connected .product-grid.product-grid--top{
    gap:var(--site-product-card-border-width,1px);
    padding:var(--site-product-card-border-width,1px);
    overflow:hidden;
    background:var(--site-product-card-border-color,#d9e0e5);
    border-radius:var(--site-product-card-radius,12px);
}
body.product-card-list-layout-connected .product-grid:not(.product-grid--top) .product-card,
body.product-card-top-layout-connected .product-grid.product-grid--top .product-card{
    border-width:0;
    border-radius:0;
    box-shadow:none;
}
body.product-card-list-layout-connected .product-grid:not(.product-grid--top) .product-card:hover,
body.product-card-top-layout-connected .product-grid.product-grid--top .product-card:hover{
    transform:none;
    box-shadow:none;
}
.product-card-title{min-height:calc(var(--site-product-card-title-font,.95rem) * 1.35 * 2)}
.product-card-compact__title{min-height:calc(var(--site-product-card-compact-title-font,.88rem) * 1.35 * 2)}

/* Product card multilingual price baseline safety */
.product-card-price,
.product-card-compact__price {
    flex-shrink: 0;
    overflow: visible !important;
    box-sizing: border-box;
    line-height: 1.25;
}
.product-card-price {
    min-height: calc(var(--site-product-card-price-font, 1.35rem) * 1.3 + 4px);
    padding-bottom: 4px;
}
.product-card-compact__price {
    min-height: calc(var(--site-product-card-compact-price-font, 1.05rem) * 1.35 + 5px);
    padding-bottom: 5px;
}
.product-card-price strong,
.product-card-price span,
.product-card-price small,
.product-card-compact__price strong,
.product-card-compact__price span,
.product-card-compact__price small {
    line-height: 1.2;
}
.product-card-body,
.product-card-compact__body {
    padding-bottom: max(10px, calc(var(--site-product-card-item-gap, 0px) + 6px));
}


/* Category card settings */
.category-grid.category-grid--top{
    grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--site-category-card-top-min-width,220px)),1fr));
    gap:var(--site-category-card-top-gap,18px);
}
.category-list-grid.category-list-grid--list{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--site-category-card-list-min-width,280px)),1fr));
    gap:var(--site-category-card-list-gap,22px);
}
.category-list-card,
.category-list-card--compact{
    min-height:0;
    aspect-ratio:var(--site-category-card-aspect,16 / 9);
    overflow:hidden;
    background:#26352d;
    border:var(--site-category-card-border-width,0px) solid var(--site-category-card-border-color,#d9e0e5);
    border-radius:var(--site-category-card-radius,12px);
    box-shadow:var(--site-category-card-shadow,0 8px 24px rgba(20,33,27,.08));
    color:var(--site-category-card-text-color,#fff);
}
.category-list-card:hover,
.category-list-card--compact:hover{
    color:var(--site-category-card-text-color,#fff);
    box-shadow:var(--site-category-card-hover-shadow,var(--site-category-card-shadow,none));
}
.category-list-card__content,
.category-list-card--compact .category-list-card__content{
    inset:0;
    display:flex;
    flex-direction:column;
    gap:5px;
    align-items:var(--site-category-card-overlay-align,flex-start);
    justify-content:var(--site-category-card-overlay-justify,flex-end);
    padding:18px;
    box-sizing:border-box;
    text-align:var(--site-category-card-text-align,left);
}
.category-list-card__name,
.category-list-card--compact .category-list-card__name{
    max-width:100%;
    color:var(--site-category-card-text-color,#fff);
    font-size:var(--site-category-card-text-size,20px);
    line-height:1.3;
    text-shadow:0 2px 12px rgba(0,0,0,.45);
}
.category-list-card__link{
    color:var(--site-category-card-text-color,#fff);
    opacity:.78;
}
.category-list-card__shade{
    background:rgba(10,17,13,.28);
}
body.category-card-text-below .category-list-card{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(120px,34%);
}
body.category-card-text-below .category-list-card__background{
    position:relative;
    inset:auto;
    z-index:0;
    min-width:0;
    min-height:0;
}
body.category-card-text-below .category-list-card__shade{
    display:none;
}
body.category-card-text-below .category-list-card__content,
body.category-card-text-below .category-list-card--compact .category-list-card__content{
    position:relative;
    inset:auto;
    z-index:1;
    align-items:flex-start;
    justify-content:center;
    padding:12px 15px;
    background:var(--site-category-card-text-bg,#fff);
    text-align:left;
}
body.category-card-text-below .category-list-card__name,
body.category-card-text-below .category-list-card--compact .category-list-card__name,
body.category-card-text-below .category-list-card__link{
    color:var(--site-category-card-text-color,#1f2924);
    text-shadow:none;
}
body.category-card-top-layout-connected .category-grid.category-grid--top,
body.category-card-list-layout-connected .category-list-grid.category-list-grid--list{
    gap:var(--site-category-card-border-width,0px);
    padding:var(--site-category-card-border-width,0px);
    overflow:hidden;
    background:var(--site-category-card-border-color,#d9e0e5);
    border-radius:var(--site-category-card-radius,12px);
}
body.category-card-top-layout-connected .category-grid.category-grid--top .category-list-card,
body.category-card-list-layout-connected .category-list-grid.category-list-grid--list .category-list-card{
    border-width:0;
    border-radius:0;
    box-shadow:none;
}
body.category-card-top-layout-connected .category-grid.category-grid--top .category-list-card:hover,
body.category-card-list-layout-connected .category-list-grid.category-list-grid--list .category-list-card:hover{
    transform:none;
    box-shadow:none;
}
@media(max-width:420px){
    .category-grid.category-grid--top,
    .category-list-grid.category-list-grid--list{grid-template-columns:1fr}
}

.category-list-card__tile img{object-position:var(--site-category-card-image-position,center center)}

/* Smartphone TOP product grid: always one column */
@media (max-width:640px){
    .product-grid.product-grid--top{grid-template-columns:1fr!important;}
}

/* Category card: text on the left, image on the right */
body.category-card-text-left .category-list-card{
    display:grid;
    grid-template-columns:minmax(112px,36%) minmax(0,1fr);
}
body.category-card-text-left .category-list-card__background{
    position:relative;
    inset:auto;
    z-index:0;
    grid-column:2;
    grid-row:1;
    min-width:0;
    min-height:0;
}
body.category-card-text-left .category-list-card__shade{display:none;}
body.category-card-text-left .category-list-card__content,
body.category-card-text-left .category-list-card--compact .category-list-card__content{
    position:relative;
    inset:auto;
    z-index:1;
    grid-column:1;
    grid-row:1;
    align-items:flex-start;
    justify-content:center;
    padding:12px 15px;
    background:var(--site-category-card-text-bg,#fff);
    text-align:left;
}
body.category-card-text-left .category-list-card__name,
body.category-card-text-left .category-list-card--compact .category-list-card__name,
body.category-card-text-left .category-list-card__link{
    color:var(--site-category-card-text-color,#1f2924);
    text-shadow:none;
}


/* 2026-08-27 product detail repair */
.product-detail,
.product-detail__main,
.product-detail__gallery,
.product-detail__summary,
.product-detail__purchase,
.product-detail-fields {
    min-width: 0;
}
.product-gallery,
.product-gallery__main-wrap,
.product-gallery__main,
.product-gallery__thumbnails {
    max-width: 100%;
}
@media (max-width: 720px) {
    .product-detail-wrapper,
    .product-detail,
    .product-detail__main,
    .product-detail__gallery,
    .product-detail__summary,
    .product-detail__purchase,
    .product-detail-fields {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    .product-gallery__main-wrap,
    .product-gallery__main {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    .product-gallery__main img {
        max-width: 100%;
        height: auto;
    }
}

/* Compact cards: condition must remain a single readable line. */
.product-card-compact__condition {
    min-width: 0;
    overflow: hidden;
}
.product-card-compact__condition .product-condition-badge {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    line-height: 1.15;
    overflow: visible;
    text-overflow: clip;
}
@media (max-width: 640px) {
    .product-card-compact__condition {
        min-height: 1.15em;
        max-height: 1.15em;
        align-items: center;
        overflow: hidden;
    }
}


/* TOP product-list optional menu */
.top-products-with-menu{display:grid;grid-template-columns:minmax(210px,250px) minmax(0,1fr);gap:28px;align-items:start}.top-products-list-main{min-width:0}.top-products-menu--left{display:grid;gap:16px;position:sticky;top:20px}.top-products-menu--left .top-products-filter,.top-products-categories{overflow:hidden;background:var(--site-sidebar-bg,var(--surface));border:1px solid var(--site-sidebar-border,var(--border));border-radius:var(--site-sidebar-radius,var(--radius))}.top-products-menu--left .top-products-filter{display:grid;gap:12px;padding:14px}.top-products-filter__field{display:grid;gap:5px;min-width:0}.top-products-filter__field>span,.top-products-category-only span{color:var(--site-sidebar-text,var(--text));font-size:.72rem;font-weight:700}.top-products-filter select,.top-products-filter input[type=number],.top-products-category-only select{width:100%;min-width:0;height:40px;padding:0 9px;background:#fff;border:1px solid var(--site-sidebar-border,var(--border));border-radius:var(--radius-small);box-sizing:border-box;color:var(--site-sidebar-text,var(--text))}.top-products-filter__conditions{background:#fff;border:1px solid var(--site-sidebar-border,var(--border));border-radius:var(--radius-small)}.top-products-filter__conditions summary{padding:10px;cursor:pointer;font-size:.76rem;font-weight:700}.top-products-filter__conditions>div{display:grid;gap:6px;max-height:180px;padding:8px 10px;overflow:auto;border-top:1px solid var(--site-sidebar-border,var(--border));font-size:.74rem}.top-products-filter__adult{font-size:.74rem}.top-products-filter__submit{min-height:40px;background:var(--accent);border:1px solid var(--accent);border-radius:var(--radius-small);color:#fff;font-weight:700;cursor:pointer}.top-products-filter__submit:hover{background:var(--site-sidebar-button-hover-bg,var(--accent-dark));border-color:var(--site-sidebar-button-hover-bg,var(--accent-dark))}.top-products-categories{display:grid}.top-products-categories strong{padding:12px 14px;background:var(--site-sidebar-heading-bg,var(--surface-muted));border-bottom:1px solid var(--site-sidebar-border,var(--border));font-size:.8rem}.top-products-categories a{padding:10px 14px;border-bottom:1px solid var(--site-sidebar-border,var(--border));color:var(--site-sidebar-text,var(--text));font-size:.78rem;text-decoration:none}.top-products-categories a:last-child{border-bottom:0}.top-products-categories a:hover{background:var(--site-sidebar-hover-bg,var(--surface-muted));color:var(--site-sidebar-hover-text,var(--accent))}.top-products-categories a.is-current{background:var(--site-sidebar-current-bg,var(--accent-soft));color:var(--site-sidebar-current-text,var(--accent-dark));font-weight:800}.top-products-menu--top{margin:0 0 22px}.top-products-menu--top .top-products-filter{display:flex;gap:10px;align-items:end;flex-wrap:wrap;padding:14px;background:var(--site-sidebar-bg,var(--surface));border:1px solid var(--site-sidebar-border,var(--border));border-radius:var(--site-sidebar-radius,var(--radius))}.top-products-menu--top .top-products-filter__field{flex:1 1 130px}.top-products-menu--top .top-products-filter__category{flex:1 1 200px}.top-products-menu--top .top-products-filter__conditions{flex:1 1 170px;align-self:end}.top-products-menu--top .top-products-filter__adult{display:flex;align-items:center;min-height:40px}.top-products-menu--top .top-products-filter__submit{flex:0 0 auto;padding:0 18px}.top-products-category-only{padding:14px;background:var(--site-sidebar-bg,var(--surface));border:1px solid var(--site-sidebar-border,var(--border));border-radius:var(--site-sidebar-radius,var(--radius))}.top-products-category-only label{display:grid;grid-template-columns:auto minmax(180px,360px);gap:12px;align-items:center}.top-products-pagination{margin-top:28px}@media(max-width:900px){.top-products-with-menu{grid-template-columns:1fr}.top-products-menu--left{position:static}.top-products-menu--left .top-products-filter{grid-template-columns:repeat(2,minmax(0,1fr))}.top-products-menu--left .top-products-filter__conditions,.top-products-menu--left .top-products-filter__adult,.top-products-menu--left .top-products-filter__submit{grid-column:1/-1}.top-products-categories{grid-template-columns:repeat(2,minmax(0,1fr))}.top-products-categories strong{grid-column:1/-1}}@media(max-width:640px){.top-products-menu--left .top-products-filter{grid-template-columns:1fr}.top-products-categories{grid-template-columns:1fr}.top-products-menu--top .top-products-filter{display:grid;grid-template-columns:1fr 1fr}.top-products-menu--top .top-products-filter__category,.top-products-menu--top .top-products-filter__conditions,.top-products-menu--top .top-products-filter__adult,.top-products-menu--top .top-products-filter__submit{grid-column:1/-1}.top-products-category-only label{grid-template-columns:1fr}}


/* TOP product-list menu: inherit the exact sidebar colour settings */
.top-products-menu .shop-sidebar__section{
    background:var(--site-sidebar-bg,var(--surface));
    border-color:var(--site-sidebar-border,var(--border));
    color:var(--site-sidebar-text,var(--text));
    border-radius:var(--site-sidebar-radius,10px);
    overflow:hidden;
}
.top-products-menu__heading.shop-sidebar__heading{
    margin:0;
    padding:12px 14px;
    background:var(--site-sidebar-heading-bg,var(--surface-muted));
    border-bottom:1px solid var(--site-sidebar-border,var(--border));
    color:var(--site-sidebar-heading-text,var(--text));
    font-size:.9rem;
    line-height:1.4;
}
.top-products-menu .top-products-filter{
    background:var(--site-sidebar-bg,var(--surface));
}
.top-products-menu .top-products-filter__field>span,
.top-products-menu .top-products-category-only span,
.top-products-menu .shop-filter-form__label,
.top-products-menu .shop-filter-form__details-summary,
.top-products-menu .shop-filter-form__checkbox{
    color:var(--site-sidebar-text,var(--text));
}
.top-products-menu .shop-filter-form__select,
.top-products-menu .shop-filter-form__input,
.top-products-menu .shop-filter-form__details{
    background:var(--site-sidebar-bg,#fff);
    border-color:var(--site-sidebar-border,var(--border));
    color:var(--site-sidebar-text,var(--text));
}
.top-products-menu .top-products-filter__submit,
.top-products-menu .shop-filter-form__submit{
    background:var(--site-sidebar-accent,var(--accent));
    border-color:var(--site-sidebar-accent,var(--accent));
    color:#fff;
}
.top-products-menu .top-products-filter__submit:hover,
.top-products-menu .shop-filter-form__submit:hover{
    background:var(--site-sidebar-button-hover-bg,var(--accent-dark));
    border-color:var(--site-sidebar-button-hover-bg,var(--accent-dark));
}
.top-products-categories{
    display:block;
}
.top-products-categories .shop-sidebar__links{
    margin:0;
}
.top-products-menu--left .top-products-filter-section,
.top-products-menu--left .top-products-categories{
    margin:0;
}
.top-products-menu--top .top-products-filter-section{
    margin:0 0 22px;
}
.top-products-menu--top .top-products-filter{
    border:0;
    border-radius:0;
}
.top-products-category-only{
    padding:0;
}
.top-products-category-only form{
    padding:14px;
}
@media(max-width:640px){
    .top-products-menu-mobile-hidden{
        display:none!important;
    }
}


/* TOP product-list menu: no local pagination; continue on the normal product list page. */
.top-products-more{
    display:flex;
    justify-content:center;
    margin-top:28px;
}
.top-products-more__button{
    min-width:160px;
    text-align:center;
}


/* TOP product "more": button shape/layout only.
   Colors intentionally inherit the same rules as the menu filter button. */
.top-products-more__button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:160px;
    min-height:42px;
    padding:10px 22px;
    border-style:solid;
    border-width:1px;
    border-radius:var(--site-sidebar-radius,10px);
    font:inherit;
    font-weight:700;
    line-height:1.2;
    text-decoration:none;
    cursor:pointer;
}


/* TOP product "more" button: use the normal sidebar palette exactly.
   Do not use sidebar accent/button-submit colours. */
.top-products-more__button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:160px;
    min-height:42px;
    padding:10px 22px;
    box-sizing:border-box;
    background:var(--site-sidebar-bg,var(--surface));
    border:1px solid var(--site-sidebar-border,var(--border));
    border-radius:var(--site-sidebar-radius,10px);
    color:var(--site-sidebar-text,var(--text));
    font:inherit;
    font-weight:700;
    line-height:1.2;
    text-align:center;
    text-decoration:none;
    cursor:pointer;
}
.top-products-more__button:visited{
    color:var(--site-sidebar-text,var(--text));
}
.top-products-more__button:hover,
.top-products-more__button:focus-visible{
    background:var(--site-sidebar-hover-bg,var(--surface-muted));
    border-color:var(--site-sidebar-border,var(--border));
    color:var(--site-sidebar-text,var(--text));
    text-decoration:none;
}


/* TOP product "more" button:
   explicitly use Sidebar > heading background/text + sidebar radius. */
.top-products-more__button,
.top-products-more__button:visited{
    background:var(--site-sidebar-heading-bg,var(--surface-muted));
    border-color:var(--site-sidebar-heading-bg,var(--surface-muted));
    border-radius:var(--site-sidebar-radius,10px);
    color:var(--site-sidebar-heading-text,var(--text));
}
.top-products-more__button:hover,
.top-products-more__button:focus-visible{
    background:var(--site-sidebar-heading-bg,var(--surface-muted));
    border-color:var(--site-sidebar-heading-bg,var(--surface-muted));
    color:var(--site-sidebar-heading-text,var(--text));
}


/* TOP product "more" button hover motion */
.top-products-more__button{
    transition:transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.top-products-more__button:hover,
.top-products-more__button:focus-visible{
    /* Keep the configured sidebar heading colour as the source,
       and brighten it slightly without replacing the configured colour. */
    background:var(--site-sidebar-heading-bg,var(--surface-muted));
    color:var(--site-sidebar-heading-text,var(--text));
    transform:translateY(-2px);
    filter:brightness(1.08);
    box-shadow:0 3px 8px rgba(0,0,0,.10);
}
.top-products-more__button:active{
    transform:translateY(0);
    filter:brightness(1.03);
    box-shadow:none;
}


/* TOP product "more" button: make the hover background visibly lighter.
   Use the configured Sidebar > heading background as the base. */
.top-products-more__button:hover,
.top-products-more__button:focus-visible{
    background:color-mix(
        in srgb,
        var(--site-sidebar-heading-bg,var(--surface-muted)) 82%,
        #ffffff 18%
    );
    border-color:color-mix(
        in srgb,
        var(--site-sidebar-heading-bg,var(--surface-muted)) 82%,
        #ffffff 18%
    );
    color:var(--site-sidebar-heading-text,var(--text));
    transform:translateY(-2px);
    filter:none;
    box-shadow:0 3px 8px rgba(0,0,0,.10);
}
.top-products-more__button:active{
    background:color-mix(
        in srgb,
        var(--site-sidebar-heading-bg,var(--surface-muted)) 92%,
        #ffffff 8%
    );
    border-color:color-mix(
        in srgb,
        var(--site-sidebar-heading-bg,var(--surface-muted)) 92%,
        #ffffff 8%
    );
    transform:translateY(0);
    filter:none;
    box-shadow:none;
}

/* Hero typography controls */
.top-hero-eyebrow{
    font-size:clamp(8px,2vw,var(--hero-shop-name-font-size,14px));
}
.top-hero--text-shadow .top-hero-eyebrow,
.top-hero--text-shadow .top-hero-title,
.top-hero--text-shadow .top-hero-description,
.top-hero--text-shadow .top-hero-panel-label,
.top-hero--text-shadow .top-hero-panel strong,
.top-hero--text-shadow .top-hero-panel-caption{
    text-shadow:0 2px 8px rgba(0,0,0,var(--hero-text-shadow-alpha,.55));
}


/* TOP product block menu: preserve Sidebar color settings after hero/admin changes. */
.top-products-menu .top-products-filter__submit,
.top-products-menu .shop-filter-form__submit{
    background:var(--site-sidebar-heading-bg,var(--surface-muted));
    border-color:var(--site-sidebar-heading-bg,var(--surface-muted));
    color:var(--site-sidebar-heading-text,var(--text));
    border-radius:var(--site-sidebar-radius,10px);
}
.top-products-menu .top-products-filter__submit:hover,
.top-products-menu .top-products-filter__submit:focus-visible,
.top-products-menu .shop-filter-form__submit:hover,
.top-products-menu .shop-filter-form__submit:focus-visible{
    background:color-mix(in srgb,var(--site-sidebar-heading-bg,var(--surface-muted)) 82%,#fff 18%);
    border-color:color-mix(in srgb,var(--site-sidebar-heading-bg,var(--surface-muted)) 82%,#fff 18%);
    color:var(--site-sidebar-heading-text,var(--text));
}
.top-products-more{
    display:flex;
    justify-content:center;
    margin-top:28px;
}
.top-products-more__button,
.top-products-more__button:visited{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:160px;
    min-height:42px;
    padding:10px 22px;
    box-sizing:border-box;
    background:var(--site-sidebar-heading-bg,var(--surface-muted));
    border:1px solid var(--site-sidebar-heading-bg,var(--surface-muted));
    border-radius:var(--site-sidebar-radius,10px);
    color:var(--site-sidebar-heading-text,var(--text));
    font:inherit;
    font-weight:700;
    line-height:1.2;
    text-align:center;
    text-decoration:none;
    cursor:pointer;
    transition:transform .16s ease,background-color .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.top-products-more__button:hover,
.top-products-more__button:focus-visible{
    background:color-mix(in srgb,var(--site-sidebar-heading-bg,var(--surface-muted)) 82%,#fff 18%);
    border-color:color-mix(in srgb,var(--site-sidebar-heading-bg,var(--surface-muted)) 82%,#fff 18%);
    color:var(--site-sidebar-heading-text,var(--text));
    transform:translateY(-2px);
    box-shadow:0 3px 8px rgba(0,0,0,.10);
    text-decoration:none;
}
.top-products-more__button:active{
    transform:translateY(0);
    box-shadow:none;
}


/* Hero title manual line-break preservation on mobile */
.top-hero-title--preserve-breaks .top-hero-title__line{
    display:block;
}
@media(max-width:720px){
    .top-hero-title--preserve-breaks .top-hero-title__line{
        white-space:nowrap;
    }
}


/* Sidebar text-color correction:
   hover text uses normal sidebar text color; current uses configured current text color. */
.shop-sidebar__links a:hover,
.top-products-menu .shop-sidebar__links a:hover,
.top-products-categories .shop-sidebar__links a:hover{
    color:var(--site-sidebar-text,var(--text)) !important;
}
.shop-sidebar__links a.is-current,
.top-products-menu .shop-sidebar__links a.is-current,
.top-products-categories .shop-sidebar__links a.is-current{
    color:var(--site-sidebar-current-text,var(--text)) !important;
}
.shop-sidebar__links a.is-current:hover,
.top-products-menu .shop-sidebar__links a.is-current:hover,
.top-products-categories .shop-sidebar__links a.is-current:hover{
    color:var(--site-sidebar-current-text,var(--text)) !important;
}


/* Preserve manual hero title line breaks on every viewport.
   JS treats --hero-title-font-size as the maximum and scales down only when necessary. */
.top-hero-title--preserve-breaks{
    width:100%;
    max-width:100%;
    min-width:0;
    font-size:var(--hero-title-font-size,64px);
}
.top-hero-title--preserve-breaks .top-hero-title__line{
    display:block;
    width:100%;
    max-width:100%;
    white-space:nowrap;
}


/* Connected card layout: draw borders only on actual cards.
   Do not paint the unused grid cells / remainder area. */
body.product-card-list-layout-connected .product-grid:not(.product-grid--top),
body.product-card-top-layout-connected .product-grid.product-grid--top{
    gap:0 !important;
    padding:0 !important;
    overflow:visible !important;
    background:transparent !important;
    border-radius:0 !important;
}
body.product-card-list-layout-connected .product-grid:not(.product-grid--top) .product-card,
body.product-card-top-layout-connected .product-grid.product-grid--top .product-card{
    border-width:var(--site-product-card-border-width,1px) !important;
    border-style:solid !important;
    border-color:var(--site-product-card-border-color,#d9e0e5) !important;
    border-radius:0 !important;
    box-shadow:none !important;
}

body.category-card-top-layout-connected .category-grid.category-grid--top,
body.category-card-list-layout-connected .category-list-grid.category-list-grid--list{
    gap:0 !important;
    padding:0 !important;
    overflow:visible !important;
    background:transparent !important;
    border-radius:0 !important;
}
body.category-card-top-layout-connected .category-grid.category-grid--top .category-list-card,
body.category-card-list-layout-connected .category-list-grid.category-list-grid--list .category-list-card{
    border-width:var(--site-category-card-border-width,1px) !important;
    border-style:solid !important;
    border-color:var(--site-category-card-border-color,#d9e0e5) !important;
    border-radius:0 !important;
    box-shadow:none !important;
}


/* Hero title preserve-breaks autofit v2:
   line spans must follow the fitted H1 font size. */
.top-hero-title--preserve-breaks .top-hero-title__line{
    font-size:inherit !important;
    line-height:inherit;
    max-width:none;
}


/* Hero title preserve-breaks: grid overflow root fix.
   A nowrap title must NOT enlarge the left CSS-grid track. */
.top-hero-inner,
.top-hero-content{
    min-width:0;
}
.top-hero-content{
    width:100%;
    max-width:760px;
}
.top-hero-title.top-hero-title--preserve-breaks{
    display:block;
    width:100%;
    max-width:100%;
    min-width:0;
    overflow:visible;
}
.top-hero-title.top-hero-title--preserve-breaks .top-hero-title__line{
    display:block;
    width:max-content;
    max-width:none;
    min-width:0;
    white-space:nowrap !important;
    font-size:inherit !important;
    line-height:inherit;
}


/* Product mosaic / scroll hero height.
   Blank setting = content height. Numeric setting = minimum height. */
.top-hero--mosaic,
.top-hero--scroll{
    min-height:0;
}
.top-hero--mosaic .top-hero-inner,
.top-hero--scroll .top-hero-inner{
    min-height:0;
}
.top-hero--mosaic.top-hero--product-custom-height,
.top-hero--scroll.top-hero--product-custom-height{
    min-height:var(--hero-product-bg-height);
}
.top-hero--mosaic.top-hero--product-custom-height .top-hero-inner,
.top-hero--scroll.top-hero--product-custom-height .top-hero-inner{
    min-height:var(--hero-product-bg-height);
    box-sizing:border-box;
}


/* Hero background extending behind the two header rows (TOP only). */
body.home-hero-header-background .site-header{
    z-index:20;
}
body.home-hero-header-background.home-hero-header-overlap .header-main{
    background:color-mix(
        in srgb,
        var(--site-header-top-bg,var(--header)) var(--hero-header-row1-opacity,0%),
        transparent
    );
}
body.home-hero-header-background.home-hero-header-overlap .site-nav{
    background:color-mix(
        in srgb,
        var(--site-header-nav-bg,var(--header-light)) var(--hero-header-row2-opacity,0%),
        transparent
    );
}
body.home-hero-header-background .header-search,
body.home-hero-header-background .header-search input,
body.home-hero-header-background .public-language-select{
    background:#fff;
}
body.home-hero-header-background .top-hero{
    margin-top:calc(-1 * var(--hero-header-height,0px));
}
body.home-hero-header-background .top-hero-inner{
    padding-top:calc(76px + var(--hero-header-height,0px));
}

/* Mobile hero uses its existing padding plus the measured header height. */
@media(max-width:720px){
    body.home-hero-header-background .top-hero-inner{
        padding-top:calc(48px + var(--hero-header-height,0px));
    }
}


/* Once the sticky header leaves the hero, restore normal configured header backgrounds. */
body.home-hero-header-background:not(.home-hero-header-overlap) .header-main{
    background:var(--site-header-top-bg,var(--header));
}
body.home-hero-header-background:not(.home-hero-header-overlap) .site-nav{
    background:var(--site-header-nav-bg,var(--header-light));
}


/* Upload-image hero display modes */
.top-hero--image{
    background-position:var(--hero-image-position-x,center) var(--hero-image-position-y,center);
}
.top-hero--image-mode-auto{
    min-height:520px;
}
.top-hero--image-mode-ratio{
    min-height:0;
    aspect-ratio:var(--hero-image-aspect-pc,auto);
}
.top-hero--image-mode-ratio .top-hero-inner{
    min-height:100%;
    box-sizing:border-box;
}
.top-hero--image-mode-viewport{
    min-height:100vh;
    min-height:100svh;
}
.top-hero--image-mode-viewport .top-hero-inner{
    min-height:100vh;
    min-height:100svh;
    box-sizing:border-box;
}
@media(max-width:720px){
    .top-hero--image-mode-ratio{
        aspect-ratio:var(--hero-image-aspect-mobile,var(--hero-image-aspect-pc,auto));
    }
}

.top-hero--text-split{overflow:hidden}
.top-hero--text-split .top-hero-inner{grid-template-columns:minmax(0,var(--hero-text-area-width,38%)) minmax(0,1fr);align-items:stretch}
.top-hero--text-split .top-hero-content{
    position:relative;
    z-index:2;
    display:flex;
    flex-direction:column;
    justify-content:center;
    max-width:none;
    width:100%;
    min-width:0;
    box-sizing:border-box;
    padding:var(--hero-text-area-padding,28px);
}
.top-hero--text-split.top-hero--text-align-top .top-hero-content{justify-content:flex-start}
.top-hero--text-split.top-hero--text-align-bottom .top-hero-content{justify-content:flex-end}
.top-hero--text-split .top-hero-content::before{
    content:"";
    position:absolute;
    z-index:-1;
    top:-200vh;
    bottom:-200vh;
    left:0;
    right:0;
    background:var(--hero-text-area-bg,#fff);
}
.top-hero--text-split.top-hero--text-split-padding .top-hero-content::before{
    right:calc(-1 * clamp(24px,4vw,72px));
}


/* =========================================================
   Hero split text area v3
   - The split background belongs to the whole hero.
   - Product mosaic/scroll is placed on top only in the right area.
   - Text padding is purely internal padding.
   - "Right padding" means a gutter between text and image area.
   ========================================================= */

.top-hero--text-split{
    /* Keep an uploaded background-image intact.
       Only provide the base fill color for split mode. */
    background-color:var(--hero-text-area-bg,#fff);
}

/* Split mode must start from the actual left edge of the hero,
   not from the centered .container edge. */
.top-hero--text-split .top-hero-inner{
    width:100%;
    max-width:none;
    margin-left:0;
    margin-right:0;
    padding-left:0;
    padding-right:0;
    gap:0;
    grid-template-columns:minmax(0,var(--hero-text-area-width,38%)) minmax(0,1fr);
    align-items:stretch;
}

/* The text area's padding is inside the left area only. */
.top-hero--text-split .top-hero-content{
    position:relative;
    z-index:2;
    width:100%;
    max-width:none;
    min-width:0;
    box-sizing:border-box;
    padding:var(--hero-text-area-padding,28px);
    background:var(--hero-text-area-bg,#fff);
}

/* The old pseudo-element approach caused the background image
   to appear inside the left padding. Disable it completely. */
.top-hero--text-split .top-hero-content::before{
    display:none !important;
}

/* In product mosaic / product scroll split mode,
   use the selected text-area background for all tile gaps too. */
.top-hero--text-split.top-hero--mosaic .top-hero-products,
.top-hero--text-split.top-hero--scroll .top-hero-products{
    left:var(--hero-text-area-width,38%);
    right:0;
    top:0;
    bottom:0;
    background:var(--hero-text-area-bg,#fff);
}

/* "Right padding: ON" = a visible gutter between the left text area
   and the right image area, filled by the hero background color. */
.top-hero--text-split.top-hero--text-split-padding.top-hero--mosaic .top-hero-products,
.top-hero--text-split.top-hero--text-split-padding.top-hero--scroll .top-hero-products{
    left:calc(var(--hero-text-area-width,38%) + clamp(24px,4vw,72px));
}

/* Keep the optional decorative panel in the right grid column. */
.top-hero--text-split .top-hero-panel{
    margin:var(--hero-text-area-padding,28px);
}

/* On small screens keep the same semantics:
   left region starts at the viewport edge and the gutter remains visible. */
@media(max-width:720px){
    .top-hero--text-split .top-hero-inner{
        width:100%;
        max-width:none;
        padding-left:0;
        padding-right:0;
        grid-template-columns:minmax(0,var(--hero-text-area-width,38%)) minmax(0,1fr);
    }

    .top-hero--text-split.top-hero--text-split-padding.top-hero--mosaic .top-hero-products,
    .top-hero--text-split.top-hero--text-split-padding.top-hero--scroll .top-hero-products{
        left:calc(var(--hero-text-area-width,38%) + clamp(16px,4vw,36px));
    }
}


/* =========================================================
   Hero split text area v4
   Background fills the entire left region.
   Text padding only moves the text inside that region.
   ========================================================= */

/* The hero itself is the positioning root for the left-side background panel. */
.top-hero--text-split{
    position:relative;
}

/* Full-height background panel for the left text region.
   It is independent of the content padding. */
.top-hero--text-split::before{
    content:"";
    position:absolute;
    z-index:-1;
    top:0;
    bottom:0;
    left:0;
    width:var(--hero-text-area-width,38%);
    background:var(--hero-text-area-bg,#fff);
    pointer-events:none;
}

/* "Right padding: ON" means extending that same full-height background
   slightly into the image side, creating a visible gutter. */
.top-hero--text-split.top-hero--text-split-padding::before{
    width:calc(var(--hero-text-area-width,38%) + clamp(24px,4vw,72px));
}

/* The content itself is transparent.
   Padding affects only the text position, never the background extent. */
.top-hero--text-split .top-hero-content{
    background:transparent !important;
    padding:var(--hero-text-area-padding,28px);
}

/* Disable every older content-background approach. */
.top-hero--text-split .top-hero-content::before{
    display:none !important;
}

/* Product mosaic / scroll tile-gap color follows the text-area background. */
.top-hero--text-split.top-hero--mosaic .top-hero-products,
.top-hero--text-split.top-hero--scroll .top-hero-products{
    background:var(--hero-text-area-bg,#fff);
}

/* Keep the product image area outside the full-height left panel. */
.top-hero--text-split.top-hero--mosaic .top-hero-products,
.top-hero--text-split.top-hero--scroll .top-hero-products{
    left:var(--hero-text-area-width,38%);
}

.top-hero--text-split.top-hero--text-split-padding.top-hero--mosaic .top-hero-products,
.top-hero--text-split.top-hero--text-split-padding.top-hero--scroll .top-hero-products{
    left:calc(var(--hero-text-area-width,38%) + clamp(24px,4vw,72px));
}

@media(max-width:720px){
    .top-hero--text-split.top-hero--text-split-padding::before{
        width:calc(var(--hero-text-area-width,38%) + clamp(16px,4vw,36px));
    }

    .top-hero--text-split.top-hero--text-split-padding.top-hero--mosaic .top-hero-products,
    .top-hero--text-split.top-hero--text-split-padding.top-hero--scroll .top-hero-products{
        left:calc(var(--hero-text-area-width,38%) + clamp(16px,4vw,36px));
    }
}


/* =========================================================
   Hero split text area v5
   Fix stacking: the left background panel must sit ABOVE
   uploaded background-image and BELOW hero text.
   ========================================================= */

.top-hero--text-split{
    isolation:isolate;
}

/* Full-height left panel. */
.top-hero--text-split::before{
    content:"";
    position:absolute;
    z-index:0 !important;
    top:0;
    bottom:0;
    left:0;
    width:var(--hero-text-area-width,38%);
    background:var(--hero-text-area-bg,#fff) !important;
    pointer-events:none;
}

/* Right padding/gutter extends the same background panel. */
.top-hero--text-split.top-hero--text-split-padding::before{
    width:calc(var(--hero-text-area-width,38%) + clamp(24px,4vw,72px));
}

/* Keep actual hero text above that panel. */
.top-hero--text-split .top-hero-inner{
    position:relative;
    z-index:1;
}

.top-hero--text-split .top-hero-content{
    position:relative;
    z-index:2;
    background:transparent !important;
    box-sizing:border-box;
    padding:var(--hero-text-area-padding,28px);
}

/* Old content pseudo background must stay disabled. */
.top-hero--text-split .top-hero-content::before{
    display:none !important;
}

/* Product mosaic/scroll remains behind content but its gaps use
   the configured split background color. */
.top-hero--text-split.top-hero--mosaic .top-hero-products,
.top-hero--text-split.top-hero--scroll .top-hero-products{
    background:var(--hero-text-area-bg,#fff) !important;
}

@media(max-width:720px){
    .top-hero--text-split.top-hero--text-split-padding::before{
        width:calc(var(--hero-text-area-width,38%) + clamp(16px,4vw,36px));
    }
}


/* =========================================================
   Hero split text area v6
   Explicit DOM layer. This avoids background-image/pseudo-element
   stacking conflicts on upload-image mode.
   ========================================================= */

.top-hero--text-split .top-hero-text-split-bg{
    position:absolute;
    z-index:0;
    top:0;
    bottom:0;
    left:0;
    width:var(--hero-text-area-width,38%);
    background:var(--hero-text-area-bg,#fff);
    pointer-events:none;
}

/* Right gutter extends the same solid background layer. */
.top-hero--text-split.top-hero--text-split-padding .top-hero-text-split-bg{
    width:calc(var(--hero-text-area-width,38%) + clamp(24px,4vw,72px));
}

/* The explicit layer replaces every earlier split-background pseudo-element. */
.top-hero--text-split::before{
    content:none !important;
    display:none !important;
}

/* Hero content must render above the solid left background. */
.top-hero--text-split .top-hero-inner{
    position:relative;
    z-index:2;
}

/* The uploaded background image remains on .top-hero itself.
   The text content stays transparent so the explicit solid layer shows through. */
.top-hero--text-split .top-hero-content{
    background:transparent !important;
}

/* Product mosaic/scroll backgrounds stay below text layer. */
.top-hero--text-split .top-hero-products{
    z-index:1;
}

/* Overlay must remain below the explicit text content but above upload image.
   It must not cover the left solid split panel. */
.top-hero--text-split.top-hero--image::before{
    z-index:1;
}
.top-hero--text-split.top-hero--image .top-hero-text-split-bg{
    z-index:2;
}
.top-hero--text-split.top-hero--image .top-hero-inner{
    z-index:3;
}

@media(max-width:720px){
    .top-hero--text-split.top-hero--text-split-padding .top-hero-text-split-bg{
        width:calc(var(--hero-text-area-width,38%) + clamp(16px,4vw,36px));
    }
}


/* =========================================================
   Hero split upload-image v7
   In split mode, uploaded image is rendered in its own right-side layer.
   This makes "right padding" a real gap, not merely a wider text overlay.
   ========================================================= */

/* Hide the original whole-hero background image only in split upload-image mode. */
.top-hero--text-split.top-hero--image{
    background-image:none !important;
    background-color:var(--hero-text-area-bg,#fff);
}

/* Dedicated image area begins exactly after the text area. */
.top-hero--text-split.top-hero--image .top-hero-split-upload-image{
    position:absolute;
    z-index:0;
    top:0;
    bottom:0;
    left:var(--hero-text-area-width,38%);
    right:0;
    background-image:var(--hero-background-image);
    background-size:cover;
    background-repeat:no-repeat;
    background-position:var(--hero-image-position-x,center) var(--hero-image-position-y,center);
    pointer-events:none;
}

/* Right padding ON = physically move the image area's left edge rightward. */
.top-hero--text-split.top-hero--text-split-padding.top-hero--image .top-hero-split-upload-image{
    left:calc(var(--hero-text-area-width,38%) + clamp(24px,4vw,72px));
}

/* The gutter and whole left region use the configured text-area background. */
.top-hero--text-split.top-hero--image .top-hero-text-split-bg{
    z-index:1;
    width:var(--hero-text-area-width,38%);
}
.top-hero--text-split.top-hero--text-split-padding.top-hero--image .top-hero-text-split-bg{
    width:calc(var(--hero-text-area-width,38%) + clamp(24px,4vw,72px));
}

/* Overlay applies only over the image area in split upload mode. */
.top-hero--text-split.top-hero--image::before{
    display:none !important;
}
.top-hero--text-split.top-hero--image .top-hero-split-upload-image::after{
    content:"";
    position:absolute;
    inset:0;
    background:var(--hero-overlay-color);
    opacity:var(--hero-overlay-opacity);
    pointer-events:none;
}

/* Text stays above all visual layers. */
.top-hero--text-split.top-hero--image .top-hero-inner{
    position:relative;
    z-index:3;
}

/* Mobile image fallback: use mobile image when configured, otherwise desktop. */
@media(max-width:720px){
    .top-hero--text-split.top-hero--image .top-hero-split-upload-image{
        background-image:var(--hero-background-image-mobile,var(--hero-background-image));
    }

    .top-hero--text-split.top-hero--text-split-padding.top-hero--image .top-hero-split-upload-image{
        left:calc(var(--hero-text-area-width,38%) + clamp(16px,4vw,36px));
    }

    .top-hero--text-split.top-hero--text-split-padding.top-hero--image .top-hero-text-split-bg{
        width:calc(var(--hero-text-area-width,38%) + clamp(16px,4vw,36px));
    }
}


/* =========================================================
   Hero split right-side padding v8
   "Right padding" means padding AROUND the right visual area:
   upload image / product mosaic / product scroll.
   The hero background color remains visible in that padding.
   ========================================================= */

/* Text-area background must stop at the configured text width.
   Do not extend it into the right visual area. */
.top-hero--text-split.top-hero--text-split-padding .top-hero-text-split-bg,
.top-hero--text-split.top-hero--text-split-padding.top-hero--image .top-hero-text-split-bg{
    width:var(--hero-text-area-width,38%) !important;
}

/* Uploaded image: OFF fills the whole right region. */
.top-hero--text-split.top-hero--image .top-hero-split-upload-image{
    top:0;
    right:0;
    bottom:0;
    left:var(--hero-text-area-width,38%);
}

/* Uploaded image: ON adds padding on all four sides of the RIGHT region. */
.top-hero--text-split.top-hero--text-split-padding.top-hero--image .top-hero-split-upload-image{
    top:clamp(20px,3vw,48px);
    right:clamp(20px,3vw,48px);
    bottom:clamp(20px,3vw,48px);
    left:calc(var(--hero-text-area-width,38%) + clamp(20px,3vw,48px));
}

/* Product mosaic / scroll: OFF fills the whole right region. */
.top-hero--text-split.top-hero--mosaic .top-hero-products,
.top-hero--text-split.top-hero--scroll .top-hero-products{
    top:0;
    right:0;
    bottom:0;
    left:var(--hero-text-area-width,38%);
}

/* Product mosaic / scroll: ON adds padding on all four sides. */
.top-hero--text-split.top-hero--text-split-padding.top-hero--mosaic .top-hero-products,
.top-hero--text-split.top-hero--text-split-padding.top-hero--scroll .top-hero-products{
    top:clamp(20px,3vw,48px);
    right:clamp(20px,3vw,48px);
    bottom:clamp(20px,3vw,48px);
    left:calc(var(--hero-text-area-width,38%) + clamp(20px,3vw,48px));
}

/* The hero itself supplies the visible padding color. */
.top-hero--text-split.top-hero--text-split-padding{
    background-color:var(--hero-text-area-bg,#fff);
}

/* Keep gallery gap color tied to the same background setting. */
.top-hero--text-split.top-hero--mosaic .top-hero-products,
.top-hero--text-split.top-hero--scroll .top-hero-products{
    background:var(--hero-text-area-bg,#fff) !important;
}

/* Remove earlier rules that shifted only the left edge;
   these values above are now the final definition. */
@media(max-width:720px){
    .top-hero--text-split.top-hero--text-split-padding.top-hero--image .top-hero-split-upload-image,
    .top-hero--text-split.top-hero--text-split-padding.top-hero--mosaic .top-hero-products,
    .top-hero--text-split.top-hero--text-split-padding.top-hero--scroll .top-hero-products{
        top:16px;
        right:16px;
        bottom:16px;
        left:calc(var(--hero-text-area-width,38%) + 16px);
    }

    .top-hero--text-split.top-hero--text-split-padding .top-hero-text-split-bg,
    .top-hero--text-split.top-hero--text-split-padding.top-hero--image .top-hero-text-split-bg{
        width:var(--hero-text-area-width,38%) !important;
    }
}


/* Hero split right visual padding v9: numeric px value on all four sides. */
.top-hero--text-split .top-hero-text-split-bg{
    width:var(--hero-text-area-width,38%) !important;
}
.top-hero--text-split.top-hero--image .top-hero-split-upload-image{
    top:var(--hero-right-area-padding,0px) !important;
    right:var(--hero-right-area-padding,0px) !important;
    bottom:var(--hero-right-area-padding,0px) !important;
    left:calc(var(--hero-text-area-width,38%) + var(--hero-right-area-padding,0px)) !important;
}
.top-hero--text-split.top-hero--mosaic .top-hero-products,
.top-hero--text-split.top-hero--scroll .top-hero-products{
    top:var(--hero-right-area-padding,0px) !important;
    right:var(--hero-right-area-padding,0px) !important;
    bottom:var(--hero-right-area-padding,0px) !important;
    left:calc(var(--hero-text-area-width,38%) + var(--hero-right-area-padding,0px)) !important;
}
.top-hero--text-split{
    background-color:var(--hero-text-area-bg,#fff);
}


/* Hero split mobile behavior + title fitting scope */
.top-hero--text-split .top-hero-title--preserve-breaks{
    width:100%;
    max-width:100%;
    min-width:0;
}
.top-hero--text-split .top-hero-title--preserve-breaks .top-hero-title__line{
    white-space:nowrap !important;
    width:max-content;
    max-width:none;
}

@media(max-width:720px){
    /* Separate mobile split width. */
    .top-hero--text-split.top-hero--split-mobile-width{
        --hero-text-area-width:var(--hero-text-area-mobile-width,70%);
    }

    /* Mobile split OFF: restore the ordinary hero layout and visuals. */
    .top-hero--text-split.top-hero--split-mobile-off .top-hero-text-split-bg,
    .top-hero--text-split.top-hero--split-mobile-off .top-hero-split-upload-image{
        display:none !important;
    }
    .top-hero--text-split.top-hero--split-mobile-off{
        background-color:initial;
    }
    .top-hero--text-split.top-hero--split-mobile-off.top-hero--image{
        background-image:var(--hero-background-image-mobile,var(--hero-background-image)) !important;
        background-size:cover;
        background-repeat:no-repeat;
        background-position:var(--hero-image-position-x,center) var(--hero-image-position-y,center);
    }
    .top-hero--text-split.top-hero--split-mobile-off .top-hero-inner{
        grid-template-columns:minmax(0,1fr) !important;
        width:min(1180px,calc(100% - 40px));
        margin-left:auto;
        margin-right:auto;
        padding-left:0;
        padding-right:0;
    }
    .top-hero--text-split.top-hero--split-mobile-off .top-hero-content{
        background:transparent !important;
        padding:0 !important;
        max-width:760px;
    }
    .top-hero--text-split.top-hero--split-mobile-off.top-hero--mosaic .top-hero-products,
    .top-hero--text-split.top-hero--split-mobile-off.top-hero--scroll .top-hero-products{
        inset:0 !important;
    }
}


/* =========================================================
   Hero split mobile width v2
   Authoritative final rules: mobile width changes the actual
   text column AND the start of every right-side visual layer.
   ========================================================= */
@media(max-width:720px){
    .top-hero--text-split.top-hero--split-mobile-width{
        --hero-text-area-width:var(--hero-text-area-mobile-width,70%) !important;
    }

    .top-hero--text-split.top-hero--split-mobile-width .top-hero-inner{
        grid-template-columns:minmax(0,var(--hero-text-area-mobile-width,70%)) minmax(0,1fr) !important;
    }

    .top-hero--text-split.top-hero--split-mobile-width .top-hero-text-split-bg{
        width:var(--hero-text-area-mobile-width,70%) !important;
    }

    .top-hero--text-split.top-hero--split-mobile-width.top-hero--image .top-hero-split-upload-image{
        left:calc(var(--hero-text-area-mobile-width,70%) + var(--hero-right-area-padding,0px)) !important;
    }

    .top-hero--text-split.top-hero--split-mobile-width.top-hero--mosaic .top-hero-products,
    .top-hero--text-split.top-hero--split-mobile-width.top-hero--scroll .top-hero-products{
        left:calc(var(--hero-text-area-mobile-width,70%) + var(--hero-right-area-padding,0px)) !important;
    }

    .top-hero--text-split.top-hero--split-mobile-width .top-hero-content{
        width:100% !important;
        max-width:100% !important;
        min-width:0 !important;
        box-sizing:border-box;
    }
}


/* Hero split percentage padding + random mosaic */
.top-hero--text-split .top-hero-content{
    padding:var(--hero-text-area-padding,4%) !important;
}
.top-hero--text-split.top-hero--image .top-hero-split-upload-image,
.top-hero--text-split.top-hero--mosaic .top-hero-products,
.top-hero--text-split.top-hero--scroll .top-hero-products{
    top:var(--hero-right-area-padding,3%) !important;
    right:var(--hero-right-area-padding,3%) !important;
    bottom:var(--hero-right-area-padding,3%) !important;
    left:calc(var(--hero-text-area-width,38%) + var(--hero-right-area-padding,3%)) !important;
}
@media(max-width:720px){
    .top-hero--text-split.top-hero--split-mobile-width.top-hero--image .top-hero-split-upload-image,
    .top-hero--text-split.top-hero--split-mobile-width.top-hero--mosaic .top-hero-products,
    .top-hero--text-split.top-hero--split-mobile-width.top-hero--scroll .top-hero-products{
        left:calc(var(--hero-text-area-mobile-width,70%) + var(--hero-right-area-padding,3%)) !important;
    }
}
.top-hero-products--random-cards .top-hero-products-track--random{
    display:block;
    position:absolute;
    inset:0;
    width:auto;
    height:auto;
    min-height:0;
    padding:0;
    transform:none;
}
.top-hero-random-split{
    display:flex;
    width:100%;
    height:100%;
    min-width:0;
    min-height:0;
    gap:6px;
}
.top-hero-random-split--row{flex-direction:row}
.top-hero-random-split--column{flex-direction:column}
.top-hero-random-branch{
    flex:1 1 0;
    min-width:0;
    min-height:0;
    overflow:hidden;
}
.top-hero-random-branch--first{flex:0 0 var(--random-first,50%)}
.top-hero-random-leaf{
    width:100%;
    height:100%;
    min-height:0;
    border-radius:0;
}
.top-hero-products--random-cards .top-hero-product-tile img{
    width:100%;
    height:100%;
    object-fit:cover;
}


/* Random mosaic v2: square aspect ratio only; tile size varies. */
.top-hero-products--random-cards .top-hero-products-track--random{
    display:grid !important;
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    min-height:0;
    padding:0;
    gap:6px;
    transform:none !important;
    grid-template-columns:repeat(12,minmax(0,1fr));
    grid-auto-rows:1fr;
    grid-auto-flow:dense;
}
.top-hero-products--random-cards .top-hero-random-square{
    min-height:0 !important;
    border-radius:0;
    aspect-ratio:1/1;
    width:100%;
    height:auto;
    align-self:start;
}
.top-hero-products--random-cards .top-hero-random-square--1{grid-column:span 1;grid-row:span 1}
.top-hero-products--random-cards .top-hero-random-square--2{grid-column:span 2;grid-row:span 2}
.top-hero-products--random-cards .top-hero-random-square--3{grid-column:span 3;grid-row:span 3}
.top-hero-products--random-cards .top-hero-random-square img{
    display:block;width:100%;height:100%;aspect-ratio:1/1;object-fit:cover;
}


/* Random mosaic v3: viewport-aware square tiling.
   JS determines a true square cell size from the actual visual width. */
.top-hero-products--random-cards .top-hero-products-track--random{
    display:grid !important;
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:auto !important;
    min-height:100% !important;
    padding:0 !important;
    gap:6px !important;
    transform:none !important;
    grid-template-columns:repeat(var(--random-cols,12),minmax(0,1fr)) !important;
    grid-auto-rows:var(--random-cell,90px) !important;
    grid-auto-flow:dense !important;
    overflow:visible;
}
.top-hero-products--random-cards .top-hero-random-source{
    display:none !important;
}
.top-hero-products--random-cards .top-hero-random-square{
    width:100% !important;
    height:100% !important;
    min-height:0 !important;
    aspect-ratio:1/1 !important;
    border-radius:0;
    overflow:hidden;
}
.top-hero-products--random-cards .top-hero-random-square img,
.top-hero-products--random-cards .top-hero-random-square .manage-hero-preview-tile{
    display:block;
    width:100%;
    height:100%;
    aspect-ratio:1/1;
    object-fit:cover;
}


/* =========================================================
   Hero 3-line panel: fixed desktop width + standalone mobile panel
   ========================================================= */
.top-hero-panel--desktop{
    width:min(var(--hero-panel-width,360px),100%);
    max-width:100%;
    justify-self:end;
    box-sizing:border-box;
}

.top-hero-mobile-panel-wrap{
    display:none;
}

@media(max-width:720px){
    .top-hero-panel--desktop{
        display:none !important;
    }

    .top-hero-mobile-panel-wrap{
        display:block;
        width:100%;
        box-sizing:border-box;
        padding:16px;
        background:var(--surface,#fff);
    }

    .top-hero-panel--mobile{
        display:flex;
        width:100% !important;
        max-width:none !important;
        min-height:0 !important;
        box-sizing:border-box;
        transform:none !important;
        padding:24px;
        gap:18px;
        border-radius:var(--radius-large);
        background:color-mix(in srgb,var(--hero-overlay-color,#17382f) 90%,#000 10%);
        box-shadow:none;
        backdrop-filter:none;
    }

    .top-hero-panel--mobile strong{
        font-size:clamp(24px,8vw,var(--hero-panel-title-font-size,56px));
        overflow-wrap:anywhere;
    }

    .top-hero-panel--mobile .top-hero-panel-label,
    .top-hero-panel--mobile .top-hero-panel-caption{
        font-size:clamp(11px,3.5vw,var(--hero-panel-label-font-size,12px));
    }
}


/* =========================================================
   Hero 3-line panel colors / blur
   ========================================================= */
.top-hero-panel--desktop{
    background:transparent;
}
.top-hero-panel--desktop.top-hero-panel--pc-color{
    background:color-mix(
        in srgb,
        var(--hero-panel-pc-bg,#17382f) calc((1 - var(--hero-panel-pc-opacity,.65)) * 100%),
        transparent
    );
    backdrop-filter:none;
}
.top-hero-panel--desktop.top-hero-panel--pc-blur{
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(var(--hero-panel-pc-blur,8px));
    -webkit-backdrop-filter:blur(var(--hero-panel-pc-blur,8px));
}

@media(max-width:720px){
    .top-hero-mobile-panel-wrap{
        background:var(--hero-panel-mobile-outer-bg,#fff) !important;
    }
    .top-hero-panel--mobile{
        background:color-mix(
            in srgb,
            var(--hero-panel-mobile-inner-bg,#17382f) calc((1 - var(--hero-panel-mobile-inner-opacity,.05)) * 100%),
            transparent
        ) !important;
    }
}


/* Mobile 3-line panel color fix:
   the standalone panel is outside .top-hero, so it owns its variables. */
@media(max-width:720px){
    .top-hero-mobile-panel-wrap{
        background-color:var(--hero-panel-mobile-outer-bg,#fff) !important;
    }

    .top-hero-panel--mobile{
        background:color-mix(
            in srgb,
            var(--hero-panel-mobile-inner-bg,#17382f) var(--hero-panel-mobile-inner-visible,5%),
            transparent
        ) !important;
    }
}


/* Mobile 3-line panel: use configured text colors/sizes explicitly. */
@media(max-width:720px){
    .top-hero-panel--mobile .top-hero-panel-label{
        color:var(--hero-panel-label-color,#c7d8d1) !important;
        font-size:clamp(11px,3.5vw,var(--hero-panel-label-font-size,12px)) !important;
    }

    .top-hero-panel--mobile strong{
        color:var(--hero-panel-title-color,#ffffff) !important;
        font-size:clamp(24px,8vw,var(--hero-panel-title-font-size,56px)) !important;
    }

    .top-hero-panel--mobile .top-hero-panel-caption{
        color:var(--hero-panel-caption-color,#c7d8d1) !important;
        font-size:clamp(11px,3.5vw,var(--hero-panel-caption-font-size,12px)) !important;
    }
}


/* =========================================================
   Hero vertical header menu
   ========================================================= */
.hero-vertical-menu{
    position:absolute;
    z-index:8500;
    display:none;
    box-sizing:border-box;
    color:var(--site-header-nav-text,#fff);
    background:color-mix(
        in srgb,
        var(--site-header-nav-bg,var(--header-light)) var(--hero-vertical-menu-bg-visible,85%),
        transparent
    );
}
.hero-vertical-menu__inner{
    display:flex;
    width:100%;
    height:100%;
    min-height:0;
    flex-direction:column;
    align-items:stretch;
}
.hero-vertical-menu__inner > a,
.hero-vertical-menu__inner > .site-nav__text,
.hero-vertical-menu__inner > .site-nav-menu{
    position:relative;
    display:flex;
    flex:1 1 0;
    min-width:0;
    min-height:0;
    align-items:stretch;
    justify-content:stretch;
    color:var(--site-header-nav-text,#fff);
    text-decoration:none;
}
.hero-vertical-menu__inner > a,
.hero-vertical-menu__inner > .site-nav__text{
    box-sizing:border-box;
    align-items:center;
    justify-content:center;
    padding:8px 10px;
    text-align:center;
}
.hero-vertical-menu .site-nav-menu__trigger{
    width:100%;
    height:100%;
    min-height:0;
    padding:8px 10px;
    color:inherit;
}
.hero-vertical-menu .site-nav-menu{
    position:relative;
    color:inherit;
}
.hero-vertical-menu .site-nav-menu__panel{
    z-index:10000;
    max-height:min(var(--hero-vmenu-height,70vh),calc(100vh - 16px));
    overflow-x:hidden;
    overflow-y:auto;
    background:var(--site-header-nav-bg,#21362d);
    border-radius:8px;
    box-shadow:0 12px 28px rgba(0,0,0,.24);
}
.hero-vertical-menu .site-nav-menu__panel > a,
.hero-vertical-menu .site-nav-menu__panel > .site-nav-menu__text{
    min-width:0;
    color:var(--site-header-nav-text,#fff);
}
.hero-vertical-menu .site-nav-menu__panel > a:hover{
    background:var(--site-header-nav-hover-bg,rgba(255,255,255,.09));
    color:var(--site-header-nav-hover-text,var(--site-header-nav-text,#fff));
}

/* Hide the ordinary second-row menu while the hero menu is active. */
body.hero-vertical-menu-live .site-header > .site-nav{
    max-height:0;
    min-height:0;
    overflow:hidden;
    opacity:0;
    pointer-events:none;
    border:0;
}

/* Push-in modes. */
body.hero-vertical-menu-live.hero-vmenu-pos-left_push .site-main--top .top-hero{
    width:calc(100% - var(--hero-vertical-menu-width));
    margin-left:var(--hero-vertical-menu-width);
}
body.hero-vertical-menu-live.hero-vmenu-pos-right_push .site-main--top .top-hero{
    width:calc(100% - var(--hero-vertical-menu-width));
    margin-right:var(--hero-vertical-menu-width);
}

/* Right overlay leaves the hero background intact.
   If the 3-line desktop panel exists, move only that panel inward. */
body.hero-vertical-menu-live.hero-vmenu-pos-right_overlay .site-main--top .top-hero-panel--desktop{
    transform:translateX(calc(-1 * var(--hero-vertical-menu-width))) rotate(2deg);
}

/* Attached white + black separator lines. */
body.hero-vmenu-divider .hero-vertical-menu__inner > a:not(:last-child)::after,
body.hero-vmenu-divider .hero-vertical-menu__inner > .site-nav__text:not(:last-child)::after,
body.hero-vmenu-divider .hero-vertical-menu__inner > .site-nav-menu:not(:last-child)::after{
    position:absolute;
    z-index:3;
    right:8%;
    bottom:-1px;
    left:8%;
    height:2px;
    content:"";
    pointer-events:none;
    background:linear-gradient(
        to bottom,
        rgba(255,255,255,var(--hero-vertical-menu-divider-alpha,.45)) 0,
        rgba(255,255,255,var(--hero-vertical-menu-divider-alpha,.45)) 1px,
        rgba(0,0,0,var(--hero-vertical-menu-divider-alpha,.45)) 1px,
        rgba(0,0,0,var(--hero-vertical-menu-divider-alpha,.45)) 2px
    );
}

/* Hover animation choices */
body.hero-vmenu-hover-text_scale .hero-vertical-menu__inner > a:hover,
body.hero-vmenu-hover-text_scale .hero-vertical-menu__inner > .site-nav-menu:hover .site-nav-menu__trigger{
    transform:scale(1.08);
}
body.hero-vmenu-hover-border_scale .hero-vertical-menu__inner > a:hover,
body.hero-vmenu-hover-border_scale .hero-vertical-menu__inner > .site-nav-menu:hover .site-nav-menu__trigger{
    box-shadow:inset 0 0 0 3px currentColor;
    transform:scale(.96);
}
body.hero-vmenu-hover-bg_lighten .hero-vertical-menu__inner > a:hover,
body.hero-vmenu-hover-bg_lighten .hero-vertical-menu__inner > .site-nav-menu:hover .site-nav-menu__trigger{
    background:color-mix(in srgb,var(--site-header-nav-bg,#21362d) 62%,white 38%);
}
body.hero-vmenu-hover-bg_darken .hero-vertical-menu__inner > a:hover,
body.hero-vmenu-hover-bg_darken .hero-vertical-menu__inner > .site-nav-menu:hover .site-nav-menu__trigger{
    background:color-mix(in srgb,var(--site-header-nav-bg,#21362d) 68%,black 32%);
}
body.hero-vmenu-hover-invert .hero-vertical-menu__inner > a:hover,
body.hero-vmenu-hover-invert .hero-vertical-menu__inner > .site-nav-menu:hover .site-nav-menu__trigger{
    background:var(--site-header-nav-text,#fff);
    color:var(--site-header-nav-bg,#21362d);
}
.hero-vertical-menu__inner > a,
.hero-vertical-menu .site-nav-menu__trigger{
    transition:transform .16s ease,background-color .16s ease,color .16s ease,box-shadow .16s ease;
}

@media(max-width:720px){
    body.hero-vmenu-mobile-normal .hero-vertical-menu{
        display:none !important;
    }
    body.hero-vmenu-mobile-normal.hero-vertical-menu-live .site-header > .site-nav{
        max-height:none;
        overflow:visible;
        opacity:1;
        pointer-events:auto;
    }

    body.hero-vmenu-mobile-vertical.hero-vertical-menu-live.hero-vmenu-pos-left_push .site-main--top .top-hero{
        width:calc(100% - var(--hero-vertical-menu-mobile-width));
        margin-left:var(--hero-vertical-menu-mobile-width);
    }
    body.hero-vmenu-mobile-vertical.hero-vertical-menu-live.hero-vmenu-pos-right_push .site-main--top .top-hero{
        width:calc(100% - var(--hero-vertical-menu-mobile-width));
        margin-right:var(--hero-vertical-menu-mobile-width);
    }
    body.hero-vmenu-mobile-vertical.hero-vertical-menu-live.hero-vmenu-pos-right_overlay .site-main--top .top-hero-panel--desktop{
        transform:none;
    }
    .hero-vertical-menu__inner > a,
    .hero-vertical-menu__inner > .site-nav__text{
        padding:6px 5px;
        font-size:.72rem;
    }
    .hero-vertical-menu .site-nav-menu__trigger{
        padding:6px 5px;
        font-size:.72rem;
    }
    .hero-vertical-menu .site-nav-menu__label{
        white-space:normal;
    }
}

/* Vertical-menu hamburger children keep the vertical-menu design and open sideways. */
.hero-vertical-menu .site-nav-menu__panel{
    padding:0;
    background:color-mix(
        in srgb,
        var(--site-header-nav-bg,var(--header-light)) var(--hero-vertical-submenu-bg-visible,100%),
        transparent
    );
    border-radius:0;
    box-shadow:none;
}
.hero-vertical-menu .site-nav-menu__panel > a,
.hero-vertical-menu .site-nav-menu__panel > .site-nav-menu__text{
    position:relative;
    box-sizing:border-box;
    display:flex;
    width:100%;
    height:var(--hero-vmenu-child-row-height,auto);
    min-height:var(--hero-vmenu-child-row-height,0);
    padding:8px 10px;
    align-items:center;
    justify-content:center;
    background:transparent;
    color:var(--site-header-nav-text,#fff);
    text-align:center;
    white-space:normal;
}
body.hero-vmenu-divider .hero-vertical-menu .site-nav-menu__panel > a:not(:last-child)::after,
body.hero-vmenu-divider .hero-vertical-menu .site-nav-menu__panel > .site-nav-menu__text:not(:last-child)::after{
    position:absolute;
    right:8%;
    bottom:-1px;
    left:8%;
    height:2px;
    content:"";
    pointer-events:none;
    background:linear-gradient(
        to bottom,
        rgba(255,255,255,var(--hero-vertical-menu-divider-alpha,.45)) 0,
        rgba(255,255,255,var(--hero-vertical-menu-divider-alpha,.45)) 1px,
        rgba(0,0,0,var(--hero-vertical-menu-divider-alpha,.45)) 1px,
        rgba(0,0,0,var(--hero-vertical-menu-divider-alpha,.45)) 2px
    );
}


/* =========================================================
   Hero vertical menu color/backdrop fix
   - Keep the hero background under push-in menus.
   - Push hero CONTENT, not the hero background itself.
   - Extend the vertical-menu color behind the row-1 logo area.
   - Remove the row-1/menu boundary line.
   ========================================================= */

/* Cancel the old "shrink the whole hero" push behavior. */
body.hero-vertical-menu-live.hero-vmenu-pos-left_push .site-main--top .top-hero,
body.hero-vertical-menu-live.hero-vmenu-pos-right_push .site-main--top .top-hero{
    width:100% !important;
    margin-left:0 !important;
    margin-right:0 !important;
}

/* Push only the hero's usable content area.
   The section/background remains full width underneath the translucent menu. */
body.hero-vertical-menu-live.hero-vmenu-pos-left_push .site-main--top .top-hero-inner{
    box-sizing:border-box;
    padding-left:calc(var(--hero-vertical-menu-width) + 24px) !important;
}
body.hero-vertical-menu-live.hero-vmenu-pos-right_push .site-main--top .top-hero-inner{
    box-sizing:border-box;
    padding-right:calc(var(--hero-vertical-menu-width) + 24px) !important;
}

/* The vertical menu itself always uses the configured row-2 menu color.
   Transparency only changes alpha; it never mixes toward white. */
.hero-vertical-menu{
    background:color-mix(
        in srgb,
        var(--site-header-nav-bg,var(--header-light)) var(--hero-vertical-menu-bg-visible,85%),
        transparent
    ) !important;
}

/* When hero background extends behind header row 1, paint the logo-side strip
   with the exact same vertical-menu background. This prevents the logo block
   from looking like a different colour at 0% transparency. */
body.home-hero-header-background.hero-vertical-menu-live .header-main{
    position:relative;
    border-bottom:0 !important;
    box-shadow:none !important;
}
body.home-hero-header-background.hero-vertical-menu-live.hero-vmenu-pos-left_push .header-main::before,
body.home-hero-header-background.hero-vertical-menu-live.hero-vmenu-pos-right_push .header-main::after,
body.home-hero-header-background.hero-vertical-menu-live.hero-vmenu-pos-right_overlay .header-main::after{
    position:absolute;
    z-index:0;
    top:0;
    bottom:0;
    width:var(--hero-vertical-menu-width);
    content:"";
    pointer-events:none;
    background:color-mix(
        in srgb,
        var(--site-header-nav-bg,var(--header-light)) var(--hero-vertical-menu-bg-visible,85%),
        transparent
    );
}
body.home-hero-header-background.hero-vertical-menu-live.hero-vmenu-pos-left_push .header-main::before{
    left:0;
}
body.home-hero-header-background.hero-vertical-menu-live.hero-vmenu-pos-right_push .header-main::after,
body.home-hero-header-background.hero-vertical-menu-live.hero-vmenu-pos-right_overlay .header-main::after{
    right:0;
}

/* Keep row-1 controls/content above the colour strip. */
body.home-hero-header-background.hero-vertical-menu-live .header-main-inner{
    position:relative;
    z-index:1;
}

/* Remove the visual seam between header row 1 and the vertical menu/hero. */
body.home-hero-header-background.hero-vertical-menu-live .header-main,
body.home-hero-header-background.hero-vertical-menu-live .site-nav,
body.home-hero-header-background.hero-vertical-menu-live .top-hero{
    border-top-color:transparent !important;
    border-bottom-color:transparent !important;
}

/* Mobile vertical mode uses the mobile menu width for the same behaviour. */
@media(max-width:720px){
    body.hero-vmenu-mobile-vertical.hero-vertical-menu-live.hero-vmenu-pos-left_push .site-main--top .top-hero{
        width:100% !important;
        margin-left:0 !important;
    }
    body.hero-vmenu-mobile-vertical.hero-vertical-menu-live.hero-vmenu-pos-right_push .site-main--top .top-hero{
        width:100% !important;
        margin-right:0 !important;
    }

    body.hero-vmenu-mobile-vertical.hero-vertical-menu-live.hero-vmenu-pos-left_push .site-main--top .top-hero-inner{
        padding-left:calc(var(--hero-vertical-menu-mobile-width) + 12px) !important;
    }
    body.hero-vmenu-mobile-vertical.hero-vertical-menu-live.hero-vmenu-pos-right_push .site-main--top .top-hero-inner{
        padding-right:calc(var(--hero-vertical-menu-mobile-width) + 12px) !important;
    }

    body.home-hero-header-background.hero-vmenu-mobile-vertical.hero-vertical-menu-live.hero-vmenu-pos-left_push .header-main::before,
    body.home-hero-header-background.hero-vmenu-mobile-vertical.hero-vertical-menu-live.hero-vmenu-pos-right_push .header-main::after,
    body.home-hero-header-background.hero-vmenu-mobile-vertical.hero-vertical-menu-live.hero-vmenu-pos-right_overlay .header-main::after{
        width:var(--hero-vertical-menu-mobile-width);
    }
}


/* =========================================================
   Header search edge cleanup
   Let the outer wrapper own the rounded edge completely.
   ========================================================= */
.header-search{
    border:0 !important;
    border-radius:var(--radius-small) !important;
    overflow:hidden !important;
    box-shadow:inset 0 0 0 1px var(--site-header-search-border,#d1d5db);
    background:#fff;
    isolation:isolate;
}
.header-search input{
    border:0 !important;
    border-radius:0 !important;
}
.header-search button.header-search-submit,
.header-search button{
    align-self:stretch;
    height:100%;
    margin:0 !important;
    border:0 !important;
    border-radius:0 !important;
    outline:0 !important;
    box-shadow:none !important;
    -webkit-appearance:none;
    appearance:none;
}

/* =========================================================
   Mobile vertical hero menu:
   keep the hero/background full width and push ONLY the main text area.
   ========================================================= */
@media(max-width:720px){
    /* Cancel earlier mobile whole-inner push. */
    body.hero-vmenu-mobile-vertical.hero-vertical-menu-live.hero-vmenu-pos-left_push
    .site-main--top .top-hero-inner,
    body.hero-vmenu-mobile-vertical.hero-vertical-menu-live.hero-vmenu-pos-right_push
    .site-main--top .top-hero-inner{
        padding-left:0 !important;
        padding-right:0 !important;
    }

    /* Left vertical menu: text starts after the menu. */
    body.hero-vmenu-mobile-vertical.hero-vertical-menu-live.hero-vmenu-pos-left_push
    .site-main--top .top-hero-content{
        box-sizing:border-box;
        width:calc(100% - var(--hero-vertical-menu-mobile-width) - 12px) !important;
        max-width:calc(100% - var(--hero-vertical-menu-mobile-width) - 12px) !important;
        margin-left:calc(var(--hero-vertical-menu-mobile-width) + 12px) !important;
        margin-right:0 !important;
    }

    /* Right push / right overlay: reserve the menu width only for the text area. */
    body.hero-vmenu-mobile-vertical.hero-vertical-menu-live.hero-vmenu-pos-right_push
    .site-main--top .top-hero-content,
    body.hero-vmenu-mobile-vertical.hero-vertical-menu-live.hero-vmenu-pos-right_overlay
    .site-main--top .top-hero-content{
        box-sizing:border-box;
        width:calc(100% - var(--hero-vertical-menu-mobile-width) - 12px) !important;
        max-width:calc(100% - var(--hero-vertical-menu-mobile-width) - 12px) !important;
        margin-left:0 !important;
        margin-right:calc(var(--hero-vertical-menu-mobile-width) + 12px) !important;
    }
}


/* =========================================================
   Header search left-edge cleanup
   The wrapper owns both outer rounded corners; children are
   clipped flush so no input/background edge can protrude.
   ========================================================= */
.header-search{
    position:relative;
    overflow:hidden !important;
    clip-path:inset(0 round var(--radius-small));
}
.header-search input{
    min-width:0;
    margin:0 !important;
    border:0 !important;
    border-radius:0 !important;
    outline:0 !important;
    box-shadow:none !important;
    -webkit-appearance:none;
    appearance:none;
}
.header-search input:focus{
    outline:0 !important;
    box-shadow:none !important;
}


/* =========================================================
   Final hero split + header control cleanup
   ========================================================= */

/* PC: keep text strictly inside the configured left text region. */
@media(min-width:721px){
    .top-hero--text-split .top-hero-inner{
        grid-template-columns:minmax(0,var(--hero-text-area-width,38%)) minmax(0,1fr) !important;
    }
    .top-hero--text-split .top-hero-content{
        box-sizing:border-box;
        width:100% !important;
        max-width:100% !important;
        min-width:0 !important;
        overflow:hidden;
    }
    .top-hero--text-split .top-hero-content > *{
        min-width:0;
        max-width:100%;
    }
    .top-hero--text-split .top-hero-title,
    .top-hero--text-split .top-hero-description,
    .top-hero--text-split .top-hero-eyebrow,
    .top-hero--text-split .top-hero-actions{
        box-sizing:border-box;
        width:100%;
        max-width:100%;
    }
    .top-hero--text-split .top-hero-title:not(.top-hero-title--preserve-breaks),
    .top-hero--text-split .top-hero-description{
        overflow-wrap:anywhere;
    }
    .top-hero--text-split .top-hero-actions{
        flex-wrap:wrap;
    }
}

/* In split upload-image mode, image display method applies to the RIGHT visual
   region, not to a hidden full-hero background. */
.top-hero--text-split.top-hero--image .top-hero-split-upload-image{
    background-repeat:no-repeat !important;
    background-position:var(--hero-image-position-x,center) var(--hero-image-position-y,center) !important;
}

/* Auto: the right area follows content-driven hero height and fills it. */
.top-hero--text-split.top-hero--image-mode-auto .top-hero-split-upload-image{
    background-size:cover !important;
}

/* Ratio: calculate hero height from the actual right-side visual width and
   uploaded image ratio. A square-ish image therefore behaves naturally in a
   square-ish right column. */
.top-hero--text-split.top-hero--image-mode-ratio{
    aspect-ratio:auto !important;
    min-height:var(--hero-split-ratio-height,0px) !important;
}
.top-hero--text-split.top-hero--image-mode-ratio .top-hero-inner{
    min-height:var(--hero-split-ratio-height,0px) !important;
}
.top-hero--text-split.top-hero--image-mode-ratio .top-hero-split-upload-image{
    background-size:cover !important;
}

/* Viewport: right visual region fills the viewport-height hero. */
.top-hero--text-split.top-hero--image-mode-viewport .top-hero-split-upload-image{
    background-size:cover !important;
}

/* Search and language controls: one faint neutral outline all around.
   Avoid one-sided edge artifacts. */
.header-search{
    border:1px solid rgba(0,0,0,.14) !important;
    border-radius:var(--radius-small) !important;
    box-shadow:none !important;
    clip-path:none !important;
    overflow:hidden !important;
    background:#fff !important;
}
.header-search input{
    border:0 !important;
    border-radius:0 !important;
    outline:0 !important;
    box-shadow:none !important;
}
.header-search button.header-search-submit,
.header-search button{
    border:0 !important;
    border-radius:0 !important;
    outline:0 !important;
    box-shadow:none !important;
}
.public-language-select{
    border:1px solid rgba(0,0,0,.14) !important;
    box-shadow:none !important;
}


/* =========================================================
   RESTORE: smartphone product/category card layout settings
   ========================================================= */
@media(max-width:640px){
    /* Product image area is always square on smartphone. */
    body.product-card-mobile-layout-row .product-card-image,
    body.product-card-mobile-layout-two-columns .product-card-image,
    body.product-card-mobile-layout-three-columns .product-card-image{
        aspect-ratio:1 / 1 !important;
        min-height:0 !important;
        height:auto !important;
        overflow:hidden;
    }
    body.product-card-mobile-layout-row .product-card-image__img,
    body.product-card-mobile-layout-two-columns .product-card-image__img,
    body.product-card-mobile-layout-three-columns .product-card-image__img{
        width:100% !important;
        height:100% !important;
        object-fit:contain !important;
    }

    /* 1-row = existing horizontal card, square image at left. */
    body.product-card-mobile-layout-row .product-grid,
    body.product-card-mobile-layout-row .shop-layout__main .product-grid,
    body.product-card-mobile-layout-row .product-grid.product-grid--top{
        grid-template-columns:1fr !important;
    }
    body.product-card-mobile-layout-row .product-card{
        display:grid !important;
        grid-template-columns:120px minmax(0,1fr) !important;
        align-items:start;
    }
    body.product-card-mobile-layout-row .product-card-image{
        width:120px !important;
        height:120px !important;
    }
    body.product-card-mobile-layout-row .product-card-body{
        width:100%;
        min-width:0;
    }

    /* Two columns. */
    body.product-card-mobile-layout-two-columns .product-grid,
    body.product-card-mobile-layout-two-columns .shop-layout__main .product-grid,
    body.product-card-mobile-layout-two-columns .product-grid.product-grid--top{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        gap:10px !important;
    }
    body.product-card-mobile-layout-two-columns .product-card{
        display:block !important;
        min-width:0;
    }
    body.product-card-mobile-layout-two-columns .product-card-image{
        width:100% !important;
    }
    body.product-card-mobile-layout-two-columns .product-card-body{
        height:auto;
        min-height:var(--site-product-card-text-height,150px);
        padding:10px 9px 11px;
    }

    /* Three columns. */
    body.product-card-mobile-layout-three-columns .product-grid,
    body.product-card-mobile-layout-three-columns .shop-layout__main .product-grid,
    body.product-card-mobile-layout-three-columns .product-grid.product-grid--top{
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
        gap:7px !important;
    }
    body.product-card-mobile-layout-three-columns .product-card{
        display:block !important;
        min-width:0;
    }
    body.product-card-mobile-layout-three-columns .product-card-image{
        width:100% !important;
    }
    body.product-card-mobile-layout-three-columns .product-card-body{
        height:auto;
        min-height:var(--site-product-card-text-height,150px);
        padding:8px 6px 9px;
    }
    body.product-card-mobile-layout-three-columns .product-card-category{
        font-size:max(8px,calc(var(--site-product-card-category-font,.72rem) * .72));
    }
    body.product-card-mobile-layout-three-columns .product-card-title{
        font-size:max(9px,calc(var(--site-product-card-title-font,.95rem) * .68));
    }
    body.product-card-mobile-layout-three-columns .product-card-condition .product-condition-badge{
        max-width:100%;
        padding-left:.35em;
        padding-right:.35em;
        font-size:max(7px,calc(var(--site-product-card-condition-font,.78rem) * .62));
        white-space:nowrap;
        overflow:hidden;
        text-overflow:ellipsis;
    }
    body.product-card-mobile-layout-three-columns .product-card-price{
        white-space:nowrap;
    }
    body.product-card-mobile-layout-three-columns .product-card-price strong{
        font-size:max(12px,calc(var(--site-product-card-price-font,1.35rem) * .62));
    }

    /* Category cards: configured mobile columns on TOP and category list. */
    body.category-card-mobile-columns-1 .category-grid.category-grid--top,
    body.category-card-mobile-columns-1 .category-list-grid.category-list-grid--list{
        grid-template-columns:1fr !important;
    }
    body.category-card-mobile-columns-2 .category-grid.category-grid--top,
    body.category-card-mobile-columns-2 .category-list-grid.category-list-grid--list{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }
    body.category-card-mobile-columns-3 .category-grid.category-grid--top,
    body.category-card-mobile-columns-3 .category-list-grid.category-list-grid--list{
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    }
}
@media(max-width:420px){
    /* Override old hard-coded 1-column rules when multi-column is selected. */
    body.product-card-mobile-layout-two-columns .product-grid,
    body.product-card-mobile-layout-two-columns .shop-layout__main .product-grid,
    body.product-card-mobile-layout-two-columns .product-grid.product-grid--top{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }
    body.product-card-mobile-layout-three-columns .product-grid,
    body.product-card-mobile-layout-three-columns .shop-layout__main .product-grid,
    body.product-card-mobile-layout-three-columns .product-grid.product-grid--top{
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    }
    body.category-card-mobile-columns-2 .category-grid.category-grid--top,
    body.category-card-mobile-columns-2 .category-list-grid.category-list-grid--list{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }
    body.category-card-mobile-columns-3 .category-grid.category-grid--top,
    body.category-card-mobile-columns-3 .category-list-grid.category-list-grid--list{
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    }
}

/* =========================================================
   Hero vertical menu hover parity
   First level and hamburger-open children use the SAME setting.
   Light/dark changes opacity relative to each level's base transparency.
   ========================================================= */

/* Remove the old universal submenu hover tint. */
.hero-vertical-menu .site-nav-menu__panel > a:hover{
    color:inherit;
}

/* TEXT SCALE */
body.hero-vmenu-hover-text_scale .hero-vertical-menu .site-nav-menu__panel > a:hover,
body.hero-vmenu-hover-text_scale .hero-vertical-menu .site-nav-menu__panel > .site-nav-menu__text:hover{
    transform:scale(1.08);
}

/* BORDER SCALE */
body.hero-vmenu-hover-border_scale .hero-vertical-menu .site-nav-menu__panel > a:hover,
body.hero-vmenu-hover-border_scale .hero-vertical-menu .site-nav-menu__panel > .site-nav-menu__text:hover{
    box-shadow:inset 0 0 0 3px currentColor;
    transform:scale(.96);
}

/* LIGHTEN = double current transparency.
   Parent uses menu transparency; children use hamburger transparency. */
body.hero-vmenu-hover-bg_lighten .hero-vertical-menu__inner > a:hover,
body.hero-vmenu-hover-bg_lighten .hero-vertical-menu__inner > .site-nav-menu:hover .site-nav-menu__trigger{
    background:color-mix(
        in srgb,
        var(--site-header-nav-bg,var(--header-light)) var(--hero-vertical-menu-hover-light-visible,70%),
        transparent
    ) !important;
}
body.hero-vmenu-hover-bg_lighten .hero-vertical-menu .site-nav-menu__panel > a:hover,
body.hero-vmenu-hover-bg_lighten .hero-vertical-menu .site-nav-menu__panel > .site-nav-menu__text:hover{
    background:color-mix(
        in srgb,
        var(--site-header-nav-bg,var(--header-light)) var(--hero-vertical-submenu-hover-light-visible,100%),
        transparent
    ) !important;
}

/* DARKEN = half current transparency. */
body.hero-vmenu-hover-bg_darken .hero-vertical-menu__inner > a:hover,
body.hero-vmenu-hover-bg_darken .hero-vertical-menu__inner > .site-nav-menu:hover .site-nav-menu__trigger{
    background:color-mix(
        in srgb,
        var(--site-header-nav-bg,var(--header-light)) var(--hero-vertical-menu-hover-dark-visible,92.5%),
        transparent
    ) !important;
}
body.hero-vmenu-hover-bg_darken .hero-vertical-menu .site-nav-menu__panel > a:hover,
body.hero-vmenu-hover-bg_darken .hero-vertical-menu .site-nav-menu__panel > .site-nav-menu__text:hover{
    background:color-mix(
        in srgb,
        var(--site-header-nav-bg,var(--header-light)) var(--hero-vertical-submenu-hover-dark-visible,100%),
        transparent
    ) !important;
}

/* INVERT */
body.hero-vmenu-hover-invert .hero-vertical-menu .site-nav-menu__panel > a:hover,
body.hero-vmenu-hover-invert .hero-vertical-menu .site-nav-menu__panel > .site-nav-menu__text:hover{
    background:var(--site-header-nav-text,#fff) !important;
    color:var(--site-header-nav-bg,var(--header-light)) !important;
}

/* Keep submenu animation timing identical to the first level. */
.hero-vertical-menu .site-nav-menu__panel > a,
.hero-vertical-menu .site-nav-menu__panel > .site-nav-menu__text{
    transition:transform .16s ease,background-color .16s ease,color .16s ease,box-shadow .16s ease;
}


/* =========================================================
   Hero vertical shop-name/title mode
   OFF keeps the existing layout exactly as before.
   ========================================================= */
.top-hero-heading-group,
.top-hero-copy-group{
    display:contents;
}

.top-hero--vertical-heading .top-hero-inner{
    align-items:stretch;
}

.top-hero--vertical-heading .top-hero-content{
    display:grid;
    grid-template-columns:minmax(220px,40%) minmax(280px,60%);
    grid-template-rows:minmax(420px,1fr);
    width:100%;
    max-width:none;
    min-width:0;
    min-height:100%;
    box-sizing:border-box;
    gap:clamp(20px,4vw,64px);
}

.top-hero--vertical-heading .top-hero-heading-group{
    display:flex;
    grid-column:2;
    grid-row:1;
    flex-direction:row-reverse;
    gap:clamp(14px,2vw,30px);
    min-width:0;
    min-height:0;
    max-width:100%;
    max-height:100%;
    box-sizing:border-box;
}

.top-hero--vertical-heading .top-hero-heading-group .top-hero-eyebrow,
.top-hero--vertical-heading .top-hero-heading-group .top-hero-title{
    writing-mode:vertical-rl;
    text-orientation:mixed;
    white-space:nowrap;
    margin:0;
    max-width:none;
    max-height:100%;
    overflow:visible;
}

.top-hero--vertical-heading .top-hero-heading-group .top-hero-eyebrow{
    font-size:var(--site-hero-shop-name-size,14px);
    letter-spacing:.12em;
}

.top-hero--vertical-heading .top-hero-heading-group .top-hero-title{
    font-size:clamp(28px,4.5vw,var(--hero-title-font-size,64px));
    line-height:1.1;
    letter-spacing:.02em;
}

/* Position the vertical heading inside its dedicated right-side area. */
.top-hero--vertical-heading-v-top .top-hero-heading-group{align-self:start}
.top-hero--vertical-heading-v-center .top-hero-heading-group{align-self:center}
.top-hero--vertical-heading-v-bottom .top-hero-heading-group{align-self:end}
.top-hero--vertical-heading-h-left .top-hero-heading-group{justify-self:start}
.top-hero--vertical-heading-h-center .top-hero-heading-group{justify-self:center}
.top-hero--vertical-heading-h-right .top-hero-heading-group{justify-self:end}

/* Description/buttons live in an independent region so they can never overlap
   the vertical title block. On desktop their visual placement stays low/left. */
.top-hero--vertical-heading .top-hero-copy-group{
    display:block;
    grid-column:1;
    grid-row:1;
    align-self:end;
    justify-self:stretch;
    width:100%;
    min-width:0;
    box-sizing:border-box;
    padding-bottom:clamp(8px,3vh,42px);
}

.top-hero--vertical-heading .top-hero-copy-group .top-hero-description{
    max-width:100%;
    margin-top:0;
}
.top-hero--vertical-heading .top-hero-copy-group .top-hero-actions{
    max-width:100%;
}

/* When a 3-line panel is also active, keep the vertical-heading layout in the
   ordinary hero content column; the panel remains the second outer column. */
.top-hero--vertical-heading:not(.top-hero-inner--without-panel) .top-hero-content{
    min-width:0;
}

/* Smartphone: vertical heading on top, description/buttons always below it.
   These are separate grid rows and therefore cannot overlap. */
@media(max-width:720px){
    .top-hero--vertical-heading .top-hero-inner{
        display:block;
        min-height:inherit;
    }
    .top-hero--vertical-heading .top-hero-content{
        display:grid;
        grid-template-columns:1fr;
        grid-template-rows:minmax(52svh,auto) auto;
        gap:18px;
        width:100%;
        max-width:none;
        min-height:inherit;
        padding-top:18px;
        padding-bottom:24px;
    }
    .top-hero--vertical-heading .top-hero-heading-group{
        grid-column:1;
        grid-row:1;
        max-width:100%;
        max-height:none;
        padding:10px 4px;
    }
    .top-hero--vertical-heading .top-hero-heading-group .top-hero-title{
        font-size:clamp(28px,7vw,var(--hero-title-font-size,64px));
    }
    .top-hero--vertical-heading .top-hero-heading-group .top-hero-eyebrow{
        font-size:clamp(11px,3vw,var(--site-hero-shop-name-size,14px));
    }
    .top-hero--vertical-heading .top-hero-copy-group{
        grid-column:1;
        grid-row:2;
        align-self:end;
        width:100%;
        padding:0 0 8px;
    }
    .top-hero--vertical-heading .top-hero-copy-group .top-hero-description{
        margin:0;
    }
    .top-hero--vertical-heading .top-hero-copy-group .top-hero-actions{
        margin-top:22px;
    }

    /* Vertical-menu smartphone mode already reserves horizontal space for
       .top-hero-content; keep the two internal regions inside that safe width. */
    body.hero-vmenu-mobile-vertical.hero-vertical-menu-live
    .top-hero--vertical-heading .top-hero-content{
        box-sizing:border-box;
    }
}


/* =========================================================
   Vertical-heading + "fit to viewport" height safety
   The existing viewport mode is authoritative: never let the
   vertical-writing layout increase the hero beyond one viewport.
   ========================================================= */
.top-hero--vertical-heading.top-hero--image-mode-viewport{
    height:100vh !important;
    height:100svh !important;
    min-height:0 !important;
    max-height:100svh !important;
    overflow:hidden;
}

.top-hero--vertical-heading.top-hero--image-mode-viewport .top-hero-inner{
    height:100% !important;
    min-height:0 !important;
    max-height:100% !important;
    box-sizing:border-box;
    overflow:hidden;
}

.top-hero--vertical-heading.top-hero--image-mode-viewport .top-hero-content{
    height:100%;
    min-height:0 !important;
    max-height:100%;
    box-sizing:border-box;
    overflow:hidden;
}

/* Desktop: both dedicated areas must fit within the hero's existing height. */
@media(min-width:721px){
    .top-hero--vertical-heading.top-hero--image-mode-viewport .top-hero-content{
        grid-template-rows:minmax(0,1fr) !important;
    }
    .top-hero--vertical-heading.top-hero--image-mode-viewport .top-hero-heading-group,
    .top-hero--vertical-heading.top-hero--image-mode-viewport .top-hero-copy-group{
        min-height:0;
        max-height:100%;
    }
}

/* Smartphone: allocate the remaining viewport between the vertical heading
   and the fixed lower description/button region instead of adding 52svh
   on top of the lower region. */
@media(max-width:720px){
    .top-hero--vertical-heading.top-hero--image-mode-viewport .top-hero-inner{
        display:block;
        height:100% !important;
        min-height:0 !important;
    }

    .top-hero--vertical-heading.top-hero--image-mode-viewport .top-hero-content{
        grid-template-rows:minmax(0,1fr) auto !important;
        height:100% !important;
        min-height:0 !important;
        max-height:100% !important;
        padding-top:18px;
        padding-bottom:24px;
    }

    .top-hero--vertical-heading.top-hero--image-mode-viewport .top-hero-heading-group{
        min-height:0;
        max-height:100%;
        overflow:hidden;
    }

    .top-hero--vertical-heading.top-hero--image-mode-viewport .top-hero-copy-group{
        min-height:0;
        max-height:46svh;
        overflow:hidden;
    }
}


/* =========================================================
   Vertical heading v2: PC and smartphone share the same
   TOP heading area / BOTTOM description+buttons area model.
   ========================================================= */

/* The vertical mode owns one safe content rectangle. */
.top-hero--vertical-heading .top-hero-content{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    grid-template-rows:minmax(0,1fr) auto !important;
    gap:clamp(12px,2.2vh,28px) !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    min-height:0 !important;
    height:100%;
    box-sizing:border-box;
    overflow:hidden;
}

/* TOP region: shop name + title. */
.top-hero--vertical-heading .top-hero-heading-group{
    display:flex !important;
    grid-column:1 !important;
    grid-row:1 !important;
    flex-direction:row-reverse;
    gap:clamp(12px,2vw,28px);
    width:max-content;
    max-width:100%;
    min-width:0;
    min-height:0;
    max-height:100%;
    box-sizing:border-box;
    overflow:hidden;
}

/* BOTTOM region: description + buttons. */
.top-hero--vertical-heading .top-hero-copy-group{
    display:block !important;
    grid-column:1 !important;
    grid-row:2 !important;
    align-self:end !important;
    justify-self:stretch !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    min-height:0;
    box-sizing:border-box;
    padding:0 !important;
    overflow:hidden;
}

.top-hero--vertical-heading .top-hero-copy-group .top-hero-description{
    width:100%;
    max-width:100%;
    margin:0;
}
.top-hero--vertical-heading .top-hero-copy-group .top-hero-actions{
    width:100%;
    max-width:100%;
    margin-top:clamp(16px,2.8vh,34px);
}

/* Vertical text. Preserve-breaks OFF may wrap normally inside the TOP region. */
.top-hero--vertical-heading .top-hero-heading-group .top-hero-eyebrow,
.top-hero--vertical-heading .top-hero-heading-group .top-hero-title{
    writing-mode:vertical-rl;
    text-orientation:mixed;
    margin:0;
    max-height:100%;
    max-width:100%;
}
.top-hero--vertical-heading .top-hero-heading-group .top-hero-title:not(.top-hero-title--preserve-breaks){
    white-space:normal !important;
    overflow-wrap:anywhere;
    overflow:hidden;
}

/* Preserve-breaks ON: each manually defined line stays one vertical column.
   JS reduces font size until every column fits the TOP-region height. */
.top-hero--vertical-heading .top-hero-title--preserve-breaks{
    display:flex;
    flex-direction:row-reverse;
    align-items:flex-start;
    gap:.12em;
    white-space:normal !important;
    overflow:visible;
}
.top-hero--vertical-heading .top-hero-title--preserve-breaks .top-hero-title__line{
    display:block;
    width:auto !important;
    max-width:none !important;
    height:max-content;
    max-height:none;
    white-space:nowrap !important;
}

/* Alignment applies only inside the TOP heading region. */
.top-hero--vertical-heading-v-top .top-hero-heading-group{align-self:start !important}
.top-hero--vertical-heading-v-center .top-hero-heading-group{align-self:center !important}
.top-hero--vertical-heading-v-bottom .top-hero-heading-group{align-self:end !important}
.top-hero--vertical-heading-h-left .top-hero-heading-group{justify-self:start !important}
.top-hero--vertical-heading-h-center .top-hero-heading-group{justify-self:center !important}
.top-hero--vertical-heading-h-right .top-hero-heading-group{justify-self:end !important}

/* PC: use the full hero safe rectangle, then reserve vertical-menu width
   from BOTH top and bottom regions rather than letting text sit under it. */
@media(min-width:721px){
    .top-hero--vertical-heading .top-hero-inner{
        align-items:stretch !important;
    }

    .top-hero--vertical-heading .top-hero-content{
        min-height:100%;
        padding-top:clamp(18px,3vh,44px);
        padding-bottom:clamp(18px,3vh,44px);
    }

    body.hero-vertical-menu-live.hero-vmenu-pos-left_push
    .site-main--top .top-hero--vertical-heading .top-hero-content,
    body.hero-vertical-menu-live.hero-vmenu-pos-left_push
    .site-main--top .top-hero--vertical-heading .top-hero-copy-group{
        box-sizing:border-box;
    }

    body.hero-vertical-menu-live.hero-vmenu-pos-left_push
    .site-main--top .top-hero--vertical-heading .top-hero-content{
        width:calc(100% - var(--hero-vertical-menu-width)) !important;
        max-width:calc(100% - var(--hero-vertical-menu-width)) !important;
        margin-left:var(--hero-vertical-menu-width) !important;
        margin-right:0 !important;
    }

    body.hero-vertical-menu-live.hero-vmenu-pos-right_push
    .site-main--top .top-hero--vertical-heading .top-hero-content,
    body.hero-vertical-menu-live.hero-vmenu-pos-right_overlay
    .site-main--top .top-hero--vertical-heading .top-hero-content{
        width:calc(100% - var(--hero-vertical-menu-width)) !important;
        max-width:calc(100% - var(--hero-vertical-menu-width)) !important;
        margin-left:0 !important;
        margin-right:var(--hero-vertical-menu-width) !important;
    }
}

/* Smartphone uses the same two regions. The bottom region is fixed below
   the heading region, so no heading/description overlap can occur. */
@media(max-width:720px){
    .top-hero--vertical-heading .top-hero-inner{
        display:block !important;
        min-height:inherit;
    }

    .top-hero--vertical-heading .top-hero-content{
        grid-template-rows:minmax(0,1fr) auto !important;
        gap:16px !important;
        min-height:inherit !important;
        padding-top:16px !important;
        padding-bottom:20px !important;
    }

    .top-hero--vertical-heading .top-hero-heading-group{
        max-height:100%;
        padding:6px 2px;
    }

    .top-hero--vertical-heading .top-hero-copy-group{
        padding:0 !important;
    }

    /* Vertical menu: the whole safe content rectangle becomes narrower,
       therefore both TOP and BOTTOM regions use the same blue-box width. */
    body.hero-vmenu-mobile-vertical.hero-vertical-menu-live.hero-vmenu-pos-left_push
    .site-main--top .top-hero--vertical-heading .top-hero-content{
        width:calc(100% - var(--hero-vertical-menu-mobile-width) - 12px) !important;
        max-width:calc(100% - var(--hero-vertical-menu-mobile-width) - 12px) !important;
        margin-left:calc(var(--hero-vertical-menu-mobile-width) + 12px) !important;
        margin-right:0 !important;
    }

    body.hero-vmenu-mobile-vertical.hero-vertical-menu-live.hero-vmenu-pos-right_push
    .site-main--top .top-hero--vertical-heading .top-hero-content,
    body.hero-vmenu-mobile-vertical.hero-vertical-menu-live.hero-vmenu-pos-right_overlay
    .site-main--top .top-hero--vertical-heading .top-hero-content{
        width:calc(100% - var(--hero-vertical-menu-mobile-width) - 12px) !important;
        max-width:calc(100% - var(--hero-vertical-menu-mobile-width) - 12px) !important;
        margin-left:0 !important;
        margin-right:calc(var(--hero-vertical-menu-mobile-width) + 12px) !important;
    }
}

/* Viewport mode remains exactly one viewport high while the two regions
   divide only the already-available height. */
.top-hero--vertical-heading.top-hero--image-mode-viewport .top-hero-content{
    height:100% !important;
    min-height:0 !important;
    max-height:100% !important;
}


/* =========================================================
   Vertical-heading refinements:
   upright Latin/digits, lower mobile copy area, viewport fit.
   ========================================================= */

/* Keep half-width Latin letters/digits upright in vertical writing. */
.top-hero--vertical-heading .top-hero-heading-group .top-hero-eyebrow,
.top-hero--vertical-heading .top-hero-heading-group .top-hero-title,
.top-hero--vertical-heading .top-hero-title--preserve-breaks .top-hero-title__line{
    text-orientation:upright !important;
}

/* Viewport mode: reserve the majority of the hero for the heading.
   The copy region gets a bounded bottom area; JS scales description only. */
.top-hero--vertical-heading.top-hero--image-mode-viewport .top-hero-copy-group{
    align-self:end !important;
    max-height:var(--hero-copy-fit-max-height,38%) !important;
    overflow:hidden;
}
.top-hero--vertical-heading.top-hero--image-mode-viewport .top-hero-copy-group .top-hero-actions{
    flex-shrink:0;
}

/* Smartphone: push description/buttons nearer the bottom edge and return
   the saved height to the vertical heading area. */
@media(max-width:720px){
    .top-hero--vertical-heading .top-hero-content{
        gap:8px !important;
        padding-top:12px !important;
        padding-bottom:6px !important;
    }

    .top-hero--vertical-heading .top-hero-heading-group{
        padding-top:2px !important;
        padding-bottom:2px !important;
    }

    .top-hero--vertical-heading .top-hero-copy-group{
        align-self:end !important;
        padding-bottom:0 !important;
    }

    .top-hero--vertical-heading .top-hero-copy-group .top-hero-actions{
        margin-top:14px !important;
    }

    .top-hero--vertical-heading.top-hero--image-mode-viewport .top-hero-copy-group{
        max-height:var(--hero-copy-fit-max-height,31%) !important;
    }
}


/* =========================================================
   Vertical hero copy region v3
   - Copy uses the FULL safe width.
   - No fixed 31%/38% height cap.
   - Description shrinks only if natural content truly cannot fit.
   ========================================================= */

.top-hero--vertical-heading .top-hero-copy-group{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    justify-self:stretch !important;
    box-sizing:border-box;
}

/* Remove the old percentage-based viewport cap. */
.top-hero--vertical-heading.top-hero--image-mode-viewport .top-hero-copy-group{
    max-height:var(--hero-copy-fit-max-height,none) !important;
}

/* PC: copy group may use the entire safe rectangle width.
   If a right-side vertical menu exists, the safe rectangle already ends
   at the menu's left edge. */
@media(min-width:721px){
    .top-hero--vertical-heading .top-hero-copy-group{
        grid-column:1 !important;
        width:100% !important;
        max-width:100% !important;
    }

    .top-hero--vertical-heading .top-hero-copy-group .top-hero-description,
    .top-hero--vertical-heading .top-hero-copy-group .top-hero-actions{
        width:100% !important;
        max-width:100% !important;
    }
}

/* Smartphone: same rule. The content rectangle itself is already narrowed
   by the vertical-menu width, so copy runs from the left edge exactly to the
   menu's left edge without an extra inner width restriction. */
@media(max-width:720px){
    .top-hero--vertical-heading .top-hero-copy-group{
        width:100% !important;
        max-width:100% !important;
        padding-left:0 !important;
        padding-right:0 !important;
    }

    .top-hero--vertical-heading .top-hero-copy-group .top-hero-description,
    .top-hero--vertical-heading .top-hero-copy-group .top-hero-actions{
        width:100% !important;
        max-width:100% !important;
    }

    .top-hero--vertical-heading.top-hero--image-mode-viewport .top-hero-copy-group{
        max-height:var(--hero-copy-fit-max-height,none) !important;
    }
}


/* =========================================================
   Hero-only TOP page
   ========================================================= */
body.hero-only-top-page{
    height:100vh;
    height:100svh;
    overflow:hidden;
}
body.hero-only-top-page .site-main--top{
    height:100vh;
    height:100svh;
    overflow:hidden;
}
body.hero-only-top-page .site-main--top .top-hero--image-mode-viewport{
    height:100vh !important;
    height:100svh !important;
    min-height:100svh !important;
    max-height:100svh !important;
    overflow:hidden;
}


/* =========================================================
   Hero-only TOP + header-background compatibility
   The hero must be allowed to travel upward behind the header.
   Body remains non-scrollable; only the main's clipping is removed.
   ========================================================= */
body.hero-only-top-page.home-hero-header-background .site-main--top{
    overflow:visible !important;
}

/* Hero starts behind the full header and still finishes exactly at the
   viewport bottom. Existing header-background rules provide the negative
   margin and matching inner top padding. */
body.hero-only-top-page.home-hero-header-background
.site-main--top .top-hero--image-mode-viewport{
    height:100vh !important;
    height:100svh !important;
    min-height:100vh !important;
    min-height:100svh !important;
    max-height:100vh !important;
    max-height:100svh !important;
}

/* While the one-screen hero is visible, force the configured transparent
   header treatment to remain active. There is no scrolling destination on
   a hero-only TOP page, so the normal "restore header after hero" behavior
   is unnecessary here. */
body.hero-only-top-page.home-hero-header-background .header-main{
    background:color-mix(
        in srgb,
        var(--site-header-top-bg,var(--header)) var(--hero-header-row1-opacity,0%),
        transparent
    ) !important;
}
body.hero-only-top-page.home-hero-header-background .site-nav{
    background:color-mix(
        in srgb,
        var(--site-header-nav-bg,var(--header-light)) var(--hero-header-row2-opacity,0%),
        transparent
    ) !important;
}

/* Search and language controls intentionally remain opaque white. */
body.hero-only-top-page.home-hero-header-background .header-search,
body.hero-only-top-page.home-hero-header-background .header-search input,
body.hero-only-top-page.home-hero-header-background .public-language-select{
    background:#fff !important;
}


/* =========================================================
   Entry animation: uploaded hero background compatibility
   This layer exists only when "背景コンテンツ" animation is enabled.
   With the animation OFF, the original background-image implementation
   remains completely unchanged.
   ========================================================= */

.top-hero-entry-image-background{
    display:none;
}

/* Ordinary uploaded-image hero:
   move the visual background from the section background into a real DOM
   layer so entry-animations.js can animate it independently from text/buttons. */
.top-hero--entry-image-layer-enabled.top-hero--image:not(.top-hero--text-split){
    background-image:none !important;
}

.top-hero--entry-image-layer-enabled.top-hero--image:not(.top-hero--text-split)
.top-hero-entry-image-background{
    display:block;
    position:absolute;
    inset:0;
    z-index:-3;
    pointer-events:none;
    background-image:var(--hero-background-image);
    background-size:cover;
    background-repeat:no-repeat;
    background-position:
        var(--hero-image-position-x,center)
        var(--hero-image-position-y,center);
}

/* Animate the image and its configured overlay together. */
.top-hero--entry-image-layer-enabled.top-hero--image:not(.top-hero--text-split)::before{
    display:none;
}

.top-hero--entry-image-layer-enabled.top-hero--image
.top-hero-entry-image-background::after{
    content:"";
    position:absolute;
    inset:0;
    background:var(--hero-overlay-color);
    opacity:var(--hero-overlay-opacity);
    pointer-events:none;
}

/* Text-split desktop already has a dedicated right-hand image layer, so keep
   using that existing layer and leave the new full layer hidden. */
.top-hero--entry-image-layer-enabled.top-hero--text-split.top-hero--image
.top-hero-entry-image-background{
    display:none;
}

/* When mobile split is OFF, the old implementation restores the image onto
   the hero itself. For animation purposes only, use the dedicated layer
   instead so mobile behaves the same as the normal uploaded-image hero. */
@media(max-width:720px){
    .top-hero--entry-image-layer-enabled.top-hero--text-split.top-hero--split-mobile-off.top-hero--image{
        background-image:none !important;
    }

    .top-hero--entry-image-layer-enabled.top-hero--text-split.top-hero--split-mobile-off.top-hero--image
    .top-hero-entry-image-background{
        display:block;
        position:absolute;
        inset:0;
        z-index:-3;
        pointer-events:none;
        background-image:var(--hero-background-image-mobile,var(--hero-background-image));
        background-size:cover;
        background-repeat:no-repeat;
        background-position:
            var(--hero-image-position-x,center)
            var(--hero-image-position-y,center);
    }
}








/* Background shown while hero background-content entry animation is pending. */
.top-hero.entry-animation-hero-background-wait{
    background-color:var(--hero-entry-animation-wait-bg,#000000) !important;
}


/* Hero background-content animation waiting color:
   keep this visible even when the uploaded image uses its dedicated layer. */
.top-hero.entry-animation-hero-background-wait{
    background-color:var(--hero-entry-animation-wait-bg,#000000)!important;
}
.top-hero.entry-animation-hero-background-wait .top-hero-entry-image-background,
.top-hero.entry-animation-hero-background-wait .top-hero-text-split-bg{
    background-color:var(--hero-entry-animation-wait-bg,#000000)!important;
}


/* =========================================================
   Product / category / blog cards:
   remove the browser/tap focus ring that briefly appeared green.
   Keep keyboard accessibility via :focus-visible on the actual link.
   ========================================================= */
.product-card,
.category-card,
.blog-card,
.product-card a,
.category-card a,
.blog-card a {
    -webkit-tap-highlight-color: transparent;
}

.product-card:focus,
.category-card:focus,
.blog-card:focus,
.product-card:focus-within,
.category-card:focus-within,
.blog-card:focus-within,
.product-card a:focus:not(:focus-visible),
.category-card a:focus:not(:focus-visible),
.blog-card a:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none;
}

/* Keyboard navigation still gets a neutral, non-green indicator. */
.product-card a:focus-visible,
.category-card a:focus-visible,
.blog-card a:focus-visible {
    outline: 1px solid rgba(0,0,0,.28);
    outline-offset: 2px;
}








/* =========================================================
   Hero mobile background image override
   スマホでは専用背景レイヤーも必ずスマホ用画像を優先する
   ========================================================= */
@media (max-width: 720px) {
    .top-hero.top-hero--image .top-hero-entry-image-background {
        background-image:
            var(--hero-background-image-mobile, var(--hero-background-image)) !important;
    }
}