/* ===========================================================
   YuDa Tech — Hong Kong Phone Wholesale
   =========================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:        #B71C1C;          /* 홍콩풍 레드 */
  --brand-dark:   #8B0000;
  --brand-light:  #FEE2E2;
  --accent:       #F59E0B;          /* 골드 */
  --accent-2:     #1F2937;
  --ok:           #10B981;
  --info:         #3B82F6;
  --text:         #111827;
  --text-sub:     #4B5563;
  --text-mute:    #9CA3AF;
  --line:         #E5E7EB;
  --line-soft:    #F3F4F6;
  --bg:           #FFFFFF;
  --bg-soft:      #F9FAFB;
  --bg-warm:      #FFFBEB;
  --footer-bg:    #0B0F14;
  --shadow-sm:    0 1px 2px rgba(0,0,0,.05);
  --shadow:       0 4px 12px rgba(0,0,0,.08);
  --shadow-lg:    0 12px 32px rgba(0,0,0,.14);
  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    20px;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
               "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--text);
  background: var(--bg-soft);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; font-size: inherit; }
img, svg { max-width: 100%; display: block; }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  position: relative;
}
.logo { display: flex; gap: 12px; align-items: center; cursor: pointer; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 11px;
  background: linear-gradient(135deg, #B71C1C 0%, #7B0000 100%);
  color: #fff; font-weight: 900; font-size: 22px;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(183,28,28,.35);
}
.logo-name { font-size: 18px; font-weight: 900; letter-spacing: .3px; color: var(--brand); }
.logo-sub  { font-size: 11px; color: var(--text-sub); margin-top: 1px; }

.search-wrap {
  display: flex; height: 42px;
  background: var(--bg-soft);
  border: 2px solid transparent;
  border-radius: 21px;
  overflow: hidden;
  transition: border .15s, background .15s;
}
.search-wrap:focus-within {
  background: #fff;
  border-color: var(--brand);
}
.search-wrap input {
  flex: 1; padding: 0 18px;
  border: none; background: transparent; outline: none;
  font-size: 14px;
}
.search-wrap button {
  width: 50px; font-size: 17px; color: var(--brand);
}

.header-actions { display: flex; gap: 8px; align-items: center; }
.hbtn {
  height: 38px; padding: 0 14px;
  border-radius: 19px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .12s, color .12s;
}
.hbtn:hover { background: var(--brand-light); color: var(--brand); }
.cart-btn { position: relative; background: var(--brand); color: #fff; }
.cart-btn:hover { background: var(--brand-dark); color: #fff; }
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--accent);
  color: #fff; font-size: 11px; font-weight: 800;
  border-radius: 10px;
  display: grid; place-items: center;
  border: 2px solid #fff;
}

/* 언어 패널 */
.lang-panel {
  position: absolute; top: 64px; right: 200px;
  width: 180px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 200;
}
.lang-panel button {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px; text-align: left; color: var(--text);
}
.lang-panel button:hover { background: var(--brand-light); color: var(--brand); }
.lang-panel button span { font-size: 18px; line-height: 1; }

/* 브랜드 네비 */
.brand-nav {
  max-width: 1320px; margin: 0 auto;
  padding: 0 24px 12px;
  display: flex; gap: 8px; flex-wrap: wrap;
  overflow-x: auto;
}
.brand-nav button {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 13px; font-weight: 600;
  color: var(--text-sub);
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .12s;
}
.brand-nav button:hover { background: var(--brand-light); color: var(--brand); }
.brand-nav button.active {
  background: var(--brand);
  color: #fff;
}

/* ============================================================
   Page / Hero
   ============================================================ */
.page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}

