/* ========================================
   ATOKETO 통합 스타일시트
   모든 스타일을 하나의 파일로 관리
   ======================================== */
/* 파일 목차
   0. 전역 기본 설정 및 변수 (사용처: 전체 페이지)
   1. 전역 컴포넌트/유틸리티 (버튼, 카드, 알림, 옵션 등) - 공통 사용
   2. 페이지별 스타일
      2-1. 갤러리 홈 (templates/gallery_home.html)
      2-2. 전역 토스트 (templates/layout.html)
      2-3. 장바구니 (templates/cart.html)
      2-4. 영수증 (templates/receipt.html)
      2-5. 메뉴 전체 (templates/menu_all.html)
      2-6. 기타(offline.html 등)
   3. Admin 스타일
      3-1. 기본 Admin 모던 스타일 (app/templates/admin/*)
      3-2. TOSS UI 기반 Admin 스타일 오버라이드
   4. 미사용/보류 코드 모음 (파일 최하단)
*/

/* ========================================
   0. 기본 설정 및 CSS 변수 (사용처: 전체 페이지)
   ======================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800&display=swap');

/* CSS 변수 정의 */
:root {
  --primary-bg: #f7f8fa;
  --accent-green: #a8e063;
  --primary-green: #53b674;
  --soft-shadow: 0 6px 32px 0 rgba(36, 49, 77, 0.08);
  --border-radius: 15px;
  --card-bg: #fff;
  --font-main: 'Montserrat', Arial, sans-serif;
  --font-light: 400;
  --font-bold: 800;
  --font-semi: 600;
  --admin-primary: #343a40;
  --admin-secondary: #007bff;
  --admin-success: #28a745;
  --admin-warning: #ffc107;
  --admin-danger: #dc3545;
}

/* 기본 스타일 리셋 */
body {
  background: var(--primary-bg);
  font-family: var(--font-main);
  margin: 0;
  padding: 0;
  color: #232323;
  min-height: 100vh;
}

/* 레이아웃 */
.main-wrapper {
  min-height: 100svh;
  background: var(--primary-bg);
  display: flex;
  flex-direction: column;
}

