/* Public catalog */
.catalog-page {
    --catalog-line: color-mix(in srgb, var(--site-text) 15%, transparent);
    --catalog-muted: color-mix(in srgb, var(--site-text) 62%, transparent);
    --catalog-soft: color-mix(in srgb, var(--site-brand) 7%, var(--site-background));
    --catalog-purchase: #d51f2c;
    --catalog-purchase-hover: #b91824;
    overflow: visible !important;
    background: var(--site-background);
}

.catalog-hero {
    display: grid;
    width: min(calc(100% - (var(--site-gutter) * 2)), var(--site-content));
    min-height: 390px;
    align-items: end;
    padding: clamp(68px, 9vw, 116px) 0 clamp(54px, 7vw, 86px);
    margin: 0 auto;
    border-bottom: 1px solid var(--catalog-line);
    grid-template-columns: minmax(0, 1fr);
}

.catalog-hero-copy {
    min-width: 0;
}

.catalog-eyebrow,
.catalog-heading > div > span,
.catalog-description > header > span {
    display: block;
    margin-bottom: 16px;
    color: var(--site-brand);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.catalog-hero-copy h1 {
    max-width: 820px;
    margin: 0;
    color: var(--site-text);
    font-size: clamp(44px, 6.2vw, 76px);
    font-weight: 720;
    letter-spacing: -0.065em;
    line-height: 1.08;
    word-break: keep-all;
}

.catalog-hero-copy p {
    max-width: 660px;
    margin: 24px 0 0;
    color: var(--catalog-muted);
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.75;
    word-break: keep-all;
}

.portfolio-introduction {
    width: min(calc(100% - (var(--site-gutter) * 2)), var(--site-content));
    padding: clamp(54px, 7vw, 92px) 0;
    margin: 0 auto;
    border-bottom: 1px solid var(--catalog-line);
}

.portfolio-introduction > .markdown-body {
    width: min(100%, 980px);
    margin: 0 auto;
}

.portfolio-introduction > .markdown-body > :first-child {
    margin-top: 0;
}

.portfolio-introduction > .markdown-body > :last-child {
    margin-bottom: 0;
}

.catalog-browser {
    width: min(calc(100% - (var(--site-gutter) * 2)), var(--site-content));
    padding: clamp(54px, 7vw, 88px) 0 clamp(84px, 10vw, 140px);
    margin: 0 auto;
}

.catalog-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}

.catalog-heading h2 {
    margin: 0;
    color: var(--site-text);
    font-size: clamp(28px, 3.3vw, 42px);
    font-weight: 680;
    letter-spacing: -0.05em;
    line-height: 1.25;
    word-break: keep-all;
}

.catalog-heading > p {
    flex: 0 0 auto;
    margin: 0 0 6px;
    color: var(--catalog-muted);
    font-size: 13px;
}

.catalog-heading > p strong {
    color: var(--site-text);
}

.catalog-search {
    display: flex;
    align-items: stretch;
    gap: 8px;
    padding: 28px 0;
    margin-top: 34px;
    border-top: 1px solid var(--catalog-line);
    border-bottom: 1px solid var(--catalog-line);
}

.catalog-search-field {
    position: relative;
    display: block;
    min-width: 240px;
    max-width: 600px;
    flex: 1 1 auto;
}

.catalog-search-field::before {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 18px;
    width: 12px;
    height: 12px;
    border: 1.5px solid var(--catalog-muted);
    border-radius: 50%;
    content: "";
    pointer-events: none;
    transform: translateY(-60%);
}

.catalog-search-field::after {
    position: absolute;
    z-index: 1;
    top: calc(50% + 5px);
    left: 29px;
    width: 6px;
    height: 1.5px;
    background: var(--catalog-muted);
    content: "";
    pointer-events: none;
    transform: rotate(45deg);
}

.catalog-search input {
    width: 100%;
    min-height: 50px;
    padding: 0 18px 0 46px;
    border: 1px solid var(--catalog-line);
    border-radius: 7px;
    outline: 0;
    background: var(--site-surface);
    color: var(--site-text);
    font: inherit;
    font-size: 14px;
}

.catalog-search input::placeholder {
    color: var(--catalog-muted);
}

.catalog-search input:focus {
    border-color: var(--site-brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--site-brand) 16%, transparent);
}

.catalog-search > button,
.catalog-search > a {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 1px solid var(--site-brand);
    border-radius: 7px;
    background: var(--site-brand);
    color: var(--site-on-brand);
    font: inherit;
    font-size: 13px;
    font-weight: 680;
    cursor: pointer;
}

.catalog-search > a {
    border-color: var(--catalog-line);
    background: transparent;
    color: var(--catalog-muted);
}

.catalog-categories {
    display: flex;
    overflow-x: auto;
    gap: 7px;
    padding: 24px 0 2px;
    scrollbar-width: thin;
}

.catalog-categories a {
    display: inline-flex;
    min-height: 38px;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 0 15px;
    border: 1px solid var(--catalog-line);
    border-radius: 999px;
    background: transparent;
    color: var(--catalog-muted);
    font-size: 12px;
    font-weight: 620;
}

.catalog-categories a > span {
    opacity: 0.72;
    font-size: 10px;
}

.catalog-categories a:hover,
.catalog-categories a.is-active {
    border-color: var(--site-text);
    background: var(--site-text);
    color: var(--site-background);
}

.catalog-grid {
    display: grid;
    gap: clamp(34px, 4vw, 58px) clamp(18px, 2.8vw, 34px);
    padding-top: 42px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.catalog-card-media {
    position: relative;
    display: grid;
    overflow: hidden;
    aspect-ratio: 0.82;
    place-items: center;
    border: 1px solid var(--catalog-line);
    border-radius: clamp(6px, var(--site-radius), 14px);
    background: color-mix(in srgb, var(--site-surface) 76%, var(--catalog-soft));
}

.catalog-card-media > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: clamp(18px, 3vw, 38px);
    transition: transform 220ms ease;
}

.catalog-card:hover .catalog-card-media > img {
    transform: scale(1.035);
}

.catalog-image-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background: var(--catalog-soft);
    color: color-mix(in srgb, var(--site-brand) 72%, var(--site-text));
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 680;
}

.catalog-badge {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 720;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.catalog-card-media > .catalog-badge {
    position: absolute;
    top: 13px;
    right: 13px;
}

.catalog-badge.is-soldout {
    background: color-mix(in srgb, var(--site-text) 88%, transparent);
    color: var(--site-background);
}

.catalog-badge.is-on-sale {
    background: var(--catalog-soft);
    color: var(--site-brand);
}

.catalog-card-body {
    padding: 18px 1px 0;
}

.catalog-card-meta {
    overflow: hidden;
    margin: 0 0 7px;
    color: var(--catalog-muted);
    font-size: 11px;
    font-weight: 620;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-card h3 {
    margin: 0;
    color: var(--site-text);
    font-size: clamp(15px, 1.45vw, 18px);
    font-weight: 650;
    letter-spacing: -0.035em;
    line-height: 1.45;
    word-break: keep-all;
}

.catalog-card h3 a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.catalog-card-foot {
    display: flex;
    min-height: 34px;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.catalog-card-foot strong {
    color: var(--site-text);
    font-size: 15px;
    font-weight: 680;
}

.catalog-card-foot strong > span {
    margin-left: 2px;
    font-size: 11px;
    font-weight: 550;
}

.catalog-card-foot > a {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--catalog-line);
    border-radius: 50%;
    color: var(--site-text);
    font-size: 13px;
}

.catalog-card:hover .catalog-card-foot > a {
    border-color: var(--site-brand);
    background: var(--site-brand);
    color: var(--site-on-brand);
}

.catalog-empty {
    display: flex;
    min-height: 370px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 50px 24px;
    margin-top: 42px;
    border: 1px solid var(--catalog-line);
    border-radius: clamp(8px, var(--site-radius), 16px);
    text-align: center;
}

.catalog-empty > span {
    color: var(--catalog-muted);
    font-size: 42px;
    line-height: 1;
}

.catalog-empty h2 {
    margin: 22px 0 0;
    color: var(--site-text);
    font-size: 22px;
    font-weight: 680;
    letter-spacing: -0.04em;
}

.catalog-empty p {
    margin: 10px 0 0;
    color: var(--catalog-muted);
    font-size: 13px;
}

.catalog-empty a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 0 17px;
    margin-top: 24px;
    border-radius: 7px;
    background: var(--site-brand);
    color: var(--site-on-brand);
    font-size: 12px;
    font-weight: 680;
}

.catalog-pagination {
    display: grid;
    align-items: center;
    gap: 20px;
    padding-top: clamp(52px, 7vw, 82px);
    grid-template-columns: 1fr auto 1fr;
}

.catalog-page-direction,
.catalog-page-numbers > a,
.catalog-page-numbers > span {
    display: inline-flex;
    min-width: 38px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    color: var(--catalog-muted);
    font-size: 12px;
    font-weight: 620;
}

.catalog-page-direction {
    gap: 7px;
}

.catalog-page-direction:last-child {
    justify-self: end;
}

.catalog-page-direction.is-disabled {
    opacity: 0.35;
}

.catalog-page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.catalog-page-numbers > a {
    border: 1px solid transparent;
    border-radius: 50%;
}

.catalog-page-numbers > a:hover {
    border-color: var(--catalog-line);
}

.catalog-page-numbers > a.is-active {
    border-color: var(--site-text);
    background: var(--site-text);
    color: var(--site-background);
}

/* Public product detail */
.catalog-breadcrumb {
    display: flex;
    overflow: hidden;
    width: min(calc(100% - (var(--site-gutter) * 2)), var(--site-content));
    align-items: center;
    gap: 10px;
    padding: 27px 0 22px;
    margin: 0 auto;
    border-bottom: 1px solid var(--catalog-line);
    color: var(--catalog-muted);
    font-size: 11px;
    white-space: nowrap;
}

.catalog-breadcrumb a {
    flex: 0 0 auto;
}

.catalog-breadcrumb strong {
    overflow: hidden;
    color: var(--site-text);
    font-weight: 620;
    text-overflow: ellipsis;
}

.catalog-detail {
    display: grid;
    width: min(calc(100% - (var(--site-gutter) * 2)), var(--site-content));
    gap: clamp(44px, 7vw, 104px);
    padding: clamp(46px, 6.5vw, 84px) 0 clamp(72px, 9vw, 120px);
    margin: 0 auto;
    grid-template-columns: minmax(0, 1.03fr) minmax(340px, 0.82fr);
}

.catalog-detail-gallery {
    min-width: 0;
}

.catalog-detail-primary {
    position: relative;
    display: grid;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1;
    place-items: center;
    margin: 0;
    border: 1px solid var(--catalog-line);
    border-radius: clamp(8px, var(--site-radius), 16px);
    background: color-mix(in srgb, var(--site-surface) 76%, var(--catalog-soft));
}

.catalog-detail-primary > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: clamp(12px, 3vw, 36px);
}

