/* ==========================================================================
   PRODUCT — 목록(sub1.png · sub1_hover.png) / 상세(sub2.png · sub2_hover.png)
   1920px 시안 기준 (콘텐츠 155~1765)
   ========================================================================== */

/* 공통 버튼 : layout.css .btn-line / .btn-blue + .btn--md (62px Pill, Hover 좌→우 게이지 Fill) */

/* ==========================================================================
   LIST
   ========================================================================== */
/* 시안 sub1/sub2 : Breadcrumb · 카테고리 탭은 대소문자 그대로, 탭은 208px 고정 슬롯(텍스트 가운데) */
.breadcrumb, .tabs-pill__item { text-transform: none; }
.tabs-pill { gap: 0; }
@media (min-width: 1280px) {
  .tabs-pill__item, .tabs-pill__item.is-active { justify-content: center; min-width: 208px; padding: 0 20px; }
}
.plist { padding: 44px 0 128px; }   /* 11/18 : 78 → 44 */
.plist__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px;
}
.plist__empty { padding: 80px 0; text-align: center; font-size: 20px; color: var(--c-text-sub); }

.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 622px;
  padding: 48px 36px 38px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--c-bg-gray);
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.pcard::before {
  /* Hover 배경 (시안: 위쪽이 살짝 푸른 그라데이션) */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, #e7eff8 0%, #ecf1f7 100%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.pcard > * { position: relative; }
.pcard__name {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -.025em;
  color: var(--c-text);
}
.pcard__name a { position: static; }
.pcard__name a::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 6px; }
.pcard__name a:focus-visible { outline: none; }
.pcard:has(.pcard__name a:focus-visible) { outline: 2px solid var(--c-blue-bright); outline-offset: 3px; }

.pcard__thumb {
  display: flex;
  align-items: center;
  height: 172px;
  margin-top: 8px;
}
.pcard__thumb picture { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.pcard__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* 권총처럼 세로가 긴 이미지도 영역 안에 (소총은 폭 기준 그대로) */
  filter: drop-shadow(3px 7px 3px rgba(0, 0, 0, .3));
}
.pcard__noimg {
  display: grid;
  place-items: center;
  width: 100%;
  height: 120px;
  border: 1px dashed var(--c-line);
  border-radius: 6px;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 20px;
  color: #a3aab4;
}

.pcard__spec {
  margin-top: 12px;
  font-size: 18px;
  line-height: 22px;
  letter-spacing: -.04em;
  color: var(--c-text-sub);
}
.pcard__spec > div { display: flex; gap: 5px; padding: 7px 0; }
.pcard__spec dt { flex: none; font-weight: 700; }
.pcard__spec dd { min-width: 0; }

.pcard__btn {
  --btn-fg: var(--c-blue);
  justify-content: space-between;
  height: 61px;
  margin-top: auto;
  padding: 0 26px 0 27px;
  border: 2px solid var(--c-blue);
  border-radius: 999px;
  font-size: 20px;
  letter-spacing: -.025em;
  text-transform: none;
}
.pcard__btn .ico { font-size: 22px; }
.pcard__spec + .pcard__btn, .pcard__thumb + .pcard__btn { margin-top: auto; }
.pcard > .pcard__btn { top: 0; }
.pcard__spec { margin-right: -17px; margin-bottom: 30px; }

