@charset "utf-8";
/* ==========================================================================
   theme4 PC — 심플 모던 스타일
   - 기존 default*.css 위에 덮어쓰는 레이어 (head.sub.php 에서 마지막에 로드)
   - 색상은 :root 변수만 바꾸면 사이트 전체에 반영됨
   ========================================================================== */
:root {
    --t4-point: #ff4f2e;        /* 포인트 컬러 (할인율, 뱃지, 강조) */
    --t4-ink: #111;             /* 본문 진한 글자 / 검정 버튼 */
    --t4-text: #333;
    --t4-sub: #767676;
    --t4-mute: #a3a3a3;
    --t4-line: #ebebeb;
    --t4-bg: #fff;
    --t4-soft: #f6f6f7;
    --t4-radius: 12px;
    --t4-w: 1200px;
    --t4-font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

/* ---------- 기본 ---------- */
html { -webkit-text-size-adjust: 100%; }
body.t4 { background: var(--t4-bg); color: var(--t4-text); font-family: var(--t4-font); font-size: 13px; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
body.t4 input, body.t4 button, body.t4 select, body.t4 textarea, body.t4 table { font-family: var(--t4-font); }
body.t4 a { color: inherit; }
.t4-inner { width: var(--t4-w); margin: 0 auto; position: relative; }
.t4-ico { display: inline-block; vertical-align: middle; flex: none; }
#hd_login_msg { position: absolute; left: -9999px; }

/* ---------- 헤더 ---------- */
#t4-hd { position: sticky; top: -37px; z-index: 1000; background: #fff; } /* 유틸바(37px)만 스크롤되고 나머지는 고정 */
.t4-util { border-bottom: 1px solid var(--t4-line); font-size: 12px; color: var(--t4-sub); }
.t4-util .t4-inner { display: flex; align-items: center; justify-content: space-between; height: 36px; }
.t4-util-msg { margin: 0; }
.t4-util-links { display: flex; margin: 0; padding: 0; list-style: none; }
.t4-util-links li + li::before { content: ""; display: inline-block; width: 1px; height: 10px; margin: 0 12px; background: #ddd; vertical-align: middle; }
.t4-util-links a:hover { color: var(--t4-ink); }
.t4-util-links a.is-admin { color: var(--t4-point); font-weight: 600; }

/* 고정 영역 */
.t4-sticky { position: relative; background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); transition: box-shadow .2s; }
#t4-hd.is-scrolled .t4-sticky { box-shadow: 0 1px 0 var(--t4-line), 0 6px 20px rgba(0,0,0,.04); }

.t4-main .t4-inner { display: flex; align-items: center; gap: 40px; height: 88px; }
.t4-logo { margin: 0; flex: none; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.t4-logo img { display: block; max-height: 44px; max-width: 200px; width: auto; }

.t4-search { position: relative; flex: 1; max-width: 520px; margin: 0 auto; }
.t4-search input { width: 100%; height: 48px; padding: 0 56px 0 22px; border: 2px solid var(--t4-ink); border-radius: 999px; background: #fff; font-size: 15px; color: var(--t4-ink); outline: 0; box-sizing: border-box; }
.t4-search input::placeholder { color: var(--t4-mute); }
.t4-search button { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--t4-ink); cursor: pointer; }

.t4-icons { display: flex; gap: 22px; flex: none; }
.t4-icons a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--t4-ink); font-size: 11px; }
.t4-icons a span { color: var(--t4-sub); }
.t4-icons a:hover span { color: var(--t4-ink); }
.t4-count { position: absolute; top: -6px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--t4-point); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-sizing: border-box; font-style: normal; }
.t4-icons .t4-cart .t4-count { right: 4px; }