/* 네비게이션 */
.navbar {
  background: linear-gradient(135deg, var(--primary-green) 0%, #47a26b 100%);
  box-shadow: var(--soft-shadow);
  padding: 5px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  min-height: 50px;
}

.navbar-brand {
  font-size: 1.2rem;
  font-weight: var(--font-bold);
  color: white !important;
  text-decoration: none;
}

.navbar-brand:hover {
  color: white !important;
}

.btn-outline-light {
  border-color: white;
  color: white;
  font-size: 0.9rem;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: var(--font-semi);
}

.btn-outline-light:hover {
  background-color: white;
  color: var(--primary-green);
  border-color: white;
}

/* 네비게이션 */
.main-content {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 50px 0 0 0; /* 상단 고정 네비게이션 높이만큼 여백 */
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.container {
  max-width: 1200px;
  margin: 32px auto;
  padding: 40px 32px;
  background: var(--card-bg);
  border-radius: 30px;
  box-shadow: var(--soft-shadow);
  min-height: 700px;
  display: flex;
  gap: 32px;
  position: relative;
}

.card-container {
  padding: 40px;
  margin-bottom: 0px;
}

/* 버튼 기본 스타일 */
.btn {
  background: var(--primary-green);
  color: #fff;
  padding: clamp(10px, 2.5vw, 14px) clamp(20px, 5vw, 28px);
  border: none;
  border-radius: clamp(25px, 8vw, 50px);
  font-size: clamp(14px, 3vw, 16px);
  font-weight: var(--font-semi);
  box-shadow: 0 2px 8px 0 rgba(36, 49, 77, 0.08);
  margin-right: clamp(8px, 2vw, 12px);
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}


.btn:hover {
  background: #6ec993;
  text-decoration: none;
  color: #fff;
}

/* 타이틀 */
.salad-title-main {
  font-size: clamp(25px, 8vw, 50px);
  font-weight: var(--font-bold);
  color: #8a8a8a;
  letter-spacing: -1.5px;
  margin-bottom: 0;
  margin-top: 8px;
  line-height: 1;
}


.salad-desc {
  color: var(--primary-green);
  font-size: clamp(10px, 3vw, 20px);
  margin-bottom: 28px;
  margin-top: 10px;
}

/* 선택 카드 */
.select-card {
  background: var(--card-bg);
  border: 1px solid hsl(0, 0%, 30%);
  border-radius: 20px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.select-card:hover {
  border-color: var(--accent-green);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.select-card.active {
  border-color: var(--primary-green);
  background: rgba(168, 224, 99, 0.08);
}

.select-card i {
  font-size: 48px;
  color: var(--primary-green);
  margin-bottom: 16px;
}

.select-card h4 {
  font-size: 24px;
  font-weight: var(--font-bold);
  color: #333;
  margin-bottom: 8px;
}

.select-card p {
  color: #666;
  font-size: 14px;
  margin: 0;
}



/* 알림 메시지 - 사용처: 전역(레이아웃, 페이지 공통) */
.alert-custom {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: var(--soft-shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.alert-custom.alert-success {
  border-left: 4px solid var(--primary-green);
}

.alert-custom.alert-danger {
  border-left: 4px solid #e74c3c;
}

.alert-custom.alert-warning {
  border-left: 4px solid #f39c12;
}

.alert-custom i {
  font-size: 20px;
}

.alert-custom .close-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 16px;
  transition: color 0.2s;
}

.alert-custom .close-btn:hover {
  color: #333;
}

/* 장바구니 관련 - 사용처: templates/cart.html, menu_all.html 미니카트
   (이 블록은 실제 장바구니 페이지 섹션으로 이동되었습니다) */



/* 옵션 관련 - 사용처: templates/options.html, 메뉴/장바구니 일부 컴포넌트 */

.food-image { height: 300px; width: 100%; overflow: hidden; }
.food-image img { width: 100%; height: 100%; object-fit: cover; }

.option-group-card {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--soft-shadow);
  padding: 24px;
  margin-bottom: 20px;
}

.option-group-title {
  font-size: 18px;
  font-weight: var(--font-semi);
  color: #333;
  margin-bottom: 16px;
}

.option-item {
  background: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-item:hover {
  border-color: var(--accent-green);
}

.option-item input[type="radio"],
.option-item input[type="checkbox"] {
  margin-right: 12px;
  width: 18px;
  height: 18px;
}

.option-item label {
  cursor: pointer;
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  font-weight: var(--font-semi);
}

.option-price {
  color: var(--primary-green);
  font-weight: var(--font-bold);
  margin-left: auto;
}

/* 새로운 옵션 선택 UI 스타일 */
.option-card {
  background: #fff;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.option-card:hover {
  border-color: var(--accent-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.option-card.selected {
  background-color: #e8f5e8;
  border-left: 4px solid #28a745;
  border-color: #28a745;
}

/* 수량 조절 컨트롤 (공통 재사용: 옵션/카트) */
.quantity-controls, .qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 수량 버튼 공통 (옵션/카트 통합) */
.quantity-btn, .cart-qty-btn, .qty-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: #28a745;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
  /* Bootstrap btn, btn-sm 무력화 */
  padding: 0 !important;
  line-height: 1 !important;
  min-width: 30px;
  min-height: 30px;
  box-sizing: content-box;
}

.quantity-btn:hover, .cart-qty-btn:hover, .qty-btn:hover {
  background: #218838;
  transform: scale(1.05);
}

.quantity-btn:active, .cart-qty-btn:active, .qty-btn:active {
  transform: scale(0.95);
}

.quantity-btn:disabled, .cart-qty-btn:disabled, .qty-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.quantity-display {
  font-size: 1.1rem;
  font-weight: bold;
  min-width: 20px;
  text-align: center;
  margin: 0 12px;
  color: #333;
}

/* 옵션 정보 영역 */
.option-info {
  flex-grow: 1;
}

.option-name {
  font-size: 1.1rem;
  color: #333;
  font-weight: 500;
  margin-bottom: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.option-card:hover .option-name {
  color: #28a745;
}

/* 가격 표시 */
.base-price {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  white-space: nowrap;
}

.price-amount {
  color: #28a745;
}

/* 체크박스/라디오버튼 스타일 개선 */
.option-selection {
  width: 18px;
  height: 18px;
  accent-color: #28a745;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 12px;
}

.option-selection:hover {
  transform: scale(1.1);
}

/* 선택된 옵션 목록 스타일 */
#selected-options-list {
  max-height: 120px;
  overflow-y: auto;
}

#selected-options-list::-webkit-scrollbar {
  width: 4px;
}

#selected-options-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}

#selected-options-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}

/* 모바일 터치 최적화 */
@media (max-width: 768px) {
  .option-card {
    padding: 20px 16px;
    margin-bottom: 16px;
    border-radius: 16px;
  }
  
  .quantity-btn, .cart-qty-btn, .qty-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
    /* 터치 영역 확대 */
    min-width: 44px;
    min-height: 44px;
  }
  
  .quantity-display {
    font-size: 1.2rem;
    margin: 0 16px;
  }
  
  .option-name {
    font-size: 1.2rem;
    line-height: 1.4;
  }
  
  .base-price {
    font-size: 1.2rem;
  }
  
  .option-selection {
    width: 24px;
    height: 24px;
    /* 터치 영역 확대 */
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
  }
  
  /* 옵션 그룹 간격 조정 */
  .option-group {
    margin-bottom: 24px;
  }
  
  /* 하단 고정 버튼 영역 스타일 개선 */
  .bottom-section {
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
  }
  
  /* 담기 버튼 스타일 개선 */
  .bottom-section .btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    padding: 16px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
  }
  
  .bottom-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
  }
  
  .bottom-section .btn:active {
    transform: translateY(0);
  }
}

/* 애니메이션 효과 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quantity-controls.d-flex, .qty-controls.d-flex {
  animation: fadeInUp 0.3s ease;
}

/* 접근성 개선 */
.option-card:focus-within {
  outline: 2px solid #28a745;
  outline-offset: 2px;
}

.quantity-btn:focus, .cart-qty-btn:focus, .qty-btn:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
  .option-card {
    border-width: 3px;
  }
  
  .quantity-btn, .cart-qty-btn, .qty-btn {
    border: 2px solid #000;
  }
  
  .option-selection {
    border: 2px solid #000;
  }
}

/* ========================================
   0-1. 전역 로딩 스피너 (사용처: 전체 페이지)
   ======================================== */

/* 로딩 오버레이 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.loading-overlay.d-none {
    display: none !important;
}

/* 로딩 스피너 래퍼 */
.loading-spinner-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeInScale 0.3s ease;
}