/* Hover / 키보드 포커스 : Blue Border + Shadow + View Details Fill */
.pcard:focus-within { border-color: var(--c-blue); }
@media (hover: hover) {
  .pcard:hover {
    border-color: var(--c-blue);
    box-shadow: 0 10px 30px rgba(22, 119, 200, .14);
  }
  .pcard:hover::before { opacity: 1; }
  .pcard:hover .pcard__btn { color: #fff; }
  .pcard:hover .pcard__btn::before { transform: scaleX(1); }
}

/* ==========================================================================
   DETAIL
   ========================================================================== */
.pd { padding-bottom: 128px; }
.pd-top { padding-top: 122px; }
.pd-cat { text-transform: none; }

.pd-top__grid {
  display: grid;
  grid-template-columns: minmax(0, 865fr) minmax(0, 682fr);
  column-gap: 65px;
  margin-top: 49px;
}

/* 제품 이미지 */
.pd-visual {
  position: relative;
  display: grid;
  align-self: start;
  aspect-ratio: 865 / 672;
  border-radius: 6px;
  background: var(--c-bg-gray);
  overflow: hidden;
}
.pd-visual__item {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  animation: pdFade .45s var(--ease-out);
}
.pd-visual__item[hidden] { display: none; }
.pd-visual__item picture { width: 84.9%; }
.pd-visual__item img {
  width: 100%;
  height: auto;
  filter: drop-shadow(7px 18px 7px rgba(0, 0, 0, .3));
}
.pd-visual__none { align-self: center; text-align: center; font-family: var(--f-head); font-weight: 700; font-size: 24px; color: #a3aab4; }
@keyframes pdFade { from { opacity: 0; transform: translateX(-12px); } }

/* 이름 + Barrel Size Selector */
.pd-info { min-width: 0; }
.pd-info__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.pd-name {
  margin-top: -10px;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 72px;
  line-height: 1;
  letter-spacing: -.025em;
  color: var(--c-text);
}
.pd-sub {
  margin-top: 15px;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -.025em;
  color: var(--c-text-sub);
}

.pd-size { position: relative; z-index: 5; flex: none; width: 216px; }
.pd-size__btn {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 61px;
  padding: 0 28px 0 31px;
  border-radius: 999px;
  background: var(--c-blue);
  color: #fff;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  transition: background .25s;
}
.pd-size__btn .ico { font-size: 22px; transition: transform .3s; }
/* 시안 sub2_hover : Hover 시 버튼 색 유지 (목록이 열림) */
.pd-size--single .pd-size__btn { justify-content: center; padding: 0; }

.pd-size__list {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  padding: 61px 0 0;
  border-radius: 31px;
  background: #e7eaf0;
  animation: pdDrop .25s var(--ease-out);
}
.pd-size__list[hidden] { display: none; }
.pd-size__list:focus { outline: none; }
@keyframes pdDrop { from { opacity: 0; transform: translateY(-6px); } }
.pd-size__list [role="option"] {
  display: flex;
  align-items: center;
  height: 60px;
  padding: 0 31px;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 24px;
  color: var(--c-text-sub);
  cursor: pointer;
  transition: color .2s, background .2s;
}
.pd-size__list [role="option"]:last-child { border-radius: 0 0 31px 31px; }
.pd-size__list [aria-selected="true"] { display: none; }
.pd-size__list [role="option"]:hover,
.pd-size__list.is-kbd [role="option"].is-focus { color: var(--c-blue); background: var(--c-blue-light); }

/* Product Overview */
.pd-ov-title {
  margin-top: 69px;
  padding-bottom: 43px;
  border-bottom: 1px solid var(--c-text-sub);
}
.pd-ov {
  margin-top: 44px;
  margin-right: -6px;
  font-size: 24px;
  line-height: 36px;
  letter-spacing: -.04em;
  color: var(--c-text-sub);
}

/* CTA */
.pd-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 19px;
  margin-top: 57px;
}
.pd-cta__wide { grid-column: 1 / -1; }

/* Specifications --------------------------------------------------------- */
.pd-spec { padding-top: 122px; }
.pd-spec__scroll { position: relative; margin-top: 31px; }
.pd-spec__table {
  width: 100%;
  border-top: 2px solid var(--c-text);
  table-layout: fixed;
  font-size: 24px;
  letter-spacing: -.025em;
}
.pd-spec__corner, .pd-spec__table tbody th { width: 23.4%; }
.pd-spec__table th, .pd-spec__table td {
  height: 63px;
  padding: 0 20px 0 41px;
  border-bottom: 1px solid #cad4df;
  text-align: left;
  vertical-align: middle;
}
.pd-spec__table thead th, .pd-spec__table thead td { height: 67px; }
.pd-spec__table thead th {
  padding: 0 20px 0 41px;
  text-align: left;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 30px;
  color: var(--c-text);
}
.pd-spec__table tbody th {
  padding-left: 25px;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--c-text);
}
.pd-spec__table td { color: var(--c-text-sub); line-height: 1.3; }
.pd-spec__table [data-config-col][hidden] { display: none; }
.pd-spec__table td.is-swap, .pd-spec__table th.is-swap { animation: pdSwap .4s var(--ease-out); }
@keyframes pdSwap { from { opacity: 0; } }

