:root {
    --paper: #f5f8fc;
    --paper-deep: #eaf0f7;
    --surface: #ffffff;
    --ink: #13233a;
    --ink-soft: #68788e;
    --line: #dce5ef;
    --line-dark: #c7d4e3;
    --coral: #2563eb;
    --coral-soft: #eaf1ff;
    --acid: #e8f0ff;
    --mint: #edf5ff;
    --danger: #c94747;
    --radius-sm: 9px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --font-display: "Avenir Next", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-body: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

body.modal-open {
    overflow: hidden;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

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

[hidden] {
    display: none !important;
}

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

:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 3px;
}

.site-header {
    position: sticky;
    z-index: 30;
    top: 0;
    display: grid;
    grid-template-columns: minmax(190px, 0.55fr) minmax(320px, 1.45fr);
    align-items: center;
    min-height: 82px;
    padding: 13px clamp(20px, 4vw, 64px);
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
}

.brand__mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--coral);
    border-radius: 11px;
    color: var(--surface);
    background: var(--coral);
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
}

.brand__copy {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand__copy strong {
    font-family: var(--font-display);
    font-size: 16px;
    letter-spacing: 0.14em;
}

.brand__copy small {
    margin-top: 5px;
    color: var(--ink-soft);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.top-search {
    position: relative;
    display: flex;
    align-items: center;
    width: min(100%, 680px);
    justify-self: end;
    min-height: 52px;
    padding: 0 15px 0 48px;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    background: #f8faff;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.top-search:focus-within {
    background: #fff;
    border-color: var(--coral);
    box-shadow: 0 0 0 4px var(--coral-soft);
}

.top-search__icon {
    position: absolute;
    left: 18px;
    display: grid;
    place-items: center;
}

.top-search__icon svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.top-search input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font-size: 14px;
}

.top-search input::placeholder {
    color: #8795a8;
}

.top-search input::-webkit-search-cancel-button {
    display: none;
}

.top-search__clear {
    display: grid;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    margin-left: 8px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    background: var(--surface);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.top-search kbd {
    flex: 0 0 auto;
    margin-left: 10px;
    padding: 4px 7px;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: var(--ink-soft);
    background: var(--surface);
    font-family: var(--font-display);
    font-size: 9px;
    letter-spacing: 0.04em;
}

.catalog-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: clamp(22px, 3vw, 46px);
    align-items: start;
    width: min(1480px, calc(100% - 48px));
    margin: 0 auto;
    padding: 38px 0 70px;
}

.category-panel {
    position: sticky;
    top: 112px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.category-panel__heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 24px 22px 20px;
    border-bottom: 1px solid var(--line);
}

.section-number {
    display: inline-grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border: 1px solid #c6d9ff;
    border-radius: 50%;
    background: var(--acid);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 800;
}

.eyebrow {
    display: block;
    color: var(--ink-soft);
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.category-panel__heading h2 {
    margin: 6px 0 0;
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: -0.03em;
}

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

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 0 9px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 650;
    transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.category-item:hover {
    background: var(--paper);
    transform: translateY(-1px);
}

.category-item--all {
    grid-column: 1 / -1;
}

.category-item.is-active {
    color: var(--surface);
    background: var(--coral);
}

.category-item__index {
    color: var(--ink-soft);
    font-family: var(--font-display);
    font-size: 8px;
}

.category-item.is-active .category-item__index {
    color: #dce9ff;
}

.category-panel__footer {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 18px 22px 22px;
    border-top: 1px solid var(--line);
    background: #f8faff;
}

.mobile-size-hint {
    display: none;
}

.live-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    margin-top: 5px;
    border-radius: 50%;
    background: #2563eb;
    box-shadow: 0 0 0 4px rgb(37 99 235 / 12%);
}

.category-panel__footer div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-panel__footer strong {
    font-size: 12px;
}

.category-panel__footer small {
    color: var(--ink-soft);
    font-size: 10px;
    line-height: 1.5;
}

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

.catalog-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    min-height: 148px;
    padding: 4px 2px 30px;
}

