.booster-trigger-container {
    text-align: center;
    margin: 100px 0;
}
/*
.booster-trigger-button {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #0177fb 0%, #0177fb 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgb(85 141 217 / 30%);
    transition: all 0.3s ease;
}

.booster-trigger-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(90, 127, 228, 0.4);
}
*/
.booster-trigger-button {
    background: none;
    color: #171819;
    font-size: 15px;
    letter-spacing: 0px;
    padding: 0;
    font-weight: inherit;
    font-style: normal;
    display: table-cell;
}
/* ============================================
   모달 오버레이
   ============================================ */
.booster-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.booster-modal-overlay.booster-active {
    display: block;
    opacity: 1;
}

/* ============================================
   모달 컨테이너
   ============================================ */
.booster-modal-container {
    display: none;
    position: fixed;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 72%;
    height:86vh;
    max-height: 90vh;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.booster-modal-container.booster-active {
    display: flex;
  flex-direction: column;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ============================================
   모달 헤더 (고정)
   ============================================ */
.booster-modal-header {
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
  border-bottom: 1px solid #eaeaea;
}

.booster-modal-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.booster-modal-header h2{
  font-size: 24px;
  margin: 0;
  font-weight: 600;
  color: #171819;
}

.booster-modal-subtitle {
    font-size: 14px;
    color: #999;
    font-weight: 400;
}


.booster-close-button {
    width: 36px;
    height: 36px;
    border: none;
    background: #fff;
    border-radius: 50%;
    font-size: 34px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.booster-close-button:hover {
    background: #e5e5e5;
    color: #333;
}

/* ============================================
   모달 바디
   ============================================ */
.booster-modal-body {
    padding: 20px 40px;
    max-height: 90vh;
    overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ============================================
   STEP 컨테이너
   ============================================ */
.booster-step-container {
    display: none;
}

.booster-step-container.booster-active {
    display: flex;
  flex-direction: column;
    animation: booster-fadeInUp 0.4s ease;
  flex: 1 0 auto;
}

@keyframes booster-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   STEP 헤더
   ============================================ */
.booster-step-header {
    /*margin-bottom: 30px;*/
}

.booster-step-label {
    display: inline-block;
    padding: 6px 16px;
    background: #0177fb;
    color: white;
    font-size: 14px;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 16px;
}

.booster-step-header h3{
  font-size: 30px;
  font-weight: 700;
  color: #171819;
  margin: 10px 0;
}

/* ============================================
   카테고리 그리드
   ============================================ */
.booster-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin: 40px 0;
}

.booster-category-item {
    padding: 24px 20px;
    text-align: center;
    border: 2px solid #E9EDF5;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    font-size: 16px;
    font-weight: 600;
    color: #666;
}

.booster-category-item:hover {
    border-color: #0177fb;
    background: #0177fb12;
    transform: translateY(-2px);
}

.booster-category-item.booster-selected {
    border-color: #0177fb;
    background: #0177fb;
    color: white;
}

/* ============================================
   상품 리스트
   ============================================ */
.booster-product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
    gap: 12px;
    margin: 40px 0;
}
  
.booster-product-list:has(.booster-product-item:only-child){
  grid-template-columns: minmax(176px, 360px); 
  justify-content: start;
}  

.booster-product-item {
    padding: 20px;
    border: 2px solid #E9EDF5;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.booster-product-item:hover {
    border-color: #0177fb;
    background: #0177fb12;
}

.booster-product-item.booster-selected {
    border-color: #0177fb;
    background: linear-gradient(135deg, #0177fb12 0%, #0177fb12 100%);
}

.booster-product-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.booster-product-category {
    font-size: 14px;
    color: #868E96;
}

.booster-product-name {
    font-size: 18px;
    font-weight: 600;
    color: #171819;
}

/* ============================================
   차트 영역
   ============================================ */
.booster-chart-info {
    background: #fff;
    padding: 24px 0;
    border-radius: 12px;
  display: flex;
  gap: 20px;
  align-items: center;
}
  
.booster-chart-product-box{
  width: fit-content;
  padding: 20px 16px;
}
  

.booster-chart-category {
    font-size: 16px;
    color: #0177fb;
    margin-bottom: 4px;
  font-weight: 500;
  white-space: nowrap;
}

.booster-chart-product-name {
    font-size: 24px;
    font-weight: 700;
    color: #171819;
  white-space: nowrap;
  
}

.booster-chart-container {
    background: white;
    padding: 32px;
    border-radius: 16px;
    border: 2px solid #E9EDF5;
    margin-bottom: 60px;
}

.booster-chart-title {
    font-size: 18px;
    font-weight: 600;
    color: #454F5D;
    margin-bottom: 24px;
    text-align: center;
}

/* ⭐ 차트 스크롤 영역 - PC/모바일 모두 작동 */
.booster-chart-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 20px;
    position: relative;
}

/* 스크롤바 스타일 (웹킷 브라우저 - Chrome, Safari, Edge) */
.booster-chart-wrapper::-webkit-scrollbar {
    height: 8px;
}

.booster-chart-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.booster-chart-wrapper::-webkit-scrollbar-thumb {
    background: #0177fb;
    border-radius: 4px;
}

.booster-chart-wrapper::-webkit-scrollbar-thumb:hover {
    background: #0056cc;
}

/* 파이어폭스 스크롤바 스타일 */
.booster-chart-wrapper {
    scrollbar-width: thin;
    scrollbar-color: #0177fb #f1f1f1;
}

/* 차트 캔버스 컨테이너 - JS에서 동적으로 너비 설정 */
.booster-chart-canvas-container {
    height: 300px;
    min-width: 100%;
    position: relative;
}

/* 스크롤 안내 텍스트 */
.booster-chart-hint {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin-top: 8px;
}

/* 차트 캔버스 - 컨테이너 크기에 맞춤 */
#booster-priceChart {
    width: 100% !important;
    height: 100% !important;
}

.booster-price-summary {
    display: flex;
    gap: 16px;
  width: -webkit-fill-available;
}

.booster-price-box {
    flex: 1;
    padding: 20px;
    background: #f7f8f9;
    border-radius: 12px;
    text-align: center;
}

.booster-price-label {
    font-size: 14px;
    color: #868E96;
    margin-bottom: 4px;
}

.booster-price-value {
    font-size: 28px;
    font-weight: 700;
  white-space: nowrap;
}

.booster-price-value.booster-min {
    color: #0177fb;
}

.booster-price-value.booster-max {
    color: #ff6b6b;
}

/* ============================================
   네비게이션 버튼
   ============================================ */
.booster-nav-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
  position: sticky;
  bottom: 30px;
  margin-top: auto;
  z-index: 10;
}
  
