/* Independent online store chrome */

.nemuri-shop-body {
    --ns-text: var(--nd-color-dark, #1f2524);
    --ns-muted: var(--nd-color-text, #5a564e);
    --ns-bg: var(--nd-color-muted-bg, #f7f2e9);
    --ns-card: var(--nd-color-card-bg, #fffdf7);
    --ns-line: color-mix(in srgb, var(--nd-color-border, #d8cdbb) 82%, transparent);
    --ns-accent: var(--nd-color-primary, #6f4f2f);
    --ns-dark: var(--nd-color-dark, #2f2a25);
    --ns-sale: #b42318;
    --ns-radius: 16px;
    --ns-shadow: 0 12px 32px color-mix(in srgb, var(--nd-color-dark, #2f2a25) 8%, transparent);
    margin: 0;
    color: var(--ns-text);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--ns-bg) 88%, white) 0%, var(--ns-bg) 100%);
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
}

.nemuri-shop-body .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nemuri-shop-body .site-header,
.nemuri-shop-body .site-footer,
.nemuri-shop-body .vk-mobile-nav-menu-btn,
.nemuri-shop-body .nd-floating-cta {
    display: none !important;
}

.ns-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.ns-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--ns-line);
    background: color-mix(in srgb, var(--ns-card) 88%, transparent);
    backdrop-filter: blur(16px);
}

.ns-header__inner,
.ns-footer__inner,
.ns-section,
.ns-hero__inner,
.ns-catbar__inner,
.ns-related {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.ns-header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
}

.ns-brand {
    text-decoration: none;
    color: inherit;
    min-width: max-content;
}

.ns-brand__eyebrow,
.ns-hero__eyebrow,
.ns-kicker {
    display: block;
    margin: 0 0 4px;
    color: var(--ns-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.ns-brand__name {
    font-family: var(--nd-font-family, "Hiragino Mincho ProN", serif);
    font-size: 20px;
    font-weight: 600;
}

.ns-search {
    display: flex;
    align-items: stretch;
    min-width: 0;
    border: 1px solid var(--ns-line);
    border-radius: 999px;
    background: var(--ns-card);
    overflow: hidden;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--ns-dark) 5%, transparent);
}

.ns-search__cat,
.ns-search__input,
.ns-search__button,
.ns-select,
.ns-field input,
.ns-field select,
.ns-field textarea,
.ns-buy-form input[type="number"] {
    font: inherit;
    color: inherit;
}

.ns-search__cat {
    max-width: 168px;
    border: 0;
    border-right: 1px solid var(--ns-line);
    padding: 0 12px;
    background: color-mix(in srgb, var(--ns-bg) 70%, white);
    font-size: 13px;
}

.ns-search__input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 12px 14px;
    background: transparent;
    font-size: 14px;
}

.ns-search__input:focus,
.ns-search__cat:focus,
.ns-select:focus,
.ns-field input:focus,
.ns-field select:focus,
.ns-field textarea:focus,
.ns-qty__controls input:focus {
    outline: none;
}

.ns-search:focus-within {
    border-color: color-mix(in srgb, var(--ns-accent) 55%, var(--ns-line));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--ns-accent) 12%, transparent);
}

.ns-search__button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    padding: 0 16px;
    background: var(--ns-dark);
    color: #fffdf7;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.ns-search__icon {
    display: inline-flex;
}

.ns-nav {
    display: flex;
    align-items: center;
    gap: 8px 14px;
}

.ns-nav__link {
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.ns-nav__cart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--ns-line);
    border-radius: 999px;
    background: var(--ns-card);
}

.ns-nav__cart-icon {
    display: inline-flex;
}

.ns-cart-badge {
    min-width: 1.5em;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--ns-accent);
    color: #fffdf7;
    font-size: 12px;
    text-align: center;
}

.ns-catbar {
    border-top: 1px solid var(--ns-line);
    background: color-mix(in srgb, var(--ns-card) 70%, transparent);
}

.ns-catbar__inner {
    display: flex;
    gap: 8px;
    padding: 10px 0 12px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.ns-catbar__link,
.ns-cats__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 7px 12px;
    border: 1px solid var(--ns-line);
    border-radius: 999px;
    color: inherit;
    text-decoration: none;
    background: var(--ns-card);
    font-size: 13px;
    white-space: nowrap;
}