/* 스피너 텍스트 */
.loading-spinner-text {
    margin-top: 1rem;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
}

/* 페이지 로딩 오버레이 (페이지 전환용) */
#pageLoadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
}

#pageLoadingOverlay.d-flex {
    display: flex !important;
}

/* 스피너 애니메이션 */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 스피너 크기 변형 */
.spinner-lg {
    width: 5rem !important;
    height: 5rem !important;
    border-width: 0.35rem !important;
}

.spinner-xl {
    width: 6rem !important;
    height: 6rem !important;
    border-width: 0.4rem !important;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .loading-spinner-text {
        font-size: 1rem;
    }
    
    .spinner-lg {
        width: 4rem !important;
        height: 4rem !important;
    }
    
    .spinner-xl {
        width: 5rem !important;
        height: 5rem !important;
    }
}

/* ========================================
   1. 갤러리 홈페이지 (gallery_home.html)
   ======================================== */

/* 갤러리 컨테이너 */
.gallery-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* 갤러리 슬라이드 */
.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.gallery-slide.active {
    opacity: 1;
}


.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.gallery-content {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.gallery-logo {
    color: hsl(0, 0%, 100%);
    font-size: 3.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    margin-bottom: 30px;
    letter-spacing: -2px;
    line-height: 4rem;
}

.gallery-order-button {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    border: none;
    padding: 10px 60px;
    font-size: 3.5rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.gallery-order-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6);
    color: white;
    text-decoration: none;
}