.catalog-detail-primary > .catalog-badge {
    position: absolute;
    top: 18px;
    right: 18px;
}

.catalog-detail-summary {
    min-width: 0;
    padding-top: clamp(6px, 2vw, 28px);
}

.catalog-detail-summary h1 {
    margin: 0;
    color: var(--site-text);
    font-size: clamp(34px, 4.4vw, 58px);
    font-weight: 710;
    letter-spacing: -0.06em;
    line-height: 1.15;
    word-break: keep-all;
}

.catalog-detail-category {
    margin: 15px 0 0;
    color: var(--catalog-muted);
    font-size: 14px;
}

.catalog-detail-state {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 24px 0;
    margin-top: 26px;
    border-top: 1px solid var(--catalog-line);
    border-bottom: 1px solid var(--catalog-line);
}

.catalog-detail-state > small {
    color: var(--catalog-muted);
    font-size: 10px;
}

.catalog-detail-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 26px 0 0;
    color: var(--site-text);
}

.catalog-detail-price strong {
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 700;
    letter-spacing: -0.045em;
}

.catalog-detail-price span {
    font-size: 14px;
}

.catalog-detail-facts {
    padding: 13px 0;
    margin: 28px 0 0;
    border-top: 1px solid var(--catalog-line);
    border-bottom: 1px solid var(--catalog-line);
}

.catalog-detail-facts > div {
    display: grid;
    gap: 20px;
    padding: 10px 2px;
    grid-template-columns: 90px 1fr;
}

.catalog-detail-facts dt {
    color: var(--catalog-muted);
    font-size: 11px;
}

.catalog-detail-facts dd {
    margin: 0;
    color: var(--site-text);
    font-size: 12px;
    font-weight: 590;
    text-align: right;
}

.catalog-detail-actions {
    display: grid;
    gap: 9px;
    margin-top: 30px;
}

.catalog-retailer-actions {
    display: grid;
    gap: 8px;
}

.catalog-retailer-action {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.012em;
    line-height: 1.2;
    transition: filter 160ms ease, transform 160ms ease;
}

body.public-site .catalog-retailer-action,
body.public-site .catalog-retailer-action:visited {
    color: #fff;
}

body.public-site .catalog-retailer-action:hover,
body.public-site .catalog-retailer-action:focus-visible {
    color: #fff;
    filter: brightness(0.92);
    transform: translateY(-1px);
}

.catalog-retailer-action.is-gs25 {
    background: #0072ce;
}

.catalog-retailer-action.is-cu {
    background: #652f8f;
}

.catalog-retailer-action.is-emart24 {
    background: #ffc72c;
}

.catalog-retailer-action.is-dailyshot {
    background: #fe5000;
}

.catalog-retailer-action.is-kakao_gift {
    background: #fee500;
}

.catalog-retailer-action.is-other {
    background: #262b28;
}

body.public-site .catalog-retailer-action.is-emart24,
body.public-site .catalog-retailer-action.is-emart24:visited,
body.public-site .catalog-retailer-action.is-kakao_gift,
body.public-site .catalog-retailer-action.is-kakao_gift:visited,
body.public-site .catalog-retailer-action.is-emart24:hover,
body.public-site .catalog-retailer-action.is-emart24:focus-visible,
body.public-site .catalog-retailer-action.is-kakao_gift:hover,
body.public-site .catalog-retailer-action.is-kakao_gift:focus-visible {
    color: #171717;
}

.catalog-retailer-action > .catalog-action-icon {
    color: currentColor;
}

.catalog-primary-action,
.catalog-secondary-action {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 20px;
    border: 1px solid var(--catalog-purchase);
    border-radius: 7px;
    background: var(--catalog-purchase);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.012em;
    line-height: 1.2;
    box-shadow: 0 8px 22px rgb(213 31 44 / 16%);
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease,
    transform 160ms ease;
}

body.public-site .catalog-primary-action,
body.public-site .catalog-primary-action:visited {
    color: #fff;
}

body.public-site .catalog-primary-action:hover,
body.public-site .catalog-primary-action:focus-visible {
    border-color: var(--catalog-purchase-hover);
    background: var(--catalog-purchase-hover);
    color: #fff;
    box-shadow: 0 10px 26px rgb(185 24 36 / 22%);
    transform: translateY(-1px);
}

body.public-site .catalog-primary-action > .catalog-action-icon {
    color: currentColor;
}

.catalog-secondary-action,
.catalog-share-action {
    border-color: var(--catalog-line);
    background: transparent;
    color: var(--site-text);
    box-shadow: none;
}

.catalog-secondary-action:hover,
.catalog-share-action:hover {
    border-color: color-mix(in srgb, var(--site-text) 34%, transparent);
    background: color-mix(in srgb, var(--site-text) 4%, transparent);
    color: var(--site-text);
    box-shadow: none;
}

.catalog-share-action {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    border: 1px solid var(--catalog-line);
    border-radius: 7px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.012em;
    line-height: 1.2;
    cursor: pointer;
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.catalog-share-action-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    color: currentColor;
}

.catalog-share-action svg,
.catalog-share-modal svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.catalog-detail-actions .catalog-primary-action,
.catalog-detail-actions .catalog-retailer-action,
.catalog-detail-actions .catalog-share-action,
.catalog-detail-actions .catalog-secondary-action {
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 20px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    font-style: normal;
    letter-spacing: -0.012em;
    line-height: 1;
    text-align: center;
    text-decoration: none;
}

.catalog-detail-actions .catalog-action-label {
    display: inline-block;
    line-height: 1;
}

.catalog-detail-actions .catalog-action-icon {
    display: inline-flex;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    align-items: center;
    justify-content: center;
    font-size: 0;
    line-height: 1;
    transform: none;
}

.catalog-detail-actions .catalog-action-icon svg {
    display: block;
    width: 14px;
    height: 14px;
    fill: currentColor;
}

body.catalog-share-open {
    overflow: hidden;
    overscroll-behavior: none;
}

.catalog-share-modal[hidden],
.catalog-share-modal [hidden] {
    display: none !important;
}

.catalog-share-modal,
.catalog-share-modal * {
    box-sizing: border-box;
}

.catalog-share-modal {
    position: fixed;
    z-index: 4000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--site-text);
}

.catalog-share-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgb(15 18 17 / 58%);
    opacity: 0;
    cursor: default;
    transition: opacity 180ms ease;
    backdrop-filter: blur(4px);
}

