@charset "utf-8";

.product__topimg {
  max-width:1600px;
  width:100%;
  margin:0 auto;
}
.product__topimg img {
  width:100%;
}
.bottom__btnbox {
  display:flex;
  flex-wrap:wrap;
  gap:40px;
  margin-top:170px;
  margin-bottom:150px;
}
.bottom__btnbox a {
  display:flex;
  justify-content: center;
  align-items: center;
  width:33.3333%;
  max-width:500px;
  height:130px;
  border:1px solid #A3A3A3;
  border-radius:10px;
  font-size:32px;
  font-weight:600;
}
.bottom__btnbox a:hover {
  border:1px solid #000;
}

/* 제품 상세 페이지 */
.product__content__detail {
  padding:150px 0 100px;
}

.product__detail__header {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 60px;
}

.product__detail__title {
  font-size: 66px;
  font-weight: 700;
  color: var(--point-color);
  margin: 0;
  white-space: nowrap;
}

.product__example img {
  border:1px solid #717171;
  border-radius:10px;
  display:block;
}
.product__example__wrapper>*{
  width:100%;
}

.product__section__label{
  max-width:940px;
}


.product__detail__line {
  flex: 1;
  height: 1px;
  background-color: var(--point-color);
}

.product__detail__cards {
  display: flex;
  gap: 50px;
  justify-content: space-between;
}

.product__detail__card {
  flex: 1;
  background: #fff;
  border-radius: 10px;
  padding: 55px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  border:1px solid #A3A3A3;
}
.product__detail__card.semiconductor {
  max-width:1000px;
}

.product__detail__card.railroad {
  max-width:500px;
}
.product__detail__card.railroad img{
  max-width:100%;
}

.product__card__link {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size:20px;
  color: #C1C1C1 !important;
  text-decoration: none;
  padding-right:20px;
  background:url(../img/product/viewmore_arrow.svg) right/10px no-repeat;
}

.product__card__link:hover {
  color: #000;
}

.product__card__img {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0 30px;
  min-height: 200px;
}

.product__card__img img {
  max-width: 50%;
  height: auto;
  object-fit: contain;
}

.product__card__line {
  width: 65px;
  height: 15px;
  background-color: var(--point-color);
  margin-bottom:50px;
}

.product__card__name {
  font-size: 32px;
  font-weight:600;
  color: #3F3B3A;
  margin: 0;
  text-align: center;
}

/* Other Snapring Grid Layout */
.product__detail__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap:50px 20px;
  align-items:flex-start;
}

.product__grid__item {
  background: #fff;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding:0;
}

.product__grid__item .product__card__img {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 20px;
  flex: 1;
  min-height:auto;
  position:relative;
}

.product__grid__item .product__card__img img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.product__grid__item .product__card__name {
  height:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 25px;
  font-weight: 600;
  color: #3F3B3A;
  margin: 0;
  text-align: center;
  line-height: 1.4;
  letter-spacing: -0.5px;
}

.product__grid__btn {
  height:100%;
  display: flex;
  align-items: flex-start;
  justify-content:flex-end;
  background: #fff;
  padding-bottom:70px;
}

.product__viewmore__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font-size: 28px;
  font-weight: 600;
  color: var(--point-color);
  text-decoration: none;
  border-radius:10px;
  transition: all 0.3s;
  height:77px;
  border:1px solid var(--point-color);
  gap:20px;
  white-space:nowrap;
}
.product__viewmore__btn span {
  font-size:28px;
  font-weight:600;
  color: var(--point-color);
}

.product__viewmore__btn:hover {
  background-color: var(--point-color);
}
.product__viewmore__btn:hover span {
  color:#fff;
}
.product__viewmore__btn:hover path {
  fill:#fff;
}

/* Label row inside detail sections */
.product__section__label {
  margin: 30px 0 15px;
  width: 100%;
  height: 36px;
  background: #F1F2F4;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.product__section__label span {
  color: #3F3B3A;
  font-size: 25px;
  font-weight: 600;
}

