/* 개인몰 5(personal5) — 11/20 템플릿 20개. 도예·수공예처럼 상품이 몇 가지뿐인 공방용 «전시 도록» 가게. personal5 화면에서만 읽는다.
   짜임: 바탕색 띠 → 가운데 이름 머리 → 안쪽으로 들인 둥근 액자 배너 + 사진 왼쪽 아래를 파고든 아주 큰 가게 이름(900 · 자간 -0.05em) →
   큰 사진 상품 소개 세 줄(좌우 번갈아 · 글 쪽 위 가는 선) → 인기 상품 흰 둥근 카드 3열 → 대표색 둥근 주문 안내 띠 → 가운데 정렬 바닥.
   색: 옅은 회청 바탕 #F3F5F4 · 먹색 글자 #15201F · 흐린 글자 #667673 · 선 #DCE3E1 · 강조 = 몰 대표색(--ml, 만들 때 짙은 청록 #1D5C63).
   모서리 16(카드)·28(큰 사진) · 단추 알약 · 구역 사이 112px. 짜임(칸 나눔)은 mall_tpl.css «11/20», 여기는 색·글자·여백·모서리. */

.ml-t[data-mall-template="personal5"] { --t-bg: #F3F5F4; --t-ink: #15201F; --t-sub: #667673; --t-line: #DCE3E1; --t-soft: #E7ECEA; --t-dark: #15201F; --t-card: #fff;
  --t-r: 16px; --t-rl: 28px; --t-br: 999px; }

