/* =========================================================
 * bundle-card.css — PC 예약 페이지 세트 상품 카드
 * ========================================================= */

.bundle-section {
    margin-top: 20px;
}

.bundle-section.is-hidden {
    display: none;
}

/* 세트 섹션 제목 — 시설 탭의 .lp-title 과 시각적으로 동일 규격 유지 */
.bundle-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #262626;
    margin: 0 0 30px 0;
    line-height: 1.3;
}

.bundle-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.bundle-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    background: #fff;
    border: 1.5px solid #E0E6EE;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
    font-family: inherit;
}

.bundle-card:hover {
    border-color: #4aa4b8;
    box-shadow: 0 4px 12px rgba(74, 164, 184, 0.15);
    transform: translateY(-1px);
}

.bundle-card:active {
    transform: translateY(0);
}

.bundle-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bundle-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.bundle-type-badge.type-COMBO { background: #4aa4b8; }
.bundle-type-badge.type-BOGO  { background: #e68a3e; }

.bundle-card-name {
    font-size: 19px;
    font-weight: 600;
    color: #262626;
    line-height: 1.3;
}

.bundle-card-composition {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.bundle-comp-line {
    display: inline-block;
    padding: 4px 12px;
    background: #F1F5F9;
    color: #4A5568;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.bundle-card-desc {
    font-size: 15px;
    color: #718096;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bundle-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px dashed #E0E6EE;
}

.bundle-card-price {
    font-size: 24px;
    font-weight: 700;
    color: #4aa4b8;
}

.bundle-card-price em {
    font-size: 15px;
    font-weight: 500;
    font-style: normal;
    color: #4A5568;
    margin-left: 3px;
}

.bundle-card-cta {
    font-size: 16px;
    color: #4aa4b8;
    font-weight: 600;
}

/* ── 카트에 담긴 세트 그룹 시각 구분 ─────────── */
/* 헤더 (제목 + 총가) 는 뚜렷한 피치 스트립으로, 아이템 영역은 흰 배경으로
   분리한다. 이전 gradient 전체 배경은 헤더 텍스트가 배경 상단에 flush
   붙어 보이는 시각적 문제가 있어 제거. */
.cart-group.cart-group-bundle {
    background: #fff;
    border: 1px solid #F3D9BE;
    border-left: 3px solid #e68a3e;
    border-radius: 8px;
    margin: 6px 0;
    padding: 0;
    overflow: hidden;
}
.cart-group.cart-group-bundle .cart-group-title {
    color: #b06e2b;
    font-weight: 700;
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #FFF5EC;
    padding: 12px 14px;
    margin: 0;
    min-height: 44px;
    line-height: 1.35;
    box-sizing: border-box;
}
/* 헤더 스트립 안의 두 span (제목, 총가) 모두 flex 로 세로 중앙 강제.
   폰트 크기가 다른(16 / 15) 두 요소가 baseline 정렬로 위쪽에 쏠려 보이던
   현상을 원천 차단. */
.cart-group.cart-group-bundle .cart-group-title > span {
    display: inline-flex;
    align-items: center;
    line-height: 1.35;
}
/* 헤더 스트립 아래 아이템 영역은 좌측 오렌지 보더에 붙지 않도록 padding-left */
.cart-group.cart-group-bundle .cart-divider,
.cart-group.cart-group-bundle .cart-item,
.cart-group.cart-group-bundle .m-item {
    margin-left: 10px;
    margin-right: 10px;
}

/* 세트 그룹 총가 배지 (개별 라인 가격 은닉 정책이라 총가는 그룹 헤더에만 표시) */
.cart-group-total {
    font-size: 15px;
    font-weight: 700;
    color: #e68a3e;
    letter-spacing: 0;
}

/* 모바일 /cart 페이지: 세트 그룹 badge (기존 .m-badge 확장) */
/* NOTE: base .m-badge 가 padding:5px 12px + inline-block 이라 텍스트가 상단에 쏠려 보이는
   케이스를 방지. flex+세로 대칭 padding 으로 배경 정중앙에 텍스트가 놓이도록 강제. */
.m-badge.m-badge-bundle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #FFF5EC;
    color: #b06e2b;
    min-height: 30px;
    line-height: 1.4;
    padding: 8px 12px;
    box-sizing: border-box;
}
/* 두 span 모두 flex 자체에서 세로 중앙 정렬 강제 (12px/14px 폰트 혼재 시 baseline drift 방지) */
.m-badge.m-badge-bundle > span {
    display: inline-flex;
    align-items: center;
    line-height: 1.4;
}
.m-badge.m-badge-bundle .m-badge-total {
    font-weight: 700;
    color: #e68a3e;
    font-size: 14px;
}

/* =========================================================
 * 모바일 (viewport ≤ 640px) — 세트 카드 원래 크기 복귀
 *   PC/POS/키오스크는 데스크톱 규격의 큰 텍스트를 쓰지만, 모바일은
 *   화면이 좁고 이전 UX 를 유지해야 하므로 이 media query 로 원래 값
 *   (bundle-card.css v1) 로 되돌린다.
 * ========================================================= */
@media (max-width: 640px) {
    .bundle-card {
        gap: 8px;
        padding: 16px;
    }
    .bundle-type-badge {
        padding: 3px 10px;
        font-size: 11px;
    }
    .bundle-card-name {
        font-size: 16px;
    }
    .bundle-comp-line {
        padding: 3px 10px;
        font-size: 12px;
    }
    .bundle-card-desc {
        font-size: 13px;
    }
    .bundle-card-price {
        font-size: 20px;
    }
    .bundle-card-price em {
        font-size: 13px;
        margin-left: 2px;
    }
    .bundle-card-cta {
        font-size: 13px;
    }
}
