:root {
    --purple-700: #5f0080;
    --purple-600: #4a0066;
    --purple-100: #f3e5ff;
    --gray-900: #1a1a1a;
    --gray-600: #5c5c5c;
    --gray-200: #d6d6d6;
    --gray-100: #f5f5f5;
    --surface-muted: #f0f0f0;
    --white: #fff;
    --shadow-sm: 0 1px 3px rgba(31, 25, 43, 0.04);
    --shadow-md: 0 4px 16px rgba(31, 25, 43, 0.06);
    --radius-lg: 8px;
    --radius-md: 6px;
    /* 좌우 여백: 헤더·푸터·본문 동일 토큰 (+ safe-area). 본문은 main > .container 로 정렬 통일 */
    --page-pad-x: max(1rem, env(safe-area-inset-left, 0px));
    --page-pad-x-right: max(1rem, env(safe-area-inset-right, 0px));
    --container-max: 1240px;
    --header-h: 52px;
    --touch-min: 44px;
    --btn-text: 14px;
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
    font-size: 15px;
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--gray-900);
    background: var(--white);
}

@media (min-width: 640px) {
    :root {
        --page-pad-x: max(1.125rem, env(safe-area-inset-left, 0px));
        --page-pad-x-right: max(1.125rem, env(safe-area-inset-right, 0px));
    }
}

@media (min-width: 1024px) {
    :root {
        --page-pad-x: max(1rem, env(safe-area-inset-left, 0px));
        --page-pad-x-right: max(1rem, env(safe-area-inset-right, 0px));
    }
}

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

.partner-marquee {
    flex-shrink: 0;
    overflow: hidden;
    width: 100%;
    background: var(--purple-700);
    color: var(--white);
    border-bottom: 1px solid var(--purple-600);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.35;
    padding: 0.4rem 0;
    display: flex;
    justify-content: flex-start;
    container-type: inline-size;
    container-name: partner-marquee;
}

.partner-marquee__track {
    display: flex;
    flex-wrap: nowrap;
    flex: 0 0 auto;
    width: max-content;
    min-width: min-content;
    will-change: transform;
    backface-visibility: hidden;
    animation: partner-marquee-scroll linear infinite;
    /* 한 칸(반쪽) 너비 ≈ 100% 바 너비 기준 이동 — 화면당 시간으로 속도 유지 */
    animation-duration: 48s;
    animation-duration: calc(16s + 42vw);
}

.partner-marquee__half {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    min-width: 100vw;
    min-width: 100cqw;
    white-space: nowrap;
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: calc(max(0.75rem, env(safe-area-inset-right, 0px)) + clamp(3.5rem, 12vw, 9rem));
}

.partner-marquee__text {
    flex: 0 0 auto;
}

@keyframes partner-marquee-scroll {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .partner-marquee {
        justify-content: center;
    }

    .partner-marquee__track {
        animation: none;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        flex-wrap: nowrap;
    }

    .partner-marquee__half {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        text-align: center;
        white-space: normal;
        justify-content: center;
    }

    .partner-marquee__half[aria-hidden="true"] {
        display: none;
    }
}

.container {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--page-pad-x);
    padding-right: var(--page-pad-x-right);
}

/* ==========================================================================
   헤더 (Header & Navigation) - 스코프 철저히 분리
   ========================================================================== */
.site-header {
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 40;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

/* 한 줄: 왼쪽 로고(가변) · 오른쪽 메뉴(고정폭) — flex 대신 grid로 정렬, container와 책임 분리 */
.site-header .container.site-header__inner {
    width: 100%;
    min-width: 0;
}

.site-header .site-header__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: var(--header-h);
    column-gap: 1rem;
}

.site-header .site-header__row--brand-only {
    grid-template-columns: minmax(0, 1fr);
}

.site-header .site-header__brand {
    justify-self: start;
    align-self: center;
    min-width: 0;
    max-width: 100%;
}

.site-header .site-header__actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.35rem 1.25rem;
    justify-self: end;
    align-self: center;
    min-width: 0;
}

/* 브랜드 로고 스코핑 (헤더 안에서만 작동하도록 가두기) */
.site-header .brand {
    color: var(--purple-700);
    font-weight: 800;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
}

.site-header .brand-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
}

@media (min-width: 721px) {
    .site-header .brand {
        font-size: 1.15rem;
        gap: 0.5rem;
    }
    .site-header .brand-logo {
        width: 32px;
        height: 32px;
        border-radius: 9px;
    }
}

/* 네비게이션 및 메뉴 요소 스코핑 */
.site-header .site-header__nav--wide {
    display: none; /* 모바일 기본 숨김 */
    align-items: center;
    gap: 0.35rem 1.25rem;
    font-size: 0.9rem;
}

.site-header .site-header__textlink {
    color: var(--gray-600);
    font-weight: 600;
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
    border-radius: 0;
    vertical-align: baseline;
}

.site-header .site-header__textlink:hover,
.site-header .site-header__textlink:focus-visible {
    color: var(--purple-700);
    text-decoration: underline;
}

.site-header .site-header__textlink:focus-visible {
    outline: 2px solid var(--purple-700);
    outline-offset: 2px;
}

.site-header .site-header__textlink--btn {
    text-decoration: none;
}

.site-header .site-header__burger {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-header .site-header__burger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--touch-min);
    min-width: var(--touch-min);
    height: var(--touch-min);
    padding: 0;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--purple-700);
    font-size: 1.1rem;
    cursor: pointer;
}

.site-header .site-header__burger-btn:hover,
.site-header .site-header__burger-btn:focus-visible {
    background: var(--gray-100);
    border-color: var(--purple-700);
    outline: none;
}

.site-header .site-header__menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 11rem;
    padding: 0.35rem 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 50;
}

.site-header .site-header__menu-item {
    display: block;
    width: 100%;
    padding: 0.55rem 0.85rem;
    text-align: left;
    font: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-600);
    text-decoration: none;
    border: 0;
    background: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
}

.site-header .site-header__menu-item:hover,
.site-header .site-header__menu-item:focus-visible {
    background: var(--purple-100);
    color: var(--purple-700);
    outline: none;
}

.site-header .site-header__menu-item--btn {
    color: var(--gray-600);
}

/* ==========================================================================
   헤더 반응형 (!important 제거)
   ========================================================================== */
@media (max-width: 1023px) {
    .site-header .site-header__nav--wide {
        display: none;
    }
    .site-header .site-header__burger {
        display: flex;
    }
}

@media (min-width: 1024px) {
    .site-header .site-header__nav--wide {
        display: flex;
        font-size: 0.92rem;
    }
    .site-header .site-header__burger {
        display: none;
    }
}

.hero-brand {
    display: flex;
    gap: 0.65rem;
    align-items: center;
}

.mall-profile {
    display: block;
    width: 48px;
    height: 48px;
    max-width: 48px;
    max-height: 48px;
    border-radius: 10px;
    border: 2px solid var(--purple-700);
    object-fit: cover;
    flex-shrink: 0;
}

@media (min-width: 721px) {
    .hero-brand {
        gap: 0.85rem;
    }

    .mall-profile {
        width: 56px;
        height: 56px;
        max-width: 56px;
        max-height: 56px;
        border-radius: 12px;
    }
}

.page-body {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    padding-top: 1rem;
    padding-bottom: 2.5rem;
}

