@charset "utf-8";

/* =================================================================
   1. 상단 비주얼 영역
================================================================= */
.page-visual-wrap {
    padding-top: 80px;
}
.page-visual {
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
}
.visual-kicker {
    font-size: 14px;
    letter-spacing: 0.16em;
    margin-bottom: 10px;
    opacity: 0.8;
}
.visual-title {
    font-size: 36px;
    margin: 0;
    font-weight: 600;
}
.airobot-visual    { background-image: url('/제품소개/img/airobotbg.jpg'); }
.steeltire-visual  { background-image: url('/제품소개/img/steeltirebg.jpg'); }
.container-visual  { background-image: url('/제품소개/img/moldcontainerbg.jpg'); }
.engraving-visual  { background-image: url('/제품소개/img/engravingbg.jpg'); }
.machinery-visual  { background-image: url('/제품소개/img/machinerybg.jpg'); }
.others-visual     { background-image: url('/제품소개/img/othersbg.jpg'); }

/* =================================================================
   2. 레이아웃 & 공통 래퍼
================================================================= */
.steeltire-wrap, .airobot-wrap, .container-wrap, .engraving-wrap, .machinery-wrap, .others-wrap {
    padding: 80px 20px;
    max-width: 1200px;
    margin: auto;
    padding-bottom: 0 !important;
}
.product-section {
    width: 100%;
    max-width: 1200px;
    margin: 50px auto;
    text-align: center;
    padding: 0 20px;
}

/* =================================================================
   3. 제품 소개 상단 (Slider + Info)
================================================================= */
.product-top {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-bottom: 10px;
}

/* --- 왼쪽: 이미지 슬라이더 --- */
.product-top-imgbox {
    flex: 1;
    background: none;
    padding: 0;
    overflow: hidden;
    border-radius: 10px;
}
.swiper.myProductSwiper {
    width: 100%;
    height: 350px;
}
.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.swiper-pagination-bullet-active {
    background: #103460 !important;
}

/* --- 오른쪽: 텍스트 정보 --- */
.product-info {
    flex: 1;
    text-align: left;
}
.product-info h2 {
    color: #103460;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
}

/* (추가) 요청하신 텍스트 굵게 처리 */
.strong-text {
    font-weight: 800;
    font-size: 18px;
    color: #222;
    margin-bottom: 10px;
}

/* (수정) 규격 및 아이콘 배치를 위한 컨테이너 */
.spec-row {
    display: flex;
    align-items: center; /* 세로 중앙 정렬 */
    gap: 15px; /* 규격 글자와 아이콘 사이 간격 */
    margin-top: 25px;
}

/* (수정) 규격 배지 스타일 변경: 배경 제거, 파란 글씨 */
.productbadge {
    display: inline-block;
    width: auto; /* 너비 자동 */
    background: #103460;
    color: #fff;
    padding: 9px 15px;
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap; /* 줄바꿈 방지 */
border-radius:8px;
}

/* 아이콘 리스트 */
.product-icons {
    display: flex;
    gap: 12px;
    margin: 0; /* 상단 여백 제거 (spec-row가 제어) */
    padding: 0;
}
.product-icons li {
    list-style: none;
    width: 110px;
    height: 40px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    text-align: center;
    padding-top: 8px;
}
.product-icons img {
    width: 26px;
    height: 26px;
    margin-bottom: 4px;
}
.product-icons p {
    font-size: 14px;
    color: #555;
    margin: 0;
}

/* =================================================================
   4. 공정 과정 (Process Flow)
================================================================= */
.process-flow {
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 80px;
    opacity: 1 !important;
    transform: none !important;
}

.process-list {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center; /* 아이템이 적을 때 중앙 정렬 */
    flex-wrap: wrap;         /* 줄바꿈 허용 (모바일을 위해 필수) */
    gap: 20px;               /* 사이 간격 */
}

/* [PC 설정] : 6개든 7개든 한 줄에 꽉 채우기 */
.process-list li {
    /* flex: 1 -> 남은 공간을 N등분해서 가져감 (자동 조절) */
    flex: 1; 
    /* 최소 너비를 줘서 너무 찌그러지는 것 방지 */
    min-width: 120px; 
    
    padding: 30px 10px;
    background: #fff;
    border-radius: 12px;
    border-bottom: 5px solid #007ad9;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    opacity: 1 !important;
    transform: none !important;
}

