/* BASIC css start */
/* ==========================================================================
   [Final Fixed Version]
   - Header: 상단 여백 과다 문제 해결 (Section Padding 축소)
   - Label: 아이콘 이미지 크기 24px로 확대
   - Base: 고객님이 주신 코드 100% 유지
   ========================================================================== */

/* 1. 기본 폰트 설정 */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=Pretendard:wght@300;400;500;700&display=swap');

/* 전체 폰트 적용하되, 기본 두께를 400(Normal)으로 잡아 두꺼워짐 방지 */
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, blockquote, th, td {
    font-family: 'Pretendard', sans-serif;
    font-weight: 400; 
}

/* 파티클 효과 (기존 유지) */
#particles-js {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

/* ==========================================================================
   [긴급 수정] 헤더 영역 (로고/메뉴)
   - 불필요한 여백을 모두 0으로 만들어 "길어지는 현상" 방지
   ========================================================================== */
#header, header, .header, .header_wrap, .top_layout {
    background-color: #ffffff !important; 
    position: relative !important; 
    z-index: 9999 !important;             
    padding-top: 0 !important;    /* 위쪽 여백 삭제 */
    padding-bottom: 0 !important; /* 아래쪽 여백 삭제 */
    height: auto !important;      /* 높이 자동 */
}

/* ==========================================================================
   메인 배너 & 슬라이드
   ========================================================================== */
.main_banner_wrap {
    position: relative;
    overflow: hidden;
    margin-top: 0 !important;
    z-index: 1;
}

.main_slide_listbox .main_slide_list a { display: block; }
.main_slide_listbox .main_slide_list a img { 
    width: 100%; 
    object-fit: cover; 
}

/* 스크롤바 커스텀 */
.main_slide_wrap .swiper-scrollbar{
    width: 200px !important;
    height: 4px !important;
    left: 50% !important;
    bottom: 30px !important;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.4) !important;
    border-radius: 2px;
}
.main_slide_wrap .swiper-scrollbar-drag {
    background: #fff !important;
}

/* 불릿 페이지네이션 */
.main_slide_wrap .swiper-pagination { 
    position: absolute; 
    bottom: 100px; 
    left: 0; right: 0; 
    margin: auto; 
    text-align: center; 
    width: auto; 
}
.main_slide_wrap .swiper-pagination .swiper-pagination-bullet { 
    width: 8px; height: 8px; 
    margin: 0 6px !important;
    border-radius: 50%; 
    border: 1px solid #fff; 
    background-color: transparent; 
    opacity: 0.7;
}
.main_slide_wrap .swiper-pagination .swiper-pagination-bullet-active { 
    background-color: #fff; opacity: 1;
}

/* ==========================================================================
   섹션 레이아웃 & 타이틀
   ========================================================================== */
.section { 
    /* ✨ [수정] 여기가 원인이었습니다. 100px -> 50px로 줄여서 상단 공백 제거 */
    padding-top: 50px; 
    padding-bottom: 40px;
    background-color: #fff; 
} 

/* ✨ [와이드 레이아웃] 넓은 화면 적용 */
.contents_wrap { 
    width: 100%;
    max-width: 1440px;            
    padding: 0 50px !important;   
    margin: 0 auto; 
    box-sizing: border-box;
}

/* 타이틀 스타일 */
.contents_wrap .main_content_title {
    text-align: center;
    font-size: 26px; 
    font-weight: 500; 
    color: #111;
    padding-bottom: 30px;
    letter-spacing: -0.5px;
    font-family: 'Playfair Display', 'Pretendard', serif;
    
    /* 등장 애니메이션 */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    position: relative;
    display: inline-block;
    width: 100%;
}

/* 타이틀 밑줄 애니메이션 */
.contents_wrap .main_content_title::after {
    content: '';
    display: block;
    width: 0;
    height: 1px; 
    background-color: #111;
    margin: 20px auto 0;
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.contents_wrap .main_content_title.is-visible { opacity: 1; transform: translateY(0); }
.contents_wrap .main_content_title.is-visible::after { width: 50px; }


/* ==========================================================================
   탭(Tabs) 디자인 - 깔끔한 텍스트 스타일
   ========================================================================== */
.contents_wrap .tab_btn_wrap {
    margin-bottom: 50px;
    border-bottom: 1px solid #f0f0f0;
}

.contents_wrap .tab_btn_wrap .tab_btn_box { 
    display: flex; 
    justify-content: center; 
    gap: 40px; 
}

.contents_wrap .tab_btn_wrap .tab_btn_box .tab_btn_list { 
    padding: 15px 10px;
    font-size: 15px; 
    color: #888;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent; 
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 400; 
}

/* 탭 호버 및 활성화 */
.contents_wrap .tab_btn_wrap .tab_btn_box .tab_btn_list:hover { color: #111; }
.contents_wrap .tab_btn_wrap .tab_btn_box .tab_btn_list.active {
    color: #111;
    font-weight: 600; 
    border-color: #111; 
}

/* ==========================================================================
   상품 리스트 (Grid System) - 간격 자동 조절
   ========================================================================== */
.contents_wrap .cont_item_wrap { margin-top: 0; }
.contents_wrap .cont_item_wrap .cont_item_box { display: none; }
.contents_wrap .cont_item_wrap .cont_item_box:first-child { display: block; }

/* Grid 적용: 4열 */
.cont_item_box .cont_item_listbox { 
    width: 100%; 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 50px 20px; 
}

.cont_item_box .cont_item_listbox .cont_item_list { 
    width: 100% !important; 
    margin: 0 !important;
    
    /* 스크롤 등장 효과 */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* 순차 등장 */
.cont_item_box .cont_item_listbox .cont_item_list:nth-child(4n+1) { transition-delay: 0s; }
.cont_item_box .cont_item_listbox .cont_item_list:nth-child(4n+2) { transition-delay: 0.1s; }
.cont_item_box .cont_item_listbox .cont_item_list:nth-child(4n+3) { transition-delay: 0.2s; }
.cont_item_box .cont_item_listbox .cont_item_list:nth-child(4n+4) { transition-delay: 0.3s; }

.cont_item_box .cont_item_listbox .cont_item_list.is-visible {
    opacity: 1; transform: translateY(0);
}

.cont_item_box .cont_item_listbox .cont_item_list .cont_item_link { display: block; }


/* ==========================================================================
   상품 썸네일 & 호버 효과
   ========================================================================== */
.cont_item_link .cont_item_thumb {
    position: relative;
    overflow: hidden;
    border-radius: 4px; 
    background-color: #f7f7f7;
}

/* 호버 시 Shine 효과 */
.cont_item_link .cont_item_thumb::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,0.4), transparent);
    z-index: 2;
    transition: left 0.7s ease;
    pointer-events: none;
}
.cont_item_link:hover .cont_item_thumb::after { left: 200%; }

