/**
 * pages/products.css — 상품 페이지 (/products/*) 전용
 * ------------------------------------------------------------------
 * 페이지에서 $pageCSS = ['products']; 선언 시 layoutHeader 가 자동 로드.
 *
 * 사용 페이지:
 *   - products/list.php (.dtc-products-contents + .dtc-soldout + .soldout-overlay)
 *   - products/hanmac-*.php (.dtc-products-detail)
 *
 * 이전: pc.css 449-557 → 통합 (2026-06-09)
 */

/* ── dtc-products (products/list.php) ── */
.dtc-products-contents,
.dtc-main-list .dtc-main-list-cont a { color: #fff; }
.dtc-products-contents .dtc-main-kv { width: 100%; }
.dtc-products-contents .dtc-main-list-wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 90px 60px; }
.dtc-products-contents .dtc-main-list-wrap .dtc-main-list-title h1 { font-size: 34px; font-weight: 700; line-height: 120%; letter-spacing: -0.68px !important; }
.dtc-products-contents .dtc-main-list-wrap .dtc-main-list-title p { margin-top: 8px; color: rgba(255, 255, 255, 0.8); font-size: 16px; line-height: 150%; letter-spacing: -0.176px; }
.dtc-products-contents .dtc-main-list-wrap .dtc-main-list-title span { font-weight: 200; }
.dtc-products-contents .dtc-ml-new,
.dtc-products-contents .dtc-ml-best,
.dtc-products-contents .dtc-ml-hot { width: 41px; padding: 2px 6px; border-radius: 4px; font-size: 12px; font-weight: 600; letter-spacing: -0.24px; text-align: center; }
.dtc-products-contents .dtc-ml-new { background-color: #84754e; }
.dtc-products-contents .dtc-ml-best { background-color: #d0a255; }
.dtc-products-contents .dtc-ml-hot { background-color: #e4543c; }
.dtc-products-contents .dtc-main-list { display: flex; flex-wrap: nowrap; gap: 20px; padding: 60px 0; }
.dtc-products-contents .dtc-main-list-cont { width: 20%; max-width: 220px; }
.dtc-products-contents .dtc-main-list-cont:hover img { transform: scale(1.05); }
.dtc-products-contents .dtc-main-list-cont img { border-radius: 10px; transition: transform 0.3s ease; }
.dtc-products-contents .dtc-main-list-cont h2 { padding: 10px 0; font-size: 16px; font-weight: 500; line-height: 140%; letter-spacing: -0.32px; word-break: keep-all; }
.dtc-products-contents .img-wrap { position: relative; display: inline-block; border-radius: 10px; overflow: hidden; }

/* ── dtc-products-detail (products/hanmac-*) ── */
.dtc-products-detail a { color: #fff; }
.dtc-products-detail .dtc-detail-wrap { width: fit-content; margin: 50px auto 90px; padding: 90px 60px 0; color: #fff; }
.dtc-products-detail .dtc-detail-wrap .dtc-dw-txt h2 { font-size: 34px; font-weight: 700; line-height: 120%; letter-spacing: -0.68px !important; }
.dtc-products-detail .dtc-detail-wrap .dtc-dw-txt p { margin-top: 8px; color: rgba(255, 255, 255, 0.8); font-size: 16px; letter-spacing: -0.176px; }
.dtc-products-detail .dtc-detail-wrap .dtc-dw-txt span { font-weight: 200; }
.dtc-products-detail .dtc-detail-wrap .dtc-dwcr-txt p { color: rgba(255, 255, 255, 0.8) !important; font-size: 16px; letter-spacing: -0.176px; }
.dtc-products-detail .dtc-detail-wrap .dtc-dw-cont { display: flex; align-items: center; gap: 42px; padding: 70px 0; }
.dtc-products-detail .dtc-detail-wrap .dtc-dw-cont .dtc-dwc-left { width: 40%; min-width: 360px; max-width: 420px; }
.dtc-products-detail .dtc-detail-wrap .dtc-dw-cont .dtc-dwc-left img { border-radius: 10px; }
.dtc-products-detail .dtc-detail-wrap .dtc-dw-cont .dtc-dwc-right h1 { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 28px; font-weight: 500; }
.dtc-products-detail .dtc-detail-wrap .dtc-dw-cont .dtc-dwc-right h1 p { font-weight: 700; }
.dtc-products-detail .dtc-detail-wrap .dtc-ml-new,
.dtc-products-detail .dtc-detail-wrap .dtc-ml-best,
.dtc-products-detail .dtc-detail-wrap .dtc-ml-hot { display: inline; width: fit-content; padding: 2px 10px; border-radius: 4px; font-size: 18px; font-weight: 400; text-align: center; }
.dtc-products-detail .dtc-detail-wrap .dtc-ml-new { background-color: #84754e; }
.dtc-products-detail .dtc-detail-wrap .dtc-ml-best { background-color: #d0a255; }
.dtc-products-detail .dtc-detail-wrap .dtc-ml-hot { background-color: #e4543c; }
.dtc-products-detail .dtc-detail-wrap .dtc-dwcr-btn { margin-top: 90px; font-size: 20px; letter-spacing: -0.4px; }
.dtc-products-detail .dtc-detail-wrap .dtc-dwcr-btn p { margin-bottom: 16px; color: #fff; font-size: 20px; font-weight: 500 !important; }
.dtc-products-detail .dtc-detail-wrap .dtc-dwcr-list { display: flex; flex-wrap: wrap; gap: 10px; min-width: 508px; max-width: 680px; height: 120px; }
.dtc-products-detail .dtc-detail-wrap .dtc-dwcr-list li { width: 30%; min-width: 150px; max-width: 162px; height: auto; }
.dtc-products-detail .dtc-detail-wrap .dtc-dwcr-list li a { display: block; width: 100%; height: auto; color: #fff; }
.dtc-products-detail .dtc-detail-wrap .dtc-dwcr-list li a img { width: 100%; height: auto; }
.dtc-products-detail .dtc-detail-wrap .dtc-dwcr-list.dtc-dwcr-list--soldout { position: relative; }
.dtc-products-detail .dtc-detail-wrap .dtc-dwcr-list.dtc-dwcr-list--soldout::before { content: ""; position: absolute; inset: -6px; background: rgba(0, 61, 40, 0.5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); border-radius: 12px; z-index: 2; }
.dtc-products-detail .dtc-detail-wrap .dtc-dwcr-list.dtc-dwcr-list--soldout::after { content: "SOLD OUT"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 26px; line-height: 1.1; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); pointer-events: none; z-index: 3; }
/* 구매 버튼 — 준비중(비활성) 단일 버튼 */
.dtc-products-detail .dtc-detail-wrap .dtc-dwcr-ready { display: inline-flex; align-items: center; justify-content: center; width: 162px; max-width: 100%; height: 50px; border: 1px solid #ddd; border-radius: 12px; background: #fff; color: #333; font-size: 16px; font-weight: 700; line-height: 1; letter-spacing: -0.4px; cursor: default; pointer-events: none; }

.dtc-products-detail .btn-listview { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 0; font-size: 0.875rem; line-height: 1; z-index: 2; }
.dtc-products-detail .btn-listview:hover { border-color: #bbb; }
.dtc-products-detail .dtc-dw-cont { position: relative; }
.dtc-products-detail .dtc-nav { position: absolute; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: rgba(255, 255, 255, 0.57); border-radius: 50%; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); color: #00321f; text-decoration: none; cursor: pointer; transition: all 0.2s ease; z-index: 100; }
.dtc-products-detail .dtc-nav:hover { background: #fff; border-color: #bbb; }
.dtc-products-detail .dtc-nav--prev { left: -6%; }
.dtc-products-detail .dtc-nav--next { right: -6%; }
.dtc-products-detail .dtc-detail-cont { display: flex; justify-content: center; width: 100%; padding: 90px 0; background-color: #fff; }
.dtc-products-detail .dtc-detail-cont img { max-width: 750px; }

.dtc-btn-top { position: fixed; right: 5%; bottom: 15%; display: none; align-items: center; justify-content: center; width: 44px; height: 44px; background: #fff; border: 1px solid #e1e1e1; border-radius: 50%; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15); cursor: pointer; z-index: 2000; }
.dtc-btn-top.is-visible { display: flex; }
.dtc-btn-top:focus-visible { outline: 2px solid #222; outline-offset: 2px; }

/* ── 품절 / Coming Soon 오버레이 (products/list.php) ── */
.dtc-main-list-cont.dtc-soldout > a,
.dtc-main-list-cont.dtc-comingsoon > a { pointer-events: none; }
.dtc-main-list-cont.dtc-soldout h2,
.dtc-main-list-cont.dtc-comingsoon h2 { color: #999; opacity: 0.7; }
.dtc-main-list-cont .img-wrap { position: relative; display: block; overflow: hidden; }
.soldout-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8% 6%; background: rgba(0, 61, 40, 0.5); backdrop-filter: blur(5.5px); color: #fff; text-align: center; }
.soldout-overlay__tit { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); }
.soldout-overlay__sub { display: block; margin-top: 0.6em; font-size: 14px; font-weight: 500; line-height: 1.5; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .dtc-nav--prev { left: 8px; }
  .dtc-nav--next { right: 8px; }
  .dtc-products-detail .dtc-detail-wrap .dtc-dw-cont .dtc-dwc-left { min-width: 280px; }
  .dtc-products-detail .dtc-detail-wrap .dtc-dwcr-list { min-width: unset !important; }
  .dtc-products-detail .dtc-detail-wrap .dtc-dwcr-list li { min-width: 100px; max-width: unset; }
}

@media (max-width: 820px) {
  .dtc-products-contents .dtc-main-list-wrap { min-width: 335px; padding: 60px 20px 40px; }
  .dtc-products-contents .dtc-main-list-wrap .dtc-main-list-title h1 { font-size: 28px; }
  .dtc-products-contents .dtc-main-list { display: flex; flex-wrap: wrap; gap: 15px; padding: 30px 0; }
  .dtc-products-contents .dtc-main-list-cont { width: 47%; min-width: 150px; max-width: none; margin-bottom: 20px; }
}

@media (max-width: 768px) {
  .dtc-products-detail { width: 100%; padding: 20px; }
  .dtc-products-detail .btn-listview { top: 26px; }
  .dtc-products-detail .dtc-detail-cont { padding: unset; }
  .dtc-products-detail .dtc-detail-wrap { width: 100%; margin: 60px auto 30px; padding: 20px; }
  .dtc-products-detail .dtc-detail-wrap .dtc-dw-txt h2 { font-size: 26px; }
  .dtc-products-detail .dtc-detail-wrap .dtc-dwcr-btn { font-size: 18px; }
  .dtc-products-detail .dtc-detail-wrap .dtc-dwcr-btn p { font-size: 18px; font-weight: 500 !important; }
  .dtc-products-detail .dtc-detail-wrap .dtc-dwcr-list { min-width: 355px; height: auto; margin: 0 auto; gap: 4px; }
  .dtc-products-detail .dtc-detail-wrap .dtc-dwcr-list li { width: 32%; min-width: 100px; max-width: 162px; height: auto; }
  .dtc-products-detail .dtc-detail-wrap .dtc-dwcr-list li a { width: 100%; min-width: 100px; height: auto; max-width: unset; }
  .dtc-products-detail .dtc-detail-wrap .dtc-dw-cont { position: relative; display: flex; align-items: center; gap: 28px; padding: 30px 0; }
  .dtc-products-detail .dtc-detail-wrap .dtc-dw-cont .dtc-dwc-left { width: 100%; max-width: 420px; }
  .dtc-products-detail .dtc-detail-wrap .dtc-dw-cont .dtc-dwc-right h1 { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 20px; font-weight: 500; }
  .dtc-products-detail .dtc-detail-wrap .dtc-dw-cont .dtc-ml-new,
  .dtc-products-detail .dtc-detail-wrap .dtc-dw-cont .dtc-ml-best,
  .dtc-products-detail .dtc-detail-wrap .dtc-dw-cont .dtc-ml-hot { padding: 2px 6px; font-size: 12px; }
  .dtc-products-detail .dtc-detail-wrap .dtc-dw-cont .dtc-dwcr-btn { margin-top: 20px; }
  .dtc-products-detail .dtc-dw-cont { display: flex; flex-direction: column; }
  .dtc-products-detail .dtc-nav { position: absolute; top: 30%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: rgba(255, 255, 255, 0.57); border-radius: 50%; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); color: #00321f; cursor: pointer; transition: all 0.2s ease; z-index: 100; }
  .dtc-products-detail .dtc-nav:hover { background: #fff; border-color: #bbb; }
  .dtc-products-detail .dtc-nav--prev { left: -3%; }
  .dtc-products-detail .dtc-nav--next { right: -3%; }
}
