/* ============================================
   FoodIn Calculator - Premium Dark (Black/Gold)
   ============================================ */

/* CSS Variables */
:root {
  /* Premium Gold Palette */
  --gold-100: #F9F1D8;
  --gold-200: #E6D5A7;
  --gold-300: #D4B976;
  --gold-400: #C8AA6E;
  /* Primary Gold */
  --gold-500: #B89655;
  --gold-600: #9E7D3E;

  /* Dark Mode Palette */
  --bg-dark: #0a0a0a;
  /* Main Background */
  --bg-card: #141414;
  /* Card Background */
  --bg-lighter: #1e1e1e;
  /* Hover/Highlight */

  /* Text Colors */
  --text-main: #ffffff;
  --text-muted: #a3a3a3;
  --text-dark: #121212;
  /* Text on Gold buttons */

  /* Functional Colors */
  --accent-blue: #60a5fa;
  /* AI Tech vibe */
  --accent-red: #f87171;
  /* Delete/Discount */
  --border-color: #333333;

  /* Shadows */
  --shadow-gold: 0 4px 20px -5px rgba(200, 170, 110, 0.2);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.8);

  /* Spacing */
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;

  /* Animation Keyframes */
  @keyframes pulse {
    0% {
      transform: scale(1);
    }

    50% {
      transform: scale(1.05);
    }

    100% {
      transform: scale(1);
    }
  }

  @keyframes float {
    0% {
      transform: translateY(0px);
    }

    50% {
      transform: translateY(-5px);
    }

    100% {
      transform: translateY(0px);
    }
  }
}

/* Transitions */
:root {
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans TC', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
}

/* Typography for Headings - Serif for Premium Feel */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Noto Serif TC', serif;
  letter-spacing: 0.05em;
}

/* App Container */
.app-container {
  min-height: 100vh;
  padding: 1rem;
  background: radial-gradient(circle at top center, #1a1a1a 0%, #000000 100%);
}

@media (min-width: 768px) {
  .app-container {
    padding: 3rem 2rem;
  }
}

.main-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.header {
  margin-bottom: 3rem;
  text-align: center;
}

.header-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.header-title span {
  color: var(--gold-400);
  background: linear-gradient(135deg, #F9F1D8 0%, #C8AA6E 50%, #9E7D3E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) {
  .header-title {
    font-size: 3rem;
  }

  .header {
    text-align: left;
  }
}

.header-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* ============================================
   Floating Quote Bubble (AssistiveTouch Style)
   ============================================ */
.floating-quote-bubble {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 1000;
  cursor: pointer;
  transition: all 0.3s ease;
}

.floating-quote-bubble:hover {
  transform: translateY(-50%) scale(1.1);
}

.floating-quote-bubble:active {
  transform: translateY(-50%) scale(0.95);
}

.bubble-inner {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-600) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 6px 25px rgba(200, 170, 110, 0.5),
    0 0 0 4px rgba(200, 170, 110, 0.2);
  position: relative;
  z-index: 2;
}

.bubble-inner i {
  width: 26px;
  height: 26px;
  color: var(--text-dark);
}

.bubble-total {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  font-family: 'Noto Serif TC', serif;
}

/* Pulse animation */
.bubble-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--gold-400);
  opacity: 0;
  z-index: 1;
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.8);
  }
}

/* Hide pulse when no items */
.floating-quote-bubble.empty .bubble-pulse {
  animation: none;
  opacity: 0;
}

.floating-quote-bubble.empty .bubble-inner {
  background: var(--bg-lighter);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.floating-quote-bubble.empty .bubble-inner i,
.floating-quote-bubble.empty .bubble-total {
  color: var(--text-muted);
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .floating-quote-bubble {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
  }

  .bubble-inner {
    width: 75px;
    height: 75px;
  }

  .bubble-pulse {
    width: 75px;
    height: 75px;
  }

  .bubble-inner i {
    width: 22px;
    height: 22px;
  }

  .bubble-total {
    font-size: 0.8rem;
  }
}

/* Main Content Full Width */
.main-content-full {
  width: 100%;
}

/* Navigation Tabs */
.nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.nav-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.05em;
}

.nav-tab:hover {
  border-color: var(--gold-400);
  color: var(--gold-100);
}

.nav-tab.active {
  background: var(--gold-400);
  border-color: var(--gold-400);
  color: var(--text-dark);
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}

/* AI Tab Specific */
.nav-tab.ai-tab {
  border-color: rgba(167, 139, 250, 0.3);
  color: #a78bfa;
}

.nav-tab.ai-tab:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: #a78bfa;
}

