
/* ==========================================
   Proterial Korea EV Products
   EV 관련 제품 전용 CSS
   ========================================== */

/* 기본 설정 */
#ev-products,
#ev-products * {
    box-sizing: border-box;
}

#ev-products {
    width: 100%;
    background: #001b49;
    color: #fff;
    font-family: inherit;
}

/* 전체 레이아웃 */
#ev-products .ev-products__layout {
    display: grid;
    grid-template-columns: 40% 60%;
    min-height: 375px;
}

/* 왼쪽 차량 이미지 */
#ev-products .ev-products__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
}

#ev-products .ev-products__visual img {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
}

/* 오른쪽 제품 목록 */
#ev-products .ev-products__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(90px, 1fr));
    padding: 14px 12px 14px 0;
    min-width: 0;
    position: relative;
}

/* 중앙 세로 구분선 - 전체 4행 연결 */
#ev-products .ev-products__grid::after {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: calc(50% - 6px);
    width: 1px;
    background: rgba(255, 255, 255, .8);
    pointer-events: none;
}

/* 개별 제품 항목 */
#ev-products .ev-products__item {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
    padding: 10px 9px 10px 15px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .8);
    background: transparent;
}

/* 마지막 행 하단 테두리 제거 */
#ev-products .ev-products__item:nth-child(n+7) {
    border-bottom: 0;
}

/* 제품 이미지 */
#ev-products .ev-products__item img {
    flex: 0 0 31%;
    width: 31%;
    max-width: 95px;
    height: auto;
    max-height: 75px;
    object-fit: contain;
    display: block;
    border: 0;
}

/* 제품명 - 기존 14px에서 16px로 확대 */
#ev-products .ev-products__name {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
}

/* ==========================================
   태블릿 반응형
   ========================================== */
@media (max-width: 850px) {

    #ev-products .ev-products__layout {
        grid-template-columns: 1fr;
    }

    #ev-products .ev-products__visual {
        max-height: 340px;
    }

    #ev-products .ev-products__visual img {
        max-width: 580px;
    }

    #ev-products .ev-products__grid {
        padding: 0 16px 14px;
        grid-template-rows: none;
    }

    #ev-products .ev-products__grid::after {
        top: 0;
        bottom: 14px;
        left: 50%;
    }
}

/* ==========================================
   모바일 반응형
   ========================================== */
@media (max-width: 560px) {

    #ev-products .ev-products__grid {
        grid-template-columns: 1fr;
        padding: 0 15px 12px;
    }

    /* 모바일에서는 중앙 세로선 제거 */
    #ev-products .ev-products__grid::after {
        display: none;
    }

    #ev-products .ev-products__item {
        min-height: 88px;
        padding: 12px 8px;
        border-bottom: 1px solid rgba(255, 255, 255, .7) !important;
        border-left: 0 !important;
    }

    #ev-products .ev-products__item:last-child {
        border-bottom: 0 !important;
    }

    #ev-products .ev-products__item img {
        width: 90px;
        flex-basis: 90px;
    }

    #ev-products .ev-products__name {
        font-size: 16px;
    }
}