.catalog-share-modal__panel {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 25px 24px 19px;
    border: 1px solid color-mix(in srgb, var(--site-text) 10%, transparent);
    border-radius: 22px;
    background: var(--site-surface);
    box-shadow: 0 28px 80px rgb(10 16 13 / 28%);
    outline: none;
    opacity: 0;
    transform: translateY(14px) scale(0.985);
    transition:
        opacity 180ms ease,
        transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
    -webkit-overflow-scrolling: touch;
}

.catalog-share-modal.is-open .catalog-share-modal__backdrop,
.catalog-share-modal.is-open .catalog-share-modal__panel {
    opacity: 1;
}

.catalog-share-modal.is-open .catalog-share-modal__panel {
    transform: translateY(0) scale(1);
}

.catalog-share-modal__handle {
    display: none;
}

.catalog-share-modal button {
    min-width: 0;
    margin: 0;
    border: 0;
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.catalog-share-modal button:focus-visible,
.catalog-share-action:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--site-brand) 28%, transparent);
    outline-offset: 3px;
}

.catalog-share-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.catalog-share-modal__header > div {
    min-width: 0;
}

.catalog-share-modal__header > div > span {
    display: block;
    margin-bottom: 5px;
    color: var(--site-brand);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.catalog-share-modal__header h2 {
    margin: 0;
    color: var(--site-text);
    font-size: 23px;
    font-weight: 730;
    letter-spacing: -0.045em;
    line-height: 1.25;
}

.catalog-share-modal__header p {
    margin: 5px 0 0;
    color: color-mix(in srgb, var(--site-text) 60%, transparent);
    font-size: 12px;
    line-height: 1.5;
}

.catalog-share-modal__close {
    display: inline-grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    margin: -7px -7px 0 0 !important;
    border-radius: 50%;
    background: transparent;
    color: color-mix(in srgb, var(--site-text) 70%, transparent);
}

.catalog-share-modal__close svg {
    width: 17px;
    height: 17px;
}

.catalog-share-modal__close:hover {
    background: color-mix(in srgb, var(--site-text) 6%, transparent);
}

.catalog-share-modal__product {
    display: grid;
    min-height: 96px;
    align-items: center;
    gap: 14px;
    padding: 11px;
    margin-bottom: 15px;
    border: 1px solid color-mix(in srgb, var(--site-text) 9%, transparent);
    border-radius: 16px;
    background:
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--site-brand) 5%, var(--site-surface)),
            color-mix(in srgb, var(--site-text) 2%, var(--site-surface))
        );
    grid-template-columns: 72px minmax(0, 1fr);
}

.catalog-share-modal__product > img,
.catalog-share-modal__image-placeholder {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    padding: 4px;
    border: 1px solid color-mix(in srgb, var(--site-text) 8%, transparent);
    border-radius: 12px;
    background: var(--site-background);
    color: var(--site-brand);
    font-size: 24px;
    font-weight: 760;
    object-fit: contain;
}

.catalog-share-modal__product > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}

.catalog-share-modal__product > div > span {
    margin-bottom: 4px;
    color: var(--site-brand);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.catalog-share-modal__product strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--site-text);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.catalog-share-modal__product b {
    margin-top: 6px;
    color: var(--site-text);
    font-size: 15px;
    font-weight: 780;
}

.catalog-share-modal__kakao {
    display: grid;
    width: 100%;
    min-height: 54px;
    align-items: center;
    gap: 11px;
    padding: 10px 15px;
    border-radius: 14px;
    background: #fee500;
    color: #191600;
    font-size: 14px !important;
    font-weight: 750 !important;
    letter-spacing: -0.025em;
    text-align: left;
    grid-template-columns: 30px minmax(0, 1fr) 16px;
}

.catalog-share-modal__kakao:hover {
    background: #f4dc00;
}

.catalog-share-modal__chevron {
    display: inline-flex;
    width: 16px;
    height: 16px;
    align-items: center;
    justify-content: center;
    justify-self: end;
}

.catalog-share-modal__kakao-mark {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    color: #191600;
}

.catalog-share-modal__section-label {
    margin: 19px 0 11px;
    color: color-mix(in srgb, var(--site-text) 58%, transparent);
    font-size: 11px;
    font-weight: 670;
}

.catalog-share-modal__platforms {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.catalog-share-modal__platform {
    display: flex;
    min-height: 79px;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    gap: 7px;
    padding: 5px 0 3px;
    border-radius: 12px;
    background: transparent;
    color: var(--site-text);
}

.catalog-share-modal__platform:hover {
    background: color-mix(in srgb, var(--site-text) 4%, transparent);
}

.catalog-share-modal__platform > span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 5px 15px rgb(15 23 42 / 12%);
}

.catalog-share-modal__platform > span svg {
    width: 24px;
    height: 24px;
}

.catalog-share-modal__platform > b {
    font-size: 10px;
    font-weight: 630;
    letter-spacing: -0.01em;
}