/* 가이드 07 (업체 요청) : PC 는 사이즈별 사양 비교표 — 모든 열 표시, 선택 열에 블루 박스가 좌우로 이동
   Mobile 은 위 규칙 그대로 선택 사이즈 1열만 표시 */
.pd-spec__hl { display: none; }
.pd-spec__pick { font: inherit; color: inherit; letter-spacing: inherit; text-align: inherit; }
@media (min-width: 1024px) {
  [data-spec-compare] .pd-spec__table [data-config-col][hidden] { display: table-cell; }
  [data-spec-compare] .pd-spec__table { position: relative; z-index: 1; }
  [data-spec-compare] .pd-spec__table .is-swap { animation: none; }
  [data-spec-compare] .pd-spec__table [data-config-col] { cursor: pointer; transition: color .45s; }
  [data-spec-compare] .pd-spec__table thead th:not(.is-sel) { color: #8a96a5; }
  [data-spec-compare] .pd-spec__table thead th.is-sel { color: var(--c-blue); }
  .pd-spec__pick { display: block; width: 100%; height: 100%; padding: 0; }
  .pd-spec__pick:focus-visible { outline-offset: -4px; }
  .pd-spec__hl {
    display: block;
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    border: 2px solid var(--c-blue);
    background: rgba(22, 119, 200, .06);
    box-shadow: 0 0 14px rgba(22, 119, 200, .14);
    pointer-events: none;
    opacity: 0;
    transition: transform .65s cubic-bezier(.22, 1, .36, 1), width .65s cubic-bezier(.22, 1, .36, 1), opacity .3s;
  }
  .pd-spec__hl.is-ready { opacity: 1; }
}
@media (min-width: 1024px) and (hover: hover) {
  [data-spec-compare] .pd-spec__table thead th:not(.is-sel):hover { color: var(--c-text); }
}

/* 2단 섹션 (Key Features / Custom Solutions / Video) ------------------------- */
.pd-row {
  display: grid;
  grid-template-columns: 415px minmax(0, 1fr);
  margin-top: 128px;
  padding-top: 72px;
  border-top: 1px solid #aeafb0;
}
.pd-row .sec-title { align-items: flex-start; align-self: start; }
.pd-row .sec-title::before { margin-top: 10px; }
.pd-spec + .pd-row { margin-top: 128px; }
.pd-row + .pd-row { margin-top: 71px; }

.pd-feat__list {
  margin-top: -3px;
  font-size: 24px;
  line-height: 42px;
  letter-spacing: -.025em;
  color: var(--c-text-sub);
}
.pd-feat__list li { position: relative; padding-left: 29px; margin-left: -2px; }
.pd-feat__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-blue);
}

.pd-custom .sec-title, .pd-video .sec-title { line-height: 1; }
.pd-custom__list { display: grid; gap: 17px; }
.pd-custom__item {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 153px;
  padding: 20px 40px;
  border: 1px solid #cad4df;
  border-radius: 6px;
}
.pd-custom__icon { flex: none; width: 78px; height: 78px; object-fit: contain; }
.pd-custom__title {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -.025em;
  text-transform: uppercase;
  color: var(--c-text);
}
.pd-custom__desc {
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: -.025em;
  color: var(--c-text-sub);
}

