@import url("../layout/tab.css");
@import url("../components/select.css");

.product-section .section-container {
    padding: 80px 0;
}

.product-card-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    min-height: 650px;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: white;
    border: 1px solid #D0D7DE;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.product-card:hover {
    background-color: #264FA5;
}

.card-title-small,
.card-title,
.card-desc {
    transition: color 0.3s ease;
}

.product-card:hover .card-title-small,
.product-card:hover .card-title,
.product-card:hover .card-desc {
    color: white;
}

.card-link-btn img {
    width: 80px;
    height: 80px;
    transition: all 0.3s ease;
}

.icon-hover {
    display: none;
}

.product-card:hover .icon-default {
    display: none;
}

.product-card:hover .icon-hover {
    display: inline;
}

.card-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
}

.card-title-small {
    margin-bottom: 8px;
    font-size: 32px;
    color: #264FA5;
}

.card-title {
    min-height: 180px;
    margin-bottom: 20px;
    font-size: 44px;
    font-weight: 700;
}

.card-desc {
    margin-bottom: 28px;
    color: #6E7781;
    font-size: var(--font-xl);
    line-height: 1.7;
}

.card-link-btn {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    margin-top: auto;
    align-self: flex-start;
}

.no-item {
    margin: 180px auto;
    text-align: center;
    font-size: var(--font-lg);
}

@media (max-width: 1280px) {
    .product-section .section-container {
        padding: 60px 0;
    }

    .product-card {
        min-height: 550px;
    }

    .card-title-small {
        font-size: 26px;
    }

    .card-title {
        font-size: 35px;
        margin-bottom: 0;
        min-height: 150px;
    }

    .card-desc {
        font-size: var(--font-lg);
        margin-bottom: 0;
    }

    .card-link-btn img {
        width: 70px;
        height: auto;
    }
}

@media (max-width: 1024px) {

    .product-section .section-container {
        padding: 50px 0;
    }

    .product-card {
        min-height: 470px;
        padding: 40px;
    }

    .card-title-small {
        font-size: var(--font-2xl);
    }

    .card-title {
        font-size: 27px;
        min-height: 120px;
    }

    .card-desc {
        font-size: var(--font-md);
    }

    .card-link-btn img {
        width: 60px;
    }
}

@media (max-width: 768px) {
    .product-section .tab-wrapper {
        padding: 0 30px;
    }

    .product-section .section-container {
        padding: 10px 0 50px;
    }

    .product-card-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card {
        min-height: 430px;
        border-radius: 40px;
    }

    .card-title-small {
        font-size: var(--font-lg);
    }

    .card-title {
        font-size: 25px;
    }

    .card-link-btn img {
        width: 50px;
    }
}

@media (max-width: 480px) {
    .product-section .tab-wrapper {
        padding: 0 20px;
    }

    .product-card-list {
        gap: 20px;
        grid-template-columns: repeat(1, 1fr);
    }

    .product-card {
        min-height: auto;
        padding: 25px;
        border-radius: 20px;
    }

    .card-title-small {
        font-size: var(--font-md);
    }

    .card-title {
        font-size: var(--font-lg);
        min-height: auto;
        margin-bottom: 10px;
    }

    .card-desc {
        font-size: var(--font-base);
    }

    .card-link-btn {
        align-self: flex-end;
    }

    .card-link-btn img {
        width: 45px;
    }

    .no-item {
        font-size: var(--font-base);
    }
}

/***********************
        제품 상세
 ***********************/
.detail-breadcrumb {
    position: relative;
    margin-bottom: 40px;
    background-color: white;
    font-size: var(--font-2xl);
    font-weight: 500;
    z-index: 100;
}

.select-box-group {
    min-height: 90px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    background-color: white;
    z-index: 101;
}

.select-box+.select-box {
    margin-left: 20px;
    position: relative;
}

.select-box+.select-box::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 18px;
    background-color: #D0D7DE;
}

.select-box {
    font-size: var(--font-2xl);
    width: auto;
    min-width: 200px;
    flex-shrink: 0;
    padding: 0 20px 0 10px;
}

.select-box-group .select-box:nth-child(2) {
    padding-right: 100px;
}

.selected {
    min-height: 50px;
    padding: 12px 40px 12px 16px;
    background-position: right 16px center;
    border: none;
    color: #24292F;
    background-size: 14px;
}

.selected,
.select-box {
    transition: all 0.3s ease;
}

.select-box:hover {
    background-color: #F6F8FA !important;
}

.select-box:hover .selected {
    background-color: #F6F8FA !important;
}

.option-list {
    padding: 11px 8px;
}

.option-list li {
    min-height: 50px;
    padding: 6px 20px;
    border-bottom: none;
    font-size: var(--font-md);
}

.option-list li.active {
    background-color: white;
    color: #264FA5;
    font-weight: 600;
}