.ns-catbar__link.is-active,
.ns-cats__link.is-active,
.ns-filter-link.is-active {
    background: var(--ns-dark);
    border-color: var(--ns-dark);
    color: #fffdf7;
}

.ns-catbar__count,
.ns-filter-link__count {
    font-size: 11px;
    opacity: 0.72;
}

.ns-main {
    flex: 1;
}

.ns-hero {
    padding: clamp(36px, 6vw, 64px) 0 8px;
}

.ns-hero--compact {
    padding: 28px 0 4px;
}

.ns-hero__title,
.ns-page-head__title,
.ns-product-detail__title,
.ns-section__head h2,
.ns-related h2 {
    margin: 0;
    font-family: var(--nd-font-family, "Hiragino Mincho ProN", serif);
    font-size: clamp(28px, 4.4vw, 46px);
    font-weight: 500;
    line-height: 1.35;
}

.ns-hero--compact .ns-hero__title,
.ns-page-head__title {
    font-size: clamp(26px, 4vw, 38px);
}

.ns-hero__lead,
.ns-page-head__lead {
    max-width: 36em;
    margin: 12px 0 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--ns-muted);
}

.ns-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin: 14px 0 0;
    color: var(--ns-muted);
    font-size: 14px;
}

.ns-section {
    padding: 24px 0 72px;
}

.ns-section--featured {
    padding-bottom: 12px;
}

.ns-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.ns-narrow {
    width: min(920px, calc(100% - 40px));
}

.ns-catalog__layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.ns-filters__panel {
    border: 1px solid var(--ns-line);
    border-radius: var(--ns-radius);
    background: var(--ns-card);
    box-shadow: var(--ns-shadow);
}

.ns-filters__summary {
    cursor: pointer;
    padding: 16px 18px;
    font-weight: 700;
    list-style: none;
}

.ns-filters__summary::-webkit-details-marker {
    display: none;
}

.ns-filters__form {
    display: grid;
    gap: 18px;
    padding: 0 18px 18px;
}

.ns-filter-group {
    margin: 0;
    padding: 0;
    border: 0;
    display: grid;
    gap: 6px;
}

.ns-filter-group legend {
    padding: 0;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--ns-muted);
}

.ns-filter-link {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    margin-left: calc(var(--ns-depth, 0) * 12px);
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    font-size: 14px;
}

.ns-filter-link:hover {
    background: color-mix(in srgb, var(--ns-bg) 80%, white);
}

.ns-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.ns-select {
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--ns-line);
    border-radius: 12px;
    background: #fff;
}

.ns-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.ns-toolbar__count {
    margin: 0;
    color: var(--ns-muted);
    font-size: 14px;
}

.ns-toolbar__sort {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.ns-toolbar__sort .ns-select {
    width: auto;
    min-width: 160px;
}

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

.ns-grid--featured {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.ns-product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--ns-line);
    border-radius: var(--ns-radius);
    background: var(--ns-card);
    box-shadow: var(--ns-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ns-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px color-mix(in srgb, var(--ns-dark) 12%, transparent);
}

.ns-product-card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: color-mix(in srgb, var(--ns-bg) 80%, #e8e0d2);
}

.ns-product-card__media img,
.ns-product-detail__media img,
.ns-cart__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

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

.ns-product-card__placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    min-height: 180px;
    color: color-mix(in srgb, var(--ns-muted) 70%, transparent);
}

.ns-product-card__placeholder--large {
    min-height: 420px;
}

.ns-product-card__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ns-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.ns-badge--sale {
    background: var(--ns-sale);
    color: #fff;
}

.ns-badge--featured {
    background: var(--ns-accent);
    color: #fffdf7;
}

.ns-badge--soldout {
    background: var(--ns-dark);
    color: #fffdf7;
}

.ns-product-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    flex: 1;
}

.ns-product-card__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    font-size: 12px;
}

.ns-product-card__cats a {
    color: var(--ns-accent);
    text-decoration: none;
}

.ns-product-card__title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
}

.ns-product-card__title a,
.ns-cart__title {
    color: inherit;
    text-decoration: none;
}