/* ── 띠 · 머리(가운데 이름) ───────────────────────────────────────────── */
.ml-t[data-mall-template="personal5"] .ml-strip { background: var(--t-bg); color: var(--t-sub); font-size: 12px; letter-spacing: .02em; }
.ml-t[data-mall-template="personal5"] .ml-strip .ml-wrap { justify-content: center; height: 34px; }
.ml-t[data-mall-template="personal5"] .th-center .ml-wrap { height: 76px; }
.ml-t[data-mall-template="personal5"] .ml-brand b { max-width: 360px; font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.ml-t[data-mall-template="personal5"] .ml-brand img { max-height: 44px; }
.ml-t[data-mall-template="personal5"] .ml-hmenu { gap: 26px; }
.ml-t[data-mall-template="personal5"] .ml-hmenu a { font-size: 14px; font-weight: 500; border-bottom-width: 1px; }
.ml-t[data-mall-template="personal5"] .ml-tools .lp-ic { width: 21px; height: 21px; }
.ml-t[data-mall-template="personal5"] .ml-panel .ml-search { border-color: var(--t-ink); }
.ml-t[data-mall-template="personal5"] .ml-panel .ml-search button { background: var(--t-ink); color: #fff; }

/* ── 구역 리듬 · 구역 제목(작은 글 + 가는 선) ───────────────────────────── */
.ml-t[data-mall-template="personal5"] .tb { margin-top: 112px; }
.ml-t[data-mall-template="personal5"] .tb-h { align-items: baseline; margin-bottom: 40px; padding-bottom: 14px; border-bottom: 1px solid var(--t-line); }
.ml-t[data-mall-template="personal5"] .tb-h h2 { font-size: 14px; font-weight: 700; letter-spacing: .12em; }
.ml-t[data-mall-template="personal5"] .tb-h .more { font-size: 13px; color: var(--t-sub); border-bottom: 1px solid transparent; }
.ml-t[data-mall-template="personal5"] .tb-h .more:hover { color: var(--t-ink); border-bottom-color: currentColor; }

/* ── 첫 구역: 들인 액자 배너 + 걸친 아주 큰 이름 ───────────────────────── */
.ml-t[data-mall-template="personal5"] .tb.tb-frame { margin-top: 8px; }
.ml-t[data-mall-template="personal5"] .fr-pic { height: clamp(380px, 37vw, 560px); border-radius: var(--t-rl); background: var(--t-soft); }
.ml-t[data-mall-template="personal5"] .fr-pic.auto { background: var(--t-soft); }
.ml-t[data-mall-template="personal5"] .fr-pic.auto .pp img { padding: 7% 18%; }
.ml-t[data-mall-template="personal5"] .fr-pic .hs-ctl { right: 22px; bottom: 22px; background: rgba(21, 32, 31, .42); }
.ml-t[data-mall-template="personal5"] .fr-copy { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); align-items: start; gap: 48px; }
.ml-t[data-mall-template="personal5"] .fr-copy h1 { position: relative; margin-top: -.6em; padding: .17em .3em 0 0; font-size: clamp(48px, 7vw, 108px); font-weight: 900; line-height: 1; letter-spacing: -.05em; color: var(--t-ink); }
.ml-t[data-mall-template="personal5"] .fr-copy h1::after { content: ""; position: absolute; left: 100%; top: calc(.6em - var(--t-rl)); width: var(--t-rl); height: var(--t-rl); pointer-events: none;
  background: radial-gradient(circle at 100% 0, transparent calc(var(--t-rl) - .5px), var(--t-bg) var(--t-rl)); }
.ml-t[data-mall-template="personal5"] .fr-copy .r { gap: 20px; padding: 28px 0 6px; }
.ml-t[data-mall-template="personal5"] .fr-copy p { font-size: 15px; line-height: 1.7; color: var(--t-sub); }
.ml-t[data-mall-template="personal5"] .fr-copy .ml-btn { height: 48px; padding: 0 28px; font-size: 15px; }

/* ── 큰 상품 소개 줄(큰 사진 + 작품 설명처럼 · 좌우 번갈아) ─────────────────── */
.ml-t[data-mall-template="personal5"] .tb-show .sh-row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 72px; }
.ml-t[data-mall-template="personal5"] .tb-show .sh-row:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.ml-t[data-mall-template="personal5"] .tb-show .sh-row + .sh-row { margin-top: 88px; }
.ml-t[data-mall-template="personal5"] .tb-show .sh-ph { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--t-card); border-radius: 24px; }
.ml-t[data-mall-template="personal5"] .tb-show .sh-ph img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ml-t[data-mall-template="personal5"] .tb-show .sh-row:hover .sh-ph img { transform: scale(1.03); }
.ml-t[data-mall-template="personal5"] .tb-show .tx { gap: 14px; padding: 30px 0 8px; border-top: 1px solid var(--t-ink); }
.ml-t[data-mall-template="personal5"] .tb-show .name { font-size: 32px; font-weight: 700; line-height: 1.28; letter-spacing: -.04em; overflow-wrap: anywhere; }
.ml-t[data-mall-template="personal5"] .tb-show .price { font-size: 20px; font-weight: 800; color: var(--ml); letter-spacing: -.02em; }
.ml-t[data-mall-template="personal5"] .tb-show .price small { color: var(--t-sub); }
.ml-t[data-mall-template="personal5"] .tb-show .sh-row:hover .name { color: var(--t-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* ── 상품 칸 — 흰 둥근 판 안에 사진(위만 둥글게) + 글 ─────────────────────── */
.ml-t[data-mall-template="personal5"] .ml-card { overflow: hidden; background: var(--t-card); border-radius: var(--t-r); }
.ml-t[data-mall-template="personal5"] .ml-card .thumb { border-radius: 0; background: var(--t-card); }
.ml-t[data-mall-template="personal5"] .ml-card .thumb img { transition: transform .45s ease; }
.ml-t[data-mall-template="personal5"] .ml-card:hover .thumb img { transform: scale(1.04); }
.ml-t[data-mall-template="personal5"] .ml-card .body { gap: 6px; padding: 16px 18px 20px; }
.ml-t[data-mall-template="personal5"] .ml-card .name { min-height: 0; font-size: 15px; font-weight: 600; color: var(--t-ink); }
.ml-t[data-mall-template="personal5"] .ml-card:hover .name { text-decoration: none; color: var(--ml); }
.ml-t[data-mall-template="personal5"] .ml-card .price { margin-top: auto; padding-top: 6px; font-size: 16px; font-weight: 800; }
.ml-t[data-mall-template="personal5"] .ml-card .ml-sold { left: 12px; top: 12px; padding: 0 10px; border-radius: 999px; background: var(--t-ink); }
.ml-t[data-mall-template="personal5"] .tb-row .tb-items, .ml-t[data-mall-template="personal5"] .ml-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }

/* ── 주문 안내 띠(대표색 둥근 면) ──────────────────────────────────────── */
.ml-t[data-mall-template="personal5"] .tb-oband .obx { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 44px 52px; background: var(--ml); color: var(--ml-ink);
  border-radius: var(--t-rl); }
.ml-t[data-mall-template="personal5"] .tb-oband b { font-size: 22px; font-weight: 800; line-height: 1.4; letter-spacing: -.03em; color: var(--ml-ink); word-break: keep-all; }
.ml-t[data-mall-template="personal5"] .tb-oband .ml-btn { flex: none; height: 50px; padding: 0 28px; background: #fff; border-color: #fff; color: var(--t-ink); font-size: 15px; font-weight: 800; }
.ml-t[data-mall-template="personal5"] .tb-oband .ml-btn:hover { opacity: .9; }

/* ── 전체 상품 목록 · 쪽 번호 ─────────────────────────────────────────── */
.ml-t[data-mall-template="personal5"] .tb-list .ml-sec { margin-top: 56px; padding-bottom: 16px; border-bottom: 1px solid var(--t-ink); align-items: center; }
.ml-t[data-mall-template="personal5"] .tb-list .ml-sec h2 { font-size: 26px; font-weight: 900; letter-spacing: -.045em; }
.ml-t[data-mall-template="personal5"] .tb-list .ml-sec h2 small { color: var(--t-sub); font-weight: 600; }
.ml-t[data-mall-template="personal5"] .tb-list .ml-sorts { border-bottom: 0; gap: 4px; }
.ml-t[data-mall-template="personal5"] .tb-list .ml-sorts a { margin: 0; padding: 7px 14px; border: 0; border-radius: 999px; color: var(--t-sub); }
.ml-t[data-mall-template="personal5"] .tb-list .ml-sorts a.on { background: var(--t-ink); color: #fff; }
.ml-t[data-mall-template="personal5"] .tb-list .ml-grid { margin-top: 32px; }
.ml-t[data-mall-template="personal5"] .ml-subcats a.on { border-bottom-color: var(--t-ink); }
.ml-t[data-mall-template="personal5"] .ml-pager { margin-top: 48px; gap: 6px; }
.ml-t[data-mall-template="personal5"] .ml-pager a, .ml-t[data-mall-template="personal5"] .ml-pager span { min-width: 40px; height: 40px; border-radius: 999px; }
.ml-t[data-mall-template="personal5"] .ml-pager .on { background: var(--t-ink); border-color: var(--t-ink); color: #fff; }

/* ── 안쪽 화면(상세·장바구니·주문서·안내) ───────────────────────────────── */
.ml-t[data-mall-template="personal5"] .ml-gal .main { background: var(--t-card); }
.ml-t[data-mall-template="personal5"] .ml-gal .more label { border-radius: 10px; }
.ml-t[data-mall-template="personal5"] .ml-ptabs { top: 0; }
.ml-t[data-mall-template="personal5"] .ml-ptabs a:hover { border-bottom-color: var(--t-ink); }
.ml-t[data-mall-template="personal5"] .ml-pricebox .price { color: var(--t-ink); }
.ml-t[data-mall-template="personal5"] .ml-box { padding: 22px 24px; }
.ml-t[data-mall-template="personal5"] .ml-box.flush { padding: 0; }
.ml-t[data-mall-template="personal5"] .ml-pagehead { border-bottom-width: 1px; }
.ml-t[data-mall-template="personal5"] .ml-pagehead h2 { font-size: 26px; font-weight: 900; letter-spacing: -.045em; }

/* ── 바닥(가운데 정렬) — 바탕보다 조금 짙은 면 ─────────────────────────── */
.ml-t[data-mall-template="personal5"] .ml-foot { margin-top: 112px; padding: 52px 0 56px; background: var(--t-soft); color: var(--t-sub); }
.ml-t[data-mall-template="personal5"] .ml-foot .ml-brand.sm b { font-size: 20px; font-weight: 900; letter-spacing: -.04em; }
.ml-t[data-mall-template="personal5"] .ml-foot .top { border-bottom-color: #CFD8D5; }
.ml-t[data-mall-template="personal5"] .ml-foot .biz b, .ml-t[data-mall-template="personal5"] .ml-foot .csbox b { color: var(--t-ink); }
.ml-t[data-mall-template="personal5"] .ml-foot .links { color: var(--t-ink); }

/* ── 넓이별 ───────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .ml-t[data-mall-template="personal5"] .ml-brand b { max-width: 280px; }
  .ml-t[data-mall-template="personal5"] .tb-show .sh-row { gap: 48px; }
  .ml-t[data-mall-template="personal5"] .tb-show .name { font-size: 28px; }
}
@media (max-width: 960px) {
  .ml-t[data-mall-template="personal5"] .tb { margin-top: 88px; }
  .ml-t[data-mall-template="personal5"] .ml-brand b { max-width: 230px; }
  .ml-t[data-mall-template="personal5"] .ml-hmenu { gap: 18px; }
  .ml-t[data-mall-template="personal5"] .fr-copy { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ml-t[data-mall-template="personal5"] .fr-copy h1 { max-width: 86%; }
  .ml-t[data-mall-template="personal5"] .fr-pic .hs-ctl { top: 16px; right: 16px; bottom: auto; }   /* 걸친 이름이 사진 아래쪽을 넓게 덮어도 넘김 단추와 겹치지 않게 */
  .ml-t[data-mall-template="personal5"] .fr-copy .r { padding-top: 22px; }
  .ml-t[data-mall-template="personal5"] .tb-show .sh-row, .ml-t[data-mall-template="personal5"] .tb-show .sh-row:nth-of-type(even) { gap: 32px; }
  .ml-t[data-mall-template="personal5"] .tb-show .name { font-size: 24px; }
  .ml-t[data-mall-template="personal5"] .tb-row .tb-items, .ml-t[data-mall-template="personal5"] .ml-grid.c3 { gap: 24px 16px; }
  .ml-t[data-mall-template="personal5"] .tb-oband .obx { padding: 36px 36px; }
}
@media (max-width: 640px) {
  .ml-t[data-mall-template="personal5"] .ml-strip .ml-wrap { height: 30px; }
  .ml-t[data-mall-template="personal5"] .th-center .ml-wrap { height: auto; }
  .ml-t[data-mall-template="personal5"] .ml-brand b { max-width: 200px; font-size: 20px; }
  .ml-t[data-mall-template="personal5"] .ml-hmenu { gap: 22px; padding: 4px 0 12px; }
  .ml-t[data-mall-template="personal5"] .tb { margin-top: 64px; }
  .ml-t[data-mall-template="personal5"] .tb-h { margin-bottom: 24px; padding-bottom: 12px; }
  .ml-t[data-mall-template="personal5"] .tb-h h2 { font-size: 13px; }
  .ml-t[data-mall-template="personal5"] .tb.tb-frame { margin-top: 4px; }
  .ml-t[data-mall-template="personal5"] .fr-pic { height: 72vw; max-height: 420px; border-radius: 22px; }
  .ml-t[data-mall-template="personal5"] .fr-pic .hs-ctl { right: 12px; bottom: auto; top: 12px; font-size: 12px; }
  .ml-t[data-mall-template="personal5"] .fr-pic .hs-ctl button { width: 26px; height: 26px; font-size: 17px; }
  .ml-t[data-mall-template="personal5"] .fr-copy h1 { --t-rl: 22px; font-size: clamp(36px, 11.5vw, 46px); max-width: 90%; border-top-right-radius: 22px; }
  .ml-t[data-mall-template="personal5"] .fr-copy .r { gap: 16px; padding-top: 16px; }
  .ml-t[data-mall-template="personal5"] .fr-copy p { font-size: 14px; }
  .ml-t[data-mall-template="personal5"] .fr-copy .ml-btn { height: 46px; padding: 0 24px; font-size: 14px; }
  .ml-t[data-mall-template="personal5"] .tb-show .sh-row, .ml-t[data-mall-template="personal5"] .tb-show .sh-row:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .ml-t[data-mall-template="personal5"] .tb-show .sh-row + .sh-row { margin-top: 48px; }
  .ml-t[data-mall-template="personal5"] .tb-show .sh-ph { border-radius: 20px; }
  .ml-t[data-mall-template="personal5"] .tb-show .tx { gap: 8px; padding-top: 16px; }
  .ml-t[data-mall-template="personal5"] .tb-show .name { font-size: 22px; }
  .ml-t[data-mall-template="personal5"] .tb-show .price { font-size: 18px; }
  /* 인기 상품 3개 = 첫 칸 가로 전체 + 두 칸(빈칸 없이) · 전체 상품 2열 */
  .ml-t[data-mall-template="personal5"] .tb-row .tb-items { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; overflow: visible; }
  .ml-t[data-mall-template="personal5"] .tb-row .tb-items.n3 > :first-child, .ml-t[data-mall-template="personal5"] .tb-row .tb-items.n1 > :first-child { grid-column: 1 / -1; }
  .ml-t[data-mall-template="personal5"] .tb-row .tb-items.n3 > :first-child .thumb { aspect-ratio: 4 / 3; }
  .ml-t[data-mall-template="personal5"] .ml-grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .ml-t[data-mall-template="personal5"] .ml-card .body { padding: 12px 12px 16px; gap: 4px; }
  .ml-t[data-mall-template="personal5"] .ml-card .name { font-size: 14px; }
  .ml-t[data-mall-template="personal5"] .ml-card .price { font-size: 15px; }
  .ml-t[data-mall-template="personal5"] .tb-oband .obx { flex-direction: column; align-items: flex-start; gap: 18px; padding: 30px 26px; border-radius: 22px; }
  .ml-t[data-mall-template="personal5"] .tb-oband b { font-size: 18px; }
  .ml-t[data-mall-template="personal5"] .tb-oband .ml-btn { height: 46px; padding: 0 24px; font-size: 14px; }
  .ml-t[data-mall-template="personal5"] .tb-list .ml-sec { margin-top: 36px; }
  .ml-t[data-mall-template="personal5"] .tb-list .ml-sec h2 { font-size: 21px; }
  .ml-t[data-mall-template="personal5"] .tb-list .ml-sorts a { padding: 6px 11px; }
  .ml-t[data-mall-template="personal5"] .ml-pagehead h2 { font-size: 21px; }
  /* 바닥 면이 아래 고정 탭 뒤까지 이어지게(탭 자리만큼 바닥 안쪽 여백을 더 준다) */
  .ml-t[data-mall-template="personal5"] .ml-foot { margin-top: 72px; margin-bottom: calc(-58px - env(safe-area-inset-bottom)); padding: 36px 0 calc(98px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .ml-t[data-mall-template="personal5"] .tb-show .sh-ph img, .ml-t[data-mall-template="personal5"] .ml-card .thumb img { transition: none; }
  .ml-t[data-mall-template="personal5"] .tb-show .sh-row:hover .sh-ph img, .ml-t[data-mall-template="personal5"] .ml-card:hover .thumb img { transform: none; }
}
