/* ============================================================================
   GELATO BELLA DESIGN SYSTEM & STYLING (CLEAN ARTISANAL WHITE THEME)
   Aesthetic: Italian Boutique, Crisp White, Soft Pastel Gradients, Modern Typography
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Brand Accent Colors */
  --primary-rose: #E85D75;
  --primary-rose-light: #FFF0F3;
  --primary-gold: #D97706;
  --primary-gold-light: #FEF3C7;
  --pistachio-green: #3B7A57;
  --pistachio-light: #ECFDF5;
  --chocolate-brown: #4A2E2B;
  --mango-amber: #EA580C;

  /* Clean Light Surface Palette */
  --bg-main: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-sidebar: #FFFFFF;
  --border-light: #E2E8F0;
  --border-subtle: #F1F5F9;
  
  /* Text Colors */
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  /* Typography & Radii */
  --font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Elevation Shadows */
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 36px rgba(15, 23, 42, 0.08);

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background Soft Pastel Orbs on White */
.bg-decorations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  animation: orbFloat 22s ease-in-out infinite alternate;
}

.orb-1 {
  top: -10%;
  left: -5%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, #FFE4E6, transparent 70%);
}

.orb-2 {
  bottom: -15%;
  right: -5%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, #FFEDD5, transparent 70%);
}

.orb-3 {
  top: 30%;
  right: 20%;
  width: 35vw;
  height: 35vw;
  background: radial-gradient(circle, #D1FAE5, transparent 70%);
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.08); }
  100% { transform: translate(-20px, 30px) scale(0.95); }
}

/* App Outer Shell */
.app-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Crisp White Top Navigation */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.75rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-rose), #FB8500);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 14px rgba(232, 93, 117, 0.3);
}

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.brand-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.nav-routes {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #F1F5F9;
  padding: 0.35rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.7);
}

.nav-link.active {
  color: #FFF;
  background: linear-gradient(135deg, var(--primary-rose), #D0435C);
  box-shadow: 0 4px 12px rgba(232, 93, 117, 0.3);
}

.weather-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFF7ED;
  border: 1px solid #FFEDD5;
  color: #C2410C;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
}

/* ============================================================================
   POS LAYOUT (iPad Touch Optimized Screen - White Theme)
   ============================================================================ */

.pos-container {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 1.25rem;
  padding: 1.25rem;
  height: calc(100vh - 67px);
}

@media (max-width: 1024px) {
  .pos-container {
    grid-template-columns: 1fr 340px;
    padding: 0.85rem;
    gap: 0.85rem;
  }
}

.pos-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.selection-bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-header h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 0.65rem;
}

.chip-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  user-select: none;
  box-shadow: var(--shadow-sm);
}

.chip-card:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.chip-card.selected {
  background: #FFF1F2;
  border: 2px solid var(--primary-rose);
  box-shadow: 0 4px 14px rgba(232, 93, 117, 0.2);
}

.chip-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.chip-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.chip-price {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--primary-gold);
  margin-top: 0.15rem;
}

/* Flavor Cards & Tub Gauges (White Palette) */
.flavor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 1rem;
}

.flavor-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.flavor-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.flavor-header {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.flavor-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid var(--border-light);
  flex-shrink: 0;
}

.flavor-meta h3 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.flavor-cat {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  font-weight: 600;
}

.tags-row {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.3rem;
  flex-wrap: wrap;
}

.tag-badge {
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
}