@media (min-width: 721px) {
    .page-body {
        padding-top: 1.75rem;
        padding-bottom: 3.5rem;
    }
}

.hero {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--purple-700);
    border-radius: var(--radius-lg);
    padding: 0.85rem 0.9rem;
    margin-bottom: 1rem;
    box-shadow: none;
}

.hero.compact {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.hero h1 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.3;
}

.hero p {
    margin: 0.3rem 0 0;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.hero--dense {
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.65rem;
}

.hero--dense h1 {
    font-size: 1.05rem;
}

.hero--dense p {
    font-size: 0.8rem;
}

.hero--dense .mall-profile {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    border-radius: 8px;
}

@media (max-width: 720px) {
    .home-creators .section-title {
        margin: 0.55rem 0 0.4rem;
        font-size: 0.98rem;
    }

    .home-creators .creator-rank-list {
        gap: 0.35rem;
    }

    .home-creators .creator-rank-card {
        gap: 0.35rem 0.45rem;
        padding: 0.35rem 0.45rem;
        --creator-cta-size: 36px;
    }

    .home-creators .creator-rank-card__avatar {
        width: 40px;
        height: 40px;
        max-width: 40px;
        max-height: 40px;
    }

    .home-creators .creator-rank-card__title {
        font-size: 0.88rem;
    }

    .home-creators .creator-rank-card__slug {
        font-size: 0.72rem;
        margin-top: 0.05rem;
    }

    .home-creators .creator-rank-card__bio {
        font-size: 0.72rem;
        margin-top: 0.1rem;
        line-height: 1.3;
        max-width: none;
    }

    .home-creators .creator-rank-card__cta-row {
        gap: 0.28rem;
    }

    .home-creators .creator-rank-card__shop-btn {
        padding: 0 0.48rem;
    }
}

@media (min-width: 721px) {
    .hero {
        padding: 1.15rem 1.25rem;
        margin-bottom: 1.35rem;
        border-left-width: 5px;
    }

    .hero.compact {
        gap: 0.9rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }
}

.section-title {
    margin: 0.85rem 0 0.65rem;
    font-size: 1.05rem;
}

@media (min-width: 721px) {
    .section-title {
        margin: 1.2rem 0 0.85rem;
        font-size: 1.15rem;
    }
}

/* 모바일: 상품 2열 · 데스크톱: auto-fill */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

@media (min-width: 721px) {
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
        gap: 1rem;
    }
}

.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: none;
}

@media (min-width: 721px) {
    .card {
        padding: 1rem;
        gap: 0.8rem;
    }
}

.card--product {
    overflow: hidden;
}

.card--product .btn-primary {
    width: 100%;
    margin-top: auto;
    border-radius: 8px;
    min-height: var(--touch-min);
    padding: 0 0.5rem;
    font-size: var(--btn-text);
    font-weight: 700;
}

.card--product h3 {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
    word-break: break-word;
}

@media (min-width: 721px) {
    .card--product h3 {
        font-size: 0.9rem;
    }
}

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

@media (min-width: 721px) {
    .card--product .price {
        font-size: 1rem;
    }
}

.product-card__media {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    line-height: 0;
}

.product-card__media img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    vertical-align: middle;
}

.product-card__media:focus-visible {
    outline: 2px solid var(--purple-700);
    outline-offset: 2px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--purple-700);
    flex-shrink: 0;
}

.avatar.lg {
    width: 48px;
    height: 48px;
}

@media (min-width: 721px) {
    .avatar {
        width: 48px;
        height: 48px;
    }

    .avatar.lg {
        width: 64px;
        height: 64px;
    }
}

.product-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 8px;
}

.price {
    color: var(--purple-700);
    font-weight: 700;
}

.muted {
    color: var(--gray-600);
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    border: 1px solid transparent;
    min-height: var(--touch-min);
    padding: 0 0.85rem;
    font-size: var(--btn-text);
    cursor: pointer;
}

.btn-primary {
    background: var(--purple-700);
    color: var(--white);
}

.btn-outline {
    border-color: var(--purple-700);
    color: var(--purple-700);
    background: transparent;
}

.btn.disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: not-allowed;
}

.btn-purchase-wide {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin: 0.45rem 0 0.75rem;
    min-height: 48px;
    padding: 0 1rem;
    font-size: var(--btn-text);
    font-weight: 700;
    border-radius: 8px;
}

.page--review-detail .page-body {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

.detail-article--review .detail-article__cta-wrap {
    margin-left: calc(-1 * 0.85rem);
    margin-right: calc(-1 * 0.85rem);
}

.detail-article--review .detail-article__cta-wrap .btn-purchase-wide {
    margin-top: 0;
    margin-bottom: 0.65rem;
}

.detail-article__footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0 0.5rem;
    padding-bottom: 0.25rem;
}

.detail-article__footer-back {
    margin-left: auto;
}

.detail-article__footer-row .btn-coupang-footer {
    min-height: var(--touch-min, 44px);
    padding: 0 1rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
}

@media (min-width: 721px) {
    .detail-article--review .detail-article__cta-wrap {
        margin-left: calc(-1 * 1.15rem);
        margin-right: calc(-1 * 1.15rem);
    }
}

.review-purchase-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 0.5rem var(--page-pad-x) calc(0.55rem + env(safe-area-inset-bottom, 0px)) var(--page-pad-x-right);
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    box-shadow: none;
}

.review-purchase-dock .btn-purchase-wide--dock {
    margin: 0;
    min-height: 48px;
    background: var(--purple-700);
    color: var(--white);
    border-radius: 8px;
}

.creator-rank-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 721px) {
    .creator-rank-list {
        gap: 0.55rem;
    }
}

.creator-rank-card {
    --creator-cta-size: 40px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem 0.5rem;
    padding: 0.45rem 0.5rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: none;
    min-width: 0;
}

@media (min-width: 721px) {
    .creator-rank-card {
        gap: 0.55rem 0.75rem;
        padding: 0.55rem 0.75rem;
        border-radius: var(--radius-lg);
        --creator-cta-size: 42px;
    }
}

/* 홈 전용: 카드·CTA 행이 세로로 쌓이지 않도록 한 번 더 고정 */
.home-creators .creator-rank-card {
    flex-direction: row;
    flex-wrap: nowrap;
}

.home-creators .creator-rank-card__cta-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}

.creator-rank-card__avatar {
    display: block;
    width: 44px;
    height: 44px;
    max-width: 44px;
    max-height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--purple-700);
    flex-shrink: 0;
}

@media (min-width: 721px) {
    .creator-rank-card__avatar {
        width: 52px;
        height: 52px;
        max-width: 52px;
        max-height: 52px;
    }
}

.creator-rank-card__body {
    flex: 1 1 auto;
    min-width: 0;
}

.creator-rank-card__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.25;
}

.creator-rank-card__slug {
    margin: 0.1rem 0 0;
    font-size: 0.8rem;
}

.creator-rank-card__bio {
    margin: 0.12rem 0 0;
    font-size: 0.76rem;
    line-height: 1.35;
    max-width: 42ch;
}

@media (min-width: 721px) {
    .creator-rank-card__title {
        font-size: 0.98rem;
    }

    .creator-rank-card__slug {
        font-size: 0.8rem;
    }

    .creator-rank-card__bio {
        margin-top: 0.15rem;
        font-size: 0.8rem;
    }
}

