: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;
}

@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(--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(--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(--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(--gray-900);
    background: rgba(0, 0, 0, 0.03);
}

.shop-page .shop-tabs__tab[aria-selected="true"] {
    background: transparent;
    color: var(--purple-700);
    font-weight: 800;
    border-bottom-color: 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;
}

/* 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;
    }
}