.catalog-intro__label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.catalog-intro h1 {
    margin: 16px 0 6px;
    font-family: var(--font-display);
    font-size: clamp(40px, 5.3vw, 72px);
    font-weight: 750;
    letter-spacing: -0.065em;
    line-height: 0.98;
}

.catalog-intro p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 13px;
}

.catalog-intro__stamp {
    display: flex;
    width: 104px;
    height: 104px;
    flex: 0 0 104px;
    flex-direction: column;
    gap: 3px;
    align-items: flex-start;
    justify-content: center;
    padding: 16px;
    border: 1px solid #c9dcff;
    border-radius: 16px;
    background: var(--surface);
    color: var(--ink);
    transform: none;
}

.catalog-intro__stamp span {
    margin-bottom: 2px;
    font-family: var(--font-display);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.15em;
    white-space: nowrap;
}

.catalog-intro__stamp strong {
    font-family: var(--font-display);
    color: var(--coral);
    font-size: 24px;
    line-height: 1;
    white-space: nowrap;
}

.catalog-intro__stamp small {
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 1.8vw, 24px);
    transition: opacity 160ms ease;
}

.product-grid.is-loading {
    opacity: 0.45;
    pointer-events: none;
}

.load-more-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.load-more-button {
    min-width: 156px;
    background: var(--surface);
}

.load-more-wrap > span {
    color: var(--ink-soft);
    font-size: 10px;
}

.product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-card:hover,
.product-card:focus-visible {
    border-color: #b8cff6;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgb(36 76 135 / 10%);
}

.product-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--paper-deep);
}

.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms cubic-bezier(0.2, 0.65, 0.25, 1);
}

.product-card:hover .product-card__media img {
    transform: scale(1.035);
}

.product-card__category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 7px 10px;
    border: 1px solid rgb(37 99 235 / 14%);
    border-radius: 999px;
    background: rgb(255 255 255 / 90%);
    backdrop-filter: blur(8px);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.05em;
}

.product-card__stock-warning {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 7px 9px;
    border: 1px solid #cbdfff;
    border-radius: 6px;
    color: #194fb8;
    background: #eef4ff;
    font-size: 9px;
    font-weight: 800;
}

.product-card__open {
    position: absolute;
    right: 13px;
    bottom: 13px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    color: var(--surface);
    background: var(--coral);
    font-size: 18px;
    transform: translateY(5px);
    opacity: 0;
    transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
}

.product-card:hover .product-card__open,
.product-card:focus-visible .product-card__open {
    transform: translateY(0);
    opacity: 1;
}

.product-card__open:hover {
    background: #174abd;
}

.product-card__body {
    padding: 16px 17px 17px;
}

.product-card__topline {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--ink-soft);
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.07em;
}

.product-card h2 {
    margin: 10px 0 18px;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.25;
}

.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.product-card__footer > strong {
    font-family: var(--font-display);
    font-size: 18px;
}

.size-preview {
    display: flex;
    max-width: none;
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px;
    margin-top: 4px;
}

.size-preview span {
    min-width: 29px;
    padding: 4px 6px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--ink-soft);
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 700;
    text-align: center;
}

.size-preview span.is-out {
    color: #9aa8ba;
    background: #f0f4f9;
    text-decoration: line-through;
}

.empty-state {
    display: grid;
    min-height: 360px;
    padding: 48px 24px;
    place-items: center;
    align-content: center;
    border: 1px dashed #bdcddd;
    border-radius: var(--radius-lg);
    background: rgb(255 255 255 / 72%);
    text-align: center;
}

.empty-state__code {
    margin-bottom: 14px;
    padding: 6px 9px;
    border: 1px solid var(--ink);
    border-radius: 5px;
    background: var(--acid);
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.empty-state h3 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 28px;
    letter-spacing: -0.04em;
}

.empty-state p {
    margin: 0 0 22px;
    color: var(--ink-soft);
    font-size: 13px;
}