.catalog-share-modal__platform.is-instagram > span {
    background:
        radial-gradient(circle at 29% 105%, #ffd600 0 25%, #ff7a00 42%, #ff0169 62%, #d300c5 82%, #7638fa 100%);
}

.catalog-share-modal__platform.is-facebook > span {
    background: #1877f2;
}

.catalog-share-modal__platform.is-threads > span,
.catalog-share-modal__platform.is-x > span {
    background: #111;
}

.catalog-share-modal__platform.is-facebook > span svg {
    width: 26px;
    height: 26px;
}

.catalog-share-modal__native {
    display: flex;
    width: 100%;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    margin-top: 8px !important;
    border: 1px solid color-mix(in srgb, var(--site-text) 12%, transparent) !important;
    border-radius: 12px;
    background: var(--site-surface);
    color: var(--site-text);
    font-size: 12px !important;
    font-weight: 680 !important;
}

.catalog-share-modal__native:hover {
    background: color-mix(in srgb, var(--site-text) 4%, var(--site-surface));
}

.catalog-share-modal__native > span {
    display: inline-flex;
    width: 16px;
    height: 16px;
}

.catalog-share-modal__link {
    display: flex;
    min-height: 59px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 9px 8px 13px;
    margin-top: 14px;
    border: 1px solid color-mix(in srgb, var(--site-text) 11%, transparent);
    border-radius: 14px;
    background: color-mix(in srgb, var(--site-text) 4%, var(--site-surface));
}

.catalog-share-modal__link > div {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
}

.catalog-share-modal__link > div > span {
    display: inline-flex;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    color: color-mix(in srgb, var(--site-text) 68%, transparent);
}

.catalog-share-modal__link p {
    display: flex;
    min-width: 0;
    flex-direction: column;
    margin: 0;
}

.catalog-share-modal__link p strong {
    overflow: hidden;
    color: var(--site-text);
    font-size: 11px;
    font-weight: 720;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-share-modal__link p small {
    margin-top: 1px;
    color: color-mix(in srgb, var(--site-text) 52%, transparent);
    font-size: 9px;
    line-height: 1.35;
}

.catalog-share-modal__link > button {
    display: inline-flex;
    flex: 0 0 auto;
    min-width: 72px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--site-text);
    color: var(--site-background);
    font-size: 11px;
    font-weight: 700;
}

.catalog-share-modal__link > button.is-copied {
    background: #087f5b;
    color: #fff;
}

.catalog-share-modal__copy-icons {
    display: inline-flex;
    width: 14px;
    height: 14px;
    align-items: center;
    justify-content: center;
}

.catalog-share-modal__copy-icons .is-check {
    display: none;
}

.catalog-share-modal__link > button.is-copied .is-copy {
    display: none;
}

.catalog-share-modal__link > button.is-copied .is-check {
    display: block;
}

.catalog-share-modal__status {
    min-height: 18px;
    margin: 8px 2px 0;
    color: color-mix(in srgb, var(--site-text) 58%, transparent);
    font-size: 10px;
    font-weight: 580;
    line-height: 1.45;
    text-align: center;
}

.catalog-share-modal__status[data-status="success"] {
    color: #087f5b;
}

.catalog-share-modal__status[data-status="error"] {
    color: #d6333f;
}

@media (max-width: 640px) {
    .catalog-share-modal {
        align-items: flex-end;
        padding: 0;
    }

    .catalog-share-modal__panel {
        width: 100%;
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        padding: 12px 20px calc(18px + env(safe-area-inset-bottom));
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 24px 24px 0 0;
        opacity: 0;
        transform: translateY(32px);
    }

    .catalog-share-modal.is-open .catalog-share-modal__panel {
        opacity: 1;
        transform: translateY(var(--catalog-share-drag-y, 0));
    }

    .catalog-share-modal__handle {
        display: flex;
        width: calc(100% + 40px);
        height: 42px;
        align-items: center;
        justify-content: center;
        margin: -12px -20px 1px;
        cursor: grab;
        touch-action: none;
    }

    .catalog-share-modal__handle::before {
        width: 42px;
        height: 4px;
        border-radius: 99px;
        background: color-mix(in srgb, var(--site-text) 18%, transparent);
        content: "";
    }

    .catalog-share-modal.is-dragging .catalog-share-modal__backdrop,
    .catalog-share-modal.is-dragging .catalog-share-modal__panel {
        transition: none;
    }

    .catalog-share-modal.is-drag-closing .catalog-share-modal__backdrop {
        opacity: 0;
    }

    .catalog-share-modal.is-drag-closing .catalog-share-modal__panel {
        opacity: 1;
        transform: translateY(105%);
    }
}

@media (max-width: 359px) {
    .catalog-share-modal__panel {
        padding-right: 16px;
        padding-left: 16px;
    }

    .catalog-share-modal__platforms {
        gap: 2px;
    }

    .catalog-share-modal__platform > span {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .catalog-share-action,
    .catalog-share-modal__backdrop,
    .catalog-share-modal__panel {
        transition: none;
    }
}

.catalog-source-note {
    margin: 14px 0 0;
    color: var(--catalog-muted);
    font-size: 10px;
    line-height: 1.55;
}

.catalog-description {
    display: grid;
    width: min(calc(100% - (var(--site-gutter) * 2)), var(--site-content));
    gap: clamp(36px, 6vw, 90px);
    padding: clamp(58px, 8vw, 98px) 0 clamp(84px, 10vw, 140px);
    margin: 0 auto;
    border-top: 1px solid var(--catalog-line);
    grid-template-columns: minmax(190px, 0.35fr) minmax(0, 1fr);
}

.catalog-description h2 {
    margin: 0;
    color: var(--site-text);
    font-size: clamp(25px, 3vw, 38px);
    font-weight: 680;
    letter-spacing: -0.045em;
}

.catalog-description-copy {
    min-width: 0;
    color: var(--site-text);
    font-size: 15px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.catalog-description-copy > :first-child {
    margin-top: 0;
}

.catalog-description-copy > :last-child {
    margin-bottom: 0;
}

.catalog-description-copy p {
    margin: 0 0 1.35em;
}

.catalog-description-copy h2,
.catalog-description-copy h3,
.catalog-description-copy h4,
.catalog-description-copy h5 {
    margin: 2.2em 0 0.75em;
    color: var(--site-text);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.35;
    word-break: keep-all;
}

.catalog-description-copy h2 {
    font-size: clamp(24px, 3vw, 34px);
}

.catalog-description-copy h3 {
    font-size: clamp(21px, 2.4vw, 28px);
}

.catalog-description-copy h4,
.catalog-description-copy h5 {
    font-size: clamp(18px, 2vw, 23px);
}

.catalog-description-copy img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: clamp(24px, 4vw, 44px) auto;
    border-radius: clamp(7px, var(--site-radius), 14px);
    object-fit: contain;
}

.catalog-description-copy figure {
    margin: clamp(28px, 5vw, 52px) 0;
}

.catalog-description-copy figure img {
    margin: 0 auto;
}

.catalog-description-copy figcaption {
    margin-top: 10px;
    color: var(--catalog-muted);
    font-size: 12px;
    text-align: center;
}

.catalog-description-copy blockquote {
    padding: 4px 0 4px 22px;
    margin: 28px 0;
    border-left: 3px solid var(--site-brand);
    color: var(--catalog-muted);
}

.catalog-description-copy table {
    width: 100%;
    margin: 28px 0;
    border-collapse: collapse;
    font-size: 13px;
}

.catalog-description-copy th,
.catalog-description-copy td {
    padding: 11px 13px;
    border: 1px solid var(--catalog-line);
    text-align: left;
    vertical-align: top;
}

.catalog-description-copy th {
    background: var(--catalog-soft);
    font-weight: 680;
}

.catalog-description-copy .kihya-detail-heading {
    padding-bottom: 14px;
    margin-top: clamp(44px, 7vw, 78px);
    border-bottom: 1px solid var(--catalog-line);
    font-size: clamp(22px, 2.8vw, 32px);
}

.catalog-description-copy .kihya-tasting-grid {
    display: grid;
    padding: 0;
    margin: 20px 0 44px;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    list-style: none;
}

.catalog-description-copy .kihya-tasting-note {
    --taste-tone: var(--site-brand);
    display: flex;
    min-height: 148px;
    flex-direction: column;
    gap: 14px;
    padding: 24px 22px 22px;
    border: 1px solid color-mix(in srgb, var(--taste-tone) 14%, var(--catalog-line));
    border-radius: clamp(5px, var(--site-radius), 10px);
    background: color-mix(in srgb, var(--taste-tone) 3%, var(--site-surface));
}

.catalog-description-copy .kihya-tasting-note.is-aroma {
    --taste-tone: #b8434b;
}

.catalog-description-copy .kihya-tasting-note.is-taste {
    --taste-tone: #58698e;
}

.catalog-description-copy .kihya-tasting-note.is-finish {
    --taste-tone: #3f3b36;
}

.catalog-description-copy .kihya-tasting-note.is-sweetness {
    --taste-tone: #b8434b;
}

.catalog-description-copy .kihya-tasting-note.is-acidity {
    --taste-tone: #58698e;
}

.catalog-description-copy .kihya-tasting-note.is-body {
    --taste-tone: #3d6b5f;
}

.catalog-description-copy .kihya-tasting-note.is-metric {
    display: grid;
    min-height: 0;
    align-items: center;
    gap: 22px;
    padding: 18px 22px;
    grid-column: 1 / -1;
    grid-template-columns: minmax(96px, 0.22fr) 74px minmax(240px, 1fr);
}

.catalog-description-copy .kihya-tasting-note strong {
    color: color-mix(in srgb, var(--taste-tone) 76%, var(--site-text));
    font-size: 12px;
    font-weight: 780;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.catalog-description-copy
    .kihya-tasting-note:not(.is-metric)
    > strong {
    align-self: flex-start;
    padding: 5px 9px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--taste-tone) 10%, transparent);
}

.catalog-description-copy .kihya-tasting-note span {
    color: var(--catalog-muted);
    font-size: 14px;
    line-height: 1.7;
}

.catalog-description-copy .kihya-tasting-note .kihya-tasting-value {
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: var(--site-text);
    line-height: 1;
}

.catalog-description-copy .kihya-tasting-value b {
    font-size: clamp(26px, 2.6vw, 32px);
    font-weight: 720;
    letter-spacing: -0.055em;
}

.catalog-description-copy .kihya-tasting-value small {
    color: var(--catalog-muted);
    font-size: 11px;
    font-weight: 620;
}

.catalog-description-copy .kihya-tasting-meter {
    display: grid;
    width: 100%;
    gap: 5px;
    margin-top: auto;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.catalog-description-copy .kihya-tasting-note.is-metric .kihya-tasting-meter {
    margin-top: 0;
}

.catalog-description-copy .kihya-tasting-meter > i {
    display: block;
    height: 7px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--taste-tone) 14%, var(--site-surface));
}

.catalog-description-copy .kihya-tasting-meter > i.is-active {
    background: var(--taste-tone);
}

.catalog-description-copy .kihya-tasting-meter > i.is-partial {
    background: linear-gradient(
        90deg,
        var(--taste-tone) 50%,
        color-mix(in srgb, var(--taste-tone) 14%, var(--site-surface)) 50%
    );
}

.catalog-description-copy .kihya-information-grid {
    display: grid;
    padding: 0;
    margin: 18px 0 44px;
    border-top: 1px solid var(--catalog-line);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
}

.catalog-description-copy .kihya-information-item {
    display: grid;
    gap: 14px;
    padding: 16px 4px;
    border-bottom: 1px solid var(--catalog-line);
    grid-template-columns: 96px minmax(0, 1fr);
}

.catalog-description-copy .kihya-information-item:nth-child(odd) {
    padding-right: 24px;
}

.catalog-description-copy .kihya-information-item:nth-child(even) {
    padding-left: 24px;
}

.catalog-description-copy .kihya-information-item:last-child:nth-child(odd) {
    padding-right: 4px;
    grid-column: 1 / -1;
    grid-template-columns: 96px minmax(0, 1fr);
}

.catalog-description-copy .kihya-information-item strong {
    color: var(--catalog-muted);
    font-size: 12px;
    font-weight: 580;
}

.catalog-description-copy .kihya-information-item span {
    color: var(--site-text);
    font-size: 13px;
    font-weight: 630;
}

