/* containers */
.hsprod-container,
.hsprod-single-container {
    max-width: none;
    margin: 0 auto;
    position: relative;
}

.hsprod-container {
    width: 100%;
}

.hsprod-single-container {
    width: 80%;
}


.hsprod-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    row-gap: 48px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

.hsprod-card {
    overflow: hidden;
    transition: transform .2s;
}

.hsprod-card:hover {
    transform: translateY(-4px);
}

.hsprod-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.hsprod-title-wrap {
    display: flex;
    flex-direction: column;
}

.hsprod-title {
    margin-top: 20px;
    text-align: center;
    margin-bottom: 0px !important;
    color: #1f2328 !important;
    font-size: 18px;
    font-weight: 600;
}

/* search */
.hsprod-search {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: 0px auto;
    height: 0px;
}

.hsprod-search input[type="search"] {
    width: 100%;
    padding: 14px 18px 14px 48px;
    font-size: 16px !important;
    font-weight: 500;
    line-height: 1.2;
    border: 1px solid #ddd;
    border-radius: 9999px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
    outline: none;
    box-sizing: border-box;
    height: 20px;
}

/* placeholder 색상 살짝 연하게 */
.hsprod-search input[type="text"]::placeholder {
    color: #9aa0a6;
}

/* 돋보기 아이콘 (SVG data-URL) */
.hsprod-search::before {
    content: "";
    position: absolute;
    left: 16px;
    top: -9px;
    width: 20px;
    height: 20px;
    transform: translateY(112%);
    background: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" stroke="%239aa0a6" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="7"/><path d="M20 20l-3.5-3.5"/></g></svg>') no-repeat center / contain;
    pointer-events: none;
    z-index: 10;
}

#hsps-1-input {
    top: -10px;
    position: relative;
}

.hsprod-search input[type="text"]:focus {
    color: #1f2328
}

.hsprod-search button {
    display: none !important;
}

.hsprod-single-head {
    display: flex;
    justify-content: center;
    gap: 100px;
    padding: 50px 0;
    align-items: start;
    margin-bottom: 80px;
}

.hsprod-dl {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.hsprod-btn {
    display: flex;
    color: #1F2328;
    text-decoration: none;
    font-size: 16px;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    border: solid 1px #CCD0D7;
    justify-content: center;
}

.hsprod-btn img {
    width: 21px;
    height: 21px;
}

.hsprod-btn1 {
    width: 48.5%;
}

.hsprod-btn2 {
    width: 100%;
}

.hsprod-btn:hover {
    font-weight: 900;
    color: #1F2328;
}

.hsprod-options-table,
.hsprod-table {
    width: 100%;
    border-collapse: collapse;
}

.hsprod-options-table th,
.hsprod-options-table td,
.hsprod-table th,
.hsprod-table td {
    border-top: 1px solid #e2e8f0;
    padding: 10px;
}

.hsprod-options-wrap,
.hsprod-table-wrap {
    font-size: 16px;
    line-height: 24px;
    color: #1F2328;
    border-bottom: 1px solid #768293;
    border-top: 1px solid #768293;
}

.hsprod-options-table tr>td:first-child,
.hsprod-table tr>td:first-child {
    background-color: #F6F7F8;
    font-weight: 600;
}

.hsprod-options-table tr>td:last-child,
.hsprod-table tr>td:last-child {
    font-weight: 400;
}

.hsprod-card-subtitle {
    font-size: 18px;
    line-height: 18px;
    color: #1f2328;
    text-align: center;
    font-weight: 500;
}



#main>.wf-wrap {
    width: 100% !important;
}

body.hsprod-single .display-none {
    display: none !important;
}

body:not(.hsprod-single) .display-none {
    display: block !important;
}


.zoom-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
    line-height: 10px;
}

.zoom-icon img {
    width: 24px;
    height: 24px;
}

.zoom-icon:hover {
    transform: scale(1.1);
}

/* 모달 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    text-align: center;
}

.modal-content {
    max-width: 90%;
    max-height: 80%;
    margin: auto;
    display: block;
}

.modal .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.hsprod-left,
.hsprod-right {
    position: relative;
}

.hsprod-left {
    max-width: 400px;
    width: 50%;
}

.hsprod-right {
    width: 50%;
}

.hsprod-single-title,
.hsprod-subtitle {
    font-size: 34px;
    line-height: 40px;
    font-weight: 700;
    color: #1F2328;
}

.hsprod-single-head h2 {
    font-size: 22px;
    line-height: 26px;
    color: #1771f8;
    font-weight: 700;
    margin-top: 44px;
}

.hsprod-single-content p {
    font-size: 16px;
    line-height: 24px;
    color: #1F2328;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .hsprod-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hsprod-single-head {
        flex-direction: column;
        align-items: center;
    }

    .hsprod-left {
        max-width: 500px;
        width: 100%;
    }

    .hsprod-right {
        width: 100%;
    }




}

@media (max-width: 768px) {
    .hsprod-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .hsprod-single-container {
        width: 92%;
    }

    .hsprod-single-head {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hsprod-single-title,
    .hsprod-subtitle {
        font-size: 28px;
        line-height: 34px;
    }

    .hsprod-single-head h2 {
        font-size: 18px;
        line-height: 22px;
    }

    .hsprod-table tr {
        display: flex;
        flex-direction: column;
    }

    .hsprod-search::before {
        top: -2px;
    }

    #hsps-1-input {
        top: 8px;
    }

    .hsprod-btn1 {
        width: 49%;
    }

}