/* BASIC css start */
/* ===== 블프 영역 : 배너 + 데일리 진열 + 위클리 카드 + 위클리 진열 (폭 1000px, 블랙 배경) ===== */
#productPlan .bf-zone { display: none; }
#productPlan .bf-zone.is-ready {
    display: block;
    max-width: 1000px;
    margin: 30px auto 40px;
    background: #000;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
}
#productPlan.plan-target .clst { display: none; }      /* 257에서는 분류 탭 숨김 (상품이 위 영역으로 옮겨짐) */

/* 상품 진열 3단 */
#productPlan .bf-grid { display: none; }
#productPlan .bf-grid.is-ready { display: block; padding: 56px 40px 60px; }
#productPlan .bf-grid--weekly.is-ready { border-top: 1px solid #222; }

/* 섹션 제목 : 작은 영문 라벨 + 큰 한글 제목 */
#productPlan .bf-grid__title {
    margin: 0 0 32px;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
    text-align: center;
    letter-spacing: -0.5px;
}
#productPlan .bf-grid__title em {
    display: block;
    margin-bottom: 8px;
    font-style: normal;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #1ef2ab;
}

/* 3단 (상품이 1~2개여도 가운데 정렬) */
#productPlan .bf-grid__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}
#productPlan .bf-grid__list .item-list {
    float: none !important;
    width: calc((100% - 48px) / 3) !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

/* 상품 타일 */
#productPlan .bf-grid .item-list {
    position: relative;
    background: #141414;
    border: 1px solid #262626;
    border-radius: 14px;
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease;
}
#productPlan .bf-grid .item-list:hover { transform: translateY(-4px); border-color: #1ef2ab; }
#productPlan .bf-grid .thumb { margin: 0; padding: 0; background: #fff; }
#productPlan .bf-grid .thumb a,
#productPlan .bf-grid .main_icons { display: block; position: relative; }
#productPlan .bf-grid .main_icons > img:first-child {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

/* 이미지 위 라벨 */
#productPlan .bf-grid .thumb::after {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1;
}
#productPlan .bf-grid .thumb { position: relative; }
#productPlan .bf-grid--daily .thumb::after  { content: 'TODAY ONLY'; background: #000; color: #1ef2ab; }
#productPlan .bf-grid--weekly .thumb::after { content: 'WEEKLY';     background: #1ef2ab; color: #000; }

/* 상품 정보 */
#productPlan .bf-grid .prd-info { margin: 0; padding: 16px 18px 20px; text-align: left; }
#productPlan .bf-grid .prd-info ul { list-style: none; margin: 0; padding: 0; }
#productPlan .bf-grid .prd-info li { margin: 0; padding: 0; }
#productPlan .bf-grid .prd-ico:empty,
#productPlan .bf-grid .prd-preview,
#productPlan .bf-grid .prd-color { display: none !important; }
#productPlan .bf-grid .prd-name,
#productPlan .bf-grid .prd-name a {
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    text-decoration: none;
    word-break: keep-all;
}
#productPlan .bf-grid .prd-name a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.9em;              /* 두 줄 높이로 맞춰 가격 줄이 나란히 */
}

/* 가격 : 할인율 · 판매가 · 정가 순 */
#productPlan .bf-grid .prd-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    margin-top: 12px;
    color: #fff !important;
}
#productPlan .bf-grid .prd-price .bf-pct { order: 0; font-size: 20px; font-weight: 800; color: #1ef2ab; }
#productPlan .bf-grid .prd-price .price  { order: 1; font-size: 20px; font-weight: 800; color: #fff !important; }
#productPlan .bf-grid .prd-price strike  { order: 2; font-size: 13px; color: #6f6f6f !important; }

@media (max-width: 600px) {
    #productPlan .bf-grid.is-ready { padding: 40px 14px 44px; }
    #productPlan .bf-grid__title { font-size: 20px; margin-bottom: 22px; }
    #productPlan .bf-grid__list { gap: 12px; }
    #productPlan .bf-grid__list .item-list { width: calc((100% - 12px) / 2) !important; }
    #productPlan .bf-grid .prd-info { padding: 12px 12px 16px; }
    #productPlan .bf-grid .prd-name, #productPlan .bf-grid .prd-name a { font-size: 13px; }
    #productPlan .bf-grid .prd-price .bf-pct,
    #productPlan .bf-grid .prd-price .price { font-size: 16px; }
}