/* 쇼핑몰 + SNS: 한 줄 플렉(중첩 div 없음) */
.creator-rank-card__cta-row {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    flex: 0 0 auto;
    align-self: center;
    min-width: 0;
}

.creator-rank-card__sns-btn {
    display: flex;
    box-sizing: border-box;
    width: var(--creator-cta-size);
    height: var(--creator-cta-size);
    min-width: var(--creator-cta-size);
    min-height: var(--creator-cta-size);
    flex: 0 0 var(--creator-cta-size);
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--purple-700);
    font-size: calc(var(--creator-cta-size) * 0.42);
    border: 1px solid var(--gray-200);
}

.creator-rank-card__sns-btn:hover {
    background: var(--purple-100);
    border-color: var(--purple-700);
}

.creator-rank-card__shop-btn {
    display: inline-flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    flex: 0 0 auto;
    height: var(--creator-cta-size);
    min-height: var(--creator-cta-size);
    padding: 0 0.65rem;
    border-radius: 999px;
    font-size: max(0.68rem, calc(var(--creator-cta-size) * 0.36));
    font-weight: 700;
    line-height: 1;
    background: var(--purple-700);
    color: var(--white);
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: none;
    white-space: nowrap;
}

.creator-rank-card__shop-btn .fa-solid {
    font-size: calc(var(--creator-cta-size) * 0.4);
    line-height: 1;
}

.creator-rank-card__shop-btn:hover {
    background: var(--purple-600);
}

.shop-hero {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 0.65rem;
    min-height: 112px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: none;
}

@media (min-width: 721px) {
    .shop-hero {
        border-radius: var(--radius-lg);
        margin-bottom: 1.25rem;
        min-height: 180px;
        box-shadow: none;
    }
}

.shop-hero--cover {
    background-size: cover;
    background-position: center;
}

.shop-hero__overlay {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    min-height: 112px;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.72) 0%, rgba(26, 26, 26, 0.2) 55%, transparent 100%);
    color: var(--white);
}

@media (min-width: 721px) {
    .shop-hero__overlay {
        align-items: flex-end;
        gap: 1rem;
        padding: 1.25rem clamp(1rem, 4vw, 1.75rem);
        min-height: 180px;
    }
}

.shop-hero--cover .shop-hero__overlay {
    color: var(--white);
}

.shop-hero:not(.shop-hero--cover) .shop-hero__overlay {
    background: none;
    color: var(--gray-900);
    align-items: center;
}

.shop-hero__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--white);
    box-shadow: none;
    flex-shrink: 0;
}

@media (min-width: 721px) {
    .shop-hero__avatar {
        width: 88px;
        height: 88px;
        border-width: 3px;
        box-shadow: none;
    }
}

.shop-hero:not(.shop-hero--cover) .shop-hero__avatar {
    border-color: var(--purple-700);
}

.shop-hero__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.25;
}

.shop-hero__lead {
    margin-top: 0.2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.15rem 0.4rem;
}

.shop-hero__bio {
    margin: 0;
    opacity: 0.92;
    font-size: 0.8rem;
    line-height: 1.45;
}

.shop-hero__bio.shop-hero__bio--clamp {
    flex: 1 1 10rem;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-hero__more {
    flex: 0 0 auto;
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    color: inherit;
    opacity: 0.95;
    white-space: nowrap;
}

.shop-hero__more:hover {
    opacity: 1;
}

@media (min-width: 721px) {
    .shop-hero__title {
        font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    }

    .shop-hero__bio {
        font-size: 0.92rem;
    }

    .shop-hero__more {
        font-size: 0.82rem;
    }
}

.shop-tabs {
    position: sticky;
    top: var(--header-h);
    z-index: 35;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0 0.35rem;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: none;
}

@media (min-width: 721px) {
    .shop-tabs {
        position: static;
        margin-bottom: 1.1rem;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }
}

.shop-tabs__list {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.25rem;
    padding: 0.2rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    box-shadow: none;
}

.shop-tabs__tab {
    flex: 1 1 0;
    min-width: 0;
    min-height: var(--touch-min);
    padding: 0 0.5rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    font: inherit;
    font-size: var(--btn-text);
    font-weight: 700;
    color: var(--gray-600);
    cursor: pointer;
}

.shop-tabs__tab:hover {
    color: var(--purple-700);
    background: var(--gray-100);
}

.shop-tabs__tab[aria-selected="true"] {
    background: var(--purple-700);
    color: var(--white);
}

a.shop-tabs__tab {
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}

a.shop-tabs__tab:focus-visible {
    outline: 2px solid var(--purple-700);
    outline-offset: 2px;
}

.shop-tab-panel[hidden] {
    display: none !important;
}

.review-board {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 721px) {
    .review-board {
        gap: 0.85rem;
    }
}

.review-board__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

@media (min-width: 721px) {
    .review-board__item {
        gap: 1rem;
        padding: 1rem 1.1rem;
    }
}

a.review-board__item:hover {
    border-color: rgba(95, 0, 128, 0.35);
    background: var(--gray-100);
}

.review-board__item h3 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
}

.review-board__meta {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
}

@media (min-width: 721px) {
    .review-board__item h3 {
        font-size: 1rem;
    }

    .review-board__meta {
        margin-top: 0.3rem;
        font-size: 0.82rem;
    }
}

.review-board__arrow {
    flex-shrink: 0;
    font-weight: 700;
    color: var(--purple-700);
}

.channel-about {
    text-align: center;
    padding: 1.15rem 0.85rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: none;
}

@media (min-width: 721px) {
    .channel-about {
        padding: 1.75rem 1.25rem;
        border-radius: var(--radius-lg);
    }
}

.channel-about__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--purple-700);
    margin: 0 auto 0.65rem;
    display: block;
}

@media (min-width: 721px) {
    .channel-about__avatar {
        width: 104px;
        height: 104px;
        border-width: 3px;
        margin-bottom: 0.85rem;
    }
}

.channel-about h2 {
    margin: 0;
    font-size: 1.1rem;
}

@media (min-width: 721px) {
    .channel-about h2 {
        font-size: 1.28rem;
    }
}

.channel-about__bio {
    margin: 0.5rem auto 0;
    max-width: 36rem;
    line-height: 1.55;
    color: var(--gray-600);
    font-size: 0.88rem;
}

.channel-about--about {
    background: #06122b;
    border-color: #1b2a4b;
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.35);
    color: #f8fafc;
}

.channel-about--about .channel-about__avatar {
    border-color: #9b7bff;
    background: rgba(255, 255, 255, 0.03);
}

.channel-about--about h2 {
    color: #f8fafc;
}

.channel-about--about .channel-about__bio {
    color: #dbe4f4;
}

@media (min-width: 721px) {
    .channel-about__bio {
        margin-top: 0.65rem;
        font-size: 0.94rem;
        line-height: 1.65;
    }
}

.channel-about__sns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.85rem;
}

@media (min-width: 721px) {
    .channel-about__sns {
        gap: 0.6rem;
        margin-top: 1.15rem;
    }
}

.channel-about__sns a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: var(--touch-min);
    padding: 0 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--gray-200);
    font-size: var(--btn-text);
    font-weight: 700;
    color: var(--purple-700);
    background: var(--gray-100);
}

.channel-about__sns a:hover {
    background: var(--purple-100);
    border-color: var(--purple-700);
}

.shop-product-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 1.25rem;
}

