@charset "utf-8";

#shop_main_builder {
    width: 100%;
}

.mb-block__container {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.mb-block--full {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.mb-block--full .mb-block__container {
    width: 100%;
    max-width: none;
}

.mb-hover-zoom {
    display: block;
    overflow: hidden;
}

.mb-hover-zoom img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

a:hover .mb-hover-zoom img,
.mb-hover-zoom:hover img {
    transform: scale(var(--mb-hover-scale, 1.15));
}

/* hero — DTPIA 풀폭 + 양옆 반투명 슬라이드 */
#shop_main_builder .shop-main-banner-fullwidth {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
}

.mb-block--hero_slider.mb-block--full {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-top: 20px !important;
    padding-bottom: 0 !important;
    overflow: hidden;
    background: #fff !important;
}

.mb-block--hero_slider .mb-block__container {
    width: 100%;
    max-width: none;
    padding: 0;
}

.mb-hero.main-visual-wrap {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
}

.mb-hero__swiper.main-visual {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.mb-hero__swiper .swiper-wrapper {
    align-items: center;
}

.mb-hero .swiper-slide {
    width: 1200px;
    height: 330px;
    opacity: 0.5;
    transition: opacity 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin: 0 20px;
    box-sizing: border-box;
}

.mb-hero .swiper-slide-active {
    opacity: 1;
}

.mb-hero.is-single .swiper-slide {
    opacity: 1;
    margin: 0 auto;
}

.mb-hero__link,
.mb-hero__img-wrap {
    display: block;
    width: 100%;
    height: 100%;
}

.mb-hero__img-wrap {
    line-height: 0;
    background: #e8e8e8;
}

.mb-hero__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.mb-hero__ctrl.top-banner-controller {
    position: absolute;
    right: max(20px, calc(50% - 580px));
    bottom: 36px;
    z-index: 5;
}

.mb-hero__ctrl button:hover {
    color: #3a8afd;
}

.mb-hero__ctrl .mb-hero__pager,
.mb-hero__ctrl .swiper-pagination {
    position: static;
    width: auto;
    min-width: 48px;
    text-align: center;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
}

body.is_index #shop_main_builder .mb-block--hero_slider,
body.is_index #shop_main_builder .shop-main-banner-fullwidth {
    overflow: visible;
}

/* best icons */
.mb-best {
    display: flex;
    align-items: center;
    gap: 30px;
}

.mb-best__side {
    flex: 0 0 120px;
    text-align: center;
}

.mb-best__side-img {
    display: block;
    width: 100%;
    max-width: 120px;
    max-height: 120px;
    margin: 0 auto;
    object-fit: contain;
}

.mb-best__list {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(var(--mb-cols, 6), minmax(0, 1fr));
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mb-best__item {
    display: block;
    text-align: center;
    text-decoration: none;
    color: #333;
}

.mb-best__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    background: #f6f6f6;
    border-radius: 16px;
    overflow: hidden;
}

.mb-best__icon img {
    max-width: 72px;
    max-height: 72px;
    object-fit: contain;
}

.mb-best__label {
    display: block;
    margin-top: 8px;
    font-size: 0.95em;
}

/* shop item type (gnuboard main skins) */
.mb-shop-items .sct_wrap {
    margin: 0;
}

.mb-shop-items .sct_wrap header h2 {
    margin-bottom: 15px;
}

/* 히트·추천·최신·인기·할인 상품 이미지 호버 확대 */
#shop_main_builder .mb-shop-items--hover .sct_btn,
#shop_main_builder .mb-shop-items--hover .sct_cart,
#shop_main_builder .mb-shop-items--hover .cart-layer,
#shop_main_builder .mb-shop-items--hover .sct_img:hover .sct_cart,
#shop_main_builder .mb-shop-items--hover .sct_cartop,
#shop_main_builder .mb-shop-items--hover .sct_cartop_wr {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#shop_main_builder .mb-shop-items--hover .sct_li.overlay::before,
#shop_main_builder .mb-shop-items--hover .sct_li.overlay::after {
    display: none !important;
}

#shop_main_builder .mb-shop-items--hover .sct_img {
    overflow: hidden;
    position: relative;
}

#shop_main_builder .mb-shop-items--hover .sct_img a {
    display: block;
    overflow: hidden;
}

#shop_main_builder .mb-shop-items--hover .sct_img img {
    display: block;
    max-width: 100%;
    height: auto;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 0.35s ease;
    will-change: transform;
}

#shop_main_builder .mb-shop-items--hover .sct_li:hover .sct_img img {
    transform: scale(var(--mb-hover-scale, 1.1));
}

