/* BASIC css start */
/* 기본 */
.footer_section {
    display: none;
}

html,
body {
    overflow-x: clip;
}

#contentWrap_mem {
    width: 100% !important;
    margin-top: 2%;
    background: #0e0e0e;
}

#content_mem {
    width: 1200px !important;
    max-width: 100%;
    margin: 0 auto;
    color: #fff;
}

#content_mem,
#content_mem * {
    box-sizing: border-box;
}

#content_mem img {
    width: 100%;
    max-width: 100%;
    border: 0;
}

#content_mem > img {
    display: block;
    height: auto;
}

/* 흐르는 텍스트 */
#content_mem .bf-ticker {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    padding: 18px 0;
    background: #0e0e0e;
    color: #009fff;
}

#content_mem .bf-ticker-track {
    display: flex;
    width: max-content;
    animation: bfTickerFlow 28s linear infinite;
}

#content_mem .bf-ticker-group {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-around;
    min-width: max(1200px, 100vw);
}

#content_mem .bf-ticker-group span {
    display: block;
    flex-shrink: 0;
    padding: 0 28px;
    color: #009fff;
    font-family: Arial, sans-serif;
    font-size: 42px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -1px;
    white-space: nowrap;
}

#content_mem .bf-ticker-reverse .bf-ticker-track {
    animation-direction: reverse;
}

@keyframes bfTickerFlow {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* 세일 영역 */
#content_mem .bf-sale {
    width: 100%;
    padding: 70px 46px 90px;
    background: #0e0e0e;
    color: #fff;
}

#content_mem .bf-sale-heading {
    margin-bottom: 70px;
    text-align: center;
}

#content_mem .bf-sale-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 46px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -2px;
    word-break: keep-all;
}

#content_mem .bf-sale-heading p {
    margin: 28px 0 0;
    color: #fff;
    font-size: 25px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -1px;
    word-break: keep-all;
}

/* 왼쪽 배너 + 오른쪽 상품 */
#content_mem .bf-sale-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.8fr);
    align-items: start;
    gap: 30px;
}

/* GIF 배너 */
#content_mem .bf-sale-banner {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
    background: transparent;
}
/* 타이틀 위 작은 브랜드명 */
#content_mem #bfSaleProducts .bf-product-brand {
    margin-top: 13px;
    color: #aaa;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.4px;
}

#content_mem #bfSaleProducts .bf-product-brand[hidden] {
    display: none;
}

/* 브랜드명과 타이틀 사이 간격 */
#content_mem #bfSaleProducts .bf-product-brand:not([hidden])
    + .bf-product-name {
    margin-top: 5px;
}
#content_mem .bf-sale-banner > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#content_mem .bf-sale-layout {
    align-items: center;
}
/* 상품 목록: PC 3열 */
#content_mem #bfSaleProducts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 12px;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* JS가 생성하는 상품 카드 */
#content_mem #bfSaleProducts .bf-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    text-align: left;
    text-decoration: none;
}

#content_mem #bfSaleProducts .bf-product-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
}

#content_mem #bfSaleProducts .bf-product-image {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    object-fit: contain;
}

#content_mem #bfSaleProducts .bf-product-placeholder {
    padding: 16px;
    color: #777;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

/* 직접 입력하는 제목 */
#content_mem #bfSaleProducts .bf-product-name {
    margin: 14px 0 0;
    padding: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -0.6px;
    white-space: pre-line;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

/* 혜택가 */
#content_mem #bfSaleProducts .bf-product-sale {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    padding: 0;
    line-height: 1.4;
}

#content_mem #bfSaleProducts .bf-product-benefit-label {
    color: #8aa9ff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.4px;
}

#content_mem #bfSaleProducts .bf-product-sale strong {
    color: #fff;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.8px;
}

#content_mem #bfSaleProducts .bf-product-status {
    margin: 8px 0 0;
    color: #aaa;
    font-size: 12px;
    line-height: 1.5;
}

#content_mem .bf-sale-status {
    grid-column: 1 / -1;
    margin: 0;
    padding: 30px 0;
    color: #aaa;
    font-size: 14px;
    text-align: center;
}

/* 전체 보러가기 */
#content_mem .bf-sale-bottom {
    margin-top: 48px;
    text-align: center;
}