/* ===== 위클리 카드 섹션 ===== */
#productPlan .relay { display: none; }              /* 상품이 있을 때만 JS가 보여줌 */
#productPlan .relay.is-ready {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin: 0;
    padding: 50px 50px;
    background: #000;                 /* 원데이 세일 배너 톤 : 블랙 + 민트 */
}
#productPlan .relay, #productPlan .relay * { box-sizing: border-box; }

/* 상단 가로 배너 */
#productPlan .daily-banner { display: none; margin: 0; text-align: center; font-size: 0; line-height: 0; }
#productPlan .daily-banner.is-ready { display: block; }
#productPlan .daily-banner a { display: inline-block; max-width: 100%; vertical-align: top; }
#productPlan .daily-banner img { display: block; width: auto; max-width: 100%; height: auto; border: 0; } /* 원본 크기, 넘칠 때만 줄어듦 */



/* 왼쪽 정보 */
#productPlan .relay__info { flex: 0 0 360px; max-width: 360px; }
#productPlan .relay__date {
    display: inline-block;
    padding: 6px 14px;
    background: #1ef2ab;
    color: #000;
    font-size: 15px;
    font-weight: 700;
    border-radius: 4px;
}
#productPlan .relay__period { margin-left: 8px; font-size: 18px; font-weight: 700; color: #fff; vertical-align: middle; }
#productPlan .relay__period:empty { display: none; }
#productPlan .relay__title {
    margin: 14px 0 6px;
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
    line-height: 1.3;
}
#productPlan .relay__sub { margin: 0 0 18px; font-size: 14px; color: #1ef2ab; }
#productPlan .relay__box {
    padding: 22px;
    background: #161616;
    border: 1px solid #2c2c2c;
    border-radius: 14px;
}
#productPlan .relay__label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #1ef2ab;
}
#productPlan .relay__name {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    word-break: keep-all;
}
#productPlan .relay__price { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; }
#productPlan .relay__btn {
    display: block;
    height: 46px;
    line-height: 46px;
    background: #1ef2ab;
    color: #000;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
}
#productPlan .relay__hint { margin: 14px 0 0; font-size: 12px; color: #777; text-align: center; }

/* 가격 공통 */
#productPlan .r-pct {
    padding: 2px 6px;
    background: #1ef2ab;
    color: #000;
    font-size: 12px;
    font-weight: 700;
    border-radius: 3px;
}
#productPlan .r-pct:empty { display: none; }
#productPlan .r-now { font-size: 20px; font-weight: 800; color: #fff; }
#productPlan .r-old { font-size: 13px; color: #888; text-decoration: line-through; }
#productPlan .r-old:empty { display: none; }

/* 오른쪽 카드 */
#productPlan .relay__stage {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}
#productPlan .relay__cards { width: 280px; height: 410px; overflow: visible; }
#productPlan .relay__cards .swiper-slide {
    border-radius: 16px;
    overflow: hidden;
    background: #1ef2ab;
    box-shadow: 0 10px 24px rgba(0,0,0,.5);
}
#productPlan .prd-relay-date { display: none !important; }
#productPlan .rc-card { display: flex; flex-direction: column; height: 100%; color: #000; }
#productPlan .rc-card img { -webkit-user-drag: none; user-select: none; }
#productPlan .rc-thumb { flex: 1; margin: 12px 12px 0; overflow: hidden; border-radius: 10px; background: #fff; }
#productPlan .rc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
#productPlan .rc-body { padding: 14px 16px 16px; }
#productPlan .rc-name {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
#productPlan .rc-body .relay-price-row { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
#productPlan .rc-body .r-now { font-size: 17px; color: #000; }
#productPlan .rc-body .r-old { color: rgba(0,0,0,.55); }
#productPlan .rc-body .r-pct { background: #000; color: #1ef2ab; }
#productPlan .rc-btn {
    display: block;
    height: 36px;
    line-height: 36px;
    background: #000;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
}

