/* =====================================================
   IndustrialeMart – OC4 Theme 2026
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; }

:root {
  /* beta1 (2026-11) 팔레트: 틸 = 메인/구조, 번트 오렌지 = 할인가·hover 글자, 코랄 = 카트 배지·NEW */
  --color-primary:   #0B7A75;
  --color-primary-dark: #08615D;
  --color-primary-soft: #E2F1EF;
  --color-accent:    #C2410C;
  --color-coral:     #FF6A3D;
  --color-indigo:    #5746D6;
  --color-sky:       #14A39A;   /* 포인트: 표 윗선, 링크 화살표 */
  --color-ink:       #101820;
  --color-muted:     #5B6672;
  --color-text:      #101820;
  --color-light-bg:  #F4F6F7;
  --color-border:    #E3E8EB;
  --color-footer-bg: #FFFFFF;
  --color-footer-bottom: #F4F6F7;
  --color-footer-fg: #3B4652;
  --color-footer-muted: #5B6672;
  --color-topbar-bg: #E7F4F3;
  --font-main: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', Consolas, monospace;
  --container-max: 1320px;
}

body {
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--color-text);
  margin: 0;
  padding: 0;
  background: #fff;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }
img { max-width: 100%; height: auto; }

/* ---- TOP BAR ---- */
#imart-topbar {
  background: var(--color-topbar-bg);
  color: #ccc;
  font-size: 12px;
  padding: 6px 0;
}
.imart-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#imart-topbar a { color: #ccc; }
#imart-topbar a:hover { color: #fff; }
.imart-top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---- MAIN HEADER ---- */
#imart-header {
  background: #eef2f7;                 /* 연회색 헤더 띠 → 흰 검색창이 떠 보이지 않게 */
  border-bottom: 1px solid #dbe3ee;
  padding: 12px 0;
  /* above #imart-nav (z 1000) so the My Account dropdown / search autocomplete aren't hidden behind the blue menu bar */
  position: relative;
  z-index: 1010;
}
.imart-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Logo */
.imart-logo { flex-shrink: 0; }
.imart-logo img { max-height: 60px; width: auto; }
.imart-logo-text { font-size: 22px; font-weight: 700; color: var(--color-primary); }

/* Search — OC4 renders search as a module; we style the wrapper */
.imart-search { flex: 1 1 auto; max-width: 520px; }
.imart-search #search { width: 100%; }
.imart-search .input-group { display: flex; margin-bottom: 0 !important; } /* OC 기본 mb-3 때문에 위로 떠 있던 것 제거 */
.imart-search .form-control {
  flex: 1;
  background: #fff;
  border: 1px solid #c9d4e3;
  border-right: none;
  border-radius: 6px 0 0 6px;
  padding: 8px 12px;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(16, 40, 80, .06);
}
.imart-search .form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 74, 138, .15);
}
.imart-search .btn {
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  color: #fff;
  padding: 0 16px;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
}
.imart-search .btn:hover { background: var(--color-accent); border-color: var(--color-accent); }

/* Header action buttons */
.imart-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.imart-hdr-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  color: var(--color-text);
  gap: 3px;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-decoration: none;
}
.imart-hdr-btn:hover { color: var(--color-accent); text-decoration: none; }
.imart-hdr-btn i { font-size: 18px; }

/* Cart count badge (Amazon 스타일: 카트 아이콘 우측 상단 숫자) */
.imart-cart-icon { position: relative; display: inline-block; line-height: 1; }
.imart-cart-badge {
  position: absolute;
  top: -8px;
  right: -13px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--color-coral);
  color: var(--color-ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px #FFFFFF;   /* 헤더 배경색 링 */
  pointer-events: none;
}
.imart-cart-badge.imart-bump { animation: imart-cart-bump .4s ease-out; }
@keyframes imart-cart-bump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* Bootstrap dropdown overrides inside header */
.imart-header-actions .dropdown-toggle::after { display: none; }
/* My Account: the dropdown wrapper is the .imart-hdr-btn, so stack icon/text on the inner toggle too */
.imart-hdr-btn > .dropdown-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: inherit;
  color: inherit;
  text-decoration: none;
}
.imart-hdr-btn > .dropdown-toggle:hover { color: var(--color-accent); }
.imart-header-actions .dropdown-menu { min-width: 160px; font-size: 13px; }

/* ---- MAIN NAV ---- */
#imart-nav {
  background: var(--color-primary);
  position: relative;
  z-index: 1000;
}

/* OC4 renders menu HTML — target its Bootstrap navbar classes */
#imart-nav .navbar {
  padding: 0;
  background: transparent !important;
}
#imart-nav .navbar-nav > li > a,
#imart-nav .navbar-nav > li > span {
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 14px 18px;
  display: block;
  white-space: nowrap;
}
#imart-nav .navbar-nav > li > a:hover,
#imart-nav .navbar-nav > li:hover > a {
  background: var(--color-accent) !important;
  color: #fff !important;
}
#imart-nav .dropdown-menu {
  border-top: 3px solid var(--color-accent);
  border-radius: 0;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
  font-size: 13px;
}
#imart-nav .dropdown-menu a { color: var(--color-text); padding: 7px 16px; }
#imart-nav .dropdown-menu a:hover { color: var(--color-accent); background: var(--color-light-bg); }

/* Navbar toggler */
#imart-nav .navbar-toggler {
  border-color: rgba(255,255,255,.5);
  padding: 6px 10px;
}
#imart-nav .navbar-toggler-icon { background-color: #fff; }

/* ---- HOMEPAGE CONTENT AREA ---- */
#content { padding: 16px 0; }

/* ---- SECTION HEADINGS (Best Sellers / Latest Products) ---- */
.section-heading,
h3.product-title,
#content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  border-bottom: 3px solid var(--color-accent);
  padding-bottom: 8px;
  margin: 28px 0 16px;
  text-transform: uppercase;
}

/* ---- PRODUCT GRID (OC4 default + overrides) ---- */
.product-thumb {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .2s;
  height: 100%;
}
.product-thumb:hover { box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.product-thumb .image { background: var(--color-light-bg); text-align: center; padding: 10px; }
.product-thumb .image img { max-height: 150px; object-fit: contain; width: 100%; }
.product-thumb .caption { padding: 10px; }
.product-thumb .caption h4 a { font-size: 12px; color: #555; }
.product-thumb .caption h4 a:hover { color: var(--color-accent); }
.product-thumb .price {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-accent);
  margin: 6px 0;
}
.product-thumb .button-group { padding: 8px 10px; border-top: 1px solid var(--color-border); }

/* ---- BRAND LOGOS BAR ---- */
#imart-brands {
  background: var(--color-light-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
}
.imart-brands-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.imart-brands-inner a img {
  max-height: 55px;
  max-width: 110px;
  object-fit: contain;
  filter: grayscale(40%);
  transition: filter .2s;
}
.imart-brands-inner a img:hover { filter: none; }

/* ---- FOOTER (shop 사이트 수치 기준) ---- */
#imart-footer {
  background: none;
  padding: 0;
  border: 0;
  color: var(--color-footer-fg);
  font-family: "Trebuchet MS", var(--font-main);
}
.imart-footer-main {
  background: var(--color-footer-bg);
  padding: 25px 0 15px;
}
.imart-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.imart-footer-col h2 {
  font-size: 16px;
  font-weight: 400;
  line-height: 19px;
  color: #fff;
  margin: 0 0 19px;
  padding: 0;
  border: 0;
  font-family: inherit;
}
.imart-footer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 15px;
}
.imart-footer-links li {
  position: relative;
  padding: 0 0 0 14px;
  font-size: 12px;
  line-height: 19px;
}
.imart-footer-links li::before {
  content: "\203A";
  position: absolute;
  left: 2px;
  top: 0;
  color: var(--color-sky);
  font-size: 12px;
}
.imart-footer-links a { color: var(--color-footer-fg); font-size: 12px; text-decoration: none; }
.imart-footer-links a:hover { color: var(--color-sky); }
.imart-footer-col p {
  font-size: 12px;
  line-height: 19px;
  color: var(--color-footer-fg);
  margin: 0 0 19px;
}
.imart-footer-phone {
  font-size: 16px;
  line-height: 19px;
  color: #fff;
}
.imart-footer-phone a { color: #fff; text-decoration: none; }
.imart-footer-phone a:hover { color: var(--color-sky); }
.imart-footer-bottom {
  background: var(--color-footer-bottom);
  padding: 20px 0 14px;
}
.imart-copy {
  font-size: 11px;
  line-height: 19px;
  color: var(--color-footer-muted);
  margin: 0 0 20px;
}
.imart-amazon {
  font-size: 12px;
  font-weight: 700;
  line-height: 19px;
  color: var(--color-footer-muted);
  text-align: center;
  margin: 0;
  padding: 0 10px;
}
@media (max-width: 767px) {
  .imart-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 479px) {
  .imart-footer-grid { grid-template-columns: 1fr; }
}
/* ---- BUTTONS ---- */
.btn-primary, button.btn-primary {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #fff !important;
}
.btn-primary:hover, button.btn-primary:hover {
  background: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
}

/* ---- ALERT ---- */
#alert { min-height: 0; }

/* ---- BREADCRUMB ---- */
#breadcrumb { padding: 10px 0; font-size: 13px; color: #888; }
#breadcrumb ol { margin: 0; padding: 0; }
#breadcrumb li a { color: var(--color-primary); }
#breadcrumb li a:hover { color: var(--color-accent); }

/* ---- CATEGORY PAGE ---- */
.category-info h1, #content h1 { font-size: 22px; color: var(--color-primary); margin-bottom: 8px; }

/* ---- PAGINATION ---- */
.pagination > li > a, .pagination > li > span {
  color: var(--color-primary);
  border-color: var(--color-border);
}
.pagination > .active > a, .pagination > .active > span {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
}
.pagination > li > a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
  .imart-header-actions { display: none; }
  .imart-search { max-width: none; }
  .imart-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .imart-header-inner { flex-wrap: wrap; }
  .imart-logo { width: 100%; }
  .imart-search { width: 100%; max-width: none; }
  .imart-footer-grid { grid-template-columns: 1fr; }
  .imart-topbar-inner { flex-direction: column; gap: 4px; text-align: center; }
}


/* ---- MEGA MENU ---- */
#imart-menu { padding: 0; }
#imart-menu .navbar-nav { flex-direction: row; }
.imart-nav-link {
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 14px 20px !important;
  white-space: nowrap;
}
.imart-nav-link:hover,
.nav-item:hover > .imart-nav-link { background: var(--color-accent); }
.imart-nav-toggler { border-color: rgba(255,255,255,.5); margin: 6px 0; }

/* Mega panel */
.imart-mega-item { position: static; }
.imart-mega-panel {
  display: none;
  position: absolute;
  left: 0; right: 0;
  background: #fff;
  border-top: 3px solid var(--color-accent);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  z-index: 1000;
  padding: 20px 0;
}
.imart-mega-item:hover .imart-mega-panel { display: block; }
.imart-mega-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.imart-mega-col {
  min-width: 140px;
  flex: 1 1 140px;
  padding: 0 12px;
  border-right: 1px solid var(--color-border);
}
.imart-mega-col:last-child { border-right: none; }
.imart-mega-head {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--color-border);
}
.imart-mega-head:hover { color: var(--color-accent); }
.imart-mega-sub { list-style: none; padding: 0; margin: 0; }
.imart-mega-sub li a {
  font-size: 12px;
  color: #555;
  display: block;
  padding: 2px 0;
  line-height: 1.6;
}
.imart-mega-sub li a:hover { color: var(--color-accent); padding-left: 4px; }

