/* ============================================================
   KINGSHOP — 킹스샵 (로열 골드 & 블랙 프리미엄 테마)
   ============================================================ */
:root {
  --container: 1250px;
  --black: #14120e;
  --gray-900: #1e1c17;
  --gray-600: #6b6659;
  --gray-400: #a09a8c;
  --gray-200: #e7e3da;
  --gray-100: #f4f1ea;
  --gray-50: #faf8f4;
  --gold: #c9a227;
  --gold-deep: #a8841c;
  --accent: #b3122e;      /* 세일 포인트 */
  --font: 'Manrope', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--black); background: #fff; font-size: 14px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; }
svg.ic { vertical-align: middle; flex-shrink: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 15px; }

/* ---------- 상단 유틸바 ---------- */
.util-bar { background: var(--black); color: #cfc9ba; font-size: 12px; }
.util-bar .container { display: flex; justify-content: flex-end; gap: 18px; padding-top: 8px; padding-bottom: 8px; }
.util-bar a:hover { color: var(--gold); }
.util-bar .welcome { margin-right: auto; color: #8b8574; }
.util-bar b { color: var(--gold); }

/* ---------- 헤더 ---------- */
.site-header { background: #fff; }
.header-main { display: flex; align-items: center; justify-content: space-between; padding: 24px 15px; max-width: var(--container); margin: 0 auto; gap: 30px; }
.logo { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.logo .logo-crown { color: var(--gold); }
.logo .logo-text { font-size: 27px; font-weight: 300; letter-spacing: 4px; color: var(--black); line-height: 1.1; }
.logo .logo-text b { font-weight: 800; }
.logo .logo-text small { display: block; font-size: 10px; letter-spacing: 3px; color: var(--gray-400); font-weight: 500; margin-top: 3px; }
.header-search { flex: 1; max-width: 420px; position: relative; }
.header-search input { width: 100%; height: 42px; border: 2px solid var(--black); padding: 0 44px 0 16px; outline: none; font-size: 13px; background: #fff; }
.header-search input:focus { border-color: var(--gold-deep); }
.header-search button { position: absolute; right: 0; top: 0; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; }
.search-suggest { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--gray-200); border-top: none; box-shadow: 0 10px 22px rgba(20,18,14,.12); z-index: 150; max-height: 320px; overflow-y: auto; }
.search-suggest a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; font-size: 13px; border-bottom: 1px solid var(--gray-100); }
.search-suggest a:hover { background: var(--gray-50); }
.search-suggest .ss-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-suggest .ss-price { color: var(--gray-400); flex-shrink: 0; font-weight: 700; }
.header-icons { display: flex; gap: 20px; font-size: 11px; }
.header-icons a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--gray-900); position: relative; }
.header-icons a:hover { color: var(--gold-deep); }
.cart-badge { position: absolute; top: -5px; right: 2px; background: var(--accent); color: #fff; font-size: 10px; min-width: 16px; height: 16px; line-height: 16px; border-radius: 8px; padding: 0 4px; font-weight: 700; text-align: center; }

/* ---------- GNB ---------- */
.gnb-wrap { background: var(--black); position: sticky; top: 0; z-index: 100; }
.gnb { max-width: var(--container); margin: 0 auto; display: flex; align-items: stretch; padding: 0 15px; }
.gnb > li { position: relative; }
.gnb > li > a { display: block; padding: 14px 20px; font-weight: 700; font-size: 15px; letter-spacing: -0.3px; color: #f2efe6; }
.gnb > li > a:hover { color: var(--gold); }
.gnb > li.hot > a { color: var(--gold); }
.gnb .dropdown { display: none; position: absolute; top: 100%; left: 0; min-width: 200px; background: #fff; border: 1px solid var(--gray-200); box-shadow: 0 8px 20px rgba(20,18,14,.12); z-index: 101; padding: 8px 0; }
.gnb > li:hover .dropdown { display: block; }
.gnb .dropdown a { display: block; padding: 9px 20px; font-size: 13px; color: var(--gray-600); }
.gnb .dropdown a:hover { background: var(--gray-100); color: var(--black); }

/* ---------- 히어로 ---------- */
.hero { position: relative; overflow: hidden; height: 480px; background: var(--gray-900); }
.hero-track { display: flex; height: 100%; transition: transform .6s ease; }
.hero-slide { min-width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.hero-slide .hero-inner { text-align: center; color: #fff; z-index: 2; padding: 0 20px; }
.hero-slide .hero-inner.on-image { text-shadow: 0 2px 14px rgba(0,0,0,.55); background: rgba(0,0,0,.18); padding: 26px 34px; }
.hero-slide .hero-eyebrow { font-size: 13px; letter-spacing: 5px; color: var(--gold); margin-bottom: 14px; font-weight: 700; }
.hero-slide h2 { font-size: 44px; font-weight: 800; letter-spacing: -1px; margin-bottom: 14px; }
.hero-slide p { font-size: 15px; opacity: .85; margin-bottom: 26px; }
.hero-slide .hero-btn { display: inline-block; border: 1px solid var(--gold); color: var(--gold); padding: 12px 38px; font-size: 13px; letter-spacing: 2px; transition: .25s; font-weight: 700; }
.hero-slide .hero-btn:hover { background: var(--gold); color: var(--black); }
.hero-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.hero-dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); }
.hero-dots button.on { background: var(--gold); width: 24px; border-radius: 4px; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; color: #fff; font-size: 34px; width: 52px; height: 52px; opacity: .55; }
.hero-arrow:hover { opacity: 1; color: var(--gold); }
.hero-arrow.prev { left: 14px; } .hero-arrow.next { right: 14px; }

/* ---------- 숏컷 ---------- */
.shortcuts { max-width: var(--container); margin: 34px auto 0; padding: 0 15px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px 10px; }
.shortcut { text-align: center; font-size: 13px; font-weight: 600; color: var(--gray-900); }
.shortcut .thumb { height: 96px; display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 8px; transition: .25s; }
.shortcut .thumb svg { opacity: .95; }
.shortcut:hover .thumb { transform: translateY(-4px); box-shadow: 0 10px 18px rgba(20,18,14,.16); }
.image-shortcut { display: block; min-width: 0; }
.shortcut .shortcut-photo { position: relative; height: 152px; overflow: hidden; background: linear-gradient(180deg,#f8f8f6,#ececea); border: 1px solid var(--gray-100); }
.shortcut-photo img, .shortcut-photo svg { width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 8px 10px; transition: transform .35s ease; }
.shortcut-photo svg { display: block; }
.shortcut-shade { display: none; }
.shortcut-label { display: block; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.image-shortcut:hover .shortcut-photo img, .image-shortcut:hover .shortcut-photo svg { transform: scale(1.025); }

/* ---------- 섹션 공통 ---------- */
.section { max-width: var(--container); margin: 64px auto 0; padding: 0 15px; }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head .eng { font-size: 12px; letter-spacing: 4px; color: var(--gold-deep); font-weight: 700; text-transform: uppercase; }
.section-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; margin-top: 6px; }
.section-head p { color: var(--gray-600); font-size: 13px; margin-top: 6px; }
.more-wrap { text-align: center; margin-top: 30px; }
.btn-more { display: inline-block; border: 1px solid var(--black); padding: 12px 60px; font-size: 13px; font-weight: 700; letter-spacing: 1px; transition: .2s; }
.btn-more:hover { background: var(--black); color: var(--gold); }

/* ---------- 상품 그리드 / 카드 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 18px; }
.product-grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.product-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card { display: block; min-width: 0; content-visibility: auto; contain-intrinsic-size: 320px 460px; }
.product-card .thumb { position: relative; overflow: hidden; aspect-ratio: 5 / 6; background: #fff; border: 1px solid var(--gray-100); }
.product-card .thumb img, .product-card .thumb svg { width: 100%; height: 100%; object-fit: cover; object-position: center center; transition: transform .4s; }
.product-card .thumb img { box-sizing: border-box; }
.product-card:hover .thumb img, .product-card:hover .thumb svg { transform: scale(1.05); }
.product-card .badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; }
.badge { font-size: 10px; font-weight: 800; color: #fff; padding: 3px 7px; letter-spacing: .5px; }
.badge.new { background: var(--black); }
.badge.best { background: var(--gold-deep); }
.badge.sale { background: var(--accent); }
.soldout-cover { position: absolute; inset: 0; background: rgba(20,18,14,.55); display: flex; align-items: center; justify-content: center; }
.soldout-cover span { color: #fff; border: 1px solid #fff; padding: 8px 18px; font-size: 13px; letter-spacing: 3px; font-weight: 700; }
.product-card .name { margin-top: 10px; font-size: 13px; color: var(--gray-900); line-height: 1.45; max-height: 38px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-card .compare { font-size: 11px; color: var(--gray-400); text-decoration: line-through; margin-top: 5px; }
.product-card .price { font-size: 14px; font-weight: 800; margin-top: 2px; }
.product-card .price em { font-style: normal; color: var(--accent); margin-right: 5px; }
.card-rating { display: flex; align-items: center; gap: 4px; margin-top: 4px; color: var(--gold-deep); font-size: 11px; }
.card-rating span { color: var(--gray-400); }
.stars { display: inline-flex; gap: 1px; color: var(--gold-deep); }
.product-grid.home-slider-frame { display: block; overflow: hidden; position: relative; }
.home-slider-track { display: flex; width: 100%; transform: translateX(0); transition: transform .55s cubic-bezier(.42,0,.18,1); will-change: transform; }
.home-slider-track.is-moving { transform: translateX(-100%); }
.home-slide-pane { flex: 0 0 100%; display: grid; grid-template-columns: repeat(var(--home-cols, 4), minmax(0, 1fr)); gap: 30px 18px; align-items: start; }
.home-slide-pane .product-card { min-width: 0; }

/* ---------- 프로모 배너 ---------- */
.promo-banner { height: 200px; display: flex; align-items: center; justify-content: center; color: #fff; text-align: center; margin: 64px 0 0; }
.promo-banner h3 { font-size: 30px; font-weight: 800; letter-spacing: 1px; }
.promo-banner h3 span { color: var(--gold); }
.promo-banner p { font-size: 14px; opacity: .85; margin-top: 6px; }

/* ---------- 리뷰 ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review-card { border: 1px solid var(--gray-200); padding: 22px; background: #fff; }
.review-card .txt { margin-top: 10px; font-size: 13px; color: var(--gray-600); line-height: 1.7; max-height: 66px; overflow: hidden; }
.review-card .meta { margin-top: 14px; font-size: 12px; color: var(--gray-400); display: flex; justify-content: space-between; }
.review-card .prod { margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--gray-900); }
.review-card .prod a:hover { color: var(--gold-deep); }

/* ---------- 팝업 ---------- */
.popup-overlay { position: fixed; inset: 0; background: rgba(20,18,14,.5); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.popup-stack { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; max-height: 90vh; overflow-y: auto; }
.popup-card { background: #fff; width: min(420px, 88vw); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.popup-img { display: block; }
.popup-img img { width: 100%; max-height: 70vh; object-fit: contain; background: var(--gray-50); }
.popup-actions { display: flex; border-top: 1px solid var(--gray-200); }
.popup-actions button { flex: 1; padding: 13px; font-size: 12px; color: var(--gray-600); }
.popup-actions button:hover { color: var(--black); background: var(--gray-50); }
.popup-actions .popup-close { border-left: 1px solid var(--gray-200); font-weight: 700; color: var(--black); }

/* ---------- 푸터 ---------- */
.site-footer { margin-top: 60px; background: #fff; color: var(--gray-400); font-size: 11px; border-top: 1px solid var(--gray-100); }
.footer-top { border-bottom: 1px solid #2e2b23; }
.footer-top .container { display: flex; gap: 60px; padding: 40px 15px; flex-wrap: wrap; }
.footer-col h4 { color: var(--gold); font-size: 13px; margin-bottom: 14px; letter-spacing: 1px; }
.footer-col li { margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-col .cs-tel { font-size: 24px; font-weight: 800; color: #fff; }
.footer-bottom { padding: 20px 15px; text-align: center; color: var(--gray-400); line-height: 1.8; }
.footer-bottom a:hover { color: var(--black); }

/* ---------- 서브 페이지 공통 ---------- */
.page-title { text-align: center; margin: 46px 0 30px; }
.page-title h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; }
.page-title p { color: var(--gray-600); font-size: 13px; margin-top: 8px; }
.breadcrumb { font-size: 12px; color: var(--gray-400); margin: 20px 0 0; }
.breadcrumb a:hover { color: var(--black); }

/* ---------- 카테고리 목록 ---------- */
.cat-layout { display: flex; gap: 40px; margin-top: 30px; }
.cat-side { width: 190px; flex-shrink: 0; }
.cat-side h3 { font-size: 17px; font-weight: 800; padding-bottom: 14px; border-bottom: 2px solid var(--black); }
.cat-side li a { display: block; padding: 10px 2px; font-size: 13px; color: var(--gray-600); border-bottom: 1px solid var(--gray-100); }
.cat-side li a:hover, .cat-side li a.on { color: var(--black); font-weight: 700; }
.cat-main { flex: 1; min-width: 0; }
.cat-toolbar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--gray-200); margin-bottom: 22px; font-size: 13px; color: var(--gray-600); gap: 10px; flex-wrap: wrap; }
.cat-toolbar .tools { display: flex; align-items: center; gap: 12px; }
.cat-toolbar select { border: 1px solid var(--gray-200); padding: 7px 10px; font-size: 13px; outline: none; background: #fff; }
.cat-toolbar label { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.empty-note { text-align: center; color: var(--gray-400); padding: 80px 0; font-size: 14px; }
.brand-overview { display: block; }
.brand-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.brand-chip { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--gray-200); background: #fff; padding: 14px 16px; transition: .18s; }
.brand-chip b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.brand-chip span { flex-shrink: 0; color: var(--gray-400); font-weight: 800; font-size: 12px; }
.brand-chip:hover, .brand-chip.on { border-color: var(--black); background: var(--gray-50); }

/* ---------- 상품 상세 ---------- */
.detail-wrap { display: flex; gap: 50px; margin-top: 40px; }
.detail-gallery { width: 46%; flex-shrink: 0; }
.detail-gallery .main-img { aspect-ratio: 1; background: var(--gray-50); overflow: hidden; position: relative; }
.detail-gallery .main-img svg, .detail-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { flex: 1; min-width: 0; }
.detail-info .d-badges { display: flex; gap: 5px; margin-bottom: 12px; }
.detail-info h1 { font-size: 22px; font-weight: 700; line-height: 1.4; letter-spacing: -0.3px; }
.detail-info .d-rating { margin-top: 8px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--gray-400); }
.detail-info .d-compare { color: var(--gray-400); text-decoration: line-through; font-size: 13px; margin-top: 14px; }
.detail-info .d-price { font-size: 28px; font-weight: 800; margin-top: 2px; }
.detail-info .d-price em { font-style: normal; color: var(--accent); font-size: 20px; margin-right: 8px; }
.d-meta { margin-top: 22px; border-top: 1px solid var(--gray-200); padding-top: 18px; font-size: 13px; }
.d-meta dl { display: flex; margin-bottom: 10px; }
.d-meta dt { width: 90px; color: var(--gray-400); }
.d-opt { margin-top: 8px; }
.d-opt select { width: 100%; padding: 12px; border: 1px solid var(--gray-200); outline: none; background: #fff; }
.qty-row { display: flex; align-items: center; justify-content: space-between; background: var(--gray-100); padding: 14px 16px; margin-top: 18px; gap: 10px; }
.qty-row .q-name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qty-ctrl { display: flex; border: 1px solid var(--gray-200); background: #fff; flex-shrink: 0; }
.qty-ctrl button { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; }
.qty-ctrl input { width: 44px; text-align: center; border: none; outline: none; }
.d-total { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 18px; border-top: 2px solid var(--black); }
.d-total .label { font-size: 14px; }
.d-total .val { font-size: 26px; font-weight: 800; }
.d-total .val small { font-size: 13px; font-weight: 400; }
.d-actions { display: flex; gap: 8px; margin-top: 20px; }
.d-actions button { height: 52px; font-size: 15px; font-weight: 700; transition: .2s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-wish { width: 56px; border: 1px solid var(--gray-200); background: #fff; color: var(--gray-600); flex-shrink: 0; }
.btn-wish.on { color: var(--accent); border-color: var(--accent); }
.btn-cart { flex: 1; border: 1px solid var(--black); background: #fff; }
.btn-cart:hover { background: var(--gray-100); }
.btn-buy { flex: 1; background: var(--black); color: #fff; }
.btn-buy:hover { color: var(--gold); }
.d-actions button:disabled { opacity: .45; cursor: not-allowed; }
.detail-tabs { margin-top: 70px; }
.detail-tabs .tab-nav { display: flex; border: 1px solid var(--gray-200); border-bottom: 1px solid var(--black); }
.detail-tabs .tab-nav button { flex: 1; padding: 15px 6px; font-size: 14px; color: var(--gray-600); background: var(--gray-50); border-right: 1px solid var(--gray-200); }
.detail-tabs .tab-nav button:last-child { border-right: none; }
.detail-tabs .tab-nav button.on { background: #fff; color: var(--black); font-weight: 800; }
.detail-tabs .tab-body { padding: 40px 10px; font-size: 14px; color: var(--gray-600); line-height: 2; min-height: 200px; }
.detail-image-stack { margin: 34px auto 0; max-width: 860px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.detail-image-stack img, .detail-image-stack svg { width: 100%; max-width: 860px; height: auto; display: block; background: var(--gray-50); }
.detail-image-stack svg { aspect-ratio: 5 / 6; }
.review-item { border-bottom: 1px solid var(--gray-200); padding: 16px 0; }
.review-item .r-head { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--gray-400); }
.review-item .r-txt { margin-top: 8px; color: var(--gray-900); line-height: 1.7; }
.review-form { background: var(--gray-50); border: 1px solid var(--gray-200); padding: 20px; margin-bottom: 24px; }
.review-form h4 { font-size: 14px; margin-bottom: 12px; color: var(--black); }
.review-form .rf-row { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; }
.review-form select { border: 1px solid var(--gray-200); padding: 8px 10px; background: #fff; outline: none; }
.review-form textarea { width: 100%; border: 1px solid var(--gray-200); padding: 12px; min-height: 80px; outline: none; resize: vertical; }
.review-form .rf-submit { background: var(--black); color: #fff; padding: 10px 28px; font-weight: 700; font-size: 13px; }

/* ---------- 폼 (로그인/회원가입/찾기) ---------- */
.auth-box { max-width: 420px; margin: 60px auto 0; padding: 0 15px; }
.auth-box h1 { text-align: center; font-size: 26px; font-weight: 800; letter-spacing: 2px; margin-bottom: 10px; }
.auth-box .auth-sub { text-align: center; color: var(--gray-400); font-size: 12px; margin-bottom: 30px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; color: var(--gray-600); }
.field input, .field select, .field textarea { width: 100%; height: 48px; border: 1px solid var(--gray-200); padding: 0 14px; outline: none; background: #fff; }
.field textarea { height: auto; padding: 12px 14px; min-height: 70px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--black); }
.field .hint { font-size: 11px; color: var(--gray-400); margin-top: 4px; }
.inline-field { display: flex; gap: 8px; align-items: stretch; }
.inline-field input { flex: 1; min-width: 0; }
.btn-inline { flex: 0 0 auto; min-width: 86px; height: 48px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--black); background: var(--black); color: #fff; font-size: 12px; font-weight: 800; white-space: nowrap; }
.btn-inline:hover { color: var(--gold); }
.form-error { color: var(--accent); font-size: 12px; margin: 6px 0 0; min-height: 16px; }
.form-ok { color: #1d7a3e; font-size: 13px; margin: 6px 0 0; min-height: 16px; font-weight: 700; }
.btn-primary { width: 100%; height: 52px; background: var(--black); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 1px; margin-top: 10px; }
.btn-primary:hover { color: var(--gold); }
.auth-links { margin-top: 18px; text-align: center; font-size: 13px; color: var(--gray-600); display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.auth-links a:hover { color: var(--black); text-decoration: underline; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 26px 0; color: var(--gray-400); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-600); margin: 4px 0 14px; }
.auth-tabs { display: flex; margin-bottom: 24px; border: 1px solid var(--gray-200); }
.auth-tabs button { flex: 1; padding: 13px; font-size: 14px; color: var(--gray-600); background: var(--gray-50); }
.auth-tabs button.on { background: var(--black); color: #fff; font-weight: 700; }

/* ---------- 장바구니 / 주문 ---------- */
.cart-table { width: 100%; border-collapse: collapse; margin-top: 10px; border-top: 2px solid var(--black); min-width: 640px; }
.cart-table th { padding: 14px 8px; border-bottom: 1px solid var(--gray-200); font-size: 13px; background: var(--gray-50); }
.cart-table td { padding: 18px 8px; border-bottom: 1px solid var(--gray-200); text-align: center; font-size: 13px; vertical-align: middle; }
.cart-item-info { display: flex; align-items: center; gap: 14px; text-align: left; }
.cart-item-info .ci-thumb { width: 74px; height: 74px; flex-shrink: 0; background: var(--gray-50); }
.cart-item-info .ci-thumb svg, .cart-item-info .ci-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info .ci-name { font-size: 13px; line-height: 1.4; }
.cart-item-info .ci-opt { font-size: 12px; color: var(--gray-400); margin-top: 4px; }
.btn-x { color: var(--gray-400); padding: 4px 8px; }
.btn-x:hover { color: var(--accent); }
.cart-summary { margin-top: 26px; border: 1px solid var(--gray-200); background: var(--gray-50); display: flex; justify-content: space-around; align-items: center; padding: 28px; text-align: center; }
.cart-summary .cs-item .cs-label { font-size: 12px; color: var(--gray-600); margin-bottom: 6px; }
.cart-summary .cs-item .cs-val { font-size: 20px; font-weight: 800; }
.cart-summary .cs-op { font-size: 20px; color: var(--gray-400); }
.cart-summary .cs-item.total .cs-val { font-size: 24px; color: var(--accent); }
.cart-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }
.cart-actions .btn-outline { border: 1px solid var(--black); padding: 14px 34px; font-size: 14px; font-weight: 700; background: #fff; display: inline-flex; align-items: center; }
.cart-actions .btn-fill { background: var(--black); color: #fff; padding: 14px 44px; font-size: 14px; font-weight: 700; }
.cart-actions .btn-fill:hover { color: var(--gold); }

/* ---------- 주문서 (체크아웃) ---------- */
.checkout-layout { display: flex; gap: 40px; margin-top: 30px; align-items: flex-start; }
.checkout-form { flex: 1; min-width: 0; }
.checkout-panel { border: 1px solid var(--gray-200); padding: 24px; margin-bottom: 20px; background: #fff; }
.checkout-panel h2 { font-size: 16px; font-weight: 800; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--black); }
.checkout-side { width: 340px; flex-shrink: 0; position: sticky; top: 70px; }
.co-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gray-100); font-size: 13px; }
.co-item .co-thumb { width: 54px; height: 54px; flex-shrink: 0; background: var(--gray-50); }
.co-item .co-thumb svg, .co-item .co-thumb img { width: 100%; height: 100%; object-fit: cover; }
.co-total-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13px; color: var(--gray-600); }
.co-total-row.grand { border-top: 2px solid var(--black); margin-top: 10px; padding-top: 14px; font-size: 15px; color: var(--black); font-weight: 800; }
.co-total-row.grand .val { font-size: 22px; color: var(--accent); }
.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-options label { border: 1px solid var(--gray-200); padding: 13px; text-align: center; cursor: pointer; font-size: 13px; }
.pay-options input { display: none; }
.pay-options input:checked + span { font-weight: 800; }
.pay-options label:has(input:checked) { border-color: var(--black); background: var(--gray-50); }
.order-complete { text-align: center; padding: 70px 15px; }
.order-complete .oc-icon { color: var(--gold-deep); margin-bottom: 18px; }
.order-complete h1 { font-size: 26px; font-weight: 800; }
.order-complete .oc-no { margin-top: 10px; color: var(--gray-600); font-size: 14px; }
.order-complete .oc-no b { color: var(--black); }

/* ---------- 마이페이지 ---------- */
.my-layout { display: flex; gap: 40px; margin-top: 30px; align-items: flex-start; }
.my-side { width: 210px; flex-shrink: 0; border: 1px solid var(--gray-200); }
.my-side .my-profile { background: var(--black); color: #fff; padding: 22px 20px; }
.my-side .my-profile .mp-name { font-size: 17px; font-weight: 800; }
.my-side .my-profile .mp-name span { color: var(--gold); }
.my-side .my-profile .mp-id { font-size: 12px; color: #a39d8d; margin-top: 4px; }
.my-side nav button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 14px 20px; font-size: 14px; color: var(--gray-600); border-bottom: 1px solid var(--gray-100); }
.my-side nav button:hover { color: var(--black); background: var(--gray-50); }
.my-side nav button.on { color: var(--black); font-weight: 800; border-left: 3px solid var(--gold); background: var(--gray-50); }
.my-main { flex: 1; min-width: 0; }
.my-main h2 { font-size: 19px; font-weight: 800; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--black); }
.order-card { border: 1px solid var(--gray-200); margin-bottom: 16px; }
.order-card .oc-head { display: flex; justify-content: space-between; align-items: center; background: var(--gray-50); padding: 12px 18px; font-size: 13px; flex-wrap: wrap; gap: 6px; }
.order-card .oc-head .status { font-weight: 800; }
.order-card .oc-body { padding: 6px 18px; }
.order-card .oc-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-top: 1px solid var(--gray-100); font-size: 13px; }
.order-card .oc-foot b { font-size: 16px; }
.status-chip { display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 10px; background: var(--gray-100); color: var(--gray-600); }
.status-chip.s입금대기 { background: #f7ecd2; color: #9a6b00; }
.status-chip.s결제완료 { background: #ece4c7; color: var(--gold-deep); }
.status-chip.s배송준비 { background: #dce7f5; color: #2c5a9e; }
.status-chip.s배송중 { background: #d9efe2; color: #1d7a3e; }
.status-chip.s배송완료 { background: var(--black); color: var(--gold); }
.status-chip.s취소요청, .status-chip.s취소완료 { background: #f5dcdc; color: var(--accent); }
.status-chip.s반품신청, .status-chip.s반품완료 { background: #e9dff2; color: #6b3fa0; }
.tracking-box { background: var(--gray-50); border: 1px solid var(--gray-200); padding: 12px 16px; margin: 8px 0; font-size: 13px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tracking-box .btn-track { background: var(--black); color: #fff; padding: 7px 16px; font-size: 12px; font-weight: 700; }
.tracking-box .btn-track:hover { color: var(--gold); }
.deposit-box { background: #fdf9ee; border: 1px solid #e8d9ab; padding: 14px 16px; margin: 8px 0; font-size: 13px; line-height: 1.8; }
.deposit-box b { color: var(--gold-deep); }
.qna-item { border-bottom: 1px solid var(--gray-200); padding: 16px 0; }
.qna-item .q-row { display: flex; gap: 10px; align-items: baseline; }
.qna-item .q-mark { font-weight: 800; color: var(--gold-deep); flex-shrink: 0; }
.qna-item .a-row { display: flex; gap: 10px; margin-top: 10px; background: var(--gray-50); padding: 12px 14px; align-items: baseline; }
.qna-item .a-mark { font-weight: 800; color: var(--black); flex-shrink: 0; }
.qna-item .meta { font-size: 12px; color: var(--gray-400); margin-top: 6px; }
.qna-wait { font-size: 12px; color: var(--gray-400); margin-top: 8px; }
.notice-item { border-bottom: 1px solid var(--gray-200); }
.notice-item .n-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 6px; cursor: pointer; gap: 10px; }
.notice-item .n-head:hover { background: var(--gray-50); }
.notice-item .n-title { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.notice-item .n-pin { font-size: 10px; font-weight: 800; background: var(--black); color: var(--gold); padding: 2px 8px; border-radius: 8px; }
.notice-item .n-date { font-size: 12px; color: var(--gray-400); white-space: nowrap; }
.notice-item .n-body { display: none; padding: 4px 6px 20px; color: var(--gray-600); font-size: 13px; line-height: 1.9; white-space: pre-line; }
.notice-item.open .n-body { display: block; }

/* ---------- 어드민 ---------- */
.admin-layout { display: flex; min-height: 100vh; }
.admin-side { width: 230px; background: var(--black); color: #a39d8d; flex-shrink: 0; padding: 26px 0; }
.admin-side .a-logo { color: #fff; font-size: 18px; font-weight: 300; letter-spacing: 3px; padding: 0 24px 22px; border-bottom: 1px solid #2e2b23; display: flex; align-items: center; gap: 8px; }
.admin-side .a-logo svg { color: var(--gold); }
.admin-side .a-logo b { font-weight: 800; }
.admin-side .a-logo small { display: block; font-size: 9px; color: #6f6a5c; letter-spacing: 2px; margin-top: 3px; }
.admin-side nav { margin-top: 14px; }
.admin-side nav button { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; padding: 13px 24px; color: #a39d8d; font-size: 14px; }
.admin-side nav button:hover { background: #262218; color: #fff; }
.admin-side nav button.on { background: #000; color: #fff; font-weight: 700; border-left: 3px solid var(--gold); }
.admin-side .a-bottom { margin-top: 30px; padding: 20px 24px; border-top: 1px solid #2e2b23; font-size: 12px; }
.admin-side .a-bottom a { color: #8b8574; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.admin-side .a-bottom a:hover { color: #fff; }
.admin-main { flex: 1; padding: 34px 38px; background: var(--gray-50); min-width: 0; }
.admin-main h1 { font-size: 22px; font-weight: 800; margin-bottom: 24px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 30px; }
.stat-card { background: #fff; border: 1px solid var(--gray-200); padding: 22px; border-top: 3px solid var(--gold); }
.stat-card .s-label { font-size: 12px; color: var(--gray-600); }
.stat-card .s-val { font-size: 26px; font-weight: 800; margin-top: 8px; }
.stat-card .s-sub { font-size: 11px; color: var(--gray-400); margin-top: 4px; }
.admin-panel { background: #fff; border: 1px solid var(--gray-200); padding: 26px; margin-bottom: 26px; }
.admin-panel h2 { font-size: 16px; font-weight: 800; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--black); }
.admin-panel .panel-desc { font-size: 13px; color: var(--gray-600); margin: -8px 0 16px; line-height: 1.7; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { background: var(--gray-100); padding: 11px 10px; text-align: left; border-bottom: 1px solid var(--gray-200); white-space: nowrap; }
.admin-table td { padding: 11px 10px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.admin-table .t-thumb { width: 46px; height: 46px; background: var(--gray-50); }
.admin-table .t-thumb svg, .admin-table .t-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-table select { border: 1px solid var(--gray-200); padding: 6px 8px; font-size: 12px; outline: none; background: #fff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.btn-admin { background: var(--black); color: #fff; padding: 11px 26px; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.btn-admin:hover { color: var(--gold); }
.btn-admin.ghost { background: #fff; color: var(--black); border: 1px solid var(--black); }
.btn-admin.ghost:hover { color: var(--black); background: var(--gray-100); }
.btn-admin.danger { background: var(--accent); }
.btn-admin.danger:hover { color: #fff; opacity: .85; }
.btn-sm { font-size: 12px; padding: 5px 12px; border: 1px solid var(--gray-200); background: #fff; }
.btn-sm:hover { border-color: var(--black); }
.btn-sm.danger { color: var(--accent); }
.btn-sm.danger:hover { border-color: var(--accent); }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--gray-100); border: 1px solid var(--gray-200); padding: 5px 8px 5px 12px; font-size: 12px; margin: 0 6px 6px 0; }
.chip button { color: var(--gray-400); display: flex; }
.chip button:hover { color: var(--accent); }
.color-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.color-swatches label { width: 34px; height: 34px; cursor: pointer; display: block; }
.color-swatches input { display: none; }
.color-swatches input:checked + span { outline: 3px solid var(--black); outline-offset: 2px; }
.color-swatches span { display: block; width: 100%; height: 100%; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.admin-toolbar input[type=text] { border: 1px solid var(--gray-200); padding: 9px 12px; width: 240px; outline: none; }
.admin-toolbar select { border: 1px solid var(--gray-200); padding: 9px 12px; outline: none; background: #fff; }
.upload-zone { border: 2px dashed var(--gray-200); background: var(--gray-50); padding: 28px; text-align: center; color: var(--gray-600); font-size: 13px; cursor: pointer; transition: .2s; }
.upload-zone:hover { border-color: var(--gold-deep); color: var(--black); }
.upload-zone input { display: none; }
.popup-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.popup-admin-card { border: 1px solid var(--gray-200); }
.popup-admin-card img { width: 100%; aspect-ratio: 5/6; object-fit: cover; background: var(--gray-50); }
.popup-admin-card .pa-body { padding: 12px 14px; font-size: 13px; }
.popup-admin-card .pa-actions { display: flex; gap: 6px; padding: 0 14px 12px; flex-wrap: wrap; }
.bulk-textarea { width: 100%; min-height: 160px; border: 1px solid var(--gray-200); padding: 12px; font-family: Consolas, monospace; font-size: 12px; outline: none; resize: vertical; }
.bulk-result { margin-top: 14px; font-size: 13px; }
.bulk-result .row-ok { color: #1d7a3e; }
.bulk-result .row-err { color: var(--accent); }

/* ---------- 토스트 ---------- */
#toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px); background: rgba(20,18,14,.95); color: #fff; padding: 13px 28px; font-size: 13px; opacity: 0; pointer-events: none; transition: .3s; z-index: 999; max-width: 90vw; text-align: center; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 반응형 ---------- */
@media (max-width: 1024px) {
  .product-grid, .product-grid.cols-5, .product-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-slide-pane { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-wrap { flex-direction: column; }
  .detail-gallery { width: 100%; }
  .checkout-layout { flex-direction: column; }
  .checkout-side { width: 100%; position: static; }
}
@media (max-width: 720px) {
  .header-main { flex-wrap: wrap; gap: 12px; padding: 16px 15px; }
  .logo .logo-text { font-size: 22px; letter-spacing: 3px; }
  .header-search { order: 3; max-width: none; width: 100%; }
  .header-icons { gap: 14px; }
  .header-icons .ico-label { display: none; } /* 배지(.cart-badge)는 유지 */
  .cart-badge { right: -6px; }
  .gnb { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .gnb > li > a { white-space: nowrap; padding: 13px 13px; font-size: 14px; }
  .gnb .dropdown { display: none !important; }
  .hero { height: 340px; } .hero-slide h2 { font-size: 27px; }
  .hero-arrow { display: none; }
  .shortcuts { grid-template-columns: repeat(3, 1fr); gap: 12px 8px; }
  .shortcut .thumb { height: 72px; }
  .shortcut .shortcut-photo { height: 110px; }
  .shortcut-photo img, .shortcut-photo svg { padding: 6px; }
  .shortcut-label { font-size: 12px; }
  .product-grid, .product-grid.cols-5, .product-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .home-slide-pane { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .product-card .thumb img { object-fit: contain; padding: 6px; }
  .detail-gallery .main-img img { object-fit: contain; }
  .cart-item-info .ci-thumb img, .co-item .co-thumb img { object-fit: contain; padding: 4px; box-sizing: border-box; }
  .review-grid { grid-template-columns: 1fr; }
  .cat-layout { flex-direction: column; gap: 14px; margin-top: 18px; }
  .cat-side { width: 100%; display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 8px; border-bottom: 1px solid var(--gray-200); }
  .cat-side::-webkit-scrollbar { display: none; }
  .cat-side h3 { display: none; }
  .cat-side ul { display: contents; }
  .cat-side li { flex: 0 0 auto; }
  .cat-side li a { display: flex; align-items: center; gap: 5px; white-space: nowrap; border: 1px solid var(--gray-100); padding: 8px 11px; background: var(--gray-50); margin-bottom: 0; }
  .cat-side li a span { float: none !important; margin-left: 2px; }
  .cat-toolbar { margin-bottom: 16px; }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .brand-chip { min-height: 48px; padding: 11px 12px; }
  .cart-summary { flex-direction: column; gap: 14px; }
  .cart-actions { justify-content: stretch; }
  .cart-actions > * { flex: 1; text-align: center; justify-content: center; }
  .my-layout { flex-direction: column; }
  .my-side { width: 100%; }
  .my-side nav { display: flex; overflow-x: auto; }
  .my-side nav button { white-space: nowrap; border-bottom: none; width: auto; }
  .admin-layout { flex-direction: column; }
  .admin-side { width: 100%; padding: 16px 0; }
  .admin-side nav { display: flex; overflow-x: auto; margin-top: 8px; }
  .admin-side nav button { white-space: nowrap; width: auto; padding: 11px 16px; }
  .admin-side nav button.on { border-left: none; border-bottom: 2px solid var(--gold); }
  .admin-side .a-bottom { display: flex; gap: 18px; padding: 12px 20px 0; margin-top: 8px; }
  .admin-main { padding: 22px 15px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top .container { gap: 30px; }
  .d-actions { flex-wrap: wrap; }
  .popup-stack { flex-direction: column; align-items: center; }
}