.option-list li:hover {
    background-color: white;
    color: #264FA5;
}

.option-list {
    border-radius: 0;
}

.detail-main {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 80px;
    align-items: center;
}

.detail-text {
    flex: 1.5;
}

.detail-text .card-title-small {
    font-weight: 600;
    font-size: 34px;
}

.detail-text .card-title {
    min-height: 0;
    margin-bottom: 40px;
    font-size: 64px;
    font-weight: 600;
}

.detail-text .card-desc {
    margin-bottom: 120px;
    color: #424A53;
}

.detail-downloads-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-downloads {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-download {
    min-width: 230px;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 15px 26px;
    border: 1px solid #D0D7DE;
    border-radius: 10px;
    font-size: var(--font-base);
    font-weight: 400;
    transition: all ease 0.3s;
}

.btn-download img {
    width: 18px;
    height: 18px;
}

.btn-watch-video {
    padding: 17px 26px;
    color: #264FA5;
    background-color: rgba(112, 153, 238, 0.1);
}

.btn-watch-video img:first-of-type {
    width: 24px;
    height: auto;
    margin-right: 4px;
}

.btn-watch-video img:last-of-type {
    width: 9px;
    height: auto;
}

.btn-download:hover {
    background-color: #F0F4FF;
    border-color: #264FA5;
    color: #264FA5;
}

.btn-download.disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: default;
}

.slider-thumbs-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.slider-prev,
.slider-next {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0 10px;
}

.slider-prev img,
.slider-next img {
    width: 50px;
    height: 50px;
}

.detail-image-slider {
    width: 810px;
    height: 769px;
    max-width: 810px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 700px;
    flex: 1;
    padding: 40px 115px;
    background-color: #F6F8FA;
    border-radius: 20px;
}

.slider-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-main img {
    max-width: 550px;
    max-height: 550px;
    border-radius: 30px;
    margin-bottom: 44px;
}

.slider-thumbs {
    display: flex;
    gap: 14px;
}

.slider-thumbs img {
    width: auto;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-thumbs img.active,
.slider-thumbs img:hover {
    border: 1px solid #264FA5;
    transform: scale(1.05);
}

.detail-sections>div+div {
    margin-top: 120px;
}

.detail-sections h3 {
    margin-bottom: 30px;
    font-size: 40px;
    font-weight: 600;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid #AFB8C1;
}

.spec-table th,
.spec-table td {
    padding: 35px 50px;
    text-align: left;
}

.spec-table th {
    background-color: #F6F8FA;
    width: 250px;
    text-align: center;
    font-size: var(--font-xl);
    font-weight: 600;
    white-space: nowrap;
}

.spec-table tr:first-child th {
    border-top: 1px solid #57606A;
}

.spec-table td {
    font-size: var(--font-md);
    font-weight: 300;
}

.spec-table-v2 {
    border-top: none;
}

.spec-table-v2 .spec-head-v2 th {
    background-color: #F6F8FA;
    text-align: left;
    padding: 15px 50px;
    border-top: none !important;
    border-bottom: 1px solid #57606A;
}

.spec-table-v2 .spec-label-col.empty {
    background-color: white;
}

.spec-table-v2 th,
.spec-table-v2 td {
    border-right: 1px solid #AFB8C1;
}

.spec-table-v2 th:last-child,
.spec-table-v2 td:last-child {
    border-right: none;
}

.spec-table-v2 th:first-child,
.spec-table-v2 td:first-child {
    border-right: none;
}

.spec-label-col.fixed {
    width: 80px;
    min-width: 50px;
    max-width: 80px;
}

.feature-columns {
    display: flex;
    gap: 30px;
}

.feature-columns ul {
    flex: 1;
    border-top: 2px solid #24292F;
    padding: 30px;
}

.feature-columns li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 20px 0 15px;
    color: #24292F;
    border-bottom: 1px solid #EAEEF2;
    font-size: var(--font-md)
}

.feature-columns li:first-child {
    padding-top: 0;
}

.feature-columns li::before {
    content: '•';
    flex-shrink: 0;
    font-size: 35px;
    color: #57606A;
    line-height: 1;
}

.detail-delivery {
    display: flex;
}

.detail-delivery h3 {
    flex: 1;
}

.detail-delivery ul {
    flex: 5;
    padding: 30px;
    background-color: rgba(246, 248, 250, 0.5);
    border-radius: 20px;
}

.detail-delivery ul li {
    position: relative;
    padding: 10px 30px;
    color: #424A53;
    font-size: var(--font-md);
}

.detail-delivery ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 8px;
    color: #D0D7DE;
    font-size: 30px;
    line-height: 1;
}

