/* 단말기(Terminal) 제품 선택하기 페이지 전용 스타일 */

.terminal-section {
    background: #fff;
    min-height: 60vh;
    padding: 60px 0;
}

.terminal-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    /* background: #fff; */
    border-radius: 16px;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); */
    padding: 60px 50px;
}

.terminal-wrapper h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    color: #111;
    margin-bottom: 48px;
}

.terminal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.terminal-card {
    display: flex;
    align-items: center;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 36px 32px;
    background: #fff;
    transition: all 0.3s ease;
}

.terminal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: #ccc;
}

.terminal-card-img {
    width: 130px;
    height: 100px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 30px;
}

.terminal-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.terminal-card-name {
    font-size: 26px;
    font-weight: 600;
    color: #222;
}

@media (max-width: 767px) {
    .terminal-wrapper {
        padding: 30px 20px;
    }

    .terminal-wrapper h2 {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .terminal-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .terminal-card {
        padding: 20px 16px;
    }

    .terminal-card-img {
        width: 80px;
        height: 60px;
        margin-right: 16px;
    }

    .terminal-card-name {
        font-size: 18px;
    }
}

/* 카드 클릭 커서 */
.terminal-card {
    cursor: pointer;
}

/*--------------------------------------------------------------
  제품 상세 보기 (탭 바 + 상세 패널)
--------------------------------------------------------------*/
.terminal-detail-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 이미지만 표시하는 상세 컨텐츠 */
.terminal-detail-content {
    text-align: center;
    padding: 20px 0;
}

.terminal-detail-full-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.terminal-detail-content-img {
    text-align: center;
    padding: 40px 0;
}

.terminal-detail-content-img img {
    max-width: 100%;
    height: auto;
}

/* 탭 바 (pill 스타일) */
.terminal-tab-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px 0 40px;
    flex-wrap: wrap;
}

.terminal-tab {
    border: 1px solid #d0d0d0;
    background: #fff;
    color: #555;
    font-size: 17px;
    font-weight: 600;
    padding: 12px 34px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.terminal-tab:hover {
    border-color: #7a9dff;
    color: #4270e7;
}

.terminal-tab.active {
    background: #4270e7;
    color: #fff;
    border-color: #4270e7;
}

/* 상세 패널 */
.terminal-detail-panel {
    display: flex;
    align-items: center;
    gap: 48px;
    background: #fff;
    border-radius: 16px;
    padding: 50px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    min-height: 350px;
}

.terminal-detail-img {
    flex: 0 0 320px;
    text-align: center;
}

.terminal-detail-img img {
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
}

.terminal-detail-info {
    flex: 1;
}

.terminal-detail-info h3 {
    font-size: 26px;
    font-weight: 800;
    color: #111;
    margin-bottom: 16px;
}

.terminal-detail-info p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

/* 목록 돌아가기 버튼 */
.terminal-back-wrap {
    text-align: center;
    margin-top: 32px;
    padding-bottom: 20px;
}

.terminal-back-btn {
    background: #fff;
    border: 1px solid #ccc;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s;
}

.terminal-back-btn:hover {
    border-color: #4270e7;
    color: #4270e7;
}

/* 모바일 대응 - 상세 */
@media (max-width: 767px) {
    .terminal-detail-panel {
        flex-direction: column;
        gap: 24px;
        padding: 30px 20px;
    }

    .terminal-detail-img {
        flex: none;
        width: 100%;
    }

    .terminal-detail-img img {
        max-height: 200px;
    }

    .terminal-detail-info h3 {
        font-size: 22px;
    }

    .terminal-detail-info p {
        font-size: 15px;
    }

    .terminal-tab-bar {
        gap: 8px;
        padding: 16px 0 24px;
    }

    .terminal-tab {
        font-size: 13px;
        padding: 8px 18px;
    }
}

/*--------------------------------------------------------------
  토스단말기 SET 서브 탭 & 상세 콘텐츠
--------------------------------------------------------------*/

/* 히어로 영역 */
.toss-hero {
    text-align: center;
    padding: 50px 0 30px;
}

.toss-hero-title {
    font-size: 34px;
    font-weight: 800;
    color: #111;
    line-height: 1.5;
    margin-bottom: 36px;
}

.toss-hero-highlight {
    color: #4270e7;
}

.toss-hero-img {
    max-width: 400px;
    margin: 0 auto;
}

.toss-hero-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* 서브 탭 바 */
.toss-sub-tab-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 24px 0 40px;
}