.gallery-order-button:active {
    transform: translateY(-1px);
}

.gallery-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    transform-origin: left;
    animation: progress 5s linear infinite;
    z-index: 3;
}

@keyframes progress {
    0% { width: 0%; }
    100% { width: 100%; }
}


@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}


/* ========================================
   2. 전역 토스트 메시지 (layout.html)
   ======================================== */


.toast-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.toast-text {
    line-height: 1.4;
}

.toast-countdown {
    color: #ff6b6b;
    font-size: 2rem;
    font-weight: bold;
    background: rgba(255, 107, 107, 0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ff6b6b;
}

/* ========================================
   3. 메뉴 페이지 사이드바 (menu.html)
   ======================================== */



/* ========================================
   4. 모바일 메뉴 카드 (menu.html)
   ======================================== */





/* ========================================
   5. 장바구니 페이지 (cart.html)
   ======================================== */

/* 모바일 헤더 */
.mobile-header {
    background: white;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 100;
}

.mobile-header .btn {
    background: none;
    border: none;
    padding: 0;
}

.mobile-header i {
    font-size: 1.2rem;
    color: #333;
}

.mobile-header h1 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0;
}





/* 장바구니 상세 컴포넌트 - 사용처: templates/cart.html, templates/menu_all.html(미니카트) */
.cart-item-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--soft-shadow);
    padding: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-item-info { flex: 1; }

.cart-item-name {
    font-size: 18px;
    font-weight: var(--font-semi);
    color: #333;
    margin-bottom: 8px;
}

.cart-item-options {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.total-section {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--soft-shadow);
    padding: 24px;
    margin-top: 20px;
    text-align: right;
}

.total-section h3 {
    font-size: 20px;
    font-weight: var(--font-semi);
    color: #333;
    margin-bottom: 12px;
}

/* ========================================
   6. 영수증 페이지 (receipt.html)
   ======================================== */

.receipt-container {
    width: 400px;
    margin: 20px auto;
    padding: 10px;
    border: 1px solid #ddd;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    background: white;
    color: black;
}

.receipt-header {
    text-align: center;
    border-bottom: 1px dashed #000;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.store-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.order-info {
    margin-bottom: 10px;
    border-bottom: 1px dashed #000;
    padding-bottom: 10px;
}

.order-items {
    margin-bottom: 10px;
}

.receipt-item {
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px dotted #ccc;
}

.item-name {
    font-weight: bold;
    margin-bottom: 2px;
}

.item-options {
    margin-left: 10px;
    font-size: 11px;
    color: #666;
}

.item-price {
    text-align: right;
    font-weight: bold;
}

.total-section {
    border-top: 1px solid #000;
    padding-top: 10px;
    margin-top: 10px;
}

.total-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3px;
}

.final-total {
    font-size: 14px;
    font-weight: bold;
    border-top: 1px solid #000;
    padding-top: 5px;
    margin-top: 5px;
}

.receipt-footer {
    text-align: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #000;
    font-size: 11px;
}

.print-button {
    margin: 20px auto;
    text-align: center;
}

.btn-print {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
}

.btn-print:hover {
    background-color: #0056b3;
}

.btn-print.success {
    background-color: #28a745;
}

.btn-print.secondary {
    background-color: #6c757d;
}

/* 영수증 프린트 미디어 쿼리 */
@media print {
    body {
        margin: 0;
        padding: 0;
        font-family: 'Courier New', monospace;
        font-size: 12px;
        line-height: 1.2;
        width: 80mm;
        background: white;
    }
    .no-print {
        display: none;
    }
    .receipt-container {
        width: 100%;
        max-width: 80mm;
        margin: 0;
        padding: 5mm;
        box-sizing: border-box;
        border: none;
    }
}


/* ========================================
   8. 반응형 미디어 쿼리
   ======================================== */

