@charset "utf-8";

/* ==========================================================================
   1400px 메인 컨테이너 레이아웃
   ========================================================================== */
.shop_list_container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ==========================================================================
   히어로 영역 (Hero Banner Section)
   ========================================================================== */
.shop_hero_section {
    position: relative;
    width: 100vw;               /* 화면 전체 너비 */
    left: 50%;
    right: 50%;
    margin-left: -50vw;         /* 상위 컨테이너 중앙에서 좌우로 확장 */
    margin-right: -50vw;
    margin-bottom: 50px;
    height: 280px;
    background: #121824 url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?q=80&w=1600&auto=format&fit=crop') no-repeat center center / cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    box-sizing: border-box;
}

.shop_hero_section .hero_overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    z-index: 1;
}

.shop_hero_section .hero_content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 1400px;           /* 텍스트 콘텐츠는 1400px 안에서 정렬 */
    width: 100%;
    margin: 0 auto;
}

.shop_hero_section .hero_sub_title {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 500;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.shop_hero_section .hero_title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    letter-spacing: -1px;
}

.shop_hero_section .hero_desc {
    font-size: 1rem;
    color: #94a3b8;
    margin: 0;
    font-weight: 400;
}

/* 카테고리 타이틀 */
.shop_category_title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    color: #1e293b;
    margin-bottom: 36px;
    letter-spacing: -0.8px;
}

/* ==========================================================================
   상품 리스트 (3열 고정 Grid)
   ========================================================================== */
.lists-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin: 0 0 60px 0;
    padding: 0;
    list-style: none;
}

.sct_li {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #eef0f3;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.sct_li:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #e2e7ed;
}

.sct_img {
    position: relative;
    width: 100%;
    aspect-ratio: 455 / 230;     /* 455x230 비율 고정 */
    overflow: hidden;
    background-color: #f8f9fa;
}

.sct_img a {
    display: block;
    width: 100%;
    height: 100%;
}

.sct_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;           /* 프레임 규격에 맞게 깔끔하게 크롭 */
    transition: transform 0.3s ease;
}

.sct_li:hover .sct_img img {
    transform: scale(1.04);
}