.toss-sub-tab {
    border: 1px solid #d0d0d0;
    background: #fff;
    color: #555;
    font-size: 18px;
    font-weight: 600;
    padding: 14px 40px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.toss-sub-tab:hover {
    border-color: #7a9dff;
    color: #4270e7;
}

.toss-sub-tab.active {
    background: #4270e7;
    color: #fff;
    border-color: #4270e7;
}

/* 서브 콘텐츠 */
.toss-sub-content {
    max-width: 850px;
    margin: 0 auto;
}

.toss-sub-desc {
    text-align: center;
    font-size: 26px;
    font-weight: 500;
    color: #333;
    line-height: 1.6;
    margin-bottom: 40px;
}

.toss-sub-desc strong {
    font-weight: 800;
    color: #111;
}

/* 기능 카드 그리드 */
.toss-feature-grid {
    display: grid;
    gap: 16px;
}

.toss-feature-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.toss-feature-card {
    text-align: center;
}

.toss-feature-img {
    background: #f5f5f5;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 12px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.toss-feature-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.toss-feature-label {
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin-top: 6px;
}

/* 슬라이드 영역 */
.toss-slide-section {
    text-align: center;
    padding: 80px 0 40px;
}

.toss-slide-title {
    font-size: 34px;
    font-weight: 800;
    color: #111;
    line-height: 1.5;
    margin-bottom: 20px;
}

.toss-slide-desc {
    font-size: 22px;
    font-weight: 500;
    color: #555;
    line-height: 1.6;
    margin-bottom: 40px;
}

.toss-slide-img {
    max-width: 700px;
    margin: 0 auto;
}

.toss-slide-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* 모바일 대응 - 토스 서브 탭 */
@media (max-width: 767px) {
    .toss-hero {
        padding: 30px 0 20px;
    }

    .toss-hero-title {
        font-size: 22px;
    }

    .toss-hero-img {
        max-width: 240px;
    }

    .toss-sub-tab-bar {
        gap: 8px;
        padding: 16px 0 24px;
    }

    .toss-sub-tab {
        font-size: 13px;
        padding: 10px 22px;
    }

    .toss-sub-desc {
        font-size: 18px;
        margin-bottom: 24px;
    }

    .toss-feature-grid.cols-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .toss-feature-label {
        font-size: 12px;
    }
}

.terminal-detail-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 80px;
    box-sizing: border-box;
}

/* 왼쪽 갤러리 */
.terminal-detail-gallery {
    width: 52%;
    min-width: 0;
    position: relative;
}