.shop-product-pager button {
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    height: auto;
    padding: 0 0.45rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: var(--white);
    font: inherit;
    font-size: var(--btn-text);
    font-weight: 600;
    color: var(--gray-900);
    cursor: pointer;
}

.shop-product-pager button:hover:not(:disabled) {
    border-color: var(--purple-700);
    color: var(--purple-700);
}

.shop-product-pager button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.shop-product-pager button.is-active {
    background: var(--purple-700);
    color: var(--white);
    border-color: var(--purple-700);
}

.list-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.list-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-item.static {
    cursor: default;
}

.link-arrow {
    color: var(--purple-700);
    font-weight: 600;
}

.detail-article {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 0.85rem;
}

@media (min-width: 721px) {
    .detail-article {
        border-radius: 12px;
        padding: 1.15rem;
    }
}

.detail-header {
    display: flex;
    gap: 0.65rem;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

@media (min-width: 721px) {
    .detail-header {
        gap: 1rem;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
}

.detail-header h1 {
    margin: 0.2rem 0 0;
    font-size: 1.05rem;
    line-height: 1.3;
}

@media (min-width: 721px) {
    .detail-header h1 {
        font-size: 1.25rem;
    }
}

.detail-content {
    line-height: 1.65;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

@media (min-width: 721px) {
    .detail-content {
        line-height: 1.7;
        margin-bottom: 1.2rem;
        font-size: 1rem;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.4rem;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 0.9rem;
}

.stat-card h3 {
    margin: 0 0 0.35rem;
    color: var(--gray-600);
    font-size: 0.95rem;
}

.stat-card p {
    margin: 0;
    color: var(--purple-700);
    font-size: 1.5rem;
    font-weight: 700;
}

.admin-panel {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.admin-form {
    display: grid;
    gap: 0.9rem;
}

.admin-form label {
    display: grid;
    gap: 0.35rem;
    font-weight: 600;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    padding: 0.62rem 0.7rem;
    font: inherit;
}

.admin-links {
    display: flex;
    gap: 0.8rem;
}

.admin-links a {
    color: var(--purple-700);
    font-weight: 600;
}

.site-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
    padding: 0.65rem 0;
}

.site-footer p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.85rem;
}

@media (min-width: 721px) {
    .site-footer {
        padding: 1rem 0;
    }

    .site-footer p {
        font-size: 0.9rem;
    }
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.site-footer__copyright {
    letter-spacing: 0.01em;
}

.about-page__body {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--purple-700);
    border-radius: var(--radius-lg);
    padding: 1rem 1rem 1.1rem;
    margin-bottom: 1rem;
}

.about-page__text {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.65;
}

.about-page__text--follow {
    margin-top: 0.9rem;
}

@media (min-width: 721px) {
    .about-page__body {
        padding: 1.25rem 1.35rem 1.35rem;
    }

    .about-page__text {
        font-size: 1rem;
    }
}

/* 협업문의 모달 — 백오피스(products statusModal / channelSettings) 톤과 통일 (slate + 라운드 카드) */
.collab-dialog {
    margin: auto;
    padding: 0;
    border: none;
    max-width: calc(100vw - 2rem);
    width: min(28rem, 100%);
    background: transparent;
    color: #0f172a;
}

.collab-dialog::backdrop {
    background: rgba(15, 23, 42, 0.55);
}

.collab-dialog__panel {
    position: relative;
    min-width: 0;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 1.5rem;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 1rem;
    box-shadow:
        0 25px 50px -12px rgba(15, 23, 42, 0.22),
        0 0 0 1px rgba(15, 23, 42, 0.03);
}

@media (min-width: 640px) {
    .collab-dialog__panel {
        padding: 1.75rem 2rem 1.75rem;
        border-radius: 1.25rem;
    }
}

.collab-dialog__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #fff;
    color: #64748b;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.collab-dialog__close:hover,
.collab-dialog__close:focus-visible {
    background: #f8fafc;
    color: #334155;
    border-color: #cbd5e1;
    outline: none;
}

.collab-dialog__title {
    margin: 0 2.75rem 0.65rem 0;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.collab-dialog__text {
    margin: 0 0 1.25rem;
    text-align: left;
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.65;
}

.collab-dialog__email {
    color: #6200ea;
    font-weight: 700;
    word-break: break-all;
    text-decoration: none;
}

.collab-dialog__email:hover,
.collab-dialog__email:focus-visible {
    text-decoration: underline;
    color: #4a00ad;
    outline: none;
}

.collab-dialog__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0.85rem 1rem;
    border: 0;
    border-radius: 0.75rem;
    background: #0f172a;
    color: #fff;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.collab-dialog__cta:hover,
.collab-dialog__cta:focus-visible {
    background: #1e293b;
    outline: none;
}

.collab-dialog__cta:active {
    transform: scale(0.98);
}

.site-footer__admin {
    font-size: 0.85rem;
}

.site-footer__admin a {
    color: var(--purple-700);
    font-weight: 600;
}

.site-footer__admin a:hover {
    text-decoration: underline;
}

.site-footer__dashboard {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 8px;
}

.site-footer__dashboard:hover {
    text-decoration: none;
    background: var(--gray-100);
    color: var(--purple-600);
}

/* 좁은 화면: 가로형 랭킹·2열 상품 유지, 히어로만 미세 조정 */
@media (max-width: 720px) {
    .hero.compact {
        align-items: flex-start;
    }

    .hero-brand {
        align-items: flex-start;
    }

    .section-title {
        margin-top: 0.75rem;
    }
}

@media (max-width: 400px) {
    .hero {
        padding: 0.75rem 0.8rem;
    }
}

/* ----- 인플 몰(.shop-page): 슬림 히어로, 모바일 2열, 데스크톱 상품 5열·썸네일 1:1 ----- */
/* 본문은 main > .container(헤더·푸터와 동일) 안의 .shop-page — 가로 기준 통일 */

.shop-page {
    width: 100%;
}

.shop-page .shop-section-band {
    display: none;
}

.shop-page .shop-hero {
    margin-bottom: 0;
    min-height: 0;
}

.shop-page .shop-hero--cover {
    min-height: 76px;
    max-height: 100px;
    background-position: center top;
}

.shop-page .shop-hero:not(.shop-hero--cover) {
    min-height: 0;
}

.shop-page .shop-hero .shop-hero__overlay {
    min-height: 76px;
    align-items: center;
    padding: 0.5rem 0.65rem;
}

.shop-page .shop-hero--cover .shop-hero__overlay {
    min-height: 76px;
}

.shop-page .shop-hero__avatar {
    width: 70px;
    height: 70px;
}

.shop-page .shop-hero__title {
    font-size: 0.98rem;
}

.shop-page .shop-hero__bio {
    font-size: 0.74rem;
    opacity: 0.95;
}

.shop-page .shop-hero:not(.shop-hero--cover) .shop-hero__bio {
    color: var(--gray-600);
    opacity: 1;
}

.shop-page .shop-hero__more {
    font-size: 0.7rem;
    color: var(--purple-700);
    opacity: 1;
}

.shop-page .shop-hero--cover .shop-hero__more {
    color: var(--white);
}

@media (min-width: 721px) {
    .shop-page .shop-hero--cover {
        max-height: none;
        min-height: 140px;
    }

    .shop-page .shop-hero .shop-hero__overlay {
        min-height: 118px;
        padding: 0.75rem 1rem;
        align-items: flex-end;
    }

    /* 커버 없음: 흰 카드형 히어로는 아바타·카피를 세로 가운데 정렬 */
    .shop-page .shop-hero:not(.shop-hero--cover) .shop-hero__overlay {
        align-items: center;
    }

    .shop-page .shop-hero--cover .shop-hero__overlay {
        min-height: 140px;
    }

    .shop-page .shop-hero__avatar {
        width: 72px;
        height: 72px;
    }

    .shop-page .shop-hero__title {
        font-size: 1.1rem;
    }

    .shop-page .shop-hero__bio {
        font-size: 0.82rem;
    }

    .shop-page .shop-hero__more {
        font-size: 0.78rem;
    }
}

.shop-page .shop-tabs {
    background: var(--mall-theme-card, var(--white));
    box-shadow: none;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    /* 일반 .shop-tabs 의 border-bottom 이 몰에서도 상속되어 모바일에만 줄처럼 보일 수 있음 */
    border-bottom: none;
}

@media (min-width: 721px) {
    .shop-page .shop-tabs {
        margin-top: 0.5rem;
        margin-bottom: 0.75rem;
        background: transparent;
    }
}

.shop-page .shop-tabs__list {
    gap: 0;
    padding: 0;
    border-radius: 0;
    border: none;
    /* 미선택 구간에도 보이는 전체 기준선; 활성 탭 2px 밑줄은 margin 으로 한 픽셀 겹침 */
    border-bottom: 1px solid var(--mall-theme-border, var(--gray-200));
    background: transparent;
    box-shadow: none;
    justify-content: flex-start;
    flex-wrap: nowrap;
    display: flex;
    align-items: stretch;
}

.shop-page .shop-tabs__tab {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    padding: 0.45rem 0.35rem;
    margin: 0 0 -1px;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.82rem;
    line-height: 1.25;
    color: var(--mall-theme-text-sub, var(--gray-600));
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.shop-page .shop-tabs__tab:hover {
    color: var(--mall-theme-text, var(--gray-900));
    background: color-mix(in srgb, var(--mall-theme-text, #000) 6%, transparent);
}

.shop-page .shop-tabs__tab[aria-selected="true"] {
    background: transparent;
    color: var(--mall-theme-accent, var(--purple-700));
    font-weight: 800;
    border-bottom-color: var(--mall-theme-accent, var(--purple-700));
}

/* 상품 탭: 시트 `category` 기준 필터(기본 전체). 리뷰·소개는 동일 리듬용 리드 스페이서 */
.shop-product-categories {
    margin-bottom: 0.45rem;
}

.shop-product-categories__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.45rem;
}

.shop-product-categories__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-900);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.shop-product-categories__pill:hover {
    border-color: var(--purple-700);
    color: var(--purple-700);
}

.shop-product-categories__pill.is-active {
    background: var(--purple-700);
    color: var(--white);
    border-color: var(--purple-700);
}

.shop-page .shop-panel-lead {
    margin-bottom: 0.45rem;
}

.shop-page .shop-panel-lead--spacer {
    min-height: 2.65rem;
}

.shop-page .shop-panel-lead--reviews {
    display: flex;
    align-items: center;
    min-height: 2.65rem;
}

.shop-page .shop-panel-lead__title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--gray-900);
}

@media (min-width: 721px) {
    .shop-page .shop-panel-lead__title {
        font-size: 1.12rem;
    }
}

.shop-page .shop-tab-panel[data-shop-panel="channel"] .channel-about {
    margin-top: 0;
}

@media (max-width: 720px) {
    .shop-page .shop-hero {
        margin-bottom: 0.45rem;
    }

    .shop-page .shop-hero .shop-hero__overlay {
        padding: 0.55rem 0.85rem;
        gap: 0.55rem;
    }

    .shop-page .shop-tabs {
        padding-bottom: 0.7rem;
    }

    .shop-page .shop-tabs__list {
        padding-bottom: 0;
        align-items: stretch;
    }

    .shop-page .shop-tabs__tab {
        min-height: 48px;
        padding: 0.5rem 0.45rem;
        font-size: 0.84rem;
    }

    .shop-product-categories {
        margin-top: 0.55rem;
        margin-bottom: 0.55rem;
    }

    .shop-product-categories__inner {
        gap: 0.45rem 0.55rem;
    }

    .shop-product-categories__pill {
        min-height: 36px;
        padding: 0 0.9rem;
        font-size: 0.8rem;
    }

    .shop-page .shop-panel-lead {
        margin-top: 0.55rem;
        margin-bottom: 0.5rem;
    }

    .shop-page #shop-product-root.card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 11px;
        margin-top: 0.4rem;
    }

    .shop-page #shop-product-root .card.card--product {
        padding: 8px;
        gap: 5px;
    }

    .shop-page .shop-product-pager {
        margin-top: 1rem;
        gap: 0.45rem;
    }

    .shop-page .shop-product-pager button {
        min-width: 42px;
        min-height: 42px;
        padding: 0 0.4rem;
    }
}

.shop-page #shop-product-root.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0.45rem;
}