.hero {
  position: relative;
  background: linear-gradient(120deg, #B71C1C 0%, #7B0000 60%, #4A0000 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 50px 44px;
  margin-bottom: 28px;
  overflow: hidden;
  min-height: 320px;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: .35;
  filter: saturate(1.1) contrast(1.02);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(120deg, rgba(120,15,15,.78) 0%, rgba(75,0,0,.68) 60%, rgba(35,0,0,.85) 100%),
    radial-gradient(circle at 85% 30%, rgba(255,193,7,.18), transparent 50%),
    radial-gradient(circle at 15% 80%, rgba(255,255,255,.10), transparent 45%);
}
.hero > * { position: relative; z-index: 2; }
.hero-title {
  font-size: 42px; font-weight: 900;
  letter-spacing: -.5px;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.hero-sub {
  font-size: 16px; opacity: .92; max-width: 720px;
  line-height: 1.6;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.hero-stats {
  display: flex; gap: 28px; margin-top: 24px;
}
.hero-stat {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 14px 22px;
  min-width: 140px;
}
.hero-stat-n { font-size: 26px; font-weight: 900; }
.hero-stat-l { font-size: 12px; opacity: .85; margin-top: 2px; }

/* B2B 리본 */
.hero-b2b-ribbon {
  display: inline-block;
  background: linear-gradient(90deg, #FBBF24, #F59E0B);
  color: #5C2C00;
  font-size: 13px; font-weight: 800;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 14px;
  letter-spacing: .3px;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.3);
}

/* 듀얼 쇼룸 */
.hero-locations {
  display: flex; align-items: stretch; gap: 18px;
  margin-top: 22px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 16px 22px;
  backdrop-filter: blur(8px);
}
.hero-loc { display: flex; gap: 14px; align-items: center; flex: 1; }
.hl-flag { font-size: 38px; line-height: 1; }
.hl-info { display: flex; flex-direction: column; gap: 2px; }
.hl-name {
  font-size: 16px; font-weight: 800;
  color: #fff; letter-spacing: -.2px;
}
.hl-badge {
  display: inline-block;
  background: #FBBF24; color: #5C2C00;
  font-size: 10px; font-weight: 900;
  padding: 2px 8px; border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.hl-en {
  font-size: 11px;
  color: rgba(255,255,255,.78);
  font-weight: 500;
}
.hero-loc-divider {
  display: grid; place-items: center;
  font-size: 22px;
  color: rgba(255,255,255,.4);
  font-weight: 200;
}

/* MOQ 단가 티어 */
.hero-tiers {
  margin-top: 16px;
  background: rgba(255,255,255,.08);
  border: 1px dashed rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 12px 18px;
}
.hero-tier-title {
  font-size: 12px; font-weight: 800;
  color: rgba(255,255,255,.92);
  letter-spacing: .4px;
  margin-bottom: 8px;
}
.hero-tier-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.hero-tier {
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  padding: 8px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.hero-tier .ht-qty {
  font-size: 12px; font-weight: 700;
  color: rgba(255,255,255,.85);
}
.hero-tier .ht-off {
  font-size: 18px; font-weight: 900;
  color: #FBBF24;
}
.hero-tier-hi {
  background: linear-gradient(135deg, #FBBF24, #F59E0B);
  border-color: #FBBF24;
}
.hero-tier-hi .ht-qty { color: #5C2C00; }
.hero-tier-hi .ht-off { color: #5C2C00; }

/* ============================================================
   Filter + List
   ============================================================ */
.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

.filter-panel {
  position: sticky; top: 130px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.filter-panel h3 {
  font-size: 14px; font-weight: 800;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--brand-light);
  color: var(--brand);
  display: flex; justify-content: space-between; align-items: center;
}
.filter-panel h3 button {
  font-size: 11px; color: var(--text-sub); font-weight: 600;
  text-decoration: underline;
}
.filter-group { margin-top: 14px; }
.filter-group .lbl {
  font-size: 11px; font-weight: 700;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}
.filter-group label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  padding: 5px 0;
  cursor: pointer;
  color: var(--text-sub);
}
.filter-group label:hover { color: var(--text); }
.filter-group input { accent-color: var(--brand); }
.filter-group .price-range {
  display: flex; gap: 6px;
}
.filter-group .price-range input {
  width: 100%; padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
}

/* 결과 헤더 */
.result-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.result-head .count {
  font-size: 14px; color: var(--text-sub);
}
.result-head .count strong { color: var(--brand); font-weight: 800; }
.result-head select {
  height: 38px; padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}

/* 상품 그리드 */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-auto-rows: min-content;
  gap: 14px;
  align-items: start;
}
.load-more-wrap {
  display: flex; justify-content: center;
  margin: 28px 0 16px;
}
.btn-load-more {
  background: #fff;
  border: 2px solid var(--brand);
  color: var(--brand);
  border-radius: 999px;
  padding: 12px 32px;
  font-size: 14px; font-weight: 800;
  cursor: pointer;
  transition: all .15s;
  letter-spacing: .3px;
}
.btn-load-more:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-load-more b { margin: 0 2px; }
.load-more-done {
  color: var(--text-mute);
  font-size: 13px; font-weight: 600;
  padding: 12px 24px;
  background: #fff;
  border-radius: 999px;
  border: 1px dashed var(--line);
}

.prod-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  align-self: start;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  cursor: pointer;
  display: flex; flex-direction: column;
}
.prod-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-light);
}
.prod-thumb {
  position: relative;
  background: #FFFFFF;
  height: 185px;
  display: grid; place-items: center;
  padding: 6px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.prod-thumb svg {
  width: auto !important;
  height: 100% !important;
  max-width: 60%;
  display: block;
}

/* 실제 제품 이미지 (Reebelo CDN) - 흰색 배경 자연스럽게 융합 */
.prod-thumb .phone-img {
  width: 100%; height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.10));
}
.prod-thumb .phone-svg-fallback {
  display: grid; place-items: center;
}
.prod-thumb .phone-svg-fallback svg {
  width: auto !important; height: 100% !important;
  max-width: 60%;
}
.prod-badges {
  position: absolute; top: 10px; left: 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.prod-badges span {
  font-size: 10px; font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  color: #fff;
  letter-spacing: .5px;
}
.bg-new   { background: linear-gradient(135deg,#10B981,#059669); }
.bg-hot   { background: linear-gradient(135deg,#F59E0B,#D97706); }
.bg-best  { background: linear-gradient(135deg,#EC4899,#BE185D); }
.bg-unlocked { background: linear-gradient(135deg,#3B82F6,#1D4ED8); }
.bg-sold { background: rgba(0,0,0,.65); }

.prod-stock-tag {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(255,255,255,.95);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px; font-weight: 700;
  color: var(--text);
  display: flex; gap: 4px; align-items: center;
}
.prod-stock-tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
}
.prod-stock-tag.low .dot { background: var(--accent); }
.prod-stock-tag.out .dot { background: var(--text-mute); }

/* BOX 뱃지 (썸네일 좌하단) */
.prod-box-tag {
  position: absolute; bottom: 10px; left: 10px;
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px; font-weight: 800;
  letter-spacing: .5px;
  box-shadow: 0 2px 6px rgba(59,130,246,.35);
}
/* 카트 행의 박스 표기 */
.box-tag {
  display: inline-block;
  padding: 1px 6px;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: 4px;
  font-size: 10px; font-weight: 800;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: .3px;
}

.prod-body {
  padding: 10px 12px;
  display: flex; flex-direction: column;
  gap: 4px;
}
.prod-brand {
  font-size: 10px;
  color: var(--text-mute);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.prod-name {
  font-size: 13px; font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}
.prod-spec {
  display: flex; flex-wrap: wrap; gap: 4px;
  font-size: 11px;
}
.prod-spec span {
  padding: 2px 7px;
  background: var(--line-soft);
  border-radius: 4px;
  color: var(--text-sub);
}
.prod-grade-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  margin-top: 4px;
  align-self: flex-start;
}

.prod-price-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding-top: 6px;
  margin-top: 2px;
  border-top: 1px dashed var(--line);
}
.prod-price-lbl {
  font-size: 10px;
  color: var(--text-mute);
  text-transform: uppercase;
}
.prod-price {
  font-size: 18px; font-weight: 900;
  color: var(--brand);
  letter-spacing: -.3px;
}
.prod-price small { font-size: 12px; font-weight: 700; color: var(--text-sub); margin-left: 2px; }

.prod-actions {
  display: flex; gap: 6px; padding: 0 12px 10px;
}
.prod-actions .btn-cart {
  flex: 1; height: 32px;
  background: var(--brand); color: #fff;
  font-size: 13px; font-weight: 700;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  transition: background .12s;
}
.prod-actions .btn-cart:hover { background: var(--brand-dark); }
.prod-actions .btn-view {
  width: 38px; height: 32px;
  background: var(--line-soft); color: var(--text-sub);
  border-radius: 8px;
  font-size: 14px;
}
.prod-actions .btn-view:hover { background: var(--brand-light); color: var(--brand); }
.prod-actions .btn-sold {
  flex: 1; height: 32px;
  background: var(--line-soft); color: var(--text-mute);
  border-radius: 8px; font-size: 12px; font-weight: 700;
  cursor: not-allowed;
}

/* 빈 상태 */
.empty-box {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 60px 20px;
  text-align: center;
  color: var(--text-sub);
}
.empty-box .ic { font-size: 48px; margin-bottom: 10px; }
.empty-box .ttl { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; }

/* ============================================================
   Detail
   ============================================================ */
.detail-back {
  font-size: 13px; color: var(--text-sub);
  margin-bottom: 14px;
  display: inline-block;
}
.detail-back:hover { color: var(--brand); }

.detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
}
.detail-img {
  position: relative;
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  aspect-ratio: 1/1;
  display: grid; place-items: center;
  padding: 20px;
  overflow: hidden;
}
.detail-img svg { width: 70%; }
.detail-img .phone-img-lg {
  width: 95%;
  max-height: 95%;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.12));
}
.detail-box-tag {
  position: absolute; top: 16px; right: 16px;
  background: #FEF3C7; color: #92400E;
  border: 1px solid #FCD34D;
  font-size: 12px; font-weight: 800;
  padding: 6px 12px; border-radius: 999px;
}

/* 상세 페이지 변형 셀렉터 (Reebelo 스타일) */
.detail-sub {
  font-size: 13px; color: var(--text-sub);
  margin: 4px 0 10px;
}
.opt-group { margin: 16px 0; }
.opt-label {
  font-size: 11px; font-weight: 800; letter-spacing: .5px;
  color: var(--text-mute); text-transform: uppercase;
  margin-bottom: 8px;
}
.opt-cur {
  font-size: 13px; font-weight: 700; color: var(--text);
  text-transform: none; letter-spacing: 0;
  margin-left: 4px;
}
.opt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-chip {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px; font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: all .15s;
}
.opt-chip:hover { border-color: var(--brand); }
.opt-chip.sel {
  background: #1F2937; color: #fff; border-color: #1F2937;
}
.opt-chip.dim {
  opacity: .55;
  background: #F9FAFB;
  color: var(--text-mute);
  border-style: dashed;
}
.opt-chip.dim small { font-size: 10px; }
.opt-color.dim {
  opacity: .45;
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px #D1D5DB;
}
.order-notice {
  background: #FFF7ED;
  border: 1px solid #FDBA74;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 12px 0;
  font-size: 13px;
  color: #9A3412;
  line-height: 1.6;
}
.order-notice .hint {
  font-size: 12px; color: #C2410C; font-weight: 700;
}

.opt-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.opt-color {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid #E5E7EB;
  cursor: pointer;
  position: relative;
  box-shadow: inset 0 0 0 2px #fff;
  transition: all .15s;
}
.opt-color:hover { transform: scale(1.08); }
.opt-color.sel {
  border-color: #1F2937;
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px #1F2937;
}
.opt-color.sel::after {
  content: '✓'; position: absolute;
  inset: 0; display: grid; place-items: center;
  color: #fff; font-weight: 900; font-size: 14px;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}

.opt-grades {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.opt-grade {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 4px;
  transition: all .15s;
}
.opt-grade:hover { border-color: var(--brand); }
.opt-grade.sel {
  border-color: var(--gc, var(--brand));
  background: color-mix(in srgb, var(--gc, var(--brand)) 8%, white);
  box-shadow: 0 0 0 1px var(--gc, var(--brand));
}
.opt-grade .og-name {
  font-size: 13px; font-weight: 800; color: var(--text);
}
.opt-grade .og-price {
  font-size: 14px; font-weight: 900; color: var(--brand);
}
.opt-stock {
  font-size: 14px; font-weight: 700; color: var(--text);
}

/* ============================================================
   Breadcrumb / Trust badges / MOQ table / Live activity
   ============================================================ */
.breadcrumb {
  display: flex; gap: 6px; align-items: center;
  font-size: 12px;
  color: var(--text-mute);
  margin: 4px 0 16px;
}
.breadcrumb a {
  color: var(--text-sub);
  cursor: pointer;
}
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumb .cur { color: var(--text); font-weight: 700; }
.breadcrumb span { color: var(--text-mute); }

/* 신뢰 배지 (이미지 아래) */
.detail-left { display: flex; flex-direction: column; gap: 14px; }
.trust-badges {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.tb {
  display: flex; gap: 10px; align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .15s;
}
.tb:hover { border-color: var(--brand-light); }
.tb-ic {
  font-size: 22px; line-height: 1;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--bg-soft);
  border-radius: 50%;
}
.tb-txt { display: flex; flex-direction: column; gap: 1px; line-height: 1.25; }
.tb-txt b { font-size: 12px; color: var(--text); font-weight: 800; }
.tb-txt span { font-size: 11px; color: var(--text-mute); }

/* Reebelo 스타일 가격 박스 */
.price-box.reebelo { padding: 0; overflow: hidden; }
.price-box.reebelo .price-main { padding: 18px 20px; }
.price-box.reebelo .val-row {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 4px;
}
.price-box.reebelo .val-old { display: flex; align-items: baseline; gap: 8px; }
.price-box.reebelo .old-price {
  text-decoration: line-through;
  color: var(--text-mute);
  font-size: 15px; font-weight: 600;
}
.price-box.reebelo .discount-pct {
  background: #DC2626; color: #fff;
  font-size: 12px; font-weight: 900;
  padding: 3px 8px; border-radius: 4px;
  letter-spacing: .3px;
}
.b2b-strip {
  background: linear-gradient(90deg, #B71C1C, #7B0000);
  color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 8px 18px;
  letter-spacing: .3px;
  display: flex; align-items: center; gap: 6px;
}
.b2b-strip b { color: #FBBF24; }

/* MOQ 대량 단가표 */
.moq-table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin: 16px 0;
}
.moq-head {
  background: linear-gradient(90deg, #5C2C00, #92400E);
  color: #FBBF24;
  font-size: 13px; font-weight: 800;
  padding: 10px 16px;
  letter-spacing: .3px;
}
.moq-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.moq-table th {
  background: var(--bg-soft);
  color: var(--text-mute);
  font-weight: 700;
  padding: 8px 12px;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.moq-table td {
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
}
.moq-table tr.cur {
  background: #FFF7ED;
}
.moq-table tr.cur td {
  color: #9A3412;
  font-weight: 900;
}

/* ─── 실시간 활동 바 (페이지 상단 고정) ─── */
.live-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: linear-gradient(90deg, #0B0F14, #1F2937);
  color: #fff;
  display: flex; justify-content: center; align-items: center; gap: 28px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.live-bar b { color: #FBBF24; font-weight: 900; margin: 0 2px; }
.lb-item { display: inline-flex; align-items: center; gap: 6px; }
.lb-l { color: rgba(255,255,255,.7); }
.lb-dot {
  width: 8px; height: 8px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16,185,129,.6);
}
.lb-pulse { animation: lbPulse 1.6s infinite; }
@keyframes lbPulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,.6); }
  70%  { box-shadow: 0 0 0 10px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
body { padding-top: 32px; }

/* ===========================================================
   Quality Assurance 페이지
   =========================================================== */
.qa-hero {
  position: relative;
  background: linear-gradient(135deg, #1F2937 0%, #2C3E50 50%, #34495E 100%);
  border-radius: var(--radius-lg);
  padding: 60px 50px;
  margin-bottom: 32px;
  overflow: hidden;
  color: #fff;
  min-height: 320px;
}
.qa-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(251,191,36,.18) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(220,38,38,.12) 0%, transparent 50%);
}
.qa-hero-content { position: relative; z-index: 1; }
.qa-badge {
  display: inline-block;
  background: linear-gradient(90deg, #FBBF24, #F59E0B);
  color: #5C2C00;
  font-size: 13px; font-weight: 800;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 18px;
  letter-spacing: .3px;
}
.qa-hero h1 {
  font-size: 38px; font-weight: 900;
  letter-spacing: -.5px;
  margin-bottom: 14px;
  line-height: 1.2;
}
.qa-sub {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,.85);
  max-width: 720px;
  margin-bottom: 28px;
}
.qa-sub b { color: #FBBF24; }
.qa-stat-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.qa-stat {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
  backdrop-filter: blur(6px);
}
.qa-stat b {
  display: block;
  font-size: 28px; font-weight: 900;
  color: #FBBF24;
  letter-spacing: -.5px;
}
.qa-stat span {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,.7);
  margin-top: 4px;
}

.qa-section {
  margin: 50px 0;
}
.qa-section-head {
  text-align: center;
  margin-bottom: 32px;
}
.qa-section-tag {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 11px; font-weight: 900;
  letter-spacing: 2px;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.qa-section-head h2 {
  font-size: 28px; font-weight: 900;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -.4px;
}
.qa-section-head p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

/* 갤러리 */
.qa-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
}
.qa-photo {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.qa-photo:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.qa-photo-large {
  grid-row: span 2;
}
.qa-photo-svg {
  width: 100%;
  background: #F3F4F6;
}
.qa-photo-svg svg { width: 100%; height: auto; display: block; }
.qa-photo-cap {
  padding: 10px 14px;
  font-size: 12px; font-weight: 700;
  color: var(--text);
  background: #fff;
  border-top: 1px solid var(--line);
}

/* 체크리스트 */
.qa-checklist {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.qa-check-group {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  transition: border-color .15s, box-shadow .15s;
}
.qa-check-group:hover {
  border-color: var(--brand-light);
  box-shadow: var(--shadow);
}
.qa-check-head {
  display: flex; gap: 10px; align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.qa-check-ic { font-size: 22px; }
.qa-check-title {
  font-size: 14px; font-weight: 800;
  color: var(--text);
}
.qa-check-list {
  list-style: none;
  padding: 0; margin: 0;
}
.qa-check-list li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px;
  color: var(--text-sub);
  padding: 4px 0;
  line-height: 1.5;
}
.qa-check-mark {
  color: #10B981;
  font-weight: 900;
  flex-shrink: 0;
}

/* 장비 */
.qa-equipment {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.qa-eq {
  background: linear-gradient(135deg, #FFFFFF, #F9FAFB);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.qa-eq-ic { font-size: 28px; line-height: 1; margin-bottom: 4px; }
.qa-eq b { font-size: 14px; color: var(--text); font-weight: 800; }
.qa-eq span { font-size: 12px; color: var(--text-mute); }

/* 인증서 */
.qa-certs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.qa-cert {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 24px 22px;
  text-align: center;
  transition: all .2s;
}
.qa-cert:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.qa-cert-ic {
  font-size: 42px;
  margin-bottom: 12px;
  line-height: 1;
}
.qa-cert h3 {
  font-size: 15px; font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.qa-cert p {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.6;
}
.qa-cert p b {
  display: inline-block;
  margin-top: 6px;
  color: var(--brand);
  font-family: monospace;
  font-size: 11px;
  background: var(--bg-soft);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Workflow */
.qa-workflow {
  display: flex; flex-wrap: wrap;
  justify-content: center; align-items: stretch;
  gap: 0;
}
.qa-step {
  flex: 1;
  min-width: 140px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  position: relative;
  margin: 4px;
}
.qa-step-n {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: 13px; font-weight: 900;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.qa-step-t {
  font-size: 14px; font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.qa-step-d {
  font-size: 11px;
  color: var(--text-mute);
  line-height: 1.5;
}
.qa-step-arrow {
  position: absolute;
  right: -12px; top: 50%;
  transform: translateY(-50%);
  color: var(--brand);
  font-size: 14px;
  z-index: 1;
}

/* CTA */
.qa-cta {
  background: linear-gradient(135deg, #B71C1C, #7B0000);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  margin: 50px 0 0;
}
.qa-cta h2 {
  font-size: 26px; font-weight: 900;
  margin-bottom: 10px;
}
.qa-cta p {
  font-size: 14px;
  opacity: .9;
  margin-bottom: 24px;
}
.qa-cta-btns {
  display: flex; gap: 12px; justify-content: center;
}
.qa-cta .btn-add { max-width: 260px; }
.qa-cta .btn-contact { max-width: 200px; background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.3); }
.qa-cta .btn-contact:hover { background: rgba(255,255,255,.2); color: #fff; border-color: #fff; }

/* 헤더 검수 버튼 강조 */
.hbtn-quality {
  background: linear-gradient(90deg, #1F2937, #2C3E50) !important;
  color: #FBBF24 !important;
  font-weight: 700;
}
.hbtn-quality:hover {
  background: linear-gradient(90deg, #2C3E50, #34495E) !important;
  color: #fff !important;
}

/* 반응형 */
@media (max-width: 1100px) {
  .qa-stat-row { grid-template-columns: repeat(3, 1fr); }
  .qa-gallery { grid-template-columns: 1fr 1fr; }
  .qa-photo-large { grid-row: auto; grid-column: span 2; }
  .qa-checklist { grid-template-columns: repeat(2, 1fr); }
  .qa-equipment { grid-template-columns: repeat(2, 1fr); }
  .qa-certs { grid-template-columns: repeat(2, 1fr); }
  .qa-workflow .qa-step-arrow { display: none; }
}
@media (max-width: 700px) {
  .qa-hero { padding: 32px 22px; }
  .qa-hero h1 { font-size: 24px; }
  .qa-stat-row { grid-template-columns: repeat(2, 1fr); }
  .qa-gallery, .qa-checklist, .qa-equipment, .qa-certs { grid-template-columns: 1fr; }
  .qa-photo-large { grid-column: auto; }
  .qa-cta-btns { flex-direction: column; }
}

/* ─── 배너 하단 실시간 통계 바 ─── */
.live-stats-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 18px 0 24px;
  padding: 16px 20px;
  background: linear-gradient(120deg, #FFFFFF, #F9FAFB);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.lsb-item {
  display: flex; align-items: center; gap: 12px;
  padding: 4px 6px;
  position: relative;
}
.lsb-item:not(:last-child)::after {
  content: '';
  position: absolute; right: -6px; top: 15%; bottom: 15%;
  width: 1px; background: var(--line);
}
.lsb-ic {
  font-size: 26px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--bg-soft);
  border-radius: 50%;
  flex-shrink: 0;
}
.lsb-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lsb-n {
  font-size: 22px; font-weight: 900;
  color: var(--brand);
  letter-spacing: -.5px;
  line-height: 1;
  animation: lsbCount .5s ease;
}
.lsb-l {
  font-size: 11px; font-weight: 700;
  color: var(--text-mute);
  letter-spacing: .3px;
}
.lsb-month .lsb-n { color: #B45309; }
@keyframes lsbCount {
  from { transform: scale(1.1); color: #DC2626; }
  to   { transform: scale(1); }
}
@media (max-width: 1100px) {
  .live-stats-bar { grid-template-columns: repeat(3, 1fr); }
  .lsb-item:nth-child(3)::after { display: none; }
}
@media (max-width: 700px) {
  .live-stats-bar { grid-template-columns: repeat(2, 1fr); padding: 12px; }
  .lsb-item::after { display: none !important; }
  .lsb-n { font-size: 18px; }
  .lsb-ic { font-size: 22px; width: 36px; height: 36px; }
}

/* 실시간 알림 피드 (좌측 하단) */
.live-feed {
  position: fixed;
  left: 16px; bottom: 16px;
  display: flex; flex-direction: column-reverse; gap: 10px;
  z-index: 999;
  max-width: 320px;
  pointer-events: none;
}
.lf-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex; gap: 10px; align-items: flex-start;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  pointer-events: auto;
  cursor: pointer;
  animation: lfSlide .35s ease-out;
  transition: opacity .8s, transform .8s;
}
.lf-card:hover { transform: translateY(-2px); border-color: var(--brand-light); }
.lf-card.lf-fade { opacity: 0; transform: translateX(-30px); }
.lf-buy     { border-left: 4px solid #10B981; }
.lf-inquiry { border-left: 4px solid #3B82F6; }
.lf-view    { border-left: 4px solid #9CA3AF; }
.lf-cart    { border-left: 4px solid #F59E0B; }
.lf-ic {
  font-size: 22px; line-height: 1;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.lf-body { flex: 1; min-width: 0; }
.lf-row1 {
  font-size: 13px; color: var(--text);
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.lf-row1 b { font-weight: 800; }
.lf-qty {
  background: #FEF3C7; color: #92400E;
  font-size: 11px; font-weight: 800;
  padding: 1px 6px; border-radius: 4px;
}
.lf-row2 {
  font-size: 12px; color: var(--text-sub);
  font-weight: 600;
  margin-top: 2px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.lf-city { color: var(--text-mute); font-weight: 500; }
.lf-time { font-size: 10px; color: var(--text-mute); margin-top: 2px; }
@keyframes lfSlide {
  from { opacity: 0; transform: translateX(-50px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* 모바일 반응형 */
@media (max-width: 700px) {
  .live-bar { gap: 12px; font-size: 11px; }
  .live-feed { left: 8px; right: 8px; max-width: none; }
  .trust-badges { grid-template-columns: 1fr; }
}

.detail-info h1 {
  font-size: 26px; font-weight: 800; margin-bottom: 8px;
}
.detail-info .brand-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--brand);
  color: #fff;
  border-radius: 4px;
  font-size: 11px; font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.spec-table {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 18px 0;
}
.spec-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.spec-row:last-child { border-bottom: none; }
.spec-row .lbl { color: var(--text-mute); font-weight: 700; }
.spec-row .val { color: var(--text); font-weight: 600; }

.price-box {
  background: linear-gradient(135deg, #FEF3C7, #FFFBEB);
  border: 2px solid #FCD34D;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.price-box .lbl { font-size: 12px; color: #92400E; font-weight: 700; }
.price-box .val {
  font-size: 34px; font-weight: 900;
  color: var(--brand);
  margin-top: 4px;
}
.price-box .val small { font-size: 14px; color: var(--text-sub); margin-left: 4px; }

.qty-bar {
  display: flex; gap: 10px; align-items: center;
  margin: 14px 0 18px;
}
.qty-input {
  display: flex; align-items: center;
  border: 2px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.qty-input button {
  width: 38px; height: 42px;
  font-size: 18px; font-weight: 700; color: var(--brand);
}
.qty-input button:hover { background: var(--brand-light); }
.qty-input input {
  width: 60px; height: 42px;
  border: none; outline: none;
  text-align: center; font-size: 15px; font-weight: 700;
}
.qty-label { font-size: 13px; color: var(--text-sub); }

.subtotal-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.subtotal-row .l { color: var(--text-sub); }
.subtotal-row .r {
  font-size: 22px; font-weight: 900; color: var(--brand);
}
.subtotal-row .r small { font-size: 12px; color: var(--text-sub); margin-left: 3px; }

.detail-actions {
  display: flex; gap: 10px;
}
.detail-actions button {
  flex: 1; height: 50px;
  border-radius: 10px;
  font-size: 14px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-add {
  background: var(--brand); color: #fff;
}
.btn-add:hover { background: var(--brand-dark); }
.btn-contact {
  background: #fff; color: var(--text);
  border: 2px solid var(--line);
}
.btn-contact:hover { border-color: var(--brand); color: var(--brand); }

/* ============================================================
   Cart
   ============================================================ */
.cart-wrap { max-width: 1100px; margin: 0 auto; }
.cart-wrap h1 {
  font-size: 28px; font-weight: 900;
  margin-bottom: 18px;
}
.cart-table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.cart-row {
  display: grid;
  grid-template-columns: 80px 1fr 110px 110px 110px 40px;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.cart-row.head {
  background: var(--bg-soft);
  font-weight: 700; font-size: 12px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.cart-row:last-child { border-bottom: none; }
.cart-thumb {
  width: 64px; height: 64px;
  background: var(--bg-soft);
  border-radius: 8px;
  display: grid; place-items: center;
}
.cart-thumb svg { width: 70%; }
.cart-info .nm { font-weight: 700; color: var(--text); }
.cart-info .sub { font-size: 11px; color: var(--text-mute); margin-top: 2px; }
.cart-row .price { font-weight: 700; color: var(--text); }
.cart-row .price small { color: var(--text-sub); font-weight: 500; }
.cart-row .subtotal {
  font-weight: 800; color: var(--brand);
}
.cart-qty {
  display: flex; align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.cart-qty button { width: 28px; height: 30px; color: var(--brand); }
.cart-qty button:hover { background: var(--brand-light); }
.cart-qty input {
  width: 40px; height: 30px;
  border: none; outline: none;
  text-align: center; font-size: 13px; font-weight: 700;
}
.cart-remove {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--line-soft);
  color: var(--text-mute);
  display: grid; place-items: center;
}
.cart-remove:hover { background: #FEE2E2; color: var(--brand); }

.cart-summary {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-top: 16px;
}
.cart-summary .left .lbl {
  font-size: 12px; color: var(--text-sub);
}
.cart-summary .left .val {
  font-size: 28px; font-weight: 900;
  color: var(--brand);
}
.cart-summary .left .val small { font-size: 14px; color: var(--text-sub); margin-left: 4px; }
.cart-summary .items {
  font-size: 12px; color: var(--text-mute); margin-top: 2px;
}
.cart-summary .actions { display: flex; gap: 10px; }
.cart-summary .btn-clear {
  height: 44px; padding: 0 18px;
  background: var(--line-soft);
  color: var(--text-sub);
  font-size: 13px; font-weight: 700;
  border-radius: 10px;
}
.cart-summary .btn-quote {
  height: 44px; padding: 0 18px;
  background: var(--accent-2);
  color: #fff;
  font-size: 13px; font-weight: 700;
  border-radius: 10px;
}
.cart-summary .btn-checkout {
  height: 44px; padding: 0 22px;
  background: var(--brand); color: #fff;
  font-size: 14px; font-weight: 800;
  border-radius: 10px;
}
.cart-summary .btn-checkout:hover { background: var(--brand-dark); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,.85);
  margin-top: 40px;
  padding: 50px 24px 28px;
}
.footer-inner {
  max-width: 1320px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1fr;
  gap: 32px;
}
.footer h4 {
  color: #fff; font-size: 14px; font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: .3px;
}
.ft-row {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  margin-top: 4px;
}
.footer-bot {
  max-width: 1320px; margin: 30px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12px;
  color: rgba(255,255,255,.55);
  text-align: center;
  line-height: 1.8;
}

/* ============================================================
   Toast / Modal
   ============================================================ */
.toast {
  position: fixed; bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #111827; color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}
.toast.on {
  opacity: 1; transform: translateX(-50%) translateY(0);
}

.modal-bg {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 500;
  display: grid; place-items: center;
  padding: 20px;
}
.modal {
  background: #fff;
  border-radius: var(--radius);
  width: 100%; max-width: 440px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}
.modal-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.modal-head h3 { font-size: 18px; font-weight: 800; }
.close-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 16px; color: var(--text-mute);
}
.close-btn:hover { background: var(--line-soft); color: var(--text); }

.contact-list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.contact-item {
  display: flex; gap: 14px; align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: background .12s, border-color .12s;
}
.contact-item:hover { background: var(--brand-light); border-color: var(--brand); }
.contact-item .ci-icon {
  width: 40px; height: 40px;
  background: var(--brand-light); color: var(--brand);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 18px;
}
.contact-item .ci-label {
  font-size: 11px; color: var(--text-mute); font-weight: 700;
  text-transform: uppercase;
}
.contact-item .ci-val { font-weight: 700; color: var(--text); margin-top: 2px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .detail-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .header-inner {
    grid-template-columns: auto auto;
    gap: 10px;
  }
  .search-wrap { grid-column: 1 / -1; order: 3; }
  .logo-sub { display: none; }
  .hero { padding: 32px 24px; }
  .hero-title { font-size: 30px; }
  .hero-stats { gap: 10px; flex-wrap: wrap; }
  .hero-stat { min-width: 100px; padding: 10px 14px; }
  .hero-stat-n { font-size: 20px; }
  .cart-row {
    grid-template-columns: 64px 1fr;
    grid-template-areas:
      "thumb info"
      "thumb price"
      "qty subtotal"
      "remove .";
    gap: 8px;
  }
  .cart-thumb { grid-area: thumb; }
  .cart-info { grid-area: info; }
  .cart-row .price { grid-area: price; }
  .cart-row .cart-qty { grid-area: qty; }
  .cart-row .subtotal { grid-area: subtotal; text-align: right; }
  .cart-row .cart-remove { grid-area: remove; }
  .cart-row.head { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
  .cart-summary { flex-direction: column; gap: 14px; align-items: stretch; }
}
