/* 종합몰 1(general1) — 11/16 대표님 «카페24나 전체적으로 uiux를 참고해달라고 … 하나도 반영 안했네?» → «예, 이대로».
   본뜬 것 = 카페24 디자인센터 «종합 쇼핑몰» 인기 스킨 샘플몰(셀렉트 K · 생활 잡화 · 일상한칸 — 11/16 직접 열어 봄).
   그 모양에서 가져온 것: 짙은 얇은 띠 · 왼쪽 이름 + 큰 검색 · 붙어 다니는 분류 메뉴 · 화면 끝까지 꽉 찬 메인 배너(넘어감) ·
   배너 아래 안내 줄 · 분류 사진 칸 · 가운데 큰 구역 제목 · 테두리 없는 상품 칸(옅은 회색 사진 면 · 큰 사진 · 넓은 여백) ·
   분류 탭 진열(알약 모양 탭) · 가게 소개 띠(사진 + 글) · 가운데 «더보기» 단추. general1 화면에서만 읽는다(mall/_base.html).
   글자 #1A1A1A · 흐린 글자 #767676 · 선 #E8E8E8 · 옅은 면 #F4F4F4 · 강조 = 몰 대표색(--ml, 만들 때 #1266F1) · 모서리 작게(4px). */

.ml-t[data-mall-template="general1"] { --t-ink: #1A1A1A; --t-sub: #767676; --t-line: #E8E8E8; --t-soft: #F4F4F4; --t-dark: #1A1A1A;
  --t-r: 4px; --t-rl: 6px; --t-br: 4px; }