@media (min-width: 721px) {
    .shop-page #shop-product-root.card-grid {
        margin-top: 0.55rem;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 8px;
    }
}

.shop-page #shop-product-root .card.card--product {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 6px;
    gap: 4px;
    box-shadow: none;
}

@media (min-width: 721px) {
    .shop-page #shop-product-root .card.card--product {
        padding: 7px;
        gap: 5px;
    }
}

.shop-page #shop-product-root .card.card--product > .product-card__media {
    margin-bottom: 0.35rem;
}

@media (min-width: 721px) {
    .shop-page #shop-product-root .card.card--product > .product-card__media {
        margin-bottom: 0.45rem;
    }
}

.shop-page #shop-product-root .card.card--product h3 {
    font-size: 12px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-page #shop-product-root .card.card--product .price {
    font-size: 16px;
    font-weight: 800;
}

@media (min-width: 721px) {
    .shop-page #shop-product-root .card.card--product .price {
        font-size: 17px;
    }
}

.shop-page #shop-product-root .card.card--product .btn-primary {
    min-height: 34px;
    font-size: 11px;
    font-weight: 700;
    padding: 0 0.25rem;
    border-radius: 6px;
    background: var(--mall-theme-accent, var(--purple-700));
    border-color: var(--mall-theme-accent, var(--purple-700));
    color: #fff;
}

.shop-page #shop-product-root .card.card--product .btn-primary:hover {
    filter: brightness(1.08);
}

/* short-mall-template 과 같이 썸네일은 .product-card__media-frame 박스 안에서만 비율·크롭 (삼성 인터넷 등) */
.shop-page #shop-product-root .product-card__media-frame {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    line-height: 0;
}

.shop-page #shop-product-root .product-card__media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    vertical-align: middle;
}

/* ----- Admin layout (sidebar + dedicated footer) ----- */
.admin-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #eef0f5;
}

.admin-topbar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.admin-topbar-inner {
    width: min(1280px, 94vw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    gap: 1rem;
}

.admin-topbar-links a {
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 600;
}

.admin-topbar-links a:hover {
    color: var(--purple-700);
}

.admin-body {
    flex: 1;
    width: min(1280px, 94vw);
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.35rem 0 2.5rem;
}

.admin-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 0.75rem 0;
    position: sticky;
    top: 1rem;
}