/* 히트상품(main.10): owl 미초기화 시 display:none 방지 */
#shop_main_builder .mb-shop-items--type1 {
    overflow: hidden;
}

#shop_main_builder .mb-shop-items .owl-carousel:not(.owl-loaded) {
    display: block !important;
}

#shop_main_builder .mb-shop-items .owl-carousel:not(.owl-loaded) > .sct_li {
    display: inline-block;
    vertical-align: top;
    float: left;
    width: 20%;
    box-sizing: border-box;
}

/* main.05 — 전체 박스 #f4f7f9, 직각 테두리, 이름 가운데 */
#shop_main_builder .mb-shop-items--skin05 .smt_05,
#shop_main_builder .smt_05 {
    position: relative;
    background: #f4f7f9 !important;
    padding: 24px 44px;
    border: 1px solid #d9dde2 !important;
    border-radius: 0 !important;
    box-sizing: border-box;
}

#shop_main_builder .mb-shop-items--skin05 .sct_li,
#shop_main_builder .smt_05 .sct_li {
    background: transparent !important;
}

#shop_main_builder .mb-shop-items--skin05 .sct_txt,
#shop_main_builder .mb-shop-items--skin05 .sct_txt a,
#shop_main_builder .smt_05 .sct_txt,
#shop_main_builder .smt_05 .sct_txt a {
    text-align: center !important;
}

#shop_main_builder .mb-shop-items--skin05 .sct_cost,
#shop_main_builder .smt_05 .sct_cost {
    display: none !important;
}

#shop_main_builder .mb-shop-items--skin05 .owl-carousel .owl-item,
#shop_main_builder .smt_05.owl-carousel .owl-item {
    padding: 0 10px;
    box-sizing: border-box;
}

#shop_main_builder .mb-shop-items--skin05 .owl-carousel .owl-item .sct_li,
#shop_main_builder .smt_05.owl-carousel .owl-item .sct_li {
    float: none;
    width: 100% !important;
    margin: 0;
}

/* main.05 캐러셀 좌우 화살표 */
#shop_main_builder .mb-shop-items--skin05 .smt_05.owl-carousel .owl-nav,
#shop_main_builder .smt_05.owl-carousel .owl-nav {
    margin: 0;
}

#shop_main_builder .mb-shop-items--skin05 .smt_05.owl-carousel .owl-nav button,
#shop_main_builder .smt_05.owl-carousel .owl-nav button {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 26px;
    height: 26px;
    margin: 0;
    padding: 0;
    border: 1px solid #c8ced6;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.92);
    color: #5f6b7a;
    font-size: 0;
    line-height: 26px;
    transform: translateY(-50%);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

#shop_main_builder .mb-shop-items--skin05 .smt_05.owl-carousel .owl-nav button:hover,
#shop_main_builder .smt_05.owl-carousel .owl-nav button:hover {
    border-color: #9aa5b3;
    background: #fff;
    color: #333;
}

#shop_main_builder .mb-shop-items--skin05 .smt_05.owl-carousel .owl-nav button.owl-prev,
#shop_main_builder .smt_05.owl-carousel .owl-nav button.owl-prev {
    left: 10px;
}

#shop_main_builder .mb-shop-items--skin05 .smt_05.owl-carousel .owl-nav button.owl-next,
#shop_main_builder .smt_05.owl-carousel .owl-nav button.owl-next {
    right: 10px;
}

#shop_main_builder .mb-shop-items--skin05 .smt_05.owl-carousel .owl-nav button span,
#shop_main_builder .smt_05.owl-carousel .owl-nav button span {
    display: none;
}

#shop_main_builder .mb-shop-items--skin05 .smt_05.owl-carousel .owl-nav button::before,
#shop_main_builder .smt_05.owl-carousel .owl-nav button::before {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    margin: 0 auto;
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
}

#shop_main_builder .mb-shop-items--skin05 .smt_05.owl-carousel .owl-nav button.owl-prev::before,
#shop_main_builder .smt_05.owl-carousel .owl-nav button.owl-prev::before {
    transform: rotate(45deg);
    margin-left: 10px;
}

#shop_main_builder .mb-shop-items--skin05 .smt_05.owl-carousel .owl-nav button.owl-next::before,
#shop_main_builder .smt_05.owl-carousel .owl-nav button.owl-next::before {
    transform: rotate(-135deg);
    margin-right: 10px;
}

#shop_main_builder .mb-shop-items--skin05 .smt_05.owl-carousel .owl-nav.disabled,
#shop_main_builder .smt_05.owl-carousel .owl-nav.disabled {
    display: block;
}

/* middle banner */
.mb-middle {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 240px;
}