/* 태블릿 */
@media (max-width: 768px) {
    .gallery-logo {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .gallery-order-button {
        padding: 15px 40px;
        font-size: 1.4rem;
    }
    
    .gallery-content {
        bottom: 60px;
    }


    .toast-countdown {
        font-size: 1.6rem;
        width: 50px;
        height: 50px;
    }

    .salad-title-main {
        font-size: 1.3rem !important;
        line-height: 1.2 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    .salad-desc {
        font-size: 0.85rem !important;
    }
    
}

/* 모바일 */
@media (max-width: 480px) {
    .salad-title-main {
        font-size: 1.1rem !important;
        line-height: 1.2 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .salad-desc {
        font-size: 0.8rem !important;
    }
    
    
}


/* ========================================
   10. 영수증 화면(스크린) 반응형 확대
   ======================================== */

@media screen {
    .receipt-container {
        width: 60vw;
        max-width: 700px; /* 넓은 화면에서 지나치게 커지는 것을 방지 */
        font-size: clamp(12px, 1.2vw, 18px); /* 화면 크기에 따라 글자 크기 자동 조정 */
    }

    .receipt-container .store-name {
        font-size: 1.333em; /* 기존 16px -> 12px 기준 대비 1.333배 */
    }

    .receipt-container .item-options {
        font-size: 0.916em; /* 기존 11px -> 12px 기준 대비 0.916배 */
    }

    .receipt-container .final-total {
        font-size: 1.166em; /* 기존 14px -> 12px 기준 대비 1.166배 */
    }
}


/* ========================================
   메뉴 전체 페이지 (menu_all.html)
   ======================================== */

.menu-container { 
  padding-bottom: 70px; 
}

.menu-container .fixed-header {
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.menu-container .header-content {
  padding: 15px 20px 10px 20px;
  border-bottom: 1px solid #eee;
}

.menu-container .category-filter {
  background: #fff;
  border-bottom: 1px solid #eee;
  margin: 0 -15px;
  padding: 10px 20px 10px 15px;
}

.menu-container .category-filter-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  /* 스크롤바 숨기기 (Chrome, Safari, Edge) */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE, Edge */
}

.menu-container .category-filter-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.menu-container .category-filter-buttons {
  display: flex;
  gap: 8px;
  padding-bottom: 8px;
  align-items: flex-end; /* 버튼들을 하단 기준으로 정렬 */
}

.menu-container .category-filter .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-container .category-btn-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-height: 50px; /* NEW 뱃지 공간을 포함한 최소 높이 */
  justify-content: flex-end; /* 버튼을 하단에 배치 */
}

.menu-container .category-filter .btn.active {
  background-color: #28a745;
  color: #fff;
  border-color: #28a745;
}

.menu-container .card-container.content-with-fixed-header {
  padding: 250px 5px 5px 5px;
}

.menu-container .back-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #6c757d;
  color: #6c757d;
}

.menu-container .back-btn:hover {
  background-color: #f8f9fa;
  border-color: #495057;
  color: #495057;
}

.menu-container .category-header {
  border-bottom: 2px solid #28a745;
  padding-bottom: 10px;
}

.menu-container .category-header.category-new-header {
  border-bottom: 2px solid #ff6b6b;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 142, 83, 0.1) 100%);
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.menu-container .category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* New 뱃지 스타일 */
.new-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
  animation: pulse-badge 2s ease-in-out infinite;
}

.new-badge-top {
  display: inline-block;
  background: linear-gradient(135deg, #ffffff 0%, #ffe7da 100%);
  color: rgb(255, 77, 0);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(255, 107, 107, 0.4);
  animation: pulse-badge 2s ease-in-out infinite;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  white-space: nowrap;
  margin-bottom: 4px;
}

.new-badge-large {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 12px rgba(255, 107, 107, 0.4);
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.5);
  }
}

/* New 카테고리 필터 버튼 스타일 */
.menu-container .category-filter .btn.category-new {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
  border-color: #ff6b6b;
  color: white;
  font-weight: 600;
  position: relative;
}

.menu-container .category-filter .btn.category-new:hover {
  background: linear-gradient(135deg, #ff8e53 0%, #ff6b6b 100%);
  border-color: #ff8e53;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.menu-container .category-filter .btn.category-new.active {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
  border-color: #ff6b6b;
  color: white;
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.5);
}

/* New 카테고리 섹션 스타일 */
.menu-container .category-new-section {
  position: relative;
}