.admin-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.admin-side-link {
    display: block;
    padding: 0.65rem 1.15rem;
    color: var(--gray-600);
    font-weight: 600;
    font-size: 0.92rem;
    border-left: 3px solid transparent;
}

.admin-side-link:hover {
    color: var(--purple-700);
    background: #faf8ff;
}

.admin-side-link.is-active {
    color: var(--purple-700);
    background: var(--purple-100);
    border-left-color: var(--purple-700);
}

.admin-sidebar-footer {
    margin-top: 0.75rem;
    padding: 0.85rem 1.15rem 0;
    border-top: 1px solid var(--gray-200);
}

.admin-sidebar-footer a {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 600;
}

.admin-sidebar-footer a:hover {
    color: var(--purple-700);
}

.admin-main.page-body {
    flex: 1;
    min-width: 0;
    padding: 0;
    margin: 0;
}

.admin-footer {
    margin-top: auto;
    border-top: 1px solid #c5c9d4;
    background: #dde1ea;
}

.admin-footer .container {
    width: min(1280px, 94vw);
}

.admin-footer p {
    margin: 0;
    padding: 0.9rem 0;
    color: #4a4d57;
    font-size: 0.82rem;
}

@media (max-width: 800px) {
    .admin-body {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        position: static;
    }

    .admin-sidebar nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.35rem;
        padding: 0 0.5rem;
    }

    .admin-side-link {
        border-left: none;
        border-bottom: 3px solid transparent;
        border-radius: 8px;
        padding: 0.55rem 0.85rem;
    }

    .admin-side-link.is-active {
        border-left-color: transparent;
        border-bottom-color: var(--purple-700);
    }

    .admin-sidebar-footer {
        border-top: none;
        padding-top: 0.35rem;
    }
}

/* ==========================================================================
   루트 랜딩 (sample/malls/short-mall-com) — 폰 목업 + 몰 카드
   ========================================================================== */

body.has-landing-page {
    background: #0f172a;
    color: #e2e8f0;
}

body.has-landing-page .site-header {
    background: rgba(15, 23, 42, 0.92);
    border-bottom-color: rgba(148, 163, 184, 0.2);
}

body.has-landing-page .site-header .brand,
body.has-landing-page .site-header .brand span {
    color: #f8fafc;
}

body.has-landing-page .partner-marquee {
    background: rgba(0, 0, 0, 0.55);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
}

body.has-landing-page .site-footer {
    background: #0f172a;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    color: #94a3b8;
}

body.has-landing-page .site-footer a {
    color: #cbd5e1;
}

body.is-about-page {
    background: #020b24;
    color: #e2e8f0;
}

body.is-about-page .site-header {
    background: rgba(15, 23, 42, 0.92);
    border-bottom-color: rgba(148, 163, 184, 0.2);
}

body.is-about-page .site-header .brand,
body.is-about-page .site-header .brand span {
    color: #f8fafc;
}

body.is-about-page .page-body--mall {
    background: #020b24;
}

body.is-about-page .shop-mobile-shell {
    background: #020b24;
    border-color: #13203f;
    min-height: auto;
}

body.is-about-page .shop-page--mobile .shop-tab-panel {
    background: #020b24;
    padding-bottom: 0;
}

@media (min-width: 480px) {
    body.is-about-page .shop-mobile-shell {
        margin-bottom: 0;
    }
}

.page-body--landing {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem 2rem;
    min-height: 0;
    background: #0f172a;
}

.landing-page {
    width: 100%;
    max-width: 420px;
}

.landing-page__stage {
    display: flex;
    justify-content: center;
    width: 100%;
}

.landing-phone {
    position: relative;
    width: 100%;
    max-width: 380px;
    border: 12px solid #1e293b;
    border-radius: 3.2rem;
    background: #020617;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    aspect-ratio: 9 / 19.5;
}

.landing-phone__notch {
    position: absolute;
    left: 50%;
    top: 0.75rem;
    transform: translateX(-50%);
    width: 110px;
    height: 30px;
    background: #020617;
    border-radius: 999px;
    z-index: 5;
}

.landing-app {
    position: absolute;
    inset: 0;
    padding: 3.25rem 0.35rem 0.5rem;
    display: flex;
    flex-direction: column;
    background: #f9f9f9;
    color: #0f0f0f;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.landing-app::-webkit-scrollbar {
    width: 4px;
}

.landing-app::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

.landing-hero {
    text-align: center;
    padding: 0.5rem 0.75rem 0.75rem;
}

.landing-hero__hint {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #2563eb;
}

.landing-hero__avatar-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.landing-hero__avatar {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 999px;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    border: 2px solid rgba(0, 0, 0, 0.06);
}

.landing-hero__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f0f0f;
}

.landing-hero__tagline {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    color: #606060;
    line-height: 1.4;
}