.process-list li:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* 이미지, 텍스트 스타일 (기존 유지) */
.process-list img { height: 60px; width: auto; margin-bottom: 15px; display: block; }
.process-list strong { font-size: 18px; font-weight: 800; color: #103460; margin-bottom: 10px; display: block; }
.process-list p { font-size: 13px; color: #666; line-height: 1.5; margin: 0; word-break: keep-all; }

/* =================================================================
   5. 하단 콘텐츠 & 기타
================================================================= */
.product-bottom-block {
    background: #103460;
    color: #fff;
    margin-top: 80px;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 0 !important;
    padding-bottom: 60px;
}
.product-bottom-block .product-wrap-inner {
    max-width: 1200px;
    width: 100%;
    margin: auto;
    padding: 0 20px;
}
.product-bottom-block .productsection {
    margin-bottom: 40px;
    color: #fff;
    line-height: 1.7;
}
.product-bottom-block .product-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.product-bottom-block .product-gallery img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}
.product-bottom-block .machinery-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.product-bottom-block .machinery-gallery img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}
.airobot-card-gallery {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-top: 60px;
}
.airobot-card {
    display: flex;
    align-items: center;
    gap: 40px;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.airobot-card .card-text { flex: 1.2; text-align: left; }
.airobot-card .card-text h3 { font-size: 18px; font-weight: 800; color: #005BAC; margin-bottom: 10px; }
.airobot-card .card-text h2 { color: #005BAC; margin-bottom: 10px; }
.airobot-card .card-img { flex: 1; }
.airobot-card .card-img img { width: 100%; height: 280px; object-fit: cover; border-radius: 10px; }

/* =================================================================
   6. 탭 메뉴 & 갤러리 효과
================================================================= */
.tab-menu {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #103460;
}
.tab-menu li {
    width: 25%;
    padding: 12px 0;
    cursor: pointer;
    font-weight: 600;
    border: 1px solid #103460;
    transition: .3s;
    color: #103460;
}
.tab-menu li.active { background: #103460; color: #fff; }
.gallery {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    opacity: 0;
    transform: translateY(30px);
    animation: galleryShow .8s forwards ease;
}
@keyframes galleryShow { to { opacity: 1; transform: translateY(0); } }
.gallery img { width: 100%; border-radius: 6px; transition: .3s; }
.gallery img:hover { transform: scale(1.05); }
/* =================================================================
   [수정] ETC 페이지 전용 탭 & 갤러리 스타일
================================================================= */

/* 1. 탭 버튼 메뉴 */
.tab-menu {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #103460;
}

.tab-menu li {
    width: 25%;
    padding: 12px 0;
    cursor: pointer;
    font-weight: 600;
    border: 1px solid #103460;
    border-bottom: none; /* 아래 선 제거 (자연스럽게 연결) */
    background: #fff;
    color: #103460;
    transition: all 0.3s;
    text-align: center;
}

/* 활성화된 탭 스타일 */
.tab-menu li.active {
    background: #103460;
    color: #fff;
}

/* 2. 탭 콘텐츠 영역 (중요: 숨김 처리) */
.tab-content {
    display: none; /* 기본적으로 모두 숨김 */
}

/* 활성화된 콘텐츠만 보이기 */
.tab-content.active {
    display: block;
    animation: fadeInTab 0.5s ease-out;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 3. ETC 페이지 갤러리 그리드 */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 한 줄에 3개 */
    gap: 15px;
    margin-top: 30px;
}

.gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: block;
}

.gallery img:hover {
    transform: scale(1.03); /* 마우스 올리면 살짝 커짐 */
}
/* =================================================================
   7. 반응형 통합
================================================================= */

@media (max-width: 1024px) {
    .product-top { gap: 30px; }
    .product-bottom-block .product-gallery { grid-template-columns: repeat(2, 1fr); }
    .product-bottom-block .product-gallery img { height: 270px; }
    .product-bottom-block .machinery-gallery { grid-template-columns: repeat(2, 1fr); }
    .airobot-card { flex-direction: column; text-align: center; }
    .airobot-card .card-img img { height: 240px; }
.process-list li {
        /* flex-grow: 0, flex-shrink: 0, basis: 33.33% */
        /* gap이 20px이므로 너비에서 조금 빼줌 */
        flex: 0 0 calc(33.33% - 15px); 
        margin-bottom: 10px;
        min-width: auto; /* PC용 최소 너비 해제 */
    }
}

@media (max-width: 768px) {
    .product-top { flex-direction: column; }
    .product-info { text-align: center; }
    
    /* (수정) 모바일에서 규격과 아이콘 세로 정렬 */
    .spec-row {
        flex-direction: column;
        align-items: center; /* 가운데 정렬 */
        gap: 10px;
    }
    
    .product-icons { justify-content: center; }
    
    .product-bottom-block .machinery-gallery { grid-template-columns: repeat(1, 1fr); }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .airobot-card { padding: 20px; }
    .airobot-card .card-img img { height: 200px; }
    .tab-menu { flex-wrap: wrap; }
    .tab-menu li { width: 50%; margin-bottom: 5px; }
    .process-list li { flex: 1 1 calc(50% - 15px); }
    .process-flow { padding: 0 15px; }
.tab-menu {
        flex-wrap: wrap;
    }
    .tab-menu li {
        width: 50%; /* 모바일에서는 2개씩 배치 */
        font-size: 14px;
        margin-bottom: -1px; /* 테두리 겹침 방지 */
    }
    
    .gallery {
        grid-template-columns: repeat(2, 1fr); /* 모바일에서는 한 줄에 2개 */
    }
/* 1. 전체 레이아웃 세로 정렬 */
    .product-top {
        flex-direction: column;
        gap: 30px;
    }

    /* 2. 이미지 박스 너비 100% 설정 */
    .product-top-imgbox {
        width: 100%;
        max-width: 100%; /* 혹시 모를 제한 해제 */
        margin: 0 auto;
    }

    /* 3. Swiper(슬라이더) 높이 조정 */
    /* PC에서는 350px이었지만, 모바일에서는 너무 길어보일 수 있으므로 줄입니다 */
    .swiper.myProductSwiper {
        width: 100%;
        height: 250px; /* 모바일 적정 높이 (필요시 200px~300px 사이로 조절) */
    }

    /* 4. 이미지 비율 유지하며 꽉 채우기 */
    .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* 이미지가 찌그러지지 않고 영역을 꽉 채움 */
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .product-bottom-block .product-gallery { grid-template-columns: repeat(1, 1fr); }
.process-list li {
        /* basis: 50% */
        flex: 0 0 calc(50% - 15px); 
    }
    .process-flow {
        padding: 0 15px;
    }
}