.tag-vegan { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.tag-popular { background: #FFF7ED; color: #C2410C; border: 1px solid #FFEDD5; }

.tub-gauge-container {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.tub-gauge-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.tub-progress-bar {
  height: 8px;
  background: #F1F5F9;
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  border: 1px solid #E2E8F0;
}

.tub-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.fill-high { background: linear-gradient(90deg, #10B981, #059669); }
.fill-med { background: linear-gradient(90deg, #F59E0B, #D97706); }
.fill-low { background: linear-gradient(90deg, #EF4444, #DC2626); }

.flavor-action-btn {
  width: 100%;
  padding: 0.65rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: #F8FAFC;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
}

.flavor-action-btn:hover {
  background: linear-gradient(135deg, var(--primary-rose), #D0435C);
  color: #FFF;
  border-color: var(--primary-rose);
  box-shadow: 0 4px 12px rgba(232, 93, 117, 0.3);
}

/* ============================================================================
   RIGHT SIDEBAR: POS CART & LOYALTY (WHITE THEME)
   ============================================================================ */

.pos-cart-sidebar {
  background: var(--bg-sidebar);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.customer-pos-bar {
  padding: 1rem;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cust-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.cust-search-input {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem 0.65rem 2.25rem;
  color: var(--text-main);
  font-size: 0.85rem;
}

.cust-search-input:focus {
  outline: none;
  border-color: var(--primary-rose);
  box-shadow: 0 0 0 3px rgba(232, 93, 117, 0.15);
}

.cust-search-icon {
  position: absolute;
  left: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  z-index: 2;
}

.cust-search-icon:hover {
  color: var(--primary-rose);
}

.cust-search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  max-height: 220px;
  overflow-y: auto;
  z-index: 100;
  margin-top: 0.25rem;
}

.cust-search-item {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid #F1F5F9;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-fast);
}

.cust-search-item:hover {
  background: var(--primary-rose-light);
}

.cust-search-item:last-child {
  border-bottom: none;
}

.cust-profile-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.cust-profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cust-profile-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-main);
}

.cust-profile-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.15rem;
}

.applied-voucher-tag {
  margin-top: 0.6rem;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #047857;
  font-weight: 700;
}

.btn-claim-voucher-trigger {
  margin-top: 0.6rem;
  width: 100%;
  background: #FEF3C7;
  border: 1px dashed #F59E0B;
  color: #B45309;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.45rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: var(--transition-fast);
}

.btn-claim-voucher-trigger:hover {
  background: #FDE68A;
}

.points-pill {
  background: var(--primary-gold-light);
  color: #B45309;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid #FDE68A;
}

.cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.empty-cart {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.empty-cart-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.cart-item-row {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.item-desc h5 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
}

.item-desc p {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.3;
}

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

.item-total {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--primary-gold);
}

.remove-item-btn {
  background: none;
  border: none;
  color: #EF4444;
  cursor: pointer;
  font-size: 0.8rem;
  opacity: 0.8;
}

.remove-item-btn:hover { opacity: 1; text-decoration: underline; }

.pos-reward-redemption {
  padding: 0.75rem 1rem;
  background: #FEF3C7;
  border-top: 1px solid #FDE68A;
  border-bottom: 1px solid #FDE68A;
}

.reward-select {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #F59E0B;
  color: var(--text-main);
  padding: 0.5rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
}

.cart-footer {
  padding: 1rem;
  background: #F8FAFC;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.summary-row.total-row {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-light);
}

.pay-btn {
  width: 100%;
  padding: 0.95rem;
  border-radius: var(--radius-md);
  border: none;
  background: linear-gradient(135deg, var(--primary-rose), #D0435C);
  color: #FFF;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(232, 93, 117, 0.35);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 93, 117, 0.45);
}

/* ============================================================================
   MODALS (Clean White Theme)
   ============================================================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 480px;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.75rem;
}

.modal-header h3 {
  font-size: 1.15rem;
  color: var(--text-main);
  font-weight: 800;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

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

.form-input {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  color: var(--text-main);
  font-size: 0.9rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-rose);
  background: #FFFFFF;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-rose), #D0435C);
  color: #FFF;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(232, 93, 117, 0.25);
}

/* ============================================================================
   ADMIN DASHBOARD & MARKETING STYLING (WHITE THEME)
   ============================================================================ */

.admin-container {
  padding: 1.5rem;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.custom-table th {
  padding: 0.75rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  font-weight: 700;
}

.custom-table td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.badge-tier {
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.tier-novice { background: #F1F5F9; color: #475569; }
.tier-enthusiast { background: #FFF7ED; color: #C2410C; }
.tier-connoisseur { background: #FFF1F2; color: #BE123C; }

/* Customer Group Badges */
.group-retail { background: #F1F5F9; color: #475569; }
.group-regular { background: #FFF7ED; color: #C2410C; }
.group-vip { background: #FFF1F2; color: #BE123C; }
.group-wholesale { background: #F3E8FF; color: #6B21A8; }
.group-staff { background: #E0F2FE; color: #0369A1; }
.group-student { background: #ECFDF5; color: #047857; }

/* ============================================================================
   STOREFRONT MODERN REDESIGN
   ============================================================================ */

.store-container {
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* Modern Hero Banner */
.store-hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(251, 133, 0, 0.05));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 600px;
  z-index: 2;
}

.hero-tag {
  color: var(--primary-gold);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 1rem;
}

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

.hero-visual {
  z-index: 2;
  flex-shrink: 0;
  margin-right: 2rem;
}

.hero-img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  border: 6px solid #FFF;
  transform: rotate(15deg);
  transition: transform 0.4s ease;
}

.store-hero:hover .hero-img {
  transform: rotate(0deg) scale(1.05);
}

/* Store Layout Grid */
.store-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
}

@media (max-width: 1024px) {
  .store-layout {
    grid-template-columns: 1fr;
  }
}

.store-main {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.section-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.store-sizes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.store-flavors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* Sidebar Elements */
.store-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 90px;
  align-self: start;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.loyalty-header h3 {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  font-weight: 800;
}

.loyalty-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.cart-header h3 {
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  font-weight: 800;
}

.fulfillment-toggle {
  display: flex;
  background: #F1F5F9;
  border-radius: var(--radius-full);
  padding: 0.35rem;
  margin-bottom: 1.25rem;
}

.toggle-btn {
  flex: 1;
  padding: 0.65rem;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.toggle-btn.active {
  background: #FFF;
  color: var(--primary-rose);
  box-shadow: var(--shadow-sm);
}

.cart-items-wrapper {
  margin-bottom: 1.5rem;
  max-height: 350px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.checkout-forms {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cart-summary {
  border-top: 1px dashed var(--border-light);
  padding-top: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-checkout {
  font-size: 1.1rem;
  padding: 1rem;
}

.full-width {
  width: 100%;
}

/* ============================================================================
   AUTHENTICATION OVERLAYS (POS & ADMIN)
   ============================================================================ */

.auth-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(248, 250, 252, 0.85); /* Light blurred bg */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

.auth-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.auth-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 420px;
  text-align: center;
}

.auth-card h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.auth-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* POS Keypad */
.pin-display {
  font-size: 2rem;
  letter-spacing: 0.5rem;
  font-weight: 800;
  color: var(--text-main);
  background: #F1F5F9;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.pin-key {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.pin-key:active {
  background: #F1F5F9;
  transform: scale(0.95);
}

.pin-key.key-action {
  background: #F8FAFC;
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* Admin Login Inputs */
.auth-form .form-group {
  text-align: left;
  margin-bottom: 1.25rem;
}

.auth-form .btn-primary {
  width: 100%;
  padding: 0.85rem;
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* ============================================================================
   EASYSTORE POWER FEATURES STYLES
   ============================================================================ */

/* Promo Code Input */
.promo-box {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.promo-input {
  flex: 1;
  padding: 0.65rem 0.75rem;
  border: 1px dashed var(--primary-gold);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  text-transform: uppercase;
  background: #FFF;
}

.promo-input:focus {
  outline: none;
  border-color: #D97706;
}

.btn-promo {
  background: var(--primary-gold);
  color: #FFF;
  border: none;
  border-radius: var(--radius-md);
  padding: 0 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-promo:hover {
  background: #D97706;
}

/* WhatsApp Button */
.btn-whatsapp {
  background: #25D366;
  color: #FFF;
  border: none;
  border-radius: var(--radius-lg);
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
  margin-top: 0.75rem;
}

.btn-whatsapp:hover {
  background: #1EBE55;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* Lalamove Loading */
.lalamove-loading {
  background: #F8FAFC;
  border: 1px dashed var(--primary-rose);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-main);
  display: none;
  margin-bottom: 0.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--primary-rose);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Mock Payment Processing Modal */
.payment-processing-modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(15, 23, 42, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  flex-direction: column;
}

.payment-processing-modal.hidden {
  display: none;
}

.payment-processing-card {
  background: #1E293B;
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  border: 1px solid #334155;
}

.gateway-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #38BDF8;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gateway-spinner {
  width: 45px;
  height: 45px;
  border: 4px solid #38BDF8;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.5rem;
}

/* ============================================================================
   ADMIN SIDEBAR LAYOUT
   ============================================================================ */
.admin-layout {
  display: grid !important;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: #F8FAFC;
}

.admin-sidebar {
  background: #FFFFFF;
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 1.5rem 1rem;
}

.admin-sidebar .brand {
  margin-bottom: 2rem;
  padding: 0 0.5rem;
}

.admin-sidebar .brand h1 {
  font-size: 1.2rem;
}

.admin-sidebar .brand p {
  font-size: 0.75rem;
}

.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.admin-sidebar-nav .admin-tab-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 0.8rem 1rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: left;
}

.admin-sidebar-nav .admin-tab-btn:hover {
  background: #F1F5F9;
  color: var(--text-main);
}

.admin-sidebar-nav .admin-tab-btn.active {
  background: var(--primary-rose-light);
  color: var(--primary-rose);
}

.admin-sidebar-links {
  margin-top: auto;
  border-top: 1px dashed var(--border-light);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-sidebar-links .nav-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.admin-sidebar-links .nav-link:hover {
  background: #F1F5F9;
  color: var(--text-main);
}

.admin-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

.admin-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-content-area {
  padding: 2rem;
  flex: 1;
}

/* ============================================================================
   VISUAL VOUCHERS
   ============================================================================ */
.voucher-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.voucher-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFF;
  border: 1px dashed var(--primary-gold);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  transition: var(--transition-fast);
}

.voucher-card:hover:not(.disabled) {
  border-color: #D97706;
  box-shadow: 0 2px 8px rgba(245,158,11,0.2);
}

.voucher-card.disabled {
  opacity: 0.6;
  border-color: #E2E8F0;
  background: #F8FAFC;
}

.voucher-info {
  text-align: left;
}

.voucher-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.1rem;
}

.voucher-pts {
  font-size: 0.75rem;
  color: var(--primary-gold);
  font-weight: 700;
}

.voucher-card.disabled .voucher-pts {
  color: var(--text-muted);
}

.btn-redeem {
  background: var(--primary-gold);
  color: #FFF;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-redeem:hover:not(:disabled) {
  background: #D97706;
}

.btn-redeem:disabled {
  background: #CBD5E1;
  color: #94A3B8;
  cursor: not-allowed;
}

.btn-redeem.active-redeemed {
  background: #059669; /* green */
}