.catalog-description-copy .kihya-prose-section {
    --editorial-accent: var(--site-brand);
    --editorial-background:
        color-mix(in srgb, var(--site-brand) 6%, var(--site-surface));
    position: relative;
    isolation: isolate;
    padding: clamp(26px, 4vw, 42px);
    margin: clamp(48px, 7vw, 78px) 0;
    border: 1px solid color-mix(in srgb, var(--editorial-accent) 14%, var(--catalog-line));
    border-radius: clamp(16px, calc(var(--site-radius) + 7px), 22px);
    background:
        radial-gradient(
            circle at 92% 10%,
            color-mix(in srgb, var(--editorial-accent) 9%, transparent),
            transparent 34%
        ),
        var(--editorial-background);
    box-shadow:
        0 20px 55px color-mix(in srgb, var(--site-text) 8%, transparent),
        0 2px 8px color-mix(in srgb, var(--site-text) 4%, transparent);
}

.catalog-description-copy .kihya-prose-section--comment::after,
.catalog-description-copy .kihya-prose-section--brand::after {
    position: absolute;
    bottom: -11px;
    width: 20px;
    height: 20px;
    border-right: 1px solid color-mix(in srgb, var(--editorial-accent) 18%, var(--catalog-line));
    border-bottom: 1px solid color-mix(in srgb, var(--editorial-accent) 18%, var(--catalog-line));
    background: var(--editorial-background);
    content: "";
    transform: rotate(45deg);
}

.catalog-description-copy .kihya-prose-section--comment::after {
    left: clamp(36px, 7vw, 68px);
}

.catalog-description-copy .kihya-prose-section--brand {
    --editorial-accent:
        color-mix(in srgb, var(--site-accent) 60%, var(--site-brand));
    --editorial-background:
        color-mix(in srgb, var(--site-accent) 7%, var(--site-surface));
}

.catalog-description-copy .kihya-prose-section--brand::after {
    right: clamp(36px, 7vw, 68px);
}

.catalog-description-copy .kihya-prose-section > .kihya-detail-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 0;
    margin: 0 0 22px;
    border-bottom: 0;
    font-size: clamp(23px, 2.7vw, 31px);
}

.catalog-description-copy
    .kihya-prose-section
    > .kihya-detail-heading--comment::before,
.catalog-description-copy
    .kihya-prose-section
    > .kihya-detail-heading--brand::before {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--editorial-accent) 14%, var(--site-surface));
    color: color-mix(in srgb, var(--editorial-accent) 80%, var(--site-text));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--editorial-accent) 12%, transparent);
}

.catalog-description-copy
    .kihya-prose-section
    > .kihya-detail-heading--comment::before {
    padding-top: 4px;
    content: "“";
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    line-height: 1;
}

.catalog-description-copy
    .kihya-prose-section
    > .kihya-detail-heading--brand::before {
    content: "✦";
    font-size: 14px;
}

.catalog-description-copy .kihya-prose-section p {
    color: color-mix(in srgb, var(--site-text) 84%, var(--catalog-muted));
    line-height: 1.95;
}

.catalog-description-copy .kihya-prose-section--comment
    > .kihya-detail-heading
    + p {
    color: var(--site-text);
    font-size: clamp(16px, 2vw, 19px);
    font-weight: 650;
    letter-spacing: -0.025em;
}

.catalog-description-copy .kihya-prose-section h3 {
    display: flex;
    align-items: center;
    gap: 11px;
    padding-left: 0;
    margin: 34px 0 16px;
    color: color-mix(in srgb, var(--editorial-accent) 70%, var(--site-text));
    font-size: clamp(18px, 2.2vw, 23px);
    font-weight: 730;
    letter-spacing: -0.035em;
}

.catalog-description-copy .kihya-prose-section h3::before {
    display: block;
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--editorial-accent);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--editorial-accent) 10%, transparent);
    content: "";
}

.catalog-description-copy .kihya-prose-section p strong,
.catalog-description-copy .kihya-prose-section li strong {
    padding: 0.08em 0.32em 0.12em;
    border-radius: 0.35em;
    background: color-mix(in srgb, var(--editorial-accent) 11%, transparent);
    color: color-mix(in srgb, var(--editorial-accent) 74%, var(--site-text));
    box-decoration-break: clone;
    font-weight: 760;
    -webkit-box-decoration-break: clone;
}

.catalog-description-copy .kihya-prose-section ul,
.catalog-description-copy .kihya-prose-section ol {
    padding-left: 1.35em;
    margin: 14px 0 28px;
}

.catalog-description-copy .kihya-prose-section li {
    padding-left: 0.3em;
    color: color-mix(in srgb, var(--site-text) 84%, var(--catalog-muted));
}

.catalog-description-copy .kihya-prose-section li + li {
    margin-top: 9px;
}

.catalog-description-copy .kihya-prose-section li::marker {
    color: var(--editorial-accent);
}

/* Admin catalog */
.admin-product-head-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.admin-product-head-actions form {
    margin: 0;
}

.admin-product-page-head > form {
    flex: 0 0 auto;
}

.admin-product-page-head button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.admin-product-sync {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 17px 19px;
    margin-bottom: 12px;
    border: 1px solid #dce2ea;
    border-radius: 10px;
    background: #fff;
}

.admin-product-sync-mark {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #eef1f7;
    color: var(--service-sub-dark);
    font-size: 14px;
    font-weight: 800;
}

.admin-product-sync-pending .admin-product-sync-mark {
    background: #fff7e7;
    color: #8a5a00;
}

.admin-product-sync-expired .admin-product-sync-mark {
    background: #fff1f2;
    color: var(--service-brand-text);
}

.admin-product-sync > div:nth-child(2) {
    min-width: 0;
    flex: 1 1 auto;
}

.admin-product-sync strong {
    display: block;
    color: var(--service-ink);
    font-size: 13px;
    font-weight: 680;
}

.admin-product-sync p {
    margin: 4px 0 0;
    color: var(--service-muted);
    font-size: 11px;
    line-height: 1.55;
}

.admin-product-readonly {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 17px;
    margin-bottom: 24px;
    border: 1px solid #e2e6ed;
    border-radius: 9px;
    background: #f7f8fb;
}

.admin-product-readonly > span {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--service-sub);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.admin-product-readonly p {
    margin: 0;
    color: var(--service-muted);
    font-size: 12px;
    line-height: 1.65;
}

.admin-product-readonly strong {
    color: var(--service-ink);
}

.admin-product-panel {
    overflow: hidden;
    border: 1px solid var(--service-line);
    border-radius: 12px;
    background: #fff;
}

.admin-product-panel-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 27px 21px;
    border-bottom: 1px solid var(--service-line);
}

.admin-product-panel-head span {
    display: block;
    margin-bottom: 5px;
    color: var(--service-brand-text);
    font-size: 10px;
    font-weight: 750;
}

.admin-product-panel-head h2 {
    margin: 0;
    color: var(--service-ink);
    font-size: 20px;
    font-weight: 680;
    letter-spacing: -0.035em;
}

.admin-product-panel-head h2 > b {
    margin-left: 5px;
    color: var(--service-muted);
    font-size: 13px;
}

.admin-product-filters {
    display: grid;
    align-items: end;
    gap: 10px;
    padding: 20px 27px;
    border-bottom: 1px solid var(--service-line);
    background: #fafbfc;
    grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.42fr) minmax(140px, 0.35fr) auto auto;
}

.admin-product-filters label {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
}

.admin-product-filters label > span {
    color: var(--service-muted);
    font-size: 10px;
    font-weight: 650;
}

.admin-product-filters input,
.admin-product-filters select {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #dce1e7;
    border-radius: 7px;
    outline: 0;
    background: #fff;
    color: var(--service-ink);
    font: inherit;
    font-size: 12px;
}

.admin-product-filters input:focus,
.admin-product-filters select:focus {
    border-color: var(--service-brand);
    box-shadow: 0 0 0 3px rgba(247, 50, 63, 0.12);
}

.admin-product-table-wrap {
    overflow-x: auto;
}

.admin-product-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.admin-product-table th {
    padding: 12px 15px;
    border-bottom: 1px solid var(--service-line);
    background: #fff;
    color: var(--service-muted);
    font-size: 10px;
    font-weight: 680;
    text-align: left;
}

.admin-product-table th:first-child,
.admin-product-table td:first-child {
    width: 29%;
    padding-left: 27px;
}

.admin-product-table th:nth-child(2),
.admin-product-table td:nth-child(2) {
    width: 11%;
}

.admin-product-table th:nth-child(3),
.admin-product-table td:nth-child(3) {
    width: 12%;
}

.admin-product-table th:nth-child(4),
.admin-product-table td:nth-child(4) {
    width: 9%;
}

.admin-product-table th:nth-child(5),
.admin-product-table td:nth-child(5) {
    width: 17%;
}