/* 카테고리 바 */
.t4-gnb { position: relative; border-top: 1px solid var(--t4-line); border-bottom: 1px solid var(--t4-line); }
.t4-gnb > .t4-inner { display: flex; align-items: center; height: 52px; }
.t4-allcate-btn { display: inline-flex; align-items: center; gap: 8px; height: 52px; margin-right: 28px; padding: 0; border: 0; background: none; color: var(--t4-ink); font-size: 15px; font-weight: 700; cursor: pointer; }
.t4-gnb-nav { flex: 1; min-width: 0; }
.t4-gnb-nav h2 { display: none; }
#t4-gnb-list { display: flex; margin: 0; padding: 0; list-style: none; }
#t4-gnb-list .gnb_1dli { position: relative; float: none; }
#t4-gnb-list .gnb_1da { display: block; padding: 0 16px; height: 52px; line-height: 52px; background: none !important; color: var(--t4-text); font-size: 15px; font-weight: 500; white-space: nowrap; }
#t4-gnb-list .gnb_1dli:hover .gnb_1da,
#t4-gnb-list .gnb_1dli.is-on .gnb_1da { color: var(--t4-ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--t4-ink); }
#t4-gnb-list .gnb_2dul { display: none; position: absolute; top: 52px; left: 0; min-width: 180px; margin: 0; padding: 8px 0; list-style: none; background: #fff; border: 1px solid var(--t4-line); border-radius: 0 0 var(--t4-radius) var(--t4-radius); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
#t4-gnb-list .gnb_1dli:hover .gnb_2dul { display: block; }
#t4-gnb-list .gnb_2da { display: block; padding: 9px 18px; background: none !important; color: var(--t4-text); font-size: 14px; border: 0; }
#t4-gnb-list .gnb_2da:hover { color: var(--t4-ink); background: var(--t4-soft) !important; }