.nav-tab.ai-tab.active {
  background: linear-gradient(135deg, #7c3aed, #4c1d95);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

/* Content Panel */
.content-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  min-height: 500px;
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  .content-panel {
    padding: 2.5rem;
  }
}

/* Category Header */
.category-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.category-title {
  font-size: 1.5rem;
  color: var(--gold-100);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.category-title svg {
  color: var(--gold-400);
}

.features-box {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  padding: 1rem;
  border: 1px solid var(--border-color);
}

.features-label {
  font-size: 0.75rem;
  color: var(--gold-300);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: block;
}

.features-grid {
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.feature-item svg {
  color: var(--gold-500);
  width: 16px;
  height: 16px;
  margin-top: 3px;
}

/* Product List */
.product-list {
  display: grid;
  gap: 1rem;
}

.product-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .product-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.product-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--gold-600);
}

.product-item.selected {
  background: rgba(200, 170, 110, 0.05);
  border-color: var(--gold-400);
  box-shadow: inset 0 0 0 1px var(--gold-400);
}

.product-name {
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.discount-badge {
  font-size: 0.7rem;
  background: rgba(248, 113, 113, 0.2);
  color: var(--accent-red);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Price Display */
.price-container {
  text-align: right;
  min-width: 100px;
}

.original-price {
  font-size: 0.8rem;
  color: #666;
  text-decoration: line-through;
  display: block;
}

.current-price {
  font-size: 1.1rem;
  color: var(--gold-300);
  font-weight: 700;
  font-family: 'Noto Serif TC', serif;
}

.current-price.discounted {
  color: var(--accent-red);
}

/* Quantity Control */
.qty-control {
  display: flex;
  align-items: center;
  background: black;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 2px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 50%;
  transition: 0.2s;
}

.qty-btn:hover:not(:disabled) {
  background: var(--bg-lighter);
  color: var(--text-main);
}

.qty-btn.add:hover {
  color: var(--gold-400);
}

.qty-value {
  width: 30px;
  text-align: center;
  font-weight: 700;
  color: var(--text-main);
}

.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  width: 100%;
}

@media (min-width: 640px) {
  .product-actions {
    width: auto;
    justify-content: flex-end;
    margin-top: 0;
  }
}

/* Summary Sidebar */
.summary-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  position: sticky;
  top: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.summary-title {
  color: var(--gold-100);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.clear-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.clear-btn:hover {
  color: var(--accent-red);
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  color: var(--text-main);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-detail {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cart-item-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cart-item-total {
  color: var(--gold-300);
  font-family: 'Noto Serif TC', serif;
}

.cart-item-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: #444;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.cart-item-remove:hover {
  background: rgba(248, 113, 113, 0.1);
  color: var(--accent-red);
}

.summary-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.rush-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}

.rush-checkbox {
  accent-color: var(--gold-400);
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.total-value {
  font-size: 2rem;
  color: var(--gold-400);
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(200, 170, 110, 0.3);
}

.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #C8AA6E 0%, #9E7D3E 100%);
  color: #000;
  border: none;
  padding: 1rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  margin-top: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  letter-spacing: 0.05em;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(200, 170, 110, 0.4);
}

.submit-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* AI Panel (Mystic Purple/Gold Style) */
.ai-panel {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ai-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.ai-header svg {
  color: #a78bfa;
  /* Light Purple */
  filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.4));
}

.ai-consultant-box {
  background: linear-gradient(135deg, rgba(20, 10, 40, 0.6) 0%, rgba(40, 20, 60, 0.6) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  /* Purple border */
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(139, 92, 246, 0.1);
}

.ai-consultant-title {
  color: #c4b5fd;
  /* Soft Purple */
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ai-consultant-desc {
  color: #ddd6fe;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.ai-input-group {
  display: flex;
  gap: 0.5rem;
}

.ai-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  font-family: inherit;
  transition: all 0.3s ease;
}

.ai-input:focus {
  outline: none;
  border-color: #a78bfa;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2), 0 0 15px rgba(139, 92, 246, 0.2);
}

.ai-submit-btn {
  background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
  color: white;
  border: 1px solid rgba(167, 139, 250, 0.3);
  padding: 0 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.ai-submit-btn:hover {
  background: linear-gradient(135deg, #8b5cf6 0%, #5b21b6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.5);
}

.ai-result {
  background: rgba(30, 10, 50, 0.3);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
}

.ai-result::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #a78bfa, transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.ai-result-text {
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: var(--radius-lg);
  color: #e9d5ff;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-top: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Contact Section */
.contact-section {
  margin-top: 3rem;
}

.contact-card {
  background: linear-gradient(135deg, #102a15 0%, #064e3b 100%);
  border: 1px solid #059669;
  padding: 2.5rem 3rem;
  /* Increased padding */
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.2);
}

.contact-info {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex: 1;
  min-width: 300px;
}

.contact-icon {
  margin-top: 0.25rem;
}

.contact-text h4 {
  color: #fff;
  font-size: 1.4rem;
  /* Larger title */
  font-family: 'Noto Serif TC', serif;
  margin-bottom: 0.75rem;
}

.contact-id {
  color: #34d399;
  /* Brighter green */
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  display: block;
}

.line-badge {
  background: #059669;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 2px 10px rgba(5, 150, 105, 0.3);
}

.contact-hint {
  color: #d1fae5;
  font-size: 0.95rem;
  line-height: 1.8;
  /* Better readability */
  opacity: 0.9;
}

.btn-line {
  background: #10b981;
  color: white;
  padding: 1rem 2.5rem;
  /* Larger button */
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: 0.3s;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-line:hover {
  background: #34d399;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

@media (max-width: 768px) {
  .contact-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .contact-info {
    flex-direction: column;
    align-items: center;
    min-width: auto;
  }

  .btn-line {
    width: 100%;
    text-align: center;
  }
}

/* Sticky Footer for Mobile */
.sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--gold-600);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.7);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

@media (min-width: 1024px) {
  .sticky-footer {
    display: none;
  }
}

.footer-info {
  display: flex;
  flex-direction: column;
}

.footer-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-total {
  font-size: 1.5rem;
  color: var(--gold-400);
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(200, 170, 110, 0.3);
}

.footer-btn {
  background: var(--gold-400);
  color: var(--text-dark);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(200, 170, 110, 0.3);
}

/* Utilities */
.hidden {
  display: none !important;
}

/* ============================================
   Floating Quote Bar (Always Visible)
   ============================================ */
.floating-quote-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--gold-500);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.6);
}

.quote-bar-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quote-bar-count {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.quote-bar-divider {
  color: var(--border-color);
}

.quote-bar-total {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-400);
  font-family: 'Noto Serif TC', serif;
  text-shadow: 0 0 15px rgba(200, 170, 110, 0.3);
}

.quote-bar-btn {
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-600) 100%);
  color: var(--text-dark);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(200, 170, 110, 0.3);
}

