/* index.css - NexuPay 힙한 감성 프리미엄 스마트 메뉴판 디자인 */

body {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    /* 트렌디한 폰트 우선순위 적용 */
    background-color: #f9fafb;
    /* 기존 회색보다 훨씬 밝고 깨끗한 오프화이트 */
    margin: 0;
    padding: 0;
    padding-bottom: 100px;
    /* 플로팅 바를 위한 하단 여백 확보 */
    color: #111;
}

/* 💡 1. 글래스모피즘(반투명 블러) 상단바 */
.sticky-top {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header {
    background-color: transparent;
    color: #111;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    text-align: left;
}

#order-mode {
    display: inline-block;
    font-size: 11px;
    background: #ffebee;
    color: #ff5722;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 800;
    margin-bottom: 6px;
}

h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.btn-my-order {
    background: #111;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
    display: none;
}

.btn-my-order:active {
    transform: scale(0.95);
    background: #333;
}

/* 💡 2. 카테고리 탭 (블랙 & 화이트 대비) */
.category-bar {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 12px 20px;
    gap: 8px;
}

.category-bar::-webkit-scrollbar {
    display: none;
}

.cat-btn {
    padding: 8px 20px;
    border-radius: 25px;
    border: 1px solid #e5e7eb;
    background: white;
    font-size: 14px;
    font-weight: 700;
    color: #6b7280;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.cat-btn.active {
    background: #111;
    color: white;
    border-color: #111;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 💡 3. 부드럽고 둥근 메뉴 카드 */
.menu-container {
    padding: 15px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.menu-item {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.menu-item:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.menu-item.sold-out {
    opacity: 0.4;
    pointer-events: none;
    background-color: #f9fafb;
    filter: grayscale(100%);
}

.menu-item.sold-out .menu-price::after {
    content: ' (품절)';
    color: #ef4444;
    font-weight: 800;
}

.menu-info h3 {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.5px;
}

.menu-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.menu-price {
    font-weight: 800;
    color: #111;
    font-size: 17px;
}

/* 💡 4. 공중에 띄운 알약 모양 플로팅 결제 바! (앱 감성) */
.cart-bar {
    position: fixed;
    bottom: 20px;
    left: 5%;
    right: 5%;
    max-width: 560px;
    margin: 0 auto;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 200;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.total-price {
    font-size: 16px;
    font-weight: 800;
    padding-left: 10px;
}

.order-btn {
    background-color: #ff5722;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
}

.order-btn:disabled {
    background-color: #555;
    color: #999;
}

.order-btn:active {
    transform: scale(0.95);
}

/* 모달창 스타일 고도화 (둥근 모서리) */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 300;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 24px;
    width: 85%;
    max-width: 400px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.opt-section {
    margin-bottom: 25px;
    text-align: left;
}

.opt-section h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 800;
    color: #111;
}

.opt-section small {
    color: #ff5722;
    font-size: 12px;
    font-weight: bold;
}

.flex-btn-group {
    display: flex;
    gap: 10px;
}

.opt-btn {
    flex: 1;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    color: #6b7280;
    transition: 0.2s;
}

.opt-btn.active-hot {
    border-color: #ef4444;
    background: #fef2f2;
    color: #ef4444;
}

.opt-btn.active-ice {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #3b82f6;
}

.opt-btn.active-whip {
    border-color: #10b981;
    background: #ecfdf5;
    color: #10b981;
}

.opt-btn.active-type {
    border-color: #111;
    background: #111;
    color: white;
}

.counter-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    font-weight: 700;
    color: #333;
    background: #fff;
    transition: 0.2s;
}

.counter-box.active {
    border-color: #111;
    background: #f9fafb;
}

.plus-price {
    color: #ff5722;
    font-size: 13px;
    margin-top: 5px;
    font-weight: bold;
}

.cnt-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #fff;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: #374151;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    transition: 0.1s;
}

.cnt-btn:active {
    background: #e5e7eb;
    transform: scale(0.9);
}

.cnt-val {
    display: inline-block;
    width: 30px;
    text-align: center;
    font-size: 18px;
    color: #111;
    font-weight: 800;
}

.cart-list {
    margin-bottom: 20px;
    border-top: 1px solid #f3f4f6;
}

.cart-opt {
    display: block;
    color: #6b7280;
    font-size: 13px;
    margin-top: 5px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 800;
    color: #111;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-sizing: border-box;
    font-size: 15px;
    font-weight: bold;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #111;
}

.modal-btns {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.modal-btns button {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 800;
    font-size: 16px;
    transition: 0.2s;
}

.btn-cancel {
    background: #f3f4f6;
    color: #4b5563;
}

.btn-cancel:active {
    background: #e5e7eb;
}

.btn-confirm {
    background: #ff5722;
    color: white;
    box-shadow: 0 4px 10px rgba(255, 87, 34, 0.3);
}

.btn-confirm:active {
    transform: scale(0.97);
}

/* --- 영수증 스타일 고도화 --- */
.receipt-paper {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.receipt-dashed {
    border-top: 2px dashed #e5e7eb;
    margin: 20px 0;
}

.receipt-item {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 5px;
    font-weight: 500;
}

/* --- 기존 랜딩 페이지용 스타일 그대로 유지 --- */
.lp-hero {
    background: linear-gradient(135deg, #ff5722 0%, #ff9800 100%);
    color: white;
    padding: 70px 20px;
    text-align: center;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    box-shadow: 0 10px 20px rgba(255, 87, 34, 0.2);
}

.lp-hero h1 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 15px 0;
    line-height: 1.3;
    color: white;
}

.lp-hero p {
    font-size: 16px;
    opacity: 0.9;
    margin: 0 0 30px 0;
    line-height: 1.5;
}

.lp-btn {
    background: white;
    color: #ff5722;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.lp-btn:active {
    transform: scale(0.95);
}

.lp-section {
    padding: 50px 20px;
    text-align: center;
}

.lp-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
}

.lp-card {
    background: white;
    border-radius: 16px;
    padding: 25px 20px;
    margin-bottom: 15px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #ff5722;
}

.lp-card h3 {
    font-size: 18px;
    color: #333;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lp-card p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.lp-step-box {
    display: flex;
    align-items: center;
    background: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    text-align: left;
}

.lp-step-num {
    background: #ffebee;
    color: #ff5722;
    width: 30px;
    height: 30px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.lp-contact {
    background: #333;
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

.lp-contact-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    text-align: left;
}
/* 💡 5. 토스트 팝업 (앱 감성 애니메이션 알림) */
.toast-popup {
    position: fixed;
    bottom: -50px;
    /* 초기에는 화면 아래에 숨김 */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 30, 30, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    /* 통통 튀는 애니메이션 (텐션감 극대화) */
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
    /* 떠있을 때 터치 방해 안 함 */
    white-space: nowrap;
}

.toast-popup.show {
    bottom: 100px;
    /* 플로팅 장바구니 바로 위로 쏙! 올라옴 */
    opacity: 1;
}