#content_mem .bf-sale-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 190px;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 4px;
    background: #1648ff;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
}

#content_mem .bf-sale-button:hover {
    background: #103cdb;
}

/* 쇼핑지원금 */
#content_mem .bf-roulette {
    padding-top: 72px;
}

#content_mem .bf-roulette a,
#content_mem .bf-roulette img {
    display: block;
}

#content_mem .bf-roulette img {
    height: auto;
}

/* 멤버스 쿠폰 */
#content_mem .bf-coupon {
    padding: 80px 60px 90px;
    background: #0e0e0e;
    color: #fff;
    font-family: Arial, "Malgun Gothic", sans-serif;
    text-align: center;
}

#content_mem .bf-coupon-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 48px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -2px;
    word-break: keep-all;
}

#content_mem .bf-coupon-heading p {
    margin: 25px 0 0;
    color: #fff;
    font-size: 26px;
    line-height: 1.6;
    letter-spacing: -1px;
    word-break: keep-all;
}

/* 날짜 탭 */
#content_mem .bf-coupon-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 52px 0 30px;
}

#content_mem .bf-coupon-tabs button {
    appearance: none;
    flex: 0 1 112px;
    min-width: 0;
    min-height: 46px;
    padding: 10px 8px;
    border: 1px solid transparent;
    border-radius: 30px;
    background: #414141;
    color: #fff;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

#content_mem .bf-coupon-tabs button[aria-selected="true"] {
    border-color: #fff;
    background: #1648ff;
    box-shadow: 0 0 0 3px #0e0e0e, 0 0 0 4px #fff;
}

#content_mem .bf-coupon-tabs button:focus-visible,
#content_mem .bf-coupon-panel:focus-visible {
    outline: 3px solid #9dbaff;
    outline-offset: 6px;
}

#content_mem .bf-coupon-panel {
    max-width: 1080px;
    margin: 0 auto;
}

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

/* 쿠폰 3종 */
#content_mem .bf-coupon-pack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

#content_mem .bf-coupon-ticket {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 150px;
    border-radius: 12px;
    background: linear-gradient(
        115deg,
        #123bd9 0%,
        #285eff 55%,
        #4b7aff 100%
    );
    color: #fff;
    text-align: left;
    isolation: isolate;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

#content_mem .bf-coupon-ticket:nth-child(2) {
    background: linear-gradient(
        115deg,
        #2445d5 0%,
        #4865ee 55%,
        #697ff4 100%
    );
}

#content_mem .bf-coupon-ticket:nth-child(3) {
    background: linear-gradient(
        115deg,
        #3946c9 0%,
        #5b60df 55%,
        #7b78eb 100%
    );
}

/* 티켓 양옆 홈 */
#content_mem .bf-coupon-ticket::before,
#content_mem .bf-coupon-ticket::after {
    content: "";
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0e0e0e;
    transform: translateY(-50%);
    pointer-events: none;
}

#content_mem .bf-coupon-ticket::before {
    left: -10px;
}

#content_mem .bf-coupon-ticket::after {
    right: -10px;
}

#content_mem .bf-coupon-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 26px 18px 26px 24px;
    overflow-wrap: anywhere;
}

#content_mem .bf-coupon-copy::before {
    content: "MEMBERS COUPON";
    display: block;
    margin-bottom: 14px;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 1.4px;
    opacity: 0.85;
}

#content_mem .bf-coupon-copy h3 {
    margin: 0;
    color: #fff;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: -1px;
}

#content_mem .bf-coupon-copy p {
    margin: 10px 0 0;
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
}

#content_mem .bf-coupon-stub {
    position: relative;
    display: flex;
    flex: 0 0 94px;
    flex-direction: column;
    justify-content: center;
    padding: 24px 10px;
    border-left: 2px dashed rgba(255, 255, 255, 0.5);
    border-radius: 0 12px 12px 0;
    background: rgba(0, 0, 0, 0.12);
    color: #fff;
    font-size: 11px;
    line-height: 1.8;
    text-align: center;
}

#content_mem .bf-coupon-stub strong {
    color: #fff;
    font-size: 17px;
    font-weight: 800;
}