.quote-bar-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200, 170, 110, 0.5);
}

.quote-bar-btn i {
  width: 18px;
  height: 18px;
}

/* ============================================
   Quote Modal
   ============================================ */
.quote-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.quote-modal {
  background: var(--bg-card);
  border: 1px solid var(--gold-500);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(200, 170, 110, 0.2);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.quote-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(200, 170, 110, 0.05);
}

.quote-modal-header h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-100);
  font-size: 1.2rem;
}

.quote-modal-header h2 i {
  width: 24px;
  height: 24px;
  color: var(--gold-400);
}

.quote-modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.quote-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.quote-modal-close i {
  width: 20px;
  height: 20px;
}

.quote-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.modal-cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-cart-item:last-child {
  border-bottom: none;
}

.modal-item-name {
  color: var(--text-main);
  font-size: 0.95rem;
}

.modal-item-detail {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.modal-item-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-item-price {
  color: var(--gold-300);
  font-family: 'Noto Serif TC', serif;
  font-weight: 600;
}

.modal-item-delete {
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-item-delete:hover {
  background: rgba(248, 113, 113, 0.25);
  transform: scale(1.1);
}

.modal-item-delete i {
  width: 14px;
  height: 14px;
}

.modal-cart-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
}

.modal-rush-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
}

.modal-total-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 1.5rem 0 0.5rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.modal-total-label {
  color: var(--text-muted);
}

.modal-total-value {
  font-size: 2rem;
  color: var(--gold-400);
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(200, 170, 110, 0.3);
}

.quote-modal-footer {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.3);
}

.modal-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.modal-btn i {
  width: 18px;
  height: 18px;
}

.modal-btn.primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.modal-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.modal-btn.secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.modal-btn.secondary:hover {
  border-color: var(--gold-400);
  color: var(--gold-400);
}

/* Hide sidebar on mobile since we have floating bar now */
@media (max-width: 1023px) {
  .sidebar {
    display: none;
  }

  body {
    padding-bottom: 80px;
    /* Space for floating bar */
  }
}

/* Adjust floating bar for desktop */
@media (min-width: 1024px) {
  .floating-quote-bar {
    left: auto;
    right: 2rem;
    bottom: 2rem;
    width: auto;
    border-radius: var(--radius-full);
    padding: 0.75rem 0.75rem 0.75rem 1.5rem;
    border: 1px solid var(--gold-500);
  }
}