/* ==========================================================================
   Ú Tà · Customer Ordering App Stylesheet
   Distinctive, iPhone-First, Artisanal Brand Design
   ========================================================================== */

:root {
  /* Brand Palette */
  --primary-dark: #1F3B4D;       /* Deep Teal - Main Brand Anchor */
  --primary: #2C536C;            /* Mid Teal */
  --primary-light: #EBF2F5;      /* Tint Teal */
  --accent: #4E8752;             /* Matcha Leaf Green */
  --accent-hover: #3B6B3E;       /* Deep Matcha */
  --accent-light: #ECFDF5;       /* Fresh Leaf Tint */
  --warm-amber: #D97706;         /* Honey / Roasted Coffee / Caramel */
  --ruby-red: #BE123C;           /* Fruit Tea / Strawberry / Pomegranate */

  /* Neutral & Canvas Tones */
  --bg-page: #FBF9F5;            /* Warm Paper Tint */
  --bg-card: #FFFFFF;            /* Pure Porcelain White */
  --bg-subtle: #F3EFE6;          /* Mộc Mạc Warm Sand */
  --border: #E8E4DC;             /* Fine Warm Border */
  --border-light: #F0ECE4;
  --text-main: #1F2937;          /* Charcoal Black */
  --text-muted: #4B5563;          /* Slate Grey */
  --text-light: #9CA3AF;         /* Soft Caption */

  /* Radii & Shadows */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 4px rgba(31, 59, 77, 0.04);
  --shadow-md: 0 6px 16px rgba(31, 59, 77, 0.08);
  --shadow-lg: 0 12px 32px rgba(31, 59, 77, 0.14);
  --shadow-cart: 0 10px 30px rgba(31, 59, 77, 0.35);

  /* iOS Safe Areas */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Base Reset & Mobile Enhancements */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  padding-bottom: calc(90px + var(--safe-bottom));
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ==========================================================================
   Header Bar
   ========================================================================== */
.app-header {
  background: var(--primary-dark);
  color: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  padding-top: var(--safe-top);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.brand-text p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.threads-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.2s;
  min-height: 32px;
}

.threads-btn:active {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(0.97);
}

.admin-link-btn {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s;
  min-height: 32px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  background: linear-gradient(180deg, #F3EFE6 0%, #FBF9F5 100%);
  padding: 20px 0 14px;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-main-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 600px) {
  .hero-main-layout {
    display: grid;
    grid-template-columns: 1fr 220px;
    align-items: center;
    gap: 20px;
  }
}

.hero-tagline {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-photo-card {
  position: relative;
  background: radial-gradient(circle at center, rgba(78, 135, 82, 0.12) 0%, rgba(251, 249, 245, 0.6) 75%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.hero-photo-img {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.09));
  transition: transform 0.3s ease;
}

.hero-photo-card:hover .hero-photo-img {
  transform: translateY(-2px);
}

.hero-photo-tag {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: rgba(31, 59, 77, 0.07);
  padding: 3px 9px;
  border-radius: 12px;
  border: 1px solid rgba(31, 59, 77, 0.12);
}

.hero-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: rgba(31, 59, 77, 0.08);
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 8px 0 4px;
}

.feature-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-card);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.feature-icon {
  font-size: 0.9rem;
}

/* Status Banner */
.status-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  line-height: 1.4;
  margin-top: 4px;
  border: 1px solid transparent;
}

.status-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.status-content {
  display: flex;
  flex-direction: column;
}

.status-banner.success {
  background: #ECFDF5;
  color: #065F46;
  border-color: #A7F3D0;
}

.status-banner.warning {
  background: #FFFBEB;
  color: #92400E;
  border-color: #FDE68A;
}

.status-banner.info {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: #CBD5E1;
}

/* ==========================================================================
   Navigation Tabs (Thực Đơn / Tra Cứu)
   ========================================================================== */
.view-tabs {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: calc(68px + var(--safe-top));
  z-index: 40;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.tabs-inner {
  display: flex;
  padding: 6px 0;
  gap: 8px;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-btn.active {
  background: var(--primary-dark);
  color: #FFFFFF;
}

/* ==========================================================================
   Category Filter Bar (Horizontal Scrollable on iPhone)
   ========================================================================== */
.category-filter-wrap {
  margin: 16px -16px 12px;
  padding: 0 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-filter-wrap::-webkit-scrollbar {
  display: none;
}

.category-bar {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  min-height: 40px;
}

.category-pill:active {
  transform: scale(0.96);
}

.category-pill.active {
  background: var(--primary-dark);
  color: #FFFFFF;
  border-color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.category-pill .pill-count {
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 6px;
  border-radius: 12px;
}

.category-pill.active .pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Catalog Title Row */
.catalog-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 2px;
}

.catalog-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.catalog-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.catalog-legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
}

.legend-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* ==========================================================================
   Product Cards Grid (24 Cards)
   ========================================================================== */
.product-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}

.product-card:active {
  transform: scale(0.995);
}

/* Card Visual Header */
.card-image-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #FBF9F5 0%, #F1EFE8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-drink-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.25s ease;
}