/* 절취선 위아래 홈 */
#content_mem .bf-coupon-stub::before,
#content_mem .bf-coupon-stub::after {
    content: "";
    position: absolute;
    left: -9px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0e0e0e;
    pointer-events: none;
}

#content_mem .bf-coupon-stub::before {
    top: -8px;
}

#content_mem .bf-coupon-stub::after {
    bottom: -8px;
}

#content_mem .bf-coupon-note {
    margin: 26px 0 0;
    color: #ccc;
    font-size: 16px;
    line-height: 1.7;
    word-break: keep-all;
}

#content_mem .bf-coupon-note strong {
    color: #fff;
    font-weight: 600;
}

/* 쿠폰 파도 효과 */
#content_mem #bfDailyCoupon .bf-coupon-ticket {
    animation: bfMemberCouponWave 3.6s ease-in-out infinite;
}

#content_mem #bfDailyCoupon .bf-coupon-ticket:nth-child(2) {
    animation-delay: 0.22s;
}

#content_mem #bfDailyCoupon .bf-coupon-ticket:nth-child(3) {
    animation-delay: 0.44s;
}

@keyframes bfMemberCouponWave {
    0%, 44%, 100% {
        transform: translateY(0);
    }
    22% {
        transform: translateY(-7px);
    }
}

@media (hover: hover) {
    #content_mem #bfDailyCoupon .bf-coupon-pack:hover .bf-coupon-ticket {
        animation-play-state: paused;
    }
}

#content_mem #bfDailyCoupon .bf-coupon-pack:focus-within .bf-coupon-ticket {
    animation-play-state: paused;
}

/* 앱 알림 안내 */
#content_mem .bf-coupon-app {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    margin: 65px auto 0;
    padding: 45px 35px;
    border: 1px solid #303030;
    border-radius: 20px;
    background: #191919;
    text-align: left;
}

#content_mem .bf-coupon-eyebrow {
    color: #91aaff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

#content_mem .bf-coupon-app-copy h3 {
    margin: 16px 0 20px;
    color: #fff;
    font-size: 33px;
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: -1px;
}

#content_mem .bf-coupon-app-copy p {
    margin: 0;
    color: #e5e5e5;
    font-size: 17px;
    line-height: 1.8;
    word-break: keep-all;
}

#content_mem .bf-coupon-app-copy small {
    display: block;
    margin-top: 18px;
    color: #aaa;
    font-size: 12px;
    line-height: 1.7;
}

/* 휴대폰 이미지 */
#content_mem .bf-coupon-phone {
    position: relative;
    flex: 0 0 240px;
    width: 240px;
    height: 300px;
    padding: 18px 14px;
    border: 5px solid #747474;
    border-radius: 35px;
    background: linear-gradient(155deg, #304fcb, #111c45 80%);
    box-shadow: 0 18px 35px #0005;
}

#content_mem .bf-coupon-camera {
    width: 70px;
    height: 16px;
    margin: -6px auto 22px;
    border-radius: 12px;
    background: #101010;
}

#content_mem .bf-coupon-phone-time {
    color: #fff;
    font-size: 44px;
    font-weight: 600;
    text-align: center;
    letter-spacing: -2px;
}

#content_mem .bf-coupon-push {
    margin-top: 22px;
    padding: 13px 11px;
    border-radius: 14px;
    background: #e9edff;
    color: #141b32;
}

#content_mem .bf-coupon-push-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
}

#content_mem .bf-coupon-push-brand b {
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border-radius: 6px;
    background: #1648ff;
    color: #fff;
    font-size: 15px;
}

#content_mem .bf-coupon-push-brand span {
    margin-left: auto;
    color: #555;
}

#content_mem .bf-coupon-push h4 {
    margin: 10px 0 4px;
    color: #141b32;
    font-size: 12px;
    line-height: 1.5;
}

#content_mem .bf-coupon-push p {
    margin: 0;
    color: #384158;
    font-size: 10px;
    line-height: 1.6;
}

#content_mem .bf-coupon-home {
    position: absolute;
    bottom: 10px;
    left: 50%;
    width: 70px;
    height: 4px;
    border-radius: 8px;
    background: #fff;
    transform: translateX(-50%);
}

