/* product-detail.css — 제품 상세 페이지, 사양표, 이미지 */
/* 원본 product.css 분리 리팩토링 2026-06-10 */

/* [2026-06-23] 납품사례 영상 섹션(관리번호 자동 연결) — 작동영상 스타일 재사용 + 사례별 제목/링크 */
.product-case-video-section .product-video-head span{ color:#0f8a7e; }
.product-case-video-item{ margin-top:18px; }
.product-case-video-item:first-of-type{ margin-top:6px; }
.product-case-video-link{
  display:inline-flex; align-items:center; gap:6px; margin-top:10px;
  font-size:15px; font-weight:700; color:#1177dc; text-decoration:none;
  padding:8px 4px; line-height:1.4;
}
.product-case-video-link:hover{ text-decoration:underline; }
@media(max-width:768px){ .product-case-video-link{ font-size:14px; } }

/* =========================================================
   [2026-05-09] 제품 상세페이지 예전 디자인 복원
   - product-page.css가 아닌 제품 상세 전용 보정
   - 과한 그라데이션/앱형 카드 느낌 제거
========================================================= */
.product-detail-oldstyle{
  padding:40px 42px;
}
.product-detail-oldstyle .product-detail-head{
  margin:0 0 26px;
  padding-bottom:18px;
  border-bottom:1px solid #e1ebf5;
}
.product-detail-oldstyle .product-detail-head h2{
  margin:0 0 12px;
  color:#102d4c;
  font-size:36px;
  line-height:1.28;
  letter-spacing:-1.1px;
}
.product-detail-oldstyle .product-detail-head p{
  color:#52677d;
  font-size:16px;
  line-height:1.8;
}
.product-detail-main-image{
  margin:26px 0 26px;
  padding:20px;
  border:1px solid #d7e8f8;
  box-shadow:none;
}
.product-detail-main-image img{
  display:block;
  max-height:620px;
}
.product-txt-box{
  margin:18px 0;
  padding:24px 26px;
  border:1px solid #d7e8f8;
  background:#f9fcff;
  box-shadow:none;
}
.product-txt-box h3{
  margin:0 0 14px;
  color:#0b2d4d;
  font-size:20px;
  line-height:1.35;
  font-weight:900;
}
.product-txt-box p{
  margin:0 0 14px;
  color:#334155;
  font-size:16px;
  line-height:1.9;
  word-break:keep-all;
}
.product-txt-box p:last-child{margin-bottom:0;}
.product-html-box table{
  width:100%;
  border-collapse:collapse;
  margin:14px 0;
}
.product-html-box th,
.product-html-box td{
  border:1px solid #d9e8f6;
  padding:12px 14px;
  line-height:1.6;
}
.product-html-box th{background:#f4f9ff;color:#0f579a;font-weight:900;}
.product-detail-image-list{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
  margin:28px 0 0;
}
.product-detail-image-box{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  border:1px solid #d7e8f8;
  border-radius:0;
  overflow:hidden;
}
.product-detail-image-box img{
  display:block;
  max-height:none;
}
@media(max-width:768px){
  .product-detail-oldstyle{padding:24px 18px;}
  .product-detail-oldstyle .product-detail-head h2{font-size:27px;}
  .product-txt-box{padding:20px 18px;border-radius:0;}
  .product-txt-box p{font-size:14.5px;line-height:1.82;}
  .product-detail-main-image,.product-detail-image-box{padding:12px;border-radius:0;}
}


/* =========================================================
   [2026-05-09] 제품 상세페이지 모바일 가독성 정리 PATCH
   - raw 텍스트 박스 → 섹션형 카드 레이아웃
   - 상단 문의/목록 버튼 정리
   - 모바일에서 좌우 여백, 글줄, 카드 높이 안정화
========================================================= */
.product-detail-oldstyle{
  overflow:hidden;
}
.product-detail-oldstyle .product-detail-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
}
.product-detail-title-area{
  min-width:0;
  flex:1 1 auto;
}
.product-detail-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
  padding-top:4px;
}
.product-action-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:132px;
  height:46px;
  padding:0 20px;
  font-size:15px;
  font-weight:800;
  line-height:1;
  text-decoration:none;
  white-space:nowrap;
  transition:background .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease;
}
.product-action-btn--primary{
  color:#fff;
  border:1px solid #126cc8;
  background:#1177dc;
  box-shadow:0 8px 18px rgba(17,119,220,.16);
}
.product-action-btn--primary:hover{background:#075fb8;color:#fff;}
.product-action-btn--line{
  color:#1d3552;
  border:1px solid #c9d9ea;
  background:#fff;
}
.product-action-btn--line:hover{border-color:#1177dc;color:#1177dc;}
.product-detail-section-wrap{
  margin:26px 0 0;
}
.product-detail-section-title{
  position:relative;
  margin:0 0 18px;
  padding-bottom:12px;
  color:#0b2d4d;
  font-size:24px;
  line-height:1.35;
  font-weight:900;
  letter-spacing:-.5px;
  border-bottom:1px solid #dbe8f5;
}
.product-detail-section-title::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-1px;
  width:44px;
  height:3px;
  border-radius:0;
  background:#1177dc;
}
.product-detail-info-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.product-info-row{
  display:grid;
  grid-template-columns:58px 1fr;
  gap:18px;
  align-items:flex-start;
  padding:22px 24px;
  border:1px solid #d9e8f6;
  background:#fff;
  box-shadow:0 8px 24px rgba(15,60,110,.045);
}
.product-info-icon{
  width:58px;
  height:58px;
  border:1px solid #cfe4fa;
  background:linear-gradient(180deg,#f8fcff,#eef7ff);
  position:relative;
}
.product-info-icon::before{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:22px;
  height:22px;
  border:3px solid #1177dc;
  transform:translate(-50%,-50%);
}
.product-info-icon::after{
  content:"";
  position:absolute;
  left:50%;
  top:15px;
  width:16px;
  height:6px;
  border:2px solid #1177dc;
  border-bottom:0;
  border-radius:0;
  transform:translateX(-50%);
}
.product-info-content h4{
  margin:0 0 8px;
  color:#0a2d4e;
  font-size:20px;
  line-height:1.35;
  font-weight:900;
  letter-spacing:-.35px;
}
.product-info-content p{
  margin:0;
  color:#33475f;
  font-size:16px;
  line-height:1.85;
  overflow-wrap:anywhere;
}
.product-inquiry-card-clean{
  display:flex;
  align-items:center;
  gap:20px;
  margin:26px 0 0;
  padding:26px 28px;
  border:1px solid #cfe2f5;
  background:linear-gradient(135deg,#f6fbff 0%,#eaf4ff 100%);
  box-shadow:0 10px 28px rgba(15,80,150,.06);
}
.product-inquiry-card-icon{
  flex:0 0 auto;
  width:70px;
  height:70px;
  border-radius:0;
  background:#fff;
  border:1px solid #d8e8f8;
  position:relative;
  box-shadow:0 8px 18px rgba(20,90,160,.08);
}
.product-inquiry-card-icon::before{
  content:"";
  position:absolute;
  left:20px;
  top:22px;
  width:30px;
  height:22px;
  border-radius:0;
  background:#1177dc;
}
.product-inquiry-card-icon::after{
  content:"";
  position:absolute;
  left:28px;
  top:42px;
  width:10px;
  height:10px;
  background:#1177dc;
  clip-path:polygon(0 0,100% 0,0 100%);
}
.product-inquiry-card-text{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:7px;
}
.product-inquiry-card-text strong{
  color:#0a2d4e;
  font-size:26px;
  line-height:1.25;
  font-weight:900;
  letter-spacing:-.6px;
}
.product-inquiry-card-text span{
  color:#52677d;
  font-size:16px;
  line-height:1.6;
  word-break:keep-all;
}
.product-inquiry-card-btn{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:150px;
  height:52px;
  background:#1177dc;
  color:#fff;
  font-size:17px;
  font-weight:900;
  text-decoration:none;
  box-shadow:0 8px 18px rgba(17,119,220,.16);
}
.product-inquiry-card-btn:hover{background:#075fb8;color:#fff;}

@media(max-width:768px){
  .content-card.product-detail-oldstyle{
    width:100%;
    max-width:100%;
    padding:18px 14px 22px;
    border-radius:0;
  }
  .product-detail-oldstyle .product-detail-head{
    display:block;
    padding-bottom:16px;
  }
  .product-detail-oldstyle .badge{
    margin-bottom:10px;
    height:30px;
    padding:0 12px;
  }
  .product-detail-oldstyle .product-detail-head h2{
    margin-bottom:10px;
    line-height:1.32;
    letter-spacing:-.8px;
  }
  .product-detail-oldstyle .product-detail-head p{
  }
  .product-detail-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-top:16px;
    padding-top:0;
  }
  .product-action-btn{
    min-width:0;
    height:42px;
    padding:0 10px;
    border-radius:0;
    font-size:13.5px;
  }
  .product-detail-main-image{
    margin:18px 0;
    padding:10px;
    border-radius:0;
  }
  .product-detail-section-wrap{margin-top:20px;}
  .product-detail-section-title{
    margin-bottom:14px;
    font-size:20px;
  }
  .product-detail-info-list{gap:12px;}
  .product-info-row{
    display:block;
    padding:18px 16px;
    border-radius:0;
  }
  .product-info-icon{
    width:44px;
    height:44px;
    margin:0 0 12px;
    border-radius:0;
  }
  .product-info-icon::before{
    width:17px;
    height:17px;
    border-width:2px;
    border-radius:0;
  }
  .product-info-icon::after{
    top:12px;
    width:12px;
    height:5px;
    border-width:2px;
  }
  .product-info-content h4{
    margin-bottom:7px;
    font-size:18px;
  }
  .product-info-content p{
    font-size:14.5px;
    line-height:1.82;
    word-break:keep-all;
  }
  .product-html-box,
  .product-txt-box{
    padding:18px 16px;
    border-radius:0;
  }
  .product-inquiry-card-clean{
    display:block;
    margin-top:22px;
    padding:22px 18px;
    border-radius:0;
    text-align:left;
  }
  .product-inquiry-card-icon{
    width:58px;
    height:58px;
    margin:0 0 14px;
  }
  .product-inquiry-card-icon::before{
    left:16px;
    top:18px;
    width:26px;
    height:19px;
  }
  .product-inquiry-card-icon::after{
    left:24px;
    top:36px;
  }
  .product-inquiry-card-text strong{
    font-size:22px;
  }
  .product-inquiry-card-text span{
    font-size:14.5px;
    line-height:1.65;
  }
  .product-inquiry-card-btn{
    width:100%;
    min-width:0;
    height:46px;
    margin-top:16px;
    border-radius:0;
    font-size:16px;
  }
}

/* =========================================================
   [2026-05-13 v813] 설비소개 카드 이미지 2레이어 구조 정리
   - 파일명: /assets/css/product.css
   - 목적: 배경용(bg) + 실제 장비용(machine) 이미지를 분리 출력
   - 지원 경로: /images/category-bg/, /images/category-machine/, /images/category/
========================================================= */
body.page-products .equipment-home-section .equipment-home-grid{
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:clamp(18px,1.8vw,24px);
}

body.page-products .equipment-home-section .equipment-home-grid > .equipment-home-card,
body.page-products .equipment-home-section .equipment-home-grid > .equipment-home-card:nth-child(1),
body.page-products .equipment-home-section .equipment-home-grid > .equipment-home-card:nth-child(2){
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:clamp(250px,20vw,310px);
  overflow:hidden;
  border:1px solid #bfd8f1;
  background:#fff;
  box-shadow:0 18px 46px rgba(15,35,67,.065);
}

body.page-products .equipment-home-section .equipment-home-grid > .equipment-home-card:nth-child(1),
body.page-products .equipment-home-section .equipment-home-grid > .equipment-home-card:nth-child(2){
  grid-column:span 12;
}

body.page-products .equipment-home-section .equipment-home-grid > .equipment-home-card:nth-child(3),
body.page-products .equipment-home-section .equipment-home-grid > .equipment-home-card:nth-child(4){
  grid-column:span 6;
  min-height:clamp(300px,27vw,380px);
}

body.page-products .equipment-home-section .equipment-card-visual{
  position:absolute;
  inset:0;
  z-index:0;
  display:block;
  overflow:hidden;
  background:
    linear-gradient(90deg,#fff 0%,#fff 35%,rgba(247,251,255,.86) 58%,rgba(227,241,255,.96) 100%);
  pointer-events:none;
}

body.page-products .equipment-home-section .equipment-card-bg,
body.page-products .equipment-home-section .equipment-card-machine{
  position:absolute;
  display:block;
  max-width:none;
  pointer-events:none;
  user-select:none;
}

body.page-products .equipment-home-section .equipment-card-bg{
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:right center;
  opacity:.72;
}

body.page-products .equipment-home-section .equipment-card-machine{
  right:clamp(20px,3.2vw,54px);
  top:50%;
  width:min(50%,560px);
  height:80%;
  transform:translateY(-50%);
  opacity:.98;
  filter:drop-shadow(0 18px 28px rgba(16,45,76,.10));
}

body.page-products .equipment-home-section .equipment-card-visual::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  background:
    linear-gradient(90deg,#fff 0%,#fff 34%,rgba(255,255,255,.88) 46%,rgba(255,255,255,.18) 66%,rgba(255,255,255,0) 100%);
  pointer-events:none;
}

body.page-products .equipment-home-section .equipment-card-visual::after{
  content:"";
  position:absolute;
  right:-12%;
  bottom:-45%;
  z-index:3;
  width:50%;
  aspect-ratio:1/1;
  border-radius:50%;
  background:rgba(45,139,226,.16);
  pointer-events:none;
}

body.page-products .equipment-home-section .equipment-card-body{
  position:relative;
  z-index:4;
  width:min(42%,430px);
  min-height:100%;
  padding:clamp(28px,3.2vw,42px);
  background:transparent;
}

body.page-products .equipment-home-section .equipment-home-card:nth-child(3) .equipment-card-body,
body.page-products .equipment-home-section .equipment-home-card:nth-child(4) .equipment-card-body{
  width:min(58%,360px);
}

body.page-products .equipment-home-section .equipment-card-body small{
  align-self:flex-start;
  padding:7px 10px;
  background:#edf7ff;
  color:#0f66bb;
}

body.page-products .equipment-home-section .equipment-card-body strong{
  margin:16px 0 12px;
  font-size:clamp(26px,2.25vw,38px);
  line-height:1.18;
  letter-spacing:-1.35px;
}

body.page-products .equipment-home-section .equipment-card-body > span{
  color:#314a66;
  font-size:15px;
  font-weight:800;
  line-height:1.68;
}

body.page-products .equipment-home-section .equipment-card-body u{
  width:min(100%,190px);
  background:rgba(255,255,255,.82);
}

body.page-products .equipment-home-section .equipment-home-card:hover .equipment-card-machine{
  transform:translateY(-50%) scale(1.025);
}

body.page-products .equipment-home-section .equipment-home-card:hover .equipment-card-bg{
  transform:scale(1.015);
}

@media (max-width:900px){
  body.page-products .equipment-home-section .equipment-home-grid > .equipment-home-card,
  body.page-products .equipment-home-section .equipment-home-grid > .equipment-home-card:nth-child(1),
  body.page-products .equipment-home-section .equipment-home-grid > .equipment-home-card:nth-child(2),
  body.page-products .equipment-home-section .equipment-home-grid > .equipment-home-card:nth-child(3),
  body.page-products .equipment-home-section .equipment-home-grid > .equipment-home-card:nth-child(4){
    grid-column:span 12;
    min-height:360px;
  }

  body.page-products .equipment-home-section .equipment-card-body,
  body.page-products .equipment-home-section .equipment-home-card:nth-child(3) .equipment-card-body,
  body.page-products .equipment-home-section .equipment-home-card:nth-child(4) .equipment-card-body{
    width:100%;
    max-width:100%;
    padding:24px 22px 178px;
  }

  body.page-products .equipment-home-section .equipment-card-visual{
    background:linear-gradient(180deg,#fff 0%,#fff 42%,#eef7ff 100%);
  }

  body.page-products .equipment-home-section .equipment-card-visual::before{
    background:linear-gradient(180deg,#fff 0%,rgba(255,255,255,.96) 40%,rgba(255,255,255,.18) 68%,rgba(255,255,255,0) 100%);
  }

  body.page-products .equipment-home-section .equipment-card-machine{
    right:16px;
    top:auto;
    bottom:18px;
    width:72%;
    height:170px;
    transform:none;
  }

  body.page-products .equipment-home-section .equipment-home-card:hover .equipment-card-machine{
    transform:scale(1.02);
  }

  body.page-products .equipment-home-section .equipment-card-bg{
    object-position:right bottom;
  }

  body.page-products .equipment-home-section .equipment-card-body strong{
    font-size:25px;
  }
}

/* =========================================================
   [2026-05-13 PATCH] 설비소개 개별페이지 Hero 이미지 결합 보정
   - 파일명: /assets/css/product.css
   - 목적: /images/category-hero/*-bg + *-machine을 같은 Hero 안에서 결합
   - 대상: /products.php?category=line|auto|printer|semi_printer
========================================================= */
.line-automation-hero--compact.category-hero-with-visual,
.auto-packer-hero--compact.category-hero-with-visual,
.category-showcase-hero--compact.category-hero-with-visual{
  grid-template-columns:minmax(0,1.02fr) minmax(420px,.98fr);
  gap:clamp(28px,3vw,56px);
  align-items:center;
  min-height:clamp(420px,34vw,560px);
}

.line-automation-hero--compact.category-hero-with-visual .line-automation-copy,
.auto-packer-hero--compact.category-hero-with-visual .auto-packer-copy,
.category-showcase-hero--compact.category-hero-with-visual .category-showcase-copy{
  max-width:760px;
}

.category-hero-visual{
  position:relative;
  z-index:1;
  display:block;
  min-height:clamp(300px,25vw,430px);
  overflow:visible;
  isolation:isolate;
}

.category-hero-visual::before{
  content:"";
  position:absolute;
  inset:0 0 auto auto;
  width:100%;
  z-index:0;
  background-image:var(--category-hero-bg);
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center center;
  border:1px solid rgba(190,215,240,.72);
  box-shadow:0 20px 48px rgba(15,60,105,.10);
  opacity:.96;
}

.category-hero-bg-img{
  position:absolute;
  inset:0 0 auto auto;
  z-index:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  border:1px solid rgba(190,215,240,.72);
  box-shadow:0 20px 48px rgba(15,60,105,.10);
  opacity:.96;
}

.category-hero-machine-img{
  position:absolute;
  left:50%;
  bottom:8%;
  z-index:2;
  display:block;
  width:min(108%,760px);
  max-width:none;
  transform:translateX(-50%);
  filter:drop-shadow(0 22px 22px rgba(20,45,70,.13));
}

.category-hero-visual::after{
  content:"";
  position:absolute;
  left:8%;
  right:8%;
  bottom:8%;
  z-index:1;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(30,120,200,.22),transparent);
  pointer-events:none;
}

.category-showcase-hero--compact.category-hero-with-visual .category-hero-bg-img,
.category-showcase-hero--compact.category-hero-with-visual .category-hero-visual::before{
  opacity:.72;
}

.category-showcase-hero--compact.category-hero-with-visual .category-hero-machine-img{
  height:60%;
}

@media (max-width:1100px){
  .line-automation-hero--compact.category-hero-with-visual,
  .auto-packer-hero--compact.category-hero-with-visual,
  .category-showcase-hero--compact.category-hero-with-visual{
    grid-template-columns:1fr;
    min-height:auto;
  }

  .category-hero-visual{
    min-height:320px;
  }
}

@media (max-width:768px){
  .line-automation-hero--compact.category-hero-with-visual,
  .auto-packer-hero--compact.category-hero-with-visual,
  .category-showcase-hero--compact.category-hero-with-visual{
    gap:18px;
  }

  .category-hero-visual{
    min-height:270px;
  }

  .category-hero-bg-img,
  .category-hero-visual::before{
    height:100%;
  }

  .category-hero-machine-img{
    width:108%;
    height:58%;
  }
}

/* =========================================================
   [2026-05-13 PATCH] 설비소개 이미지 크기 보정
   - 파일명: /assets/css/product.css
   - 목적: 설비소개 대표 카드와 개별 설비 Hero의 장비 사진이 작게 보이는 문제 수정
   - 원칙: 기존 2레이어 구조(bg + machine) 유지, 이미지 경로/마크업 변경 없음
========================================================= */
body.page-products .equipment-home-section .equipment-card-machine{
  right:clamp(8px,1.5vw,28px);
  width:min(66%,760px);
  height:96%;
  object-fit:contain;
  object-position:right center;
}

body.page-products .equipment-home-section .equipment-home-card:nth-child(3) .equipment-card-machine,
body.page-products .equipment-home-section .equipment-home-card:nth-child(4) .equipment-card-machine{
  right:clamp(0px,1vw,18px);
  width:min(72%,560px);
  height:92%;
}

body.page-products .equipment-home-section .equipment-card-visual::before{
  background:linear-gradient(90deg,#fff 0%,#fff 31%,rgba(255,255,255,.82) 43%,rgba(255,255,255,.12) 62%,rgba(255,255,255,0) 100%);
}

.category-hero-visual{
  min-height:clamp(340px,29vw,500px);
}

.category-hero-machine-img{
  bottom:3%;
  width:min(124%,900px);
  height:78%;
  object-fit:contain;
  object-position:center bottom;
}

.category-showcase-hero--compact.category-hero-with-visual .category-hero-machine-img{
  height:76%;
}

@media (max-width:1100px){
  .category-hero-visual{
    min-height:360px;
  }

  .category-hero-machine-img{
    width:116%;
    height:74%;
  }
}

@media (max-width:900px){
  body.page-products .equipment-home-section .equipment-card-machine,
  body.page-products .equipment-home-section .equipment-home-card:nth-child(3) .equipment-card-machine,
  body.page-products .equipment-home-section .equipment-home-card:nth-child(4) .equipment-card-machine{
    right:10px;
    bottom:10px;
    width:88%;
    height:210px;
    object-position:right bottom;
  }
}

@media (max-width:768px){
  .category-hero-visual{
    min-height:260px;
  }

  .category-hero-machine-img{
    bottom:4%;
    width:118%;
    height:72%;
  }
}


/* =========================================================
   [2026-05-13 PATCH] 설비소개 대표 카드 선명도/크기 최종 보정
   - 파일명: /assets/css/product.css
   - 원인: equipment-card-bg opacity(.72)와 equipment-card-visual::before/::after 오버레이가
     장비 이미지 위까지 덮여 장비와 배경이 함께 뿌옇게 보였음.
   - 처리: 배경/장비 레이어 z-index 분리, 배경 opacity 1 복구, 오버레이를 텍스트 경계용으로 축소,
     PC 카드 높이와 장비 비율을 소폭 확대.
========================================================= */
body.page-products .equipment-home-section .equipment-home-grid > .equipment-home-card,
body.page-products .equipment-home-section .equipment-home-grid > .equipment-home-card:nth-child(1),
body.page-products .equipment-home-section .equipment-home-grid > .equipment-home-card:nth-child(2){
  min-height:clamp(330px,23vw,405px);
}

body.page-products .equipment-home-section .equipment-card-visual{
  isolation:isolate;
  background:#f7fbff;
}

body.page-products .equipment-home-section .equipment-card-bg{
  z-index:0;
  opacity:1;
  filter:none;
  transform:none;
}

body.page-products .equipment-home-section .equipment-card-machine{
  z-index:3;
  right:clamp(0px,1.1vw,20px);
  width:min(72%,820px);
  height:104%;
  opacity:1;
  filter:drop-shadow(0 16px 24px rgba(16,45,76,.10));
}

body.page-products .equipment-home-section .equipment-home-card:nth-child(3) .equipment-card-machine,
body.page-products .equipment-home-section .equipment-home-card:nth-child(4) .equipment-card-machine{
  width:min(74%,600px);
  height:98%;
}

body.page-products .equipment-home-section .equipment-card-visual::before{
  z-index:1;
  background:linear-gradient(90deg,#fff 0%,#fff 29%,rgba(255,255,255,.74) 39%,rgba(255,255,255,.10) 57%,rgba(255,255,255,0) 100%);
}

body.page-products .equipment-home-section .equipment-card-visual::after{
  z-index:2;
  right:-14%;
  bottom:-48%;
  opacity:.62;
}

body.page-products .equipment-home-section .equipment-card-body{
  z-index:5;
  width:min(35%,410px);
}

body.page-products .equipment-home-section .equipment-home-card:nth-child(3) .equipment-card-body,
body.page-products .equipment-home-section .equipment-home-card:nth-child(4) .equipment-card-body{
  width:min(50%,350px);
}

body.page-products .equipment-home-section .equipment-home-card:hover .equipment-card-machine{
  transform:translateY(-50%) scale(1.015);
}

@media (max-width:900px){
  body.page-products .equipment-home-section .equipment-home-grid > .equipment-home-card,
  body.page-products .equipment-home-section .equipment-home-grid > .equipment-home-card:nth-child(1),
  body.page-products .equipment-home-section .equipment-home-grid > .equipment-home-card:nth-child(2),
  body.page-products .equipment-home-section .equipment-home-grid > .equipment-home-card:nth-child(3),
  body.page-products .equipment-home-section .equipment-home-grid > .equipment-home-card:nth-child(4){
    min-height:380px;
  }

  body.page-products .equipment-home-section .equipment-card-machine,
  body.page-products .equipment-home-section .equipment-home-card:nth-child(3) .equipment-card-machine,
  body.page-products .equipment-home-section .equipment-home-card:nth-child(4) .equipment-card-machine{
    right:8px;
    bottom:8px;
    width:92%;
    height:220px;
    opacity:1;
  }

  body.page-products .equipment-home-section .equipment-card-visual::before{
    background:linear-gradient(180deg,#fff 0%,rgba(255,255,255,.95) 38%,rgba(255,255,255,.16) 66%,rgba(255,255,255,0) 100%);
  }
}


.product-card-image,.product-thumb{aspect-ratio:4/3;overflow:hidden;}
.product-card-image img,.product-thumb img{width:100%;height:100%;object-fit:cover;object-position:center;}

/* =========================================================
   [2026-05-14 PATCH] 제품 이미지/영상 구조 단순화
   - 대표이미지.webp: 카드 / 모바일 / 상세 상단 공통 사용
   - 1.webp, 2.webp ...: 상세 본문 이미지 순차 출력
   - video.txt: 대표이미지 바로 아래 작동 영상 자동 출력
========================================================= */
.product-card-image,
.product-thumb,
.product-home-thumb,
.product-relation-thumb{
  aspect-ratio:4/3;
  overflow:hidden;
  background:#f7fbff;
}

.product-card-image img,
.product-thumb img,
.product-home-thumb img,
.product-relation-thumb img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  background:#fff;
}

.product-detail-main-image{
  aspect-ratio:4/3;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
}

.product-detail-main-image img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
}

.product-video-section{
  margin-top:28px;
  padding:26px;
  border:1px solid #dce7f3;
  background:linear-gradient(180deg,#ffffff 0%,#f7fbff 100%);
}

.product-video-head{
  margin-bottom:18px;
}

.product-video-head span{
  display:inline-block;
  margin-bottom:7px;
  color:#0f66bb;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
}

.product-video-head h3{
  margin:0 0 8px;
  color:#102d4c;
  font-size:24px;
  line-height:1.3;
  letter-spacing:-.7px;
}

.product-video-head p{
  margin:0;
  color:#607086;
  font-size:15px;
  line-height:1.7;
}

.product-video-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}

.product-video-box{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
  background:#000;
}

.product-video-box iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}

.product-detail-image-list{
  margin-top:30px;
}

.product-detail-image-box{
  background:#fff;
}

.product-detail-image-box img{
  width:100%;
  height:auto;
  object-fit:contain;
  object-position:center;
}

@media (max-width:768px){
  .product-video-section{
    margin-top:22px;
    padding:18px 14px;
  }

  .product-video-head h3{
    font-size:21px;
  }

  .product-video-head p{
    font-size:14px;
  }
}

/* =========================================================
   [2026-05-14] 상세설명.txt 섹션형 파싱 안정화 보정
   - 01 제품 특징 / [제품 특징] / 제품 특징 형식 공통 대응
   - 목록/표/문단을 카드 내부에서 가독성 있게 출력
========================================================= */
.product-info-content p + p{
  margin-top:10px;
}
.product-detail-list{
  margin:10px 0 0;
  padding-left:20px;
  color:#33475f;
  font-size:16px;
  line-height:1.85;
  word-break:keep-all;
}
.product-detail-list li{
  margin:3px 0;
}
.product-detail-table{
  width:100%;
  margin:12px 0 0;
  border-collapse:collapse;
  border:1px solid #d9e8f6;
  background:#fff;
  font-size:15px;
  line-height:1.65;
}
.product-detail-table th,
.product-detail-table td{
  padding:10px 12px;
  border:1px solid #d9e8f6;
  text-align:left;
  vertical-align:top;
  color:#33475f;
}
.product-detail-table th{
  background:#f4f9ff;
  color:#0a2d4e;
  font-weight:900;
}
@media(max-width:768px){
  .product-detail-list{
    font-size:14.5px;
    line-height:1.82;
  }
  .product-detail-table{
    display:block;
    overflow-x:auto;
    font-size:14px;
  }
  .product-detail-table th,
  .product-detail-table td{
    padding:9px 10px;
    white-space:nowrap;
  }
}

/* =========================================================
   [2026-05-16] 제품 상세페이지 설명서형 가독성 복원
   - 예전 상세페이지처럼 단순한 정보 박스 구조로 정리
   - 아이콘/그림자/장식 요소를 줄이고 제목·본문·여백 중심으로 재정렬
   - 관련/옵션 카드는 기존 기능 유지, 상세 설명 영역만 정보 전달형으로 보정
========================================================= */
.product-detail-oldstyle .product-detail-section-wrap{
  margin:34px 0 0;
}

.product-detail-oldstyle .product-detail-section-title{
  padding:0 0 11px;
  color:#07345d;
  font-size:26px;
  line-height:1.28;
  letter-spacing:-.55px;
  border-bottom:1px solid #cfe2f3;
}

.product-detail-oldstyle .product-detail-section-title::after{
  width:54px;
  background:#0b65b9;
}

.product-detail-oldstyle .product-detail-info-list{
}

.product-detail-oldstyle .product-info-row{
  padding:22px 24px;
  border:1px solid #d5e7f6;
}

.product-detail-oldstyle .product-info-icon{
}

.product-detail-oldstyle .product-info-content h4{
  margin:0 0 12px;
}

.product-detail-oldstyle .product-info-content p{
  color:#46586d;
  line-height:1.9;
}

.product-detail-oldstyle .product-info-content p + p{
  margin-top:10px;
}

.product-detail-oldstyle .product-detail-list{
  margin:10px 0 0;
  color:#46586d;
  word-break:keep-all;
}

.product-detail-oldstyle .product-detail-list li{
  margin:4px 0;
}

.product-detail-oldstyle .product-detail-table{
  margin-top:12px;
  border:1px solid #d5e7f6;
}

.product-detail-oldstyle .product-detail-table th,
.product-detail-oldstyle .product-detail-table td{
  border:1px solid #d5e7f6;
  color:#46586d;
}

.product-detail-oldstyle .product-detail-table th{
}

@media(max-width:768px){
  .product-detail-oldstyle .product-detail-section-wrap{
  }

  .product-detail-oldstyle .product-detail-section-title{
    font-size:23px;
  }

  .product-detail-oldstyle .product-info-row{
  }

  .product-detail-oldstyle .product-info-content h4{
  }

  .product-detail-oldstyle .product-info-content p,
  .product-detail-oldstyle .product-detail-list{
    font-size:15px;
  }
}

/* =========================================================
   [2026-05-16 PATCH] 제품 상세페이지 예전 설명서형 스타일 재정리
   - 상세설명.txt를 중심으로 단순 정보 박스 구조 유지
   - detail.html 중복 출력 제거와 함께 적용되는 최종 override
   - 과한 그림자/카드/표 느낌을 줄이고 제목·여백·본문 가독성 우선
========================================================= */
.product-detail-oldstyle.content-card{
  background:#fff;
  border:0;
  box-shadow:none;
}

.product-detail-oldstyle .product-detail-head{
  margin:0 0 22px;
  padding:0 0 18px;
  border-bottom:1px solid #cfddeb;
}

.product-detail-oldstyle .badge{
  display:block;
  margin:0 0 8px;
  color:#0f66bb;
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
}

.product-detail-oldstyle .product-detail-head h2{
  margin:0 0 10px;
  color:#062f55;
  font-size:34px;
  line-height:1.22;
  letter-spacing:-1px;
  font-weight:900;
}

.product-detail-oldstyle .product-detail-head p{
  max-width:980px;
  margin:0;
  color:#5c6f83;
  font-size:15.5px;
  line-height:1.75;
  word-break:keep-all;
}

.product-detail-oldstyle .product-detail-main-image{
  margin:0 0 30px;
  padding:30px;
  min-height:420px;
  border:1px solid #d3e3f2;
  background:#fff;
  box-shadow:none;
}

.product-detail-oldstyle .product-detail-main-image img{
  max-width:100%;
  max-height:560px;
  object-fit:contain;
}

.product-detail-oldstyle .product-detail-section-wrap{
  margin:32px 0 0;
}

.product-detail-oldstyle .product-detail-section-title{
  margin:0 0 14px;
  padding:0 0 10px;
  color:#062f55;
  font-size:25px;
  line-height:1.3;
  font-weight:900;
  letter-spacing:-.7px;
  border-bottom:1px solid #cfddeb;
}

.product-detail-oldstyle .product-detail-section-title::after{
  content:"";
  display:block;
  width:52px;
  height:3px;
  margin-top:10px;
  background:#0f66bb;
}

.product-detail-oldstyle .product-detail-info-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.product-detail-oldstyle .product-info-row{
  display:block;
  margin:0;
  padding:23px 24px 22px;
  border:1px solid #d3e3f2;
  background:#fff;
  box-shadow:none;
}

.product-detail-oldstyle .product-info-row:hover{
  transform:none;
  box-shadow:none;
  border-color:#d3e3f2;
}

.product-detail-oldstyle .product-info-icon{
  display:none;
}

.product-detail-oldstyle .product-info-content h4{
  margin:0 0 13px;
  color:#082f55;
  font-size:19px;
  line-height:1.35;
  font-weight:900;
  letter-spacing:-.35px;
}

.product-detail-oldstyle .product-info-content p{
  margin:0;
  color:#4d6073;
  font-size:15.5px;
  line-height:1.95;
  font-weight:500;
  word-break:keep-all;
  overflow-wrap:anywhere;
}

.product-detail-oldstyle .product-info-content p + p{
  margin-top:9px;
}

.product-detail-oldstyle .product-detail-list{
  margin:8px 0 0;
  padding-left:18px;
  color:#4d6073;
  font-size:15.5px;
  line-height:1.9;
  font-weight:500;
}

.product-detail-oldstyle .product-detail-list li{
  margin:3px 0;
}

.product-detail-oldstyle .product-detail-table{
  width:100%;
  margin:12px 0 0;
  border:1px solid #d3e3f2;
  border-collapse:collapse;
  background:#fff;
  box-shadow:none;
  font-size:15px;
  line-height:1.75;
}

.product-detail-oldstyle .product-detail-table th,
.product-detail-oldstyle .product-detail-table td{
  padding:11px 13px;
  border:1px solid #d3e3f2;
  color:#4d6073;
  vertical-align:top;
}

.product-detail-oldstyle .product-detail-table th{
  width:22%;
  color:#082f55;
  background:#f7fbff;
  font-weight:900;
}

.product-detail-oldstyle .product-txt-box,
.product-detail-oldstyle .product-html-box{
  margin-top:26px;
  padding:24px;
  border:1px solid #d3e3f2;
  background:#fff;
  box-shadow:none;
}

.product-detail-oldstyle .product-detail-image-list{
  margin-top:30px;
  display:flex;
  flex-direction:column;
  gap:18px;
}

.product-detail-oldstyle .product-detail-image-box{
  padding:0;
  border:0;
  background:#fff;
  box-shadow:none;
}

.product-detail-oldstyle .product-detail-image-box img{
  display:block;
  width:100%;
  height:auto;
  border:1px solid #e1e9f1;
  background:#fff;
}

@media(max-width:768px){
  .product-detail-oldstyle.content-card{
    padding:0;
  }

  .product-detail-oldstyle .product-detail-head{
    margin-bottom:18px;
  }

  .product-detail-oldstyle .product-detail-head h2{
    font-size:25px;
    line-height:1.3;
  }

  .product-detail-oldstyle .product-detail-head p{
    font-size:14.5px;
    line-height:1.72;
  }

  .product-detail-oldstyle .product-detail-actions{
    margin-top:16px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
  }

  .product-detail-oldstyle .product-detail-main-image{
    min-height:260px;
    padding:18px;
    margin-bottom:24px;
  }

  .product-detail-oldstyle .product-detail-section-wrap{
    margin-top:26px;
  }

  .product-detail-oldstyle .product-detail-section-title{
    font-size:22px;
    margin-bottom:12px;
  }

  .product-detail-oldstyle .product-info-row{
    padding:18px 16px;
  }

  .product-detail-oldstyle .product-info-content h4{
    font-size:18px;
    margin-bottom:10px;
  }

  .product-detail-oldstyle .product-info-content p,
  .product-detail-oldstyle .product-detail-list{
    font-size:14.7px;
    line-height:1.85;
  }

  .product-detail-oldstyle .product-detail-table{
    display:block;
    overflow-x:auto;
    font-size:14px;
  }

  .product-detail-oldstyle .product-detail-table th,
  .product-detail-oldstyle .product-detail-table td{
    padding:9px 10px;
    white-space:nowrap;
  }
}

/* =========================================================
   [2026-05-16] 제품 상세페이지 가독성 확대 FINAL
   - 원인: CSS 파일 캐시 버전 미갱신 + 상세페이지 전용 selector 우선순위 부족
   - 조치: templates/head.php 버전 갱신 + 상세페이지 전용 selector로 통일
   - 기준: 40~60대 현장 고객 기준의 설명서형 가독성
========================================================= */

section.content-card.product-detail.product-detail-oldstyle{
  padding:46px 48px 54px;
  color:#24384f;
}

section.content-card.product-detail.product-detail-oldstyle .product-detail-head{
  margin:0 0 30px;
  padding-bottom:22px;
  border-bottom:1px solid #d8e6f3;
}

section.content-card.product-detail.product-detail-oldstyle .product-detail-head h2{
  margin:0 0 14px;
  color:#0a2746;
  font-size:40px;
  line-height:1.24;
  font-weight:900;
  letter-spacing:-1.2px;
}

section.content-card.product-detail.product-detail-oldstyle .product-detail-head p{
  max-width:980px;
  margin:0;
  color:#435a72;
  font-size:18px;
  line-height:1.9;
  word-break:keep-all;
}

section.content-card.product-detail.product-detail-oldstyle .product-detail-main-image{
  margin:30px 0 34px;
  padding:24px;
  border:1px solid #d2e3f3;
  background:#fff;
  box-shadow:none;
}

section.content-card.product-detail.product-detail-oldstyle .product-detail-section-wrap{
  margin:34px 0 0;
}

section.content-card.product-detail.product-detail-oldstyle .product-detail-section-title{
  margin:0 0 22px;
  padding-bottom:14px;
  color:#092844;
  font-size:30px;
  line-height:1.32;
  font-weight:900;
  letter-spacing:-.7px;
  border-bottom:1px solid #d7e5f2;
}

section.content-card.product-detail.product-detail-oldstyle .product-detail-section-title::after{
  width:52px;
  height:4px;
  background:#0f66bb;
}

section.content-card.product-detail.product-detail-oldstyle .product-detail-info-list{
  display:flex;
  flex-direction:column;
  gap:16px;
}

section.content-card.product-detail.product-detail-oldstyle .product-info-row,
section.content-card.product-detail.product-detail-oldstyle .product-txt-box,
section.content-card.product-detail.product-detail-oldstyle .product-html-box{
  display:block;
  margin:18px 0;
  padding:30px 32px;
  border:1px solid #d3e4f3;
  background:#fff;
  box-shadow:none;
}

section.content-card.product-detail.product-detail-oldstyle .product-info-icon{
  display:none;
}

section.content-card.product-detail.product-detail-oldstyle .product-info-content h4,
section.content-card.product-detail.product-detail-oldstyle .product-txt-box h3,
section.content-card.product-detail.product-detail-oldstyle .product-html-box h3{
  margin:0 0 16px;
  color:#092844;
  font-size:23px;
  line-height:1.36;
  font-weight:900;
  letter-spacing:-.45px;
}

section.content-card.product-detail.product-detail-oldstyle .product-info-content p,
section.content-card.product-detail.product-detail-oldstyle .product-txt-box p,
section.content-card.product-detail.product-detail-oldstyle .product-html-box p,
section.content-card.product-detail.product-detail-oldstyle .product-html-box li,
section.content-card.product-detail.product-detail-oldstyle .product-txt-box li{
  margin:0 0 13px;
  color:#263c54;
  font-size:18px;
  line-height:1.95;
  font-weight:500;
  word-break:keep-all;
  overflow-wrap:anywhere;
}

section.content-card.product-detail.product-detail-oldstyle .product-info-content p:last-child,
section.content-card.product-detail.product-detail-oldstyle .product-txt-box p:last-child,
section.content-card.product-detail.product-detail-oldstyle .product-html-box p:last-child{
  margin-bottom:0;
}

section.content-card.product-detail.product-detail-oldstyle .product-txt-box ul,
section.content-card.product-detail.product-detail-oldstyle .product-html-box ul,
section.content-card.product-detail.product-detail-oldstyle .product-txt-box ol,
section.content-card.product-detail.product-detail-oldstyle .product-html-box ol{
  margin:0;
  padding-left:24px;
}

section.content-card.product-detail.product-detail-oldstyle .product-txt-box li,
section.content-card.product-detail.product-detail-oldstyle .product-html-box li{
  margin-bottom:8px;
  padding-left:4px;
}

section.content-card.product-detail.product-detail-oldstyle .product-html-box table{
  width:100%;
  margin:18px 0;
  border-collapse:collapse;
  font-size:17px;
  line-height:1.8;
}

section.content-card.product-detail.product-detail-oldstyle .product-html-box th,
section.content-card.product-detail.product-detail-oldstyle .product-html-box td{
  padding:16px 18px;
  border:1px solid #d6e5f2;
  color:#263c54;
  vertical-align:top;
}

section.content-card.product-detail.product-detail-oldstyle .product-html-box th{
  background:#f7fbff;
  color:#092844;
  font-size:17px;
  font-weight:900;
}

section.content-card.product-detail.product-detail-oldstyle .product-detail-bottom-actions{
  margin-top:36px;
  padding-top:28px;
}

section.content-card.product-detail.product-detail-oldstyle .product-action-btn{
  min-width:150px;
  height:52px;
  padding:0 24px;
  font-size:17px;
  font-weight:900;
}

section.content-card.product-detail.product-detail-oldstyle .product-inquiry-card-clean{
  margin:34px 0 0;
  padding:32px 34px;
}

section.content-card.product-detail.product-detail-oldstyle .product-inquiry-card-text strong{
  font-size:30px;
  line-height:1.28;
}

section.content-card.product-detail.product-detail-oldstyle .product-inquiry-card-text span{
  font-size:18px;
  line-height:1.8;
}

section.content-card.product-detail.product-detail-oldstyle .product-inquiry-card-btn{
  min-width:170px;
  height:56px;
  font-size:18px;
}

@media(max-width:768px){
  section.content-card.product-detail.product-detail-oldstyle{
    padding:24px 18px 30px;
  }

  section.content-card.product-detail.product-detail-oldstyle .product-detail-head{
    margin-bottom:22px;
    padding-bottom:18px;
  }

  section.content-card.product-detail.product-detail-oldstyle .product-detail-head h2{
    font-size:30px;
    line-height:1.3;
    letter-spacing:-.9px;
  }

  section.content-card.product-detail.product-detail-oldstyle .product-detail-head p{
    font-size:17px;
    line-height:1.85;
  }

  section.content-card.product-detail.product-detail-oldstyle .product-detail-main-image{
    margin:20px 0 24px;
    padding:12px;
  }

  section.content-card.product-detail.product-detail-oldstyle .product-detail-section-wrap{
    margin-top:26px;
  }

  section.content-card.product-detail.product-detail-oldstyle .product-detail-section-title{
    margin-bottom:16px;
    font-size:24px;
    line-height:1.35;
  }

  section.content-card.product-detail.product-detail-oldstyle .product-info-row,
  section.content-card.product-detail.product-detail-oldstyle .product-txt-box,
  section.content-card.product-detail.product-detail-oldstyle .product-html-box{
    margin:14px 0;
    padding:22px 18px;
  }

  section.content-card.product-detail.product-detail-oldstyle .product-info-content h4,
  section.content-card.product-detail.product-detail-oldstyle .product-txt-box h3,
  section.content-card.product-detail.product-detail-oldstyle .product-html-box h3{
    margin-bottom:12px;
    font-size:21px;
    line-height:1.38;
  }

  section.content-card.product-detail.product-detail-oldstyle .product-info-content p,
  section.content-card.product-detail.product-detail-oldstyle .product-txt-box p,
  section.content-card.product-detail.product-detail-oldstyle .product-html-box p,
  section.content-card.product-detail.product-detail-oldstyle .product-html-box li,
  section.content-card.product-detail.product-detail-oldstyle .product-txt-box li{
    font-size:17px;
    line-height:1.9;
  }

  section.content-card.product-detail.product-detail-oldstyle .product-html-box table{
    font-size:16px;
  }

  section.content-card.product-detail.product-detail-oldstyle .product-html-box th,
  section.content-card.product-detail.product-detail-oldstyle .product-html-box td{
    padding:13px 12px;
  }

  section.content-card.product-detail.product-detail-oldstyle .product-detail-actions{
    grid-template-columns:1fr;
    gap:9px;
  }

  section.content-card.product-detail.product-detail-oldstyle .product-action-btn{
    width:100%;
    min-width:0;
    height:48px;
    font-size:16px;
  }

  section.content-card.product-detail.product-detail-oldstyle .product-inquiry-card-clean{
    padding:24px 18px;
  }

  section.content-card.product-detail.product-detail-oldstyle .product-inquiry-card-text strong{
    font-size:24px;
  }

  section.content-card.product-detail.product-detail-oldstyle .product-inquiry-card-text span{
    font-size:17px;
    line-height:1.75;
  }
}


/* =========================================================
   [2026-05-16] PRODUCT / SERIES WIDTH LIMIT PATCH
   목적:
   - 설비소개 제품/시리즈 카드가 화면 폭에 따라 무한 확대되는 현상 방지
   - 시리즈 대표카드는 2개 카드 폭 느낌을 유지하되 콘텐츠 제한폭 안에서만 확장
   - 대표 이미지는 가로형 비율로 안정화
========================================================= */
body.page-products .product-control-panel,
body.page-products .product-series-intro,
body.page-products .product-series-grid,
body.page-products .product-list-head,
body.page-products .product-grid,
body[data-sidebar-type="products"] .product-control-panel,
body[data-sidebar-type="products"] .product-series-intro,
body[data-sidebar-type="products"] .product-series-grid,
body[data-sidebar-type="products"] .product-list-head,
body[data-sidebar-type="products"] .product-grid{
  width:100%;
  max-width:1440px;
  margin-left:auto;
  margin-right:auto;
}

.product-series-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:start;
}

.series-item{
  max-width:100%;
}

.series-item .product-card.series-card{
  min-height:280px;
}

.series-item .product-card.series-card .product-thumb{
  min-height:280px;
  max-height:360px;
  aspect-ratio:16/10;
}

.series-item .product-card.series-card .product-body{
  min-height:280px;
}

.series-item .product-card.series-card .product-thumb img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.series-children-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.product-grid.view-large .product-card{
  max-width:100%;
}

.product-grid.view-large .product-thumb{
  min-height:300px;
  max-height:380px;
}

.product-grid.view-many .product-thumb{
  max-height:320px;
}

@media(max-width:1100px){
  .product-series-grid{
    grid-template-columns:1fr;
  }

  .series-item .product-card.series-card .product-thumb{
    max-height:340px;
  }
}

@media(max-width:768px){
  body.page-products .product-control-panel,
  body.page-products .product-series-intro,
  body.page-products .product-series-grid,
  body.page-products .product-list-head,
  body.page-products .product-grid,
  body[data-sidebar-type="products"] .product-control-panel,
  body[data-sidebar-type="products"] .product-series-intro,
  body[data-sidebar-type="products"] .product-series-grid,
  body[data-sidebar-type="products"] .product-list-head,
  body[data-sidebar-type="products"] .product-grid{
    max-width:100%;
  }

  .series-item .product-card.series-card .product-thumb{
    max-height:none;
    aspect-ratio:4/3;
  }

  .series-children-grid{
    grid-template-columns:1fr;
  }
}

/* =========================================================
   [스마트스토어 구매 버튼]
   - 제품폴더/smartstore.txt 또는 category.txt smartstore_url 값이 있을 때만 노출
   - 제품카드 전체 클릭 영역과 구매 버튼 클릭 영역을 분리
========================================================= */
.product-card-main-link {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  color: inherit;
  text-decoration: none;
}

.product-card-actions {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
}

.product-card-actions .detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-height: 34px;
  text-decoration: none;
}

.detail-btn--smartstore,
.product-action-btn--smartstore {
  border-color: #03c75a;
  background: #03c75a;
  color: #fff;
}

.detail-btn--smartstore:hover,
.product-action-btn--smartstore:hover {
  filter: brightness(0.96);
}

@media (max-width: 768px) {
  .product-card-actions {
    flex-direction: column;
  }
}


/* =========================================================
   [2026-05-23 PATCH] 제품 상세페이지 사양표 정갈화
   - 상세설명.txt의 "항목명: 값" 패턴을 표로 출력할 때 적용
   - 확인되지 않은 placeholder 값은 PHP에서 제거
   - PC/모바일 모두 예전 상세페이지처럼 깔끔한 카탈로그형 표 유지
========================================================= */
section.content-card.product-detail.product-detail-oldstyle .product-info-row--spec{
  padding:28px 28px 26px;
  background:#fff;
  border:1px solid #cfe1f2;
}

section.content-card.product-detail.product-detail-oldstyle .product-info-row--spec .product-info-content h4{
  margin-bottom:18px;
}

section.content-card.product-detail.product-detail-oldstyle .product-detail-spec-table{
  border:1px solid #cbddeb;
  font-size:16px;
  line-height:1.7;
}

section.content-card.product-detail.product-detail-oldstyle .product-detail-spec-table tr + tr th,
section.content-card.product-detail.product-detail-oldstyle .product-detail-spec-table tr + tr td{
  border-top:1px solid #d8e6f2;
}

section.content-card.product-detail.product-detail-oldstyle .product-detail-spec-table th,
section.content-card.product-detail.product-detail-oldstyle .product-detail-spec-table td{
  padding:14px 16px;
}

section.content-card.product-detail.product-detail-oldstyle .product-detail-spec-table th{
  width:220px;
  background:#f3f8fd;
  color:#082f55;
  letter-spacing:-.25px;
}

section.content-card.product-detail.product-detail-oldstyle .product-detail-spec-table td{
  color:#263c54;
  font-weight:600;
}

section.content-card.product-detail.product-detail-oldstyle .product-detail-spec-table td:not(:last-child){
  border-right:0;
}

section.content-card.product-detail.product-detail-oldstyle .product-detail-spec-table th + td{
}

@media(max-width:768px){
  section.content-card.product-detail.product-detail-oldstyle .product-info-row--spec{
    padding:20px 16px;
  }

  section.content-card.product-detail.product-detail-oldstyle .product-detail-spec-table{
    display:table;
    overflow:visible;
    font-size:14.5px;
    line-height:1.65;
  }

  section.content-card.product-detail.product-detail-oldstyle .product-detail-spec-table tr{
    grid-template-columns:118px minmax(0,1fr);
  }

  section.content-card.product-detail.product-detail-oldstyle .product-detail-spec-table th,
  section.content-card.product-detail.product-detail-oldstyle .product-detail-spec-table td{
    padding:11px 12px;
  }

  section.content-card.product-detail.product-detail-oldstyle .product-detail-spec-table th{
    min-width:0;
  }

  section.content-card.product-detail.product-detail-oldstyle .product-detail-spec-table th + td{
    border-left:1px solid #d8e6f2;
  }
}


/* =========================================================
   [2026-05-23 PATCH v20] 제품 상세페이지 spec/table 최종 정리
   - 정보 없는 placeholder 제거 후 빈 섹션 미출력
   - 장비마다 다른 항목명도 key:value 형식이면 유연하게 표 출력
   - PC/모바일 모두 정갈한 카탈로그형 사양표 유지
========================================================= */
section.content-card.product-detail.product-detail-oldstyle .product-detail-info-list{
  gap:18px;
}

section.content-card.product-detail.product-detail-oldstyle .product-info-row--spec{
  position:relative;
  overflow:hidden;
  padding:30px 30px 28px;
  border:1px solid #bfd7ea;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  box-shadow:0 14px 34px rgba(20,60,100,.07);
}

section.content-card.product-detail.product-detail-oldstyle .product-info-row--spec .product-info-content h4{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 18px;
  color:#082f55;
  font-size:21px;
  font-weight:900;
  letter-spacing:-.65px;
}

section.content-card.product-detail.product-detail-oldstyle .product-info-row--spec .product-info-content h4::before{
  content:"";
  display:inline-block;
  width:7px;
  height:22px;
  background:#0f66bb;
}

section.content-card.product-detail.product-detail-oldstyle .product-detail-spec-table{
  width:100%;
  margin:0;
  border:1px solid #c9ddec;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  background:#fff;
  box-shadow:0 8px 22px rgba(20,60,100,.045);
}

section.content-card.product-detail.product-detail-oldstyle .product-detail-spec-table tr{
  transition:background .14s ease;
}

section.content-card.product-detail.product-detail-oldstyle .product-detail-spec-table tr:hover th,
section.content-card.product-detail.product-detail-oldstyle .product-detail-spec-table tr:hover td{
  background:#f7fbff;
}

section.content-card.product-detail.product-detail-oldstyle .product-detail-spec-table tr + tr th,
section.content-card.product-detail.product-detail-oldstyle .product-detail-spec-table tr + tr td{
  border-top:1px solid #dce8f2;
}

section.content-card.product-detail.product-detail-oldstyle .product-detail-spec-table th,
section.content-card.product-detail.product-detail-oldstyle .product-detail-spec-table td{
  padding:15px 18px;
  border:0;
  vertical-align:middle;
  font-size:15.5px;
  line-height:1.65;
  letter-spacing:-.25px;
}

section.content-card.product-detail.product-detail-oldstyle .product-detail-spec-table th{
  width:210px;
  background:#eef6fd;
  color:#0b3d68;
  font-weight:900;
  white-space:nowrap;
}

section.content-card.product-detail.product-detail-oldstyle .product-detail-spec-table td{
  background:#fff;
  color:#253d56;
  font-weight:650;
}

section.content-card.product-detail.product-detail-oldstyle .product-detail-spec-table th + td{
  border-left:1px solid #dce8f2;
}

@media(max-width:768px){
  section.content-card.product-detail.product-detail-oldstyle .product-detail-info-list{
    gap:14px;
  }

  section.content-card.product-detail.product-detail-oldstyle .product-info-row--spec{
    padding:20px 15px 18px;
  }

  section.content-card.product-detail.product-detail-oldstyle .product-info-row--spec .product-info-content h4{
    margin-bottom:14px;
    font-size:18px;
  }

  section.content-card.product-detail.product-detail-oldstyle .product-detail-spec-table{
    display:block;
    border:1px solid #d3e2ee;
    box-shadow:none;
  }

  section.content-card.product-detail.product-detail-oldstyle .product-detail-spec-table tbody{
    display:block;
  }

  section.content-card.product-detail.product-detail-oldstyle .product-detail-spec-table tr{
    display:grid;
    grid-template-columns:112px minmax(0,1fr);
  }

  section.content-card.product-detail.product-detail-oldstyle .product-detail-spec-table th,
  section.content-card.product-detail.product-detail-oldstyle .product-detail-spec-table td{
    display:block;
    width:auto;
    min-width:0;
    padding:12px 11px;
    font-size:14px;
    line-height:1.55;
    white-space:normal;
  }

  section.content-card.product-detail.product-detail-oldstyle .product-detail-spec-table th{
    word-break:keep-all;
  }

  section.content-card.product-detail.product-detail-oldstyle .product-detail-spec-table td{
    word-break:keep-all;
    overflow-wrap:anywhere;
  }
}


/* =========================================================
   [PATCH 2026-05-31] 상세페이지 목록 복귀 위치 보정
   - product-detail.php의 목록으로 버튼이 이전 목록 + 해당 제품 카드 위치로 복귀할 때
     고정 헤더/서브메뉴에 카드가 가려지지 않도록 여백을 확보합니다.
========================================================= */
.product-card[id^="product-"],
.series-large-item[id^="series-"]{
  scroll-margin-top: 170px;
}

@media (max-width: 768px){
  .product-card[id^="product-"],
  .series-large-item[id^="series-"]{
    scroll-margin-top: 135px;
  }
}


/* =========================================================
   [2026-06-01] 제품 상세페이지 이미지 표시 기준 재정리
   - 카드용 대표이미지.webp와 상세페이지 상단 이미지를 분리
   - 상세 상단: 1.webp 우선 사용 / 4:3 프레임 안에서 크게 표시
   - 상세 하단: 과도하게 커지지 않도록 본문용 최대 폭 제한
========================================================= */
section.content-card.product-detail.product-detail-oldstyle .product-detail-main-image--detail{
  width:100%;
  min-height:auto;
  margin:26px 0 30px;
  padding:18px;
  border:1px solid #d2e3f3;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

section.content-card.product-detail.product-detail-oldstyle .product-detail-main-image--detail img{
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  object-position:center;
  border:0;
  background:#fff;
}

section.content-card.product-detail.product-detail-oldstyle .product-detail-image-list{
  margin-top:34px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:22px;
}

section.content-card.product-detail.product-detail-oldstyle .product-detail-image-box{
  width:100%;
  max-width:900px;
  padding:0;
  border:1px solid #d2e3f3;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

section.content-card.product-detail.product-detail-oldstyle .product-detail-image-box img{
  display:block;
  width:100%;
  height:auto;
  max-height:760px;
  object-fit:contain;
  object-position:center;
  border:0;
  background:#fff;
}

@media(max-width:768px){
  section.content-card.product-detail.product-detail-oldstyle .product-detail-main-image--detail{
    aspect-ratio:4/3;
    margin:18px 0 24px;
    padding:10px;
  }

  section.content-card.product-detail.product-detail-oldstyle .product-detail-image-list{
    margin-top:26px;
    gap:16px;
  }

  section.content-card.product-detail.product-detail-oldstyle .product-detail-image-box{
    max-width:100%;
  }

  section.content-card.product-detail.product-detail-oldstyle .product-detail-image-box img{
    max-height:none;
  }
}


/* =========================================================
   [2026-06-06 PATCH] 모델별 사양 비교표 출력
   - 상세설명.txt의 [모델별 사양] 또는 모델명 접두형 사양을 한 표로 출력
   - 일반 사양표와 동일한 톤을 유지하면서 가로 비교가 가능하도록 처리
========================================================= */
section.content-card.product-detail.product-detail-oldstyle .product-detail-table-scroll{
  width:100%;
  margin:0 0 14px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

section.content-card.product-detail.product-detail-oldstyle .product-detail-model-spec-table{
  min-width:620px;
  margin:0;
}

section.content-card.product-detail.product-detail-oldstyle .product-detail-model-spec-table th,
section.content-card.product-detail.product-detail-oldstyle .product-detail-model-spec-table td{
  text-align:center;
}

section.content-card.product-detail.product-detail-oldstyle .product-detail-model-spec-table th:first-child{
  width:190px;
  text-align:left;
}

section.content-card.product-detail.product-detail-oldstyle .product-detail-model-spec-table td{
  font-weight:650;
}

@media(max-width:768px){
  section.content-card.product-detail.product-detail-oldstyle .product-detail-table-scroll{
    margin-bottom:12px;
  }

  section.content-card.product-detail.product-detail-oldstyle .product-detail-model-spec-table{
    display:table;
    min-width:640px;
  }

  section.content-card.product-detail.product-detail-oldstyle .product-detail-model-spec-table tbody{
    display:table-row-group;
  }

  section.content-card.product-detail.product-detail-oldstyle .product-detail-model-spec-table tr{
    display:table-row;
  }

  section.content-card.product-detail.product-detail-oldstyle .product-detail-model-spec-table th,
  section.content-card.product-detail.product-detail-oldstyle .product-detail-model-spec-table td{
    display:table-cell;
    width:auto;
    padding:11px 12px;
    font-size:13.5px;
    line-height:1.5;
    white-space:normal;
  }

  section.content-card.product-detail.product-detail-oldstyle .product-detail-model-spec-table th:first-child{
    min-width:145px;
  }
}


/* =========================================================
   [2026-06-08] 제품 카테고리/대표 시리즈 UI 정리
   목적:
   - 세부 모델 보기 버튼을 과한 알약형이 아닌 산업장비 사이트형 사각 버튼으로 정리
   - 제품 카테고리 소개 영역의 글자 대비를 명확히 고정
   - 대표 시리즈 접기/펼치기 버튼과 충돌하지 않도록 제품 영역만 관리
========================================================= */
.series-large-card__btn,
body.page-products .equipment-series-body u,
.detail-btn{
  border-radius:4px;
}

.auto-packer-hero--compact.category-hero-with-visual .auto-packer-copy span,
.auto-packer-hero--compact.category-hero-with-visual .auto-packer-copy h2,
.auto-packer-hero--compact.category-hero-with-visual .auto-packer-copy p,
.category-showcase-hero--compact.category-hero-with-visual .category-showcase-copy span,
.category-showcase-hero--compact.category-hero-with-visual .category-showcase-copy h2,
.category-showcase-hero--compact.category-hero-with-visual .category-showcase-copy p{
  text-shadow:none;
}

.auto-packer-hero--compact.category-hero-with-visual .auto-packer-copy h2,
.category-showcase-hero--compact.category-hero-with-visual .category-showcase-copy h2{
  color:#0b2440;
}

.auto-packer-hero--compact.category-hero-with-visual .auto-packer-copy p,
.category-showcase-hero--compact.category-hero-with-visual .category-showcase-copy p{
  color:#42566d;
}

.auto-packer-hero--compact.category-hero-with-visual .auto-packer-copy span,
.category-showcase-hero--compact.category-hero-with-visual .category-showcase-copy span{
  background:#eaf5ff;
  border-color:#bcd8f4;
  color:#0f66bb;
}

/* ===== 필터 아이콘 제거 (2026-06-10) ===== */
.filter-chip::before,
.filter-chip::after,
.filter-chip-icon,
.filter-chip-icon::before,
.filter-chip-icon::after{
  display:none;
  content:none;
}
.filter-chip[data-basis="material"],
.filter-chip[data-basis="process"]{
  gap:0;
  justify-content:center;
}

/* ===== 제품 상세 섹션 구분감 개선 (2026-06-10) ===== */
.product-detail-section-wrap{
  margin-top:52px;
  padding-top:40px;
  border-top:2px solid #d0e4f5;
}
.product-detail-section-wrap:first-child{
  margin-top:24px;
  padding-top:0;
  border-top:none;
}
.product-detail-section-title{
  font-size:28px;
  padding-bottom:14px;
  margin-bottom:24px;
  border-bottom:1px solid #d0e4f5;
}
.product-detail-section-title::after{
  width:56px;
  height:4px;
}

/* ===== 제품 상세 섹션 카드 박스 (2026-06-10) ===== */
.product-detail-section-wrap{
  background:#fff;
  border:1px solid #e2eaf4;
  border-radius:12px;
  padding:28px 32px;
  margin-top:20px;
  margin-bottom:0;
  padding-top:28px;
  border-top:1px solid #e2eaf4;
}
.product-detail-section-wrap:first-child{
  margin-top:8px;
  padding-top:28px;
  border-top:1px solid #e2eaf4;
}
.product-detail-section-title{
  border-bottom:1px solid #e8f0f9;
  margin-bottom:20px;
}

/* ===== 관련 섹션 카드 박스 (2026-06-10) ===== */
.product-relation-section{
  background:#fff;
  border:1px solid #e2eaf4;
  border-radius:12px;
  padding:28px 32px;
  margin-top:20px;
  margin-bottom:0;
}
/* [2026-06-24] 상세페이지 판매가 박스 (price-map.php 기준) */
.product-price-box{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin:14px 0 4px;padding:14px 18px;border:1px solid #e3e9f1;border-left:4px solid #0f66bb;border-radius:10px;background:#f7fafd;}
.product-price-label{font-size:14px;font-weight:700;color:#56697d;}
.product-price-value{font-size:28px;font-weight:800;color:#0b2545;letter-spacing:-.5px;line-height:1.1;}
.product-price-value em{font-size:17px;font-weight:700;font-style:normal;margin-left:2px;}
.product-price-vat{flex-basis:100%;font-size:13px;color:#7b8a9a;font-weight:600;}
.product-price-box--quote{border-left-color:#9aa9bb;background:#f6f8fa;}
.product-price-quote{font-size:22px;font-weight:800;color:#0f66bb;}
@media (max-width:520px){.product-price-value{font-size:24px;}}

/* [2026-06-24] 상세페이지 이벤트 특가 박스 (이벤트 가격 > 판매가 우선) */
.product-price-box--event{border-left-color:#e8512f;background:#fff6f3;}
.product-price-box--event .nb-card-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin:0;}
.product-price-box--event .nb-card-price .o{font-size:14px;color:#9aa9bb;text-decoration:line-through;}
.product-price-box--event .nb-card-price .n{font-size:16px;font-weight:700;color:#0b2545;}
.product-price-box--event .nb-card-price .n strong{font-size:28px;color:#e8512f;letter-spacing:-.5px;}
.product-price-box--event .nb-card-price .x{flex-basis:100%;font-size:13px;color:#7b8a9a;font-weight:600;}

/* [2026-06-24] 판매가/견적 박스 — 액션 버튼 아래·우측 정렬 */
.product-detail-price-line{display:flex;justify-content:flex-end;margin:-6px 0 22px;}
.product-detail-price-line .product-price-box{margin:0;}
@media (max-width:520px){
  .product-detail-price-line{justify-content:stretch;}
  .product-detail-price-line .product-price-box{width:100%;}
}
