@charset "utf-8";

:root {
    --primary: #3358FF;
}

/* 템플릿 공통 *********************************/


/* 템플릿 리스트 *********************************/
.template-list-wrap {
    padding: 120px 0;
}

/* 🎯 타이틀 영역 */
.template-list-wrap .template-page-heading {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeUp 0.8s ease;
}

.template-list-wrap .template-page-heading h1 {
    font-size: 36px;
    color: #2c2c2c;
    line-height: 1.4;
    margin-bottom: 16px;
    font-weight: 500;
}

/*
.template-list-wrap .template-page-heading h1 strong {
    font-weight: inherit;
    background: linear-gradient(90deg, #00c853, #00bcd4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}
*/

.template-list-wrap .template-page-heading p {
    font-size: 18px;
    color: #666;
}


.template-filter-wrap {
    max-width: 1600px;
    margin: 0 auto 24px;
}

/* 🔍 검색 영역 */
.template-list-wrap .template-search-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.template-list-wrap .template-search-form {
    margin-bottom: 20px;
    margin: 0 auto;
    max-width: 702px;

}

.template-list-wrap .template-search-input-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 3px solid #111;
    border-radius: 60px;
    padding: 0 20px;
    height: 64px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    max-width: 100%;
}

.template-list-wrap .template-search-input-box .search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 0 10px;
    height: 100%;
    background: transparent;
}

.template-search-input-box:focus-within {
    box-shadow: none !important;
}

.template-list-wrap .template-search-input-box .search-input:focus {
    outline: none !important;
    box-shadow: none !important;
}

.template-list-wrap .template-search-input-box .icon-btn {
    background: none;
    border: none;
    color: #3a5cf4;
    margin-left: 10px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.2s;
}

.template-list-wrap .template-search-input-box .icon-btn img {
    width: 24px;
}

.template-list-wrap .template-search-input-box .icon-btn:hover {
    background: rgba(199, 199, 199, 0.1);
}

.template-list-wrap .template-search-input-box .reset-btn {
    transform: rotate(0deg);
    transition: transform 0.2s;
}

.template-list-wrap .template-search-input-box .reset-btn:hover {
    transform: rotate(180deg);
}

/* ✅ 페이드 업 애니메이션 */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.template-search-wrap .search-input.animate {
    animation: fadeUp 0.6s ease;
}

@media (max-width:500px) {
    .template-list-wrap .template-search-form {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .template-list-wrap .template-search-input-box .search-input {
        flex: 1;
        min-width: 0;
    }

    .template-list-wrap .template-search-form {
        max-width: none;
        width: 100%;
    }
}

/* 💬 인기 키워드 박스 */
.template-list-wrap .popular-keyword-box {
    margin-top: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    animation: fadeUp 0.4s ease;
}

.template-list-wrap .popular-keywords {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.template-list-wrap .popular-keywords li {
    background: #f3f6ff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: #3366cc;
    cursor: pointer;
    transition: background 0.2s;
}

.template-list-wrap .popular-keywords li:hover {
    background: #e0ebff;
}

/* 🎯 필터 */
.template-list-wrap .template-type-filter {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.template-list-wrap .template-type-filter a {
    font-size: 14px;
    color: #444;
    text-decoration: none;
    font-weight: 500;
}

.template-list-wrap .template-type-filter a.on {
    color: #1a73e8;
    font-weight: bold;
}

/* 🧩 카드 리스트 */
.template-list-wrap .template-grid {
    max-width: 1600px;
    margin: 0 auto 100px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.template-list-wrap .template-card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s ease;
    position: relative;
    box-shadow: 5px 38px 90px rgba(100, 100, 100, 0.1);
}

.template-list-wrap .template-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.template-list-wrap .template-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    border-radius: 4px;
}

.template-list-wrap .template-badge.category {
    background-color: #3a88f4;
}

.template-list-wrap .template-badge.free {
    background-color: #3a88f4;
}

.template-list-wrap .template-badge.paid {
    background-color: #e53e3e;
}

.template-list-wrap .template-info {
    padding: 16px;
}

.template-list-wrap .template-info h3 {
    font-size: 18px;
    margin: 0 0 10px;
}

.template-list-wrap .template-info p {
    font-size: 14px;
    color: #555;
}

.template-list-wrap .view-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
    color: #0070f3;
    text-decoration: none;
}

/* ❌ 검색 결과 없음 */
.template-list-wrap .template-empty-box {
    text-align: center;
    padding: 100px 20px;
    background: #f9f9f9;
    border-radius: 12px;
    grid-column: 1 / -1;
}

.template-list-wrap .template-empty-box .message {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.6;
}

.template-list-wrap .template-empty-box .cta-button {
    display: inline-block;
    padding: 12px 24px;
    background: #0072ff;
    color: #fff;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.template-list-wrap .template-empty-box .cta-button:hover {
    background: #005ce0;
}

/* 📝 등록 버튼 */
.template-list-wrap .template-write-btn-box {
    text-align: right;
    margin: 40px auto 0;
    max-width: 1200px;
    padding: 0 20px;
}

.template-list-wrap .template-write-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1a73e8;
    color: #fff;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.template-list-wrap .template-write-btn:hover {
    background-color: #0f5bd8;
}