.empty-state--setup {
    min-height: 420px;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 750;
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 var(--line);
}

.button--primary {
    color: var(--surface);
    background: var(--coral);
}

.button--ghost {
    background: transparent;
}

.notice {
    margin-bottom: 18px;
    padding: 13px 16px;
    border: 1px solid var(--ink);
    border-radius: var(--radius-sm);
    background: var(--mint);
    font-size: 13px;
}

.notice--error {
    color: #9f3131;
    background: #fff1f1;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 22px clamp(20px, 4vw, 64px);
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    background: var(--surface);
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.product-modal {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    padding: clamp(12px, 3vw, 38px);
    place-items: center;
    pointer-events: none;
    visibility: hidden;
}

.product-modal.is-open {
    pointer-events: auto;
    visibility: visible;
}

.product-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(10 26 48 / 68%);
    opacity: 0;
    transition: opacity 200ms ease;
}

.product-modal.is-open .product-modal__backdrop {
    opacity: 1;
}

.product-modal__dialog {
    position: relative;
    display: grid;
    overflow: hidden;
    width: min(1120px, 100%);
    max-height: calc(100vh - 48px);
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    transform: translateY(14px) scale(0.985);
    opacity: 0;
    transition: transform 220ms ease, opacity 180ms ease;
}

.product-modal.is-open .product-modal__dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.product-modal__close {
    position: absolute;
    z-index: 4;
    top: 14px;
    right: 14px;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--ink);
    border-radius: 50%;
    color: var(--ink);
    background: var(--surface);
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
    transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.product-modal__close:hover {
    color: var(--surface);
    background: var(--ink);
    transform: rotate(8deg);
}

.product-modal__media {
    position: relative;
    min-height: 510px;
    overflow: hidden;
    background: var(--paper-deep);
}

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

.product-modal__index {
    position: absolute;
    left: 20px;
    bottom: 20px;
    padding: 8px 10px;
    border: 1px solid rgb(37 99 235 / 14%);
    border-radius: 5px;
    background: rgb(255 255 255 / 90%);
    backdrop-filter: blur(8px);
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.product-modal__content {
    overflow-y: auto;
    padding: clamp(32px, 4vw, 58px);
}

.product-modal__loading {
    display: grid;
    min-height: 360px;
    place-items: center;
    color: var(--ink-soft);
    font-size: 13px;
}

.product-modal__content h2 {
    margin: 13px 0 16px;
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 50px);
    font-weight: 750;
    letter-spacing: -0.055em;
    line-height: 1.04;
}

.product-modal__description {
    margin: 0;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.8;
}

.product-modal__price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 30px 0;
    padding: 17px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.product-modal__price-row strong {
    font-family: var(--font-display);
    font-size: 31px;
    letter-spacing: -0.04em;
}

.product-modal__price-row span {
    padding: 7px 10px;
    border-radius: 5px;
    background: var(--acid);
    font-size: 10px;
    font-weight: 750;
}

.product-modal__section-title {
    display: flex;
    justify-content: space-between;
    margin-bottom: 13px;
    font-size: 16px;
    font-weight: 750;
}

.product-modal__section-title small {
    color: var(--ink-soft);
    font-family: var(--font-display);
    font-size: 8px;
    letter-spacing: 0.13em;
}

.size-stock-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.size-stock {
    display: flex;
    min-height: 70px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #f8faff;
}