.admin-product-table th:last-child,
.admin-product-table td:last-child {
    width: 22%;
    padding-right: 27px;
    text-align: right;
}

.admin-product-table td {
    padding: 15px;
    border-bottom: 1px solid var(--service-line);
    color: var(--service-copy);
    font-size: 11px;
    vertical-align: middle;
}

.admin-product-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-product-table tbody tr:hover {
    background: #fcfcfd;
}

.admin-product-identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
}

.admin-product-thumb {
    display: grid;
    overflow: hidden;
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--service-line);
    border-radius: 7px;
    background: #f8f9fa;
}

.admin-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.admin-product-thumb i {
    color: var(--service-sub);
    font-size: 17px;
    font-style: normal;
    font-weight: 700;
}

.admin-product-identity > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.admin-product-identity small {
    overflow: hidden;
    margin-bottom: 4px;
    color: var(--service-muted);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-product-identity .admin-product-source {
    width: fit-content;
    padding: 2px 6px;
    border-radius: 4px;
    background: #eef1f7;
    color: var(--service-sub-dark);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.admin-product-identity .admin-product-source.is-manual {
    background: #edf7f1;
    color: #216a47;
}

.admin-product-identity strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--service-ink);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.admin-product-table code {
    color: var(--service-sub-dark);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
}

.admin-product-badge {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border-radius: 999px;
    background: #eef1f7;
    color: var(--service-sub-dark);
    font-size: 9px;
    font-weight: 750;
    white-space: nowrap;
}

.admin-product-badge.is-soldout {
    background: #f0f1f3;
    color: #525861;
}

.admin-product-badge.is-hidden {
    background: #f1f3f8;
    color: var(--service-sub-dark);
}

.admin-product-badge.is-stopped {
    background: #fff1f2;
    color: var(--service-brand-text);
}

.admin-product-channel-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.admin-product-channel,
.admin-product-channel-empty {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    padding: 0 7px;
    border-radius: 5px;
    font-size: 8px;
    font-weight: 750;
    white-space: nowrap;
}

.admin-product-channel-empty {
    padding: 0;
    color: #9aa1aa;
    font-weight: 600;
}

.admin-product-channel.is-gs25 {
    background: #e6f3ff;
    color: #005da8;
}

.admin-product-channel.is-cu {
    background: #f1eaf7;
    color: #5b287f;
}

.admin-product-channel.is-emart24 {
    background: #fff4c8;
    color: #6f5100;
}

.admin-product-channel.is-dailyshot {
    background: #ffebe3;
    color: #b33900;
}

.admin-product-channel.is-kakao_gift {
    background: #fff9bf;
    color: #514900;
}

.admin-product-channel.is-other {
    background: #edf0ee;
    color: #454d49;
}

.admin-product-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-product-actions a,
.admin-product-actions button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 10px;
    border: 1px solid var(--service-line);
    border-radius: 6px;
    background: #fff;
    color: var(--service-copy);
    cursor: pointer;
    font-family: inherit;
    font-size: 10px;
    font-weight: 650;
    white-space: nowrap;
}

.admin-product-actions a:hover,
.admin-product-actions button:hover {
    border-color: #cbd1d8;
    color: var(--service-ink);
}

.admin-product-actions a.is-primary {
    border-color: var(--service-sub-dark);
    background: var(--service-sub-dark);
    color: #fff;
}

body.has-purchase-links-open {
    overflow: hidden;
}

/* Manual product editor */
.manual-product-head .back-link {
    display: block;
    width: fit-content;
    margin-bottom: 18px;
    color: var(--admin-muted);
    font-size: 10px;
    font-weight: 700;
}

.manual-product-head-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.manual-product-form {
    margin-bottom: 22px;
}

.manual-product-image-field {
    grid-template-columns: 180px minmax(0, 1fr);
}

.manual-product-image-field .image-upload-preview {
    width: 180px;
    height: 220px;
}

.manual-product-image-field .image-upload-preview > span {
    color: var(--admin-muted);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.12em;
}

.manual-product-remove-image {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    color: var(--admin-muted);
    font-size: 9px;
    cursor: pointer;
}

.manual-product-remove-image input {
    accent-color: var(--admin-brand);
}

.manual-product-image-alt {
    margin-top: 20px;
}

.product-image-upload-copy {
    min-width: 0;
}

.product-image-upload-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.product-image-upload-actions [hidden] {
    display: none !important;
}

.product-image-upload-status {
    display: block;
    margin-top: 10px;
}

.manual-product-editor-workspace {
    min-height: 680px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.manual-product-editor-workspace .editor-pane {
    min-height: 0;
    border-right: 1px solid var(--admin-line);
    border-bottom: 0;
}

.manual-product-editor-workspace .preview-pane {
    min-height: 0;
}

.manual-product-editor-workspace .editor-pane textarea {
    min-height: 0;
}

.manual-product-editor-workspace .admin-markdown-preview {
    min-height: 0;
}

.manual-product-editor-workspace .editor-compose-toolbar {
    align-content: center;
    gap: 8px;
}

.manual-product-editor-workspace .editor-format-actions {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
}

.manual-product-editor-workspace .editor-format-actions button {
    height: 32px;
    flex: 0 0 auto;
    gap: 4px;
    padding: 0 7px;
    font-size: 11px;
    white-space: nowrap;
}

.manual-product-editor-workspace .editor-format-actions .format-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
}

.manual-product-editor-workspace .preview-toolbar {
    border-radius: 0;
}

.manual-product-channel-fields .field > span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.manual-product-channel-fields .admin-product-channel {
    font-style: normal;
}

.manual-product-publish .toggle-field {
    margin-top: 0;
}

.manual-product-key {
    padding: 12px;
    margin: -8px 0 22px;
    border-radius: 8px;
    background: #f6f7f5;
}

.manual-product-key span,
.manual-product-key code {
    display: block;
}

.manual-product-key span {
    margin-bottom: 5px;
    color: var(--admin-muted);
    font-size: 9px;
}

.manual-product-key code {
    overflow: hidden;
    color: var(--admin-ink);
    font-size: 9px;
    text-overflow: ellipsis;
}

.manual-product-danger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 28px;
    margin-top: 22px;
    border-color: #ecd7da;
}

.manual-product-danger h2 {
    margin: 0 0 5px;
    font-size: 15px;
}

.manual-product-danger p {
    margin: 0;
    color: var(--admin-muted);
    font-size: 10px;
}

.manual-product-danger .button-danger {
    border-color: #9f3444;
    background: #9f3444;
    color: #fff;
}

.admin-purchase-dialog {
    width: min(620px, calc(100vw - 32px));
    max-width: none;
    max-height: min(820px, calc(100vh - 32px));
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: transparent;
    box-shadow: 0 28px 80px rgba(23, 31, 27, 0.26);
}

.admin-purchase-dialog:not([open]):not(.is-fallback-open) {
    display: none;
}

.admin-purchase-dialog::backdrop {
    background: rgba(17, 24, 21, 0.56);
    backdrop-filter: blur(3px);
}

.admin-purchase-dialog.is-fallback-open {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    width: 100vw;
    height: 100vh;
    max-height: none;
    place-items: center;
    margin: 0;
    border-radius: 0;
    background: rgba(17, 24, 21, 0.56);
    box-shadow: none;
}

.admin-purchase-modal {
    overflow: hidden;
    width: 100%;
    border: 1px solid #dfe3e8;
    border-radius: 14px;
    background: #fff;
}

.admin-purchase-dialog.is-fallback-open .admin-purchase-modal {
    width: min(620px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}

.admin-purchase-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 26px 20px;
    border-bottom: 1px solid var(--service-line);
}

.admin-purchase-modal-head > div {
    min-width: 0;
}

.admin-purchase-modal-head > div > span {
    display: block;
    margin-bottom: 5px;
    color: var(--service-brand-text);
    font-size: 9px;
    font-weight: 750;
}

.admin-purchase-modal-head h2 {
    margin: 0;
    color: var(--service-ink);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.admin-purchase-modal-head p {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 0;
}

.admin-purchase-modal-head p strong {
    overflow: hidden;
    max-width: 390px;
    color: var(--service-copy);
    font-size: 11px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-purchase-modal-head p code {
    color: var(--service-muted);
    font-size: 9px;
}

.admin-purchase-modal-head > button {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    padding: 0;
    border: 1px solid var(--service-line);
    border-radius: 50%;
    background: #fff;
    color: var(--service-muted);
    cursor: pointer;
    font: inherit;
    font-size: 20px;
}

.admin-purchase-modal-body {
    padding: 22px 26px 26px;
}

.admin-purchase-modal-body > p {
    margin: 0 0 19px;
    color: var(--service-muted);
    font-size: 11px;
    line-height: 1.65;
}

.admin-purchase-fields {
    display: grid;
    gap: 14px;
}

.admin-purchase-fields label {
    display: grid;
    gap: 7px;
}

.admin-purchase-fields label > span {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--service-copy);
    font-size: 10px;
    font-weight: 680;
}

.admin-purchase-fields label > span > i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a5acb5;
}