/* 유의사항 */
#content_mem .event-notice {
    width: 100%;
    padding: 28px 60px 42px;
    border-top: 1px solid #303030;
    background: #0e0e0e;
    color: #fff;
}

#content_mem .event-notice-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    list-style: none;
    cursor: pointer;
}

#content_mem .event-notice-title::-webkit-details-marker {
    display: none;
}

#content_mem .event-notice-title::marker {
    content: "";
}

#content_mem .event-notice-title:focus-visible {
    outline: 2px solid #9dbaff;
    outline-offset: 8px;
}

#content_mem .event-notice-arrow {
    width: 9px;
    height: 9px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

#content_mem .event-notice[open] .event-notice-arrow {
    transform: translateY(2px) rotate(225deg);
}

#content_mem .event-notice-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 36px 0 0;
    text-align: left;
}

#content_mem .event-notice-group {
    min-width: 0;
    margin: 0;
    padding: 28px;
    border: 1px solid #303441;
    border-radius: 14px;
    background: #15171c;
    text-align: left;
}

#content_mem .event-notice-group h3 {
    margin: 0 0 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #343a4c;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.5;
    text-align: center;
}

#content_mem .event-notice-group ol,
#content_mem .event-notice-group ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#content_mem .event-notice-group li {
    margin: 0;
    padding: 0;
    color: #ededed;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.85;
    text-align: left;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

#content_mem .event-notice-group li::before {
    content: none;
}

#content_mem .event-notice-group li + li {
    margin-top: 14px;
}

#content_mem .event-notice-group strong {
    color: #9db6ff;
    font-weight: 700;
    text-decoration: none;
}

/* 혜택 4종 */
#content_mem .bf-benefits {
    width: 100%;
    padding: 80px 50px 90px;
    background: #0e0e0e;
    color: #fff;
}

#content_mem .bf-benefits > h2 {
    margin: 0 0 50px;
    color: #fff;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -1.8px;
    text-align: center;
    word-break: keep-all;
}

#content_mem .bf-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

#content_mem .bf-benefit-card {
    min-width: 0;
    text-align: left;
}

#content_mem .bf-benefit-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #1b2236;
}

#content_mem .bf-benefit-image > a {
    display: block;
    width: 100%;
    height: 100%;
}

#content_mem .bf-benefit-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#content_mem .bf-benefit-card h3 {
    margin: 22px 0 0;
    color: #fff;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: -0.8px;
    word-break: keep-all;
}

#content_mem .bf-benefit-description {
    margin: 12px 0 0;
    color: #dedede;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: -0.3px;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

/* 웰컴혜택 */
#content_mem .bf-welcome {
    width: 100%;
    padding: 80px 50px 100px;
    background: #0e0e0e;
    color: #fff;
    text-align: center;
}

#content_mem .bf-welcome-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -1.5px;
}

#content_mem .bf-welcome-heading p {
    margin: 22px 0 0;
    color: #fff;
    font-size: 22px;
    line-height: 1.7;
    letter-spacing: -0.7px;
    word-break: keep-all;
}

#content_mem .bf-welcome-banners {
    width: 100%;
    max-width: 680px;
    margin: 44px auto 0;
}

#content_mem .bf-welcome-banner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    margin: 0 auto;
}

#content_mem .bf-welcome-banner > img {
    display: block;
    width: 80%;
    height: auto;
    margin: 0 auto;
}

#content_mem .bf-welcome-signup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    max-width: 360px;
    min-height: 58px;
    margin: 32px auto 0;
    padding: 16px 24px;
    border-radius: 8px;
    background: #1648ff;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
}

#content_mem .bf-welcome-signup:hover {
    background: #103cdb;
}

#content_mem .bf-welcome-signup:focus-visible,
#content_mem .bf-sale-button:focus-visible,
#content_mem .bf-product-card:focus-visible {
    outline: 3px solid #9dbaff;
    outline-offset: 5px;
}

