@charset "utf-8";
/* 메인 배너 아래 스타일배너 위젯의 스타일 (아미나 스타일배너 색상 구성과 전환 효과 재현) */

.zsb_wrap {display:flex; margin:15px 0; border:1px solid #ddd; background:#fff; box-sizing:border-box}
.zsb_wrap *, .zsb_wrap *:before, .zsb_wrap *:after {box-sizing:border-box}
.zsb_wrap ul {margin:0; padding:0; list-style:none}

/* 왼쪽 분류 탭 */
.zsb_tab {flex:0 0 var(--zsb-w, 22%); max-width:var(--zsb-w, 22%); font-size:15px}
.zsb_tab li {position:relative}
.zsb_tab li a {display:block; padding:13px 15px; line-height:20px; text-decoration:none; word-break:keep-all}
.zsb_tab li.active > a:after {content:''; position:absolute; left:100%; top:50%; margin-top:-13px; z-index:1; border-top:13px solid transparent; border-bottom:13px solid transparent; border-left:10px solid transparent}

/* 오른쪽 내용 영역: 모든 내용을 같은 칸에 겹쳐 두고 선택한 내용만 표시합니다. */
.zsb_content {position:relative; flex:1; min-width:0; overflow:hidden}
.zsb_stage {display:grid; height:100%}
.zsb_pane {grid-area:1 / 1; visibility:hidden; min-width:0}
.zsb_pane.active {visibility:visible}
.zsb_type_shop {padding:15px 15px 10px 25px; background:#fff}
.zsb_type_html, .zsb_html {height:100%}
.zsb_html p {margin:0}
/* 이미지 한 장만 입력한 경우 이미지를 감싼 요소도 내용 영역 높이에 맞춥니다. */
.zsb_html > :only-child, .zsb_html > :only-child > a:only-child {display:block; height:100%}
.zsb_html img {display:block; width:100%; height:100%; object-fit:cover}
.zsb_empty {margin:0; padding:40px 0; color:#999; text-align:center}

/* 전환 효과 (Slide, Fade, backSlide, goDown, fadeUp) */
.zsb_pane.zsb_in {z-index:2; animation-duration:var(--zsb-speed, 400ms); animation-fill-mode:both; animation-timing-function:ease}
.zsb_pane.zsb_out {z-index:1; visibility:visible; animation-duration:var(--zsb-speed, 400ms); animation-fill-mode:both; animation-timing-function:ease}
.zsb_fx_slide.zsb_in {animation-name:zsb_slide_in}
.zsb_fx_slide.zsb_out {animation-name:zsb_slide_out}
.zsb_fx_slide.zsb_rev.zsb_in {animation-name:zsb_slide_in_rev}
.zsb_fx_slide.zsb_rev.zsb_out {animation-name:zsb_slide_out_rev}
.zsb_fx_fade.zsb_in {animation-name:zsb_fade_in}
.zsb_fx_fade.zsb_out {animation-name:zsb_fade_out}
.zsb_fx_backSlide.zsb_in {animation-name:zsb_back_in}
.zsb_fx_backSlide.zsb_out {animation-name:zsb_back_out}
.zsb_fx_backSlide.zsb_rev.zsb_in {animation-name:zsb_back_in_rev}
.zsb_fx_backSlide.zsb_rev.zsb_out {animation-name:zsb_back_out_rev}
.zsb_fx_goDown.zsb_in {animation-name:zsb_down_in}
.zsb_fx_goDown.zsb_out {animation-name:zsb_down_out}
.zsb_fx_fadeUp.zsb_in {animation-name:zsb_up_in}
.zsb_fx_fadeUp.zsb_out {animation-name:zsb_fade_out}
@keyframes zsb_slide_in {from {transform:translateX(100%)} to {transform:translateX(0)}}
@keyframes zsb_slide_out {from {transform:translateX(0)} to {transform:translateX(-100%)}}
@keyframes zsb_slide_in_rev {from {transform:translateX(-100%)} to {transform:translateX(0)}}
@keyframes zsb_slide_out_rev {from {transform:translateX(0)} to {transform:translateX(100%)}}
@keyframes zsb_fade_in {from {opacity:0} to {opacity:1}}
@keyframes zsb_fade_out {from {opacity:1} to {opacity:0}}
@keyframes zsb_back_in {0% {transform:translateX(100%) scale(.8)} 60% {transform:translateX(0) scale(.8)} 100% {transform:translateX(0) scale(1)}}
@keyframes zsb_back_out {0% {transform:scale(1)} 40% {transform:scale(.8)} 100% {transform:translateX(-100%) scale(.8)}}
@keyframes zsb_back_in_rev {0% {transform:translateX(-100%) scale(.8)} 60% {transform:translateX(0) scale(.8)} 100% {transform:translateX(0) scale(1)}}
@keyframes zsb_back_out_rev {0% {transform:scale(1)} 40% {transform:scale(.8)} 100% {transform:translateX(100%) scale(.8)}}
@keyframes zsb_down_in {from {transform:translateY(-100%)} to {transform:translateY(0)}}
@keyframes zsb_down_out {from {transform:translateY(0)} to {transform:translateY(100%)}}
@keyframes zsb_up_in {from {opacity:0; transform:scale(1.5)} to {opacity:1; transform:scale(1)}}

/* 화살표와 페이징 */
.zsb_nav {position:absolute; top:50%; z-index:5; width:34px; height:50px; margin-top:-25px; border:0; background:transparent; color:rgba(115,114,114,1); font-size:25px; cursor:pointer}
.zsb_prev {left:0}
.zsb_next {right:0}
.zsb_dots {position:absolute; left:0; right:0; bottom:8px; z-index:5; text-align:center; line-height:0}
.zsb_dots button {width:10px; height:10px; margin:0 4px; padding:0; border:0; border-radius:50%; background:rgba(0,0,0,.25); cursor:pointer}
.zsb_dots button.active {background:rgba(0,0,0,.6)}

/* 쇼핑몰 상품 목록 */
.zsb_items {display:grid; grid-template-columns:repeat(4, 1fr); gap:15px 12px}
.zsb_items a {display:block; color:#333; text-decoration:none}
.zsb_img {display:block; position:relative; padding-top:100%; overflow:hidden; background:#f5f5f5}
.zsb_img img {position:absolute; left:0; top:0; width:100%; height:100%; object-fit:cover; transition:transform .3s}
.zsb_items a:hover .zsb_img img {transform:scale(1.05)}
.zsb_name {display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; margin-top:7px; font-size:13px; line-height:18px; height:36px}
.zsb_price {display:block; margin-top:4px; font-size:13px}
.zsb_price del {margin-right:4px; color:#999; font-size:12px}
.zsb_price strong {color:#e5352b}
.zsb_more {display:block; margin-top:12px; text-align:right; font-size:12px; color:#777; text-decoration:none}
.zsb_more:hover {color:#333}

/* 색상 구성: 다크그레이 */
.zsb_wrap.sty_darkgray .zsb_tab {background:#363636}
.zsb_wrap.sty_darkgray .zsb_tab li {background:#363636; border-bottom:1px solid #c69c6a}
.zsb_wrap.sty_darkgray .zsb_tab li a {color:#fff}
.zsb_wrap.sty_darkgray .zsb_tab li.active {background:#c69c6d}
.zsb_wrap.sty_darkgray .zsb_tab li.active > a:after {border-left-color:#c69c6d}

/* 색상 구성: 블루 */
.zsb_wrap.sty_blue .zsb_tab {background:#3b78ce}
.zsb_wrap.sty_blue .zsb_tab li {background:#3b78ce; border-bottom:1px solid #578bd5}
.zsb_wrap.sty_blue .zsb_tab li a {color:#fff}
.zsb_wrap.sty_blue .zsb_tab li.active {background:#154b98}
.zsb_wrap.sty_blue .zsb_tab li.active > a:after {border-left-color:#154b98}

/* 색상 구성: 화이트 */
.zsb_wrap.sty_white .zsb_tab {border-right:1px solid #eee}
.zsb_wrap.sty_white .zsb_tab li a {color:#000}
.zsb_wrap.sty_white .zsb_tab li.active a {color:#ff0078; font-weight:bold}

/* 좁은 화면: 분류 탭을 상단 가로 목록으로 전환 */
@media (max-width:767px) {
    .zsb_wrap {display:block}
    .zsb_tab {display:flex; max-width:none; overflow-x:auto; -webkit-overflow-scrolling:touch; font-size:14px}
    .zsb_tab li {flex:0 0 auto; border-bottom:0 !important; border-right:1px solid rgba(255,255,255,.15)}
    .zsb_tab li a {padding:10px 14px}
    .zsb_tab li.active > a:after {display:none}
    .zsb_type_shop {padding:12px}
    .zsb_items {grid-template-columns:repeat(2, 1fr)}
    .zsb_items li:nth-child(n+5) {display:none}
}

/* 최고관리자에게만 표시되는 설정 버튼 */
.zsb_setup {margin:-10px 0 15px; text-align:right}
.zsb_setup a {display:inline-block; padding:6px 14px; border:0; border-radius:3px; background:#e8232b; color:#fff; font-size:13px; font-weight:bold; line-height:1.5; text-decoration:none; box-shadow:0 1px 3px rgba(0,0,0,.25)}
.zsb_setup a:hover {background:#c41a21; color:#fff}
