/* 종합몰 8(general8 · 옛 시안 D «그리드» · 11/26 대표님 «넷 다»로 정식 템플릿 — services/mall_templates.TEMPLATES). general8 화면에서만 읽는다.
   배너 사진 없이 상품이 첫 화면: 왼쪽 이름 + 큰 검색 머리 → 낮은 글 머리(몰 이름 · 소개 한 줄 · 분류 칩) → 바로 신상품 4열(1:1 · 사진 전체 · 옅은 판) →
   인기 상품 → 가게 안내 줄. 원청 사진(정사각 · 흰 바탕)만 있는 가게도 완성돼 보이게(11/26 전문 테마 구성 조사 «방향 A»).
   토큰: 폭 그대로 · 본문 14~16 · 구역 제목 24 · 구역 사이 80(폰 48) · 칸 간격 12(열) / 32(행) · 모서리 4 · 무채색 + 대표색 하나(단추 · 고른 칩 · 순위). */
.ml-t[data-mall-template="general8"] { --t-bg: #fff; --t-ink: #111; --t-sub: #6B6B6B; --t-line: #E7E5E4; --t-soft: #F5F5F4; --t-dark: #111; --t-card: #fff;
  --t-r: 4px; --t-rl: 8px; --t-br: 999px; }
.ml-t[data-mall-template="general8"] .ml-strip { background: var(--t-soft); color: var(--t-sub); font-size: 12px; }
.ml-t[data-mall-template="general8"] .th-search { border-bottom: 1px solid var(--t-line); }
.ml-t[data-mall-template="general8"] .ml-brand b { color: var(--t-ink); font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.ml-t[data-mall-template="general8"] .th-search .ml-search { height: 46px; border: 1px solid var(--t-line); border-radius: 999px; background: var(--t-soft); }
.ml-t[data-mall-template="general8"] .th-search .ml-search input { padding-left: 20px; font-size: 14px; background: transparent; }
.ml-t[data-mall-template="general8"] .th-search .ml-search button { width: 72px; border-radius: 999px; background: var(--t-ink); color: #fff; font-size: 13px; }
.ml-t[data-mall-template="general8"] .ml-tools > a { --icl: var(--t-ink); --icl2: var(--t-ink); }

/* 낮은 글 머리 — 색 바탕 없이 · 검색 칸은 머리에 있으니 숨김 · 분류 칩은 알약 */
.ml-t[data-mall-template="general8"] .tb-findhero { background: none; color: var(--t-ink); }
.ml-t[data-mall-template="general8"] .tb-findhero > .ml-wrap { align-items: flex-start; padding-top: 48px; padding-bottom: 8px; text-align: left; }
.ml-t[data-mall-template="general8"] .tb-findhero h1 { font-size: 40px; font-weight: 800; letter-spacing: -.04em; }
.ml-t[data-mall-template="general8"] .tb-findhero p { margin: 10px 0 0; color: var(--t-sub); font-size: 16px; opacity: 1; }
.ml-t[data-mall-template="general8"] .tb-findhero .ml-search { display: none; }
.ml-t[data-mall-template="general8"] .fh-cats { justify-content: flex-start; gap: 8px; margin-top: 24px; }
.ml-t[data-mall-template="general8"] .fh-cats a { padding: 8px 16px; border: 1px solid var(--t-line); background: #fff; color: var(--t-ink); font-size: 14px; font-weight: 600; opacity: 1; }
.ml-t[data-mall-template="general8"] .fh-cats a:first-child { background: var(--t-ink); border-color: var(--t-ink); color: #fff; }
.ml-t[data-mall-template="general8"] .fh-cats a:hover { border-color: var(--t-ink); background: #fff; }
.ml-t[data-mall-template="general8"] .fh-cats a:first-child:hover { background: var(--t-ink); }

/* 구역 */
.ml-t[data-mall-template="general8"] .tb { margin-top: 80px; }
.ml-t[data-mall-template="general8"] .tb-findhero { margin-top: 0; }
.ml-t[data-mall-template="general8"] .tb-findhero + .tb { margin-top: 36px; }
.ml-t[data-mall-template="general8"] .tb-h { align-items: baseline; margin-bottom: 20px; }
.ml-t[data-mall-template="general8"] .tb-h h2 { font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.ml-t[data-mall-template="general8"] .tb-h .more { color: var(--t-ink); font-size: 14px; font-weight: 600; }

/* 상품 칸 — 1:1 · 사진 전체 · 옅은 판 · 이름 2줄 · 굵은 값 */
.ml-t[data-mall-template="general8"] .tb-row .tb-items { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 12px; }
.ml-t[data-mall-template="general8"] .ml-grid { gap: 32px 12px; }
.ml-t[data-mall-template="general8"] .ml-card .thumb { aspect-ratio: 1 / 1; border-radius: var(--t-r); background: var(--t-soft); }
.ml-t[data-mall-template="general8"] .ml-card .thumb img { object-fit: contain; padding: 9%; mix-blend-mode: multiply; transition: transform .35s ease; }
.ml-t[data-mall-template="general8"] .ml-card:hover .thumb img { transform: scale(1.03); }
.ml-t[data-mall-template="general8"] .ml-card .body { padding-top: 12px; gap: 4px; }
.ml-t[data-mall-template="general8"] .ml-card .name { font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--t-ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ml-t[data-mall-template="general8"] .ml-card .price { font-size: 16px; font-weight: 700; }
.ml-t[data-mall-template="general8"] .ml-card .rk { left: 8px; top: 8px; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--ml); color: var(--ml-ink);
  font-size: 12px; }
.ml-t[data-mall-template="general8"] .ml-sold { left: 8px; top: 8px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; line-height: 22px; }
.ml-t[data-mall-template="general8"] .ml-card .rk ~ .ml-sold { left: auto; right: 8px; }
.ml-t[data-mall-template="general8"] .tb-stats { margin-top: 80px; }

/* 전체 상품 목록 — 왼쪽 분류(넓은 화면) · 바닥 */
.ml-t[data-mall-template="general8"] .tb-list .ml-sec { margin-top: 64px; }
.ml-t[data-mall-template="general8"] .ml-foot { margin-top: 96px; background: var(--t-soft); }

@media (max-width: 960px) {
  .ml-t[data-mall-template="general8"] .tb-row .tb-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ml-t[data-mall-template="general8"] .tb { margin-top: 48px; }
  .ml-t[data-mall-template="general8"] .tb-findhero { margin-top: 0; }
  .ml-t[data-mall-template="general8"] .tb-findhero > .ml-wrap { padding-top: 28px; }
  .ml-t[data-mall-template="general8"] .tb-findhero h1 { font-size: 28px; }
  .ml-t[data-mall-template="general8"] .tb-findhero p { font-size: 14px; }
  .ml-t[data-mall-template="general8"] .fh-cats { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .ml-t[data-mall-template="general8"] .fh-cats a { flex: none; }
  .ml-t[data-mall-template="general8"] .tb-row .tb-items, .ml-t[data-mall-template="general8"] .ml-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; grid-auto-columns: auto; overflow-x: visible; scroll-snap-type: none; gap: 24px 10px; }   /* 폰 = 두 줄 바둑판(공통 «가로 넘김» 대신) */
  .ml-t[data-mall-template="general8"] .tb-h h2 { font-size: 20px; }
}