/* 태블릿 */
@media (max-width: 1000px) {
    #content_mem .bf-sale {
        padding-right: 24px;
        padding-left: 24px;
    }

    #content_mem .bf-sale-layout {
        grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.8fr);
        gap: 20px;
    }

    #content_mem #bfSaleProducts {
        gap: 26px 12px;
    }

    #content_mem #bfSaleProducts .bf-product-name {
        font-size: 16px;
    }

    #content_mem #bfSaleProducts .bf-product-sale strong {
        font-size: 20px;
    }

    #content_mem .bf-coupon-pack {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    #content_mem .bf-coupon-ticket {
        min-height: 140px;
    }

    #content_mem .bf-coupon-app {
        gap: 35px;
    }
}

/* 모바일 */
@media (max-width: 767px) {
    #contentWrap_mem {
        margin-top: 0;
    }

    #content_mem {
        width: 100% !important;
    }

    #content_mem .bf-ticker {
        padding: 14px 0;
    }

    #content_mem .bf-ticker-group {
        min-width: max(760px, 100vw);
    }

    #content_mem .bf-ticker-group span {
        padding: 0 18px;
        font-size: 28px;
    }

    #content_mem .bf-sale {
        padding: 50px 20px 60px;
    }

    #content_mem .bf-sale-heading {
        margin-bottom: 36px;
    }

    #content_mem .bf-sale-heading h2 {
        font-size: 30px;
        letter-spacing: -1.5px;
    }

    #content_mem .bf-sale-heading p {
        margin-top: 18px;
        font-size: 17px;
        letter-spacing: -0.7px;
    }

    /* 배너 위, 상품 아래 */
    #content_mem .bf-sale-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    #content_mem .bf-sale-banner {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }

    /* 상품 2열 */
    #content_mem #bfSaleProducts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 12px;
    }

    #content_mem #bfSaleProducts .bf-product-name {
        margin-top: 12px;
        font-size: 16px;
        line-height: 1.4;
    }

    #content_mem #bfSaleProducts .bf-product-sale {
        gap: 5px;
        margin-top: 8px;
    }

    #content_mem #bfSaleProducts .bf-product-benefit-label {
        font-size: 13px;
    }

    #content_mem #bfSaleProducts .bf-product-sale strong {
        font-size: 22px;
    }

    #content_mem .bf-sale-bottom {
        margin-top: 36px;
    }

    #content_mem .bf-roulette {
        padding-top: 48px;
    }

    #content_mem .bf-coupon {
        padding: 50px 20px;
    }

    #content_mem .bf-coupon-heading h2 {
        font-size: 29px;
        letter-spacing: -1.5px;
    }

    #content_mem .bf-coupon-heading p {
        margin-top: 16px;
        font-size: 17px;
    }

    #content_mem .bf-coupon-tabs {
        gap: 8px;
        margin: 36px 0 25px;
    }

    #content_mem .bf-coupon-tabs button {
        min-height: 44px;
        padding: 10px 3px;
        font-size: 12px;
    }

    #content_mem .bf-coupon-ticket {
        min-height: 166px;
    }

    #content_mem .bf-coupon-copy {
        padding: 24px 16px 24px 22px;
    }

    #content_mem .bf-coupon-copy h3 {
        font-size: 25px;
    }

    #content_mem .bf-coupon-stub {
        flex-basis: 90px;
    }

    #content_mem .bf-coupon-note {
        font-size: 13px;
    }

    #content_mem .bf-coupon-app {
        flex-direction: column;
        gap: 32px;
        margin-top: 38px;
        padding: 32px 20px;
        text-align: center;
    }

    #content_mem .bf-coupon-app-copy h3 {
        font-size: 27px;
    }

    #content_mem .bf-coupon-app-copy p {
        font-size: 14px;
    }

    #content_mem .bf-coupon-phone {
        flex-basis: auto;
        text-align: left;
    }

    #content_mem .event-notice {
        padding: 25px 20px 32px;
    }

    #content_mem .event-notice-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        padding-top: 28px;
    }

    #content_mem .event-notice-group {
        padding: 24px 20px;
    }

    #content_mem .event-notice-group h3 {
        font-size: 18px;
    }

    #content_mem .event-notice-group li {
        font-size: 15px;
    }

    #content_mem .bf-benefits {
        padding: 50px 20px;
    }

    #content_mem .bf-benefits > h2 {
        margin-bottom: 30px;
        font-size: 29px;
        letter-spacing: -1.2px;
    }

    #content_mem .bf-benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 14px;
    }

    #content_mem .bf-benefit-card h3 {
        margin-top: 14px;
        font-size: 17px;
        letter-spacing: -0.6px;
    }

    #content_mem .bf-benefit-description {
        margin-top: 9px;
        font-size: 13px;
        line-height: 1.7;
    }

    #content_mem .bf-welcome {
        padding: 50px 20px 60px;
    }

    #content_mem .bf-welcome-heading h2 {
        font-size: 30px;
    }

    #content_mem .bf-welcome-heading p {
        margin-top: 16px;
        font-size: 16px;
    }

    #content_mem .bf-welcome-banners {
        margin-top: 30px;
    }

    #content_mem .bf-welcome-signup {
        min-height: 52px;
        margin-top: 24px;
        font-size: 16px;
    }
}

