/* BASIC css start */
/* 고정 헤더 자리 확보: 배너 margin이 헤더까지 밀지 않도록 분리 */
#wrap > #header .header_box {
    top: 0;
}

#wrap > #contentWrapper {
    display: flow-root;
    padding-top: 48px;
    box-sizing: border-box;
}

/* 메인배너: 한 장씩 슬라이드 */
#bfMobileBanners {
    position: relative;
    width: 100%;
    margin-top: 10px;
    overflow: hidden;
    background: #0c0309;
}

#bfMobileBanners .bf-main-swiper {
    width: 100%;
    overflow: hidden;
}

#bfMobileBanners .swiper-wrapper {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    padding: 0;
}

#bfMobileBanners .bf-main-slide {
    display: block;
    position: relative;
    flex-shrink: 0;
    width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: auto;
    margin: 0;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
    text-decoration: none;
}

#bfMobileBanners .bf-main-slide > img {
    display: block;
    position: static;
    width: 100%;
    height: auto;
    object-fit: contain;
    border: 0;
    border-radius: 0;
}

#bfMobileBanners .bf-coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #f3efe9;
    color: #785f4c;
}

#bfMobileBanners .bf-coming-soon span {
    font-size: 10px;
    letter-spacing: 3px;
}

#bfMobileBanners .bf-coming-soon strong {
    font-size: 24px;
    font-weight: 500;
}

#bfMobileBanners .bf-main-pagination {
    position: absolute;
    left: 0;
    bottom: 12px;
    z-index: 5;
    width: 100%;
    text-align: center;
    line-height: 1;
}

#bfMobileBanners .swiper-pagination-bullet {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin: 0 4px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 2px rgba(0, 0, 0, .5);
    opacity: .45;
}

#bfMobileBanners .swiper-pagination-bullet-active {
    background: #ed1530;
    opacity: 1;
}

/* Swiper가 없을 때도 가로로 넘기기 */
#bfMobileBanners .bf-main-fallback {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

#bfMobileBanners .bf-main-fallback .bf-main-slide {
    scroll-snap-align: start;
}

/* 실시간 베스트 */
#bfBest {
    clear: both;
    padding: 40px 0 32px;
    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(119, 0, 51, .85) 0%,
            rgba(61, 0, 27, .65) 35%,
            rgba(12, 3, 9, 0) 75%
        ),
        #0c0309;
    color: #fff;
}

#bfBest .bfb-inner {
    width: 92%;
    margin: 0 auto;
}

#bfBest .bfb-heading {
    margin-bottom: 24px;
    text-align: center;
}

#bfBest .bfb-eyebrow {
    margin: 0 0 12px;
    color: #ff4545;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
}

#bfBest .bfb-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 27px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -1.5px;
}

#bfBest .bfb-heading h2 span {
    color: #ff4545;
}

#bfBest .bfb-desc {
    margin: 12px 0 0;
    color: #ccc;
    font-size: 12px;
    line-height: 1.6;
}

#bfBest .bfb-slider-area {
    position: relative;
    min-width: 0;
}

#bfBest .bfb-swiper {
    width: 100%;
    overflow: hidden;
}

#bfBest .bfb-swiper > .item-cont {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0 !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

#bfBest .item-cont::before,
#bfBest .item-cont::after {
    display: none !important;
    content: none !important;
}

#bfBest .item-cont > li,
#bfBest .item-cont > .item-list {
    position: relative;
    display: block;
    flex: 0 0 auto !important;
    float: none !important;
    clear: none !important;
    min-width: 0;
    max-width: none !important;
    height: auto;
    margin: 0;
    padding: 0 !important;
    box-sizing: border-box;
    color: #eee;
    text-align: left;
}

#bfBest .bfb-swiper:not(.bfb-ready) > .item-cont > li,
#bfBest .bfb-swiper:not(.bfb-ready) > .item-cont > .item-list {
    width: calc((100% - 12px) / 2);
    margin-right: 12px;
}

#bfBest .bfb-rank {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 40px;
    background: #ed1530;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}