.template-filter-wrap #filterModal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 480px;
    background: #fff;
    z-index: 9999;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.template-filter-wrap .template-section__filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    font-size: 18px;
}

.template-section__filter-tab {
    display: flex;
    gap: 10px;
}

.template-filter-wrap .template-section__filter-header .tab-btn {
    opacity: .3;
}

.template-filter-wrap .template-section__filter-header .tab-btn.on {
    opacity: 1;
}

.template-filter-wrap .template-section__filter-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

.template-filter-wrap .template-section__filter-content {
    max-height: 50vh;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.template-filter-wrap .template-section__category {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    padding: 20px;
}

.template-filter-wrap .template-section__category:not(:last-child) {
    margin-bottom: 12px;
}



.template-filter-wrap .checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* ✅ 2열 자동 배치 */
    gap: 12px 20px;
    max-height: calc((40px + 12px) * 2);
    /* ✅ row 2줄만 제한 */
    overflow-y: auto;
}

/* 체크박스 항목 */
.template-filter-wrap .checkbox-wrap {
    display: flex;
    align-items: center;
    cursor: default;
}


.template-filter-wrap .checkbox-wrap input[type="checkbox"],
.template-filter-wrap .checkbox-wrap span {
    cursor: pointer;
}

.template-filter-wrap .checkbox-wrap input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: #fff;
    border: 2px solid #ccc;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-block;
}

.template-filter-wrap .checkbox-wrap input[type="checkbox"]:checked {
    background-color: #0076ff;
    border-color: #0076ff;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 20 20' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.629 14.314a1 1 0 01-1.414 0L3.05 11.15a1 1 0 111.415-1.414l2.45 2.45 7.07-7.071a1 1 0 111.415 1.414l-8.77 8.785z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
}

.template-filter-wrap .template-section__filter-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 520px;
    background: #fff;
    z-index: 9999;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
    /* ✅ 내부 스크롤만 보이게 하기 위해 유지 */
}

/* 내부 스크롤 영역 */
.template-section__filter-modal .filter-tab-content {
    overflow-y: auto;
    height: 270px;
    padding: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* 스크롤바 스타일 */
.template-section__filter-modal .filter-tab-content::-webkit-scrollbar {
    width: 6px;
}

.template-section__filter-modal .filter-tab-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.template-section__filter-modal .filter-tab-content::-webkit-scrollbar-track {
    background: transparent;
}


.template-filter-wrap .template-section__category .checkbox-wrap:nth-child(odd) {
    margin-right: 4%;
}

.template-filter-wrap .template-section__category-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 16px;
}

.template-filter-wrap .template-section__category label {
    font-size: 14px;
    margin-bottom: 6px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 2px;
}

.template-filter-wrap .template-section__category input[type="checkbox"] {
    margin-right: 6px;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 6px;
    position: relative;
    cursor: pointer;
}