.booster-nav-buttons::before{
  content: "";
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.60) 55%, rgba(255, 255, 255, 1) 100%);
  position: absolute;
  left: -40px;
  right: -40px;
  bottom: -50px;
  height: 190px;
  z-index: -1;
}
  
.booster-nav-buttons::after{
  content: "";
  bottom: -20px;
  position: absolute;
  left: -40px;
  right: -40px;
  background: #ffffff80;
  z-index: -2;
  height: 90px;
  pointer-events: none;
}
  

.booster-nav-button {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.booster-nav-button.booster-prev {
    background: white;
    color: #999;
    border: 2px solid #e5e5e5;
}

.booster-nav-button.booster-prev:hover {
    border-color: #999;
    color: #666;
}

.booster-nav-button.booster-next {
    background: #171819;
    color: white;
  border: 1px solid #171819;
}

.booster-nav-button.booster-next:hover {
    background: #282828;
}

.booster-nav-button.booster-next:disabled {
    background: #e5e5e5;
    color: #999;
    cursor: not-allowed;
  border: 1px solid #e5e5e5;
}

/* ============================================
   로딩 상태
   ============================================ */
.booster-loading {
    text-align: center;
    padding: 60px;
    color: #999;
}

.booster-loading::after {
    content: '...';
    animation: booster-dots 1.5s steps(4, end) infinite;
}

@keyframes booster-dots {

    0%,
    20% {
        content: '.';
    }

    40% {
        content: '..';
    }

    60%,
    100% {
        content: '...';
    }
}

/* ============================================
   반응형
   ============================================ */
@media (max-width: 768px) {
    .booster-modal-container {
        width: 95%;
        max-height: 92vh;
	  top: 52%;
		border-radius: 12px;
    }

    .booster-modal-header {
        padding: 16px 20px;
    }

    .booster-modal-header h2 {
        font-size: 20px;
    }

    .booster-modal-body {
        padding: 20px;
    }

    .booster-step-header h3 {
        font-size: 22px;
    }

    .booster-category-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
	  margin: 20px 0;
    }

    .booster-category-item {
        padding: 20px 16px;
        font-size: 14px;
    }
    .booster-product-list{
	  grid-template-columns: repeat(2, 1fr);
	  margin: 20px 0;
	}
  
	.booster-chart-product-box{
	  padding: 0;
	}
  
  	.booster-product-item{
	  padding: 16px;
	}
  
    .booster-product-name{
	  line-height: 1.3;
	  font-size: 17px;
	}
  
	.booster-chart-info{
	  flex-flow: wrap;
	}
  .booster-chart-container{
	padding: 28px 18px;
  }
  
  .booster-chart-category{
	color: #868E96;
  }
  
  .booster-chart-product-name{
	font-size: 18px;
	font-weight: 600;
  }

	.booster-price-summary{
	  gap: 8px;
	}
  
  .booster-price-value{
	font-size: 22px;
  }

    /* ⭐ 모바일 차트 스크롤 설정 */
    .booster-chart-canvas-container {
        height: 250px;
        min-width: 500px;
    }

    .booster-nav-buttons {
        width: 100%;
	  gap: 8px;
	  bottom: 10px;
    }
  
  .booster-nav-buttons::before{
    content: "";
    position: absolute;
    left: -20px;        
    right: -20px;
    bottom: -30Px;
    height: 110px;         
    pointer-events: none;  
    z-index: -1;

    /* 위는 투명, 아래는 흰색으로 덮어서 "페이드" */
    background: linear-gradient(
      to bottom,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,0.85) 45%,
      rgba(255,255,255,1) 100%
    );
  }

    .booster-nav-button {
        width: 100%;
        justify-content: center;
    }
  
  
  
	#booster-step3 .booster-step-header{
	  padding-bottom: 20px;
	  border-bottom: 1px solid #eaeaea;
	}
}