/* ── 띠 · 머리 · 메뉴 ─────────────────────────────────────────────────── */
.ml-t[data-mall-template="general1"] .ml-strip { background: var(--t-dark); color: rgba(255, 255, 255, .86); font-size: 12px; }
.ml-t[data-mall-template="general1"] .ml-strip .ml-wrap { height: 34px; }
.ml-t[data-mall-template="general1"] .ml-strip a { color: #fff; font-weight: 600; }
.ml-t[data-mall-template="general1"] .ml-strip .cs { color: rgba(255, 255, 255, .86); }
.ml-t[data-mall-template="general1"] .ml-head .ml-wrap { height: 96px; gap: 40px; }
.ml-t[data-mall-template="general1"] .ml-brand b { font-size: 30px; font-weight: 900; letter-spacing: -.05em; }
.ml-t[data-mall-template="general1"] .ml-brand img { max-height: 52px; }
.ml-t[data-mall-template="general1"] .th-search .ml-search { max-width: 560px; height: 50px; border: 2px solid var(--ml); border-radius: 25px; }
.ml-t[data-mall-template="general1"] .th-search .ml-search input { padding-left: 22px; font-size: 15px; }
.ml-t[data-mall-template="general1"] .th-search .ml-search button { width: 82px; margin: 4px; border-radius: 19px; background: var(--ml); color: var(--ml-ink); font-size: 14px; }
.ml-t[data-mall-template="general1"] .ml-tools > a { font-size: 13px; }
.ml-t[data-mall-template="general1"] .ml-menu { border-top: 1px solid var(--t-line); border-bottom: 1px solid var(--t-line); }
.ml-t[data-mall-template="general1"] .ml-menu .ml-wrap { height: 56px; }
.ml-t[data-mall-template="general1"] .ml-catnav a { font-size: 15px; font-weight: 700; padding: 0 16px; }
.ml-t[data-mall-template="general1"] .btn-allcat { padding: 0 24px 0 0; margin-right: 8px; font-size: 15px; font-weight: 800; color: var(--t-ink);
  --icl: var(--t-ink); --icl2: var(--t-ink); }
.ml-t[data-mall-template="general1"] .btn-allcat:hover { color: var(--ml); }

/* ── 메인 배너(화면 끝까지 꽉 참 · 옆으로 넘어감) ─────────────────────────── */
.ml-t[data-mall-template="general1"] .tb-hero { margin-top: 0; position: relative; background: var(--t-soft); }
.ml-t[data-mall-template="general1"] .hs-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.ml-t[data-mall-template="general1"] .hs-track::-webkit-scrollbar { display: none; }
.ml-t[data-mall-template="general1"] .hs-slide { flex: 0 0 100%; height: clamp(340px, 37vw, 600px); scroll-snap-align: start; }
.ml-t[data-mall-template="general1"] .hs-slide a { display: block; height: 100%; }
.ml-t[data-mall-template="general1"] .hs-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ml-t[data-mall-template="general1"] .hs-ctl { position: absolute; bottom: 28px; right: max(24px, calc((100% - 1232px) / 2 + 24px)); display: flex; align-items: center; gap: 4px;
  padding: 4px 6px; background: rgba(17, 17, 17, .5); border-radius: 20px; color: #fff; font-size: 13px; }
.ml-t[data-mall-template="general1"] .hs-ctl button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.ml-t[data-mall-template="general1"] .hs-ctl button:hover { background: rgba(255, 255, 255, .18); }
.ml-t[data-mall-template="general1"] .hs-n { padding: 0 4px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.ml-t[data-mall-template="general1"] .hs-n b { font-weight: 800; }
.ml-t[data-mall-template="general1"] .hs-n i { font-style: normal; margin: 0 6px; opacity: .55; }
/* 배너 사진이 없을 때 — 대표색 옅은 띠 + 큰 이름 + 상품 사진 3장 */
.ml-t[data-mall-template="general1"] .tb-hero.auto { background: var(--ml-soft); }
.ml-t[data-mall-template="general1"] .tb-hero.auto .ml-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; min-height: clamp(340px, 30vw, 460px);
  padding-top: 48px; padding-bottom: 48px; }
.ml-t[data-mall-template="general1"] .tb-hero.auto h1 { margin: 0 0 14px; font-size: 48px; font-weight: 900; letter-spacing: -.05em; line-height: 1.15; word-break: keep-all; }
.ml-t[data-mall-template="general1"] .tb-hero.auto p { margin: 0 0 30px; font-size: 18px; color: #4B4B4B; line-height: 1.6; word-break: keep-all; }
.ml-t[data-mall-template="general1"] .tb-hero.auto .ml-btn { height: 52px; padding: 0 30px; border-radius: 26px; font-size: 16px; }
.ml-t[data-mall-template="general1"] .tb-hero.auto .pics { display: flex; align-items: center; gap: 18px; }
.ml-t[data-mall-template="general1"] .tb-hero.auto .pics a { display: block; width: 210px; aspect-ratio: 1 / 1; background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 18px 40px rgba(17, 24, 39, .10); }
.ml-t[data-mall-template="general1"] .tb-hero.auto .pics a:nth-child(2) { transform: translateY(-26px); }
.ml-t[data-mall-template="general1"] .tb-hero.auto .pics img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }

/* ── 배너 아래 안내 줄(배송 · 교환·반품 · 주문 방법 · 고객센터) ─────────── */
.ml-t[data-mall-template="general1"] .tb-guide4 { margin-top: 0; border-bottom: 1px solid var(--t-line); }
.ml-t[data-mall-template="general1"] .tb-guide4 .ml-wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ml-t[data-mall-template="general1"] .tb-guide4 a { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 22px 8px; font-size: 14px;
  color: var(--t-ink); --icl: var(--t-ink); --icl2: var(--ml); }
.ml-t[data-mall-template="general1"] .tb-guide4 a + a { border-left: 1px solid var(--t-line); }
.ml-t[data-mall-template="general1"] .tb-guide4 a:hover { color: var(--ml); }
.ml-t[data-mall-template="general1"] .tb-guide4 b { font-weight: 700; }

/* ── 분류 사진 칸 ─────────────────────────────────────────────────────── */
.ml-t[data-mall-template="general1"] .tb-catphotos { margin-top: 64px; }
.ml-t[data-mall-template="general1"] .tb-catphotos .tb-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 22px; }
.ml-t[data-mall-template="general1"] .tb-catphotos a { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 132px; color: var(--t-ink); }
.ml-t[data-mall-template="general1"] .tb-catphotos .cp { display: block; width: 132px; height: 132px; padding: 16px; background: var(--t-soft); border-radius: 50%; overflow: hidden; }
.ml-t[data-mall-template="general1"] .tb-catphotos img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ml-t[data-mall-template="general1"] .tb-catphotos a:hover .cp { outline: 2px solid var(--ml); outline-offset: 3px; }
.ml-t[data-mall-template="general1"] .tb-catphotos b { font-size: 14px; font-weight: 700; text-align: center; word-break: keep-all; }

/* ── 구역 제목(가운데 큰 글자) · 더보기 ──────────────────────────────────── */
.ml-t[data-mall-template="general1"] .tb { margin-top: 96px; }
.ml-t[data-mall-template="general1"] .tb-hero, .ml-t[data-mall-template="general1"] .tb-guide4 { margin-top: 0; }
.ml-t[data-mall-template="general1"] .tb-catphotos { margin-top: 64px; }
.ml-t[data-mall-template="general1"] .tb-row .ml-wrap { position: relative; }
.ml-t[data-mall-template="general1"] .tb-row .tb-h { justify-content: center; margin-bottom: 32px; }
.ml-t[data-mall-template="general1"] .tb-row .tb-h h2 { font-size: 30px; font-weight: 900; letter-spacing: -.05em; }
.ml-t[data-mall-template="general1"] .tb-row .tb-h .more { position: absolute; right: 24px; top: 12px; font-size: 13px; color: var(--t-sub); }
.ml-t[data-mall-template="general1"] .tb-row .tb-h .more::after { content: " +"; }

/* ── 상품 칸 — 테두리 없음 · 옅은 회색 사진 면(흰 바탕 사진도 면과 이어지게 multiply) · 사진 크게 ─────── */
.ml-t[data-mall-template="general1"] .ml-card { padding: 0; background: none; border: 0; }
.ml-t[data-mall-template="general1"] .ml-card .thumb { background: var(--t-soft); border: 0; border-radius: var(--t-r); }
.ml-t[data-mall-template="general1"] .ml-card .thumb img { object-fit: contain; padding: 5%; mix-blend-mode: multiply; transition: transform .35s ease; }
.ml-t[data-mall-template="general1"] .ml-card:hover .thumb img { transform: scale(1.05); }
.ml-t[data-mall-template="general1"] .ml-card .body { padding: 14px 2px 0; gap: 6px; }
.ml-t[data-mall-template="general1"] .ml-card .name { font-size: 14px; color: #333; min-height: 40px; }
.ml-t[data-mall-template="general1"] .ml-card:hover .name { text-decoration: none; color: var(--t-ink); }
.ml-t[data-mall-template="general1"] .ml-card .price { font-size: 17px; font-weight: 900; }
.ml-t[data-mall-template="general1"] .ml-card .rk { left: 0; top: 0; min-width: 32px; height: 32px; border-radius: var(--t-r) 0 var(--t-r) 0; background: var(--t-dark); font-size: 14px; }
.ml-t[data-mall-template="general1"] .tb-row .tb-items, .ml-t[data-mall-template="general1"] .tb-cattabs .tb-items,
.ml-t[data-mall-template="general1"] .ml-grid { gap: 44px 20px; }

/* ── 분류 탭 진열(알약 탭 — 누르면 그 분류 상품으로 바뀜, 라디오 + CSS) ─────── */
.ml-t[data-mall-template="general1"] .tb-cattabs .ml-wrap { position: relative; }
.ml-t[data-mall-template="general1"] .tt-r { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ml-t[data-mall-template="general1"] .tb-cattabs .tb-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.ml-t[data-mall-template="general1"] .tb-cattabs .tb-tabs label { padding: 10px 22px; border: 1px solid var(--t-line); border-radius: 22px; font-size: 15px; font-weight: 700;
  color: var(--t-sub); background: #fff; cursor: pointer; white-space: nowrap; }
.ml-t[data-mall-template="general1"] .tb-cattabs .tb-tabs label:hover { color: var(--t-ink); border-color: #BDBDBD; }
.ml-t[data-mall-template="general1"] .tt-p { display: none; }
.ml-t[data-mall-template="general1"] #tt1:checked ~ .p1, .ml-t[data-mall-template="general1"] #tt2:checked ~ .p2,
.ml-t[data-mall-template="general1"] #tt3:checked ~ .p3, .ml-t[data-mall-template="general1"] #tt4:checked ~ .p4,
.ml-t[data-mall-template="general1"] #tt5:checked ~ .p5 { display: block; }
.ml-t[data-mall-template="general1"] #tt1:checked ~ .tb-tabs label[for="tt1"], .ml-t[data-mall-template="general1"] #tt2:checked ~ .tb-tabs label[for="tt2"],
.ml-t[data-mall-template="general1"] #tt3:checked ~ .tb-tabs label[for="tt3"], .ml-t[data-mall-template="general1"] #tt4:checked ~ .tb-tabs label[for="tt4"],
.ml-t[data-mall-template="general1"] #tt5:checked ~ .tb-tabs label[for="tt5"] { color: #fff; background: var(--t-ink); border-color: var(--t-ink); }
.ml-t[data-mall-template="general1"] #tt1:focus-visible ~ .tb-tabs label[for="tt1"], .ml-t[data-mall-template="general1"] #tt2:focus-visible ~ .tb-tabs label[for="tt2"],
.ml-t[data-mall-template="general1"] #tt3:focus-visible ~ .tb-tabs label[for="tt3"], .ml-t[data-mall-template="general1"] #tt4:focus-visible ~ .tb-tabs label[for="tt4"],
.ml-t[data-mall-template="general1"] #tt5:focus-visible ~ .tb-tabs label[for="tt5"] { outline: 2px solid var(--ml); outline-offset: 2px; }
.ml-t[data-mall-template="general1"] .tt-more { margin-top: 40px; text-align: center; }
.ml-t[data-mall-template="general1"] .tt-more .ml-btn { min-width: 220px; height: 48px; border-radius: 24px; font-size: 15px; }
.ml-t[data-mall-template="general1"] .tt-more .ml-btn::after { content: " +"; margin-left: 4px; }

/* ── 가게 소개 띠(사진 + 몰 이름·소개 한 줄) ───────────────────────────── */
.ml-t[data-mall-template="general1"] .tb-brand { background: var(--t-soft); }
.ml-t[data-mall-template="general1"] .tb-brand .bb { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; max-width: 1440px; margin: 0 auto; }
.ml-t[data-mall-template="general1"] .tb-brand .ph { height: clamp(320px, 30vw, 460px); }
.ml-t[data-mall-template="general1"] .tb-brand .ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ml-t[data-mall-template="general1"] .tb-brand .copy { padding: 48px clamp(28px, 5vw, 88px); }
.ml-t[data-mall-template="general1"] .tb-brand h2 { margin: 0 0 14px; font-size: 32px; font-weight: 900; letter-spacing: -.05em; word-break: keep-all; }
.ml-t[data-mall-template="general1"] .tb-brand p { margin: 0 0 28px; font-size: 16px; line-height: 1.7; color: #4B4B4B; word-break: keep-all; }
.ml-t[data-mall-template="general1"] .tb-brand .ml-btn { height: 48px; padding: 0 28px; border-radius: 24px; background: var(--t-ink); border-color: var(--t-ink); color: #fff; }

/* ── 전체 상품(홈 맨 아래) · 쪽 번호 ─────────────────────────────────────── */
.ml-t[data-mall-template="general1"] .tb-list .ml-sec { margin-top: 96px; padding-bottom: 14px; border-bottom: 2px solid var(--t-ink); align-items: center; }
.ml-t[data-mall-template="general1"] .tb-list .ml-sec h2 { font-size: 24px; font-weight: 900; letter-spacing: -.04em; }
.ml-t[data-mall-template="general1"] .tb-list .ml-sec h2 small { color: var(--t-sub); font-weight: 600; }
.ml-t[data-mall-template="general1"] .tb-list .ml-sec .ml-sorts { border-bottom: 0; }
.ml-t[data-mall-template="general1"] .tb-list .ml-sec .ml-sorts a { padding: 2px 0; margin: 0; border: 0; color: var(--t-sub); font-weight: 500; }
.ml-t[data-mall-template="general1"] .tb-list .ml-sec .ml-sorts a + a::before { content: "\00B7"; margin: 0 9px; color: #C4C4C4; }
.ml-t[data-mall-template="general1"] .tb-list .ml-sec .ml-sorts a.on { color: var(--t-ink); font-weight: 800; }
.ml-t[data-mall-template="general1"] .tb-list .ml-grid { margin-top: 28px; }
.ml-t[data-mall-template="general1"] .ml-pager .on { background: var(--t-ink); border-color: var(--t-ink); color: #fff; }
.ml-t[data-mall-template="general1"] .ml-foot { background: #F7F7F7; }

/* ── 넓이별 ───────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .ml-t[data-mall-template="general1"] .tb-hero.auto .ml-wrap { grid-template-columns: 1fr; gap: 28px; }
  .ml-t[data-mall-template="general1"] .tb-hero.auto .pics a { width: 160px; }
  .ml-t[data-mall-template="general1"] .tb-brand .bb { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ml-t[data-mall-template="general1"] .ml-strip .ml-wrap { height: 30px; }
  .ml-t[data-mall-template="general1"] .ml-head .ml-wrap { height: auto; gap: 10px 14px; }   /* 검색 칸이 둘째 줄로 내려가게(높이를 묶으면 메뉴 줄에 가려진다) */
  .ml-t[data-mall-template="general1"] .ml-brand b { font-size: 22px; }
  .ml-t[data-mall-template="general1"] .th-search .ml-search { height: 44px; border-radius: 22px; }
  .ml-t[data-mall-template="general1"] .th-search .ml-search button { width: 64px; border-radius: 17px; }
  .ml-t[data-mall-template="general1"] .ml-menu .ml-wrap { height: 46px; }
  .ml-t[data-mall-template="general1"] .ml-catnav a { font-size: 14px; padding: 0 11px; }
  .ml-t[data-mall-template="general1"] .btn-allcat { padding: 0 12px 0 0; }
  .ml-t[data-mall-template="general1"] .hs-slide { height: 92vw; max-height: 460px; }
  .ml-t[data-mall-template="general1"] .hs-ctl { bottom: 14px; right: 14px; font-size: 12px; }
  .ml-t[data-mall-template="general1"] .hs-ctl button { width: 26px; height: 26px; font-size: 17px; }
  .ml-t[data-mall-template="general1"] .tb-hero.auto .ml-wrap { min-height: 0; padding-top: 34px; padding-bottom: 34px; gap: 22px; }
  .ml-t[data-mall-template="general1"] .tb-hero.auto h1 { font-size: 30px; }
  .ml-t[data-mall-template="general1"] .tb-hero.auto p { margin-bottom: 20px; font-size: 15px; }
  .ml-t[data-mall-template="general1"] .tb-hero.auto .ml-btn { height: 46px; padding: 0 22px; font-size: 15px; }
  .ml-t[data-mall-template="general1"] .tb-hero.auto .pics { gap: 10px; }
  .ml-t[data-mall-template="general1"] .tb-hero.auto .pics a { width: calc((100% - 20px) / 3); }
  .ml-t[data-mall-template="general1"] .tb-hero.auto .pics a:nth-child(2) { transform: none; }
  .ml-t[data-mall-template="general1"] .tb-guide4 .ml-wrap { grid-template-columns: 1fr 1fr; padding: 0; }
  .ml-t[data-mall-template="general1"] .tb-guide4 a { padding: 15px 6px; font-size: 13px; gap: 7px; }
  .ml-t[data-mall-template="general1"] .tb-guide4 a:nth-child(3) { border-left: 0; }
  .ml-t[data-mall-template="general1"] .tb-guide4 a:nth-child(n+3) { border-top: 1px solid var(--t-line); }
  .ml-t[data-mall-template="general1"] .tb { margin-top: 60px; }
  .ml-t[data-mall-template="general1"] .tb-hero, .ml-t[data-mall-template="general1"] .tb-guide4 { margin-top: 0; }
  .ml-t[data-mall-template="general1"] .tb-catphotos { margin-top: 36px; }
  .ml-t[data-mall-template="general1"] .tb-catphotos .tb-items { flex-wrap: nowrap; justify-content: flex-start; gap: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .ml-t[data-mall-template="general1"] .tb-catphotos .tb-items::-webkit-scrollbar { display: none; }
  .ml-t[data-mall-template="general1"] .tb-catphotos a { flex: 0 0 76px; width: 76px; gap: 8px; }
  .ml-t[data-mall-template="general1"] .tb-catphotos .cp { width: 76px; height: 76px; padding: 9px; }
  .ml-t[data-mall-template="general1"] .tb-catphotos b { font-size: 12px; }
  .ml-t[data-mall-template="general1"] .tb-row .tb-h { margin-bottom: 20px; }
  .ml-t[data-mall-template="general1"] .tb-row .tb-h h2 { font-size: 22px; }
  .ml-t[data-mall-template="general1"] .tb-row .tb-h .more { right: 16px; top: 6px; }
  .ml-t[data-mall-template="general1"] .tb-row .tb-items, .ml-t[data-mall-template="general1"] .tb-cattabs .tb-items { gap: 14px; }
  .ml-t[data-mall-template="general1"] .ml-grid { gap: 28px 12px; }
  .ml-t[data-mall-template="general1"] .tb-cattabs .tb-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-bottom: 20px; gap: 8px; }
  .ml-t[data-mall-template="general1"] .tb-cattabs .tb-tabs::-webkit-scrollbar { display: none; }
  .ml-t[data-mall-template="general1"] .tb-cattabs .tb-tabs label { padding: 8px 16px; font-size: 14px; }
  .ml-t[data-mall-template="general1"] .tt-more { margin-top: 24px; }
  .ml-t[data-mall-template="general1"] .tt-more .ml-btn { min-width: 0; width: 100%; height: 46px; }
  .ml-t[data-mall-template="general1"] .tb-brand .ph { height: 240px; }
  .ml-t[data-mall-template="general1"] .tb-brand .copy { padding: 28px 20px 32px; }
  .ml-t[data-mall-template="general1"] .tb-brand h2 { font-size: 24px; }
  .ml-t[data-mall-template="general1"] .tb-brand p { font-size: 14px; margin-bottom: 20px; }
  .ml-t[data-mall-template="general1"] .tb-list .ml-sec { margin-top: 60px; }
  .ml-t[data-mall-template="general1"] .tb-list .ml-sec h2 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .ml-t[data-mall-template="general1"] .ml-card .thumb img { transition: none; }
  .ml-t[data-mall-template="general1"] .ml-card:hover .thumb img { transform: none; }
}
