/* =========================================================
   PRODUCT PAGE
========================================================= */

:root{
  --panel-width:320px;
  --panel-bg:#e9e1d2;
}

html,
body{
  overflow-x:hidden;
}

/* =========================================================
   SUBNAV
========================================================= */

.product-subnav{
  background:#fff;
  border-bottom:1px solid var(--line);
  overflow-x:hidden;
}

.product-subnav .inner{
  min-height:60px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  padding:10px 0;
}

.product-tabs{
  display:flex;
  gap:12px;
}

.product-tab{
  border:0;
  background:transparent;
  padding:10px 14px;
  border-radius:10px;
  font-size:18px;
  font-weight:900;
  color:#334155;
  cursor:pointer;
  transition:.2s;
}

.product-tab:hover{
  background:rgba(15,23,42,.06);
}

.product-tab.is-active{
  background:#0f172a;
  color:#fff;
}

/* =========================================================
   LAYOUT
========================================================= */

.product-stage{
  background:#fff;
  overflow-x:hidden;
}

.product-layout{
  display:grid;
  grid-template-columns:var(--panel-width) 1fr;
  max-width:100%;
}

/* =========================================================
   LEFT PANEL
========================================================= */

.product-side{
  background:var(--panel-bg);
  min-height:100vh;
  position:relative;
}

.product-side__label{
  position:sticky;
  top:var(--header-h);
  height:calc(100vh - var(--header-h));
  display:flex;
  align-items:center;
  justify-content:center;
  writing-mode:vertical-rl;
  text-orientation:mixed;
  font-size:60px;
  font-weight:900;
  letter-spacing:.20em;
  color:#ffffff;
  text-shadow:0 3px 10px rgba(0,0,0,.25);
  transform:translateX(120px);
  user-select:none;
  pointer-events:none;
}

/* =========================================================
   RIGHT CONTENT
========================================================= */

.product-main{
  padding:48px 0 90px;
  max-width:100%;
  overflow-x:hidden;
}

.product-main__inner{
  max-width:var(--container);
  margin:0 auto;
  padding:0 28px 0 160px;
  box-sizing:border-box;
}

/* =========================================================
   COMMON HEAD
========================================================= */

.p-head,
.goal-head,
.lineup-head{
  max-width:1200px;
}

.p-kicker,
.goal-kicker,
.lineup-kicker{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 16px;
  border-radius:999px;
  font-size:12px;
  letter-spacing:.22em;
  font-weight:900;
  color:#6b5f4c;
  background:#efe7da;
  box-shadow:0 8px 18px rgba(2,6,23,.06);
}

.p-title,
.goal-title,
.lineup-title{
  margin:12px 0 10px;
  font-size:26px;
  font-weight:900;
  position:relative;
  padding-bottom:16px;
  word-break:keep-all;
}

.p-title::after,
.goal-title::after,
.lineup-title::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:360px;
  max-width:100%;
  height:4px;
  border-radius:999px;
  background:linear-gradient(
    90deg,
    #b8aa8f 0%,
    #e7dcc8 60%,
    rgba(231,220,200,0) 100%
  );
}

.lineup-desc{
  margin:18px 0 0;
  font-size:16px;
  line-height:1.8;
  color:#475569;
  word-break:keep-all;
}

/* =========================================================
   PROGRAM
========================================================= */

.program-row{
  margin:40px 0 0;
  max-width:1200px;
}

.program-steps{
  display:flex;
  flex-wrap:wrap;
  gap:30px;
  align-items:center;
}

.program-step{
  border:0;
  height:58px;
  min-width:240px;
  padding:0 28px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  color:#fff;
  font-weight:900;
  font-size:16px;
  transform:skewX(-14deg);
  box-shadow:0 14px 34px rgba(2,6,23,.14);
  position:relative;
  overflow:hidden;
  box-sizing:border-box;
}

.program-step span{
  transform:skewX(14deg);
  display:flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
}

.program-step .mk{
  font-style:normal;
  font-weight:900;
  opacity:.95;
  padding-left:10px;
  margin-left:6px;
  position:relative;
}

.program-step .mk::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
  width:1px;
  height:14px;
  background:rgba(255,255,255,.55);
}

/* 요청한 지대색 */
.program-step.is-sew{
  background:#0c4b8e;
}

.program-step.is-prefer{
  background:#21a077;
}

.program-step.is-post2{
  background:#ed6d00;
}

.program-step.is-post3{
  background:#f6ab00;
}

/* =========================================================
   GOAL
========================================================= */

.goal-section{
  margin-top:90px;
  max-width:1200px;
}

.goal-head{
  margin-bottom:18px;
}

.goal-table-wrap{
  margin-top:18px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(15,23,42,.08);
  box-shadow:0 14px 30px rgba(2,6,23,.08);
  background:#fff;
  max-width:100%;
}

.goal-table{
  width:100%;
  border-collapse:collapse;
  font-size:14px;
  table-layout:fixed;
}

.goal-table thead th{
  padding:10px 8px;
  background:#f3ede2;
  font-weight:900;
  text-align:center;
  border-bottom:1px solid rgba(15,23,42,.10);
  line-height:1.25;
  white-space:normal;
  word-break:keep-all;
}

.goal-table tbody td{
  padding:10px 8px;
  text-align:center;
  border-bottom:1px solid rgba(15,23,42,.06);
  font-weight:600;
  color:#334155;
  word-break:keep-all;
}

.goal-table tbody tr:nth-child(even){
  background:#fafafa;
}

.goal-table tbody tr:last-child td{
  border-bottom:0;
}

.th-mo{
  display:none;
}

.th-pc{
  display:inline;
}