/* 화살표 */
#productPlan .relay__nav {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #1ef2ab;
    box-shadow: 0 2px 8px rgba(0,0,0,.4);
    font-size: 22px;
    line-height: 40px;
    color: #000;
    cursor: pointer;
}
#productPlan .relay__nav--prev { left: 0; }
#productPlan .relay__nav--next { right: 0; }

/* 모바일 */
@media (max-width: 768px) {
    #productPlan .relay.is-ready { flex-direction: column-reverse; gap: 28px; padding: 30px 16px; }
    #productPlan .relay__info { flex: none; width: 100%; max-width: none; }
    #productPlan .relay__title { font-size: 24px; }
    #productPlan .relay__cards { width: 230px; height: 340px; }
}

/* 기간 미입력 상품 (준비용 표시) */
#productPlan .undated-wrap { clear: both; max-width: 1000px; margin: 50px auto 0; box-sizing: border-box; padding: 24px 20px; border: 2px dashed #e0393e; border-radius: 8px; background: #fff7f7; }
#productPlan .undated-title { margin: 0 0 6px; font-size: 18px; font-weight: 800; color: #e0393e; }
#productPlan .undated-desc { margin: 0 0 18px; font-size: 13px; color: #666; }
#productPlan .undated-tag { display: inline-block; margin: 0 0 6px; padding: 2px 8px; background: #e0393e; color: #fff; font-size: 12px; font-weight: 700; border-radius: 3px; }
#productPlan .bf-grid--daily.is-ready + .relay.is-ready { border-top: 1px solid #222; }
#productPlan .bf-grid__list .item-list ul { list-style: none; margin: 0; padding: 0; }

/* 진열 공통 : 스킨의 이미지 크기 설정을 덮어써서 칸 안에 맞춤 (확인 필요 상품 영역 포함) */
#productPlan .bf-grid__list .item-list .thumb,
#productPlan .bf-grid__list .item-list .thumb a,
#productPlan .bf-grid__list .item-list .main_icons {
    display: block;
    position: relative;
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    overflow: hidden;
}
#productPlan .bf-grid__list .item-list img { max-width: 100% !important; height: auto !important; }
#productPlan .bf-grid__list .item-list .main_icons > img:first-child {
    display: block;
    width: 100% !important;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}
#productPlan .undated-wrap .bf-grid__list .item-list { background: #fff; border-radius: 10px; overflow: hidden; }
#productPlan .undated-wrap .prd-info { margin: 0; padding: 12px 14px 16px; text-align: left; }
#productPlan .undated-wrap .prd-info ul { list-style: none; margin: 0; padding: 0; }
#productPlan .undated-wrap .prd-preview,
#productPlan .undated-wrap .prd-color { display: none !important; }
@media (max-width: 600px) {
    #productPlan .undated-wrap .bf-grid__list { gap: 12px; }
}

/* ===== 257 기획전 : 기획전 선택도 블랙 + 민트 톤 (모바일과 동일) ===== */
#productPlan.plan-target .pick {
    float: none;
    max-width: 1000px;
    margin: 30px auto 0;
    padding: 20px 40px;
    border: 0;
    background: #000;
    border-radius: 6px;                /* 블프 영역이 없을 때(이벤트 전·후)는 네 모서리 둥글게 */
    box-sizing: border-box;
    text-align: left;
}
#productPlan.plan-target .pick select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 48px 0 18px;
    border: 1px solid #1ef2ab;
    border-radius: 8px;
    background: #111 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231ef2ab' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 18px center;
    background-size: 13px auto;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 46px;
    cursor: pointer;
    outline: none;
}
#productPlan.plan-target .pick select:hover,
#productPlan.plan-target .pick select:focus { box-shadow: 0 0 0 3px rgba(30,242,171,.25); }
#productPlan.plan-target .pick select option { background: #fff; color: #000; }
/* 기획전 선택 바로 아래에 블프 영역을 붙임 */
#productPlan.plan-target .pick + .bf-zone.is-ready { margin-top: 0; border-top: 1px solid #222; }
#productPlan.plan-target .pick:has(+ .bf-zone.is-ready) { border-radius: 6px 6px 0 0; }
/* BASIC css end */