.menu-container .category-new-section::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 142, 83, 0.1) 100%);
  border-radius: 16px;
  z-index: -1;
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.8;
  }
}

.menu-container .category-description {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.menu-container .menu-item-card {
  transition: transform 0.2s ease;
}

.menu-container .menu-item-card:hover {
  transform: translateY(-2px);
}

.menu-image-container {
  height: 200px;
  overflow: hidden;
  background: #f8f9fa;
  width: 100%;
}

.menu-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-container .menu-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-container .menu-placeholder i {
  font-size: 1.5rem;
  color: #6c757d;
  opacity: 0.7;
}

.menu-container .menu-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2d3436;
}

.menu-container .menu-description {
  font-size: 0.85rem;
  line-height: 1.4;
  line-clamp: 2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-container .price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #28a745;
}

.menu-container .clickable-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-container .clickable-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.menu-container .cart-btn {
  border-radius: 20px;
}

.menu-container .cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: #dc3545;
  color: #fff;
  border-radius: 12px;
  padding: 0 6px;
  font-size: 12px;
  line-height: 20px;
  min-width: 20px;
  text-align: center;
}

/* 미니카트 바/패널 */
.mini-cart-bar {
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}

.mini-cart-link {
  text-decoration: none;
  color: #28a745;
  font-weight: 600;
}

.mini-cart-link:hover { 
  text-decoration: underline; 
}

.mini-cart-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 52px;
  background: #fff;
  border-top: 1px solid #eee;
  box-shadow: 0 -6px 18px rgba(0,0,0,0.12);
  max-height: 40vh;
  overflow-y: auto;
  z-index: 1001;
}

.mini-cart-header { 
  padding: 10px 12px; 
  border-bottom: 1px solid #f0f0f0; 
}

.mini-cart-list { 
  padding: 8px 12px; 
}

.mini-cart-item { 
  display:flex; 
  justify-content:space-between; 
  align-items:center; 
  padding: 8px 0; 
  border-bottom: 1px dashed #eee; 
}

.mini-cart-footer { 
  padding: 10px 12px; 
  background: #fafafa; 
  display:flex; 
  justify-content:space-between; 
  align-items:center; 
}

.mini-cart-actions { 
  display:flex; 
  gap:6px; 
}

/* ===== Addon: ATK Name & Number Input Pad (tablet first) ===== */
.atk-inputpad{max-width:900px;margin:24px auto;padding:16px;border:1px solid #e5e8eb;border-radius:16px;background:#fff}
.atk-inputpad-title{font-size:18px;margin:0 0 12px}
.atk-inputpad-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:16px}
.atk-field{display:flex;flex-direction:column;gap:8px}
.atk-label{font-weight:600;font-size:14px}
.atk-input{font-size:24px;padding:14px 16px;border:1px solid #e5e8eb;border-radius:12px;outline:none}
.atk-input:focus{border-color:#b6c2cf;box-shadow:0 0 0 3px rgba(30,140,190,.08)}
.atk-helper{font-size:12px;color:#6b7684}

.atk-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.atk-key{padding:18px 0;font-size:22px;border:1px solid #e5e8eb;border-radius:12px;background:#fafbfc;touch-action:manipulation}
.atk-key:active{transform:scale(0.98)}
.atk-key.wide{grid-column:span 2}

.atk-actions{display:flex;gap:8px;margin-top:12px}
.atk-btn{flex:1;padding:14px 0;border-radius:12px;border:1px solid #e5e8eb;background:#f6f7f9;font-weight:600}
.atk-btn.primary{background:var(--primary-green,#28c76f);color:#fff;border-color:transparent}

.atk-suggestions{margin-top:8px;border:1px solid #e5e8eb;border-radius:12px;overflow:hidden}
.atk-suggestion{padding:10px 12px;display:flex;justify-content:space-between;gap:8px}
.atk-suggestion + .atk-suggestion{border-top:1px solid #eef1f4}
.atk-suggestion .label{font-weight:600}
.atk-suggestion .meta{color:#6b7684;font-size:12px}

@media (max-width: 900px){
  .atk-inputpad-grid{grid-template-columns:1fr}
}