/* 이미지 줌 효과 */
.cont_item_link .cont_item_thumb .cont_item_thumb_img { 
    width: 100%; 
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
}
.cont_item_link:hover .cont_item_thumb .cont_item_thumb_img {
    transform: scale(1.05);  
    filter: brightness(1.02);
}

/* 자동 반짝임 애니메이션 */
@keyframes autoShine {
    0%, 80% { left: -100%; opacity: 0; }
    85% { opacity: 0.8; }
    100% { left: 200%; opacity: 0; }
}
.cont_item_box .cont_item_listbox .cont_item_list:first-child .cont_item_thumb::before {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,0.6), transparent);
    z-index: 3; pointer-events: none;
    animation: autoShine 5s infinite; animation-delay: 2s;
}

/* ==========================================================================
   상품 정보 & 라벨
   ========================================================================== */
.cont_item_link .cont_item_infobox {  
    margin-top: 15px; 
    transition: transform 0.3s ease;
}
.cont_item_link:hover .cont_item_infobox { transform: translateY(-5px); }

/* 상품명 */
.cont_item_link .cont_item_infobox .cont_item_name { 
    font-size: 15px; 
    font-weight: 400; 
    color: #222;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    line-height: 1.3;
}
.cont_item_link .cont_item_infobox .cont_item_subname { 
    font-size: 13px; 
    font-weight: 300; 
    color: #888; 
    margin-top: 5px;
}

/* 가격 및 라벨 영역 */
.cont_item_link .cont_item_infobox .cont_item_pricebox { 
    padding-top: 10px; 
    display: flex; 
    flex-wrap: wrap; 
    align-items: center; 
    gap: 6px;
}

/* 라벨(반짝특가) 스타일 */
.cont_item_link .cont_item_infobox .cont_item_pricebox .discount-label {
    font-size: 13px !important; 
    font-weight: 700 !important; 
    display: inline-block;
    margin-right: 4px;
}

/* 가격 */
.cont_item_link .cont_item_infobox .cont_item_pricebox .cont_item_price { 
    font-size: 17px; 
    font-weight: 600; 
    color: #111;
}

.cont_item_link .cont_item_infobox .cont_item_pricebox .cont_item_cancel { 
    font-size: 14px; 
    color: #bbb; 
    text-decoration: line-through; 
    font-weight: 300;
}

/* ==========================================================================
   ✨ [수정] 아이콘 라벨 (DIA, 이벤트특가 등) 크기 확대
   - 기존 16px -> 24px로 키움
   ========================================================================== */
.cont_item_link .cont_item_infobox .cont_item_iconbox { margin-top: 8px; }
.cont_item_link .cont_item_infobox .cont_item_iconbox .MK-product-icons { 
    display: flex; gap: 3px; 
}
.cont_item_link .cont_item_infobox .cont_item_iconbox .MK-product-icons img { 
    height: 24px !important;  /* ✨ 여기를 키웠습니다 (기존 16px -> 24px) */
    width: auto !important;   
    max-width: none !important;
}


/* ==========================================================================
   더보기 버튼
   ========================================================================== */
.tab_btns {
    padding: 50px 0 20px;
    display: flex; justify-content: center;
}
.tab_btns .more_btn {
    padding: 12px 40px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    color: #111;
    background-color: #fff;
    border: 1px solid #ddd;
    font-size: 14px; font-weight: 400;
    transition: all 0.3s ease;
}
.tab_btns .more_btn:hover {
    border-color: #111;
    background-color: #111;
    color: #fff;
    gap: 15px;
}
.tab_btns .more_btn::after {
    content: ''; display: inline-block;
    width: 6px; height: 6px;
    border-width: 1px 1px 0 0; border-style: solid; border-color: currentColor;
    transform: rotate(45deg);
}

/* ==========================================================================
   중간/하단 배너들
   ========================================================================== */
.banner_contents { margin-top: 60px; }
.banner_contents .banner_link { display: block; overflow: hidden; }
.banner_contents .banner_link img { 
    width: 100%; display: block; 
    transition: transform 0.6s ease; 
}
.banner_contents .banner_link:hover img { transform: scale(1.02); }

.slide_banner_contents { position: relative; overflow: hidden; }
.slide_banner .banner_link img { width: 100%; }

.slide_banner_contents .swiper-pagination {
    display: none; width: max-content;
    top: 20px; right: 30px; left: auto; bottom: auto;
    padding: 6px 14px;
    font-size: 12px; font-weight: 300; letter-spacing: 1px;
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.6); color: #fff;
}
/* BASIC css end */