.size-stock__name {
    font-family: var(--font-display);
    color: var(--ink);
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.size-stock__stock {
    display: flex;
    min-width: 44px;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.size-stock__stock strong {
    color: var(--ink-soft);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 650;
    white-space: nowrap;
}

.size-stock__stock small {
    color: var(--ink-soft);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.size-stock.is-out {
    color: #8f9eb1;
    background: #eff3f8;
}

.size-stock.is-out .size-stock__name {
    color: #9ba9ba;
}

.size-stock.is-out .size-stock__stock strong {
    color: #9ba9ba;
    font-size: 10px;
}

.size-stock--empty {
    grid-column: 1 / -1;
    display: block;
    padding: 24px;
    color: var(--ink-soft);
    text-align: center;
}

@media (min-width: 1500px) {
    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1120px) {
    .catalog-shell {
        grid-template-columns: 210px minmax(0, 1fr);
        width: min(100% - 36px, 1100px);
        gap: 24px;
    }

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

    .site-header {
        grid-template-columns: 180px minmax(260px, 1fr);
        padding-inline: 24px;
    }

    .top-search kbd {
        display: none;
    }
}

@media (max-width: 820px) {
    .site-header {
        grid-template-columns: 1fr auto;
        gap: 12px;
        padding: 12px 18px 14px;
    }

    .top-search {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        min-height: 48px;
    }

    .catalog-shell {
        display: block;
        width: 100%;
        padding: 20px 18px 50px;
    }

    .category-panel {
        position: static;
        overflow: visible;
        border-radius: var(--radius-md);
        background: transparent;
        border: 0;
    }

    .category-panel__heading,
    .category-panel__footer {
        display: none;
    }

    .category-list {
        display: grid;
        height: auto;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        grid-template-rows: none;
        grid-auto-flow: row;
        grid-auto-columns: auto;
        overflow: visible;
        gap: 7px;
        padding: 0 0 8px;
        scrollbar-width: none;
    }

    .category-list::-webkit-scrollbar {
        display: none;
    }

    .category-item {
        width: auto;
        min-width: 0;
        height: 41px;
        min-height: 41px;
        align-items: center;
        justify-content: center;
        padding: 0 5px;
        border: 1px solid var(--ink);
        border-radius: 999px;
        background: var(--surface);
        font-size: 11px;
        text-align: center;
    }

    .category-item__index {
        display: none;
    }

    .category-item--all {
        flex: none;
        width: auto;
        min-width: 0;
        justify-content: center;
        padding-inline: 4px;
        grid-column: auto;
        grid-row: auto;
        font-size: 10px;
    }

    .mobile-size-hint {
        display: flex;
        align-items: center;
        gap: 6px;
        margin: -9px 0 16px;
        color: var(--ink-soft);
        font-size: 9px;
    }

    .mobile-size-hint span {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: var(--coral);
        color: var(--coral);
    }

    .catalog-intro {
        min-height: 118px;
        padding: 13px 0 22px;
    }

    .catalog-intro h1 {
        font-size: clamp(38px, 11vw, 58px);
    }

    .catalog-intro__stamp {
        width: 82px;
        height: 82px;
        flex-basis: 82px;
        padding: 13px;
    }

    .catalog-intro__stamp strong {
        font-size: 19px;
    }

    .product-modal {
        padding: 0;
        align-items: stretch;
    }

    .product-modal__dialog {
        width: 100%;
        max-height: 100vh;
        grid-template-columns: 1fr;
        border: 0;
        border-radius: 0;
    }

    .product-modal__media {
        min-height: 0;
        height: min(46vh, 450px);
    }

    .product-modal__content {
        padding: 28px 22px 40px;
    }

    .product-modal__content h2 {
        font-size: 34px;
    }
}

@media (max-width: 540px) {
    .brand__copy small {
        display: none;
    }

    .brand__mark {
        width: 37px;
        height: 37px;
    }

    .site-header {
        min-height: auto;
    }

    .top-search {
        padding-right: 11px;
        font-size: 12px;
    }

    .catalog-intro__stamp {
        display: none;
    }

    .catalog-intro {
        min-height: auto;
        padding-top: 10px;
    }

    .catalog-intro h1 {
        margin-top: 14px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .product-card__body {
        padding: 14px 15px 15px;
    }

    .site-footer {
        flex-direction: column;
        gap: 7px;
        text-align: center;
    }

    .site-footer span:nth-child(2) {
        display: none;
    }

    .load-more-wrap {
        align-items: stretch;
        flex-direction: column;
    }

}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