/* 움직임 줄이기 설정 */
@media (prefers-reduced-motion: reduce) {
    #content_mem .bf-ticker-track,
    #content_mem #bfDailyCoupon .bf-coupon-ticket {
        animation: none;
    }
}

#content_mem .bf-sale-banner {
    position: relative;
    overflow: hidden;

    /* 여기 숫자만 수정 */
    --media-x: 0px;       /* 오른쪽 + / 왼쪽 - */
    --media-y: -10px;     /* 아래 + / 위 - */
    --media-scale: 1.0;   /* 1 = 기본 / 1.1 = 10% 확대 */
}

#content_mem .bf-sale-banner > img,
#content_mem .bf-sale-banner > video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transform:
        translate(var(--media-x), var(--media-y))
        scale(var(--media-scale));
    transform-origin: center;
}

/* 영상 없이 상품 목록만 중앙 배치 */
#content_mem .bf-sale-layout {
    display: block;
    width: 100%;
}

#content_mem .bf-sale-banner {
    display: none;
}

/* PC: 4개씩 2줄 */
#content_mem #bfSaleProducts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 44px 24px;
    width: 100%;
    max-width: 1100px;
    min-width: 0;
    margin: 0 auto;
    padding: 0;
}

#content_mem #bfSaleProducts .bf-product-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    color: #fff;
    text-align: center;
    text-decoration: none;
}

/* 직접 등록한 상품 이미지 */
#content_mem #bfSaleProducts .bf-product-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
}

#content_mem #bfSaleProducts .bf-product-image {
    position: static;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    object-fit: contain;
    transform: none;
}

#content_mem #bfSaleProducts .bf-product-placeholder {
    padding: 16px;
    color: #777;
    font-size: 12px;
    line-height: 1.5;
}

/* 작은 브랜드명 */
#content_mem #bfSaleProducts .bf-product-brand {
    margin: 16px 0 0;
    color: #aaa;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.5px;
    text-align: center;
}

#content_mem #bfSaleProducts .bf-product-brand[hidden] {
    display: none;
}

/* 상품 타이틀 */
#content_mem #bfSaleProducts .bf-product-name,
#content_mem #bfSaleProducts .bf-product-brand:not([hidden])
    + .bf-product-name {
    margin: 6px 0 0;
    padding: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -0.6px;
    white-space: pre-line;
    word-break: keep-all;
    overflow-wrap: anywhere;
    text-align: center;
}

/* 혜택가 */
#content_mem #bfSaleProducts .bf-product-sale {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 7px;

    padding: 0;
    line-height: 1.4;
}

#content_mem #bfSaleProducts .bf-product-benefit-label {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.4px;
}

#content_mem #bfSaleProducts .bf-product-sale strong {
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.8px;
}

/* 혜택가 아래 할인율 */
#content_mem #bfSaleProducts .bf-product-discount {
    margin-top: 5px;
    color: #8aa9ff;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
}

#content_mem #bfSaleProducts .bf-product-status {
    margin: 10px 0 0;
    color: #aaa;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

