@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

/* ============================================================
   기본 스타일
   ============================================================ */
body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #F8F9FA;
    color: #111;
}

/* ============================================================
   커스텀 색상 유틸리티
   ============================================================ */
.text-mint {
    color: #2CBBB6;
}

.bg-mint {
    background-color: #2CBBB6;
}

.border-mint {
    border-color: #2CBBB6;
}

.hover-bg-mint:hover {
    background-color: #25a09c;
}

.hover-text-mint:hover {
    color: #2CBBB6;
}

.ring-mint:focus {
    --tw-ring-color: #2CBBB6;
}

.bg-mint-light {
    background-color: #E0F7F6;
}

/* ============================================================
   애니메이션 및 효과
   ============================================================ */
.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.hover-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.carousel-track {
    transition: transform 0.5s ease-in-out;
}

/* ============================================================
   버튼 활성화 스타일
   ============================================================ */
.btn-select.active,
.filter-btn.active {
    background-color: #2CBBB6;
    color: white;
    border-color: #2CBBB6;
}

.sort-btn.active {
    color: #2CBBB6;
    font-weight: 800;
}

.btn-extra.btn-select-variant.active {
    background-color: #2CBBB6 !important;
    border-color: #2CBBB6 !important;
    color: white !important;
    font-weight: bold;
}

.btn-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ============================================================
   폼 요소 스타일
   ============================================================ */
.color-radio:checked+label {
    ring-width: 2px;
    --tw-ring-color: #2CBBB6;
    --tw-ring-offset-width: 2px;
}

.capacity-radio:checked+label {
    background-color: #2CBBB6;
    color: white;
    border-color: #2CBBB6;
}

/* ============================================================
   모달 스타일
   ============================================================ */
.modal-overlay {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

/* ============================================================
   스크롤바 스타일
   ============================================================ */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 4px;
}

/* ============================================================
   배너 인디케이터
   ============================================================ */
.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.indicator-dot.active {
    background-color: #2CBBB6;
    width: 32px;
}

/* ============================================================
   이미지 플레이스홀더
   ============================================================ */
.img-placeholder {
    background-color: #f3f4f6;
}

/* ============================================================
   미니 팝업 스타일
   ============================================================ */
.mini-popup {
    position: absolute;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 50;
    width: 280px;
    text-align: left;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    display: none;
}

.mini-popup.show {
    display: block;
}

.mini-popup::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: white;
    border-left: 1px solid #e5e7eb;
    border-top: 1px solid #e5e7eb;
    rotate: 45deg;
}

/* ============================================================
   매장 아이템 하이라이트
   ============================================================ */
.store-item {
    transition: all 0.3s ease;
}

.store-item.border-mint {
    border-color: #2CBBB6 !important;
}

.store-item.bg-mint\/5 {
    background-color: rgba(44, 187, 182, 0.05);
}

/* ============================================================
   온라인 신청서 버튼 스타일
   ============================================================ */
.btn-consult {
    background: linear-gradient(to right, #2CBBB6, rgba(44, 187, 182, 0.9));
    color: white;
    font-weight: bold;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-consult:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

/* ============================================================
   버튼 Variant 스타일 (할부 개월 스타일 기반)
   ============================================================ */
.btn-select-variant {
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.btn-select-variant:hover {
    border-color: #2CBBB6;
    background-color: rgba(44, 187, 182, 0.05);
}

.btn-select-variant.active {
    border-color: #2CBBB6;
    background-color: #2CBBB6;
    color: white;
    font-weight: 500;
}

/* ============================================================
   추가 할인 팝업 모달
   ============================================================ */
.discount-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.discount-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.discount-modal-content {
    background: white;
    border-radius: 1rem;
    max-width: 1300px;
    width: 90%;
    max-height: 1000px;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.discount-modal-overlay.show .discount-modal-content {
    transform: scale(1);
}

.discount-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.discount-modal-header h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #111;
}

.discount-modal-close {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s ease;
}

.discount-modal-close:hover {
    background-color: #f3f4f6;
    color: #111;
}

.discount-modal-body {
    padding: 1.5rem;
}

.discount-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}