.ns-product-card__excerpt,
.ns-product-detail__excerpt,
.ns-meta,
.ns-summary__note,
.ns-empty,
.ns-cart__unit {
    margin: 0;
    color: var(--ns-muted);
    line-height: 1.7;
    font-size: 14px;
}

.ns-product-card__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ns-price {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: baseline;
    margin: 0;
}

.ns-price__current {
    font-size: 1.2em;
    font-weight: 800;
}

.ns-price--lg .ns-price__current {
    font-size: 1.8em;
}

.ns-price__was {
    color: color-mix(in srgb, var(--ns-muted) 80%, transparent);
    text-decoration: line-through;
}

.ns-price__tax {
    width: 100%;
    font-size: 12px;
    font-weight: 500;
    color: var(--ns-muted);
}

.ns-stock {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
}

.ns-stock--instock {
    color: #2f6b4f;
}

.ns-stock--low {
    color: #9a5b12;
}

.ns-stock--outofstock,
.ns-soldout {
    margin: 0;
    color: var(--ns-sale);
}

.ns-inline-form {
    margin-top: auto;
}

.ns-button,
button.ns-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--ns-dark);
    border-radius: 999px;
    background: transparent;
    color: var(--ns-dark);
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.ns-button--solid {
    background: var(--ns-dark);
    color: #fffdf7;
}

.ns-button--ghost {
    width: 100%;
    border-color: var(--ns-line);
}

.ns-flash {
    width: min(1180px, calc(100% - 40px));
    margin: 16px auto 0;
    padding: 14px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    border: 1px solid color-mix(in srgb, #2f6b4f 28%, var(--ns-line));
    border-radius: 14px;
    background: color-mix(in srgb, #2f6b4f 8%, var(--ns-card));
}

.ns-flash a {
    color: inherit;
    font-weight: 700;
}

.ns-flash--error {
    border-color: color-mix(in srgb, var(--ns-sale) 35%, var(--ns-line));
    background: color-mix(in srgb, var(--ns-sale) 8%, var(--ns-card));
    color: var(--ns-sale);
}

.ns-product-detail__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: start;
}

.ns-product-detail__media {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: color-mix(in srgb, var(--ns-bg) 80%, #e8e0d2);
    box-shadow: var(--ns-shadow);
}

.ns-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    font-size: 13px;
    color: var(--ns-muted);
}

.ns-breadcrumb a {
    color: inherit;
}

.ns-buy-form,
.ns-fieldset,
.ns-summary,
.ns-bank-box,
.ns-thanks,
.ns-empty-card,
.ns-shipping-bar {
    margin-top: 22px;
    padding: 22px;
    border: 1px solid var(--ns-line);
    border-radius: var(--ns-radius);
    background: var(--ns-card);
    box-shadow: var(--ns-shadow);
}

.ns-empty-card {
    grid-column: 1 / -1;
}

.ns-buy-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.ns-buy-form__actions .ns-button {
    flex: 1;
    min-width: 160px;
}

.ns-field {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}

.ns-field span em {
    color: var(--ns-sale);
    font-style: normal;
}

.ns-field input,
.ns-field select,
.ns-field textarea,
.ns-qty__controls input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--ns-line);
    border-radius: 12px;
    background: #fff;
}

.ns-qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ns-qty__controls {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--ns-line);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.ns-qty__controls input {
    width: 64px;
    min-height: 42px;
    border: 0;
    border-radius: 0;
    text-align: center;
}

.ns-qty__btn {
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.ns-product-points {
    margin: 16px 0 0;
    padding: 0 0 0 18px;
    color: var(--ns-muted);
    line-height: 1.8;
}

.ns-product-detail__content {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--ns-line);
}

.ns-richtext {
    line-height: 1.95;
}

.ns-cart__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.ns-cart__item {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--ns-line);
    border-radius: var(--ns-radius);
    background: var(--ns-card);
}

.ns-cart__thumb {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: color-mix(in srgb, var(--ns-bg) 80%, #e8e0d2);
}

.ns-cart__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.ns-cart__line {
    display: grid;
    justify-items: end;
    align-content: space-between;
    gap: 8px;
    font-weight: 700;
}

.ns-link-button {
    border: 0;
    background: none;
    padding: 0;
    color: var(--ns-accent);
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}

.ns-shipping-bar p {
    margin: 0 0 10px;
}

.ns-shipping-bar__track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ns-bg) 80%, #e8e0d2);
}