.product-card:hover .card-drink-img {
  transform: scale(1.03);
}

/* Badges on Image */
.badge-category {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #FFFFFF;
  background: rgba(31, 59, 77, 0.88);
  backdrop-filter: blur(6px);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 2;
}

.badge-illustration {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  padding: 2px 7px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 2;
}

.badge-illustration.photo-badge {
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(31, 59, 77, 0.22);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Card Body */
.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.card-drink-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.25;
}

.card-drink-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Size Segmented Control */
.size-selector-wrap {
  display: flex;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 4px;
  margin-top: 2px;
}

.size-pill-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: var(--radius-xs);
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.size-pill-btn:active {
  transform: scale(0.97);
}

.size-pill-btn.active {
  background: #FFFFFF;
  color: var(--primary-dark);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.size-pill-btn.single {
  cursor: default;
}

.size-pill-btn.single.active {
  background: #FFFFFF;
}

/* Price & Action Row */
.card-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}

.price-display-group {
  display: flex;
  flex-direction: column;
}

.active-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
}

.active-size-label {
  font-size: 0.7rem;
  color: var(--text-light);
  font-weight: 600;
  margin-top: 2px;
}

/* Button & Stepper Controls */
.btn-select-drink {
  background: var(--accent);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0 16px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(78, 135, 82, 0.25);
}

.btn-select-drink:hover {
  background: var(--accent-hover);
}

.btn-select-drink:disabled {
  background: #CBD5E1;
  color: #64748B;
  box-shadow: none;
  cursor: not-allowed;
}

/* Card Stepper for Quantity */
.card-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
  min-height: 44px;
}

.stepper-btn {
  width: 40px;
  height: 40px;
  background: #FFFFFF;
  border: none;
  border-radius: var(--radius-xs);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.1s;
}

.stepper-btn:active {
  transform: scale(0.92);
}

.stepper-val {
  width: 36px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-dark);
}

/* ==========================================================================
   PWA Install & Footer
   ========================================================================== */
.pwa-install-card {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 24px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.pwa-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.pwa-text h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.pwa-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.app-footer {
  text-align: center;
  padding: 28px 16px 20px;
  color: var(--text-muted);
}

.footer-brand {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.footer-hotline {
  font-size: 0.82rem;
  margin-top: 4px;
}

.footer-note {
  font-size: 0.72rem;
  color: var(--text-light);
  line-height: 1.4;
  margin-top: 8px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Sticky Floating Cart Bar (Bottom of Screen)
   ========================================================================== */
.cart-floating-bar {
  position: fixed;
  bottom: calc(14px + var(--safe-bottom));
  left: 0;
  right: 0;
  z-index: 100;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s;
  transform: translateY(120%);
  opacity: 0;
}

.cart-floating-bar.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cart-bar-inner {
  max-width: 580px;
  margin: 0 auto;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary-dark);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  height: 60px;
  box-shadow: var(--shadow-cart);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cart-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-badge-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-icon {
  font-size: 1.4rem;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--ruby-red);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--primary-dark);
}

.cart-pricing {
  display: flex;
  flex-direction: column;
}

.cart-total-text {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.1;
  color: #FFFFFF;
}

.cart-sub-text {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.75);
}

.cart-bar-btn {
  background: var(--accent);
  color: #FFFFFF;
  border: none;
  border-radius: 20px;
  padding: 0 16px;
  font-size: 0.85rem;
  font-weight: 700;
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.cart-bar-btn:active {
  background: var(--accent-hover);
  transform: scale(0.96);
}

.cart-arrow {
  font-size: 0.9rem;
}

/* ==========================================================================
   Bottom Sheet Modal (Cart & Checkout)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.bottom-sheet {
  background: var(--bg-card);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding-bottom: var(--safe-bottom);
}

.modal-overlay.open .bottom-sheet {
  transform: translateY(0);
}

.sheet-drag-handle {
  width: 36px;
  height: 4px;
  background: #CBD5E1;
  border-radius: 2px;
  margin: 10px auto 4px;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px 14px;
  border-bottom: 1px solid var(--border);
}

.sheet-title-group {
  display: flex;
  flex-direction: column;
}

.sheet-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.sheet-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sheet-close {
  background: var(--bg-subtle);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.4rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}

.sheet-body {
  padding: 16px 18px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Cart Items List inside Sheet */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cart-item-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.cart-item-size-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 2px;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sheet-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--bg-subtle);
  border-radius: var(--radius-xs);
  padding: 2px;
}