/* Standard dropdown */
.imart-drop {
  border-top: 3px solid var(--color-accent);
  border-radius: 0;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.imart-drop .dropdown-item { font-size: 13px; padding: 7px 16px; }
.imart-drop .dropdown-item:hover { color: var(--color-accent); background: var(--color-light-bg); }


/* ---- HERO SECTION ---- */
/*
 * 슬라이드(800x450 = 16:9) 높이 = 쿠폰 3장(380x140) + 간격 2개(8px) 높이가 항상 같도록
 * 오른쪽 열 폭을 계산:  S*0.5625 = 3*B*(140/380) + 16,  S + B + 12 = W
 *   → B = (W - 40.44px) / 2.96491  ≈ (100% - 40px) * 0.3373
 * 쿠폰 열이 행 높이를 정하고, 슬라이드는 그 높이를 그대로 채운다(absolute + cover).
 */
#imart-hero {
  padding: 12px 0;
  background: #fff;
}
.imart-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) calc((100% - 40px) * 0.3373);
  gap: 12px;
  align-items: stretch;
}

/* 슬라이더 */
.imart-hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 0;
  background: #fff;
}
.imart-hero-slider > .carousel {
  position: absolute;
  inset: 0;
  margin: 0;          /* 기본 테마의 흰 4px 테두리 + 아래 50px 여백 제거 */
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
.imart-hero-slider .carousel-inner,
.imart-hero-slider .carousel-item,
.imart-hero-slider .carousel-item .row,
.imart-hero-slider .carousel-item .col-12,
.imart-hero-slider .carousel-item .col-12 a {
  height: 100%;
}
.imart-hero-slider .carousel-item .row { margin: 0; }
.imart-hero-slider .carousel-item .col-12 {
  position: relative;
  padding: 0;
  overflow: hidden;
}
.imart-hero-slider .carousel-item .col-12 a { display: block; width: 100%; }
/* 일부 배너 이미지(엔코더, 케이블체인)에 1px 회색 테두리가 구워져 있음
   → 사방 2px 씩 밖으로 밀어 overflow:hidden 으로 잘라냄 (다른 슬라이드는 체감 차이 없음) */
.imart-hero-slider .carousel-item img {
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px) !important;
  max-width: none;
  height: calc(100% + 4px) !important;
  object-fit: cover;
  display: block;
}

/* 쿠폰 배너 3장 */
.imart-hero-banners {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.imart-hero-banners a {
  display: block;
  overflow: hidden;
}
.imart-hero-banners a img {
  width: 100%;
  height: auto;
  aspect-ratio: 380 / 140;
  display: block;
  transition: transform .2s;
}
.imart-hero-banners a:hover img { transform: scale(1.02); }

/* 제조사 배너 (content_bottom) */
#content > .carousel {
  padding: 20px 0;
  min-height: 150px;
}
#content > .carousel .carousel-item {
  min-height: 130px;
}

/* 태블릿 이하: 슬라이드 한 줄(16:9 유지) + 쿠폰 3장 가로 한 줄 */
@media (max-width: 767px) {
  .imart-hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .imart-hero-slider { aspect-ratio: 16 / 9; }
  .imart-hero-banners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
}
/* 폰: 쿠폰은 글씨가 읽히도록 한 장씩 */
@media (max-width: 479px) {
  .imart-hero-banners { grid-template-columns: 1fr; }
}

/* ---- HOME PROMO: Best Sellers + 배너 4개 (shop 사이트 수치 기준) ---- */
#imart-promo {
  padding: 16px 0 8px;
  background: #fff;
}
.imart-promo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 10px;
  align-items: start;
}
.imart-promo-best {
  font-size: 12px;
  line-height: 19px;
  padding-right: 6px;
}
.imart-promo-title {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}
.imart-best-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.imart-best-item + .imart-best-item { margin-top: 16px; }
.imart-best-thumb {
  flex: 0 0 100px;
}
.imart-best-thumb img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
}
.imart-best-info {
  flex: 1;
  min-width: 0;
}
.imart-best-model {
  font-weight: 700;
  color: var(--color-text);
}
.imart-best-name {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--color-text);
}
.imart-best-name:hover { color: var(--color-accent); }
.imart-best-price {
  color: var(--color-primary);
  font-weight: 700;
}
.imart-best-price .price-old {
  color: #999;
  text-decoration: line-through;
  font-size: 11px;
}
.imart-best-price .price-special { color: var(--color-accent); }
.imart-best-info form { margin: 4px 0 0; }
.imart-best-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  background: #fff;                          /* 목록 버튼: 흰 바탕 + 남색 테두리 (상품이 먼저 보이게) */
  color: var(--color-primary);
  font-size: 12px;
  line-height: 28px;
  border: 1px solid var(--color-primary);
  border-radius: 3px;
  box-shadow: none;
  cursor: pointer;
  transition: background .15s;
}
.imart-best-cart i { font-size: 14px; }
.imart-best-cart:hover { background: var(--color-primary); color: #fff; }
.imart-promo-banner {
  display: block;
  overflow: hidden;
  background: var(--color-light-bg);
}
.imart-promo-banner img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .2s;
}
.imart-promo-banner:hover img { transform: scale(1.02); }

@media (max-width: 991px) {
  .imart-promo-grid { grid-template-columns: repeat(4, 1fr); }
  .imart-promo-best {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    margin-bottom: 8px;
  }
  .imart-promo-title { grid-column: 1 / -1; }
  .imart-best-item + .imart-best-item { margin-top: 0; }
}
@media (max-width: 575px) {
  .imart-promo-grid { grid-template-columns: repeat(2, 1fr); }
  .imart-promo-best { grid-template-columns: 1fr; row-gap: 16px; }
}