#bfBest .bfb-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

#bfBest .bfb-pagination {
    position: static;
    width: auto;
    line-height: 1;
}

#bfBest .swiper-pagination-bullet {
    display: inline-block;
    width: 10px;
    height: 3px;
    margin: 0 3px;
    border-radius: 0;
    background: #fff;
    opacity: .3;
}

#bfBest .swiper-pagination-bullet-active {
    background: #ff4545;
    opacity: 1;
}

#bfBest .bfb-play {
    margin: 0;
    padding: 5px 9px;
    border: 1px solid #555;
    border-radius: 0;
    background: transparent;
    color: #ccc;
    font-family: inherit;
    font-size: 11px;
    line-height: 1.4;
}

#bfBest .bfb-fallback {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 공통 영역 */
#bfSpecial,
#bfPopular {
    clear: both;
    padding: 42px 0;
}

#bfSpecial .bf-inner,
#bfPopular .bf-inner {
    width: 92%;
    margin: 0 auto;
}

#bfPopular {
    background: #fff;
}

#bfPopular .bf-heading {
    margin-bottom: 24px;
    text-align: center;
}

#bfPopular .bf-eyebrow {
    margin: 0 0 12px;
    color: #862b3c;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

#bfPopular .bf-heading h2 {
    margin: 0;
    color: #171717;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -1px;
}

#bfPopular .bf-desc {
    margin: 12px 0 0;
    color: #666;
    font-size: 12px;
    line-height: 1.6;
}

/* 리본 타이틀 */
#bfSpecial {
    background: #101010;
    color: #eee;
}

#bfSpecial .bf-ribbon-heading {
    margin: 0 auto 26px;
    padding: 0;
    border: 0;
    text-align: center;
}

#bfSpecial .bf-eyebrow {
    margin: 0 0 16px;
    color: #ff4545;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 2px;
}

#bfSpecial .bf-title-wrap {
    position: relative;
    isolation: isolate;
    width: 270px;
    max-width: 82%;
    margin: 0 auto;
    padding: 10px 0;
}

#bfSpecial .bf-title-ribbon {
    position: absolute;
    z-index: -1;
    top: 50%;
    left: -7%;
    width: 114%;
    height: 44px;
    background: #ed1530;
    transform: translateY(-50%) rotate(-9deg);
}

#bfSpecial .bf-title-ribbon::before,
#bfSpecial .bf-title-ribbon::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 22px;
    background: #960c20;
}

#bfSpecial .bf-title-ribbon::before {
    left: 0;
    bottom: -21px;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

#bfSpecial .bf-title-ribbon::after {
    right: 0;
    top: -21px;
    clip-path: polygon(0 0, 100% 100%, 0 100%);
}

#bfSpecial .bf-ribbon-heading h2 {
    position: relative;
    margin: 0;
    padding: 0;
    color: #fff;
    font-family: "Arial Black", "Noto Sans KR", sans-serif;
    font-size: clamp(38px, 12vw, 56px);
    font-weight: 900;
    line-height: .94;
    letter-spacing: -3px;
}

#bfSpecial .bf-ribbon-heading h2 > span {
    display: block;
    white-space: nowrap;
}

#bfSpecial .bf-ribbon-heading h2 > span:first-child {
    letter-spacing: -2px;
}

#bfSpecial .bf-desc {
    margin: 22px 0 0;
    color: #ddd;
    font-size: 12px;
    line-height: 1.6;
}

#bfSpecial .bf-desc strong {
    color: #ff4545;
    font-weight: 800;
    white-space: nowrap;
}

/* 할인율 탭 */
#bfSpecial .bf-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    margin: 0 0 24px;
    padding: 4px 2px 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#bfSpecial .bf-tab {
    flex: 0 0 70px;
    min-width: 70px;
    box-sizing: border-box;
    margin: 0;
    padding: 13px 8px;
    border: 1px solid #e7e3dc;
    border-radius: 0;
    background: #f0ede7;
    color: #171717;
    font-family: Impact, "Arial Narrow", sans-serif;
    font-size: 23px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
}

