/* ================================================
   SUB/prod_acc1 — 제품 아코디언 (2026-11-26 · MAIN/SET/prod_rail 카드 디자인 + 좌우 펼침 상세 정보)
   - 칸 줄 = flex · 열린 칸 .on = flex-grow 배율(--pa-g) 로 넓어지고 나머지 칸은 좁아짐
   - 사진·로고 쪽(.pa_vis) = 열린 칸에서도 "닫힌 칸 폭"(--pa-cw) 그대로 → 로고·이름 가운데 정렬 유지
     상세 정보(.pa_info) = 그 오른쪽 나머지 폭
   - 크기 기준 = 칸 줄 폭(container pal) · 사진 칸 폭(container pav) · 767↓ = 세로로 쌓고 아래로 펼침
   ================================================ */
.prod_acc1 .pa_pad { padding-left: var(--pa-padx, 0px); padding-right: var(--pa-padx, 0px); }
.prod_acc1 .pa_wrap { container: pal / inline-size; position: relative; width: 100%; color: #16191d; overflow-x: clip;
  --pa-cw: calc((100cqi - var(--pa-gap, 0px) * (var(--pa-n, 3) - 1)) / (var(--pa-n, 3) - 1 + var(--pa-g, 2.4))); }
.prod_acc1 .pa_wrap *, .prod_acc1 .pa_wrap *::before, .prod_acc1 .pa_wrap *::after { box-sizing: border-box; }

/* ── 칸 줄 ── */
.prod_acc1 .pa_list { display: flex; gap: var(--pa-gap, 0px); margin: 0; padding: 0; list-style: none;
  height: clamp(380px, calc(100cqi / var(--pa-n, 3) * 1.2), 820px); }