.sct_ct_wrap {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.sct_star {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.sct_star .sit_star {
    height: 14px !important;
    width: auto !important;
}

.sct_txt {
    margin-bottom: 8px;
}

.sct_txt a {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1d20;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sct_basic {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 16px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sct_bottom {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f3f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sct_cost {
    display: flex;
    flex-direction: column;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0056b3;
}

.sct_dict {
    font-size: 0.85rem;
    color: #adb5bd;
    text-decoration: line-through;
    font-weight: 400;
}

.sct_op_btn {
    position: relative;
    display: flex;
    gap: 6px;
}

.sct_op_btn .btn_wish,
.sct_op_btn .btn_share {
    border: none;
    background: #f8f9fa;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #495057;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sct_op_btn .btn_wish:hover,
.sct_op_btn .btn_share:hover {
    background: #e9ecef;
    color: #0056b3;
}

/* 품절 표시 */
.shop_icon_soldout {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* SNS Layer Modal */
.sct_sns_wrap {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
}

.sct_sns_bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
}

.sct_sns {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    width: 280px;
    text-align: center;
}

.sct_sns h3 {
    margin: 0 0 16px 0;
    font-size: 1.1rem;
    color: #212529;
}

.sct_sns_cls {
    position: absolute;
    top: 16px;
    right: 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: #868e96;
}

/* 반응형 미디어 쿼리 */
@media (max-width: 992px) {
    .lists-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .shop_hero_section {
        height: 220px;
    }
    .shop_hero_section .hero_title {
        font-size: 1.6rem;
    }
    .lists-row {
        grid-template-columns: 1fr;
    }
}

.sct_op_btn {
    position: relative;
    display: flex;
    gap: 6px;
}

/* 모달 전체 오버레이 영역 */
.sct_sns_wrap {
    display: none;
    position: fixed; /* 뷰포트 고정 위치 */
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important; /* 항상 가장 위에 표시 */
}

/* 어두운 배경 반투막 */
.sct_sns_bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

/* 모달 팝업 박스 */
.sct_sns {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    width: 300px;
    box-sizing: border-box;
    text-align: center;
}

.sct_sns h3 {
    margin: 0 0 18px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.sns_icon_list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.sns_icon_list a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 0.8rem;
    color: #475569;
}

/* 문자 아이콘 버튼 */
.icon_sms {
    width: 44px;
    height: 44px;
    background-color: #22c55e;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.sct_sns_cls {
    position: absolute;
    top: 14px;
    right: 14px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.2rem;
    color: #94a3b8;
    padding: 4px;
}

.sct_sns_cls:hover {
    color: #0f172a;
}

/* ==========================================================================
   상품 아이콘 뱃지 (item_icon) 스타일
   ========================================================================== */
.sit_icon {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}

/* 뱃지 공통 스타일 */
.shop_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 4px;
    letter-spacing: -0.3px;
}

/* 히트 (it_type1) */
.shop_icon_1 {
    color: #ea580c;
    background-color: #ffedd5;
}

/* 추천 (it_type2) */
.shop_icon_2 {
    color: #2563eb;
    background-color: #dbeafe;
}

/* 최신 (it_type3) */
.shop_icon_3 {
    color: #059669;
    background-color: #d1fae5;
}

/* 인기 (it_type4) */
.shop_icon_4 {
    color: #7c3aed;
    background-color: #ede9fe;
}

/* 할인 (it_type5) */
.shop_icon_5 {
    color: #dc2626;
    background-color: #fee2e2;
}

/* 쿠폰 (coupon) */
.shop_icon_coupon {
    color: #0284c7;
    background-color: #e0f2fe;
    border: 1px dashed #38bdf8;
}



.hero_overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.15);
    border-radius: 0 0 20px 20px;
}
.hero_content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}
.hero_sub_title {
    display: inline-block;
    font-size: 14px;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.hero_title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}
.hero_desc {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.5;
}

/* --- 상품 상세 탭 메뉴 스타일 --- */
#sit_tab { margin-top: 40px; }
#sit_tab .tab_tit {
    display: flex;
    border-bottom: 2px solid #2a5298;
    list-style: none;
    padding: 0;
    margin: 0;
}
#sit_tab .tab_tit li { flex: 1; text-align: center; }
#sit_tab .tab_tit li button {
    width: 100%;
    padding: 15px 0;
    background: #f8f9fa;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
}
#sit_tab .tab_tit li button.selected,
#sit_tab .tab_tit li button:hover {
    background: #2a5298;
    color: #fff;
}
.tab_con > li { padding: 30px 0; }

/* --- 강의후기 및 강의문의 아코디언 목록 스타일 --- */
.sit_qa_li, .sit_use_li {
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px;
    background: #fff;
}
.sit_qa_con, .sit_use_con {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
}
.sit_qaa_done { color: #2a5298; font-weight: bold; }
.sit_qaa_yet { color: #e74c3c; font-weight: bold; }

/* --- 전체 목록 (sqa, sps) 및 검색 폼 --- */
#sqa_sch, #sps_sch {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.sch_wr { display: flex; flex: 1; border: 1px solid #ddd; background: #fff; border-radius: 4px; overflow: hidden; }
.sch_input { flex: 1; border: none; padding: 10px; outline: none; }
.sch_btn { background: #2a5298; color: #fff; border: none; padding: 0 20px; cursor: pointer; }

/* --- 후기/문의 상세 팝업 레이아웃 --- */
.review_detail_cnt {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    justify-content: center;
    align-items: center;
}
.review_detail_in {
    background: #fff;
    width: 90%;
    max-width: 600px;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}
.rd_cls {
    position: absolute;
    top: 20px; right: 20px;
    background: none; border: none; font-size: 18px; cursor: pointer;
}