.terminal-kis1421-main-swiper {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.terminal-kis1421-main-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.terminal-kis1421-main-swiper .slide-content {
    width: 100%;
    height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.terminal-kis1421-main-swiper .slide-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* 좌우 화살표 */
.terminal-kis1421-button-prev,
.terminal-kis1421-button-next {
    position: absolute;
    top: 50%;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    z-index: 10;
    cursor: pointer;
}

.terminal-kis1421-button-prev::after,
.terminal-kis1421-button-next::after {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    border-top: 1.5px solid #999;
    border-right: 1.5px solid #999;
    position: absolute;
    top: 50%;
    left: 50%;
}

.terminal-kis1421-button-prev::after {
    transform: translate(-40%, -50%) rotate(-135deg);
}

.terminal-kis1421-button-next {
    right: 0;
}

.terminal-kis1421-button-next::after {
    transform: translate(-60%, -50%) rotate(45deg);
}

/* 썸네일 */
.terminal-kis1421-thumb-swiper {
    margin-top: 30px;
    width: 100%;
    overflow: hidden;
}

.terminal-kis1421-thumb-swiper .swiper-wrapper {
    display: flex;
    align-items: center;
}

.terminal-kis1421-thumb-swiper .swiper-slide {
    width: 90px !important;
    height: 80px;
    border: 1px solid #d9d9d9;
    background: #fff;
    box-sizing: border-box;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.terminal-kis1421-thumb-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.terminal-kis1421-thumb-swiper .swiper-slide-thumb-active {
    border: 1px solid #2f6edb;
    opacity: 1;
}

/* 오른쪽 설명 */
.terminal-detail-info {
    width: 48%;
    min-width: 0;
    padding-top: 20px;
    box-sizing: border-box;
}

.terminal-detail-info h2 {
    margin: 0;
    font-size: 56px;
    font-weight: 700;
    color: #1f66d1;
    line-height: 1.1;
}

.terminal-detail-info h3 {
    margin: 24px 0 0;
    font-size: 22px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
}

.terminal-detail-line {
    width: 100%;
    height: 1px;
    background: #d9d9d9;
    margin: 36px 0;
}

.terminal-detail-spec {
    margin: 0;
    padding: 0;
    list-style: none;
}

.terminal-detail-spec li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 18px;
    font-size: 18px;
    line-height: 1.6;
    color: #4a4a4a;
    word-break: keep-all;
}

.terminal-detail-spec li::before {
    content: "·";
    position: absolute;
    left: 0;
    top: 0;
    color: #4a4a4a;
    font-size: 22px;
    line-height: 1.2;
}

.terminal-manual-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    height: 50px;
    padding: 0 24px;
    border: 1px solid #999;
    color: #222;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    background: #fff;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.terminal-manual-btn span {
    margin-left: 12px;
    font-size: 18px;
    line-height: 1;
}

.terminal-manual-btn:hover {
    border-color: #222;
}

/* 반응형 */
@media screen and (max-width: 1024px) {
    .terminal-detail-content {
        padding: 40px 20px;
    }

    .terminal-detail-inner {
        flex-direction: column;
        gap: 40px;
    }

    .terminal-detail-gallery,
    .terminal-detail-info {
        width: 100%;
    }

    .terminal-kis1421-button-prev {
        left: 0;
    }

    .terminal-kis1421-button-next {
        right: 0;
    }

    .terminal-detail-info h2 {
        font-size: 40px;
    }

    .terminal-detail-info h3 {
        font-size: 20px;
    }

    .terminal-detail-spec li {
        font-size: 16px;
    }
}

@media screen and (max-width: 768px) {
    .terminal-kis1421-main-swiper .slide-content {
        height: 250px !important;
    }

    .terminal-kis1421-thumb-swiper .swiper-slide {
        width: 72px !important;
        height: 64px;
    }

    .terminal-detail-info h2 {
        font-size: 32px;
    }

    .terminal-detail-info h3 {
        font-size: 18px;
    }
}


.terminal-kis1421-main-swiper,
.terminal-kis1421-thumb-swiper {
    width: 100%;
    overflow: hidden;
}

.terminal-kis1421-main-swiper .swiper-wrapper,
.terminal-kis1421-thumb-swiper .swiper-wrapper {
    display: flex;
}

.terminal-kis1421-main-swiper .swiper-slide {
    flex-shrink: 0;
    width: 100%;
}

.terminal-kis1421-thumb-swiper .swiper-slide {
    flex-shrink: 0;
    width: calc((100% - 24px) / 3);
}

.terminal-kis1421-main-swiper .slide-content {
    width: 100%;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terminal-kis1421-main-swiper .slide-content img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.terminal-kis1421-thumb-swiper {
    margin-top: 24px;
}

.terminal-kis1421-thumb-swiper .swiper-slide {
    height: 90px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    cursor: pointer;
    opacity: 0.6;
    background: #fff;
}

.terminal-kis1421-thumb-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.terminal-kis1421-thumb-swiper .swiper-slide-thumb-active {
    border: 1px solid #2f6edb;
    opacity: 1;
}

.terminal-spec-section {
    width: 100%;
    margin-top: 80px;
}

.terminal-spec-tab-wrap {
    width: 100%;
    border-bottom: 1px solid #666;
    text-align: left;
    margin-bottom: 40px;
}

.terminal-spec-tab {
    display: inline-block;
    padding: 14px 28px;
    background: #f5f5f5;
    border: 1px solid #666;
    border-bottom: 0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #2d3b4f;
    line-height: 1.2;
    vertical-align: bottom;
    position: relative;
    top: 1px;
}

.terminal-spec-table-wrap {
    width: 100%;
}

.terminal-spec-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    border-top: 2px solid #555;
}

.terminal-spec-table th,
.terminal-spec-table td {
    border: 1px solid #d7d7d7;
    padding: 22px 28px;
    font-size: 16px;
    line-height: 1.45;
    vertical-align: middle;
    box-sizing: border-box;
}

.terminal-spec-table th {
    background: #f3f3f3;
    font-weight: 700;
    color: #111;
    text-align: center;
}

.terminal-spec-table td {
    background: #fff;
    font-weight: 400;
    color: #555;
    text-align: left;
}

@media screen and (max-width: 1024px) {
    .terminal-spec-section {
        margin-top: 60px;
    }

    .terminal-spec-tab {
        min-width: 150px;
        height: 48px;
        padding: 0 22px;
        font-size: 15px;
    }

    .terminal-spec-table th,
    .terminal-spec-table td {
        padding: 18px 20px;
        font-size: 15px;
    }
}

@media screen and (max-width: 768px) {
    .terminal-spec-tab-wrap {
        margin-bottom: 24px;
    }

    .terminal-spec-tab {
        min-width: 130px;
        height: 44px;
        padding: 10px 18px;
        font-size: 14px;
    }

    .terminal-spec-table colgroup {
        display: none;
    }

    .terminal-spec-table,
    .terminal-spec-table tbody,
    .terminal-spec-table tr,
    .terminal-spec-table th,
    .terminal-spec-table td {
        display: block;
        width: 100%;
    }

    .terminal-spec-table {
        border-top: 2px solid #555;
    }

    .terminal-spec-table tr {
        border-bottom: 1px solid #d7d7d7;
    }

    .terminal-spec-table th,
    .terminal-spec-table td {
        border: 0;
        padding: 14px 16px;
    }

    .terminal-spec-table th {
        text-align: left;
        padding-bottom: 6px;
    }

    .terminal-spec-table td {
        padding-top: 0;
    }
}