/**
 * drsoft-store 테마 - 제품 목록 화면 (추천 박스 · 정렬 탭 · 필터 · 장바구니/주문 패널 · 안내 영역)
 * lib/listing.php 의 마크업과 짝이다. 기존 tp-link.css / synology.css 는 견적·주문 폼(tpl-* / syn-*)을 위해 그대로 로드된다.
 */

.ml-main { background: #fff; }
.ml-list { padding-top: 6px; padding-bottom: 8px; }
.ml-list .ml-crumb { margin: 16px 0 14px; }

/* ── 추천 프로모션 박스 ── */
.ml-hero { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); column-gap: 24px; margin: 0 0 30px; padding: 46px 56px 24px; background: #f5f5f5; box-sizing: border-box; min-height: 420px; }
.ml-hero__copy { align-self: center; min-width: 0; }
.ml-hero__tag { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; }
.ml-hero__ver { font-size: 14px; color: #333; }
.ml-hero__lead { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: #444; max-width: 420px; }
.ml-hero__title { margin: 0 0 26px; font-size: 36px; line-height: 1.2; font-weight: 800; letter-spacing: -0.04em; color: #111; }
.ml-hero__title em { font-style: normal; color: var(--ml-red); }
.ml-hero__stats { display: flex; flex-wrap: wrap; gap: 10px; }
.ml-hero__stats span { min-width: 74px; padding: 9px 16px 8px; background: #fff; border-radius: 10px; border: 1px solid #ececec; font-size: 12px; color: #6b6b6b; text-align: center; box-sizing: border-box; }
.ml-hero__stats b { display: block; margin-bottom: 1px; font-size: 22px; line-height: 1.2; font-weight: 700; color: #111; letter-spacing: -0.02em; }
.ml-hero__stage { position: relative; min-width: 0; align-self: center; }
.ml-hero__slide { display: none; grid-template-columns: 290px minmax(0, 1fr); align-items: center; gap: 44px; }
.ml-hero__slide.is-on { display: grid; }
.ml-hero__circle { display: grid; place-items: center; width: 280px; height: 280px; border-radius: 50%; background: #fff; overflow: hidden; }
.ml-hero__circle img { width: 78%; height: 78%; object-fit: contain; }
.ml-hero__info { min-width: 0; }
.ml-hero__cat { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--ml-blue-d); }
.ml-hero__name { margin: 0 0 8px; font-size: 22px; line-height: 1.3; font-weight: 700; letter-spacing: -0.03em; }
.ml-hero__name a { color: #111; text-decoration: none; }
.ml-hero__spec { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: #666; }
.ml-hero__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 4px; margin: 0 0 18px; color: var(--ml-red); }
.ml-hero__price strong { font-size: 44px; line-height: 1.1; font-weight: 800; letter-spacing: -0.04em; }
.ml-hero__price span { font-size: 20px; font-weight: 700; }
.ml-hero__price small { margin-left: 8px; font-size: 12px; font-weight: 400; color: #6b6b6b; }
.ml-hero__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ml-hero__btns .ml-btn { min-width: 128px; }
.ml-hero__thumbs { grid-column: 1 / -1; display: flex; justify-content: center; gap: 14px; margin-top: 18px; }
.ml-hero__thumb { display: grid; place-items: center; width: 58px; height: 58px; padding: 0; border: 2px solid transparent; border-radius: 50%; background: #fff; cursor: pointer; overflow: hidden; }
.ml-hero__thumb img { width: 70%; height: 70%; object-fit: contain; }
.ml-hero__thumb.is-on { border-color: var(--ml-red); }
.ml-hero__thumb:focus-visible { outline: 2px solid var(--ml-blue); outline-offset: 2px; }

/* ── 필터링된 화면의 제목 ── */
.ml-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 6px; }
.ml-head__title { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.04em; color: #111; }
.ml-head__count { margin: 0; font-size: 14px; color: #6b6b6b; }
.ml-head__count strong { color: var(--ml-red); }

/* ── 정렬 탭 + 카테고리 선택 ── */
.ml-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 0 16px; border-bottom: 1px solid var(--ml-line); margin-bottom: 22px; }
.ml-bar__right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ml-catform { margin: 0; }
.ml-fdrop { position: relative; }
.ml-fdrop summary { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid #d6d6d6; border-radius: 3px; background: #fff; font-size: 14px; color: #333; cursor: pointer; list-style: none; }
.ml-fdrop summary::-webkit-details-marker { display: none; }
.ml-fdrop[open] summary { border-color: #222; }
.ml-fdrop__panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px; background: #fff; border: 1px solid var(--ml-line); border-radius: 10px; box-shadow: 0 12px 28px rgba(0, 0, 0, .12); white-space: nowrap; }
.ml-fdrop__panel input[type="number"] { width: 110px; height: 36px; padding: 0 10px; border: 1px solid #d6d6d6; border-radius: 3px; font: 400 14px var(--ml-font); }
.ml-fdrop__panel i { font-style: normal; color: #6b6b6b; }
.ml-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 22px; }
.ml-chip { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 14px; border: 1px solid #dcdcdc; border-radius: 17px; background: #fff; color: #333; font-size: 13px; text-decoration: none; }
.ml-chip small { color: #6b6b6b; font-size: 12px; }
.ml-chip:hover { border-color: #222; }
.ml-chip.is-on { background: #222; border-color: #222; color: #fff; }
.ml-chip.is-on small { color: #cfcfcf; }
.ml-chip--reset { border-style: dashed; color: var(--ml-red); border-color: #f1b3ae; }
.ml-grid > li { display: flex; min-width: 0; }
.ml-grid > li > .ml-card { flex: 1 1 auto; }
.ml-note { margin: 14px 0 0; font-size: 12px; line-height: 1.6; color: #8a8a8a; }
.ml-empty { padding: 70px 0; text-align: center; color: #666; }
.ml-empty .ml-btn { margin: 4px; }

/* ── 아래 안내·견적·FAQ 영역: 쇼핑몰 본문 폭과 글꼴에 맞춘다 ── */
.ml-main .section, .ml-main .tps-shop { font-family: var(--ml-font); }
.ml-main .section { padding: 56px 0; }
.ml-main .section-alt { background: #f7f8fa; }
.ml-main .section-header h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.ml-main .container { max-width: var(--ml-wrap); padding-left: 24px; padding-right: 24px; }
#quote { scroll-margin-top: 16px; }
#quote .contact-form-wrapper { border-radius: 12px; border: 1px solid var(--ml-line); box-shadow: none; }
#quote .btn-primary, .tps-bar .btn-primary { background: var(--ml-ink); border-color: var(--ml-ink); }
#quote .btn-primary:hover, .tps-bar .btn-primary:hover { background: #000; border-color: #000; }

@media (max-width: 1100px) {
    .ml-hero { grid-template-columns: 1fr; padding: 32px 28px 22px; }
    .ml-hero__copy { margin-bottom: 18px; }
    .ml-hero__slide { grid-template-columns: 220px minmax(0, 1fr); gap: 28px; }
    .ml-hero__circle { width: 210px; height: 210px; }
}
@media (max-width: 640px) {
    .ml-hero { padding: 24px 16px 18px; min-height: 0; margin-bottom: 20px; }
    .ml-hero__title { font-size: 26px; margin-bottom: 18px; }
    .ml-hero__tag { margin-bottom: 14px; }
    .ml-hero__slide { grid-template-columns: 1fr; justify-items: center; gap: 14px; text-align: center; }
    .ml-hero__circle { width: 180px; height: 180px; }
    .ml-hero__price { justify-content: center; }
    .ml-hero__price strong { font-size: 34px; }
    .ml-hero__btns { justify-content: center; }
    .ml-hero__thumb { width: 46px; height: 46px; }
    .ml-hero__thumbs { gap: 8px; }
    .ml-head__title { font-size: 22px; }
    .ml-bar { gap: 10px; }
    .ml-bar__right { width: 100%; }
    .ml-bar__right .ml-select { min-width: 0; width: 100%; }
    .ml-catform { flex: 1 1 100%; }
    .ml-fdrop__panel { right: auto; left: 0; flex-wrap: wrap; white-space: normal; max-width: calc(100vw - 28px); box-sizing: border-box; }
    .ml-fdrop__panel input[type="number"] { width: 96px; }
}

/* ── 장바구니 · 주문서 패널(#quote) ── */
#quote.section-alt { background: #fff; border-top: 8px solid #f4f5f7; padding: 48px 0 64px; }
#quote .row.justify-content-center { justify-content: center; }
#quote .col-lg-8 { flex: 0 0 100%; max-width: 940px; width: 100%; }
#quote .contact-form-wrapper { padding: 36px 40px; border: 1px solid var(--ml-line); border-radius: 12px; background: #fff; }
#quote h2.h3 { text-align: left !important; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
#quote h2.h3 + p { text-align: left !important; color: #666; font-size: 14px; }
.tpl-kind { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; border: 0; padding: 0; margin: 0 0 18px; }
.tpl-kind-opt { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 16px; border: 1px solid #d6d6d6; border-radius: 8px; background: #fff; cursor: pointer; box-sizing: border-box; }
.tpl-kind-opt:has(input:checked) { border: 2px solid #222; padding: 15px; background: #fff; }
.tpl-kind-opt input { accent-color: #222; margin-top: 4px; }
.tpl-kind-opt strong { font-size: 15px; }
.tpl-kind-opt small { display: block; margin-top: 4px; color: #6b6b6b; font-size: 12px; line-height: 1.5; }
#quote .form-control, #quote .form-select { height: 46px; border-radius: 4px; border: 1px solid #d6d6d6; font-family: var(--ml-font); }
#quote textarea.form-control { height: auto; }
#quote .form-control:focus, #quote .form-select:focus { border-color: #222; box-shadow: none; }
#quote .form-label { font-weight: 700; font-size: 14px; }
#tpl-submit, #syn-submit { height: 56px; border-radius: 4px; background: #222; border-color: #222; font-size: 17px; font-weight: 700; }
#tpl-submit:hover, #syn-submit:hover { background: #000; border-color: #000; }
.tpl-cart-table th, .syn-cart-table th { border-bottom: 2px solid #222; font-weight: 700; }
.tpl-cart-sum strong, .syn-cart-sum strong { color: var(--ml-red); font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
@media (max-width: 760px) {
    #quote .contact-form-wrapper { padding: 22px 16px; }
    .tpl-kind { grid-template-columns: 1fr; }
}

/* VIGI 카테고리 위의 도구 안내(저장 용량 계산기 바로가기) */
.ml-toolnote { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; margin: 10px 0 4px; padding: 14px 18px; border: 1px solid #cfe2f6; border-left: 4px solid var(--ml-blue-d); border-radius: 8px; background: #f3f8fe; text-decoration: none; }
.ml-toolnote b { font-size: 15px; font-weight: 700; color: var(--ml-blue-d); }
.ml-toolnote span { font-size: 14px; color: #444; }
.ml-toolnote:hover { background: #e8f1fc; }
.ml-toolnote:hover b { text-decoration: underline; }
.ml-toolnote:focus-visible { outline: 2px solid var(--ml-blue); outline-offset: 2px; }
