/* 핫딜(2026-10-09): 기존 공구 카드(.card·.visual·.cardbody) 위에 핫딜 전용 부분만 */
.hd-visual{cursor:default}.hd-visual img{object-fit:contain;background:#fff}
/* 사진 없는 딜 카드(2026-10-09): 카테고리 색 + 큰 그림 글자 + 상품명(위)·가격·판매처(오른쪽 아래). 왼쪽 위(인기·종료)·왼쪽 아래(N분 전) 표시 자리는 비워 둔다.
   칸이 작으면(휴대폰 — 여백 뺀 안쪽 높이 100px 이하) 상품명 2줄·판매처 숨김. */
.hd-noimg{position:absolute;inset:0;container-type:size;padding:40px 11px 9px 12px;display:flex;flex-direction:column;justify-content:space-between;gap:4px;overflow:hidden;background:linear-gradient(145deg,var(--hd-a,#f4f5f7),var(--hd-b,#e4e7eb));color:var(--hd-ink,#46505c)}.hd-noimg[hidden]{display:none}
.hd-ni-cat{position:absolute;top:11px;right:11px;display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:700;background:#ffffffc7;border-radius:999px;padding:4px 9px 4px 7px;max-width:62%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hd-ni-title{position:relative;font-size:clamp(13px,8.2cqw,21px);font-weight:800;line-height:1.3;letter-spacing:-.3px;word-break:keep-all;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.hd-ni-end{position:relative;align-self:flex-end;display:flex;flex-direction:column;align-items:flex-end;text-align:right;max-width:72%}
.hd-ni-price{font-size:clamp(15px,10cqw,27px);font-weight:800;letter-spacing:-.5px;line-height:1.15}.hd-ni-price.is-ask{font-size:clamp(11px,6.2cqw,15px);font-weight:700}
.hd-ni-shop{font-size:clamp(10px,5cqw,13px);font-weight:600;opacity:.72;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.hd-ni-mark{position:absolute;left:-6%;bottom:-12%;font-size:44cqw;line-height:1;opacity:.14;transform:rotate(-12deg);pointer-events:none;user-select:none}
@container (max-height:100px){.hd-ni-title{-webkit-line-clamp:2}.hd-ni-shop{display:none}}
.hd-tone-food{--hd-a:#fff4e8;--hd-b:#ffdfc4;--hd-ink:#93400f}.hd-tone-fashion{--hd-a:#eef2ff;--hd-b:#d9e1ff;--hd-ink:#33418c}.hd-tone-beauty{--hd-a:#fff0f5;--hd-b:#ffd6e5;--hd-ink:#962a53}
.hd-tone-living{--hd-a:#ecf8f2;--hd-b:#d0eee0;--hd-ink:#1d684f}.hd-tone-kitchen{--hd-a:#fff8e2;--hd-b:#ffe9ad;--hd-ink:#795709}.hd-tone-digital{--hd-a:#ebf4ff;--hd-b:#cfe4ff;--hd-ink:#1c538b}
.hd-tone-kids{--hd-a:#fff5ec;--hd-b:#ffdfc4;--hd-ink:#8d4f1b}.hd-tone-health{--hd-a:#eefaf0;--hd-b:#d2f0d8;--hd-ink:#296b35}.hd-tone-pet{--hd-a:#f5f0ff;--hd-b:#e2d6fd;--hd-ink:#523892}
.hd-tone-travel{--hd-a:#e9f9fb;--hd-b:#c9eef3;--hd-ink:#136672}.hd-tone-interior{--hd-a:#f8f4ee;--hd-b:#e8dccb;--hd-ink:#624e2d}
.hd-hot{position:absolute;top:11px;left:11px;background:var(--accent);color:#fff;font-size:12px;font-weight:700;border-radius:6px;padding:4px 10px}
.hd-ended{position:absolute;top:11px;left:11px;background:#252a30;color:#fff;font-size:12px;font-weight:700;border-radius:6px;padding:4px 10px}
.hd-card.is-ended .visual{filter:grayscale(.85);opacity:.75}.hd-card.is-ended .hd-title{color:#7c8288}
.hd-title{font-size:16px;font-weight:600;line-height:1.5;min-height:48px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:keep-all;margin:0}
.hd-opt{font-size:13px;color:#7c8288;margin:6px 0 0}.hd-price{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin:8px 0 6px}.hd-price small{font-size:12px;font-weight:600;color:#1e778d}.hd-ask{font-size:13px;font-weight:600;color:#7c8288}
.hd-cond{font-size:12px;color:#94483b;background:#faf3f0;border-radius:8px;padding:6px 9px;margin:0 0 8px;line-height:1.45}
.hd-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #eff0f2;padding-top:10px}.hd-merchant{font-size:12px;color:#7c8288;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hd-merchant b{color:#424950}
.hd-buy{padding:8px 12px;font-size:13px;white-space:nowrap;display:inline-block;text-decoration:none}.hd-buy[disabled]{opacity:.6;cursor:default}
.hd-filters{flex-wrap:wrap}.hd-filters small{font-size:11px;opacity:.7;margin-left:2px}
/* 타임할인(2026-10-14): 핫딜 맨 위 구역. 색은 지금 색 규칙 그대로 — 흰 바탕·먹색(--ink)·코랄 하나(#cf3e2c, 글자·단추 바탕으로 읽기 쉬운 쪽). 새 색 없음. 클래스는 모두 hd-td- 로 묶는다.
   PC: 한 줄 최대 4장 격자(900px 이하 3장), 1~2장이면 왼쪽부터 채우고 카드는 최대 폭 360px. 휴대폰(640px 이하): 1장이면 한 줄 가득, 2장 이상이면 가로로 미는 줄(카드 폭 78%, 하나씩 멈춤) —
   미는 줄은 구역 안에서만 가로로 움직이고(overflow-x) 화면 전체는 밀리지 않는다(min-width:0·max-width:100%). 숫자는 고정폭이라 줄어들 때 흔들리지 않는다. 꾸밈 움직임은 없고, 단추 색 바뀜만 '움직임 줄이기'가 아닐 때에만. */
.hd-td{margin:18px 0 26px;min-width:0;max-width:100%}
.hd-td-head h2{margin:0;font-size:22px;font-weight:800;letter-spacing:-.4px;line-height:1.3}.hd-td-head p{margin:2px 0 12px;font-size:13px;color:var(--muted)}
.hd-td-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;min-width:0;max-width:100%}
.hd-td-card{display:flex;flex-direction:column;min-width:0;max-width:360px;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.hd-td-pic{position:relative;aspect-ratio:4/3;background:var(--soft);overflow:hidden}.hd-td-pic img{width:100%;height:100%;object-fit:contain;background:#fff;display:block}
.hd-td-off{position:absolute;top:10px;left:10px;z-index:1;background:#cf3e2c;color:#fff;font-size:13px;font-weight:800;border-radius:6px;padding:3px 9px;line-height:1.4}
.hd-td-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.hd-td-body{display:flex;flex-direction:column;gap:4px;padding:12px 12px 14px;flex:1;min-width:0}
.hd-td-brand{margin:0;font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hd-td-title{margin:0;font-size:15px;font-weight:700;line-height:1.45;word-break:keep-all;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.9em}
.hd-td-prices{margin:2px 0 0;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.hd-td-deal{font-size:22px;font-weight:800;letter-spacing:-.5px;color:#cf3e2c;line-height:1.2}.hd-td-was{font-size:13px;color:var(--muted)}
.hd-td-clock{margin:4px 0 8px;display:flex;flex-direction:column;gap:2px;font-size:13px}.hd-td-lbl{color:var(--muted);margin-right:4px}
.hd-td-left{display:inline-block;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,'Noto Sans KR',monospace;font-variant-numeric:tabular-nums;font-weight:800;font-size:15px;color:var(--ink);letter-spacing:.2px}
.hd-td-until{color:var(--muted);font-size:12px}
.hd-td-buy{display:block;margin-top:auto;text-align:center;background:#cf3e2c;color:#fff;border-radius:10px;padding:10px 12px;font-size:14px;font-weight:700;text-decoration:none}
@media(prefers-reduced-motion:no-preference){.hd-td-buy{transition:filter .15s}.hd-td-buy:hover{filter:brightness(.92)}}
@media(prefers-reduced-motion:reduce){.hd-td-row{scroll-behavior:auto}}
@media(max-width:900px){.hd-td-row{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.hd-td{margin:12px 0 22px}.hd-td-row{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;padding-bottom:6px}
 .hd-td-card{flex:0 0 78%;max-width:none;scroll-snap-align:start}.hd-td-row.is-one .hd-td-card{flex-basis:100%}}
