/* ==========================================================================
   Customer Ordering Page - Mobile-first & Luxury Café Aesthetic
   ========================================================================== */
.customer-page {
  background-color: #FAF7F2;
  padding-bottom: 90px; /* Space for floating cart */
}

/* Header & Table Banner */
.table-header {
  background: linear-gradient(135deg, #2B170B 0%, #442411 60%, #683719 100%);
  color: white;
  padding: 1.25rem 1rem 1.5rem;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  box-shadow: 0 8px 24px rgba(43, 23, 11, 0.2);
  position: relative;
  overflow: hidden;
}

.table-header::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.shop-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.shop-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.shop-logo-badge {
  width: 44px;
  height: 44px;
  background: #FFF;
  color: #2B170B;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.shop-info h1 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
}

.shop-info p {
  font-size: 0.75rem;
  color: #E2D3C7;
}

.table-badge-static,
.table-badge-select {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  padding: 0.38rem 0.85rem;
  border-radius: var(--radius-full);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.92rem;
  user-select: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.table-badge-static strong {
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.table-badge-select select {
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
}

.table-badge-select select option {
  color: #2B170B;
  background: white;
}

.table-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  font-size: 0.78rem;
  color: #F7EFE9;
}

.wifi-info {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Category Tab Navigation */
.category-nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1rem 0.5rem;
  border-bottom: 1px solid rgba(139, 69, 19, 0.08);
}

.category-nav {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #FFFFFF;
  border: 1px solid #E5DCD4;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: #5C4333;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.cat-pill:hover {
  background: #F4EBE3;
}

.cat-pill.active {
  background: #2B170B;
  color: #FFFFFF;
  border-color: #2B170B;
  box-shadow: 0 4px 12px rgba(43, 23, 11, 0.25);
}

.cat-pill .cat-icon {
  font-size: 1rem;
}

/* Menu Grid */
.menu-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

.category-section {
  margin-bottom: 2rem;
}

.category-heading {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: #2B170B;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-items-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

@media (min-width: 600px) {
  .menu-items-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.menu-card {
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(43, 23, 11, 0.05);
  border: 1px solid #EFE8E2;
  display: flex;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.menu-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(43, 23, 11, 0.1);
}

.menu-card.unavailable {
  opacity: 0.6;
  filter: grayscale(0.8);
  pointer-events: none;
}

.menu-card-img {
  width: 110px;
  min-width: 110px;
  height: 120px;
  object-fit: cover;
  background-color: #EAE2D9;
}

.menu-card-body {
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.menu-card-top h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2B170B;
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.menu-card-desc {
  font-size: 0.75rem;
  color: #7D6B5E;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.menu-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #D97706;
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.menu-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.menu-card-price {
  font-weight: 800;
  font-size: 1rem;
  color: #8B4513;
}

.btn-add-item {
  width: 32px;
  height: 32px;
  background: #2B170B;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(43, 23, 11, 0.2);
  transition: transform var(--transition-fast);
}

.btn-add-item:active {
  transform: scale(0.9);
}

/* Floating Cart Bar */
.cart-floating-bar {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 520px;
  background: linear-gradient(135deg, #2B170B, #442411);
  color: white;
  border-radius: 18px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(43, 23, 11, 0.4);
  z-index: 90;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cart-floating-bar:active {
  transform: translateX(-50%) scale(0.98);
}

.cart-floating-bar.hidden {
  display: none;
}

.cart-bar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-icon-wrap {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  position: relative;
}

.cart-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #EF4444;
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  border: 2px solid #2B170B;
}

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

.cart-bar-label {
  font-size: 0.72rem;
  color: #D3C3B6;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.cart-bar-total {
  font-size: 1.1rem;
  font-weight: 800;
  color: #FBBF24;
}

.cart-bar-btn {
  background: #D97706;
  color: white;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.55rem 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Customization Modal */
.custom-item-summary {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: #FAF6F2;
  border-radius: 14px;
  border: 1px solid #ECE3DB;
  margin-bottom: 1.25rem;
}

.custom-item-summary img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.custom-modal-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.option-group {
  margin-bottom: 1.25rem;
}

.option-group-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #2B170B;
  margin-bottom: 0.6rem;
  display: flex;
  justify-content: space-between;
}

.option-group-title span.required {
  font-size: 0.72rem;
  color: #D97706;
  font-weight: 600;
}

.option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.radio-pill, .checkbox-pill {
  position: relative;
  cursor: pointer;
}

.radio-pill input, .checkbox-pill input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.pill-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  background: #F5EFE9;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #4A3324;
  transition: all var(--transition-fast);
}

.radio-pill input:checked + .pill-label,
.checkbox-pill input:checked + .pill-label {
  background: #FFF;
  border-color: #8B4513;
  color: #8B4513;
  box-shadow: 0 2px 8px rgba(139, 69, 19, 0.15);
}

.item-quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-top: 1px solid #EFE8E2;
  margin-top: 1rem;
}

.stepper-wrap {
  display: inline-flex;
  align-items: center;
  background: #F5ECE5;
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid #E8DDD4;
  box-shadow: inset 0 1px 3px rgba(43, 23, 11, 0.05);
  user-select: none;
}

.btn-stepper,
.stepper-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid rgba(219, 203, 191, 0.7);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  color: #5C3D28;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 5px rgba(92, 61, 40, 0.08);
  outline: none;
}

.btn-stepper:hover,
.stepper-btn:hover {
  background: #8B4513;
  color: #FFFFFF;
  border-color: #8B4513;
  transform: scale(1.08);
  box-shadow: 0 4px 10px rgba(139, 69, 19, 0.28);
}

.btn-stepper:active,
.stepper-btn:active {
  transform: scale(0.92);
  background: #74370C;
}

.stepper-val,
.stepper-value {
  font-weight: 800;
  font-size: 1.05rem;
  min-width: 34px;
  text-align: center;
  color: #2B170B;
  display: inline-block;
  user-select: none;
}

#btn-confirm-add-cart {
  flex: 1;
  height: 46px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #B45309 0%, #D97706 100%);
  border: none;
  color: #FFFFFF;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 1.25rem;
  outline: none;
}

#btn-confirm-add-cart:hover {
  background: linear-gradient(135deg, #92400E 0%, #B45309 100%);
  box-shadow: 0 6px 20px rgba(180, 83, 9, 0.45);
  transform: translateY(-1.5px);
}

#btn-confirm-add-cart:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 2px 8px rgba(180, 83, 9, 0.3);
}

/* Cart Item Rows in Drawer */
.cart-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 4px;
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem;
  background: #F9F6F2;
  border-radius: 12px;
  border: 1px solid #ECE3DB;
}

.cart-item-details h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #2B170B;
  margin-bottom: 0.2rem;
}

.cart-item-customs {
  font-size: 0.75rem;
  color: #796658;
  line-height: 1.35;
}

.cart-item-price-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

/* Order Tracker Live Status */
.tracker-card {
  background: white;
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
  border: 1px solid #EFE8E2;
}

.tracker-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  margin: 1.5rem 0 1rem 1rem;
}

.tracker-timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 15px;
  width: 2px;
  background: #E5DCD4;
}

.timeline-step {
  display: flex;
  gap: 1rem;
  position: relative;
}

.step-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F5ECE5;
  border: 2px solid #DBCBBF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  z-index: 2;
  background-color: white;
}

.timeline-step.active .step-icon-wrap {
  background: #D97706;
  border-color: #D97706;
  color: white;
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.4);
}

.timeline-step.completed .step-icon-wrap {
  background: #10B981;
  border-color: #10B981;
  color: white;
}

.step-content h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #2B170B;
}

.step-content p {
  font-size: 0.75rem;
  color: #7D6B5E;
}