.sheet-stepper-btn {
  width: 32px;
  height: 32px;
  background: #FFFFFF;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sheet-stepper-qty {
  width: 28px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.btn-remove-item {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 1.1rem;
  padding: 4px;
  cursor: pointer;
}

.btn-remove-item:hover {
  color: var(--ruby-red);
}

/* Cart Summary Box */
.cart-summary-box {
  background: var(--bg-subtle);
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-line.main {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-dark);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 6px;
}

.summary-line.muted {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.highlight-text {
  color: var(--warm-amber);
  font-weight: 600;
}

/* Checkout Form */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 2px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: #FFFFFF;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 44px;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(44, 83, 108, 0.12);
}

.form-help {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.submit-order-btn {
  background: var(--accent);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
  min-height: 50px;
  margin-top: 8px;
  box-shadow: 0 4px 14px rgba(78, 135, 82, 0.35);
  transition: all 0.2s;
}

.submit-order-btn:hover {
  background: var(--accent-hover);
}

.submit-order-btn:active {
  transform: scale(0.98);
}

.submit-order-btn:disabled {
  background: #CBD5E1;
  color: #64748B;
  box-shadow: none;
  cursor: not-allowed;
}

.form-security-note {
  font-size: 0.72rem;
  color: var(--text-light);
  text-align: center;
  line-height: 1.4;
  margin-top: 4px;
}

/* ==========================================================================
   Order Success Screen
   ========================================================================== */
.order-success-card {
  text-align: center;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.success-icon-badge {
  width: 56px;
  height: 56px;
  background: #ECFDF5;
  color: #059669;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  border: 2px solid #A7F3D0;
}

.token-copy-box {
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0;
}

.token-val {
  font-family: monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: #FFFFFF;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #E2E8F0;
  word-break: break-all;
}

/* ==========================================================================
   Lookup Section
   ========================================================================== */
.lookup-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-top: 14px;
}

.lookup-card-header {
  margin-bottom: 16px;
}

.lookup-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: 12px;
  margin-bottom: 6px;
}

.lookup-card-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.lookup-card-header p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.lookup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-submit-lookup {
  background: var(--primary-dark);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 48px;
  margin-top: 4px;
  transition: all 0.2s;
}

.btn-submit-lookup:active {
  transform: scale(0.98);
}

.lookup-result-wrap {
  margin-top: 16px;
}

.order-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-md);
}

.status-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.status-pill.new { background: #EFF6FF; color: #1E40AF; }
.status-pill.confirmed { background: #FEF3C7; color: #92400E; }
.status-pill.completed { background: #D1FAE5; color: #065F46; }
.status-pill.cancelled { background: #FEE2E2; color: #991B1B; }

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
}

.empty-state-icon {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

/* Desktop and Tablet Enhancements */
@media (min-width: 640px) {
  .product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* ==========================================================================
   Item Customization Modal & Dynamic Options
   ========================================================================== */
.card-cart-badge {
  background: rgba(78, 135, 82, 0.1);
  border: 1px solid rgba(78, 135, 82, 0.25);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  margin-top: 4px;
  display: inline-block;
}

.card-cart-badge strong {
  font-weight: 800;
  color: var(--primary-dark);
}

.item-sheet {
  max-height: 85vh;
}

.item-sheet-body {
  padding: 14px 18px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-product-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-subtle);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.modal-preview-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 4px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-summary-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-category-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
}

.modal-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
}

.customization-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.option-group:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.option-group-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.option-group-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.option-group-title .required {
  color: #DC2626;
}

.option-group-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-radio-label {
  cursor: pointer;
  display: inline-flex;
}

.pill-radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pill-radio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.15s ease;
  min-height: 38px;
}

.pill-radio-label input[type="radio"]:checked + .pill-radio-btn {
  background: var(--primary-dark);
  color: #FFFFFF;
  border-color: var(--primary-dark);
  box-shadow: 0 2px 6px rgba(31, 59, 77, 0.25);
}

.pill-single-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: rgba(31, 59, 77, 0.08);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.option-checkboxes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 480px) {
  .option-checkboxes {
    grid-template-columns: 1fr 1fr;
  }
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.checkbox-label:hover {
  background: var(--bg-subtle);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-dark);
  cursor: pointer;
}

.checkbox-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

.modal-footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  position: sticky;
  bottom: 0;
  background: var(--bg-card);
}

.modal-quantity-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--bg-subtle);
  border-radius: 24px;
  padding: 3px;
  border: 1px solid var(--border);
}

.modal-quantity-stepper .stepper-btn {
  width: 36px;
  height: 36px;
  background: #FFFFFF;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.modal-quantity-stepper .stepper-val {
  width: 32px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.btn-confirm-add {
  flex: 1;
  background: var(--primary-dark);
  color: #FFFFFF;
  border: none;
  border-radius: 24px;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 3px 10px rgba(31, 59, 77, 0.25);
  min-height: 44px;
  transition: transform 0.1s, background-color 0.2s;
}

.btn-confirm-add:active {
  transform: scale(0.98);
}

.btn-price-addon {
  background: rgba(255, 255, 255, 0.18);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.85rem;
}

/* Cart Item Option Lines & Edit Button */
.cart-item-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item-options {
  font-size: 0.73rem;
  color: var(--primary);
  margin-top: 3px;
  line-height: 1.35;
}

.topping-text {
  color: var(--accent);
  font-weight: 600;
}

.cart-item-note {
  font-size: 0.7rem;
  color: #B45309;
  background: #FEF3C7;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  display: inline-block;
}

.cart-unit-price {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: normal;
  margin-left: 4px;
}

.btn-edit-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 6px;
  align-self: flex-start;
  transition: all 0.15s;
}

.btn-edit-item:hover {
  background: #FFFFFF;
  border-color: var(--primary-dark);
}