/* Example block (image + button aligned right) */
.product__example {
  grid-column: span 3;
}
.product__example img {
  max-width: 100%;
  height: auto;
  flex: 1;
}
.product__example .product__viewmore__btn {
  align-self: flex-end;
  width: 300px;
  min-width: 300px;
}
.product__grid__item__img{
  display:flex;
  gap:20px;
}
.product__example__wrapper {
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  align-items:flex-end;
  gap:20px;
}

.product__grid__item__group{
  grid-column: span 3;
}
.product__grid__item__group p {
  width:100%;
  background:#F2F2F2;
  text-align:center;
  height:50px;
  font-size:25px;
  font-weight:600;
  color:#3F3B3A;
  display:flex;
  align-items:center;
  justify-content:center;
}
/* R&D styles moved to style/rnd.css */

.military__content {}
.military__content .product__example {
  border:1px solid #717171;
  border-radius:10px;
  padding:30px;
}
.military__content .product__example img {
  border:0;
}
.military__content .product__example .texts {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}
.military__content .product__example  p {
  text-align:center;
  font-size:25px;
  font-weight:600;
  color:#3F3B3A;
  margin-top:30px;
}

@media screen and (max-width: 1400px) {
  .product__card__img img{
    max-width:100%;
  }
  .product__card__name{
    font-size:24px;
  }
  .product__viewmore__btn{
  }
  .product__grid__btn{
    grid-column: 1 / -1;
  }
  
  .product__detail__card.semiconductor {}
  .product__detail__card.semiconductor .product__card__img img {
    max-width:50% !important;
  }
}

@media screen and (max-width: 991px) {
  .product__detail__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .product__detail__cards{
    gap:20px;
  }
  .bottom__btnbox a{
    padding-left:10px;
    font-size:17px
  }
}


@media screen and (max-width: 768px) {
  .product__detail__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  /* For card-based sections, use 2-column grid on mobile */
  .product__detail__cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .product__grid__item {
    min-height: 220px;
    padding: 20px 15px;
  }
  
  .product__grid__item .product__card__name {
    font-size: 16px;
  }

  .product__detail__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .product__grid__item {
    min-height: 150px;
    padding: 15px 5px;
  }
  
  .product__grid__item .product__card__img {
    min-height: 100px;
    margin-bottom: 15px;
  }
  
  .product__grid__item .product__card__name {
    font-size: 14px;
  }
  .product__content__detail{
    padding-top:50px;
    padding-bottom:50px;
  }
  .product__detail__card{
    padding:20px 10px;
  }
  .product__card__link{
    font-size:14px;
    background-size:6px;
  }
  .product__card__img{
    min-height:150px;
  }
  .product__card__line{
    margin-bottom:20px;
    width:32px;
    height:5px;
  }
  .product__card__name{
    font-size:14px;
  }
  .product__detail__header{
    margin-bottom:30px;
    gap:30px;
  }
  .product__detail__grid{
    gap:0;
  }
  .product__grid__item .product__card__name{
    height:auto;
  }
  .product__grid__item{
    min-height:auto;
  }
  .product__viewmore__btn{
    padding:10px 20px;
    height:40px;
  }
  .product__viewmore__btn span{
    font-size:14px !important;
  }
  
  .product__grid__item__group{
    grid-column:span 2;
  }
  .product__grid__item__img{
    gap:0;
  }
  .product__grid__item__group p{
    font-size:14px;
    height:40px;
  }
  .product__grid__item__group .product__grid__item {
    padding:0 1px;
  }
  .product__grid__item__group .product__card__img {
    margin-bottom:0;
  }
  .product__example__wrapper{
    display:block;
  }
  .product__viewmore__btn{
    max-width:147px;
    margin-top:10px;
  }
  .product__section__label span{
    font-size:14px;
  }
  .military__content .product__example{
    padding:10px;
  }
  .military__content .product__example p{
    font-size:14px;
    margin-top:0;
  }
  .product__detail__cards.semiconductor {
    display:block;
  }
  
  .product__grid__item .product__card__img .product__card__link {
    top:10px;
    right:5px;
  }
}