.landing-mall-list {
    flex: 1;
    min-height: 0;
    padding: 0.5rem 0.85rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.landing-mall-card {
    position: relative;
    display: flex;
    align-items: stretch;
    border-radius: 0.85rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.landing-mall-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.landing-mall-card__main {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.5rem 0.65rem;
    text-align: left;
    color: inherit;
}

.landing-mall-card__thumb {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #f9f9f9;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-mall-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.landing-mall-card__thumb-fallback {
    font-size: 0.75rem;
    color: #94a3b8;
}

.landing-mall-card__text {
    flex: 1;
    min-width: 0;
}

.landing-mall-card__title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f0f0f;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.landing-mall-card__desc {
    margin: 0.2rem 0 0;
    font-size: 0.75rem;
    color: #606060;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.landing-mall-card__yt {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: #64748b;
    font-size: 1.35rem;
    padding: 0.35rem;
}

.landing-mall-card__yt:hover {
    color: #dc2626;
}

.landing-mall-card--with-yt .landing-mall-card__main {
    padding-right: 2.75rem;
}

.landing-empty {
    text-align: center;
    padding: 1rem 0.5rem;
    font-size: 0.875rem;
}

.landing-foot {
    text-align: center;
    padding: 0.35rem 0 0.25rem;
    font-size: 0.8125rem;
}

.landing-foot a {
    color: #5f0080;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 480px) {
    .landing-phone {
        max-width: none;
        border-width: 10px;
        border-radius: 2.5rem;
    }

    .landing-page {
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-mall-card {
        transition: none;
    }

    .landing-mall-card:hover {
        transform: none;
    }
}

/* ==========================================================================
   공개 몰 — 모바일 셸 (sample/short-mall-template #app 폭)
   ========================================================================== */

.page-body--mall {
    background: var(--mall-theme-bg, #0f172a);
    color: var(--mall-theme-text, #f8fafc);
}

.shop-page--mobile {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.shop-mobile-shell {
    background: var(--mall-theme-card, #0f172a);
    color: var(--mall-theme-text, #f8fafc);
    min-height: 60vh;
    border-radius: 0;
    max-width: 480px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--mall-theme-border, #1e293b);
    border-left: 1px solid var(--mall-theme-border, #1e293b);
    border-right: 1px solid var(--mall-theme-border, #1e293b);
}

@media (min-width: 480px) {
    .shop-mobile-shell {
        border-radius: var(--radius-lg);
        border: 1px solid var(--mall-theme-border, #1e293b);
        margin-top: 0.5rem;
        margin-bottom: 1rem;
    }
}

.shop-mobile-sticky {
    position: sticky;
    top: var(--header-h);
    z-index: 30;
    background: var(--mall-theme-card, #0f172a);
    border-bottom: 1px solid var(--mall-theme-border, #1e293b);
}

.shop-mobile-top {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    background: var(--mall-theme-card, #0f172a);
    color: var(--mall-theme-text, #f8fafc);
}

.shop-mobile-top__avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--mall-theme-border, #e5e7eb);
}

.shop-mobile-top__text {
    flex: 1;
    min-width: 0;
}

.shop-mobile-top__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--mall-theme-text, #f8fafc);
    text-shadow: 0 1px 1px rgba(2, 6, 23, 0.45);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-mobile-top__sub {
    margin: 0.1rem 0 0;
    font-size: 0.72rem;
    color: #cbd5e1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-page--mobile .shop-tabs {
    margin: 0;
    border-top: 0;
    background: var(--mall-theme-card, #0f172a);
}

.shop-page--mobile .shop-tabs__list {
    padding: 0 0.5rem 0.35rem;
    gap: 0.35rem;
    background: var(--mall-theme-card, #0f172a);
}

.shop-page--mobile .shop-tabs__tab {
    flex: 1;
    text-align: center;
    border-radius: 999px;
    font-size: 0.8125rem;
    padding: 0.4rem 0.5rem;
    border-bottom: none;
    color: var(--mall-theme-text-sub, #94a3b8);
    background: #111827;
}

.shop-page--mobile .shop-tabs__tab[aria-selected="true"] {
    background: color-mix(in srgb, var(--mall-theme-accent, #8b5cf6) 22%, transparent);
    color: var(--mall-theme-accent, #8b5cf6);
    font-weight: 800;
}

.shop-page--mobile .shop-tab-panel {
    padding-left: 0;
    padding-right: 0;
    background: var(--mall-theme-bg, #0f172a);
}

.shop-page--mobile .shop-tab-panel[data-shop-panel="products"] {
    min-height: 56vh;
}

.shop-page--mobile .shop-hero {
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
}

.shop-page--mobile .shop-hero--cover {
    min-height: 140px;
}

.shop-page--mobile .shop-hero--products-slim.shop-hero--cover {
    min-height: 72px;
    max-height: 88px;
}

.shop-page--mobile .shop-hero--products-slim {
    background: var(--mall-theme-card, #0f172a);
    border-top: 1px solid var(--mall-theme-border, #1e293b);
    border-bottom: 1px solid var(--mall-theme-border, #1e293b);
}

.shop-page--mobile .shop-hero--products-slim .shop-hero__overlay {
    min-height: 56px;
    padding: 0.4rem 0.65rem;
    background: none;
    color: var(--mall-theme-text, #f8fafc);
}

.shop-page--mobile .shop-hero--products-slim .shop-hero__avatar {
    width: 40px;
    height: 40px;
}

.shop-page--mobile .shop-hero--products-slim .shop-hero__title {
    font-size: 0.88rem;
    color: #f8fafc !important;
    text-shadow: 0 1px 1px rgba(2, 6, 23, 0.45);
}

.shop-page--mobile .shop-hero--products-slim .shop-hero__bio,
.shop-page--mobile .shop-hero--products-slim .shop-hero__more {
    color: var(--mall-theme-text-sub, #94a3b8);
}

.shop-page--mobile .shop-hero--products-slim .shop-hero__lead--products-tab {
    display: none;
}

.shop-page--mobile .shop-product-categories {
    padding: 0;
    margin: 0;
    border-bottom: 1px solid var(--mall-theme-border, #1e293b);
    background: var(--mall-theme-card, #0f172a);
}

.shop-page--mobile .shop-product-categories__inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.5rem 0.65rem 0.55rem;
    max-width: 100%;
}

.shop-page--mobile .shop-product-categories__inner::-webkit-scrollbar {
    display: none;
}

.shop-page--mobile .shop-product-categories__pill {
    flex: 0 0 auto;
    min-height: 44px;
    min-width: 44px;
    padding: 0 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--mall-theme-border, #1e293b);
    background: #111827;
    color: var(--mall-theme-text-sub, #94a3b8);
    font-size: 0.8125rem;
}

.shop-page--mobile .shop-product-categories__pill.is-active {
    background: var(--mall-theme-accent, #8b5cf6);
    border-color: var(--mall-theme-accent, #8b5cf6);
    color: #fff;
    font-weight: 800;
}

.shop-product-search {
    border-bottom: 1px solid var(--mall-theme-border, #1e293b);
    background: var(--mall-theme-card, #0f172a);
    backdrop-filter: blur(8px);
}

.shop-page--mobile .shop-product-search {
    margin: 0;
    background: var(--mall-theme-card, #0f172a);
}

.shop-product-search__inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem 0.55rem;
    min-height: calc(var(--touch-min, 44px) + 4px);
}

.shop-product-search__icon {
    flex-shrink: 0;
    color: var(--mall-theme-text-sub, #a1a1aa);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-product-search__svg {
    width: 1.25rem;
    height: 1.25rem;
}

.shop-product-search__input {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid var(--mall-theme-border, #1e293b);
    background: #111827;
    color: var(--mall-theme-text, #f8fafc);
    font: inherit;
    font-size: 0.875rem;
    padding: 0 0.85rem;
    outline: none;
}

.shop-product-search__input::placeholder {
    color: var(--mall-theme-text-sub, #94a3b8);
}

.shop-product-search__input:focus {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--mall-theme-accent, #8b5cf6) 35%, transparent);
}

.shop-page--mobile .card-grid {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    background: var(--mall-theme-bg, #0f172a);
}

.shop-page--mobile #shop-product-root.card-grid {
    grid-template-columns: 1fr !important;
    gap: 0.55rem;
}

.shop-page--mobile #shop-product-root .card.card--product {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.6rem;
    padding: 0.55rem;
}

.shop-page--mobile #shop-product-root .card.card--product > .product-card__media {
    flex: 0 0 92px;
    width: 92px;
    margin-bottom: 0;
}

.shop-page--mobile #shop-product-root .product-card__media-frame {
    aspect-ratio: 1 / 1;
}

.shop-page--mobile #shop-product-root .card.card--product .product-card__content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.shop-page--mobile #shop-product-root .card.card--product h3 {
    font-size: 0.86rem;
    line-height: 1.28;
}

.shop-page--mobile #shop-product-root .card.card--product .price {
    font-size: 1.05rem;
}

.shop-page--mobile #shop-product-root .card.card--product h3,
.shop-mobile-shell #shop-product-root .card.card--product h3 {
    color: #f8fafc !important;
}

.shop-page--mobile #shop-product-root .card.card--product .product-card__category {
    margin: 0;
    font-size: 0.72rem;
    color: var(--mall-theme-text-sub, #94a3b8);
    line-height: 1.25;
}

.shop-page--mobile #shop-product-root .card.card--product .btn-primary {
    margin-top: auto;
    min-height: 32px;
    font-size: 0.76rem;
}

.shop-mobile-shell #shop-product-root.card-grid {
    grid-template-columns: 1fr !important;
    gap: 0.55rem !important;
}

.shop-mobile-shell #shop-product-root .card.card--product {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;
    gap: 0.6rem;
}

.shop-mobile-shell #shop-product-root .card.card--product > .product-card__media {
    flex: 0 0 92px;
    width: 92px;
    margin-bottom: 0;
}

.shop-mobile-shell #shop-product-root .card.card--product .product-card__content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.shop-page--mobile .shop-product-pager {
    padding: 0 0.5rem 1rem;
    background: var(--mall-theme-bg, #0f172a);
}

/* ----- 공개 몰 허브: 루트와 동일 헤더, 본문만 다크 (is-mall-public) ----- */
body.is-mall-public {
    background: var(--mall-theme-bg, #0f172a);
    color: var(--mall-theme-text, #f8fafc);
    -webkit-tap-highlight-color: var(--tap-accent, rgba(139, 92, 246, 0.35));
}

body.is-mall-public .site-header {
    background: rgba(15, 23, 42, 0.92);
    border-bottom-color: rgba(148, 163, 184, 0.2);
}

body.is-mall-public .site-header .brand {
    color: #f8fafc;
}

body.is-mall-public .partner-marquee {
    background: rgba(0, 0, 0, 0.55);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
}

body.is-mall-public .page-body--mall .muted,
body.is-mall-public .shop-page .muted {
    color: var(--mall-theme-text-sub, #a1a1aa);
}

body.is-mall-public .site-footer {
    background: #0f172a;
    border-top-color: #1e293b;
    color: var(--mall-theme-text-sub, #94a3b8);
}

body.is-mall-public .site-footer__copyright {
    color: var(--mall-theme-text-sub, #94a3b8);
}

body.is-mall-public .channel-about {
    background: var(--mall-theme-card, #111827);
    border-color: var(--mall-theme-border, #334155);
    color: var(--mall-theme-text, #f8fafc);
}

body.is-mall-public .channel-about__bio {
    color: var(--mall-theme-text-sub, #94a3b8);
}

body.is-mall-public .channel-about a {
    color: var(--mall-theme-accent, #8b5cf6);
}

.shop-page #shop-product-root .card.card--product h3 {
    color: var(--mall-theme-text, #f8fafc);
}

.shop-page #shop-product-root .card.card--product .price {
    color: var(--mall-theme-warning, #f97316);
}

.shop-page #shop-product-root.card-grid > .shop-empty-message,
#shop-product-root > .shop-empty-message,
#shop-loading {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    padding: 0.75rem 0.25rem 1.25rem;
    text-align: left;
    line-height: 1.55;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.shop-page #shop-product-root.card-grid.is-empty {
    display: block !important;
}

.shop-page #shop-product-root.card-grid.is-empty > .shop-empty-message {
    display: block;
    max-width: none;
    width: 100%;
    box-sizing: border-box;
    padding-right: 0.35rem;
}

.shop-page #shop-product-root .product-card__media-frame {
    background: #0f172a;
}

.shop-page .shop-product-pager button {
    background: #0f172a;
    border: 1px solid var(--mall-theme-border, #334155);
    color: var(--mall-theme-text, #f8fafc);
}

body.is-mall-public .shop-page #shop-product-root .card.card--product {
    background: var(--mall-theme-card, #0f172a);
    border-color: var(--mall-theme-border, #1e293b);
}

body.is-mall-public .shop-mobile-shell {
    border-color: #334155;
}

.shop-page .shop-product-pager button.is-active {
    background: var(--mall-theme-accent, #8b5cf6);
    border-color: var(--mall-theme-accent, #8b5cf6);
    color: #fff;
}

/* PC 화면에서도 .shop-mobile-shell 내부의 상품 리스트는 1열 고정 */
@media (min-width: 721px) {
    .shop-mobile-shell #shop-product-root.card-grid {
        grid-template-columns: 1fr !important;
    }
}

/* 모바일 셸 카드 표시를 "컴팩트 리스트 컨테이너" 형태로 강제 */
.shop-mobile-shell .shop-tab-panel[data-shop-panel="products"] .shop-hero--products-slim {
    display: none;
}

.shop-mobile-shell #shop-product-root.card-grid {
    grid-template-columns: 1fr !important;
    gap: 0.7rem !important;
    padding: 0.65rem;
    margin-top: 0 !important;
}

.shop-mobile-shell #shop-product-root .card.card--product {
    display: grid !important;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.28) !important;
    background: #ffffff !important;
}

.shop-mobile-shell #shop-product-root .card.card--product > .product-card__media {
    width: 96px !important;
    flex: 0 0 96px !important;
    margin: 0 !important;
}

.shop-mobile-shell #shop-product-root .product-card__media-frame {
    width: 96px;
    height: 96px;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    background: #e2e8f0 !important;
}

.shop-mobile-shell #shop-product-root .card.card--product .product-card__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.shop-mobile-shell #shop-product-root .card.card--product h3 {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.3;
    color: #111827 !important;
}

.shop-mobile-shell #shop-product-root .card.card--product .price {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
    color: #2563eb !important;
}

.shop-mobile-shell #shop-product-root .card.card--product .product-card__category {
    margin: 0;
    font-size: 0.72rem;
    color: #64748b;
}

.shop-mobile-shell #shop-product-root .card.card--product.card--clickable {
    cursor: pointer;
}

.shop-mobile-shell #shop-product-root .card.card--product.is-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.shop-mobile-shell #shop-product-root .card.card--product .btn-primary {
    align-self: flex-start;
    margin-top: 0.15rem;
    min-height: 30px;
    padding: 0 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
}

/* ==========================================================================
   오류 페이지 (404 / 500) — 홈 네이비, 헤더·로고 아래부터, 전역(폰 목업 없음)
   ========================================================================== */
body.has-landing-page .page-body--error {
    flex: 1;
    display: block;
    width: 100%;
    min-height: 0;
    padding-top: 0;
    padding-bottom: clamp(2.5rem, 10vh, 4rem);
    background: #0f172a;
}

body.has-landing-page .page-body--error .error-page-shell {
    padding-top: clamp(2.25rem, 7vh, 3.5rem);
    padding-bottom: 1rem;
}

body.has-landing-page .page-body--error .error-page {
    width: 100%;
    max-width: 32rem;
    margin: 0 auto;
    text-align: center;
}

body.has-landing-page .error-page__code {
    margin: 0 0 1rem;
    font-size: clamp(3.5rem, 18vw, 6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
    color: #f8fafc;
}

body.has-landing-page .error-page__code--warn {
    color: #dc2626;
}

body.has-landing-page .error-page__title {
    margin: 0 0 0.85rem;
    font-size: clamp(1.25rem, 4.5vw, 1.75rem);
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.35;
}

body.has-landing-page .error-page__message {
    margin: 0 0 2rem;
    font-size: clamp(0.9rem, 2.8vw, 1.05rem);
    line-height: 1.55;
    color: #94a3b8;
}

body.has-landing-page .error-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

body.has-landing-page a.error-page__btn,
body.has-landing-page button.error-page__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    min-width: 12rem;
    padding: 0 1.5rem;
    border-radius: 0.85rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    background-color: #dc2626;
    color: #fff;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

body.has-landing-page a.error-page__btn:hover,
body.has-landing-page button.error-page__btn:hover {
    background-color: #b91c1c;
    color: #fff;
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.45);
}

body.has-landing-page a.error-page__btn:active,
body.has-landing-page button.error-page__btn:active {
    transform: translateY(1px);
}

body.has-landing-page .error-page__btn--ghost {
    background-color: transparent;
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.5);
    box-shadow: none;
}

body.has-landing-page .error-page__btn--ghost:hover {
    background-color: rgba(148, 163, 184, 0.14);
    color: #f8fafc;
    box-shadow: none;
}