/* ---- HOME 상품 모듈 (Latest / Featured): 6열 + Add to Cart 하나 ---- */
.imart-product-row .product-thumb {
  display: flex;
  flex-direction: column;
  text-align: center;
}
.imart-product-row .product-thumb .image { padding: 8px; }
.imart-product-row .product-thumb .image img { max-height: 120px; }
.imart-product-row .product-thumb .content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px 8px 12px;
}
.imart-product-row .product-thumb .description { flex: 1; padding: 0; margin: 0; }
.imart-product-row .product-thumb .description h4 {
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  margin: 0 0 6px;
}
.imart-product-row .product-thumb .description h4 a {
  color: var(--color-text);
  font-size: 12px;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.imart-product-row .product-thumb .description h4 a:hover { color: var(--color-accent); }
.imart-product-row .product-thumb .description p { display: none; }
.imart-product-row .product-thumb .price {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 4px 0 8px;
}
.imart-product-row .product-thumb .price-tax { display: block; font-size: 11px; font-weight: 400; color: #999; }
.imart-product-row .product-thumb form { margin: 0; }
.imart-product-row .product-thumb .button {
  position: static;
  width: auto;
  display: flex;
  justify-content: center;
  border: 0;
  background: none;
  padding: 0;
}
.imart-product-row .product-thumb .button button { display: none; }
.imart-product-row .product-thumb .button button:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  flex: 0 0 auto;
  height: 30px;
  padding: 0 12px;
  background: #fff;                          /* 목록 버튼: 흰 바탕 + 남색 테두리 (상품이 먼저 보이게) */
  color: var(--color-primary);
  font-size: 12px;
  line-height: 28px;
  border: 1px solid var(--color-primary);
  border-radius: 3px;
  box-shadow: none;
  cursor: pointer;
  transition: background .15s;
}
.imart-product-row .product-thumb .button button:first-child::after { content: "Add to Cart"; }
.imart-product-row .product-thumb .button button:first-child:hover { background: var(--color-primary); color: #fff; }

/* ---- HOME 하단: 스마트폰 배너 + 구분선 + 제조사 로고 ---- */
#imart-brands-row { margin: 30px 0 10px; }
.imart-app-banner {
  display: block;
  overflow: hidden;
  border-radius: 6px;
}
.imart-app-banner img {
  display: block;
  width: 100%;
  height: auto;
}
.imart-section-sep {
  border: 0;
  border-top: 1px solid #ddd;
  opacity: 1;
  margin: 15px 0;
}
.imart-brand-logos {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: center;
}
.imart-brand-logos a {
  display: flex;
  justify-content: center;
  padding: 0 4px;
}
.imart-brand-logos img {
  width: 100px;
  max-width: 100%;
  height: auto;
  transition: opacity .15s;
}
.imart-brand-logos a:hover img { opacity: .75; }
@media (max-width: 767px) {
  .imart-brand-logos { grid-template-columns: repeat(4, 1fr); row-gap: 8px; }
}

/* ---- FIX: OC4 기본 absolute 푸터가 페이지 하단 콘텐츠를 덮던 문제 ---- */
#container {
  position: relative;
  margin-bottom: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
#container > footer {
  position: static;
  margin-top: auto;
}

/* ===== 상품 상세 Extra Tabs (Specifications) — shop(Pavilion) 의 spectable 스타일 그대로 ===== */
.product-extra-tab { overflow-x: auto; }
.product-extra-tab img { max-width: 100%; height: auto; }
.product-extra-tab table { width: auto; max-width: 100%; margin-bottom: 1rem; }
.spectable { border-top: 3px solid var(--color-sky); border-left: 1px solid #b8b8b8; border-collapse: collapse; margin-right: 10px; }
.spectable td { padding: 5px; border-right: 1px solid #b8b8b8; border-bottom: 1px solid #b8b8b8; font-size: 11px; font-family: Arial, sans-serif; color: #3d3d3d; line-height: 13px; }
.spectable2 { border-collapse: collapse; margin-right: 10px; border: 1px solid #bcbcbc; }
.spectable2 td { padding: 5px; border-right: 1px solid #b8b8b8; border-bottom: 1px solid #b8b8b8; font-size: 10px; font-family: Arial, sans-serif; color: #3d3d3d; line-height: 13px; }
.spectable3 { border-collapse: collapse; }
.spectable3 td { padding: 10px; font-size: 10px; font-family: Arial, sans-serif; color: #3d3d3d; line-height: 13px; }
.spectable4 { border-top: 3px solid var(--color-sky); border-bottom: 3px solid var(--color-sky); border-left: 1px solid #b8b8b8; border-collapse: collapse; margin-right: 10px; }
.spectable4 td { padding: 5px; border-right: 1px solid #b8b8b8; border-bottom: 1px solid #b8b8b8; font-size: 11px; font-family: Arial, sans-serif; color: #3d3d3d; line-height: 13px; }
.spectable4 a { font-size: 11px; font-family: Arial, sans-serif; color: var(--color-sky); font-weight: bold; line-height: 13px; }

/* ===== 상품 상세 탭 — shop(Pavilion tb_style_2) 과 동일: 대문자 텍스트 탭 + " /" 구분자 ===== */
#product-info .imart-product-tabs { border-bottom: 0; margin-bottom: 19px; }
#product-info .imart-product-tabs .nav-item { display: inline-block; }
#product-info .imart-product-tabs .nav-item + .nav-item::before {
  content: " /"; vertical-align: top; font-size: 80%; font-weight: normal;
  color: #333; opacity: .3; line-height: 19px;
}
#product-info .imart-product-tabs .nav-link {
  display: inline-block; border: 0; border-radius: 0; background: transparent !important; margin: 0;
  padding: 0 5px; font-family: "Trebuchet MS", Arial, sans-serif; font-size: 16px;
  font-weight: 600; line-height: 19px; letter-spacing: .5px; text-transform: uppercase;
  color: #333; transition: color .2s ease-in-out;
}
#product-info .imart-product-tabs .nav-item:first-child .nav-link { padding-left: 0; }
#product-info .imart-product-tabs .nav-link:hover { color: #111; }
#product-info .imart-product-tabs .nav-link.active { color: var(--color-accent); }

/* ===== 상품 상세 우측 패널: Volume Pricing 견적 폼 + Similar Products ===== */
#product-side { padding-top: 4px; }
@media (min-width: 992px) { #product-side .imart-side { position: sticky; top: 16px; } }
.imart-quote { border: 1px solid #d8dee6; border-top: 3px solid var(--color-sky); border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.imart-quote .card-body { padding: 16px; }
.imart-quote-badge { display: inline-block; background: var(--color-accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 2px 8px; border-radius: 2px; margin-bottom: 8px; }
.imart-quote-title { font-size: 18px; font-weight: 700; margin: 0 0 6px; color: #222; }
.imart-quote-lead { font-size: 13px; color: #555; line-height: 1.45; margin-bottom: 8px; }
.imart-quote-points { list-style: none; padding: 0; margin: 0 0 12px; font-size: 13px; color: #333; }
.imart-quote-points li { margin-bottom: 3px; }
.imart-quote-points i { color: #2e8b57; width: 16px; }
.imart-price-breaks { width: 100%; font-size: 12px; margin-bottom: 12px; border-collapse: collapse; }
.imart-price-breaks th { background: #f2f4f7; font-weight: 600; padding: 4px 6px; border-bottom: 1px solid #d8dee6; }
.imart-price-breaks td { padding: 4px 6px; border-bottom: 1px solid #eef1f4; }
.imart-price-breaks td:last-child, .imart-price-breaks th:last-child { text-align: right; }
.imart-quote-part { font-size: 12px; color: #666; margin-bottom: 8px; word-break: break-all; }
.imart-quote .form-label { font-size: 12px; margin-bottom: 2px; color: #444; }
.imart-quote-call { font-size: 12px; color: #666; text-align: center; margin-top: 10px; }
.imart-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.imart-side-title { font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; font-family: "Trebuchet MS", Arial, sans-serif; color: #333; border-bottom: 1px dotted #ccc; padding-bottom: 8px; margin-bottom: 8px; }
.imart-similar-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0f0f0; color: inherit; text-decoration: none; }
.imart-similar-item:hover .imart-similar-model { color: var(--color-accent); }
.imart-similar-item img { flex: 0 0 60px; width: 60px; height: 60px; object-fit: contain; border: 1px solid #eee; border-radius: 3px; background: #fff; }
.imart-similar-body { display: flex; flex-direction: column; min-width: 0; }
.imart-similar-model { font-size: 13px; font-weight: 700; color: #222; word-break: break-all; }
.imart-similar-name { font-size: 12px; color: #666; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.imart-similar-price { font-size: 13px; color: var(--color-sky); font-weight: 600; margin-top: 2px; }
/* 견적 폼: Name/Company/Email/Phone 라벨+입력 한 줄, Message 크게 */
.imart-quote-inline { display: flex; align-items: flex-start; gap: 8px; }
.imart-quote-inline .form-label { flex: 0 0 68px; margin: 0; padding-top: 5px; white-space: nowrap; }
.imart-quote-inline .imart-quote-field { flex: 1 1 auto; min-width: 0; }
#quote-message { min-height: 120px; resize: vertical; }

/* ---- 상품 상세: 이미지 박스와 오른쪽 정보(Add to Cart 까지) 위/아래 높이 맞춤 ---- */
@media (min-width: 576px) {
  #product-info .imart-pmain { align-items: stretch; }
  /* 왼쪽: 메인 이미지 박스가 행 높이를 꽉 채우고, 이미지는 가운데 */
  #product-info .imart-pimg-col .image { height: 100%; display: flex; flex-direction: column; gap: 8px; }
  #product-info .imart-pimg-col .image > a {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 4px;
  }
  #product-info .imart-pimg-col .image > a > img { border: 0; padding: 0; margin: 0 !important; max-width: 100%; max-height: 100%; object-fit: contain; }
  /* 오른쪽: Qty + Add to Cart 를 맨 아래로 → 이미지 박스 아래선과 일치 */
  #product-info .imart-pinfo-col { display: flex; flex-direction: column; }
  #product-info .imart-pinfo-col > #product { margin-top: auto; }
  #product-info .imart-pinfo-col #form-product > .mb-3:last-of-type { margin-bottom: 0 !important; }
  #product-info #error-quantity:empty { display: none; }
}


/* =====================================================
   beta1 (2026-11) — 헤더 / 카테고리 바 / 푸터 / 홈
   이전 디자인: _backup/theme2026-before-beta1-20261103.zip
   ===================================================== */
body.b1 { font-family: var(--font-main); color: var(--color-ink); font-size: 14px; background: #FFFFFF; }
.b1-wrap { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 575px) { .b1-wrap { padding: 0 16px; } }

/* ---- 헤더 ---- */
#b1-header { background: #FFFFFF; border-bottom: 1px solid var(--color-border); position: relative; z-index: 1010; }
.b1-strip { background: var(--color-topbar-bg); color: var(--color-primary-dark); font-size: 13px; font-weight: 600; }
.b1-strip-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; min-height: 34px; }
.b1-strip-r { display: flex; align-items: center; gap: 16px; }
.b1-strip a { color: var(--color-primary-dark); }
.b1-strip a:hover { color: var(--color-ink); }
.b1-strip .dropdown-toggle, .b1-strip .btn-link { color: var(--color-primary-dark); font-size: 13px; font-weight: 600; padding: 0; text-decoration: none; }
.b1-strip form, .b1-strip .dropdown { margin: 0; }

.b1-main { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 14px; padding-bottom: 14px; }
.b1-logo { display: flex; align-items: center; gap: 10px; color: var(--color-ink); text-decoration: none; flex: 0 0 auto; }
.b1-logo:hover { color: var(--color-ink); }
.b1-logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--color-primary); display: flex; align-items: center; justify-content: center; }
.b1-logo-text { font-size: 22px; font-weight: 500; letter-spacing: -0.4px; line-height: 1; }
.b1-logo-text b { font-weight: 700; color: var(--color-primary); }

/* 검색: OC 기본 search 모듈(form.input-group) 을 둥근 알약 모양으로 */
.b1-search { flex: 999 1 380px; min-width: 0; }
.b1-search form, .b1-search .input-group {
  display: flex; flex-wrap: nowrap; margin: 0 !important; height: 46px; width: 100%;
  border: 2px solid var(--color-primary); border-radius: 999px; overflow: hidden; background: #FFFFFF;
}
.b1-search .form-control {
  flex: 1 1 auto; min-width: 0; height: 100%; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  padding: 0 20px; font-family: var(--font-main); font-size: 15px; color: var(--color-ink); background: transparent;
}
.b1-search .btn {
  flex: 0 0 auto; width: 58px; height: 100%; border: 0 !important; border-radius: 0 !important;
  background: var(--color-primary) !important; color: #FFFFFF !important; font-size: 17px; padding: 0;
}
.b1-search .btn:hover { background: var(--color-primary-dark) !important; }

.b1-acts { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.b1-act { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; color: var(--color-ink); font-weight: 600; font-size: 14px; text-decoration: none; border-radius: 10px; }
.b1-act:hover { color: var(--color-primary); background: var(--color-light-bg); }
.b1-act.dropdown-toggle::after { display: none; }
.b1-cart-icon { position: relative; display: inline-flex; line-height: 1; }
.b1-cart .imart-cart-badge { top: -7px; right: -11px; min-width: 20px; height: 20px; line-height: 20px; font-size: 12px; border-radius: 10px; }
.b1-drop { border: 1px solid var(--color-border); border-radius: 12px; box-shadow: 0 10px 28px rgba(16, 24, 32, .12); padding: 6px; font-size: 14px; }
.b1-drop .dropdown-item { border-radius: 8px; padding: 8px 12px; color: var(--color-ink); }
.b1-drop .dropdown-item:hover { background: var(--color-primary-soft); color: var(--color-primary-dark); }

@media (max-width: 767px) {
  .b1-act-label { display: none; }
  .b1-search { order: 3; flex-basis: 100%; }
  .b1-main { justify-content: space-between; gap: 10px 12px; }
  .b1-strip-in > span:first-child { display: none; }
  .b1-strip-in { justify-content: flex-end; }
}

/* ---- 카테고리 바 ---- */
.b1-catbar { border-top: 1px solid #EEF1F3; position: relative; }
.b1-cats-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; column-gap: 2px; }
.b1-cat { position: relative; }
.b1-cat-link { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 11px; color: #3B4652; font-weight: 500; font-size: 13.5px; white-space: nowrap; text-decoration: none; border-radius: 8px; }
.b1-cat-link:hover, .b1-cat:hover > .b1-cat-link, .b1-cat:focus-within > .b1-cat-link { color: var(--color-primary-dark); background: var(--color-primary-soft); }
.b1-cat-all-link { color: var(--color-ink); font-weight: 700; padding-left: 0; padding-right: 14px; }
.b1-cat-all-link:hover, .b1-cat-all:hover > .b1-cat-all-link { padding-left: 10px; }

/* 카테고리 하위 목록 (마우스 올리면) */
.b1-drop-panel {
  display: none; position: absolute; top: 100%; left: 0; z-index: 1020; min-width: 240px;
  background: #FFFFFF; border: 1px solid var(--color-border); border-radius: 12px; box-shadow: 0 12px 32px rgba(16, 24, 32, .14); padding: 8px;
}
.b1-drop-right { left: auto; right: 0; }
.b1-drop-panel ul { list-style: none; margin: 0; padding: 0; }
.b1-drop-panel a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--color-ink); font-size: 13.5px; text-decoration: none; white-space: nowrap; }
.b1-drop-panel a:hover { background: var(--color-primary-soft); color: var(--color-primary-dark); }

/* All: 전체 카테고리 메가 패널 */
.b1-cat-all { position: static; }
.b1-mega {
  display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 1020;
  background: #FFFFFF; border-top: 1px solid var(--color-border); box-shadow: 0 16px 36px rgba(16, 24, 32, .14); padding: 22px 0 18px;
}
.b1-mega-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px 24px; }
.b1-mega-head { display: block; font-weight: 700; font-size: 14px; color: var(--color-ink); margin-bottom: 6px; text-decoration: none; }
.b1-mega-head:hover { color: var(--color-primary); }
.b1-mega-sub { list-style: none; margin: 0; padding: 0; }
.b1-mega-sub a { display: block; padding: 2px 0; font-size: 13px; color: var(--color-muted); text-decoration: none; line-height: 1.6; }
.b1-mega-sub a:hover { color: var(--color-primary); }

@media (min-width: 992px) {
  .b1-cat:hover > .b1-drop-panel, .b1-cat:focus-within > .b1-drop-panel { display: block; }
  .b1-cat-all:focus-within > .b1-mega { display: block; }
  /* JS 없을 때만 :hover 로 열기 (JS 있으면 .is-open 으로 열고 0.35초 늦게 닫음) */
  .b1-cats:not(.b1-js) .b1-cat-all:hover > .b1-mega { display: block; }
  .b1-cat-all.is-open > .b1-mega { display: block; }
  /* All 패널이 열려 있는 동안 다른 카테고리 하위 목록은 띄우지 않음 */
  .b1-cats.b1-mega-on .b1-cat:not(.b1-cat-all) > .b1-drop-panel { display: none !important; }
  .b1-cats.b1-mega-on .b1-cat:not(.b1-cat-all):hover > .b1-cat-link { background: transparent; color: #3B4652; }
  /* 패널 위쪽 투명 다리: All 링크와 패널 사이 틈 메움 */
  .b1-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
}
/* 태블릿/폰: 한 줄 가로 스크롤, 누르면 카테고리 페이지로 (펼침 패널 없음) */
@media (max-width: 991px) {
  .b1-cats-list { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .b1-cats-list::-webkit-scrollbar { display: none; }
  .b1-drop-panel, .b1-mega { display: none !important; }
}

/* ---- 푸터 ---- */
#b1-footer { background: #FFFFFF; border-top: 1px solid var(--color-border); color: var(--color-muted); font-size: 14px; margin-top: auto; }
.b1-foot-grid { display: grid; grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(160px, 1fr)); gap: 28px 40px; padding-top: 40px; padding-bottom: 32px; }
.b1-foot-grid h2 { font-size: 14px; font-weight: 700; color: var(--color-ink); margin: 0 0 12px; }
.b1-foot-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.b1-foot-grid a { color: #3B4652; text-decoration: none; }
.b1-foot-grid a:hover { color: var(--color-primary); }
.b1-foot-brand p { margin: 12px 0 0; }
.b1-foot-phone { line-height: 1.7; }
.b1-foot-phone a { color: var(--color-primary) !important; font-weight: 700; }
.b1-foot-bottom { background: var(--color-light-bg); border-top: 1px solid var(--color-border); padding: 16px 0 18px; }
.b1-copy { margin: 0 0 6px; font-size: 12px; color: var(--color-muted); }
.b1-amazon { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--color-muted); }
@media (max-width: 767px) { .b1-foot-grid { grid-template-columns: 1fr 1fr; } .b1-foot-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .b1-foot-grid { grid-template-columns: 1fr; } }

/* ---- 홈 ---- */
#common-home { background: #FFFFFF; padding: 20px 0 48px; }  /* 흰 바탕: 틸 카테고리 띠/패널이 상자 안의 상자처럼 보이지 않게 (2026-11-03) */
#b1-home { display: flex; flex-direction: column; gap: 28px; }

.b1-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.b1-sec-title { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; letter-spacing: -0.3px; color: var(--color-ink) !important; }
.b1-sec-icon { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.b1-icon-teal { background: var(--color-primary); color: #FFFFFF; }
.b1-icon-indigo { background: var(--color-indigo); color: #FFFFFF; }
.b1-icon-coral { background: var(--color-coral); color: var(--color-ink); }

/* 카테고리 원형 띠 */
.b1-catband { background: var(--color-primary-soft); border-radius: 20px; padding: 18px 20px 14px; }
.b1-catband-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px 10px; }
.b1-catcircle { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px 2px; color: #0B3B39; text-align: center; text-decoration: none; }
.b1-catcircle:hover { color: var(--color-primary-dark); }
.b1-catcircle-img { width: 88px; height: 88px; border-radius: 999px; background: #FFFFFF; box-shadow: 0 1px 3px rgba(11, 59, 57, .12); display: flex; align-items: center; justify-content: center; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.b1-catcircle:hover .b1-catcircle-img { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(11, 59, 57, .16); }
.b1-catcircle-img img { width: 60px; height: 60px; object-fit: contain; }
.b1-catcircle-name { font-size: 13px; font-weight: 600; line-height: 1.25; }

/* 70 / 30 */
.b1-split { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.b1-best { flex: 7 1 560px; min-width: 0; }
.b1-side { flex: 3 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* 상품 카드 */
.b1-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); gap: 10px; }
.b1-card { position: relative; display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid var(--color-border); border-radius: 14px; overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.b1-card:hover { border-color: #CBD5DA; box-shadow: 0 6px 18px rgba(16, 24, 32, .08); }
.b1-rank { position: absolute; top: 8px; left: 8px; z-index: 1; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 8px; background: var(--color-primary-soft); color: var(--color-primary-dark); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.b1-card-img { display: flex; align-items: center; justify-content: center; height: 140px; padding: 12px; background: #FFFFFF; }
.b1-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.b1-card-body { display: flex; flex-direction: column; gap: 2px; padding: 2px 12px 12px; flex: 1 1 auto; }
.b1-model { font-family: var(--font-mono); font-weight: 600; font-size: 12.5px; color: var(--color-ink) !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.b1-model:hover { color: var(--color-primary) !important; }
.b1-name { font-size: 12px; line-height: 1.35; color: var(--color-muted) !important; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 32px; }
.b1-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.b1-price { font-size: 16px; font-weight: 700; letter-spacing: -0.2px; color: var(--color-ink); line-height: 1.2; min-width: 0; }
.b1-special { color: var(--color-accent); }
.b1-old { display: block; font-size: 11.5px; font-weight: 400; color: var(--color-muted); }
.b1-add-form { margin: 0; flex: 0 0 auto; }
.b1-add {
  width: 40px; height: 40px; border: 0; border-radius: 999px; background: var(--color-primary); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s, transform .1s;
}
.b1-add:hover { background: var(--color-primary-dark); }
.b1-add:active { transform: scale(.94); }
.b1-add-outline { background: #FFFFFF; color: var(--color-primary); border: 2px solid var(--color-primary); }
.b1-add-outline:hover { background: var(--color-primary); color: #FFFFFF; }

/* 오른쪽 패널 (Buy it again / New arrivals) */
.b1-panel { display: flex; flex-direction: column; gap: 10px; border-radius: 20px; padding: 16px 16px 12px; }
.b1-panel-again { background: #EFEDFD; }
.b1-panel-new { background: #FFF1EA; }
.b1-panel-head { display: flex; align-items: center; gap: 10px; }
.b1-panel-title { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.2px; color: var(--color-ink) !important; }
.b1-panel-sub { font-size: 12.5px; color: var(--color-muted); }
.b1-rows { display: flex; flex-direction: column; gap: 6px; }
.b1-row { display: flex; align-items: center; gap: 10px; background: #FFFFFF; border-radius: 12px; padding: 6px 8px 6px 6px; color: var(--color-ink); text-decoration: none; }
.b1-row-link:hover { color: var(--color-ink); box-shadow: 0 4px 12px rgba(16, 24, 32, .08); }
.b1-row-img { flex: 0 0 auto; width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; }
.b1-row-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.b1-row-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.b1-row-name { font-size: 12px; color: var(--color-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b1-row-price { flex: 0 0 auto; font-size: 13.5px; font-weight: 700; }
.b1-row-text .b1-row-price { font-size: 14px; }
.b1-new-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.b1-new-tag { flex: 0 0 auto; font-size: 10px; font-weight: 700; letter-spacing: .6px; color: #B33A12; background: #FFE9E1; padding: 1px 6px; border-radius: 999px; }
.b1-panel-link { align-self: center; font-size: 14px; font-weight: 600; padding: 4px 0; color: var(--color-primary); }

/* ---- 쿠폰 카드 (New arrivals 아래) 2026-11-06 ---- */
.b1-offer-list { display: flex; flex-direction: column; gap: 12px; }
.b1-offer {
  --cp-bg: #E2F1EF; --cp-fg: #0B7A75; --cp-notch: #FFFFFF;
  position: relative; display: flex; align-items: stretch; border-radius: 16px; background: var(--cp-bg); color: var(--color-ink); overflow: hidden;
}
.b1-offer-welcome { --cp-bg: #FFF1EA; --cp-fg: #B33A12; }
.b1-offer-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 16px 14px 16px 18px; }
.b1-offer-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--cp-fg); }
.b1-offer-title { font-size: 16px; font-weight: 700; letter-spacing: -0.2px; line-height: 1.25; }
.b1-offer-sub { font-size: 12.5px; color: var(--color-muted); }
.b1-offer-link { align-self: flex-start; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--cp-fg) !important; text-decoration: none; }
.b1-offer-link:hover { text-decoration: underline; }
.b1-offer-code { position: relative; align-self: flex-start; margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1.5px dashed var(--cp-fg); border-radius: 8px; background: #FFFFFF; font-size: 12px; color: var(--color-muted); cursor: pointer; }
.b1-offer-code strong { font-family: var(--font-mono); font-size: 13.5px; letter-spacing: 1px; color: var(--cp-fg); }
.b1-offer-code:hover { border-style: solid; }
.b1-offer-copied { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; border-radius: 6px; background: var(--cp-fg); color: #FFFFFF; font-size: 12px; font-weight: 700; }
.b1-offer-code.is-done .b1-offer-copied { display: flex; }
.b1-offer-stub {
  position: relative; flex: 0 0 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-left: 2px dashed rgba(16, 24, 32, .14); padding: 12px 8px; text-align: center;
}
.b1-offer-stub::before, .b1-offer-stub::after {
  content: ""; position: absolute; left: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--cp-notch);
}
.b1-offer-stub::before { top: -8px; }
.b1-offer-stub::after { bottom: -8px; }
.b1-offer-value { font-family: var(--font-mono); font-size: 24px; font-weight: 700; line-height: 1; color: var(--cp-fg); }
.b1-offer-note { font-size: 10.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--color-muted); }

/* 브랜드 로고 */
.b1-brands .b1-sec-title { margin-bottom: 12px; }
.b1-brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.b1-brand { display: flex; align-items: center; justify-content: center; height: 76px; padding: 12px 18px; background: #FFFFFF; border: 1px solid var(--color-border); border-radius: 14px; color: #3B4652; font-weight: 700; text-decoration: none; transition: box-shadow .15s; }
.b1-brand:hover { box-shadow: 0 6px 16px rgba(16, 24, 32, .08); }
.b1-brand img { max-width: 100%; max-height: 44px; object-fit: contain; }

@media (max-width: 575px) {
  .b1-catcircle-img { width: 72px; height: 72px; }
  .b1-catcircle-img img { width: 48px; height: 48px; }
  .b1-catband-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
  .b1-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b1-sec-title { font-size: 20px; }
}

/* ---- 공통: 새 팔레트에 맞춘 기존 요소 ---- */
body.b1 #content h1, body.b1 .category-info h1 { color: var(--color-ink); }
body.b1 .btn-primary:hover, body.b1 button.btn-primary:hover { background: var(--color-primary-dark) !important; border-color: var(--color-primary-dark) !important; }
body.b1 .pagination > li > a:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }

/* ---- 상품 카드(카테고리/검색 목록): 초록 제목 = 모델명, 그 아래 상품명, 긴 설명 숨김 (2026-11-03) ---- */
/* 카드 높이 통일 + 가격을 항상 같은 위치(설명 바로 아래, 카드 아래쪽)에 */
body.b1 .product-thumb { display: flex; flex-direction: column; height: 100%; }
body.b1 .product-thumb .content { flex: 1 1 auto; display: flex; flex-direction: column; }
body.b1 .product-thumb .description { flex: 1 1 auto; display: flex; flex-direction: column; }
body.b1 .product-thumb .description .price { margin-top: auto; }
/* 모델명: 한 줄 고정 (길면 … 처리, 마우스 올리면 전체) */
.product-thumb .thumb-model-title { margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 상품명(설명): 항상 3줄 높이 — 짧아도 3줄 자리, 길면 3줄에서 … */
.product-thumb .thumb-name {
  display: -webkit-box !important; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  height: calc(1.45em * 3); margin: 0 0 10px; font-size: 13px; line-height: 1.45; color: var(--color-muted);
}

/* ---- 카테고리 페이지: 제목 아래 카테고리 사진 숨김 (설명 글은 있으면 전체 폭으로) (2026-11-03) ---- */
body.b1 #product-category #content > h1 + .row > .col-3 { display: none; }
body.b1 #product-category #content > h1 + .row > .col-9 { flex: 0 0 100%; max-width: 100%; width: 100%; }
/* 사진만 있고 설명이 없으면 그 줄과 구분선도 숨김 */
body.b1 #product-category #content > h1 + .row:not(:has(.col-9)),
body.b1 #product-category #content > h1 + .row:not(:has(.col-9)) + hr { display: none; }

/* ---- 브랜드 목록: 로고 카드 (2026-11-03) ---- */
.b1-brandpage-head { display: flex; align-items: baseline; gap: 12px; margin: 8px 0 18px; }
.b1-brandpage-head h1 { margin: 0 !important; font-size: 26px !important; font-weight: 700; color: var(--color-ink) !important; letter-spacing: -0.4px; }
.b1-brandpage-count { font-size: 14px; color: var(--color-muted); }
.b1-brand-index a { margin-left: 12px; }
.b1-brandcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 32px; }
.b1-brandcard {
  display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid var(--color-border); border-radius: 16px;
  overflow: hidden; color: var(--color-ink); text-decoration: none; transition: box-shadow .15s, border-color .15s, transform .15s;
}
.b1-brandcard:hover { color: var(--color-ink); border-color: #CBD5DA; box-shadow: 0 8px 22px rgba(16, 24, 32, .09); transform: translateY(-2px); }
.b1-brandcard-logo { height: 120px; display: flex; align-items: center; justify-content: center; padding: 20px 28px; background: #FFFFFF; border-bottom: 1px solid #EEF1F3; }
.b1-brandcard-logo img { max-width: 100%; max-height: 64px; object-fit: contain; }
.b1-brandcard-word { font-size: 24px; font-weight: 700; letter-spacing: .5px; color: #3B4652; text-align: center; }
.b1-brandcard-body { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px 4px; }
.b1-brandcard-name { font-size: 16px; font-weight: 700; }
.b1-brandcard-total { font-size: 13px; color: var(--color-muted); }
.b1-brandcard-cta { padding: 8px 18px 16px; font-size: 14px; font-weight: 600; color: var(--color-primary); }
.b1-brandcard:hover .b1-brandcard-cta { color: var(--color-primary-dark); }
@media (max-width: 991px) { .b1-brandcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575px) { .b1-brandcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .b1-brandcard-logo { height: 96px; padding: 16px; } }

/* ---- 브랜드 상품 목록: 위쪽 브랜드 띠 ---- */
.b1-brandbar { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--color-primary-soft); border-radius: 18px; padding: 16px 20px; margin: 8px 0 20px; }
.b1-brandbar-logo { width: 160px; height: 76px; flex: 0 0 auto; background: #FFFFFF; border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 10px 16px; }
.b1-brandbar-logo img { max-width: 100%; max-height: 52px; object-fit: contain; }
.b1-brandbar-text { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.b1-brandbar-text h1 { margin: 0 !important; font-size: 24px !important; font-weight: 700; color: var(--color-ink) !important; }
.b1-brandbar-text span { font-size: 14px; color: #0B3B39; }
.b1-brandbar-all { flex: 0 0 auto; font-size: 14px; font-weight: 600; color: var(--color-primary-dark); background: #FFFFFF; border-radius: 999px; padding: 9px 16px; text-decoration: none; }
.b1-brandbar-all:hover { background: var(--color-primary); color: #FFFFFF; }

/* ---- 회원가입: 비밀번호 눈 아이콘 + 정책 동의 줄 (2026-11-03) ---- */
.b1-pw .form-control { border-right: 0; }
.b1-pw-toggle { width: 48px; border: 1px solid var(--bs-border-color, #dee2e6); border-left: 0; background: #FFFFFF; color: var(--color-muted); }
.b1-pw-toggle:hover, .b1-pw-toggle[aria-pressed="true"] { color: var(--color-primary); background: #FFFFFF; }
.b1-pw .form-control:focus + .b1-pw-toggle { border-color: #86b7fe; }
.b1-pw .form-control.is-invalid + .b1-pw-toggle { border-color: var(--bs-form-invalid-border-color, #dc3545); }

.b1-agree-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 20px; margin-top: 8px; }
.b1-agree { display: flex; align-items: center; gap: 12px; margin: 0; padding-left: 0; min-height: 0; }
.b1-agree .form-check-input { float: none; margin: 0; width: 2.75em; height: 1.5em; flex: 0 0 auto; cursor: pointer; }
.b1-agree .form-check-input:checked { background-color: var(--color-primary); border-color: var(--color-primary); }
.b1-agree .form-check-input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 .2rem rgba(11, 122, 117, .2); }
.b1-agree .form-check-label { margin: 0; line-height: 1.4; cursor: pointer; }
.b1-agree .form-check-label a { font-weight: 700; }
.b1-agree-btn { min-height: 44px; padding: 0 24px; }
/* 같은 스위치 색: 뉴스레터 */
body.b1 .form-switch .form-check-input:checked { background-color: var(--color-primary); border-color: var(--color-primary); }

/* ---- 가입 완료: 축하 카드 (2026-11-03) ---- */
.b1-welcome-page { background: var(--color-light-bg); padding: 32px 0 48px; }
.b1-welcome-page .b1-wrap { display: flex; flex-direction: column; gap: 24px; }
.b1-welcome {
  max-width: 640px; width: 100%; margin: 0 auto; background: #FFFFFF; border: 1px solid var(--color-border); border-radius: 20px;
  padding: 36px 32px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.b1-welcome-check { width: 72px; height: 72px; border-radius: 999px; background: var(--color-primary); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.b1-welcome h1 { margin: 4px 0 0 !important; font-size: 28px !important; font-weight: 700; letter-spacing: -0.5px; color: var(--color-ink) !important; }
.b1-welcome-lead { margin: 0; font-size: 15px; color: var(--color-muted); max-width: 460px; }
.b1-welcome-lead strong { color: var(--color-ink); font-weight: 600; word-break: break-all; }
.b1-coupon {
  width: 100%; max-width: 440px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px;
  border: 2px dashed var(--color-coral); background: #FFF6F1; border-radius: 14px; padding: 14px 16px 14px 20px; text-align: left;
}
.b1-coupon-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.b1-coupon-label { font-size: 16px; font-weight: 700; color: var(--color-ink); }
.b1-coupon-code { font-size: 14px; color: var(--color-muted); }
.b1-coupon-code strong { font-family: var(--font-mono); font-size: 16px; color: #B33A12; letter-spacing: 1px; }
.b1-coupon-copy { flex: 0 0 auto; height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--color-ink); color: #FFFFFF; font-weight: 600; font-size: 14px; cursor: pointer; }
.b1-coupon-copy:hover { background: #2A3540; }
.b1-coupon-copy.is-done { background: var(--color-primary); }
.b1-welcome-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.b1-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; transition: background .15s, color .15s; }
.b1-btn-solid { background: var(--color-primary); color: #FFFFFF !important; border: 2px solid var(--color-primary); }
.b1-btn-solid:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }
.b1-btn-line { background: #FFFFFF; color: var(--color-primary) !important; border: 2px solid var(--color-primary); }
.b1-btn-line:hover { background: var(--color-primary-soft); }
.b1-welcome-help { margin: 6px 0 0; font-size: 13px; color: var(--color-muted); }
.b1-welcome-help a { font-weight: 600; }
.b1-welcome-cats { max-width: var(--container-max); width: 100%; }
@media (max-width: 575px) {
  .b1-welcome { padding: 28px 18px 22px; }
  .b1-welcome h1 { font-size: 24px !important; }
  .b1-coupon { flex-direction: column; align-items: stretch; text-align: center; }
  .b1-welcome-actions .b1-btn { flex: 1 1 100%; }
}

/* ---- 내 계정 대시보드 (2026-11-03) ---- */
.b1-acct #content { padding-bottom: 40px; }
.b1-acct-head { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin: 8px 0 22px; }
.b1-acct-avatar { width: 56px; height: 56px; flex: 0 0 auto; border-radius: 999px; background: var(--color-primary); color: #FFFFFF; font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; letter-spacing: .5px; }
.b1-acct-hello { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; }
.b1-acct-hello h1 { margin: 0 !important; font-size: 26px !important; font-weight: 700; color: var(--color-ink) !important; letter-spacing: -0.4px; }
.b1-acct-hello span { font-size: 14px; color: var(--color-muted); word-break: break-all; }
.b1-acct-logout { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 1px solid var(--color-border); border-radius: 999px; color: #3B4652; font-weight: 600; font-size: 14px; text-decoration: none; background: #FFFFFF; }
.b1-acct-logout:hover { border-color: var(--color-accent); color: var(--color-accent); }

.b1-acct-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.b1-acct-tile { display: flex; align-items: center; gap: 16px; padding: 20px; background: #FFFFFF; border: 1px solid var(--color-border); border-radius: 16px; color: var(--color-ink); text-decoration: none; transition: box-shadow .15s, border-color .15s, transform .15s; }
.b1-acct-tile:hover { color: var(--color-ink); border-color: #CBD5DA; box-shadow: 0 8px 22px rgba(16, 24, 32, .08); transform: translateY(-2px); }
.b1-acct-icon { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 14px; background: var(--color-primary-soft); color: var(--color-primary-dark); display: flex; align-items: center; justify-content: center; }
.b1-acct-tile:first-child .b1-acct-icon { background: var(--color-primary); color: #FFFFFF; }
.b1-acct-tile-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.b1-acct-tile-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.b1-acct-tile-desc { font-size: 13px; color: var(--color-muted); }
.b1-acct-badge { font-size: 12px; font-weight: 700; color: var(--color-primary-dark); background: var(--color-primary-soft); border-radius: 999px; padding: 1px 8px; }

.b1-acct-orders { margin-top: 28px; background: #FFFFFF; border: 1px solid var(--color-border); border-radius: 16px; padding: 18px 20px; }
.b1-acct-orders-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.b1-acct-orders-head h2 { margin: 0; font-size: 18px; font-weight: 700; color: var(--color-ink); }
.b1-acct-orders-head a { font-size: 14px; font-weight: 600; }
.b1-acct-orderlist { display: flex; flex-direction: column; }
.b1-acct-order { display: grid; grid-template-columns: 110px 1fr auto auto 20px; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid #EEF1F3; color: var(--color-ink); text-decoration: none; }
.b1-acct-order:first-child { border-top: 0; }
.b1-acct-order:hover { color: var(--color-ink); background: var(--color-light-bg); border-radius: 10px; }
.b1-acct-order-id { font-family: var(--font-mono); font-weight: 600; }
.b1-acct-order-date { color: var(--color-muted); font-size: 14px; }
.b1-acct-order-status { font-size: 12px; font-weight: 700; color: var(--color-primary-dark); background: var(--color-primary-soft); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.b1-acct-order-total { font-weight: 700; text-align: right; }
.b1-acct-order-go { color: var(--color-muted); font-size: 22px; line-height: 1; text-align: right; }
.b1-acct-empty { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--color-muted); padding: 8px 0 4px; }

@media (max-width: 991px) { .b1-acct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) {
  .b1-acct-grid { grid-template-columns: 1fr; }
  .b1-acct-order { grid-template-columns: 1fr auto; row-gap: 4px; }
  .b1-acct-order-date { grid-column: 1; grid-row: 2; }
  .b1-acct-order-status { grid-column: 2; grid-row: 2; justify-self: end; }
  .b1-acct-order-go { display: none; }
}

/* 계정 하위 페이지 오른쪽 메뉴 */
.b1-acct-side { display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid var(--color-border); border-radius: 14px; padding: 6px; margin-bottom: 16px; }
.b1-acct-side a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--color-ink); font-size: 14px; text-decoration: none; }
.b1-acct-side a:hover { background: var(--color-primary-soft); color: var(--color-primary-dark); }
.b1-acct-side .b1-acct-side-home { font-weight: 700; }
.b1-acct-side .b1-acct-side-logout { color: var(--color-muted); border-top: 1px solid #EEF1F3; border-radius: 0 0 10px 10px; margin-top: 4px; }

/* ---- 헤더: 로그인 표시 (이니셜 원 + Hello, 이름) (2026-11-03) ---- */
.b1-me { gap: 10px; padding: 0 10px 0 6px; height: 48px; }
.b1-me-avatar { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 999px; background: var(--color-primary); color: #FFFFFF; font-size: 13px; font-weight: 700; letter-spacing: .4px; display: flex; align-items: center; justify-content: center; }
.b1-me-text { display: flex; flex-direction: column; line-height: 1.15; }
.b1-me-hello { font-size: 12px; font-weight: 500; color: var(--color-muted); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b1-me-acct { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--color-ink); }
.b1-me:hover .b1-me-acct, .b1-me[aria-expanded="true"] .b1-me-acct { color: var(--color-primary); }
.b1-drop-who { padding: 6px 12px 2px; font-size: 12px; color: var(--color-muted); line-height: 1.4; max-width: 260px; }
.b1-drop-who strong { color: var(--color-ink); font-weight: 600; word-break: break-all; }

/* ---- 브랜드 상품 목록: 카드 작게 (그리드 보기일 때만, 목록 보기는 그대로) (2026-11-03)
   common.js 가 #product-list 에 row-cols-lg-3 을 강제로 넣어서 클래스 대신 CSS 로 칸 수 지정 ---- */
.b1-brandinfo #product-list.row:not(.product-list) > * { flex: 0 0 auto; width: 50%; }
@media (min-width: 576px)  { .b1-brandinfo #product-list.row:not(.product-list) > * { width: 33.3333%; } }
@media (min-width: 768px)  { .b1-brandinfo #product-list.row:not(.product-list) > * { width: 25%; } }
@media (min-width: 992px)  { .b1-brandinfo #product-list.row:not(.product-list) > * { width: 20%; } }
@media (min-width: 1200px) { .b1-brandinfo #product-list.row:not(.product-list) > * { width: 16.6667%; } }
.b1-brandinfo #product-list:not(.product-list) .product-thumb .image { padding: 8px; }
.b1-brandinfo #product-list:not(.product-list) .product-thumb .image img { max-height: 130px; }
.b1-brandinfo #product-list:not(.product-list) .product-thumb .content { padding: 10px 12px 12px; }
.b1-brandinfo #product-list:not(.product-list) .product-thumb h4 { font-size: 14px; }
.b1-brandinfo #product-list:not(.product-list) .product-thumb .thumb-name { font-size: 12px; }
.b1-brandinfo #product-list:not(.product-list) .product-thumb .price { font-size: 15px; }

/* ---- 카테고리/검색/특가 목록도 브랜드 페이지와 같은 작은 카드 (그리드 보기일 때만) (2026-11-05) ---- */
:is(#product-category, #product-search, #product-special) #product-list.row:not(.product-list) > * { flex: 0 0 auto; width: 50%; }
@media (min-width: 576px)  { :is(#product-category, #product-search, #product-special) #product-list.row:not(.product-list) > * { width: 33.3333%; } }
@media (min-width: 768px)  { :is(#product-category, #product-search, #product-special) #product-list.row:not(.product-list) > * { width: 25%; } }
@media (min-width: 992px)  { :is(#product-category, #product-search, #product-special) #product-list.row:not(.product-list) > * { width: 20%; } }
@media (min-width: 1200px) { :is(#product-category, #product-search, #product-special) #product-list.row:not(.product-list) > * { width: 16.6667%; } }
/* 왼쪽 필터 칸이 있어 상품 영역이 좁을 때는 큰 화면에서도 한 줄 4개 */
@media (min-width: 992px)  { :is(#product-category, #product-search, #product-special) #column-left ~ #content #product-list.row:not(.product-list) > * { width: 25%; } }
:is(#product-category, #product-search, #product-special) #product-list:not(.product-list) .product-thumb .image { padding: 8px; }
:is(#product-category, #product-search, #product-special) #product-list:not(.product-list) .product-thumb .image img { max-height: 130px; }
:is(#product-category, #product-search, #product-special) #product-list:not(.product-list) .product-thumb .content { padding: 10px 12px 12px; }
:is(#product-category, #product-search, #product-special) #product-list:not(.product-list) .product-thumb h4 { font-size: 14px; }
:is(#product-category, #product-search, #product-special) #product-list:not(.product-list) .product-thumb .thumb-name { font-size: 12px; }
:is(#product-category, #product-search, #product-special) #product-list:not(.product-list) .product-thumb .price { font-size: 15px; }

/* ---- 카테고리 원형 띠: 균형 배치 (2026-11-05)
   900px 이상: 두 줄로 반씩 (13개 → 7 + 6, 둘째 줄 가운데). 칸 수 --b1-cols 는 템플릿이 ceil(개수/2) 로 넣어줌
   900px 미만: 한 줄 가로 스크롤 (오른쪽 끝 흐림 → 옆에 더 있다는 표시) ---- */
.b1-catband-grid { --b1-gap: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px var(--b1-gap); }
.b1-catband-grid > .b1-catcircle { flex: 0 0 calc((100% - (var(--b1-cols, 7) - 1) * var(--b1-gap)) / var(--b1-cols, 7)); min-width: 0; }
@media (max-width: 899px) {
  .b1-catband { padding: 14px 0 10px; overflow: hidden; }
  .b1-catband-grid {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: 0 16px 4px;
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
            mask-image: linear-gradient(to right, #000 85%, transparent);
  }
  .b1-catband-grid::-webkit-scrollbar { display: none; }
  .b1-catband-grid > .b1-catcircle { flex: 0 0 96px; scroll-snap-align: start; }
  .b1-catband-grid > .b1-catcircle:last-child { margin-right: 24px; }
}
@media (max-width: 575px) {
  .b1-catband-grid > .b1-catcircle { flex-basis: 84px; }
}

/* ---- 폭 통일: 본문(.container)을 헤더/푸터(.b1-wrap)와 같은 폭·여백으로 (2026-11-05)
   Bootstrap 기본 .container 는 화면별 960/1140px 이라 헤더(1320px)와 어긋났음 ---- */
body.b1 .container { max-width: var(--container-max); padding-left: 24px; padding-right: 24px; }
@media (max-width: 575px) { body.b1 .container { padding-left: 16px; padding-right: 16px; } }
/* #content 가 row 안의 칸(col)일 때는 Bootstrap 칸 여백을 되살려서
   제목·상품 카드가 브레드크럼과 같은 선에 오게 (테마의 #content { padding: 16px 0 } 이 좌우 여백을 없앴었음) */
body.b1 .row > #content { padding-left: calc(var(--bs-gutter-x, 1.5rem) * .5); padding-right: calc(var(--bs-gutter-x, 1.5rem) * .5); }

/* ---- Products: 클릭하면 드롭다운 (2026-11-05) ---- */
.b1-cat-caret { margin-left: -2px; transition: transform .15s; }
.b1-cat-all.is-open .b1-cat-caret { transform: rotate(180deg); }
.b1-cat-all.is-open > .b1-cat-all-link { color: var(--color-primary-dark); background: var(--color-primary-soft); padding-left: 10px; }
/* 태블릿/폰: 눌러서 연 경우엔 패널을 보여줌 (화면 높이 안에서 스크롤) */
@media (max-width: 991px) {
  .b1-cats .b1-cat-all.is-open > .b1-mega { display: block !important; max-height: 70vh; overflow-y: auto; padding: 16px 0 14px; }
  .b1-cats .b1-mega-inner { padding: 0 16px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 18px; }
}

/* ---- 메뉴 바: 클릭할 때만 드롭다운 (마우스 올림으로는 안 열림) (2026-11-05)
   JS 가 붙으면(.b1-js) hover/focus 규칙을 끄고 .is-open 일 때만 보여줌 ---- */
.b1-cats.b1-js .b1-cat > .b1-drop-panel,
.b1-cats.b1-js .b1-cat-all > .b1-mega { display: none !important; }
.b1-cats.b1-js .b1-cat.is-open > .b1-drop-panel,
.b1-cats.b1-js .b1-cat-all.is-open > .b1-mega { display: block !important; }
.b1-cats.b1-js .b1-cat.is-open > .b1-cat-link { color: var(--color-primary-dark); background: var(--color-primary-soft); }
.b1-cats.b1-js .b1-cat.is-open .b1-cat-caret { transform: rotate(180deg); }
/* 마우스만 올렸을 때는 글자색만 살짝 (열린 것처럼 보이지 않게) */
.b1-cats.b1-js .b1-cat:not(.is-open):hover > .b1-cat-link { background: transparent; color: var(--color-primary); }
.b1-cats.b1-js .b1-cat-all:not(.is-open):hover > .b1-cat-all-link { padding-left: 0; }
/* 태블릿/폰: 메뉴 줄이 가로 스크롤이라 하위 목록은 메뉴 바 전체 폭 기준으로 아래에 펼침 */
@media (max-width: 991px) {
  .b1-cats.b1-js .b1-cat { position: static; }
  .b1-cats.b1-js .b1-cat > .b1-drop-panel { left: 16px; right: 16px; top: 100%; min-width: 0; }
}

/* ---- About Us (2026-11-05) ---- */
.b1-about { padding-bottom: 48px; }
.b1-about-hero {
  display: flex; flex-wrap: wrap; align-items: center; gap: 28px 40px;
  background: var(--color-primary-soft); border-radius: 24px; padding: 40px 44px; margin: 8px 0 28px;
}
.b1-about-hero-text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.b1-about-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--color-primary-dark); }
.b1-about-hero h1 { margin: 0 !important; font-size: 38px !important; line-height: 1.12; font-weight: 700; letter-spacing: -0.8px; color: var(--color-ink) !important; max-width: 640px; }
.b1-about-hero p { margin: 0; font-size: 16px; line-height: 1.6; color: #2F3B45; max-width: 620px; }
.b1-about-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.b1-about-hero-pics { flex: 1 1 260px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 320px; }
.b1-about-hero-pics span { aspect-ratio: 1 / 1; background: #FFFFFF; border-radius: 999px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(11, 59, 57, .10); }
.b1-about-hero-pics img { width: 62%; height: 62%; object-fit: contain; }

.b1-about-values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.b1-about-card { background: #FFFFFF; border: 1px solid var(--color-border); border-radius: 18px; padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.b1-about-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--color-primary); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.b1-about-card h2 { margin: 4px 0 0; font-size: 17px; font-weight: 700; color: var(--color-ink); }
.b1-about-card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--color-muted); }
.b1-about-future { margin: 18px 0 0; text-align: center; font-size: 15px; color: #3B4652; }

.b1-about-section { margin-top: 36px; }
.b1-about-h2 { margin: 0 0 14px; font-size: 22px; font-weight: 700; letter-spacing: -0.3px; color: var(--color-ink); }
.b1-about-h2-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.b1-about-h2-row a { font-size: 14px; font-weight: 600; }

.b1-about-cta {
  margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px;
  background: #FFF1EA; color: var(--color-ink); border-radius: 20px; padding: 28px 32px;
}
.b1-about-cta h2 { margin: 0 0 4px; font-size: 22px; font-weight: 700; color: var(--color-ink); }
.b1-about-cta p { margin: 0; color: var(--color-muted); font-size: 14px; }
.b1-about-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.b1-about-phone { display: flex; flex-direction: column; color: var(--color-ink) !important; font-weight: 700; font-size: 17px; text-decoration: none; line-height: 1.2; }
.b1-about-phone span { font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: #B33A12; }
.b1-about-phone:hover { color: var(--color-accent) !important; }
.b1-about-cta .b1-btn-solid { background: #B33A12 !important; border-color: #B33A12 !important; color: #FFFFFF !important; }
.b1-about-cta .b1-btn-solid:hover { background: #8F2E0E !important; border-color: #8F2E0E !important; }

@media (max-width: 991px) {
  .b1-about-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b1-about-hero { padding: 32px 28px; }
  .b1-about-hero h1 { font-size: 32px !important; }
}
@media (max-width: 575px) {
  .b1-about-hero { padding: 26px 20px; border-radius: 18px; }
  .b1-about-hero h1 { font-size: 27px !important; }
  .b1-about-hero-pics { max-width: 240px; margin: 0 auto; }
  .b1-about-values { grid-template-columns: 1fr; }
  .b1-about-cta { padding: 24px 20px; }
}

/* ---- 정책 문서 (개인정보처리방침 / 이용약관 / 배송 안내): 목차 + 읽기 좋은 본문 (2026-11-05) ---- */
.b1-doc { padding-bottom: 56px; }
.b1-doc-head { border-bottom: 1px solid var(--color-border); padding: 4px 0 18px; margin-bottom: 28px; }
.b1-doc-head h1 { margin: 0 0 6px !important; font-size: 32px !important; font-weight: 700; letter-spacing: -0.6px; color: var(--color-ink) !important; }
.b1-doc-head p { margin: 0; color: var(--color-muted); font-size: 14px; }
.b1-doc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; }
.b1-doc-layout:has(> .b1-doc-toc[hidden]) { grid-template-columns: minmax(0, 1fr); }
.b1-doc-toc { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.b1-doc-toc details { border: 1px solid var(--color-border); border-radius: 14px; padding: 12px 8px 10px; background: #FFFFFF; }
.b1-doc-toc summary { list-style: none; cursor: pointer; padding: 2px 10px 8px; font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--color-muted); }
.b1-doc-toc summary::-webkit-details-marker { display: none; }
.b1-doc-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.b1-doc-toc li { counter-increment: toc; }
.b1-doc-toc a { display: flex; gap: 8px; padding: 7px 10px; border-radius: 8px; font-size: 13.5px; line-height: 1.35; color: #3B4652; text-decoration: none; }
.b1-doc-toc a::before { content: counter(toc) "."; color: var(--color-muted); font-variant-numeric: tabular-nums; min-width: 18px; }
.b1-doc-toc a:hover { background: var(--color-light-bg); color: var(--color-ink); }
.b1-doc-toc a.is-active { background: var(--color-primary-soft); color: var(--color-primary-dark); font-weight: 600; }

.b1-doc-body { max-width: 760px; font-size: 16px; line-height: 1.75; color: #24303A; counter-reset: sec; }
.b1-doc-body p { margin: 0 0 16px; }
.b1-doc-body p span, .b1-doc-body p font { font-family: inherit !important; font-size: inherit !important; line-height: inherit !important; }
.b1-doc-body h2 {
  counter-increment: sec; scroll-margin-top: 16px;
  display: flex; align-items: baseline; gap: 12px;
  margin: 40px 0 14px; padding-top: 24px; border-top: 1px solid var(--color-border);
  font-size: 22px; font-weight: 700; letter-spacing: -0.3px; line-height: 1.3; color: var(--color-ink);
}
.b1-doc-body h2::before { content: counter(sec, decimal-leading-zero); font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--color-primary); }
.b1-doc-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.b1-doc-body h3 { scroll-margin-top: 16px; margin: 24px 0 10px; font-size: 17px; font-weight: 700; color: var(--color-ink); }
.b1-doc-body ul, .b1-doc-body ol { margin: 0 0 16px; padding-left: 22px; }
.b1-doc-body li { margin-bottom: 6px; }
.b1-doc-body a { text-decoration: underline; text-underline-offset: 2px; }
.b1-doc-body b, .b1-doc-body strong { color: var(--color-ink); }

.b1-doc-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 4px 0 22px; padding: 18px 20px; border-radius: 16px; background: var(--color-primary-soft); }
.b1-doc-cta div { display: flex; flex-direction: column; gap: 2px; }
.b1-doc-cta strong { font-size: 16px; color: var(--color-ink); }
.b1-doc-cta span { font-size: 14px; color: #2F3B45; line-height: 1.5; }
.b1-doc-cta .b1-btn { text-decoration: none; }

.b1-totop { position: fixed; right: 20px; bottom: 20px; z-index: 900; width: 46px; height: 46px; border-radius: 999px; background: var(--color-ink); color: #FFFFFF !important; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(16, 24, 32, .25); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.b1-totop.is-on { opacity: 1; pointer-events: auto; transform: none; }
.b1-totop:hover { background: var(--color-primary); }

@media (max-width: 991px) {
  .b1-doc-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .b1-doc-toc { position: static; max-height: none; }
  .b1-doc-toc summary { padding-bottom: 2px; }
  .b1-doc-toc details[open] summary { padding-bottom: 8px; }
  .b1-doc-head h1 { font-size: 26px !important; }
  .b1-doc-body { font-size: 15.5px; }
}

/* ---- 반품 신청: 진행 순서 + 반품 정책 요약 (2026-11-05) ---- */
.b1-ret { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin: 6px 0 22px; }
.b1-ret-steps { list-style: none; margin: 0; padding: 18px 20px; background: var(--color-primary-soft); border-radius: 16px; display: flex; flex-direction: column; gap: 14px; }
.b1-ret-steps li { display: flex; gap: 14px; align-items: flex-start; }
.b1-ret-num { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 999px; background: var(--color-primary); color: #FFFFFF; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.b1-ret-steps div { display: flex; flex-direction: column; }
.b1-ret-steps strong { font-size: 15px; color: var(--color-ink); }
.b1-ret-steps span { font-size: 13.5px; color: #2F3B45; line-height: 1.45; }
.b1-ret-policy { border: 1px solid var(--color-border); border-radius: 16px; padding: 18px 20px; background: #FFFFFF; }
.b1-ret-policy h2 { margin: 0 0 10px; font-size: 16px; font-weight: 700; color: var(--color-ink); }
.b1-ret-policy ul { margin: 0 0 12px; padding-left: 18px; font-size: 13.5px; line-height: 1.55; color: #2F3B45; }
.b1-ret-policy li { margin-bottom: 5px; }
.b1-ret-policy li::marker { color: var(--color-primary); }
.b1-ret-link { font-size: 14px; font-weight: 600; }
.b1-ret-intro { color: var(--color-muted); }
@media (max-width: 767px) { .b1-ret { grid-template-columns: 1fr; } }
.b1-ret-hint { margin: 0 0 6px; padding: 10px 14px; border-radius: 10px; background: var(--color-light-bg); font-size: 14px; color: #2F3B45; }
.b1-ret-hint a { font-weight: 700; }

/* ---- 반품 신청: 폭 줄이기 — 폼 820px, 입력칸은 내용 길이에 맞춰 (2026-11-05) ---- */
#account-return .b1-ret { max-width: 980px; }
#account-return .b1-ret-hint, #account-return .b1-ret-intro { max-width: 820px; }
#account-return #form-return { max-width: 820px; }
#account-return #form-return legend { font-size: 18px; font-weight: 700; color: var(--color-ink); padding-bottom: 8px; margin-bottom: 14px; border-bottom: 1px solid var(--color-border); }
#account-return #form-return fieldset { margin-bottom: 20px; }
@media (min-width: 576px) {
  #account-return #input-order-id     { max-width: 220px; }
  #account-return #input-date-ordered { max-width: 220px; }
  #account-return #input-firstname,
  #account-return #input-lastname     { max-width: 320px; }
  #account-return #input-email        { max-width: 400px; }
  #account-return #input-telephone    { max-width: 260px; }
  #account-return #input-product      { max-width: 520px; }
  #account-return #input-model        { max-width: 320px; }
  #account-return #input-quantity     { max-width: 110px; }
  #account-return #input-comment      { max-width: 100%; }
  /* 날짜 칸은 원래 col-md-4 로 좁혀져 있어서 칸 폭은 다른 칸과 같게 */
  #account-return #input-date-ordered { width: 100%; }
  #account-return .col-md-4:has(> #input-date-ordered) { flex: 0 0 auto; width: 83.333%; }
}

/* 카테고리 페이지 하위 카테고리 아이콘 띠 (2026-11-13) — 홈 원형 아이콘과 같은 모양, 왼쪽 정렬 */
.b1-subcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px 12px; margin: 6px 0 22px; padding: 16px 14px 12px; background: var(--color-primary-soft); border-radius: 16px; }
.b1-subcats > .b1-catcircle { flex: none; }
@media (max-width: 575px) {
  .b1-subcats { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); padding: 12px 8px 8px; }
}
.b1-subcats > .b1-catcircle.is-active .b1-catcircle-img { box-shadow: 0 0 0 3px var(--color-primary), 0 4px 10px rgba(11, 59, 57, .16); }
.b1-subcats > .b1-catcircle.is-active .b1-catcircle-name { color: var(--color-primary-dark); font-weight: 700; }

/* ---- 주문 완료 (checkout/success) — 2026-12-01 ---- */
.b1-order-page .b1-wrap { gap: 18px; }
.b1-order-head, .b1-order-sum { max-width: 720px; }
.b1-order-no { margin: 0; font-size: 18px; color: var(--color-ink); }
.b1-order-no strong { font-family: var(--font-mono); color: var(--color-primary-dark); letter-spacing: .5px; }
.b1-order-sum { width: 100%; margin: 0 auto; background: #FFFFFF; border: 1px solid var(--color-border); border-radius: 20px; padding: 24px 28px; }
.b1-order-sum-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--color-border); }
.b1-order-sum-head h2 { margin: 0; font-size: 18px; font-weight: 700; color: var(--color-ink); }
.b1-order-sum-head span { font-size: 13px; color: var(--color-muted); }
.b1-order-items { list-style: none; margin: 0; padding: 0; }
.b1-order-items > li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.b1-order-thumb { flex: 0 0 56px; width: 56px; height: 56px; border: 1px solid var(--color-border); border-radius: 10px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.b1-order-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.b1-order-item-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.b1-order-model { font-family: var(--font-mono); font-weight: 600; font-size: 14px; color: var(--color-primary-dark); text-decoration: none; word-break: break-all; }
.b1-order-model:hover { text-decoration: underline; }
.b1-order-name { font-size: 13px; color: var(--color-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b1-order-qty { flex: 0 0 auto; font-size: 14px; color: var(--color-muted); }
.b1-order-price { flex: 0 0 90px; text-align: right; font-weight: 600; font-size: 14px; color: var(--color-ink); }
.b1-order-more { justify-content: center; font-size: 14px; }
.b1-order-more a { font-weight: 600; }
.b1-order-totals { margin: 12px 0 0; margin-left: auto; max-width: 300px; }
.b1-order-totals > div { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; font-size: 14px; color: var(--color-muted); }
.b1-order-totals dt { font-weight: 400; }
.b1-order-totals dd { margin: 0; color: var(--color-ink); }
.b1-order-totals > div.is-grand { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--color-border); font-size: 17px; font-weight: 700; color: var(--color-ink); }
.b1-order-totals > div.is-grand dt { font-weight: 700; }
.b1-order-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-top: 18px; padding: 16px 18px; background: var(--color-light-bg); border-radius: 14px; }
.b1-order-meta h3 { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--color-muted); }
.b1-order-meta p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--color-ink); }
.b1-order-help { text-align: center; }
@media (max-width: 575px) {
  .b1-order-sum { padding: 18px 16px; }
  .b1-order-items > li { flex-wrap: wrap; }
  .b1-order-item-info { flex-basis: calc(100% - 70px); }
  .b1-order-qty { margin-left: 70px; }
  .b1-order-price { flex: 1 1 auto; }
}

/* ---- USPS 주소 확인 팝업 (2026-12-01) ---- */
#b1-addr-modal .modal-content { border-radius: 16px; border: 1px solid var(--color-border); }
#b1-addr-modal .modal-title { font-size: 18px; font-weight: 700; color: var(--color-ink); }
#b1-addr-modal .b1-addr-lead { margin: 0 0 12px; font-size: 14px; color: var(--color-muted); }
#b1-addr-modal .b1-addr-warn { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: #FFF6F1; color: #B33A12; font-size: 13px; }
#b1-addr-modal .b1-addr-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin: 0 0 10px; border: 1px solid var(--color-border); border-radius: 12px; cursor: pointer; font-size: 14px; line-height: 1.5; color: var(--color-ink); }
#b1-addr-modal .b1-addr-opt.is-static { cursor: default; background: var(--color-light-bg); }
#b1-addr-modal .b1-addr-opt input { margin-top: 4px; accent-color: var(--color-primary); }
#b1-addr-modal .b1-addr-opt strong { display: block; font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--color-muted); margin-bottom: 2px; }
#b1-addr-modal .b1-addr-opt:has(input:checked) { border-color: var(--color-primary); background: var(--color-primary-soft); }
#b1-addr-modal .modal-footer { border-top: 0; padding-top: 0; }

/* ---- 상품 카드(카테고리/검색/특가/브랜드/관련상품) = 홈 카드(b1-card)와 같은 모양 (2026-12-01)
   모델명 모노·진한색(두 줄까지 줄바꿈 — 잘리지 않게), 가격 진한색, 오른쪽 아래 둥근 카트 버튼.
   찜/비교는 작은 아이콘 (576px 미만에서는 숨김). home_products(imart-product-row) 카드는 제외 ---- */
body.b1 .b1-thumb:not(.imart-product-row *) { border-radius: 14px; border-color: var(--color-border); }
body.b1 .b1-thumb:not(.imart-product-row *):hover { border-color: #CBD5DA; box-shadow: 0 6px 18px rgba(16, 24, 32, .08); }
body.b1 .b1-thumb:not(.imart-product-row *) .image { background: #FFFFFF; }
body.b1 .b1-thumb:not(.imart-product-row *) .content { display: flex; flex-direction: column; flex: 1 1 auto; padding: 8px 12px 12px; }
body.b1 .b1-thumb:not(.imart-product-row *) .description { padding: 0; margin: 0; flex: 1 1 auto; }
body.b1 .b1-thumb:not(.imart-product-row *) .thumb-model-title {
  font-family: var(--font-mono); font-weight: 600; font-size: 13px; line-height: 1.35; margin: 0 0 3px;
  white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
body.b1 .b1-thumb:not(.imart-product-row *) .thumb-model-title a { color: var(--color-ink); }
body.b1 .b1-thumb:not(.imart-product-row *) .thumb-model-title a:hover { color: var(--color-primary); }
body.b1 .b1-thumb:not(.imart-product-row *) .thumb-name { margin-bottom: 8px; }
body.b1 .b1-thumb:not(.imart-product-row *) .b1-thumb-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 0; }
body.b1 .b1-thumb:not(.imart-product-row *) .price { margin: 0; min-width: 0; font-size: 16px; font-weight: 700; letter-spacing: -0.2px; line-height: 1.2; color: var(--color-ink); }
body.b1 .b1-thumb:not(.imart-product-row *) .price .b1-special { color: var(--color-accent); }
body.b1 .b1-thumb:not(.imart-product-row *) .price-old { display: block; font-size: 11.5px; font-weight: 400; color: var(--color-muted); text-decoration: line-through; }
body.b1 .b1-thumb:not(.imart-product-row *) .price-tax { display: block; font-size: 11px; font-weight: 400; color: var(--color-muted); }
body.b1 .b1-thumb:not(.imart-product-row *) .button { position: static; display: flex; align-items: center; gap: 2px; width: auto; margin: 0; border: 0; flex: 0 0 auto; }
body.b1 .b1-thumb:not(.imart-product-row *) .button button { width: auto; border: 0; line-height: 1; background: none; padding: 0; }
body.b1 .b1-thumb:not(.imart-product-row *) .button button + button { border-left: 0; }
body.b1 .b1-thumb:not(.imart-product-row *) .button .b1-thumb-cart {
  order: 3; width: 38px; height: 38px; margin-left: 2px; border-radius: 999px; background: var(--color-primary); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center; transition: background .15s, transform .1s;
}
body.b1 .b1-thumb:not(.imart-product-row *) .button .b1-thumb-cart:hover { background: var(--color-primary-dark); color: #FFFFFF; }
body.b1 .b1-thumb:not(.imart-product-row *) .button .b1-thumb-cart:active { transform: scale(.94); }
body.b1 .b1-thumb:not(.imart-product-row *) .button .b1-thumb-icon { width: 28px; height: 28px; border-radius: 999px; color: #9AA4AD; display: flex; align-items: center; justify-content: center; font-size: 13px; }
body.b1 .b1-thumb:not(.imart-product-row *) .button .b1-thumb-icon:hover { background: var(--color-primary-soft); color: var(--color-primary); }
@media (max-width: 575.98px) {
  body.b1 .b1-thumb:not(.imart-product-row *) .button .b1-thumb-icon { display: none; }
}
/* 리스트 보기(product-list)에서는 가격·버튼을 오른쪽 아래로 */
@media (min-width: 960px) {
  body.b1 .product-list .b1-thumb .content { padding: 14px 16px; }
  body.b1 .product-list .b1-thumb .button { margin-left: 0; }
}

/* ---- 모바일 breadcrumb: 마지막(상품명) 항목이 화면 밖으로 나가 가로 스크롤 생기던 것 → 한 줄 … 처리 (2026-12-01) ---- */
@media (max-width: 767.98px) {
  body.b1 .breadcrumb { flex-wrap: nowrap; overflow: hidden; }
  body.b1 .breadcrumb > li.breadcrumb-item { padding: 0 14px 0 18px; flex: 0 0 auto; }
  body.b1 .breadcrumb > li.breadcrumb-item:last-child { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  body.b1 .breadcrumb > li.breadcrumb-item:last-child::after { display: none; }
}

/* ---- 모바일 필터: 왼쪽 칸을 상품 목록 위에 "Filters" 버튼으로 (2026-12-01) ---- */
.b1-colleft-toggle {
  display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 0 12px; padding: 10px 14px;
  border: 1px solid var(--color-border); border-radius: 12px; background: #FFFFFF; color: var(--color-ink); font-weight: 600; font-size: 14px;
}
.b1-colleft-toggle .b1-colleft-caret { margin-left: auto; font-size: 12px; transition: transform .15s; }
.b1-colleft-toggle[aria-expanded="true"] .b1-colleft-caret { transform: rotate(180deg); }
@media (max-width: 767.98px) {
  /* 왼쪽 칸이 보이게 되면서 #content(.col) 가 같은 줄에 끼어 0 폭이 되지 않게 */
  /* 기본 OC 스타일시트의 #column-left padding-bottom(데스크톱 칸 높이용) 이 모바일에서 큰 빈칸이 되던 것 제거 */
  body.b1 #column-left { flex: 0 0 100%; width: 100%; padding-bottom: 0 !important; }
  body.b1 #column-left ~ #content { flex: 0 0 100%; width: 100%; }
  body.b1 #b1-colleft-body .card { margin-bottom: 12px; }
}

/* ---- 반품 신청 완료 (account/returns.success) — 2026-12-01 ---- */
.b1-ret-status { display: inline-block; padding: 1px 10px; border-radius: 999px; background: var(--color-primary-soft); color: var(--color-primary-dark); font-weight: 600; font-size: 12px; }
.b1-order-meta .b1-ret-wide { grid-column: 1 / -1; }
.b1-ret-next h2 { margin: 0 0 14px; font-size: 18px; font-weight: 700; color: var(--color-ink); }
.b1-ret-next ol { list-style: none; counter-reset: b1step; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.b1-ret-next li { counter-increment: b1step; position: relative; padding-left: 44px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--color-muted); line-height: 1.5; }
.b1-ret-next li::before { content: counter(b1step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 999px; background: var(--color-primary); color: #FFFFFF; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.b1-ret-next li strong { color: var(--color-ink); font-size: 15px; font-weight: 600; }
.b1-ret-next li b { color: var(--color-primary-dark); font-family: var(--font-mono); }
.b1-ret-policy { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--color-border); font-size: 14px; }
.b1-ret-policy a { font-weight: 600; }

/* ---- 계정 닫기 (extension/theme2026/account/close) — 2026-12-02 ---- */
.b1-acct-close { margin: 28px 0 0; text-align: center; font-size: 13px; }
.b1-acct-close a { color: var(--color-muted); text-decoration: underline; }
.b1-acct-close a:hover { color: #B42318; }
.b1-close-card { max-width: 720px; margin: 8px auto 40px; background: #FFFFFF; border: 1px solid var(--color-border); border-radius: 20px; padding: 28px 32px; }
.b1-close-card h1 { margin: 0 0 6px; font-size: 26px; font-weight: 700; color: var(--color-ink); }
.b1-close-lead { margin: 0 0 20px; color: var(--color-muted); }
.b1-close-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 22px; }
.b1-close-grid > div { padding: 14px 16px; border-radius: 14px; background: var(--color-light-bg); }
.b1-close-grid h2 { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--color-muted); }
.b1-close-grid ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--color-ink); line-height: 1.6; }
.b1-close-form { max-width: 440px; }
.b1-close-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.b1-close-danger { background: #B42318; border-color: #B42318; color: #FFFFFF; border-radius: 999px; padding: 10px 22px; font-weight: 600; }
.b1-close-danger:hover, .b1-close-danger:focus { background: #912018; border-color: #912018; color: #FFFFFF; }
.b1-close-blocked { padding: 14px 16px; border-radius: 14px; background: #FFF6F1; border: 1px solid #F5C7B5; color: #7A2E0E; font-size: 14px; margin-bottom: 16px; }
.b1-close-blocked strong { display: block; margin-bottom: 4px; }
.b1-close-blocked p { margin: 4px 0 0; }
.b1-close-done { text-align: center; }
.b1-close-done p { color: var(--color-muted); }
.b1-close-done .b1-close-actions { justify-content: center; margin: 18px 0; }
.b1-close-icon { display: inline-flex; width: 60px; height: 60px; border-radius: 999px; align-items: center; justify-content: center; margin-bottom: 12px; }
.b1-close-icon.is-ok { background: var(--color-primary-soft); color: var(--color-primary); }
.b1-close-help { font-size: 13px; }
@media (max-width: 575px) { .b1-close-card { padding: 22px 18px; } }

/* ---- 가격 $0 상품: Call for price (2026-12-02) ---- */
.b1-call-price { font-size: 14px; font-weight: 700; color: var(--color-accent); text-decoration: none; }
.b1-call-price:hover { text-decoration: underline; }
.b1-call-box { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; margin-bottom: 14px; border-radius: 12px; background: #FFF6F1; border: 1px solid #F5C7B5; }
.b1-call-box strong { font-size: 20px; color: var(--color-accent); }
.b1-call-box span { font-size: 14px; color: var(--color-ink); }