@media (max-width: 1280px) {
    .select-box {
        font-size: var(--font-xl);
    }

    .detail-text .card-title-small {
        font-size: 28px;
    }

    .detail-text .card-title {
        font-size: 50px;
    }

    .detail-image-slider {
        padding: 40px 60px;
    }
}

@media (max-width: 1024px) {

    .detail-text .card-title-small {
        font-size: 25px;
    }

    .detail-text .card-title {
        font-size: 42px;
    }

    .detail-image-slider {
        padding: 40px 10px;
    }

    .slider-main img {
        max-width: 400px;
        max-height: 480px;
    }

    .detail-sections h3 {
        font-size: 34px;
    }

    .spec-table th,
    .spec-table td {
        padding: 30px 50px;
    }

    .spec-table th {
        font-size: var(--font-lg);
    }
}

@media (max-width: 768px) {
    .select-box-group {
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
    }

    .select-box {
        width: 100%;
        min-width: unset;
        padding: 0;
    }

    .select-box+.select-box {
        margin-left: 0;
    }

    .select-box+.select-box::before {
        display: none;
    }

    .select-box {
        font-size: 19px;
        padding: 0;
    }

    .select-box-group .select-box:nth-child(2) {
        padding-right: 0;
    }

    .option-list {
        padding-top: 15px;
        padding-bottom: 0;
    }

    .option-list li {
        padding: 0 10px;
    }

    .detail-main {
        flex-direction: column;
        align-items: normal;
    }

    .detail-text .card-title-small {
        font-size: var(--font-xl);
    }

    .detail-text .card-title {
        font-size: 38px;
        margin-bottom: 20px;
    }

    .detail-text .card-desc {
        margin-bottom: 40px;
    }

    .detail-image-slider {
        height: auto;
        width: auto;
        max-height: 520px;
        max-width: none;
        padding: 10px 10px 40px;
    }

    .slider-thumbs-wrapper {
        margin-top: 20px;
    }

    .slider-main img {
        margin-bottom: 0;
        width: auto;
        max-width: 500px;
    }

    .detail-sections h3 {
        font-size: 29px;
    }

    .spec-table th {
        width: 200px;
    }

    .spec-table th,
    .spec-table td {
        padding: 20px 30px;
    }

    .detail-sections>div+div {
        margin-top: 80px;
    }

    .feature-columns {
        flex-direction: column;
        gap: 20px;
    }

    .feature-columns ul {
        padding: 0 10px;
    }

    .feature-columns ul:first-child li:first-child {
        padding-top: 15px;
    }

    .feature-columns ul:not(:first-child) {
        border-top: none;
    }

    .detail-delivery {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .tab-btn {
        padding: 9px 10px;
    }

    .subtab-wrapper {
        margin-bottom: 15px;
    }

    .product-section .tab-wrapper {
        margin-bottom: 15px;
    }

    .select-box-group {
        gap: 0;
    }

    .select-box {
        font-size: var(--font-base);
    }

    .option-list {
        padding-top: 10px;
    }

    .option-list li {
        padding: 5px 10px;
        font-size: var(--font-base);
    }

    .detail-breadcrumb {
        margin-bottom: 40px;
        border-top: 1px solid #EAEEF2;
    }

    .detail-text .card-title-small {
        font-size: var(--font-lg);
    }

    .detail-text .card-title {
        font-size: 30px;
    }

    .btn-download {
        padding: 8px 15px;
        font-size: var(--font-sm);
    }

    .detail-text .card-desc {
        margin-bottom: 20px;
    }

    .detail-image-slider {
        min-height: 500px;
    }

    .slider-main img {
        max-width: 280px;
        max-height: 310px;
        border-radius: 10px
    }

    .slider-thumbs {
        flex-wrap: wrap;
    }

    .slider-thumbs img {
        max-width: 60px;
        height: 50px;
    }

    .slider-prev img,
    .slider-next img {
        width: 40px;
        height: 40px;
    }

    .detail-sections h3 {
        font-size: var(--font-2xl);
        margin-bottom: 20px;
    }

    .spec-table th {
        width: auto;
        font-size: var(--font-base);
        padding: 10px 20px;
        white-space: wrap;
    }

    .spec-table td {
        padding: 10px 20px;
        font-size: var(--font-sm);
    }

    .feature-columns li {
        font-size: var(--font-sm);
    }

    .feature-columns li::before {
        font-size: 28px;
    }

    .detail-main {
        margin-bottom: 50px;
    }

    .detail-sections>div+div {
        margin-top: 60px;
    }

    .detail-delivery ul {
        padding: 20px;
    }

    .detail-delivery ul li {
        font-size: var(--font-sm);
    }

    .spec-table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .spec-table-v2 {
        min-width: 600px;
    }

    .tabs {
        border-radius: 10px;
        overflow-x: auto;
        flex-wrap: nowrap;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        scroll-snap-align: start;
    }
}