/* 공통 헤더 타이틀 */
.sec-header { text-align: center; margin-bottom: 50px; }
.sec-header p { font-size: 20px; color: #8c6a4d; font-weight: 700; margin-bottom: 10px; }
.sec-header h3 { font-size: 90px; font-weight: 500; color: #111; letter-spacing: -1px; }



.tab-banner{display:none;}

/* ================= 1. 메인 비주얼 ================= */
.sec-main-visual { position: relative; width: 100%; height: 550px; overflow: hidden; }
.main-visual-swiper { width: 100%; height: 100%; }
.main-visual-swiper .swiper-slide { background-color: #111; overflow: hidden; }

/* 이미지 배경 처리 */
.main-visual-swiper .full-link {
    display: block; width: 100%; height: 100%;
    background-size: cover; background-position: center; background-repeat: no-repeat;
}

/* 컨트롤러 오버레이 (이미지 위로 겹침) */
.visual-controls-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; z-index: 10;
    pointer-events: none; /* 슬라이드 터치/클릭 방해 금지 */
}
.visual-controls-overlay .pos-relative { position: relative; height: 80px; }

/* 우측 하단 네비게이션 버튼 */
.visual-controls-overlay .nav-btns {
    position: absolute; right: 0; bottom: 30px;
    display: flex; gap: 0; /* 버튼이 딱 붙어있는 스타일이라면 0 */
    pointer-events: auto; /* 버튼은 클릭 가능하게 복구 */
}
.nav-btns button {
    width: 50px; height: 50px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.3);
    color: #fff; font-size: 20px; cursor: pointer; transition: 0.3s;
    backdrop-filter: blur(5px);
}
.nav-btns button:hover { background: #fff; color: #111; border-color: #fff; }

/* 스크롤바 (이미지 완전 하단 바닥에 붙음) */
.main-visual-swiper .main-scrollbar {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 4px;
    background: rgba(255,255,255,0.2); border-radius: 0;
}
.main-visual-swiper .main-scrollbar-drag {
    background: #fff; border-radius: 0; cursor: pointer;
}




/* ================= 1. 메인 비주얼 컨트롤러 레이아웃 ================= */
.visual-controls-overlay {
    position: absolute;
    bottom: 80px; /* 바닥에서 띄움 */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
}

/* 텍스트 영역 */
.control-text-area {
    margin-bottom: 25px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.control-text-area .bn-alt { font-size: 50px; font-weight: 400; margin-bottom: 10px; }
.control-text-area .bn-alt2 { font-size: 70px; font-weight: 700; opacity: 1; margin-bottom:50px; }

/* 하단 컨트롤 바 (가로 정렬) */
.bottom-control-bar {
    display: flex;
    align-items: center;
    gap: 40px; /* 스크롤바와 버튼 사이 간격 */
    pointer-events: auto;
}

/* 스크롤바 스타일 */
.main-visual-swiper .main-scrollbar {
    position: relative !important;
    flex: 1; /* 남은 공간 차지 */
    height: 2px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 0 !important;
}
.main-visual-swiper .swiper-scrollbar-drag {
    background: #fff !important; /* 활성 색상 흰색 */
    border-radius: 0 !important;
}

/* 버튼 영역 */
.nav-btns {
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav-btns button {
    background: none; border: none; color: #fff;
    font-size: 24px; cursor: pointer; opacity: 0.6; transition: 0.3s;
}
.nav-btns button:hover { opacity: 1; }
.fraction { color: #fff; font-size: 16px; min-width: 60px; text-align: center;   display:none;}



.sec-quick-cate{ padding:100px 0 ;}
.cate-list{display:flex;    max-width:1460px; margin:auto;
    justify-content: space-between; 
    gap: 20px;  }
.cate-list li{ }
.cate-list li a{display:flex;  flex-direction: column;  text-align:center;}
.cate-list li a span{display:block; padding:15px 0 ; font-size:20px; }

/* ================= 3. BEST PRODUCT Grid ================= */
.sec-best-product {
background:#f5f5f5; 
 padding:100px 0;
 margin-bottom:100px;
}
.best-grid { 
    display: grid; 
    grid-template-columns: 1.1fr 1fr; /* 좌측이 살짝 더 넓은 비율 */
    gap: 40px; 
}

/* [공통] 이미지 호버 확대 효과 */
.best-item .img-box { overflow: hidden; border-radius: 15px; }
.best-item .img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.best-item:hover .img-box img { transform: scale(1.05); }

/* ----------------------------------
   [좌측] 큰 상품 (오버레이 텍스트)
----------------------------------- */
.best-item.large { 
    position: relative; 
    height: 100%; 
}
.best-item.large a { display: block; height: 100%; color: #fff; }
.best-item.large .img-box { width: 100%; height: 100%; }

.best-item.large .txt-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding: 50px 30px 40px; 
    display: flex; justify-content: space-between; align-items: flex-end;
    box-sizing: border-box;
    border-radius: 0 0 15px 15px;
}
.best-item.large .info h4 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.best-item.large .info p { font-size: 15px; opacity: 0.9; }

.best-item.large .actions { display: flex; gap: 15px; }
.best-item.large .actions button {
    background: transparent; border: none; color: #fff;
    font-size: 22px; cursor: pointer; transition: 0.3s; padding: 0;
}
.best-item.large .actions button:hover { color: #bba282; }

/* ----------------------------------
   [우측] 세로 배열 구역
----------------------------------- */
.best-right-col { 
    display: flex; flex-direction: column; justify-content: space-between; gap: 30px; 
}

/* 우측 작은 상품 (가로 배열 텍스트) */
.best-item.small { height: calc(50% - 15px); }
.best-item.small a { 
    display: flex; align-items: center; gap: 30px; 
    text-decoration: none; color: #111; height: 100%;
}
.best-item.small .img-box { 
    width: 45%; height: 100%; aspect-ratio: 4/3; flex-shrink: 0; 
}

.best-item.small .txt-side { 
    width: 55%; display: flex; flex-direction: column; justify-content: center; 
}
.best-item.small .txt-side h4 { font-size: 22px; font-weight: 700; margin-bottom: 10px; color: #111; }
.best-item.small .txt-side p { font-size: 14px; color: #666; line-height: 1.5; margin-bottom: 25px; word-break: keep-all;}

.best-item.small .actions { display: flex; gap: 15px; }
.best-item.small .actions button {
    background: transparent; border: none; color: #333;
    font-size: 20px; cursor: pointer; transition: 0.3s; padding: 0;
}
.best-item.small .actions button:hover { color: #bba282; }

/* 반응형 (태블릿 이하) */
@media (max-width: 1024px) {
    .best-grid { grid-template-columns: 1fr; }
    .best-right-col { gap: 20px; }
    .best-item.small { height: auto; }
}
@media (max-width: 480px) {
    .best-item.small a { flex-direction: column; align-items: flex-start; gap: 15px; }
    .best-item.small .img-box, .best-item.small .txt-side { width: 100%; }
}


.sec-event{ margin-bottom:150px;}


.sec-main-product .btn-more-txt{ font-size:14px; font-weight:500; }

/* 5. PRODUCT 탭 및 그리드 */
.prod-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; }
.prod-tabs li {
    padding: 10px 30px; border: 1px solid #ddd; border-radius: 30px;
    font-size: 20px; color: #666; cursor: pointer; transition: 0.3s;
}
.prod-tabs li.active { background: #8d6a4d; color: #fff; border-color: #8d6a4d; font-weight: 700; }

.ajax-prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.ajax-prod-grid li { text-align: center; }
.ajax-prod-grid li .actions ion-icon{ font-size:24px; color:#000;}
.ajax-prod-grid .img-box { background:transparent; border-radius: 15px; padding: 20px; margin-bottom: 15px; }
.ajax-prod-grid .img-box img { width: 100%; aspect-ratio: 1/1; object-fit: contain; }
.ajax-prod-grid h4 { font-size: 20px; font-weight: 700; color: #111; margin-bottom: 15px; }
.ajax-prod-grid .actions button {
    background: #fff; border: 0px solid #ddd; padding: 5px 15px; border-radius: 5px; cursor: pointer;
}
.ajax-prod-grid .actions button:hover { border-color: #111; }

/* 6. SPECIAL ORDER */
.special-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.special-grid li { border-radius: 15px; overflow: hidden; position: relative; aspect-ratio: 16/9; }
.special-grid img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.special-grid li:hover img { transform: scale(1.05); }
.special-grid .overlay {transition: 0.5s; 
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.4); display: flex; flex-direction: column;
    align-items: center; justify-content: center; color: #fff;
}
.special-grid li:hover .overlay { background: rgba(0,0,0,0.00 ); }
.special-grid h4 { font-size: 28px; font-weight: 700; margin-bottom: 15px; }
 
    .sec-main-product {  padding:100px 0; background:#f7f6f2;}
    


/* =======================================================
   [모바일 반응형 (Max-width: 768px)] - 쇼핑몰 메인
======================================================= */
@media (max-width: 768px) {
    /* 공통 헤더 영역 축소 */
    .sec-header { margin-bottom: 30px; }
    .sec-header p { font-size: 15px; margin-bottom: 5px; }
    .sec-header h3 { font-size: 48px; }

    /* 1. 메인 비주얼 배너 */
    .sec-main-visual { height: 400px; }
    .visual-controls-overlay { bottom: 30px; padding: 0 5%; width: 100%; box-sizing: border-box; }
    .control-text-area .bn-alt { font-size: 24px; margin-bottom: 5px; word-break: keep-all; line-height: 1.3; }
    .control-text-area .bn-alt2 { font-size: 32px; margin-bottom: 20px; word-break: keep-all; line-height: 1.3; }
    .bottom-control-bar { gap: 20px; }
    .nav-btns button { font-size: 18px; width: 40px; height: 40px; }

    /* 2. 퀵 카테고리 (모바일 가로 스와이프) */
    .sec-quick-cate { padding: 50px 5%; overflow: hidden; box-sizing: border-box; }
    .cate-list {
        flex-wrap: nowrap; 
        overflow-x: auto; 
        justify-content: flex-start;
        padding-bottom: 15px; gap: 15px;
        -ms-overflow-style: none; scrollbar-width: none;
    }
    .cate-list::-webkit-scrollbar { display: none; }
    .cate-list li { flex: 0 0 24%; } /* 한 화면에 약 4개가 보이도록 너비 고정 */
    .cate-list li a img { width: 100%; height: auto; }
    .cate-list li a span { font-size: 13px; padding: 10px 0 0; word-break: keep-all; line-height: 1.3; }

    /* 3. BEST PRODUCT (1단 정렬 및 텍스트 우측 배치) */
    .sec-best-product { padding: 60px 5%; margin-bottom: 60px; box-sizing: border-box; }
    .best-grid { grid-template-columns: 1fr; gap: 20px; }
	.event-swiper .swiper-slide{ padding-bottom:30px;}
	.event-swiper img{max-width:100%;}
	
    /* 큰 상품 */
    .best-item.large { height: auto; aspect-ratio: 1 / 1; }
    .best-item.large .txt-overlay { padding: 30px 20px 20px; }
    .best-item.large .info h4 { font-size: 20px; margin-bottom: 5px; }
    .best-item.large .info p { font-size: 14px; }
    
    /* 작은 상품 (모바일 시안에 맞춰 가로 배열 강제 유지) */
    .best-right-col { gap: 15px; }
    .best-item.small a { flex-direction: row !important; align-items: center !important; gap: 15px !important; }
    .best-item.small .img-box { width: 40% !important; aspect-ratio: 1/1; height: auto; }
    .best-item.small .txt-side { width: 60% !important; padding: 10px 0; }
    .best-item.small .txt-side h4 { font-size: 16px; margin-bottom: 5px; }
    .best-item.small .txt-side p { font-size: 13px; margin-bottom: 15px; }
    .best-item.small .actions button { font-size: 18px; }

    /* 4. EVENT 배너 */
    .sec-event { padding: 50px 5%  0px; margin-bottom: 60px; box-sizing: border-box; }

    /* 5. PRODUCT (카테고리 스와이프 및 2단 그리드) */
    .sec-main-product { padding: 30px 5%; box-sizing: border-box;  background:#f7f6f2;}
	.tab-banner{ display:none;}
    .prod-tabs {
        flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
        padding-bottom: 10px; margin-bottom: 10px; gap: 10px;
        -ms-overflow-style: none; scrollbar-width: none;
    }
    .prod-tabs::-webkit-scrollbar { display: none; }
    .prod-tabs li { flex-shrink: 0; font-size: 15px; padding: 8px 20px; }

    .ajax-prod-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; } /* 4단 -> 2단 변경 */
    .ajax-prod-grid .img-box { padding: 10px; margin-bottom: 10px; }
    .ajax-prod-grid h4 { font-size: 15px; margin-bottom: 10px; word-break: keep-all; line-height: 1.4; }
    .ajax-prod-grid .actions button { padding: 5px 10px; }
    .ajax-prod-grid li .actions ion-icon { font-size: 18px; }

    /* 6. SPECIAL ORDER (1단 정렬) */
    .sec-special-order { margin-top: 60px !important; padding-bottom: 80px !important; padding-left: 5%; padding-right: 5%; box-sizing: border-box; }
    .special-grid { grid-template-columns: 1fr; gap: 15px; }
    .special-grid li { aspect-ratio: 2.5 / 1; } /* 세로로 너무 길어지지 않게 가로 직사각형 유지 */
    .special-grid h4 { font-size: 20px; margin-bottom: 5px; }
    .special-grid .btn-s { font-size: 13px; }
}



/* =======================================================
   메인 상품 리스트 AJAX (BEST / NORMAL 디자인 분리)
======================================================= */
/* 공통 섹션 헤더 */
.main-prod-section { position: relative; }
.sec-header-small { margin-bottom: 30px; border-bottom: 2px solid #111; padding-bottom: 10px; }
.sec-header-small h3 { font-size: 24px; font-weight: 800; color: #111; }

/* -----------------------------------------
   [시안 1번] BEST 상품 스타일 (3열 그리드 & 랭킹 뱃지)
----------------------------------------- */
 
/* -----------------------------------------
   [Best 전용] 원형 뱃지 및 이미지 내부 텍스트 오버레이 스타일
----------------------------------------- */
.best-prod-grid.circle-badge-style { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px; 
}
.best-prod-grid.circle-badge-style img{max-width:100%;}
/* 1. 이미지 박스 컨테이너 */
.circle-badge-style .img-box {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: #fdfaf7;
    /* hover 시 이미지 살짝 커지는 효과 (옵션) */
    transition: transform 0.3s ease;
}
.circle-badge-style .img-box:hover {
    transform: translateY(-5px);
}
.circle-badge-style .img-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

/* 2. 원형 뱃지 */
.badge-best-circle {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 60px;
    height: 60px;
    background: #a78864;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    z-index: 10;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* 3. 어두운 그라데이션 (흰색 글씨가 잘 보이도록 강하게) */
.grad-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%; /* 하단에서 60%까지 올라옴 */
    background: linear-gradient(to top, rgba(167,136,100.7) 0%, rgba(167,136,100,0) 100%);
    pointer-events: none;
    z-index: 1;
}

/* 4. 이미지 내부 텍스트 박스 */
.circle-badge-style .inner-txt {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 40px;
    text-align: left;
    box-sizing: border-box;
    z-index: 2; /* 그라데이션 위로 올림 */
}
.circle-badge-style .best-tit {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff; /* 흰색 글씨 */
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(167,136,100 ,0.5); /* 그림자를 주어 더 또렷하게 */
}
.circle-badge-style .best-desc {
    font-size: 20px;
    color: rgba(255,255,255,0.8); /* 약간 투명한 흰색 (고급스러움 강조) */
    margin-bottom: 0;
    line-height: 1.4;
    word-break: keep-all;
}
 
 
/* -----------------------------------------
   [시안 2번] 일반 상품 스타일 (5열 그리드 & 텍스트 중앙 정렬)
----------------------------------------- */
.normal-prod-grid { 
    display: grid; 
    grid-template-columns: repeat(5, 1fr); /* 5개 나열 */
    gap: 40px 20px; /* 세로 간격 40px, 가로 간격 20px */
    list-style: none; padding: 0; margin: 0; 
}
.normal-prod-grid .no-item{     grid-column: 1 / -1;  /* 전체 컬럼 span */
    text-align: center;
    width: 100%;}

.normal-prod-grid .prod-item { 
    text-align: center; /* 전체 중앙 정렬 */
}

/* 1. 이미지 박스 (둥근 모서리 및 배경) */
.normal-prod-grid .img-box { 
    background: #fff; /* 시안처럼 깔끔한 흰색 배경 */
    border-radius: 15px; 
    margin-bottom: 20px; 
    overflow: hidden;
    /* 필요시 은은한 그림자 추가: box-shadow: 0 4px 15px rgba(0,0,0,0.03); */
}
.normal-prod-grid .img-box img { 
    width: 100%; aspect-ratio: 1/1; object-fit: contain; display: block; mix-blend-mode: multiply; 
}

/* 2. 텍스트 박스 (상품명) */
.normal-prod-grid .txt-box a { text-decoration: none; display: block; }
.normal-prod-grid h4 { 
    font-size: 17px; 
    font-weight: 700; 
    color: #111; 
    margin-bottom: 12px; 
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
}

/* 3. 액션 버튼 (찜, 장바구니 심플 아이콘) */
.normal-prod-grid .actions { 
    display: flex; justify-content: center; gap: 15px; 
}
.normal-prod-grid .actions button { 
    background: transparent; border: none; padding: 0;
    display: flex; align-items: center; justify-content: center; 
    cursor: pointer; color: #111; transition: 0.2s;
}
.normal-prod-grid .actions button:hover {
    color: #a78864; /* 마우스 올렸을 때 포인트 컬러 */
}
.normal-prod-grid .actions ion-icon { 
    font-size: 22px; /* 아이콘 크기 시원하게 */
}

/* -----------------------------------------
   [모바일 반응형]
----------------------------------------- */
@media (max-width: 1024px) {
    .normal-prod-grid { grid-template-columns: repeat(3, 1fr); } /* 태블릿은 3열 */
}
@media (max-width: 768px) {
    /* 모바일에서는 Best 1열 (크게 강조) */
    .best-prod-grid.circle-badge-style { grid-template-columns: 1fr; gap: 30px; }
    
    /* 모바일에서는 일반 상품 2열 */
    .normal-prod-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 15px; }
    .normal-prod-grid h4 { font-size: 15px; }
    .normal-prod-grid .actions ion-icon { font-size: 20px; }
}

/* -----------------------------------------
   [모바일 반응형]
----------------------------------------- */
@media (max-width: 768px) {
    /* 모바일에서는 Best 1열 (크게 강조) */ 
    
    /* 모바일에서는 일반 상품 2열 */
    .normal-prod-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .normal-prod-grid h4 { font-size: 15px; }
    .normal-prod-grid .desc { font-size: 13px; min-height: 36px; }
    .normal-prod-grid .price { font-size: 16px; }
    .normal-prod-grid .price strong { font-size: 18px; }
    .normal-prod-grid .actions button { width: 32px; height: 32px; }
}



/* 모바일 대응 */
@media (max-width: 768px) {
    .best-prod-grid.circle-badge-style { grid-template-columns: 1fr; gap: 30px; }
    .badge-best-circle { width: 50px; height: 50px; font-size: 11px; }
    .circle-badge-style .inner-txt { padding: 20px 15px; }
    .circle-badge-style .best-tit { font-size: 19px; }
    .circle-badge-style .best-desc { font-size: 14px; }
}