.template-filter-wrap .template-section__category input[type="checkbox"]:checked {
    border-color: #0b73e5;
    background-color: #0b73e5;
}

.template-filter-wrap .template-section__category input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 0;
    left: 4px;
    font-size: 14px;
    color: #fff;
}






.template-filter-wrap .template-section__filter-footer {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
}

.template-filter-wrap .template-section__filter-reset,
.template-filter-wrap .template-section__filter-apply {
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.template-filter-wrap .template-section__filter-reset {
    background: #f0f0f0;
    color: #333;
}

.template-filter-wrap .template-section__filter-apply {
    background: var(--primary);
    color: #fff;
}

.template-filter-wrap .template-section__dim,
.template-filter-wrap .template-filter-dim {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
    backdrop-filter: blur(1px);
}

.template-filter-wrap .filter-btn-dflx {
    display: flex;
    gap: 10px;
}

.template-filter-wrap .filter-btn-dflx .filter-btn {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid #555;
    color: #555;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.template-filter-wrap .filter-btn.last {
    border: 2px solid #e2e2e2;
}

.template-filter-wrap .filter-btn:hover {
    background: #c5192d;
    color: #fff;
}

.template-filter-wrap .filter-btn-dflx .filter-btn:hover {
    background: #f8f8f8;
    color: #555;
}



.template-filter-wrap .color-type .checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.template-filter-wrap .color-type .color-chip {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 4px;
}

.template-filter-wrap .filter-top {
    width: 100%;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 9;
    background: #fff;
}

.template-filter-wrap .filter-top .top-dflx {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px 8px 8px 16px;
    background: #f9f9f9;
    border-radius: 4px;
}

.template-filter-wrap .total {
    font-size: 18px;
    font-weight: 600;
}

.template-filter-wrap .total strong {
    color: var(--primary);
    font-weight: bold;
}

.template-filter-wrap .filter-selected-bar {
    display: none;
    justify-content: space-between;
    align-items: center;
    background: #f7f8fa;
    padding: 10px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
}

.template-filter-wrap .filter-selected-bar .template-section__selected-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex: 1;
}

.template-filter-wrap .filter-selected-bar .template-section__selected-filters::-webkit-scrollbar {
    display: none;
}

.template-filter-wrap .filter-selected-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.template-filter-wrap .filter-tag {
    background: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-weight: 500;
    color: #555;
    flex-shrink: 0;
    white-space: nowrap;
}

.template-filter-wrap .filter-tag button {
    background: none;
    border: none;
    font-size: 12px;
    cursor: pointer;
    color: #666;
}

.template-filter-wrap .filter-reset-btn {
    background: none;
    border: none;
    color: #222;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.template-filter-wrap .selected-filters .filter-tag {
    background: #f0f0f0;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 14px;
}

.template-filter-wrap .selected-filters .filter-tag .remove-tag {
    background: none;
    border: none;
    margin-left: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

/* ✅ 템플릿 리스트 썸네일 (프리픽스 제거) */
.template-list-wrap .template-thumb {
    height: 250px;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
    border: 1px solid #eee;
    transition: transform 0.8s ease;
}

.template-list-wrap .template-thumb:hover {
    transform: scale(1.01);
}

.template-list-wrap .template-thumb img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 1.2s ease;
}


/* ✅ 가격 정보 */
.template-filter-wrap .template-card .template-price {
    margin: 8px 0;
    font-size: 15px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.template-filter-wrap .template-card .template-price .final {
    font-weight: bold;
    color: #1a73e8;
}

.template-filter-wrap .template-card .template-price .original {
    text-decoration: line-through;
    color: #aaa;
    font-size: 14px;
}

.template-filter-wrap .template-card .template-price .free {
    font-weight: bold;
    color: #4CAF50;
}

/* ✅ 페이지네이션 */
.template-filter-wrap .template-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
    font-size: 15px;
}