/* 전체 카테고리 패널 */
.t4-allcate { position: absolute; left: 0; right: 0; top: 100%; visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s; background: #fff; border-bottom: 1px solid var(--t4-line); box-shadow: 0 20px 40px rgba(0,0,0,.06); }
.t4-allcate.is-open { visibility: visible; opacity: 1; transform: none; }
.t4-allcate #t4-cate-panel { display: block !important; position: static; width: auto; height: auto; background: none; border: 0; padding: 0; }
.t4-allcate .cate { display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px 24px; margin: 0; padding: 32px 0 40px; list-style: none; }
.t4-allcate .cate_li_1 { float: none; width: auto; margin: 0; padding: 0; border: 0; }
.t4-allcate .cate_li_1_a { display: block; margin-bottom: 12px; color: var(--t4-ink); font-size: 15px; font-weight: 700; }
.t4-allcate .sub_cate { display: block !important; position: static; margin: 0; padding: 0; list-style: none; border: 0; background: none; }
.t4-allcate .cate_li_2 a { display: block; padding: 5px 0; color: var(--t4-sub); font-size: 14px; }
.t4-allcate .cate_li_2 a:hover { color: var(--t4-ink); text-decoration: underline; }
.t4-allcate .no-cate { padding: 40px 0; text-align: center; color: var(--t4-sub); }

/* 기존 윙배너 */
.t4-wing { position: absolute; top: 240px; left: 50%; margin-left: 620px; width: 120px; z-index: 10; }
@media (max-width: 1500px) { .t4-wing { display: none; } }

/* ---------- 본문 컨테이너 ---------- */
.container.t4-container { width: var(--t4-w); margin: 0 auto; padding-bottom: 80px; }
#wrapper_title { margin: 0; padding: 48px 0 28px; border: 0; background: none; color: var(--t4-ink); font-size: 28px; font-weight: 700; letter-spacing: -0.03em; text-align: left; }

/* ---------- 메인 배너 ---------- */
.t4-hero { margin: 24px 0 0; }
.t4-hero-swiper { position: relative; border-radius: 20px; overflow: hidden; background: var(--t4-soft); }
.t4-hero .swiper-slide img { display: block; width: 100%; height: auto; }
.t4-hero-ctrl { position: absolute; right: 24px; bottom: 22px; z-index: 2; }
.t4-hero-pager.swiper-pagination { position: static; width: auto; padding: 5px 12px; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; font-size: 12px; letter-spacing: .05em; }
.t4-hero-prev, .t4-hero-next { position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; margin-top: -24px; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--t4-ink); cursor: pointer; opacity: 0; transition: opacity .2s; box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.t4-hero-prev { left: 20px; } .t4-hero-next { right: 20px; }
.t4-hero-swiper:hover .t4-hero-prev, .t4-hero-swiper:hover .t4-hero-next { opacity: 1; }

/* ---------- 카테고리 바로가기 ---------- */
.t4-quickcate { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 8px; margin: 40px 0 8px; }
.t4-quickcate a { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 92px; color: var(--t4-text); font-size: 13px; text-align: center; }
.t4-qc-ico { display: flex; align-items: center; justify-content: center; width: 68px; height: 68px; border-radius: 24px; background: var(--t4-soft); color: var(--t4-ink); transition: transform .2s, background .2s; }
.t4-quickcate a:hover .t4-qc-ico { transform: translateY(-3px); background: #eeeef0; }
.t4-qc-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; word-break: keep-all; }

/* 서브 배너 */
.t4-subbn { margin: 48px 0 0; overflow: hidden; }
.t4-subbn ul { margin: 0; padding: 0; list-style: none; }
.t4-subbn li { border-radius: var(--t4-radius); overflow: hidden; }
.t4-subbn img { display: block; width: 100%; height: auto; }

/* ---------- 섹션 ---------- */
.t4-sec { margin-top: 72px; }
.t4-sec-hd { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.t4-sec-hd h2 { margin: 0; color: var(--t4-ink); font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.t4-sec-hd p { margin: 6px 0 0; color: var(--t4-sub); font-size: 14px; }
.t4-more { display: inline-flex; align-items: center; gap: 2px; color: var(--t4-sub); font-size: 13px; }
.t4-more:hover { color: var(--t4-ink); }

/* ---------- 상품 카드 ---------- */
.t4-grid { display: grid; gap: 40px 20px; margin: 0; padding: 0; list-style: none; }
.t4-grid-2 { grid-template-columns: repeat(2, 1fr); }
.t4-grid-3 { grid-template-columns: repeat(3, 1fr); }
.t4-grid-4 { grid-template-columns: repeat(4, 1fr); }
.t4-grid-5 { grid-template-columns: repeat(5, 1fr); }
.t4-grid-6 { grid-template-columns: repeat(6, 1fr); }
.t4-card { min-width: 0; float: none; width: auto !important; margin: 0; }
.t4-card-img { position: relative; aspect-ratio: 1 / 1; border-radius: var(--t4-radius); overflow: hidden; background: var(--t4-soft); }
.t4-card-img a { display: block; height: 100%; }
.t4-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.t4-card:hover .t4-card-img img { transform: scale(1.04); }
.t4-wish { position: absolute; right: 10px; bottom: 10px; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--t4-ink); cursor: pointer; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s, color .2s; }
.t4-card:hover .t4-wish { opacity: 1; transform: none; }
.t4-wish:hover { color: var(--t4-point); }
.t4-badge-soldout { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.6); color: var(--t4-ink); font-size: 13px; font-weight: 700; letter-spacing: .1em; pointer-events: none; }
.t4-card.is-soldout .t4-card-name, .t4-card.is-soldout .t4-card-price { opacity: .5; }
.t4-card-body { padding: 14px 2px 0; }
.t4-card-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--t4-text); font-size: 14px; line-height: 1.45; word-break: break-all; }
.t4-card-name:hover { text-decoration: underline; }
.t4-card-basic { margin: 4px 0 0; color: var(--t4-sub); font-size: 12px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t4-card-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin-top: 8px; }
.t4-rate { color: var(--t4-point); font-size: 16px; font-weight: 800; font-style: normal; }
.t4-price { color: var(--t4-ink); font-size: 16px; font-weight: 700; }
.t4-cust { width: 100%; color: var(--t4-mute); font-size: 12px; order: 3; }
.t4-member-only { color: var(--t4-sub); font-size: 13px; }
.t4-card-icon { margin-top: 8px; line-height: 1; }
.t4-card-icon img { height: 16px; width: auto; margin-right: 2px; vertical-align: middle; }
.t4-noitem { padding: 60px 0; color: var(--t4-sub); text-align: center; background: var(--t4-soft); border-radius: var(--t4-radius); }