/* 모바일: 2개씩 */
@media (max-width: 767px) {
    #content_mem #bfSaleProducts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 14px;
    }

    #content_mem #bfSaleProducts .bf-product-brand {
        margin-top: 13px;
        font-size: 11px;
    }

    #content_mem #bfSaleProducts .bf-product-name,
    #content_mem #bfSaleProducts .bf-product-brand:not([hidden])
        + .bf-product-name {
        margin-top: 5px;
        font-size: 17px;
    }

    #content_mem #bfSaleProducts .bf-product-sale {
        gap: 5px;
        margin-top: 8px;
    }

    #content_mem #bfSaleProducts .bf-product-benefit-label {
        font-size: 12px;
    }

    #content_mem #bfSaleProducts .bf-product-sale strong {
        font-size: 22px;
    }

    #content_mem #bfSaleProducts .bf-product-discount {
        font-size: 17px;
    }
}

/* 할인율 배지의 기준 */
#content_mem #bfSaleProducts .bf-product-card {
    position: relative;
}

/* 썸네일 왼쪽 위 할인율 */
#content_mem #bfSaleProducts .bf-product-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    min-height: 38px;
    margin: 0;
    padding: 8px 12px;

    border-radius: 4px;
    background: #1648ff;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

@media (max-width: 767px) {
    #content_mem #bfSaleProducts .bf-product-discount {
        top: 7px;
        left: 7px;
        min-width: 62px;
        min-height: 32px;
        padding: 6px 9px;
        font-size: 17px;
    }
}
/* 상품 카드 */
#content_mem #bfSaleProducts .bf-product-card {
    position: relative;
    isolation: isolate;
    transition: transform 0.3s ease;
}

/* 카드 뒤 은은한 블루빛 */
#content_mem #bfSaleProducts .bf-product-card::before {
    content: "";
    position: absolute;
    inset: -10px;
    z-index: -1;
    border-radius: 14px;
    background: radial-gradient(
        ellipse at 50% 25%,
        rgba(55, 105, 255, 0.2),
        transparent 72%
    );
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* 썸네일 */
#content_mem #bfSaleProducts .bf-product-photo {
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

#content_mem #bfSaleProducts .bf-product-image {
    transition: transform 0.45s ease;
}

/* 썸네일을 가로지르는 빛 */
#content_mem #bfSaleProducts .bf-product-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        transparent 30%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 70%
    );
    transform: translateX(-150%);
    pointer-events: none;
}

/* 할인율 배지 */
#content_mem #bfSaleProducts .bf-product-discount {
    transform-origin: center;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

@media (hover: hover) {
    /* 카드가 살짝 떠오름 */
    #content_mem #bfSaleProducts .bf-product-card:hover {
        transform: translateY(-6px);
    }

    #content_mem #bfSaleProducts .bf-product-card:hover::before {
        opacity: 1;
    }

    /* 썸네일 확대 */
    #content_mem #bfSaleProducts .bf-product-card:hover
        .bf-product-image {
        transform: scale(1.045);
    }

    #content_mem #bfSaleProducts .bf-product-card:hover
        .bf-product-photo {
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    }

    /* 빛이 한 번 지나감 */
    #content_mem #bfSaleProducts .bf-product-card:hover
        .bf-product-photo::after {
        animation: bfProductShine 0.7s ease forwards;
    }

    /* 배지도 함께 반응 */
    #content_mem #bfSaleProducts .bf-product-card:hover
        .bf-product-discount {
        transform: rotate(-4deg) scale(1.06);
        box-shadow: 0 5px 16px rgba(22, 72, 255, 0.35);
    }
}

@keyframes bfProductShine {
    from {
        transform: translateX(-150%);
    }
    to {
        transform: translateX(150%);
    }
}

/* 움직임 줄이기 설정 */
@media (prefers-reduced-motion: reduce) {
    #content_mem #bfSaleProducts .bf-product-card,
    #content_mem #bfSaleProducts .bf-product-image,
    #content_mem #bfSaleProducts .bf-product-discount {
        transform: none !important;
        transition: none;
    }

    #content_mem #bfSaleProducts .bf-product-photo,
    #content_mem #bfSaleProducts .bf-product-card::before {
        transition: none;
    }

    #content_mem #bfSaleProducts .bf-product-photo::after {
        display: none;
    }
}
#content_mem #bfSaleProducts .bf-product-benefit-label {
    color: #9db6ff;
}

#content_mem #bfSaleProducts .bf-product-sale strong {
    color: #69b4ff;
}
/* BASIC css end */