.prod_acc1 .pa_item { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; list-style: none; margin: 0;
  border-radius: var(--pa-rad, 0px); background: var(--pa-bg, #e9ecf6);
  transition: flex-grow var(--pa-speed, .8s) cubic-bezier(.65, .05, .25, 1); }
.prod_acc1 .pa_item.on { flex-grow: var(--pa-g, 2.4); }

/* ── 사진 · 로고 쪽 ── */
.prod_acc1 .pa_vis { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; container: pav / inline-size; cursor: pointer; outline: 0;
  transition: width var(--pa-speed, .8s) cubic-bezier(.65, .05, .25, 1); }
.prod_acc1 .pa_item.on .pa_vis { width: var(--pa-cw); }
.prod_acc1 .pa_vis:focus-visible { box-shadow: inset 0 0 0 3px var(--pa-lc, #1f8a99); }
.prod_acc1 .pa_mask { position: absolute; inset: 0; overflow: hidden; }
.prod_acc1 .pa_mask > div, .prod_acc1 .pa_mask .wg_img1 { position: absolute; inset: 0; }
.prod_acc1 .pa_mask img, .prod_acc1 .pa_mask video { display: block; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 65%;
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.prod_acc1 .pa_item:not(.on) .pa_vis:hover .pa_mask img { transform: scale(1.06); }
/* 열린 칸 = 사진 오른쪽 끝을 칸 배경색으로 흐리게 (사진과 정보 쪽 경계 안 보이게) */
.prod_acc1 .pa_vis::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 34%; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--pa-bg, #e9ecf6)); opacity: 0; transition: opacity .6s ease; }
.prod_acc1 .pa_item.on .pa_vis::after { opacity: 1; }
.prod_acc1 .pa_ph_empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; color: #6b7280; background: #eef0f4; border: 1px dashed #c3c8d2; }

/* 이름 — 로고(이미지2) 또는 글자 + 한 줄 글 · 사진 쪽 가운데 */
.prod_acc1 .pa_name { position: absolute; left: 0; right: 0; top: 8%; z-index: 2; padding: 0 6%; text-align: center; pointer-events: none; }
.prod_acc1 .pa_name [data-wid] { pointer-events: auto; }
.prod_acc1 .pa_logo { display: block; }
.prod_acc1 .pa_logo > div, .prod_acc1 .pa_logo .wg_img2 { display: block; }
.prod_acc1 .pa_logo img, .prod_acc1 .pa_logo svg { display: block; margin: 0 auto; width: auto; max-width: 92%;
  height: min(var(--pa-logoh, 106px), 20cqi); margin-bottom: calc(min(var(--pa-logoh, 106px), 20cqi) * -.3); }
.prod_acc1 .pa_logo_empty { display: inline-block; padding: 6px 12px; border: 1px dashed #9aa3b2; border-radius: 4px; font-size: 12px; color: #6b7280; background: rgba(255, 255, 255, .6); }
.prod_acc1 .pa_nm { display: block; font-weight: 300; line-height: 1.1; letter-spacing: .01em; color: #16191d; font-size: min(46px, 8.7cqi); }
.prod_acc1 .pa_nm_sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.prod_acc1 .pa_sub { display: block; margin-top: 10px; font-weight: 700; letter-spacing: -.05em; color: #16191d; font-size: max(13px, min(var(--pa-subfs, 21px), 4cqi)); }
.prod_acc1 .pa_wrap [data-ph]:empty::before { content: attr(data-ph); opacity: .45; font-weight: 400; }

/* 따라다니는 [자세히 보기] 버튼 (메인 prod_rail 과 같은 모양) — 줄 전체에 1개 · 위치 = JS 가 --bx/--by (줄 안 커서 좌표)
   펼친 칸의 사진 쪽에 있을 때만 보이고(.on), 그 칸 링크로 이동(.has-link 일 때만 눌림) · 닫힌 칸은 지금처럼 눌러서 펼침 */
.prod_acc1 .pa_badge { position: absolute; left: 0; top: 0; z-index: 6; display: block; pointer-events: none; color: inherit; text-decoration: none;
  width: clamp(84px, 7.4cqi, 118px); height: clamp(84px, 7.4cqi, 118px); translate: -50% -50%; transform: translate(var(--bx, -999px), var(--by, -999px)); }
.prod_acc1 .pa_badge.on.has-link { pointer-events: auto; cursor: pointer; }
.prod_acc1 .pa_bin { position: absolute; inset: 0; opacity: 0; transform: scale(.6); transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1); }
.prod_acc1 .pa_badge.on .pa_bin { opacity: 1; transform: scale(1); }
.prod_acc1 .pa_disc { position: absolute; inset: 0; border-radius: 50%; background: rgba(255, 255, 255, .58); border: 1px solid rgba(255, 255, 255, .75);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); }
.prod_acc1 .pa_ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: pa_spin 14s linear infinite; }
.prod_acc1 .pa_ring text { font: 500 8.6px sans-serif; fill: #333e59; text-transform: uppercase; }
@keyframes pa_spin { to { transform: rotate(360deg); } }
.prod_acc1 .pa_mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #16191d;
  font-weight: 800; font-size: 13px; letter-spacing: -.05em; line-height: 1.2; white-space: nowrap; }
.prod_acc1 .pa_mid i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--pa-lc, #1f8a99); margin-bottom: 2px; }
.prod_acc1 .pa_wrap[data-badge="0"] .pa_badge { display: none; }
@media (hover: none) { .prod_acc1 .pa_badge { display: none; } }

/* ── 상세 정보 (열린 칸 오른쪽 · 폭 고정이라 펼치는 동안 글 줄이 안 바뀜) ── */
.prod_acc1 .pa_info { position: absolute; top: 0; bottom: 0; left: var(--pa-cw); width: calc(var(--pa-cw) * (var(--pa-g, 2.4) - 1));
  padding: clamp(16px, 2.4cqi, 40px) clamp(16px, 3cqi, 56px) clamp(16px, 2.4cqi, 40px) clamp(4px, .6cqi, 12px);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s ease, visibility 0s linear .3s; }
.prod_acc1 .pa_item.on .pa_info { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .6s ease calc(var(--pa-speed, .8s) * .5), visibility 0s; }
.prod_acc1 .pa_ib { display: flex; align-items: center; width: 100%; height: 100%; }
.prod_acc1 .pa_card { width: 100%; max-width: var(--pa-cmw, 640px); max-height: 100%; overflow: auto; margin: 0 auto; padding: clamp(18px, 2.2cqi, 36px);
  border-radius: 18px; background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 20px 50px rgba(30, 40, 80, .08);
  transform: translateX(40px); transition: transform .4s ease; scrollbar-width: thin; }
.prod_acc1 .pa_item.on .pa_card { transform: none; transition: transform .9s cubic-bezier(.2, .7, .2, 1) calc(var(--pa-speed, .8s) * .45); }
.prod_acc1 .pa_ih { margin-bottom: clamp(10px, 1.2cqi, 18px); }
.prod_acc1 .pa_ihn { display: block; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; color: var(--pa-vc, #16191d); font-size: clamp(18px, 1.6cqi, 24px); }
.prod_acc1 .pa_spec { margin: 0; border-top: 2px solid var(--pa-vc, #16191d); }
.prod_acc1 .pa_row { display: grid; grid-template-columns: minmax(72px, 30%) 1fr; gap: 4px 16px; align-items: baseline; padding: 9px 2px; border-bottom: 1px solid rgba(22, 25, 29, .1); }
.prod_acc1 .pa_row dt { margin: 0; font-weight: 600; line-height: 1.45; color: var(--pa-lc, #1f8a99); font-size: calc(var(--pa-dfs, 15px) - 1px); word-break: keep-all; }
.prod_acc1 .pa_row dd { margin: 0; line-height: 1.5; color: var(--pa-vc, #16191d); font-size: var(--pa-dfs, 15px); word-break: keep-all; overflow-wrap: anywhere; }
.prod_acc1 .pa_row.pa_note dd { grid-column: 1 / -1; color: #6b7280; font-size: 13px; }
/* 위에서부터 N 줄 = 크고 굵게 (적용 면적 · 크기 · 무게 처럼) */
.prod_acc1 .pa_wrap[data-em="1"] .pa_row:nth-child(-n+1) dd,
.prod_acc1 .pa_wrap[data-em="2"] .pa_row:nth-child(-n+2) dd,
.prod_acc1 .pa_wrap[data-em="3"] .pa_row:nth-child(-n+3) dd,
.prod_acc1 .pa_wrap[data-em="4"] .pa_row:nth-child(-n+4) dd,
.prod_acc1 .pa_wrap[data-em="5"] .pa_row:nth-child(-n+5) dd { font-weight: 700; letter-spacing: -.02em; font-size: calc(var(--pa-dfs, 15px) * 1.3); }
.prod_acc1 .pa_btn { display: inline-flex; align-items: center; gap: 10px; margin-top: clamp(14px, 1.6cqi, 24px); padding: 11px 22px; border-radius: 999px;
  background: #16191d; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .2s; }
.prod_acc1 .pa_btn i { display: block; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.prod_acc1 .pa_btn:hover { background: var(--pa-lc, #1f8a99); color: #fff; }

.prod_acc1 .pa_empty { padding: 50px 20px; text-align: center; color: #9ca3af; font-size: 14px; border: 1px dashed #d1d5db; border-radius: 8px; }

/* ── 등장 모션 (화면에 들어오면 한 번 · .pa_in) — animation 이라 펼침(flex-grow transition)과 안 겹침 ── */
.prod_acc1 .pa_wrap:not(.pa_in) .pa_item { opacity: 0; }
.prod_acc1 .pa_wrap.pa_in .pa_item { animation: pa_enter 1.3s cubic-bezier(.16, .84, .3, 1) both; }
.prod_acc1 .pa_wrap.pa_in .pa_item:nth-child(2) { animation-delay: .16s; }
.prod_acc1 .pa_wrap.pa_in .pa_item:nth-child(3) { animation-delay: .32s; }
.prod_acc1 .pa_wrap.pa_in .pa_item:nth-child(4) { animation-delay: .48s; }
.prod_acc1 .pa_wrap.pa_in .pa_item:nth-child(n+5) { animation-delay: .64s; }
@keyframes pa_enter { from { opacity: 0; transform: translateX(90px); } to { opacity: 1; transform: none; } }
.prod_acc1 .pa_wrap.pa_edit .pa_item { opacity: 1; animation: none; }
@media (prefers-reduced-motion: reduce) {
  .prod_acc1 .pa_wrap *, .prod_acc1 .pa_wrap *::before, .prod_acc1 .pa_wrap *::after { transition: none !important; animation: none !important; }
  .prod_acc1 .pa_wrap .pa_item { opacity: 1 !important; }
}

/* ── 모바일 (칸 줄 폭 767 이하) — 세로로 쌓고, 연 칸은 사진 아래로 정보가 펼쳐짐 ── */
@container pal (max-width: 767px) {
  .prod_acc1 .pa_list { flex-direction: column; height: auto !important; gap: max(10px, var(--pa-gap, 0px)); }
  .prod_acc1 .pa_item { flex: none !important; }
  .prod_acc1 .pa_vis { position: relative; width: 100% !important; height: var(--pa-moh, 360px); transition: none; }
  .prod_acc1 .pa_vis::after { display: none; }
  .prod_acc1 .pa_nm { font-size: min(36px, 8cqi); }
  .prod_acc1 .pa_logo img, .prod_acc1 .pa_logo svg { height: min(var(--pa-logoh, 106px), 72px, 18cqi); margin-bottom: calc(min(var(--pa-logoh, 106px), 72px, 18cqi) * -.3); }
  .prod_acc1 .pa_badge { display: none; }
  .prod_acc1 .pa_info { position: static; left: auto; width: auto; padding: 0; display: grid; grid-template-rows: 0fr; opacity: 1; pointer-events: auto;
    visibility: hidden; transition: grid-template-rows var(--pa-speed, .8s) ease, visibility 0s linear var(--pa-speed, .8s); }
  .prod_acc1 .pa_item.on .pa_info { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows var(--pa-speed, .8s) ease, visibility 0s; }
  .prod_acc1 .pa_ib { display: block; height: auto; min-height: 0; overflow: hidden; }
  .prod_acc1 .pa_card { max-width: none; max-height: none; overflow: visible; margin: 0 12px 12px; padding: 18px 16px; transform: none !important; transition: none; }
  .prod_acc1 .pa_row { grid-template-columns: minmax(64px, 34%) 1fr; gap: 2px 12px; padding: 8px 0; }
  .prod_acc1 .pa_wrap.pa_in .pa_item { animation-name: pa_enter_mo; }
}
@keyframes pa_enter_mo { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@media (max-width: 767px) {
  .prod_acc1 .pa_pad { padding-left: var(--pa-padxmo, 0px); padding-right: var(--pa-padxmo, 0px); }
}
