/* ==========================================================================
   METIVATOR — Shop catalog page
   home의 .product-card 디자인 재활용 + 카탈로그 전용 grid·필터·페이지네이션
   ========================================================================== */

.shop {
    width: 100%;
    background: var(--color-bg);
    font-family: "SUIT", sans-serif;
}
.shop__inner {
    width: 1228px;
    max-width: 100%;
    margin: 0 auto;
    padding: 30px 0 120px;
    box-sizing: border-box;
}
@media screen and (max-width: 1228px) {
    .shop__inner { padding: 30px 16px 80px; }
}

.shop__title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px;
}
@media screen and (max-width: 890px) {
    .shop__title { font-size: 24px; }
}
.shop__count {
    font-size: 14px;
    color: #707070;
    margin: 0 0 32px;
}

/* 카테고리 필터 (pill 형태) */
.shop__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}
.shop__category-pill {
    padding: 10px 20px;
    border: 1px solid var(--color-line);
    border-radius: 20px;
    background: #ffffff;
    color: #000;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.shop__category-pill:hover {
    background: #eeeeee;
    color: #000;
    opacity: 1;
}
.shop__category-pill.is-active {
    background: #000000;
    color: #ffffff;
}
.shop__category-pill.is-active:hover { background: #222222; color: #ffffff; }

/* 정렬·가격 필터 form */
.shop__filter-form {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.shop__select {
    height: 40px;
    padding: 0 36px 0 16px;
    border: 1px solid var(--color-line);
    border-radius: 4px;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path fill='none' stroke='black' stroke-width='1.5' d='M3 5l3 3 3-3'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    color: #000;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
.shop__select:focus { outline: 2px solid #000; outline-offset: -1px; }

/* 페이지네이션 */
.shop__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 48px;
}
.shop__page-link {
    padding: 12px 20px;
    border: 1px solid var(--color-line);
    background: #ffffff;
    color: #000;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    transition: background 0.15s;
}
.shop__page-link:hover {
    background: #eeeeee;
    color: #000;
    opacity: 1;
}
.shop__page-current {
    font-size: 14px;
    color: #707070;
}

/* 빈 결과 */
.shop__empty {
    text-align: center;
    padding: 80px 0;
    color: #aaaaaa;
    font-size: 16px;
    line-height: 1.6;
}
.shop__empty a {
    color: #ff8835;
    text-decoration: underline;
}

/* ==========================================================================
   Catalog SearchBar — 원본 pie3d /p/search 상단 (Logo + 큰 검색바 + KeyMessage + HashTag)
   ========================================================================== */
.shop__searchbar-section {
    width: 1228px;
    max-width: 100%;
    margin: 65px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
}
@media screen and (max-width: 1228px) {
    .shop__searchbar-section { margin: 30px auto 0; padding: 0 16px; }
}
@media screen and (max-width: 930px) {
    .shop__searchbar-section { background: #fff; padding: 30px 16px 40px; margin: 0; }
}

.shop__searchbar-row {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 50px;
    align-items: center;
}
.shop__searchbar-logo {
    width: 162px;
    height: 48px;
    display: flex;
    align-items: center;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #000;
    line-height: 1;
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
    font-family: var(--font-family), sans-serif;
}
.shop__searchbar-logo:hover { color: #000; opacity: 1; }
@media screen and (max-width: 930px) {
    .shop__searchbar-logo { display: none; }
}

.shop__searchbar-form {
    flex: 1;
    display: flex;
    height: 56px;
    border-radius: 3px;
}
.shop__searchbar-form .searcher__icon {
    padding: 0 17px 0 20px;
    border-left: 1px solid #000;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    border-right: 0;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.shop__searchbar-form .searcher__icon img { width: 20px; height: 20px; -webkit-user-drag: none; }
.shop__searchbar-form .searcher__input {
    flex: 1;
    border: 0;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    background: #ffffff;
    color: #000;
    padding: 12px 14px;
    font-family: "SUIT", inherit;
    font-weight: 400;
    font-size: 17px;
    line-height: 22px;
    outline: none;
    appearance: none;
    width: 100%;
}
.shop__searchbar-form .searcher__input::placeholder { color: #c8c8c8; font-weight: 400; }
.shop__searchbar-form .searcher__btn {
    border: 0;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    background: #000;
    color: #fff;
    width: 158px;
    height: 56px;
    font-family: "SUIT", inherit;
    font-weight: 400;
    font-size: 18px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    flex-shrink: 0;
}
.shop__searchbar-form .searcher__btn:hover { opacity: 0.9; }

.shop__keymessage {
    width: 100%;
    max-width: 1180px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    gap: 40px;
}
@media screen and (max-width: 930px) {
    .shop__keymessage { flex-direction: column; align-items: center; text-align: center; margin-top: 30px; gap: 24px; }
}
.shop__keymessage-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
@media screen and (max-width: 930px) {
    .shop__keymessage-text { align-items: center; }
}
.shop__keymessage-img {
    display: block;
    height: 260px;
    width: auto;
    flex-shrink: 0;
    -webkit-user-drag: none;
    user-select: none;
}
@media screen and (max-width: 1228px) {
    .shop__keymessage-img { display: none; }
}
.shop__keymessage-line {
    font-weight: 400;
    font-size: 42px;
    line-height: 56px;
    color: #000;
    margin: 0;
}
@media screen and (max-width: 930px) {
    .shop__keymessage-line { font-size: 38px; line-height: 50px; }
}
@media screen and (max-width: 620px) {
    .shop__keymessage-line { font-size: 28px; line-height: 42px; }
}
.shop__hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 24px;
}
@media screen and (max-width: 930px) {
    .shop__hashtags { justify-content: center; }
}
.shop__hashtag {
    width: fit-content;
    height: 36px;
    border: 1px solid #4d4d4d;
    border-radius: 18px;
    padding: 0 18px;
    font-weight: 400;
    font-size: 15px;
    text-align: center;
    line-height: 34px;
    color: #343434;
    background: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
    box-sizing: border-box;
}
.shop__hashtag:hover {
    color: #ffffff;
    background: #2b2b2f;
    opacity: 1;
}
.shop__hashtag--active {
    color: #ffffff;
    background: #1c1c1c;
    border-color: #1c1c1c;
}
.shop__hashtag--active:hover { color: #ffffff; background: #1c1c1c; opacity: 0.9; }

/* ==========================================================================
   Catalog layout — 원본 pie3d /p/search Filter sidebar(280) + 본 area
   ========================================================================== */
.shop__layout {
    display: flex;
    gap: 33px;
    align-items: flex-start;
    margin-top: 30px;
}
@media screen and (max-width: 1228px) {
    .shop__layout {
        flex-direction: column;
        align-items: stretch;        /* main이 viewport 전체 가로 사용 */
        gap: 30px;
    }
    .shop__main { width: 100%; }
}

/* Filter Sidebar (원본 Filter/index.tsx Wrapper 280, 1px black, sticky) */
.shop__filter {
    width: 280px;
    border: 1px solid #000;
    background-color: #ffffff;
    position: sticky;
    top: 5px;
    height: fit-content;
    flex-shrink: 0;
    margin-bottom: 100px;
}
@media screen and (max-width: 1228px) {
    .shop__filter { display: none; }            /* 원본 pie3d 모바일/태블릿 동일 — 필터 숨김 */
}
.shop__filter-form { display: block; margin: 0; }
.shop__filter-head {
    width: 100%;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.shop__filter-title {
    font-weight: 600;
    font-size: 16px;
    line-height: 19px;
}
.shop__filter-clear {
    color: #232323;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    text-decoration: underline;
    cursor: pointer;
}
.shop__filter-clear:hover { color: #000; opacity: 1; }
.shop__filter-line {
    width: 100%;
    height: 1px;
    background-color: #000;
}
.shop__filter-section {
    padding: 15px 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.shop__filter-section-title {
    font-weight: 600;
    font-size: 16px;
    line-height: 19px;
    margin-bottom: 8px;
}
/* 카테고리 항목들은 2 col grid (원본 SearchFilterStyle.Box default) */
.shop__filter-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.shop__filter-options--single {
    grid-template-columns: 1fr;
}
.shop__filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.shop__filter-item input[type="radio"],
.shop__filter-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.shop__check {
    width: 16px;
    height: 16px;
    border: 1px solid #000;
    border-radius: 1px;
    background-color: #fff;
    flex-shrink: 0;
    display: inline-block;
    transition: background-color 0.15s, border-color 0.15s;
}
.shop__filter-item input:checked + .shop__check {
    background-color: #ff8838;
    border-color: #ff8838;
}
.shop__filter-name {
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: #000;
}

/* 본 area */
.shop__main {
    flex: 1;
    min-width: 0;
}

/* ==========================================================================
   Toolbar — 사이드바 주석 처리 후 카테고리 chips + 정렬·가격 select 통합
   ========================================================================== */
.shop__toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 0 0 20px;
    margin: 0 0 24px;
    border-bottom: 1px solid var(--color-line);
}
.shop__toolbar-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.shop__toolbar-chip {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 18px;
    border: 1px solid var(--color-line);
    border-radius: 18px;
    background: #ffffff;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    cursor: pointer;
}
.shop__toolbar-chip:hover {
    background: #f5f5f5;
    color: var(--color-text);
    opacity: 1;
}
.shop__toolbar-chip.is-active {
    background: #1c1c1c;
    color: #ffffff;
    border-color: #1c1c1c;
}
.shop__toolbar-chip.is-active:hover {
    background: #1c1c1c;
    color: #ffffff;
    opacity: 0.9;
}
.shop__toolbar-form {
    display: flex;
    gap: 8px;
    margin: 0;
    flex-wrap: wrap;
}
.shop__toolbar-select {
    height: 36px;
    padding: 0 36px 0 14px;
    border: 1px solid var(--color-line);
    border-radius: 4px;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path fill='none' stroke='black' stroke-width='1.5' d='M3 5l3 3 3-3'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    color: var(--color-text);
    font-size: 14px;
    font-family: inherit;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
.shop__toolbar-select:focus {
    outline: 2px solid #1c1c1c;
    outline-offset: -1px;
}
@media screen and (max-width: 620px) {
    .shop__toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .shop__toolbar-form {
        justify-content: flex-end;
    }
    .shop__toolbar-select {
        flex: 1;
        min-width: 0;
    }
}

/* Products grid (catalog용) — 297×3 col 작은 카드 (원본 search.tsx grid auto-fill 297) */
.shop__products {
    display: grid;
    grid-template-columns: repeat(auto-fill, 297px);
    gap: 12px;
    row-gap: 28px;
    margin: 0 0 48px;
    justify-content: flex-start;
}
@media screen and (max-width: 1228px) {
    .shop__products { justify-content: center; }
}
@media screen and (max-width: 620px) {
    .shop__products { grid-template-columns: 1fr; }
}

/* Catalog 전용 작은 카드 — 원본 search/Product/index.tsx (297×418) 동일 spec */
.shop__products .product-card {
    width: 297px;
    height: 418px;
}
@media screen and (max-width: 620px) {
    .shop__products .product-card { width: 100%; max-width: 297px; margin: 0 auto; }
}
.shop__products .product-card__img {
    width: 100%;
    height: 260px;
    border-radius: 3px 3px 0 0;
}
.shop__products .product-card__like {
    top: 11px;
    right: 11px;
    width: 28px;
    height: 28px;
    padding: 4px;
}
.shop__products .product-card__like-icon { inset: 4px; width: 20px; height: 20px; }
.shop__products .product-card__info {
    padding: 16px;
    width: 100%;
    height: 158px;
}
.shop__products .product-card__name {
    font-weight: 600;
    font-size: 17px;
    line-height: 24px;
    -webkit-line-clamp: 2;
}
.shop__products .product-card__meta {
    gap: 14px;
}
.shop__products .product-card__artist {
    font-size: 14px;
    line-height: 15px;
    color: #595b60;
}
.shop__products .product-card__price-row {
    gap: 10px;
    align-items: flex-end;
}
.shop__products .product-card__discount-percent {
    font-size: 16px;
    line-height: 20px;
    font-weight: 700;
    color: #4265fe;
}
.shop__products .product-card__price {
    font-size: 18px;
    line-height: 22px;
    font-weight: 600;
    color: #030303;
}
.shop__products .product-card__price-before {
    font-size: 12px;
    line-height: 15px;
    color: #b0aeac;
}

/* 페이지네이션 — 원본 158×56 버튼 */
.shop__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 125px;
}
.shop__page-link {
    width: 158px;
    height: 56px;
    background-color: #ffffff;
    border: 1px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    font-size: 18px;
    line-height: 22px;
    color: #000;
    text-decoration: none;
    border-radius: 3px;
    padding: 0;
}
.shop__page-link:hover { background: #eeeeee; color: #000; opacity: 1; }
.shop__page-current {
    font-weight: 400;
    font-size: 14px;
    color: #000;
}

/* ==========================================================================
   Product detail — 원본 pie3d Main.tsx + Contents/index.tsx + FloatBox/InfoBox
   풀폭 Hero(border-bottom 1px black) + 1200 컨테이너 + 835 Contents + 348 sticky FloatBox
   ========================================================================== */
.product-detail {
    width: 100%;
    background: var(--color-bg);
    font-family: "SUIT", sans-serif;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Hero — 풀폭 ThumbnailWrapper (border-bottom 1px black, 이미지 860w 중앙) */
.product-detail__hero {
    width: 100%;
    border-bottom: 1px solid #000;
    background: #ffffff;
}
.product-detail__hero-frame {
    width: 860px;
    max-width: 100%;
    aspect-ratio: 1.135;          /* catalog card image area 295×260 와 동일 비율 */
    margin: 0 auto;
    overflow: hidden;
    background: #ffffff;
}
.product-detail__hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;            /* placeholder(1.135:1)는 crop 없음, real photos는 cover crop */
    object-position: center;
    -webkit-user-drag: none;
}
@media screen and (max-height: 950px) {
    .product-detail__hero-frame { width: 700px; }
}
@media screen and (max-width: 780px) {
    .product-detail__hero-frame { width: 100%; }
}

/* Container — 1200w mx auto */
.product-detail__container {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px 80px;
    box-sizing: border-box;
}
@media screen and (max-width: 1200px) {
    .product-detail__container { padding: 0 16px 60px; }
}

/* Tab links (LinkWraper) — 38h · padding 0 17 · 1px black · radius 2 */
.product-detail__links {
    display: flex;
    flex-direction: row;
    gap: 9px;
    margin-top: 37px;
    margin-bottom: 7px;
}
@media screen and (max-height: 950px) {
    .product-detail__links { margin-top: 0; padding-top: 22px; }
}
@media screen and (max-width: 1200px) {
    .product-detail__links { display: none; }
}
.product-detail__link {
    height: 38px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #000;
    border-radius: 2px;
    color: #1c1c1c;
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
    text-decoration: none;
}
.product-detail__link:hover { background: #f5f5f5; color: #1c1c1c; opacity: 1; }

/* Inner row — InnerWrapper · gap 22 · contents 835 + float 348 */
.product-detail__inner {
    display: flex;
    flex-direction: row;
    gap: 22px;
    justify-content: space-between;
    align-items: flex-start;
}
@media screen and (max-width: 1200px) {
    .product-detail__inner { flex-direction: column-reverse; align-items: center; gap: 20px; }
}

/* Contents 835w 1px black radius 2 white bg */
.product-detail__contents {
    width: 835px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #000;
    border-radius: 2px;
    color: #1c1c1c;
    box-sizing: border-box;
}
@media screen and (max-width: 1200px) {
    .product-detail__contents { width: 860px; max-width: 100%; }
}
@media screen and (max-width: 860px) {
    .product-detail__contents { width: 100%; }
}

/* ContentTopBox — 제목·하트 + 파트너 (border-bottom 1px black)
   원본은 모바일에서 FloatBox로 옮기지만, metivator는 모든 viewport에서 표시 (단순화) */
.product-detail__top {
    border-bottom: 1px solid #000;
}
@media screen and (max-width: 720px) {
    .product-detail__title-box { padding: 20px 20px 12px; }
    .product-detail__title { font-size: 22px; line-height: 28px; }
    .product-detail__partner-profile { margin: 18px 20px; gap: 16px; }
    .product-detail__partner-avatar { width: 48px; height: 48px; font-size: 18px; }
    .product-detail__partner-name { font-size: 16px; line-height: 20px; }
    .product-detail__partner-label { font-size: 12px; line-height: 15px; }
}
.product-detail__title-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 25px 30px;
    gap: 16px;
}
.product-detail__title {
    font-weight: 700;
    font-size: 28px;
    line-height: 35px;
    color: #1c1c1c;
    margin: 0;
}
.product-detail__heart {
    position: relative;
    width: 32px;
    height: 28px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s;
}
.product-detail__heart:hover { transform: scale(1.1); }
.product-detail__heart-icon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.15s;
    -webkit-user-drag: none;
}
.product-detail__heart-icon--fill { opacity: 0; }
.product-detail__heart.is-wished .product-detail__heart-icon--empty { opacity: 0; }
.product-detail__heart.is-wished .product-detail__heart-icon--fill { opacity: 1; }
.product-detail__heart.is-busy { pointer-events: none; opacity: 0.6; }
.product-detail__heart.heart-pop { animation: heart-pop 0.4s ease; }
.product-detail__partner-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.product-detail__partner-profile {
    display: flex;
    gap: 23px;
    align-items: center;
    margin: 30px;
}
.product-detail__partner-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #707070;
    flex-shrink: 0;
}
.product-detail__partner-meta { display: flex; flex-direction: column; gap: 8px; }
.product-detail__partner-name {
    font-size: 20px;
    font-weight: 400;
    line-height: 25px;
    color: #1c1c1c;
}
.product-detail__partner-label {
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    color: #707070;
}

/* Field — padding 30 43 + border-bottom 1px #303030 (FieldUI.tsx 사양) */
.product-detail__field {
    width: 100%;
    padding: 30px 43px 30px 43px;
    border-bottom: 1px solid #303030;
    box-sizing: border-box;
}
.product-detail__field--last { border-bottom: 0; }
@media screen and (max-width: 860px) {
    .product-detail__field { padding: 35px 30px; }
}

.product-detail__field-info {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 62px;
    margin-bottom: 68px;
}
@media screen and (max-width: 860px) {
    .product-detail__field-info { flex-direction: column; gap: 30px; margin-bottom: 40px; }
}
.product-detail__field-key { display: flex; flex-direction: column; gap: 13px; max-width: 210px; }
.product-detail__field-key-title {
    font-weight: 700;
    font-size: 13px;
    line-height: 16px;
    color: #1c1c1c;
}
.product-detail__field-key-list { display: flex; flex-direction: row; gap: 8px; flex-wrap: wrap; }
.product-detail__field-key-box {
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
    border: 1px solid #000;
    padding: 4px 8px;
    border-radius: 2px;
    height: fit-content;
    width: fit-content;
}

.product-detail__mini-field { margin-bottom: 60px; }
.product-detail__mini-field--last { margin-bottom: 30px; }
.product-detail__mini-title {
    font-weight: 700;
    font-size: 20px;
    line-height: 25px;
    color: #1c1c1c;
    margin-bottom: 13px;
}
.product-detail__mini-body {
    font-weight: 400;
    font-size: 15px;
    line-height: 1.5;
    color: #000;
    word-break: keep-all;
    white-space: pre-wrap;
}

/* === Rich content body (CKEditor 5 출력) — `.ck-content` 표준 클래스 베이스
   편집기 ck-content와 동일한 typography·spacing 적용으로 WYSIWYG 일치
   ====================================================================== */
.ck-content.product-detail__rich,
.product-detail__rich {
    font-family: "SUIT", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1c1c1c;
    white-space: normal;
    word-break: keep-all;
}
.product-detail__rich > *:first-child { margin-top: 0; }
.product-detail__rich > *:last-child { margin-bottom: 0; }

/* Block elements — 편집기 ck-content와 동일 사양 */
.product-detail__rich p {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.7;
    color: #1c1c1c;
}
.product-detail__rich h2 {
    margin: 32px 0 14px;
    font-weight: 700;
    font-size: 26px;
    line-height: 1.4;
    color: #1c1c1c;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-line);
}
.product-detail__rich h3 {
    margin: 26px 0 12px;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.4;
    color: #1c1c1c;
}
.product-detail__rich h4 {
    margin: 22px 0 10px;
    font-weight: 600;
    font-size: 17px;
    line-height: 1.4;
    color: #1c1c1c;
}
.product-detail__rich strong, .product-detail__rich b { font-weight: 700; }
.product-detail__rich em, .product-detail__rich i { font-style: italic; }
.product-detail__rich s, .product-detail__rich del { text-decoration: line-through; color: #707070; }
.product-detail__rich u { text-decoration: underline; }
.product-detail__rich a {
    color: #1c1c1c;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.product-detail__rich a:hover { color: #FF8838; opacity: 1; }
.product-detail__rich ul, .product-detail__rich ol {
    margin: 0 0 14px;
    padding-left: 24px;
}
.product-detail__rich ul { list-style: disc; }
.product-detail__rich ol { list-style: decimal; }
.product-detail__rich li {
    margin: 4px 0;
    font-size: 16px;
    line-height: 1.7;
    color: #1c1c1c;
}
.product-detail__rich li > ul, .product-detail__rich li > ol { margin: 4px 0; }
.product-detail__rich blockquote {
    margin: 16px 0;
    padding: 12px 18px;
    border-left: 3px solid #FF8838;
    background: #fff7ef;
    color: #1c1c1c;
    font-size: 16px;
    line-height: 1.7;
    border-radius: 0 4px 4px 0;
}
.product-detail__rich blockquote p { margin: 0; }
.product-detail__rich code {
    padding: 2px 6px;
    border-radius: 3px;
    background: #f3f4f6;
    color: #c92a2a;
    font-family: "JetBrains Mono", "Menlo", Consolas, monospace;
    font-size: 13px;
}
.product-detail__rich pre {
    margin: 14px 0;
    padding: 14px 16px;
    border-radius: 4px;
    background: #1c1c1c;
    color: #f5f5f5;
    font-family: "JetBrains Mono", "Menlo", Consolas, monospace;
    font-size: 13px;
    line-height: 1.6;
    overflow-x: auto;
}
.product-detail__rich pre code { background: transparent; color: inherit; padding: 0; }
.product-detail__rich hr {
    margin: 28px 0;
    border: 0;
    border-top: 1px solid var(--color-line);
}

/* === Image — ck-content figure.image 모든 정렬 클래스 매핑 === */
.product-detail__rich img,
.product-detail__rich .image img,
.product-detail__rich figure.image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}
.product-detail__rich figure.image,
.product-detail__rich figure.image.image_resized {
    margin: 16px auto;
    display: block;
    max-width: 100%;
    clear: both;
}
/* CKEditor 5의 image alignment classes — 모두 매핑 (block-align / inline align 둘 다) */
.product-detail__rich figure.image.image-style-align-center,
.product-detail__rich figure.image.image-style-block-align-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.product-detail__rich figure.image.image-style-align-center img,
.product-detail__rich figure.image.image-style-block-align-center img {
    margin-left: auto;
    margin-right: auto;
}
.product-detail__rich figure.image.image-style-align-left,
.product-detail__rich figure.image.image-style-block-align-left {
    margin-right: auto;
    margin-left: 0;
    text-align: left;
}
.product-detail__rich figure.image.image-style-align-right,
.product-detail__rich figure.image.image-style-block-align-right {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
}
.product-detail__rich figure.image.image-style-side {
    float: right;
    margin-left: 16px;
    margin-right: 0;
    max-width: 50%;
}
.product-detail__rich figure.image.image_resized {
    /* width attribute가 figure에 inline style로 지정됨 — 그대로 사용 */
    display: block;
    max-width: 100%;
}
.product-detail__rich figure.image.image_resized.image-style-align-center,
.product-detail__rich figure.image.image_resized.image-style-block-align-center {
    margin-left: auto;
    margin-right: auto;
}
.product-detail__rich figure.image > figcaption {
    margin-top: 6px;
    font-size: 13px;
    color: #707070;
    text-align: center;
}

/* === Table === */
.product-detail__rich figure.table {
    margin: 16px 0;
    overflow-x: auto;
}
.product-detail__rich table {
    border-collapse: collapse;
    width: 100%;
    min-width: 480px;
    font-size: 14px;
    line-height: 1.5;
}
.product-detail__rich table th,
.product-detail__rich table td {
    padding: 8px 12px;
    border: 1px solid var(--color-line);
    text-align: left;
    vertical-align: top;
}
.product-detail__rich table th {
    background: #f8f8f8;
    font-weight: 700;
}

/* === Todo list === */
.product-detail__rich .todo-list { list-style: none; padding-left: 0; }
.product-detail__rich .todo-list li { display: flex; align-items: flex-start; gap: 8px; }
.product-detail__rich .todo-list .todo-list__label > input[type="checkbox"] { margin-top: 5px; }

/* === Inline text alignment (CKEditor 5의 alignment 플러그인 출력) === */
.product-detail__rich [style*="text-align:center"] { text-align: center; }
.product-detail__rich [style*="text-align:right"] { text-align: right; }
.product-detail__rich [style*="text-align:justify"] { text-align: justify; }

/* === Media embed (YouTube / Vimeo) — figure.media + .rich-embed === */
.product-detail__rich figure.media {
    margin: 16px 0;
    max-width: 100%;
}
.product-detail__rich .rich-embed,
.product-detail__rich figure.media > div {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;  /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #000;
}
.product-detail__rich .rich-embed iframe,
.product-detail__rich figure.media iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Warning section (Contents/Warning.tsx 사양) */
.product-detail__warning-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 25px;
    color: #1c1c1c;
    margin-bottom: 13px;
}
.product-detail__warning-body {
    font-weight: 400;
    font-size: 15px;
    line-height: 24px;
    color: #1c1c1c;
}
.product-detail__warning-body a {
    color: #ff8838;
    text-decoration: underline;
}

/* Sticky FloatBox sidebar (348w) — 원본 FloatBox/index.tsx (sticky top 11) */
.product-detail__sidebar {
    position: sticky;
    top: 11px;
    width: 348px;
    flex-shrink: 0;
    align-self: flex-start;
    height: fit-content;
}
@media screen and (max-width: 1200px) {
    .product-detail__sidebar {
        position: static;
        width: 860px;
        max-width: 100%;
        align-self: center;          /* desktop align-self: flex-start 리셋 — column-reverse에서 좌측 align되던 버그 fix */
    }
}
@media screen and (max-width: 860px) {
    .product-detail__sidebar { width: 100%; padding: 0; box-sizing: border-box; }
}

/* FloatBoxWrapper — 348w · padding 25 28 · 1px black · radius 2 */
.float-box {
    width: 348px;
    padding: 25px 28px;
    background: #ffffff;
    border: 1px solid #000;
    border-radius: 2px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
@media screen and (max-width: 1200px) {
    .float-box { width: 100%; }
}

/* Price — 33/500 LH41 ml 3 mb 27 (style.tsx PriceText 그대로) */
.float-box__price-block { margin: 0 0 29px 3px; }
.float-box__price-current {
    font-weight: 500;
    font-size: 33px;
    line-height: 41px;
    color: #000;
}
.float-box__price-before {
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #b0aeac;
    text-decoration: line-through;
    margin-top: 4px;
}

/* Buttons (BuyBtn 293×56 #FF8838 mb 12 + CartBtn 293×56 1px black) */
.float-box__buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.float-box__buy-form,
.float-box__cart-form { width: 100%; margin: 0; padding: 0; }
.float-box__buy-btn,
.float-box__cart-btn {
    width: 100%;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 2px;
    font-weight: 400;
    font-size: 18px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    box-sizing: border-box;
}
.float-box__buy-btn {
    background: #ff8838;
    color: #000;
    border: none;
}
.float-box__buy-btn:hover:not(:disabled) { filter: brightness(0.95); color: #000; opacity: 1; }
.float-box__buy-btn:disabled { cursor: not-allowed; opacity: 0.6; }
.float-box__cart-btn {
    background: #ffffff;
    color: #000;
    border: 1px solid #000;
}
.float-box__cart-btn:hover:not(:disabled) { background: #f5f5f5; color: #000; opacity: 1; }
.float-box__cart-btn:disabled { cursor: not-allowed; opacity: 0.6; }

/* FileInfo box — 원본 FloatBox/InfoBox/presenter.tsx 두 번째 FloatBoxWrapper (padding 0) */
.float-box--file-info {
    margin-top: 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.float-box__info-row {
    padding: 25px 28px;
    border-bottom: 1px solid #000;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.float-box__info-row--last { border-bottom: 0; }
.float-box__info-label {
    font-weight: 700;
    font-size: 14px;
    line-height: 18px;
    color: #000;
}
.float-box__info-value {
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #000;
    word-break: keep-all;
}

/* Related (catalog grid 재사용 — 387×auto-fill) */
.product-detail__related {
    margin-top: 80px;
}
.product-detail__related-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 24px;
    color: #1c1c1c;
}
.product-detail__related .shop__products {
    margin-bottom: 0;
}
@media screen and (max-width: 1200px) {
    .product-detail__related {
        max-width: 860px;                   /* contents/sidebar 860 max와 동일 — 우측 끝선 일치 */
        margin-left: auto;
        margin-right: auto;
    }
    .product-detail__related .shop__products {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .product-detail__related .shop__products .product-card {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: auto;
        margin: 0;
    }
    .product-detail__related .shop__products .product-card__img {
        height: auto;
        aspect-ratio: 1.135;                /* placeholder SVG 자연 비율 일치 — 텍스트 크롭/왜곡 없음 */
    }
}
@media screen and (max-width: 860px) {
    .product-detail__related { max-width: 100%; }
}

/* ─────────────────────────────────────────
   Cart page (Phase 4.C.1)
   원본: pie3d cart.tsx — Wrapper 1200×fit + Main 852 (border-right) + Purchase 348
   ───────────────────────────────────────── */
.cart-page {
    width: 100%;
    background: #fafafa;
    padding: 30px 16px 199px;
    box-sizing: border-box;
}
.cart {
    display: flex;
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    border: 1px solid #000000;
    background: #ffffff;
    height: fit-content;
}
.cart__main {
    width: 852px;
    flex-shrink: 0;
    position: relative;
    border-right: 1px solid #000000;
}
.cart__title {
    font-weight: 700;
    font-size: 33px;
    line-height: 41px;
    color: #1c1c1c;
    margin: 36px 50px;
}

/* List items (852×130) */
.cart__list { padding-bottom: 90px; }
.cart__item {
    width: 852px;
    height: 130px;
    display: flex;
    align-items: center;
    position: relative;
}
.cart__item-check {
    width: 96px;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 45px;
    box-sizing: border-box;
    flex-shrink: 0;
}
.cart__check {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cart__check--on { background: #FF8838; border: none; }
.cart__check--off { background: #ffffff; border: 1px solid #000; }
.cart__check img { width: 10px; height: 10px; -webkit-user-drag: none; }
.cart__item-thumb {
    display: block;
    width: 126.8px;
    height: 111px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f4f4f4;
}
.cart__item-thumb-img {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.cart__item-desc {
    width: 320px;
    height: 96px;
    margin-left: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #1c1c1c;
    text-decoration: none;
    flex-shrink: 0;
}
.cart__item-desc:hover { color: #1c1c1c; opacity: 1; }
.cart__item-name {
    font-weight: 500;
    font-size: 18px;
    line-height: 28px;
    color: #1c1c1c;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cart__item-price {
    margin-left: 52px;
    font-weight: 600;
    font-size: 18px;
    line-height: 24px;
    color: #030303;
    white-space: nowrap;
}
.cart__item-delete-form {
    position: absolute;
    top: 50%;
    right: 25px;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
}
.cart__item-delete {
    width: 25px;
    height: 27px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart__item-delete img { width: 25px; height: 27px; -webkit-user-drag: none; }
.cart__item-delete:hover { opacity: 0.7; }

/* Empty */
.cart__empty {
    padding: 140px 0 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 23px;
}
.cart__empty-text {
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #1c1c1c;
    text-align: center;
}
.cart__empty-btn {
    width: 182px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #000;
    border-radius: 3px;
    font-weight: 400;
    font-size: 18px;
    line-height: 22px;
    color: #1c1c1c;
    background: #ffffff;
    text-decoration: none;
}
.cart__empty-btn:hover { background: #f5f5f5; color: #1c1c1c; opacity: 1; }

/* Purchase (348w) */
.cart__purchase {
    width: 348px;
    flex-shrink: 0;
}
.cart__purchase-inner {
    padding: 20px 27px 31px;
    display: flex;
    flex-direction: column;
}

/* 이름 input — 원본 InputBox.tsx (293×56 1px #aaa, 18/400) */
.cart__purchase-field {
    margin-bottom: 24px;
}
.cart__purchase-field-label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #1c1c1c;
    margin-bottom: 12px;
}
.cart__purchase-field-input {
    display: block;
    width: 100%;
    height: 56px;
    border-radius: 2px;
    background: #ffffff;
    border: 1px solid #aaaaaa;
    padding: 12px 16px 13px;
    font-weight: 400;
    font-size: 18px;
    line-height: 22px;
    color: #000;
    box-sizing: border-box;
    font-family: inherit;
    outline: none;
    transition: border 0.15s;
}
.cart__purchase-field-input::placeholder { color: #c8c8c8; }
.cart__purchase-field-input:focus { border: 2px solid #000; }

/* 쿠폰 적용 — input + 적용/해제, 적용 시 applied row 표시 */
.cart__coupon { box-sizing: border-box; }
.cart__coupon-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.cart__coupon[data-state="empty"] .cart__coupon-row--applied { display: none; }
.cart__coupon[data-state="applied"] .cart__coupon-row--input { display: none; }
.cart__coupon-input {
    flex: 1;
    height: 56px;
    padding: 0 16px;
    border: 1px solid #000;
    border-radius: 2px;
    background: #ffffff;
    color: #1c1c1c;
    font-family: inherit;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    outline: none;
    box-sizing: border-box;
    min-width: 0;
}
.cart__coupon-input::placeholder { color: #c8c8c8; }
.cart__coupon-input:focus { border: 2px solid #000; }
.cart__coupon-btn {
    flex-shrink: 0;
    min-width: 80px;
    padding: 0 18px;
    height: 56px;
    border: 1px solid #000;
    border-radius: 2px;
    background: #1c1c1c;
    color: #ffffff;
    font-family: inherit;
    font-weight: 500;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.15s, background 0.15s;
    box-sizing: border-box;
}
.cart__coupon-btn:hover:not(:disabled) { opacity: 0.85; color: #ffffff; }
.cart__coupon-btn:disabled { cursor: not-allowed; opacity: 0.5; }
.cart__coupon-btn--ghost {
    background: #ffffff;
    color: #1c1c1c;
}
.cart__coupon-btn--ghost:hover:not(:disabled) { background: #f5f5f5; color: #1c1c1c; opacity: 1; }

.cart__coupon-applied {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid #FF8838;
    border-radius: 2px;
    background: #fff7ef;
    box-sizing: border-box;
    overflow: hidden;
}
.cart__coupon-applied-code {
    font-weight: 600;
    font-size: 14px;
    line-height: 18px;
    color: #1c1c1c;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cart__coupon-applied-discount {
    margin-top: 4px;
    font-weight: 700;
    font-size: 15px;
    line-height: 19px;
    color: #FF8838;
}
.cart__coupon-msg {
    margin-top: 8px;
    min-height: 18px;
    font-weight: 400;
    font-size: 13px;
    line-height: 18px;
}
.cart__coupon-msg[data-kind="err"] { color: #d23616; }
.cart__coupon-msg[data-kind="ok"] { color: #00b86b; }
.cart__coupon-msg[data-kind="info"] { color: #707070; }

/* 사용 가능한 쿠폰 토글 + 목록 */
.cart__coupon-available { margin-top: 12px; }
.cart__coupon-available[hidden] { display: none; }
.cart__coupon-available-toggle {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--color-line);
    border-radius: 2px;
    background: #ffffff;
    color: #1c1c1c;
    font-family: inherit;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s;
    box-sizing: border-box;
}
.cart__coupon-available-toggle:hover { background: #f5f5f5; color: #1c1c1c; opacity: 1; }
.cart__coupon-available-label { flex: 1; text-align: left; }
.cart__coupon-available-count {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 10px;
    border-radius: 11px;
    background: #FF8838;
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
}
.cart__coupon-available-arrow {
    display: inline-block;
    font-size: 12px;
    color: #707070;
    transition: transform 0.2s;
}
.cart__coupon-available-toggle.is-open .cart__coupon-available-arrow {
    transform: rotate(180deg);
}
.cart__coupon-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 2px;
}
.cart__coupon-list[hidden] { display: none; }
.cart__coupon-card {
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--color-line);
    border-radius: 4px;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.15s, background 0.15s;
}
.cart__coupon-card:hover { border-color: #FF8838; }
.cart__coupon-card.is-applied {
    border-color: #FF8838;
    background: #fff7ef;
}
.cart__coupon-card-main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}
.cart__coupon-card-discount {
    flex-shrink: 0;
    min-width: 86px;
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    color: #FF8838;
    text-align: left;
}
.cart__coupon-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cart__coupon-card-code {
    font-weight: 600;
    font-size: 13px;
    line-height: 17px;
    color: #1c1c1c;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cart__coupon-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #707070;
}
.cart__coupon-card-rate { color: #1c1c1c; font-weight: 500; }
.cart__coupon-card-min::before { content: "· "; color: #c8c8c8; }
.cart__coupon-card-ends::before { content: "· "; color: #c8c8c8; }
.cart__coupon-card-btn {
    flex-shrink: 0;
    align-self: center;
    min-width: 64px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid #1c1c1c;
    border-radius: 2px;
    background: #1c1c1c;
    color: #ffffff;
    font-family: inherit;
    font-weight: 500;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.15s, background 0.15s;
}
.cart__coupon-card-btn:hover:not(:disabled) { opacity: 0.85; color: #ffffff; }
.cart__coupon-card-btn:disabled {
    background: #ffffff;
    color: #FF8838;
    border-color: #FF8838;
    cursor: default;
    opacity: 1;
}

/* 소계 / 쿠폰 할인 행 (쿠폰 적용 시만 hidden=false) */
.cart__purchase-sub {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cart__purchase-sub[hidden] { display: none; }
.cart__purchase-label-sub {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #595b60;
}
.cart__purchase-sub-amount {
    font-weight: 500;
    font-size: 15px;
    line-height: 20px;
    color: #1c1c1c;
}
.cart__purchase-sub-amount--discount { color: #FF8838; }

.cart__purchase-section { margin-bottom: 34px; }
.cart__purchase-section-label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #1c1c1c;
    margin-bottom: 12px;
}
.cart__purchase-label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #1c1c1c;
    margin-bottom: 12px;
}
.cart__purchase-total {
    height: 44px;
    display: flex;
    align-items: flex-end;
    color: #000;
}
.cart__purchase-amount {
    font-weight: 700;
    font-size: 33px;
    line-height: 41px;
}
.cart__purchase-won {
    margin-left: 8px;
    margin-bottom: 5px;
    font-weight: 700;
    font-size: 18px;
    line-height: 22px;
}
.cart__purchase-divider {
    width: 100%;
    height: 1px;
    background: #000;
    margin-bottom: 19px;
}

/* 결제 수단 — KakaoPay 간편결제 + Billgate 카드 */
.cart__payment-section {
    margin-bottom: 24px;
}
.cart__payment-methods {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cart__payment-method {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid #d8d8d8;
    border-radius: 3px;
    background: #ffffff;
    color: #1c1c1c;
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    line-height: 20px;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.cart__payment-method:hover {
    border-color: #1c1c1c;
    color: #1c1c1c;
    opacity: 1;
}
.cart__payment-method.is-active {
    border-color: #1c1c1c;
    box-shadow: 0 0 0 1px #1c1c1c;
}
.cart__payment-method--kakao {
    background: #FEE500;
    border-color: #FEE500;
}
.cart__payment-method-badge {
    width: 48px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    background: #1c1c1c;
    color: #ffffff;
    font-weight: 700;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0;
    flex-shrink: 0;
}
.cart__payment-method--kakao .cart__payment-method-badge {
    color: #FEE500;
}

/* 약관 동의 — 원본 AgreeSection (16×16 #727272 체크박스 + Caption 12 black/red90) */
.cart__purchase-agree {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0 auto 27px;
    width: 100%;
    max-width: 293px;
}
.cart__purchase-agree-checkbox {
    position: relative;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
    margin-top: 2px;
}
.cart__purchase-agree-input {
    position: absolute;
    opacity: 0;
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}
.cart__purchase-agree-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 1px solid #727272;
    border-radius: 2px;
    background: #ffffff;
    transition: background 0.15s, border 0.15s;
}
.cart__purchase-agree-input:checked + .cart__purchase-agree-box {
    background: #FF8838;
    border-color: #FF8838;
}
.cart__purchase-agree-input:checked + .cart__purchase-agree-box::after {
    content: "";
    width: 5px;
    height: 9px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg) translate(-1px, -1px);
}
.cart__purchase-agree-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}
.cart__purchase-agree-required {
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    color: #1c1c1c;
}
.cart__purchase-agree-view {
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    color: #ff6600;
    text-decoration: none;
    margin-left: 4px;
}
.cart__purchase-agree-view:hover { color: #ff6600; opacity: 0.8; }
.cart__purchase-agree-warning {
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    color: #ff6600;
}
.cart__purchase-btn {
    width: 293px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    margin: 0 auto;
    font-weight: 700;
    font-size: 18px;
    line-height: 22px;
    text-decoration: none;
    color: #1c1c1c;
    cursor: pointer;
    box-sizing: border-box;
}
.cart__purchase-btn--buy {
    background: #FF8838;
    border: 0;
    color: #1c1c1c;
}
.cart__purchase-btn--buy:disabled { opacity: 0.6; cursor: not-allowed; }
.cart__purchase-form { width: 100%; margin: 0; padding: 0; }
.cart__purchase-form .cart__purchase-btn--buy { width: 100%; }

/* 카트 직접 결제 — 결제 버튼 busy/spinner + 에러 메시지 + 약관 shake */
.cart__purchase-btn.is-busy {
    opacity: 0.85;
    cursor: wait;
    position: relative;
}
.cart__purchase-btn.is-busy::after {
    content: "";
    position: absolute;
    right: 22px;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border: 2px solid rgba(0,0,0,0.25);
    border-top-color: #1c1c1c;
    border-radius: 50%;
    animation: cart-spin 0.7s linear infinite;
}
@keyframes cart-spin {
    to { transform: rotate(360deg); }
}
.cart__purchase-error {
    display: none;
    margin-top: 10px;
    padding: 10px 12px;
    background: #fff3f0;
    border: 1px solid #ffcdc0;
    border-radius: 4px;
    font-weight: 500;
    font-size: 13px;
    line-height: 18px;
    color: #d23616;
}
.cart__purchase-error:not(:empty) { display: block; }
.cart__purchase-agree--shake {
    animation: cart-agree-shake 0.4s ease;
}
@keyframes cart-agree-shake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-6px); }
    50%      { transform: translateX(6px); }
    75%      { transform: translateX(-3px); }
}
.cart__purchase-btn--more {
    background: #ffffff;
    border: 1px solid #000;
    margin-top: 9px;
    font-weight: 400;
    color: #1c1c1c;
}
.cart__purchase-btn--more:hover { background: #f5f5f5; color: #1c1c1c; opacity: 1; }

@media screen and (max-width: 1200px) {
    .cart-page { padding: 30px 16px 80px; }
    .cart {
        flex-direction: column;
        width: 100%;
        max-width: 852px;
    }
    .cart__main {
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid #000;
    }
    .cart__item { width: 100%; }
    .cart__purchase { width: 100%; }
    .cart__purchase-inner { padding: 30px 27px; }
    .cart__purchase-btn { width: 100%; max-width: 360px; }
}
@media screen and (max-width: 780px) {
    .cart__title { margin: 28px 24px; font-size: 26px; line-height: 32px; }
    .cart__item-check { width: 60px; padding-left: 18px; }
    .cart__item-thumb { width: 96px; height: 84px; }
    .cart__item-desc { width: auto; margin-left: 16px; flex: 1; min-width: 0; }
    .cart__item-name { font-size: 15px; line-height: 22px; }
    .cart__item-price { margin-left: 12px; font-size: 14px; }
    .cart__item-delete-form { right: 12px; }
    .cart__item-delete, .cart__item-delete img { width: 20px; height: 22px; }
}

/* ==========================================================================
   Product Review (B1) — 평균 평점 + 작성 폼 + 목록 + 정렬·페이지네이션
   ========================================================================== */
.product-review {
    width: 100%;
    margin: 60px auto 80px;
    padding: 40px 0 0;
    border-top: 1px solid var(--color-line);
    font-family: "SUIT", sans-serif;
}
.product-review__flash {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.product-review__flash-item {
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    border: 1px solid;
    animation: review-flash-in 0.3s ease-out;
}
.product-review__flash-item--success { color: #00875a; background: #f0fbf6; border-color: #b8e8d0; }
.product-review__flash-item--error,
.product-review__flash-item--danger { color: #c92a2a; background: #fdf2f0; border-color: #f5c8c0; }
.product-review__flash-item--info,
.product-review__flash-item--warning { color: #4a5fcf; background: #f0f4ff; border-color: #c8d4f5; }
@keyframes review-flash-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.product-review__header {
    display: flex;
    align-items: baseline;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.product-review__title {
    font-weight: 700;
    font-size: 24px;
    line-height: 1.3;
    color: var(--color-text);
    margin: 0;
}
.product-review__summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #595b60;
}
.product-review__stars {
    display: inline-flex;
    gap: 2px;
    line-height: 1;
}
.product-review__star {
    color: #e0e0e0;
    font-size: 18px;
    line-height: 1;
}
.product-review__star.is-filled { color: #FF8838; }
.product-review__avg {
    font-weight: 700;
    font-size: 18px;
    color: var(--color-text);
}
.product-review__count { font-size: 14px; color: #707070; }

/* 작성 폼 */
.product-review__form {
    background: #fafafa;
    border: 1px solid var(--color-line);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 24px;
}
.product-review__form-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text);
    margin: 0 0 12px;
}
.product-review__form-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
    margin-bottom: 14px;
}
.product-review__form-rating input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.product-review__form-star {
    font-size: 28px;
    line-height: 1;
    color: #e0e0e0;
    cursor: pointer;
    transition: color 0.15s, transform 0.1s;
}
.product-review__form-star:hover,
.product-review__form-star:hover ~ .product-review__form-star {
    color: #FF8838;
    transform: scale(1.05);
}
.product-review__form-rating input[type="radio"]:checked ~ .product-review__form-star {
    color: #FF8838;
}
.product-review__form-content {
    width: 100%;
    min-height: 100px;
    padding: 12px 14px;
    border: 1px solid var(--color-line);
    border-radius: 4px;
    background: #ffffff;
    font-family: inherit;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text);
    resize: vertical;
    outline: none;
    box-sizing: border-box;
}
.product-review__form-content::placeholder { color: #c8c8c8; }
.product-review__form-content:focus { border-color: #1c1c1c; }
.product-review__form-error {
    margin: 8px 0 0;
    min-height: 18px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: #c92a2a;
}
.product-review__form-error:empty { display: none; }
.product-review__form-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    justify-content: flex-end;
}
.product-review__submit-btn {
    height: 42px;
    padding: 0 24px;
    border: 1px solid #1c1c1c;
    border-radius: 4px;
    background: #1c1c1c;
    color: #ffffff;
    font-family: inherit;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.15s;
}
.product-review__submit-btn:hover { opacity: 0.85; color: #ffffff; }
.product-review__delete-btn {
    height: 42px;
    padding: 0 18px;
    border: 1px solid var(--color-line);
    border-radius: 4px;
    background: #ffffff;
    color: #707070;
    font-family: inherit;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.product-review__delete-btn:hover { background: #fdf2f0; color: #d23616; }
.product-review__notice {
    padding: 14px 18px;
    border: 1px dashed var(--color-line);
    border-radius: 4px;
    background: #fafafa;
    color: #707070;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 24px;
}
.product-review__signin-link {
    color: #1c1c1c;
    font-weight: 600;
    text-decoration: underline;
}
.product-review__signin-link:hover { color: #1c1c1c; opacity: 0.7; }

/* 정렬 toolbar + 목록 */
.product-review__toolbar {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 12px;
}
.product-review__sort-form { margin: 0; }
.product-review__sort-select {
    height: 34px;
    padding: 0 32px 0 12px;
    border: 1px solid var(--color-line);
    border-radius: 4px;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path fill='none' stroke='black' stroke-width='1.5' d='M3 5l3 3 3-3'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    color: var(--color-text);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
.product-review__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.product-review__item {
    padding: 18px 0;
    border-bottom: 1px solid #ededed;
}
.product-review__item:first-child { border-top: 1px solid #ededed; }
.product-review__item-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.product-review__item-stars { display: inline-flex; gap: 2px; }
.product-review__item-user {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text);
}
.product-review__item-date {
    font-weight: 400;
    font-size: 12px;
    color: #aaaaaa;
    margin-left: auto;
}
.product-review__item-content {
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    color: #1c1c1c;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}
.product-review__empty {
    padding: 32px 0;
    text-align: center;
    color: #aaaaaa;
    font-size: 14px;
}
.product-review__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 28px;
}
.product-review__page-link {
    padding: 8px 16px;
    border: 1px solid var(--color-line);
    border-radius: 4px;
    background: #ffffff;
    color: var(--color-text);
    font-size: 13px;
    text-decoration: none;
}
.product-review__page-link:hover { background: #f5f5f5; color: var(--color-text); opacity: 1; }
.product-review__page-current { font-size: 13px; color: #707070; }