.mb-middle__img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.mb-middle__txt {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.mb-middle__ctrl {
    position: absolute;
    right: 15px;
    bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    padding: 4px 10px;
}

.mb-middle__ctrl button {
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

/* notice */
.mb-notice {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 25px 30px;
    background: #fff;
    height: 240px;
    box-sizing: border-box;
}

.mb-notice__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.mb-notice__head h2 {
    margin: 0;
    font-size: 1.35em;
}

.mb-notice__more {
    font-size: 1.4em;
    text-decoration: none;
    color: #666;
}

.mb-notice__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mb-notice__list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px dotted #ddd;
    text-decoration: none;
    color: #333;
    font-size: 0.95em;
}

.mb-notice__cate {
    flex: 0 0 60px;
    text-align: center;
    background: #3a8afd;
    color: #fff;
    border-radius: 12px;
    font-size: 0.85em;
    padding: 2px 6px;
}

.mb-notice__tit {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mb-notice__date {
    flex: 0 0 90px;
    text-align: right;
    color: #888;
    font-size: 0.9em;
}

.mb-notice__new {
    display: inline-block;
    background: #ff8b00;
    color: #fff;
    font-size: 0.75em;
    padding: 0 4px;
    border-radius: 3px;
    margin-left: 4px;
    font-style: normal;
}

/* review */
.mb-review {
    position: relative;
}

.mb-review__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.mb-review__head h2 {
    margin: 0;
    font-size: 1.5em;
}

.mb-review__more {
    color: #3a8afd;
    text-decoration: none;
}

.mb-review__swiper {
    overflow: hidden;
}

.mb-review__card {
    display: block;
    text-decoration: none;
    color: #333;
    border: 1px solid #d5d2d2;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s;
}

.mb-review__card:hover {
    border-color: #888;
}

.mb-review__thumb {
    display: block;
    aspect-ratio: 1;
}

.mb-review__meta {
    display: block;
    padding: 12px;
}

.mb-review__cate {
    display: inline-block;
    background: #c6e0ff;
    color: #3a8afd;
    font-size: 0.8em;
    padding: 2px 8px;
    border-radius: 6px;
    font-style: normal;
    margin-bottom: 6px;
}

.mb-review__meta p {
    margin: 6px 0 0;
    color: #70757a;
    font-size: 0.92em;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mb-review__ctrl {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
}

.mb-review__ctrl button {
    pointer-events: auto;
    position: absolute;
    top: 0;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(31, 39, 81, 0.5);
    color: #fff;
    cursor: pointer;
}

.mb-review__prev { left: -10px; }
.mb-review__next { right: -10px; }

/* editor grid */
.mb-editor__tit {
    margin: 0 0 24px;
    font-size: 1.5em;
}

.mb-editor__grid {
    display: grid;
    grid-template-columns: repeat(var(--mb-cols, 5), minmax(0, 1fr));
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mb-editor__card {
    display: block;
    text-decoration: none;
    color: #333;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.mb-editor__thumb {
    display: block;
    aspect-ratio: 1;
}

.mb-editor__body {
    display: block;
    padding: 12px;
}

.mb-editor__badge {
    display: inline-block;
    background: #3a8afd;
    color: #fff;
    font-size: 0.75em;
    padding: 2px 6px;
    border-radius: 4px;
    font-style: normal;
    margin-bottom: 6px;
}

.mb-editor__body p {
    margin: 6px 0 0;
    color: #70757a;
    font-size: 0.9em;
    line-height: 1.35;
}

/* middle banner + notice: DTPIA-style 50/50 row */
.mb-block--row-half .mb-row__grid {
    display: flex;
    align-items: stretch;
    gap: 30px;
}

.mb-block--row-half .mb-row__col {
    flex: 1;
    min-width: 0;
}

.mb-block--row-half .mb-middle,
.mb-block--row-half .mb-notice {
    height: 240px;
}

.mb-block--row-half .mb-middle__img {
    height: 240px;
}

@media (max-width: 1240px) {
    .mb-block__container {
        width: calc(100% - 30px);
        padding: 0 15px;
    }

    .mb-hero .swiper-slide {
        width: calc(100vw - 80px);
        max-width: 1200px;
        height: auto;
        min-height: 200px;
        aspect-ratio: 1200 / 330;
    }

    .mb-hero__ctrl.top-banner-controller {
        right: 20px;
    }

    .mb-best {
        flex-direction: column;
    }

    .mb-best__list,
    .mb-editor__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mb-block--row-half .mb-row__grid {
        flex-direction: column;
        gap: 20px;
    }

    .mb-block--row-half .mb-middle,
    .mb-block--row-half .mb-notice,
    .mb-block--row-half .mb-middle__img {
        height: auto;
        min-height: 200px;
    }
}