.ns-shipping-bar__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--ns-accent);
}

.ns-summary {
    margin-top: 28px;
}

.ns-summary__title {
    margin: 0 0 12px;
    font-size: 18px;
}

.ns-summary dl {
    margin: 0 0 18px;
}

.ns-summary dl > div,
.ns-summary__items li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--ns-line);
}

.ns-summary__items {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.ns-summary__total {
    font-size: 1.15em;
    font-weight: 800;
}

.ns-checkout__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: start;
}

.ns-member-bar {
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid var(--ns-line);
    border-radius: var(--ns-radius);
    background: color-mix(in srgb, var(--ns-accent) 8%, var(--ns-card));
}

.ns-member-bar p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
}

.ns-member-bar a {
    color: var(--ns-accent);
    font-weight: 700;
}

.ns-member-bar__check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 13px;
}

.ns-fieldset {
    margin: 0 0 18px;
}

.ns-fieldset legend {
    padding: 0 6px;
    font-weight: 700;
}

.ns-pay-option {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 10px;
    margin-bottom: 12px;
    align-items: start;
}

.ns-pay-option small {
    display: block;
    margin-top: 4px;
    color: var(--ns-muted);
    line-height: 1.6;
}

.ns-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 18px 0 8px;
    padding: 0;
    list-style: none;
}

.ns-steps__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ns-muted);
    font-size: 13px;
    font-weight: 700;
}

.ns-steps__num {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ns-line) 80%, white);
}

.ns-steps__item.is-current,
.ns-steps__item.is-done {
    color: var(--ns-text);
}

.ns-steps__item.is-current .ns-steps__num,
.ns-steps__item.is-done .ns-steps__num {
    background: var(--ns-dark);
    color: #fffdf7;
}

.ns-footer {
    border-top: 1px solid var(--ns-line);
    padding: 36px 0 48px;
    background: color-mix(in srgb, var(--ns-card) 80%, transparent);
}

.ns-footer__inner {
    display: grid;
    gap: 22px;
}

.ns-footer__brand {
    margin: 0 0 6px;
    font-family: var(--nd-font-family, "Hiragino Mincho ProN", serif);
    font-size: 18px;
    font-weight: 650;
}

.ns-footer__note,
.ns-footer__links,
.ns-footer__cats a {
    margin: 0;
    color: var(--ns-muted);
}

.ns-footer__heading {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.ns-footer__cats ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ns-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.ns-footer__links a,
.ns-footer__cats a {
    color: inherit;
    text-decoration: none;
}

.ns-footer__sns {
    justify-content: flex-start;
    margin-top: 4px;
}

.ns-pagination {
    margin-top: 36px;
}

.ns-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ns-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--ns-line);
    border-radius: 999px;
    color: inherit;
    text-decoration: none;
    background: var(--ns-card);
}

.ns-pagination .page-numbers.current {
    background: var(--ns-dark);
    border-color: var(--ns-dark);
    color: #fffdf7;
}

@media (max-width: 860px) {
    .ns-product-detail__grid,
    .ns-checkout__grid,
    .ns-cart__item,
    .ns-catalog__layout {
        grid-template-columns: 1fr;
    }

    .ns-header__inner {
        grid-template-columns: 1fr auto;
        gap: 12px;
    }

    .ns-search {
        grid-column: 1 / -1;
        order: 3;
        border-radius: 14px;
        flex-wrap: wrap;
    }

    .ns-search__cat {
        max-width: none;
        width: 100%;
        min-height: 42px;
        border-right: 0;
        border-bottom: 1px solid var(--ns-line);
    }

    .ns-nav {
        justify-content: flex-end;
    }

    .ns-toolbar__sort {
        display: none;
    }

    .ns-hero__title,
    .ns-page-head__title,
    .ns-product-detail__title {
        font-size: clamp(26px, 8vw, 34px);
    }
}

@media (min-width: 861px) {
    .ns-filters__summary {
        display: none;
    }

    .ns-filters__panel {
        padding-top: 18px;
    }

    .ns-filters__submit {
        display: none;
    }
}