.admin-purchase-fields label > span > i.is-gs25 {
    background: #0072ce;
}

.admin-purchase-fields label > span > i.is-cu {
    background: #652f8f;
}

.admin-purchase-fields label > span > i.is-emart24 {
    background: #ffc72c;
}

.admin-purchase-fields label > span > i.is-dailyshot {
    background: #fe5000;
}

.admin-purchase-fields label > span > i.is-kakao_gift {
    background: #fee500;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.admin-purchase-fields label > span > i.is-other {
    background: #454d49;
}

.admin-purchase-fields input {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #dce1e7;
    border-radius: 7px;
    outline: 0;
    background: #fff;
    color: var(--service-ink);
    font: inherit;
    font-size: 12px;
}

.admin-purchase-fields input:focus {
    border-color: var(--service-brand);
    box-shadow: 0 0 0 3px rgba(247, 50, 63, 0.12);
}

.admin-purchase-modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 26px;
    border-top: 1px solid var(--service-line);
    background: #fafbfc;
}

.admin-product-empty {
    display: flex;
    min-height: 310px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 44px 20px;
    text-align: center;
}

.admin-product-empty > span {
    color: #adb5bd;
    font-size: 35px;
}

.admin-product-empty h2 {
    margin: 16px 0 0;
    color: var(--service-ink);
    font-size: 18px;
    font-weight: 680;
}

.admin-product-empty p {
    margin: 7px 0 0;
    color: var(--service-muted);
    font-size: 11px;
}

.admin-product-pagination {
    display: grid;
    align-items: center;
    gap: 18px;
    padding: 20px 27px;
    border-top: 1px solid var(--service-line);
    grid-template-columns: 1fr auto 1fr;
}

.admin-product-pagination > a,
.admin-product-pagination > span.is-disabled,
.admin-product-pagination > span > a,
.admin-product-pagination > span > i {
    display: inline-flex;
    min-width: 34px;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    color: var(--service-muted);
    font-size: 10px;
    font-style: normal;
    font-weight: 650;
}

.admin-product-pagination > a:last-child,
.admin-product-pagination > span.is-disabled:last-child {
    justify-self: end;
}

.admin-product-pagination > span.is-disabled {
    justify-content: flex-start;
    opacity: 0.38;
}

.admin-product-pagination > span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.admin-product-pagination > span > a {
    border: 1px solid transparent;
    border-radius: 50%;
}

.admin-product-pagination > span > a.is-active {
    border-color: var(--service-ink);
    background: var(--service-ink);
    color: #fff;
}

.catalog-search > button:focus-visible,
.catalog-search > a:focus-visible,
.catalog-categories a:focus-visible,
.catalog-card a:focus-visible,
.catalog-pagination a:focus-visible,
.catalog-detail-actions a:focus-visible,
.admin-product-sync a:focus-visible,
.admin-product-panel a:focus-visible,
.admin-product-panel button:focus-visible,
.admin-product-panel input:focus-visible,
.admin-product-panel select:focus-visible,
.admin-purchase-dialog button:focus-visible,
.admin-purchase-dialog input:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--site-brand, #f7323f) 20%, transparent);
    outline-offset: 2px;
}

@media (max-width: 1080px) {
    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-product-filters {
        grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.55fr) minmax(140px, 0.45fr);
    }

    .admin-product-filters > button,
    .admin-product-filters > a {
        justify-self: start;
    }

    .admin-product-table {
        min-width: 1040px;
    }
}