/* =========================================================
   LINEUP SECTION
========================================================= */

.lineup-section{
  margin-top:90px;
  max-width:1200px;
}

.lineup-head{
  margin-bottom:18px;
}

.lineup-grid{
  margin-top:34px;
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:18px;
}

.lineup-grid--single{
  grid-template-columns:repeat(1, minmax(280px, 360px));
}

.lineup-card{
  display:block;
  border:1px solid rgba(15,23,42,.08);
  border-radius:20px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 14px 30px rgba(2,6,23,.08);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  text-decoration:none;
  max-width:100%;
}

.lineup-card:hover{
  transform:translateY(-6px);
  box-shadow:0 22px 50px rgba(2,6,23,.14);
  border-color:rgba(15,23,42,.16);
}

.lineup-card__thumb{
  aspect-ratio:4 / 3;
  background:#f8fafc;
  display:flex;
  align-items:center;
  justify-content:center;
}

.lineup-card__thumb img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:12px;
  display:block;
  box-sizing:border-box;
}

.lineup-card__body{
  padding:18px 16px 20px;
  text-align:center;
}

.lineup-card__title{
  margin:0 0 8px;
  font-size:22px;
  font-weight:1000;
  color:#0f172a;
  letter-spacing:-0.02em;
  word-break:keep-all;
}

.lineup-card__text{
  margin:0;
  font-size:14px;
  line-height:1.6;
  color:#64748b;
  word-break:keep-all;
}

/* =========================================================
   CATALOG BOX
========================================================= */

.catalog-box{
  margin-top:36px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:24px 28px;
  border-radius:22px;
  background:linear-gradient(135deg, #f8f4ec 0%, #fefefe 100%);
  border:1px solid rgba(15,23,42,.08);
  box-sizing:border-box;
  max-width:100%;
}

.catalog-box__text strong{
  display:block;
  margin-bottom:6px;
  font-size:18px;
  font-weight:1000;
  color:#0f172a;
  word-break:keep-all;
}

.catalog-box__text p{
  margin:0;
  font-size:15px;
  color:#475569;
  line-height:1.7;
  word-break:keep-all;
}

.catalog-box__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:150px;
  height:48px;
  padding:0 18px;
  border-radius:999px;
  border:1px solid #0f172a;
  color:#0f172a;
  font-weight:900;
  text-decoration:none;
  background:#fff;
  transition:.2s;
  box-sizing:border-box;
}

.catalog-box__btn:hover{
  background:#0f172a;
  color:#fff;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width:1100px){
  .product-layout{
    grid-template-columns:220px 1fr;
  }

  .lineup-grid{
    grid-template-columns:repeat(2, 1fr);
  }
}

@media (max-width:900px){
  .product-layout{
    grid-template-columns:1fr;
  }

  .product-side{
    display:none;
  }

  .product-main{
    overflow-x:hidden;
  }

  .product-main__inner{
    padding:0 18px 70px;
    max-width:100%;
    overflow-x:hidden;
  }

  /* 프로그램: 1개씩 세로 일렬 */
  .program-row{
    max-width:100%;
  }

  .program-steps{
    display:flex;
    flex-direction:column;
    gap:10px;
    align-items:stretch;
    max-width:100%;
  }

  .program-step{
    min-width:0;
    width:100%;
    height:48px;
    padding:0 12px;
    border-radius:10px;
    font-size:12px;
    box-shadow:0 10px 22px rgba(2,6,23,.12);
  }

  .program-step span{
    gap:4px;
    font-size:12px;
    justify-content:center;
    max-width:100%;
  }

  .program-step .mk{
    padding-left:5px;
    margin-left:3px;
    font-size:10px;
  }

  .program-step .mk::before{
    height:10px;
  }

  /* 사양목표 표: 모바일에서도 표 유지 + 여백 없이 축소 */
  .goal-table-wrap{
    overflow:hidden;
  }

  .goal-table{
    width:100%;
    table-layout:fixed;
    transform:none;
    zoom:.82;
  }

  .goal-table thead th{
    font-size:11px;
    padding:8px 4px;
    line-height:1.15;
  }

  .goal-table tbody td{
    font-size:11px;
    padding:8px 4px;
    line-height:1.2;
  }

  .th-pc{
    display:none;
  }

  .th-mo{
    display:inline;
  }

  /* 포스트3 아래 여백 수정 */
  .goal-section{
    margin-top:40px;
  }

  .lineup-section{
    margin-top:20px;
  }

  .lineup-grid{
    grid-template-columns:1fr;
  }

  .catalog-box{
    flex-direction:column;
    align-items:flex-start;
    padding:20px 18px;
  }

  .catalog-box__btn{
    width:100%;
  }

  .goal-title::after,
  .lineup-title::after,
  .p-title::after{
    width:280px;
  }
}

@media (max-width:640px){
  .product-main__inner{
    padding:0 16px 60px;
  }

  .product-tab{
    font-size:16px;
    padding:9px 12px;
  }

  .p-title,
  .goal-title,
  .lineup-title{
    font-size:24px;
  }

  .program-step{
    height:44px;
    padding:0 10px;
    font-size:11px;
  }

  .program-step span{
    font-size:11px;
    gap:3px;
  }

  .program-step .mk{
    font-size:9px;
    padding-left:4px;
    margin-left:2px;
  }

  .goal-table{
    width:100%;
    transform:none;
    zoom:.76;
  }

  .goal-table thead th{
    font-size:10px;
    padding:7px 3px;
  }

  .goal-table tbody td{
    font-size:10px;
    padding:7px 3px;
  }

  .catalog-box__text strong{
    font-size:17px;
  }

  .catalog-box__text p{
    font-size:14px;
  }
}