/* Video */
.pd-row.pd-video { margin-top: 81px; }
.pd-video__frame, .pd-custom__list { margin-top: 7px; }
.pd-video__frame {
  position: relative;
  aspect-ratio: 1197 / 670;
  border-radius: 8px;
  overflow: hidden;
  background: var(--c-dark);
}
.pd-video__frame picture, .pd-video__frame > img, .pd-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.pd-video__frame img { width: 100%; height: 100%; object-fit: cover; }
.pd-video__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  border: 4px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 92px;
  transition: background .3s, transform .3s var(--ease-out);
}
.pd-video__play .ico { margin-left: 10px; }
@media (hover: hover) { button.pd-video__play:hover { background: rgba(22, 119, 200, .85); border-color: var(--c-blue); } }
.pd-video__noscript { position: absolute; left: 16px; bottom: 16px; color: #fff; text-decoration: underline; }

/* Back to List */
.pd-back { display: flex; justify-content: flex-end; margin-top: 127px; }
.pd-back .btn--md { width: 332px; height: 61px; gap: 22px; }

/* Not found */
.pd-missing { padding: 120px 0 160px; }
.pd-missing__text { max-width: 760px; margin-top: 32px; font-size: 20px; line-height: 1.6; color: var(--c-text-sub); }
.pd-missing__links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1599px) {
  .pcard__spec { margin-right: 0; font-size: 16px; }
  .pcard__spec > div { display: block; }
  .pcard__spec dt { display: inline; }
  .pcard__spec dd { display: inline; }
  .pd-name { font-size: 60px; margin-top: -8px; }
  .pd-sub { font-size: 30px; margin-top: 16px; }
  .pd-ov { font-size: 21px; line-height: 32px; }
  .pd-row { grid-template-columns: 340px minmax(0, 1fr); }
  .pd-spec__table { font-size: 21px; }
  .pd-spec__table tbody th { font-size: 22px; }
  .pd-spec__table th, .pd-spec__table td { padding-left: 28px; }
}

@media (max-width: 1279px) {
  .plist__grid { gap: 20px; }
  .pcard { min-height: 0; padding: 36px 24px 28px; }
  .pcard__name { font-size: 30px; }
  .pcard__thumb { height: 140px; }
  .pcard__spec { margin-top: 20px; font-size: 16px; }
  .pcard__btn { height: 54px; font-size: 18px; padding: 0 20px; }

  .pd-top { padding-top: 80px; }
  .pd-top__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; margin-top: 40px; }
  .pd-info__head { flex-direction: column; gap: 20px; }
  .pd-name { font-size: 52px; }
  .pd-sub { font-size: 26px; margin-top: 10px; }
  .pd-ov-title { margin-top: 44px; padding-bottom: 24px; }
  .pd-ov { margin-top: 24px; font-size: 18px; line-height: 1.6; }
  .pd-cta { margin-top: 32px; gap: 12px; }
  .pd-spec { padding-top: 88px; }
  .pd-row { grid-template-columns: 260px minmax(0, 1fr); margin-top: 96px; padding-top: 64px; }
  .pd-row + .pd-row, .pd-row.pd-video { margin-top: 64px; }
  .pd-feat__list { font-size: 19px; line-height: 34px; }
  .pd-feat__list li::before { top: 12px; width: 8px; height: 8px; }
  .pd-feat__list li { padding-left: 24px; }
  .pd-custom__item { min-height: 120px; padding: 20px 28px; gap: 20px; }
  .pd-custom__icon { width: 60px; height: 60px; }
  .pd-custom__title { font-size: 28px; }
  .pd-custom__desc { font-size: 18px; }
  .pd-video__play { width: 110px; height: 110px; margin: -55px 0 0 -55px; font-size: 64px; border-width: 3px; }
  .pd-back { margin-top: 88px; }
}

