@charset "utf-8";
/* ==================================================================
   basic300 - 상품 스킨 스타일
   ------------------------------------------------------------------
   · 상품 카드(.sm-prod / .sm-prodgrid) 는 테마 메인화면에서도 함께 사용합니다.
   · stylemall 테마가 없어도 동작하도록 모든 변수에 기본값을 지정했습니다.
   ================================================================== */

/* ------------------------------------------------------------------
   1. 상품 그리드 / 카드
   ------------------------------------------------------------------ */
.sm-prodgrid { display: grid; gap: 40px 20px; margin: 0; padding: 0; list-style: none; }
.sm-prodgrid--col2 { grid-template-columns: repeat(2, 1fr); }
.sm-prodgrid--col3 { grid-template-columns: repeat(3, 1fr); }
.sm-prodgrid--col4 { grid-template-columns: repeat(4, 1fr); }
.sm-prodgrid--col5 { grid-template-columns: repeat(5, 1fr); }

.sm-prodgrid__empty {
    padding: 90px 20px; border: 1px solid var(--sm-line, #e9e9e9); border-radius: 10px;
    background: var(--sm-gray, #f7f7f8); text-align: center; color: var(--sm-sub, #767676); font-size: 15px;
}
.sm-prodgrid__empty i { display: block; margin-bottom: 14px; font-size: 34px; color: #d5d5d5; }
.sm-prodgrid__empty p { margin-bottom: 18px; }
.sm-prodgrid__empty .sm-btn { margin: 0 4px; }

.sm-prod { position: relative; list-style: none; }

.sm-prod__thumb { position: relative; display: block; padding-top: 125%; margin-bottom: 14px; background: var(--sm-gray-2, #f2f2f4); overflow: hidden; border-radius: 4px; }
/* 썸네일 전체를 덮는 기본 링크 (hover 오버레이 링크는 제외) */
.sm-prod__thumb > a:not(.sm-prod__hover) { position: absolute; inset: 0; display: block; }
.sm-prod__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s ease, transform .6s ease; }
.sm-prod__img.is-second { opacity: 0; }
.sm-prod:hover .sm-prod__img.is-first { transform: scale(1.04); }
.sm-prod:hover .sm-prod__img.is-second { opacity: 1; transform: scale(1.04); }
.sm-prod__noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #cfcfcf; font-size: 30px; }

.sm-prod__badges { position: absolute; left: 10px; top: 10px; z-index: 3; display: flex; flex-wrap: wrap; gap: 4px; max-width: calc(100% - 20px); }
.sm-prod__badge { display: inline-block; padding: 4px 8px; border-radius: 2px; font-size: 10px; font-weight: 800; letter-spacing: .04em; color: #fff; background: #555; }
.sm-prod__badge.is-new  { background: var(--sm-new, #3d7eff); }
.sm-prod__badge.is-best { background: var(--sm-ink, #141414); }
.sm-prod__badge.is-sale { background: var(--sm-sale, #f03e3e); }
.sm-prod__badge.is-md   { background: var(--sm-point, #e8446f); }
.sm-prod__badge.is-sold { background: #999; }
.sm-prod__badge.is-etc  { background: #6d6d6d; }

.sm-prod__sold { position: absolute; inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.72); font-size: 15px; font-weight: 800; letter-spacing: .12em; color: var(--sm-ink, #141414); }
.sm-prod.is-soldout .sm-prod__info { opacity: .55; }

.sm-prod__hover { position: absolute; inset: 0; z-index: 5; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 16px; background: linear-gradient(to top, rgba(0,0,0,.35), rgba(0,0,0,0) 45%); opacity: 0; transition: opacity .25s ease; }
.sm-prod:hover .sm-prod__hover { opacity: 1; }
.sm-prod__hover span { display: inline-flex; align-items: center; height: 36px; padding: 0 20px; border-radius: 18px; background: rgba(255,255,255,.95); color: var(--sm-ink, #141414); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; transform: translateY(8px); transition: transform .25s ease; }
.sm-prod:hover .sm-prod__hover span { transform: translateY(0); }
.sm-prod.is-soldout .sm-prod__hover { display: none; }

.sm-prod__chk { position: absolute; left: 10px; bottom: 10px; z-index: 6; display: inline-flex; padding: 5px; border-radius: 4px; background: rgba(255,255,255,.9); }
.sm-prod__chk input { width: 16px; height: 16px; }

.sm-prod__info { display: block; }
.sm-prod__cate { display: block; margin-bottom: 6px; font-size: 11px; color: var(--sm-sub-2, #999); letter-spacing: .02em; }
.sm-prod__name { display: block; font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--sm-ink, #141414); }
.sm-prod__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.sm-prod__desc { margin-top: 5px; font-size: 12px; color: var(--sm-sub, #767676); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sm-prod__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.sm-prod__price strong { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.sm-prod__price strong i { font-size: 13px; font-weight: 600; font-style: normal; }
.sm-prod__price del { font-size: 12px; color: #b5b5b5; }
.sm-prod__rate { font-size: 15px; font-weight: 800; color: var(--sm-sale, #f03e3e); }
.sm-prod__ask { font-size: 14px; font-weight: 700; color: var(--sm-sub, #767676); }

.sm-prod__chips { display: flex; gap: 4px; margin-top: 9px; }
.sm-prod__chip { width: 12px; height: 12px; border: 1px solid rgba(0,0,0,.12); border-radius: 50%; }
.sm-prod__chip.is-more { width: auto; height: auto; border: 0; font-size: 10px; color: var(--sm-sub-2, #999); line-height: 12px; }

.sm-prod__meta { display: flex; gap: 10px; margin-top: 8px; font-size: 11px; color: var(--sm-sub-2, #999); }
.sm-prod__meta i { margin-right: 2px; }

/* 베스트 순위 뱃지 */
.sm-prodgrid--rank { counter-reset: smrank; }
.sm-prodgrid--rank .sm-prod { counter-increment: smrank; }
.sm-prodgrid--rank .sm-prod__thumb:after {
    content: counter(smrank); position: absolute; left: 0; top: 0; z-index: 2;
    width: 34px; height: 34px; background: var(--sm-ink, #141414); color: #fff;
    font-size: 13px; font-weight: 800; line-height: 34px; text-align: center;
}
.sm-prodgrid--rank .sm-prod__badges { left: 44px; }

/* ------------------------------------------------------------------
   2. 상품 목록 페이지
   ------------------------------------------------------------------ */
.sm-plist { padding: 0 0 80px; }
.sm-plist__head { padding: 46px 0 28px; text-align: center; }
.sm-plist__title { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.sm-plist__desc { margin-top: 12px; font-size: 14px; color: var(--sm-sub, #767676); }
.sm-plist__desc strong { color: var(--sm-ink, #141414); font-weight: 700; }
.sm-plist__foot { margin-top: 24px; text-align: right; }

/* 1단 분류 탭 */
.sm-catetab { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.sm-catetab a { display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border: 1px solid var(--sm-line, #e9e9e9); border-radius: 19px; font-size: 13px; font-weight: 600; color: var(--sm-sub, #767676); transition: all .2s ease; }
.sm-catetab a:hover { border-color: var(--sm-ink, #141414); color: var(--sm-ink, #141414); }
.sm-catetab a.is-on { background: var(--sm-ink, #141414); border-color: var(--sm-ink, #141414); color: #fff; }

/* 필터 */
.sm-pfilter { margin-bottom: 26px; padding: 24px; border: 1px solid var(--sm-line, #e9e9e9); border-radius: 10px; background: #fff; }
.sm-pfilter__depth { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.sm-pfilter__select { flex: 1 1 180px; min-width: 150px; height: 44px; padding: 0 12px; border: 1px solid var(--sm-line, #e9e9e9); border-radius: 4px; background: #fff; font-size: 13px; }
.sm-pfilter__search { display: flex; gap: 8px; }
.sm-pfilter__search input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid var(--sm-ink, #141414); border-radius: 4px; font-size: 14px; }
.sm-pfilter__submit { flex-shrink: 0; height: 48px; padding: 0 24px; border: 0; border-radius: 4px; background: var(--sm-ink, #141414); color: #fff; font-size: 14px; font-weight: 700; }
.sm-pfilter__submit:hover { background: var(--sm-point, #e8446f); }
.sm-pfilter__reset { flex-shrink: 0; display: inline-flex; align-items: center; height: 48px; padding: 0 18px; border: 1px solid var(--sm-line, #e9e9e9); border-radius: 4px; font-size: 13px; color: var(--sm-sub, #767676); }
.sm-pfilter__reset:hover { border-color: var(--sm-ink, #141414); color: var(--sm-ink, #141414); }

.sm-pfilter__toggle { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 8px 14px; border: 1px solid var(--sm-line, #e9e9e9); border-radius: 20px; background: #fff; font-size: 12.5px; font-weight: 600; color: var(--sm-sub, #767676); }
.sm-pfilter__toggle:hover, .sm-pfilter__toggle.is-open { border-color: var(--sm-ink, #141414); color: var(--sm-ink, #141414); }
.sm-pfilter__arrow { transition: transform .25s ease; }
.sm-pfilter__toggle.is-open .sm-pfilter__arrow { transform: rotate(180deg); }

.sm-pfilter__detail { display: none; margin-top: 14px; padding: 18px 20px; border-radius: 8px; background: var(--sm-gray, #f7f7f8); }
.sm-pfilter__detail.is-open { display: block; }
.sm-pfilter__row { display: flex; align-items: flex-start; gap: 14px; padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,.05); }
.sm-pfilter__row:last-child { border-bottom: 0; }
.sm-pfilter__label { flex: 0 0 90px; padding-top: 7px; font-size: 13px; font-weight: 700; }
.sm-pfilter__opts { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; }

.sm-chip { position: relative; display: inline-flex; cursor: pointer; }
.sm-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.sm-chip span { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--sm-line, #e9e9e9); border-radius: 17px; background: #fff; font-size: 12.5px; color: var(--sm-ink-2, #444); transition: all .18s ease; }
.sm-chip:hover span { border-color: #bbb; }
.sm-chip input:checked + span { background: var(--sm-ink, #141414); border-color: var(--sm-ink, #141414); color: #fff; font-weight: 600; }
.sm-chip input:focus-visible + span { outline: 2px solid var(--sm-point, #e8446f); outline-offset: 2px; }

.sm-pfilter__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.sm-tag { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; background: var(--sm-ink, #141414); color: #fff; font-size: 12px; }
.sm-tag:hover { background: var(--sm-point, #e8446f); }

/* 정렬 바 */
.sm-sortbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; margin-bottom: 26px; border-top: 1px solid var(--sm-ink, #141414); border-bottom: 1px solid var(--sm-line, #e9e9e9); }
.sm-sortbar__total { font-size: 13px; color: var(--sm-sub, #767676); }
.sm-sortbar__total strong { color: var(--sm-ink, #141414); font-weight: 700; }
.sm-sortbar__sort { display: flex; flex-wrap: wrap; gap: 0; }
.sm-sortbar__sort li { position: relative; padding: 0 14px; }
.sm-sortbar__sort li:after { content: ""; position: absolute; right: 0; top: 50%; width: 1px; height: 11px; margin-top: -5px; background: var(--sm-line, #e9e9e9); }
.sm-sortbar__sort li:last-child:after { display: none; }
.sm-sortbar__sort a { font-size: 13px; color: var(--sm-sub, #767676); }
.sm-sortbar__sort a:hover { color: var(--sm-ink, #141414); }
.sm-sortbar__sort a.is-on { color: var(--sm-ink, #141414); font-weight: 700; }
.sm-sortbar__right { display: flex; align-items: center; gap: 12px; }
.sm-sortbar__cols { display: flex; gap: 4px; }
.sm-sortbar__cols a { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid var(--sm-line, #e9e9e9); border-radius: 4px; font-size: 11px; color: var(--sm-sub, #767676); }
.sm-sortbar__cols a.is-on { background: var(--sm-ink, #141414); border-color: var(--sm-ink, #141414); color: #fff; }
.sm-sortbar__btns { display: flex; gap: 4px; }
.sm-sortbar__btns .btn { width: 30px; height: 30px; padding: 0; }

.sm-adminbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; padding: 12px 16px; border-radius: 8px; background: var(--sm-gray, #f7f7f8); }
.sm-adminbar__all { font-size: 13px; font-weight: 600; cursor: pointer; }
.sm-adminbar__btns { display: flex; gap: 6px; }

/* ------------------------------------------------------------------
   3. 상품 상세
   ------------------------------------------------------------------ */
.sm-pview { padding: 30px 0 90px; }
.sm-pview__path { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; font-size: 12px; color: var(--sm-sub-2, #999); }
.sm-pview__path a:not(:first-child):before { content: "/"; margin-right: 8px; color: #ddd; }
.sm-pview__path a:hover { color: var(--sm-ink, #141414); }

.sm-pview__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; margin-bottom: 70px; }

/* 갤러리 */
.sm-pview__main { position: relative; padding-top: 125%; border-radius: 6px; background: var(--sm-gray-2, #f2f2f4); overflow: hidden; }
.sm-pview__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sm-pview__noimg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #c9c9c9; font-size: 40px; }
.sm-pview__noimg em { font-size: 13px; }
.sm-pview__sold { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.72); font-size: 20px; font-weight: 800; letter-spacing: .14em; }
.sm-pview__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sm-pview__thumbs button { width: 74px; height: 92px; padding: 0; border: 1px solid transparent; border-radius: 4px; background: var(--sm-gray-2, #f2f2f4); overflow: hidden; }
.sm-pview__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.sm-pview__thumbs button.is-on { border-color: var(--sm-ink, #141414); }

/* 정보 */
.sm-pview__info .sm-prod__badges { position: static; margin-bottom: 12px; }
.sm-pview__name { font-size: 27px; font-weight: 700; line-height: 1.35; letter-spacing: -.025em; }
.sm-pview__sub { margin-top: 10px; font-size: 14px; color: var(--sm-sub, #767676); }

.sm-pview__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 22px 0 24px; padding-bottom: 24px; border-bottom: 1px solid var(--sm-line, #e9e9e9); }
.sm-pview__price strong { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.sm-pview__price strong i { font-size: 19px; font-weight: 600; font-style: normal; }
.sm-pview__price del { font-size: 16px; color: #b5b5b5; }
.sm-pview__rate { font-size: 30px; font-weight: 800; color: var(--sm-sale, #f03e3e); }
.sm-pview__ask { font-size: 22px !important; color: var(--sm-sub, #767676); }

.sm-pview__spec { display: grid; grid-template-columns: 96px 1fr; gap: 10px 0; margin-bottom: 26px; font-size: 13px; }
.sm-pview__spec dt { color: var(--sm-sub, #767676); }
.sm-pview__spec dd { margin: 0; color: var(--sm-ink-2, #444); line-height: 1.6; }
.sm-pview__cate { text-decoration: underline; text-underline-offset: 3px; }
.sm-pview__keywords a { display: inline-block; margin: 0 6px 4px 0; color: var(--sm-point, #e8446f); }

.sm-pview__optlist { display: flex; flex-wrap: wrap; gap: 5px; }
.sm-pview__optlist span { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border: 1px solid var(--sm-line, #e9e9e9); border-radius: 13px; font-size: 12px; color: var(--sm-ink-2, #444); }

.sm-pview__btns { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-top: 8px; }
.sm-pview__btns .sm-btn { height: 56px; font-size: 15px; }

.sm-pview__helper { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; font-size: 12.5px; color: var(--sm-sub, #767676); }
.sm-pview__soldtxt { color: var(--sm-sale, #f03e3e); font-weight: 600; }
.sm-pview__share { margin-top: 18px; }
.sm-pview__share .btn { margin-right: 4px; }

.sm-pview__admin { display: flex; justify-content: flex-end; margin-bottom: 20px; }
.sm-pview__admin ul { display: flex; flex-wrap: wrap; gap: 6px; }

/* 탭 */
.sm-ptab__nav { display: flex; position: sticky; top: 0; z-index: 30; background: #fff; border-top: 1px solid var(--sm-ink, #141414); border-bottom: 1px solid var(--sm-line, #e9e9e9); }
.sm-ptab__nav li { flex: 1; }
.sm-ptab__nav a { display: block; padding: 17px 6px; font-size: 14px; font-weight: 600; color: var(--sm-sub, #767676); text-align: center; border-right: 1px solid var(--sm-line-2, #f1f1f1); }
.sm-ptab__nav li:last-child a { border-right: 0; }
.sm-ptab__nav a.is-on { color: var(--sm-ink, #141414); box-shadow: inset 0 -2px 0 var(--sm-point, #e8446f); }
.sm-ptab__nav em { color: var(--sm-point, #e8446f); font-weight: 700; }

.sm-ptab__panel { padding: 50px 0; border-bottom: 1px solid var(--sm-line-2, #f1f1f1); }
.sm-ptab__title { margin-bottom: 26px; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.sm-ptab__content { font-size: 14px; line-height: 1.85; color: var(--sm-ink-2, #444); word-break: break-word; }
.sm-ptab__content img { max-width: 100%; height: auto; }

.sm-guidebox { font-size: 13.5px; line-height: 1.9; color: var(--sm-ink-2, #444); }
.sm-guidebox h3 { margin: 26px 0 10px; padding-left: 12px; border-left: 3px solid var(--sm-ink, #141414); font-size: 15px; font-weight: 700; }
.sm-guidebox h3:first-child { margin-top: 0; }
.sm-guidebox ul li { position: relative; padding-left: 12px; }
.sm-guidebox ul li:before { content: ""; position: absolute; left: 0; top: 12px; width: 3px; height: 3px; border-radius: 50%; background: #c5c5c5; }
.sm-guidebox a { color: var(--sm-point, #e8446f); text-decoration: underline; }

.sm-pview__files { margin-top: 30px; padding: 18px 20px; border-radius: 8px; background: var(--sm-gray, #f7f7f8); }
.sm-pview__files h3 { margin-bottom: 10px; font-size: 13px; font-weight: 700; }
.sm-pview__files li { padding: 6px 0; font-size: 13px; }
.sm-pview__files a { color: var(--sm-ink-2, #444); }
.sm-pview__files a:hover { text-decoration: underline; }
.sm-pview__files .bo_v_file_cnt, .sm-pview__files .bo_v_link_cnt { margin-left: 8px; font-size: 11px; color: var(--sm-sub-2, #999); }

.sm-pview__act { display: flex; justify-content: center; gap: 10px; margin-top: 34px; }
.sm-pview__act a { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 24px; border: 1px solid var(--sm-line, #e9e9e9); border-radius: 23px; font-size: 13px; }
.sm-pview__act a:hover { border-color: var(--sm-ink, #141414); }
.sm-pview__act strong { font-weight: 800; }
.sm-pview__sign { margin-top: 20px; font-size: 12px; color: var(--sm-sub-2, #999); }

.sm-pview__rel { padding: 60px 0 0; }
.sm-pview__rel h2 { margin-bottom: 26px; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }

.sm-pview__nb { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 50px; border-top: 1px solid var(--sm-line, #e9e9e9); border-bottom: 1px solid var(--sm-line, #e9e9e9); }
.sm-pview__nb li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; font-size: 13px; }
.sm-pview__nb li + li { border-left: 1px solid var(--sm-line-2, #f1f1f1); }
.sm-pview__nb span { flex-shrink: 0; color: var(--sm-sub-2, #999); font-size: 12px; }
.sm-pview__nb a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-pview__nb a:hover { text-decoration: underline; }

.sm-pview__listbtn { margin-top: 44px; text-align: center; }

/* ------------------------------------------------------------------
   4. 상품 등록 / 수정
   ------------------------------------------------------------------ */
.sm-pwrite { padding: 20px 0 80px; }
.sm-pwrite__head { margin-bottom: 26px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.sm-pwrite__box { margin-bottom: 26px; padding: 26px 28px; border: 1px solid var(--sm-line, #e9e9e9); border-radius: 10px; }
.sm-pwrite__box > h3 { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--sm-line-2, #f1f1f1); font-size: 15px; font-weight: 700; }
.sm-pwrite__box > h3 small { margin-left: 8px; font-size: 12px; font-weight: 400; color: var(--sm-sub-2, #999); }

.sm-pwrite__row { display: flex; align-items: flex-start; gap: 18px; padding: 12px 0; }
.sm-pwrite__row > label { flex: 0 0 110px; padding-top: 13px; font-size: 13px; font-weight: 600; }
.sm-pwrite__row > label em { margin-left: 3px; color: var(--sm-point, #e8446f); font-style: normal; }
.sm-pwrite__row--full { flex-direction: column; gap: 0; }
.sm-pwrite__field { flex: 1; min-width: 0; }
.sm-pwrite__field .frm_input { height: 44px; }
.sm-pwrite__field select { height: 44px; min-width: 180px; }
.sm-pwrite__help { margin-top: 7px; font-size: 12px; color: var(--sm-sub-2, #999); line-height: 1.6; }
.sm-pwrite__help strong { color: var(--sm-point, #e8446f); }

.sm-pwrite__depth { display: flex; flex-wrap: wrap; gap: 8px; }
.sm-pwrite__depth select { flex: 1 1 170px; }
.sm-pwrite__price { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.sm-pwrite__price .frm_input { width: 140px; }
.sm-pwrite__price span { font-size: 13px; color: var(--sm-sub, #767676); }
.sm-pwrite__sep { margin-left: 10px; font-weight: 600; color: var(--sm-ink, #141414) !important; }
.sm-pwrite__rate { margin-left: 8px; font-size: 13px; font-weight: 700; color: var(--sm-sale, #f03e3e); }
.sm-pwrite__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sm-pwrite__writer { display: flex; flex-wrap: wrap; gap: 8px; }
.sm-pwrite__writer .frm_input { width: 200px; }
.sm-pwrite__options { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 12px; font-size: 13px; }
.sm-pwrite__row--file .sm-pwrite__field { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sm-pwrite__row--file input[type=file] { flex: 0 0 auto; font-size: 13px; }
.sm-pwrite__row--file .frm_input { flex: 1; min-width: 200px; }
.sm-pwrite__filedel { flex: 1 0 100%; font-size: 12px; color: var(--sm-sub, #767676); }
.sm-pwrite__btns { display: flex; justify-content: center; gap: 8px; margin-top: 34px; }
.sm-pwrite .wr_content textarea { width: 100%; min-height: 320px; padding: 14px; border: 1px solid var(--sm-line, #e9e9e9); border-radius: 4px; font-size: 14px; line-height: 1.7; }
#autosave_wrapper { position: relative; }
#autosave_pop { display: none; position: absolute; right: 0; top: 46px; z-index: 50; width: 300px; padding: 14px; border: 1px solid var(--sm-line, #e9e9e9); border-radius: 6px; background: #fff; box-shadow: 0 6px 22px rgba(0,0,0,.1); }
#autosave_pop li { padding: 6px 0; font-size: 12px; border-bottom: 1px solid var(--sm-line-2, #f1f1f1); }
#btn_autosave { margin-top: 8px; }

/* ------------------------------------------------------------------
   5. 상품후기(댓글)
   ------------------------------------------------------------------ */
.cmt_btn { display: none; }
#bo_vc h2 { position: absolute; font-size: 0; line-height: 0; overflow: hidden; }
#bo_vc article { position: relative; display: flex; gap: 14px; padding: 20px 0; border-top: 1px solid var(--sm-line-2, #f1f1f1); }
#bo_vc article:first-of-type { border-top: 0; }
#bo_vc .pf_img { flex-shrink: 0; }
#bo_vc .pf_img img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
#bo_vc .cm_wrap { flex: 1; min-width: 0; }
#bo_vc header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
#bo_vc .bo_vc_hdinfo { font-size: 11px; font-weight: 400; color: var(--sm-sub-2, #999); }
#bo_vc .cmt_contents { font-size: 13.5px; line-height: 1.75; color: var(--sm-ink-2, #444); word-break: break-word; }
#bo_vc_empty { padding: 60px 0; text-align: center; color: var(--sm-sub, #767676); font-size: 14px; }
.bo_vl_opt { position: relative; flex-shrink: 0; }
.bo_vl_opt .btn_cm_opt { width: 30px; height: 30px; border: 0; background: transparent; color: #bbb; }
.bo_vc_act { display: none; position: absolute; right: 0; top: 30px; z-index: 20; min-width: 90px; border: 1px solid var(--sm-line, #e9e9e9); border-radius: 6px; background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.09); overflow: hidden; }
.bo_vc_act li a { display: block; padding: 9px 14px; font-size: 12px; }
.bo_vc_act li a:hover { background: var(--sm-gray, #f7f7f8); }

#bo_vc_w { margin-top: 26px; padding: 22px; border-radius: 10px; background: var(--sm-gray, #f7f7f8); }
#bo_vc_w h2 { position: static; margin-bottom: 14px; font-size: 15px; font-weight: 700; }
#bo_vc_w textarea { width: 100%; height: 110px; padding: 14px; border: 1px solid var(--sm-line, #e9e9e9); border-radius: 6px; background: #fff; font-size: 13.5px; line-height: 1.65; resize: vertical; }
#bo_vc_w .bo_vc_w_wr { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
#bo_vc_w .bo_vc_w_info { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#bo_vc_w .bo_vc_w_info .frm_input { width: 150px; height: 40px; }
#bo_vc_w .btn_confirm { display: flex; gap: 6px; }
#bo_vc_w .btn_submit { height: 44px; padding: 0 26px; font-size: 14px; }
#bo_vc_w #char_cnt { display: inline-block; margin-bottom: 8px; font-size: 12px; color: var(--sm-sub-2, #999); font-weight: 400; }
#bo_vc_w .cmt_pw { margin-top: 8px; }

/* ------------------------------------------------------------------
   6. 반응형
   ------------------------------------------------------------------ */
@media (max-width: 1024px) {
    .sm-prodgrid { gap: 28px 12px; }
    .sm-prodgrid--col4, .sm-prodgrid--col5 { grid-template-columns: repeat(3, 1fr); }

    .sm-plist { padding-bottom: 60px; }
    .sm-plist__head { padding: 26px 0 20px; }
    .sm-plist__title { font-size: 22px; }
    .sm-plist__desc { font-size: 13px; }

    .sm-catetab { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 20px; }
    .sm-catetab::-webkit-scrollbar { display: none; }
    .sm-catetab a { flex: 0 0 auto; height: 34px; padding: 0 15px; font-size: 12.5px; }

    .sm-pfilter { padding: 16px; }
    .sm-pfilter__select { flex: 1 1 100%; height: 42px; }
    .sm-pfilter__search input { height: 44px; font-size: 13px; }
    .sm-pfilter__submit { height: 44px; padding: 0 16px; font-size: 13px; }
    .sm-pfilter__reset { height: 44px; padding: 0 12px; }
    .sm-pfilter__row { flex-direction: column; gap: 8px; }
    .sm-pfilter__label { flex: none; padding-top: 0; }

    .sm-sortbar { flex-wrap: wrap; gap: 10px; padding: 12px 0; }
    .sm-sortbar__total { order: 1; flex: 1; }
    .sm-sortbar__right { order: 2; }
    .sm-sortbar__sort { order: 3; flex: 1 0 100%; justify-content: flex-start; padding-top: 6px; border-top: 1px solid var(--sm-line-2, #f1f1f1); }
    .sm-sortbar__sort li { padding: 0 10px; }
    .sm-sortbar__sort li:first-child { padding-left: 0; }
    .sm-sortbar__sort a { font-size: 12.5px; }
    .sm-sortbar__cols { display: none; }

    .sm-pview { padding: 16px 0 60px; }
    .sm-pview__top { grid-template-columns: 1fr; gap: 26px; margin-bottom: 44px; }
    .sm-pview__name { font-size: 21px; }
    .sm-pview__price { margin: 16px 0 18px; padding-bottom: 18px; }
    .sm-pview__price strong { font-size: 26px; }
    .sm-pview__rate { font-size: 24px; }
    .sm-pview__thumbs button { width: 60px; height: 74px; }
    .sm-ptab__panel { padding: 34px 0; }
    .sm-ptab__nav a { padding: 14px 4px; font-size: 12.5px; }
    .sm-pview__nb { grid-template-columns: 1fr; }
    .sm-pview__nb li + li { border-left: 0; border-top: 1px solid var(--sm-line-2, #f1f1f1); }

    .sm-pwrite__box { padding: 18px; }
    .sm-pwrite__row { flex-direction: column; gap: 6px; padding: 10px 0; }
    .sm-pwrite__row > label { flex: none; padding-top: 0; }
    .sm-pwrite__writer .frm_input { width: 100%; }
    .sm-pwrite__price .frm_input { width: 110px; }

    #bo_vc_w { padding: 16px; }
    #bo_vc_w .bo_vc_w_info .frm_input { width: calc(50% - 4px); }
}

@media (max-width: 560px) {
    .sm-prodgrid { gap: 24px 10px; }
    .sm-prodgrid--col3, .sm-prodgrid--col4, .sm-prodgrid--col5 { grid-template-columns: repeat(2, 1fr); }
    .sm-prod__name { font-size: 13px; }
    .sm-prod__price strong { font-size: 15px; }
    .sm-prod__hover { display: none; } /* 터치 기기에서는 오버레이 대신 카드 전체가 링크 */

    .sm-pview__btns { grid-template-columns: 1fr 1fr; }
    .sm-pview__btns .sm-btn { height: 50px; font-size: 14px; padding: 0 12px; }
    .sm-pview__spec { grid-template-columns: 80px 1fr; font-size: 12.5px; }

    .sm-pwrite__price .frm_input { width: 100px; }
    .sm-pwrite__btns .sm-btn { flex: 1; padding: 0 10px; }
}

/* ------------------------------------------------------------------
   7. 테마가 없을 때를 위한 최소 버튼 스타일 (우선순위 0 - 테마가 항상 우선)
   ------------------------------------------------------------------ */
:where(.sm-btn) {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 40px; padding: 0 18px; border: 1px solid #e9e9e9; border-radius: 4px;
    background: #f7f7f8; color: #141414; font-size: 13px; font-weight: 600;
}
:where(.sm-btn--dark)  { background: #141414; border-color: #141414; color: #fff; }
:where(.sm-btn--line)  { background: #fff; border-color: #141414; }
:where(.sm-btn--point) { background: #e8446f; border-color: #e8446f; color: #fff; }
:where(.sm-btn--sm)    { height: 34px; padding: 0 13px; font-size: 12px; }
:where(.sm-btn--lg)    { height: 52px; padding: 0 36px; font-size: 15px; }
:where(.sm-btn--full)  { width: 100%; }