/* ---------- 공지 / 후기 ---------- */
.t4-board { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 80px; }
.t4-board-box { padding: 28px 30px; border: 1px solid var(--t4-line); border-radius: 16px; }
.t4-board-box .t4-sec-hd { margin-bottom: 12px; }
.t4-board-box .t4-sec-hd h2 { font-size: 18px; }
.t4-latest, .t4-review { margin: 0; padding: 0; list-style: none; }
.t4-latest li, .t4-review li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #f3f3f3; font-size: 14px; }
.t4-latest li:last-child, .t4-review li:last-child { border-bottom: 0; }
.t4-latest a { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--t4-text); }
.t4-latest a:hover, .t4-review a:hover .t4-review-txt { color: var(--t4-ink); text-decoration: underline; }
.t4-latest time { flex: none; color: var(--t4-mute); font-size: 12px; }
.t4-review a { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; }
.t4-stars { flex: none; color: #ffb400; font-size: 12px; letter-spacing: 1px; }
.t4-stars i { color: #e2e2e2; font-style: normal; }
.t4-review-txt { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--t4-text); }
.t4-empty { justify-content: center; color: var(--t4-mute); }

/* ---------- 쇼핑 안내 ---------- */
.t4-benefit { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 64px 0 0; padding: 0; list-style: none; }
.t4-benefit li { display: flex; align-items: center; gap: 14px; padding: 22px 24px; border-radius: 16px; background: var(--t4-soft); color: var(--t4-ink); }
.t4-benefit b { display: block; font-size: 15px; }
.t4-benefit span { display: block; margin-top: 3px; color: var(--t4-sub); font-size: 13px; }

/* ---------- 푸터 ---------- */
#t4-ft { margin-top: 40px; background: #fafafa; border-top: 1px solid var(--t4-line); color: var(--t4-sub); font-size: 13px; }
.t4-ft-top { border-bottom: 1px solid var(--t4-line); }
.t4-ft-links { display: flex; flex-wrap: wrap; gap: 0 28px; margin: 0; padding: 18px 0; list-style: none; }
.t4-ft-links a { color: var(--t4-text); font-size: 13px; }
.t4-ft-links b { color: var(--t4-ink); }
.t4-ft-body { display: grid; grid-template-columns: 260px 260px 1fr; gap: 40px; padding: 40px 0 56px; }
#t4-ft h2 { margin: 0 0 12px; color: var(--t4-ink); font-size: 14px; font-weight: 700; }
.t4-ft-tel { display: block; color: var(--t4-ink); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.t4-ft-hours, .t4-ft-bank div { margin-top: 10px; line-height: 1.7; }
.t4-ft-info p { margin: 0 0 4px; line-height: 1.8; }
.t4-ft-info span { display: inline-block; margin-right: 14px; }
.t4-ft-return em { font-style: normal; color: var(--t4-mute); }
.t4-copy { margin-top: 16px !important; color: var(--t4-mute); font-size: 12px; }

/* 상단으로 */
.t4-top-btn { position: fixed; right: 28px; bottom: 28px; z-index: 900; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--t4-line); border-radius: 50%; background: #fff; color: var(--t4-ink); cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.08); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s; }
.t4-top-btn.is-show { opacity: 1; visibility: visible; transform: none; }

/* ---------- 서브 페이지 공통 보정 (기존 스킨) ---------- */
body.t4 .btn_submit, body.t4 a.btn_submit { background: var(--t4-ink); border-radius: 8px; }
body.t4 .frm_input, body.t4 select, body.t4 textarea { border-radius: 6px; }