.template-filter-wrap .template-pagination a,
.template-filter-wrap .template-pagination span {
    display: inline-block;
    min-width: 36px;
    height: 36px;
    line-height: 34px;
    text-align: center;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.template-filter-wrap .template-pagination .current {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
    font-weight: bold;
}

.template-filter-wrap .template-pagination a:hover {
    background-color: #e6f0ff;
    border-color: #007bff;
    color: #007bff;
}

.template-filter-wrap .template-pagination a.active {
    background: #222;
    color: #fff;
    font-weight: bold;
    border-color: #222;
}

/* ✅ 반응형 (max-950 이하) */
@media (max-width: 950px) {
    .template-filter-wrap .filter-selected-bar {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 10px 8px;
        flex-direction: row;
        /* ← 유지! column 금지 */
    }

    .template-filter-wrap .filter-selected-bar .template-section__selected-filters {
        flex: 1;
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .template-filter-wrap .filter-selected-bar .template-section__selected-filters::-webkit-scrollbar {
        display: none;
    }

    .template-filter-wrap .filter-tag {
        font-size: 13px;
        padding: 6px 10px;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .template-filter-wrap .filter-reset-btn {
        flex-shrink: 0;
        padding: 6px 0;
        font-size: 13px;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .template-filter-wrap .filter-top .top-dflx {
        padding: 8px 0 8px 8px;
    }

}



/* 템플릿 상세 *********************************/
.template-view {
    padding: 140px 0 100px;
    margin: 0 auto;
}

.template-view .template-view__layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 1440px;
    margin: 0 auto;
}

.template-view .template-view__layout .view-thumb-wrap {
    box-shadow: 0 0 10px rgb(0 0 0 / 10%);
    border-radius: 8px;
    width: 58%;
}

.template-view .template-view__layout .template-view__info {
    width: 40%;
}

.template-view .template-view__layout .template-view__info .view-top-dflx {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.template-view .preview_wrap {
    margin: 0 auto;
    max-width: 1400px;
    height: 504px;
    overflow-y: scroll;
    position: relative;
    border: 2px solid #fff;
}

.template-view .preview_wrap::-webkit-scrollbar {
    width: 6px;
}

.template-view .preview_wrap::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.template-view .preview_wrap::-webkit-scrollbar-track {
    background: transparent;
}

.template-view .template-view__preview img {
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.template-view .template-view__info {
    flex: 1;
    min-width: 320px;
}

.template-view .template-view__title {
    font-size: 22px;
}

.template-view .template-view__title .template-code {
    color: #999;
    text-transform: uppercase;
}

.template-view .template-view__price-wrap {
    position: relative;
    background: #fdfdfd;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    margin-top: 24px;
    border: 1px solid #eee;
}

.template-view .template-view__price-wrap .price-dflx {
    display: flex;
    flex-direction: column;
}

.template-view .template-view__price-wrap .estimate_btn {
    position: absolute;
    right: 20px;
    bottom: 20px;
}

.template-view .template-view__price-wrap .estimate_btn a {
    display: flex;
    align-items: center;
    color: #fff;
    background: #355396;
    padding: 8px 12px;
    font-size: 13px;
}

.template-view__info .sns-share {
    display: flex;
}

.template-view__info .sns-share li:first-child {
    margin-right: 8px;
}

.template-view__info .sns-share li button,
.template-view__info .sns-share li a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.template-view__info .sns-share li img {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.template-view__info .sns-share li:hover img {
    opacity: 1;
}

.template-view__info .copy-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.template-view__info .copy-toast.show {
    display: block;
    opacity: 1;
}

.template-view .template-view__price-original {
    text-decoration: line-through;
    color: #ccc;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 4px;
}

.template-view__price-final .discount-percent {
    color: var(--primary);
}

.template-view .template-view__price-final .final-dflx {
    font-size: 24px;
    font-weight: bold;
}

.template-view .template-view__options {
    margin: 24px 0;
}

.template-view .template-view__options li {
    font-size: 15px;
    line-height: 1.8;
    display: flex;
}

.template-view .template-view__options li:not(:last-child) {
    margin-bottom: 8px;
}

.template-view .template-view__options li strong {
    display: inline-block;
    width: 80px;
    margin-right: 10px;
}

.template-view .template-view__options li p span {
    color: #888;
}

.template-view .template-view__options li .cta-sample-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    margin-left: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #455b6b;
    background: #eaf4fb;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.cta-sample-btn::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 6px;
    background: url("data:image/svg+xml;utf8,<svg fill='%555' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 4l8 8-8 8-1.41-1.41L16.17 13H4v-2h12.17l-5.58-5.59L12 4z'/></svg>") no-repeat center / contain;
}

.template-view .template-view__options li .cta-sample-btn:hover {
    opacity: .8;
}


.template-view .template-view__btns {}

.template-view .btn {
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    display: inline-block;
}


.template-view .template-view__btns .dflx-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 30px;
}

.template-view .template-view__btns .dflx-btn .left {
    width: 100%;
    margin-bottom: 8px;
}

.template-view .template-view__btns .dflx-btn .left {
    display: flex;
}

.template-view .template-view__btns .dflx-btn .left a {
    white-space: nowrap;
    width: 100%;
    display: block;
}

.template-view .template-view__btns .dflx-btn .left a:first-child {
    border-right: 0;
}

.template-view .template-view__btns .dflx-btn .right {
    width: 100%;
}

.template-view .template-view__btns .dflx-btn .right a {
    width: 100%;
}


.template-view .btn-outline {
    border: 1px solid #b2b2b2;
    background: #fff;
    color: #333;
}

.template-view .btn-black {
    background: #000;
    color: #fff;
}

.template-view .circle {
    height: 24px;
    align-items: center;
    display: flex;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.template-view .circle ul {
    display: flex;
    padding-left: 10px;
}

.template-view .circle ul li {
    background-color: #d3d3d3;
    border-radius: 50%;
    height: 6px;
    width: 6px;
    display: block;
}

.template-view .circle ul li:not(:last-child) {
    margin-right: 6px;
}

.template-view.device-desktop {
    margin: 0 auto;
    max-width: 1400px;
    height: 472px;
    overflow-y: scroll;
    position: relative;

    border-radius: 8px;
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgb(0 0 0 / 10%);
}

.template-view .device {
    display: inline-block;
    position: relative;
}

.template-view__options .bnn-list {
    margin-top: 20px;
}

.template-view__options .bnn-item {

    border-radius: 4px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    color: #333;
}

.template-view__options .bnn-item.bnn2 {
    background: #e6f8ff;
}

.template-view__options .bnn-item.bnn1 {
    background: #fff1e6;
}

.template-view__options .bnn-item:not(:last-child) {
    margin-bottom: 8px;
}

.template-view__options .bnn-item .title-dflx {
    display: flex;
    align-items: center;
}

.template-view__options .bnn-item .emoji {
    display: inline-block;
    margin-right: 4px;
}

.template-view__options .bnn-item .bnn-link {
    margin-left: 20px;
    color: #1a2b44;
    font-weight: bold;
    text-decoration: underline;
    font-size: 14px;
}

.template-view .template-view__detail {
    margin-top: 100px;
}

.template-view .template-view__detail .sec1 {
    padding: 100px 0;
    background: #f8f8f9;
}

.template-view__detail .benefit-list {
    display: flex;
    flex-direction: column;
    gap: 100px;
    padding: 150px 0;
    max-width: 1440px;
    margin: 0 auto;
}

.template-view__detail .benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    justify-content: space-between;
}

.template-view__detail .benefit-item.reverse {
    flex-direction: column-reverse;
}

.template-view__detail .benefit-item .img-box {
    text-align: right;
}

.template-view__detail .benefit-item .img-box img {
    max-width: 85%;
    height: auto;
}

.template-view__detail .benefit-item.reverse .img-box {
    text-align: left;
}

.template-view__detail .benefit-item .text-box {
    max-width: 540px;
    text-align: center;
}

.template-view__detail .benefit-item .text-box .tag {
    color: #1a73e8;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 14px;
}

.template-view__detail .benefit-item .text-box .title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.4;
}

.template-view__detail .benefit-item .text-box .desc {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

/* CTA 버튼 공통 스타일 */
.template-view__detail .btn-cta {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #1a73e8;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

/* 호버 효과 */
.template-view__detail .btn-cta:hover {
    background-color: #155ab6;
    color: #fff;
}

.benefit-loop {
    display: flex;
    align-items: center;
    /* 세로 가운데 정렬 */
    justify-content: space-between;
    gap: 60px;
}

.benefit-loop .img-box {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.benefit-loop .img-box > div {
    max-width: 100%;
}

.benefit-loop.reverse .img-box {
    align-items: flex-start;
    justify-content: flex-start;
}

.benefit-loop .text-box {
    flex: 1;
}

.benefit-loop .feature-list {
    margin-top: 20px;
}

.benefit-loop .feature-list li {
    counter-increment: step;
    position: relative;
    opacity: 0.3;
    transition: opacity 0.3s ease;
    display: flex;
    gap: 20px;
    height: 60px;
    cursor: pointer;
}

.benefit-loop .feature-list li:not(:last-child) {
    margin-bottom: 40px;
}

.benefit-loop .feature-list li.active {
    opacity: 1;
}

.benefit-loop .feature-list li > .text-line h2 {
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 8px;
}

.benefit-loop .feature-list li > .text-line p {
    color: #555;
}

.benefit-loop .progress-wrap {
    width: 4px;
    height: 100%;
    background: #ddd;
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.benefit-loop .progress-wrap .progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    max-height: 100%;
    background: #0066ff;
    transition: height 4s linear;
}

.benefit-loop .feature-list li span {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}


.free-edit-ops-wrap {
    max-width: 1440px;
    margin: 0 auto;
}

.free-edit-ops-wrap .tit {
    margin-bottom: 24px;
}

.free-edit-ops-wrap .tit h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

.free-edit-ops-wrap .tit p {
    font-size: 13px;
    color: #555;
}

.dflx-item-list {
    display: flex;
    gap: 10px;
}

.dflx-item-wrap {
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    background: #fff;
    border-radius: 12px;
}

.dflx-item-wrap:not(:last-child) {
    margin-bottom: 24px;
}

.free-edit-ops-grid {
    width: 60%;
    margin-right: 50px;

}

.dflx-item-wrap h3 {
    font-weight: 500;
    margin-bottom: 16px;
}

.free-edit-dflx {
    display: flex;
    justify-content: space-between;
}

.free-edit-ops-wrap .free-edit-ops-item {
    background: #f5f5f5;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background 0.2s;

}

.free-edit-ops-wrap .free-edit-ops-item.red {
    background: #ffe5e5;
    color: #d60000;
    font-weight: bold;
}

.free-edit-ops-wrap .free-edit-ops-item.highlight {
    background: #fff3e0;
    color: #d85400;
    font-weight: bold;
}

.free-edit-ops-wrap .free-edit-ops-card {
    flex: 1 1 35%;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.free-edit-ops-wrap .free-edit-ops-card img {
    max-width: 100%;
    border-radius: 4px;
    margin-bottom: 16px;
}

.free-edit-ops-wrap .free-edit-ops-card h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.free-edit-ops-wrap .free-edit-ops-card p {
    font-size: 14px;
    color: #555;
}

.free-edit-ops-wrap .free-edit-ops-item.active {
    background: #333;
    color: #fff;
    font-weight: 600;
}

/* 상담문의 모달 컨텐츠 */
.request_wrap .dim {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    transition: all .2s;
    opacity: 0;
    visibility: hidden;
    background: rgb(0, 0, 0, .6);
    z-index: 11;
}

.request_wrap .dim.show {
    opacity: 1;
    visibility: visible;
}

.request_wrap .con {
    overflow: hidden;
    border-radius: 20px;
    padding: 36px 24px;
    background: #fff;
    width: 420px;
    opacity: 0;
    visibility: hidden;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%);
    transition: all .6s;
    z-index: 12;
}

.request_wrap .con.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

.request_wrap .con .info {
    position: relative;
    padding-bottom: 16px;
}

.request_wrap .con .info h2 {
    font-size: 24px;
    line-height: 1;
    margin-bottom: 12px;
}

.request_wrap .con .info p {
    font-size: 16px;
    color: #888;
}

.request_wrap .con .info p strong {
    color: #888;
    font-weight: 400;
}

.request_wrap .con .info p span {
    text-transform: uppercase;
    color: #FF450D;
}

.request_wrap .con .info .cls_btn {
    position: absolute;
    top: 0;
    right: 0;
}

.request_wrap .con .info .cls_btn em {
    color: #888;
}

.request_wrap .form_wrap .form_item:first-child {
    margin-bottom: 12px;
}

.request_wrap .form_wrap .frm_input {
    overflow: hidden;
    display: -webkit-box;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 0;
    height: 55px;
    font-size: 15px;
    padding: 0 20px;
    line-height: 25px;
    width: 100%;
    white-space: 100%;
    max-height: 64px;
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 4px;
}

.request_wrap .form_wrap .btn_sbm .btn_submit {
    display: inline-block;
    height: 55px;
    line-height: 25px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 17px;
    border: 0;
    background: #111;
    color: #fff;
    cursor: pointer;
    width: 100%;
}


.request_wrap .form_wrap .agree_chk {
    max-width: 100%;
    margin: 12px 0 24px;
}

.request_wrap .form_wrap .agree_chk .agree_chk_box {
    font-size: 14px;
    color: #333;
    position: relative;
    text-align: left;
    letter-spacing: -0.5px;
    margin-top: 20px;
}

.request_wrap .form_wrap .agree_chk .agree_chk_box input[type=checkbox] {
    display: none
}

.request_wrap .form_wrap .agree_chk .agree_chk_box input[type=checkbox] + label::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-right: 10px;
    margin-top: -3px;
    vertical-align: middle;
    background: url('../template-market/images/chkbox_icon_off.svg');
}

.request_wrap .form_wrap .agree_chk .agree_chk_box input[type=checkbox]:checked + label::before {
    background: #111 url('../template-market/images/chkbox_icon_on.svg');
}

.request_wrap .form_wrap .agree_chk .agree_chk_box label {
    vertical-align: baseline
}

.request_wrap .form_wrap .agree_chk .agree_chk_box label {
    vertical-align: baseline;
    color: #111;
    font-size: 14px;
    display: flex;
}

.request_wrap .form_wrap .agree_chk .agree_chk_box > label > a.privacy_info {
    color: #111;
    text-decoration: underline;
    padding-right: 4px;
}

@media (max-width:1528px) {
    .template-view .template-view__layout {
        padding: 0 40px;
    }
}

@media (max-width:1630px) {

    .free-edit-ops-wrap,
    .template-filter-wrap {
        padding: 0 60px;
    }

    .template-view__detail .benefit-list {
        padding: 150px 60px;
    }
}

@media (max-width:1320px) {
    .template-view .template-view__layout .view-thumb-wrap {
        width: 50%;
    }
}

@media (max-width:1280px) {
    .template-list-wrap .template-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .template-view__detail .benefit-item .text-box .title {
        font-size: 28px;
        margin-bottom: 32px;
    }
}

@media (max-width:1110px) {
    .template-view .template-view__layout {
        flex-direction: column;
    }

    .template-view .template-view__layout .view-thumb-wrap,
    .template-view .template-view__layout .template-view__info {
        width: 100%;
    }
}

@media (min-width:1111px) {
    .template-view__btns .dflx-btn .left {
        display: block;
    }
}


@media (min-width: 1025px) {
    .template-view__detail .benefit-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .template-view__detail .benefit-item.reverse {
        flex-direction: row-reverse;
    }

    .template-view__detail .benefit-item .text-box {
        text-align: left;
    }

}

@media (max-width:1024px) {

    .template-view__detail .benefit-list {
        gap: 40px;
        padding: 0 20px;
    }

    .free-edit-ops-wrap,
    .template-filter-wrap {
        padding: 0 40px;
    }

    .free-edit-dflx {
        flex-direction: column-reverse;
    }

    .free-edit-ops-grid {
        margin-right: 0;
        width: 100%;
        margin-top: 20px;
    }

    .free-edit-ops-wrap .tit h2 {
        font-size: 28px;
    }

    .template-view__detail .benefit-item {
        flex-direction: column-reverse;
        padding: 80px 0;
    }

    .benefit-loop-wrap:nth-child(even),
    .template-view__detail .benefit-item:nth-child(even) {
        background: #f9f9f9;
    }

    .benefit-loop .img-box {
        align-items: center;
        justify-content: flex-start;
    }

    .benefit-loop .feature-list {
        text-align: left;
    }

    .template-view__detail .benefit-item .img-box {
        display: none;
    }
}


@media (max-width:860px) {
    .template-filter-wrap {
        padding: 0 20px;
    }
}

@media (max-width:768px) {

    .request_wrap .con {
        width: 90%;
    }

    .template-view .template-view__options li {
        font-size: 14px;
    }

    .free-edit-ops-wrap .tit h2 {
        font-size: 24px;
    }

    .template-view {
        padding: 100px 0 80px;
    }

    .template-view__options .bnn-item {
        justify-content: center;
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .template-view .preview_wrap {
        height: auto;
    }

    .template-view__options .bnn-item .bnn-link {
        margin-left: 0;
    }

    .template-view .template-view__layout {
        padding: 0 20px;
    }

    .template-list-wrap {
        padding: 60px 0;
    }

    .template-list-wrap .template-thumb {
        height: 160px;
    }

    .template-list-wrap .template-thumb img {
        width: 100%;
    }

    .template-list-wrap .template-page-heading h1 {
        font-size: 24px;
    }

    .free-edit-ops-wrap {
        padding: 0 20px;
    }

    .template-view__detail .benefit-item .text-box .title {
        font-size: 24px;
    }

    .benefit-loop .feature-list li > .text-line h2 {
        font-size: 16px;
    }

    .benefit-loop .feature-list li {
        align-items: center;
    }

    .template-view__detail .benefit-item .text-box .desc {
        padding: 0 20px;
    }

    .free-edit-ops-grid .dflx-item-wrap h3 {
        position: relative;
        padding: 16px;
        background: #fff;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 600;
        transition: background 0.3s;
        margin-bottom: 0;
    }

    .free-edit-ops-grid .dflx-item-wrap h3::after {
        content: "＋";
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-weight: 400;
        transition: transform 0.3s;
    }

    .free-edit-ops-grid .dflx-item-wrap.active h3::after {
        content: "－";
    }

    .free-edit-ops-grid .dflx-item-list {
        display: none;
        padding: 16px;
        background: #fafafa;
        border-radius: 0 0 8px 8px;
    }

    .free-edit-ops-grid .dflx-item-wrap.active .dflx-item-list {
        display: block;
    }

    .free-edit-ops-wrap .tit {
        text-align: center;
    }
}

@media (min-width:551px) {
    .template-page-heading .mbr {
        display: none;
    }
}

@media (max-width:550px) {
    .template-page-heading .mbr {
        display: block;
    }

    .template-list-wrap .template-page-heading p {
        line-height: 1.6;
    }

    .template-list-wrap .template-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .template-list-wrap .template-thumb {
        height: 220px;
    }
}

@media (max-width:420px) {
    .template-view .template-view__options li {
        flex-direction: column;
    }

    .benefit-loop .feature-list li > .text-line p {
        word-break: keep-all;
    }

    .free-edit-ops-grid .dflx-item-list {
        flex-direction: column;
    }

    .free-edit-ops-grid .dflx-item-wrap {
        padding: 12px;
    }

    .free-edit-ops-grid .dflx-item-wrap h3 {
        padding: 12px;
    }
}