@media (max-width: 820px) {
    .manual-product-editor-workspace {
        height: auto;
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .manual-product-editor-workspace .editor-pane {
        min-height: 520px;
        border-right: 0;
        border-bottom: 1px solid var(--admin-line);
    }

    .manual-product-editor-workspace .preview-pane {
        min-height: 440px;
    }

    .manual-product-editor-workspace .editor-pane textarea,
    .manual-product-editor-workspace .rich-editor {
        min-height: 430px;
    }

    .catalog-hero {
        min-height: 0;
        align-items: start;
        grid-template-columns: 1fr;
    }

    .catalog-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

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

    .catalog-detail {
        gap: 42px;
        grid-template-columns: 1fr;
    }

    .catalog-detail-summary {
        padding-top: 0;
    }

    .catalog-description {
        gap: 28px;
        grid-template-columns: 1fr;
    }

    .admin-product-page-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-product-head-actions,
    .manual-product-head-actions {
        width: 100%;
        flex-wrap: wrap;
    }

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

    .admin-product-sync > a {
        margin-left: 49px;
    }

    .admin-product-filters {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 620px) {
    .admin-product-head-actions > *,
    .admin-product-head-actions form,
    .manual-product-head-actions > * {
        width: 100%;
    }

    .admin-product-head-actions button,
    .admin-product-head-actions a,
    .manual-product-head-actions button,
    .manual-product-head-actions a {
        width: 100%;
        justify-content: center;
    }

    .manual-product-image-field {
        grid-template-columns: 1fr;
    }

    .manual-product-image-field .image-upload-preview {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5;
    }

    .manual-product-danger {
        align-items: stretch;
        flex-direction: column;
    }

    .manual-product-danger button {
        width: 100%;
    }

    .catalog-search {
        flex-wrap: wrap;
    }

    .catalog-search-field {
        min-width: 100%;
        flex-basis: 100%;
    }

    .catalog-search > button,
    .catalog-search > a {
        flex: 1 1 auto;
    }

    .catalog-grid {
        gap: 32px 12px;
    }

    .catalog-card-body {
        padding-top: 13px;
    }

    .catalog-pagination {
        gap: 8px;
    }

    .catalog-page-direction > span:not([aria-hidden]) {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .catalog-page-numbers > a,
    .catalog-page-numbers > span {
        min-width: 34px;
        min-height: 34px;
    }

    .catalog-description-copy .kihya-tasting-grid,
    .catalog-description-copy .kihya-information-grid {
        grid-template-columns: 1fr;
    }

    .catalog-description-copy .kihya-tasting-note {
        min-height: 0;
    }

    .catalog-description-copy .kihya-tasting-note.is-metric {
        gap: 11px 16px;
        padding: 18px;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .catalog-description-copy
        .kihya-tasting-note.is-metric
        .kihya-tasting-meter {
        grid-column: 1 / -1;
    }

    .catalog-description-copy .kihya-information-item:nth-child(odd),
    .catalog-description-copy .kihya-information-item:nth-child(even) {
        padding-right: 4px;
        padding-left: 4px;
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .catalog-description-copy
        .kihya-information-item:last-child:nth-child(odd) {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .catalog-description-copy .kihya-prose-section {
        padding: 24px 19px;
        margin: 42px 0 48px;
        border-radius: 15px;
    }

    .catalog-description-copy .kihya-prose-section > .kihya-detail-heading {
        margin-bottom: 18px;
    }

    .catalog-description-copy .kihya-prose-section h3 {
        margin-top: 28px;
    }

    .admin-product-sync > a {
        width: 100%;
        margin-left: 0;
    }

    .admin-product-filters {
        grid-template-columns: 1fr;
    }

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

    .admin-product-filters > button,
    .admin-product-filters > a {
        width: 100%;
    }

    .admin-product-pagination {
        padding-right: 16px;
        padding-left: 16px;
    }

    .admin-product-pagination > span > a,
    .admin-product-pagination > span > i {
        min-width: 30px;
    }

    .admin-purchase-dialog {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
    }

    .admin-purchase-dialog.is-fallback-open .admin-purchase-modal {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
    }

    .admin-purchase-modal-head,
    .admin-purchase-modal-body {
        padding-right: 19px;
        padding-left: 19px;
    }

    .admin-purchase-modal-actions {
        padding-right: 19px;
        padding-left: 19px;
    }

    .admin-purchase-modal-actions .button {
        flex: 1 1 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .catalog-card-media > img {
        transition: none;
    }
}

/* Admin product order */
.admin-product-order-form {
    display: grid;
    gap: 18px;
}

.admin-product-order-settings,
.admin-product-order-panel {
    overflow: hidden;
    border: 1px solid var(--service-line);
    border-radius: 12px;
    background: #fff;
}

.admin-product-order-settings {
    padding: 25px 27px 27px;
}

.admin-product-order-settings > header > span,
.admin-product-order-panel-head > div > span {
    display: block;
    margin-bottom: 5px;
    color: var(--service-brand-text);
    font-size: 10px;
    font-weight: 750;
}

.admin-product-order-settings h2,
.admin-product-order-panel-head h2 {
    margin: 0;
    color: var(--service-ink);
    font-size: 20px;
    font-weight: 680;
    letter-spacing: -0.035em;
}

.admin-product-order-panel-head h2 b {
    margin-left: 5px;
    color: var(--service-muted);
    font-size: 13px;
}

.admin-product-order-modes {
    display: grid;
    gap: 10px;
    margin-top: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-product-order-mode {
    position: relative;
    display: block;
    cursor: pointer;
}

.admin-product-order-mode > input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.admin-product-order-mode > span {
    display: flex;
    min-height: 94px;
    flex-direction: column;
    justify-content: center;
    padding: 18px 20px 18px 50px;
    border: 1px solid #dce1e7;
    border-radius: 10px;
    background: #fff;
}

.admin-product-order-mode > span::before {
    position: absolute;
    top: 50%;
    left: 20px;
    width: 17px;
    height: 17px;
    border: 1.5px solid #bbc2cc;
    border-radius: 50%;
    content: "";
    transform: translateY(-50%);
}

.admin-product-order-mode > input:checked + span {
    border-color: var(--service-brand);
    background: #fff8f8;
    box-shadow: 0 0 0 3px rgba(247, 50, 63, 0.08);
}

.admin-product-order-mode > input:checked + span::before {
    border: 5px solid var(--service-brand);
    background: #fff;
}

.admin-product-order-mode > input:focus-visible + span {
    outline: 3px solid rgba(247, 50, 63, 0.2);
    outline-offset: 2px;
}

.admin-product-order-mode b {
    color: var(--service-ink);
    font-size: 13px;
    font-weight: 700;
}

.admin-product-order-mode small {
    margin-top: 6px;
    color: var(--service-muted);
    font-size: 11px;
    line-height: 1.55;
}

.admin-product-order-auto-select {
    display: grid;
    align-items: center;
    gap: 7px 14px;
    padding: 18px 20px;
    margin-top: 14px;
    border: 1px solid #e5e8ed;
    border-radius: 9px;
    background: #fafbfc;
    grid-template-columns: 115px minmax(180px, 280px) minmax(240px, 1fr);
    transition: opacity 160ms ease;
}

.admin-product-order-auto-select > span {
    color: var(--service-ink);
    font-size: 11px;
    font-weight: 680;
}

.admin-product-order-auto-select select {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #dce1e7;
    border-radius: 7px;
    outline: 0;
    background: #fff;
    color: var(--service-ink);
    font: inherit;
    font-size: 12px;
}

.admin-product-order-auto-select select:focus {
    border-color: var(--service-brand);
    box-shadow: 0 0 0 3px rgba(247, 50, 63, 0.12);
}

.admin-product-order-auto-select > small {
    color: var(--service-muted);
    font-size: 10px;
    line-height: 1.55;
}

.admin-product-order-auto-select.is-muted {
    opacity: 0.62;
}

.admin-product-order-panel-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    padding: 23px 27px 19px;
    border-bottom: 1px solid var(--service-line);
}

.admin-product-order-panel-head > p {
    margin: 0 0 2px;
    color: var(--service-muted);
    font-size: 10px;
}

.admin-product-order-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.admin-product-order-item {
    display: grid;
    min-height: 82px;
    align-items: center;
    gap: 13px;
    padding: 13px 27px 13px 17px;
    border-bottom: 1px solid var(--service-line);
    background: #fff;
    grid-template-columns: 28px 28px 56px minmax(220px, 1fr) 100px 76px;
    transition: background 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.admin-product-order-item:last-child {
    border-bottom: 0;
}

.admin-product-order-item:hover {
    background: #fcfcfd;
}

.admin-product-order-item.is-dragging {
    z-index: 1;
    background: #fff8f8;
    box-shadow: 0 8px 24px rgba(26, 31, 40, 0.12);
    opacity: 0.65;
}

.admin-product-order-handle {
    display: grid;
    width: 28px;
    height: 36px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #a0a7b1;
    font: inherit;
    font-size: 18px;
    letter-spacing: -4px;
}

.is-manual-order .admin-product-order-handle {
    color: var(--service-sub-dark);
    cursor: grab;
}

.is-manual-order .admin-product-order-handle:active {
    cursor: grabbing;
}

.admin-product-order-handle:focus-visible,
.admin-product-order-controls button:focus-visible {
    outline: 3px solid rgba(247, 50, 63, 0.18);
    outline-offset: 1px;
}

.admin-product-order-index {
    color: var(--service-sub-dark);
    font-size: 12px;
    font-weight: 750;
    text-align: center;
}

.admin-product-order-thumb {
    display: grid;
    overflow: hidden;
    width: 56px;
    height: 56px;
    place-items: center;
    border: 1px solid var(--service-line);
    border-radius: 7px;
    background: #f8f9fa;
}

.admin-product-order-thumb img {
    width: 100%;
    height: 100%;
    padding: 5px;
    object-fit: contain;
}

.admin-product-order-thumb i {
    color: var(--service-sub);
    font-size: 17px;
    font-style: normal;
    font-weight: 700;
}

.admin-product-order-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.admin-product-order-copy > span {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
}

.admin-product-order-copy .admin-product-source,
.admin-product-order-visibility {
    display: inline-flex;
    min-height: 18px;
    align-items: center;
    padding: 0 6px;
    border-radius: 4px;
    background: #eef1f7;
    color: var(--service-sub-dark);
    font-size: 8px;
    font-weight: 800;
}

.admin-product-order-copy .admin-product-source.is-manual {
    background: #edf7f1;
    color: #216a47;
}

.admin-product-order-visibility.is-visible {
    background: #eef8f2;
    color: #236b48;
}

.admin-product-order-visibility.is-hidden {
    background: #f1f2f4;
    color: #737b86;
}

.admin-product-order-copy > strong {
    overflow: hidden;
    color: var(--service-ink);
    font-size: 12px;
    font-weight: 670;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-product-order-copy > small {
    overflow: hidden;
    margin-top: 5px;
    color: var(--service-muted);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-product-order-sales {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-product-order-sales small {
    color: var(--service-muted);
    font-size: 9px;
}

.admin-product-order-sales strong {
    color: var(--service-ink);
    font-size: 11px;
    font-weight: 680;
}

.admin-product-order-controls {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

.admin-product-order-controls button {
    width: 33px;
    height: 33px;
    padding: 0;
    border: 1px solid #dce1e7;
    border-radius: 7px;
    background: #fff;
    color: var(--service-sub-dark);
    font: inherit;
    cursor: pointer;
}

.admin-product-order-controls button:hover:not(:disabled) {
    border-color: var(--service-brand);
    color: var(--service-brand-text);
}

.admin-product-order-controls button:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.admin-product-order-save {
    position: sticky;
    z-index: 3;
    bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 18px;
    border: 1px solid #dce1e7;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px rgba(26, 31, 40, 0.1);
    backdrop-filter: blur(8px);
}

.admin-product-order-save p {
    margin: 0;
    color: var(--service-muted);
    font-size: 11px;
}

@media (max-width: 820px) {
    .admin-product-order-auto-select {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .admin-product-order-auto-select > small {
        grid-column: 1 / -1;
    }

    .admin-product-order-panel-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .admin-product-order-item {
        padding-right: 17px;
        grid-template-columns: 28px 28px 50px minmax(0, 1fr) 70px;
    }

    .admin-product-order-thumb {
        width: 50px;
        height: 50px;
    }

    .admin-product-order-sales {
        display: none;
    }
}

@media (max-width: 620px) {
    .admin-product-order-settings {
        padding: 21px 18px;
    }

    .admin-product-order-modes {
        grid-template-columns: 1fr;
    }

    .admin-product-order-mode > span {
        min-height: 82px;
    }

    .admin-product-order-auto-select {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .admin-product-order-auto-select > small {
        grid-column: auto;
    }

    .admin-product-order-panel-head {
        padding: 20px 18px 17px;
    }

    .admin-product-order-item {
        gap: 8px;
        padding: 11px 10px 11px 8px;
        grid-template-columns: 26px 24px 44px minmax(0, 1fr) 33px;
    }

    .admin-product-order-thumb {
        width: 44px;
        height: 44px;
    }

    .admin-product-order-controls {
        display: grid;
        gap: 3px;
    }

    .admin-product-order-controls button {
        width: 30px;
        height: 26px;
    }

    .admin-product-order-copy > small {
        display: none;
    }

    .admin-product-order-save {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .admin-product-order-save .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .admin-product-order-auto-select,
    .admin-product-order-item {
        transition: none;
    }
}