@media (max-width: 1023px) {
  .plist { padding: 48px 0 96px; }
  .plist__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .pd-top__grid { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  .pd-info__head { flex-direction: row; align-items: flex-start; }
  .pd-row { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .pd-row .sec-title br { display: none; }
  .pd-row .sec-title { display: block; position: relative; padding-left: 26px; }
  .pd-row .sec-title::before { position: absolute; left: 0; top: 0; margin-top: 10px; }

  .pd-spec__corner, .pd-spec__table tbody th { width: 34%; }
}

@media (max-width: 767px) {
  .plist { padding: 36px 0 72px; }
  .plist__grid { gap: 14px; }
  .pcard { padding: 24px 18px 20px; }
  .pcard__name { font-size: 24px; }
  .pcard__thumb { height: 104px; }
  .pcard__spec { font-size: 14px; line-height: 18px; }
  .pcard__spec > div { padding: 4px 0; }
  .pcard__spec { margin-bottom: 24px; }
  .pcard__btn { height: 46px; font-size: 16px; padding: 0 16px; border-width: 1.5px; }

  .pd-top { padding-top: 48px; }
  .pd-row .sec-title { padding-left: 22px; }
  .pd-row .sec-title::before { margin-top: 7px; }
  .pd-top__grid { margin-top: 24px; row-gap: 28px; }
  .pd-name { font-size: 40px; margin-top: 0; }
  .pd-sub { font-size: 21px; margin-top: 6px; }
  .pd-size { width: 150px; }
  .pd-size__btn { height: 48px; padding: 0 18px 0 22px; font-size: 20px; }
  .pd-size__list { padding-top: 48px; border-radius: 24px; }
  .pd-size__list [role="option"] { height: 48px; padding: 0 22px; font-size: 20px; }
  .pd-size__list [role="option"]:last-child { border-radius: 0 0 24px 24px; }
  .pd-ov-title { margin-top: 32px; padding-bottom: 18px; }
  .pd-ov { font-size: 16px; }
  .pd-cta { grid-template-columns: minmax(0, 1fr); }
  .pd-spec { padding-top: 64px; }
  .pd-spec__scroll { margin-top: 20px; }
  .pd-spec__table { font-size: 16px; }
  .pd-spec__corner, .pd-spec__table tbody th { width: 42%; }
  .pd-spec__table th, .pd-spec__table td { height: 52px; padding: 8px 14px; }
  .pd-spec__table thead th { font-size: 22px; height: 54px; padding-left: 14px; }
  .pd-spec__table tbody th { padding-left: 12px; font-size: 17px; }
  .pd-row { margin-top: 64px; padding-top: 44px; row-gap: 24px; }
  .pd-row + .pd-row, .pd-row.pd-video { margin-top: 44px; }
  .pd-feat__list { font-size: 16px; line-height: 1.5; }
  .pd-feat__list li { padding: 4px 0 4px 20px; }
  .pd-feat__list li::before { top: 13px; width: 7px; height: 7px; }
  .pd-custom__item { align-items: flex-start; padding: 20px; gap: 16px; min-height: 0; }
  .pd-custom__icon { width: 44px; height: 44px; }
  .pd-custom__title { font-size: 21px; }
  .pd-custom__desc { margin-top: 6px; font-size: 15px; }
  .pd-video__play { width: 72px; height: 72px; margin: -36px 0 0 -36px; font-size: 40px; border-width: 2px; }
  .pd-video__play .ico { margin-left: 5px; }
  .pd-back { justify-content: stretch; margin-top: 56px; }
  .pd-back .btn--md { width: 100%; height: 52px; }
  .pd { padding-bottom: 80px; }
  .pd-missing { padding: 64px 0 96px; }
}

@media (max-width: 599px) {
  .plist__grid { grid-template-columns: minmax(0, 1fr); }
  .pcard__thumb { height: auto; padding: 8px 0; }
  .pcard__thumb picture { width: 82%; margin-inline: auto; }
  .pd-info__head { flex-direction: column; gap: 16px; }
}

/* 관리자 전용 바 (로그인한 관리자에게만 출력) */
.pd-admin {
  position: fixed; left: 16px; bottom: 16px; z-index: 900;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  padding: 6px 8px; border-radius: 8px;
  background: rgba(11, 15, 20, .88); color: #fff;
  font: 500 13px/1.2 var(--f-body); box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}
.pd-admin strong { padding: 0 6px; color: #8fc3f0; font-weight: 700; }
.pd-admin a { padding: 6px 10px; border-radius: 4px; color: #fff; }
.pd-admin a:hover, .pd-admin a:focus-visible { background: var(--c-blue); }

/* 가이드 07 : 사이즈 변경 시 제품 이미지 부드럽게 전환 */
.pd-visual__item.is-active { animation: pdImgIn .65s cubic-bezier(.22, 1, .36, 1); }
@keyframes pdImgIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }

/* Video Coming Soon (11/20 업체 요청 — 영상 URL 없는 제품) */
.pd-video__frame--soon { display: grid; place-items: center; }
.pd-video__soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
}
.pd-video__soon .ico { font-size: 72px; opacity: .6; }
@media (max-width: 1279px) { .pd-video__soon { font-size: 32px; gap: 18px; } .pd-video__soon .ico { font-size: 56px; } }
@media (max-width: 767px)  { .pd-video__soon { font-size: 20px; gap: 12px; } .pd-video__soon .ico { font-size: 36px; } }