#bfSpecial .bf-tab.is-active {
    border-color: #ed1530;
    background: #ed1530;
    color: #fff;
}

#bfSpecial .bf-panel[hidden] {
    display: none !important;
}

/* 상품 한 줄 2개 */
#bfSpecial .prod_box,
#bfPopular .prod_box {
    padding: 0;
}

#bfSpecial .item-cont,
#bfPopular .item-cont {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px 12px;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

#bfSpecial .item-cont::before,
#bfSpecial .item-cont::after,
#bfPopular .item-cont::before,
#bfPopular .item-cont::after {
    display: none !important;
    content: none !important;
}

#bfSpecial .item-cont > li,
#bfSpecial .item-cont > .item-list,
#bfPopular .item-cont > li,
#bfPopular .item-cont > .item-list {
    display: block;
    float: none !important;
    clear: none !important;
    width: 100% !important;
    min-width: 0;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

#bfBest .item-list > .thumb,
#bfSpecial .item-list > .thumb,
#bfPopular .item-list > .thumb {
    width: 100%;
    margin: 0;
}

#bfBest .item_img,
#bfSpecial .item_img,
#bfPopular .item_img,
#bfBest .tumb,
#bfSpecial .tumb,
#bfPopular .tumb {
    position: relative;
    width: 100%;
}

#bfBest .tumb > a,
#bfSpecial .tumb > a,
#bfPopular .tumb > a {
    display: block;
}

#bfBest .tumb > a > img:first-child,
#bfBest .tumb > a > div > img,
#bfSpecial .tumb > a > img:first-child,
#bfSpecial .tumb > a > div > img,
#bfPopular .tumb > a > img:first-child,
#bfPopular .tumb > a > div > img {
    display: block;
    width: 100%;
    height: auto;
}

/* 검정 배경 상품명 / 가격 */
#bfBest .prdname,
#bfBest .chkPrdName,
#bfBest .prdname a,
#bfBest .chkPrdName a,
#bfBest .prdname span,
#bfBest .chkPrdName span,
#bfSpecial .prdname,
#bfSpecial .chkPrdName,
#bfSpecial .prdname a,
#bfSpecial .chkPrdName a,
#bfSpecial .prdname span,
#bfSpecial .chkPrdName span {
    color: #fff !important;
}

#bfBest .item_price,
#bfBest .price,
#bfBest .price *,
#bfSpecial .item_price,
#bfSpecial .price,
#bfSpecial .price * {
    color: #fff !important;
}

#bfBest .strike,
#bfBest .strike *,
#bfBest del,
#bfBest del *,
#bfSpecial .strike,
#bfSpecial .strike *,
#bfSpecial del,
#bfSpecial del * {
    color: #999 !important;
}

#bfBest .salePercent,
#bfBest .salePercent *,
#bfSpecial .salePercent,
#bfSpecial .salePercent * {
    color: #ff4545 !important;
}

#bfBest .item_etc,
#bfBest .item_option,
#bfSpecial .item_etc,
#bfSpecial .item_option {
    color: #bbb !important;
}

/* 전체보기 */
#bfSpecial .bf-more-wrap,
#bfPopular .bf-more-wrap {
    clear: both;
    margin: 30px 0 10px;
    text-align: center;
}

#bfSpecial .bf-more-btn,
#bfPopular .bf-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 280px;
    max-width: 90%;
    min-height: 50px;
    box-sizing: border-box;
    padding: 13px 20px;
    border: 1px solid #222;
    border-radius: 0;
    background: #222;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
}

#bfSpecial .bf-more-btn {
    border-color: #777;
    background: transparent;
}

#bfBest button:focus-visible,
#bfSpecial .bf-tab:focus-visible,
#bfSpecial .bf-more-btn:focus-visible,
#bfPopular .bf-more-btn:focus-visible {
    outline: 2px solid #ff4545;
    outline-offset: 3px;
}
/* BASIC css end */

