/* ============================================================
   VINE MELON PWA - Design System & Custom Styles
   Colors:
     Background: #F6F2E9 (Cream)
     Primary (Sage Green): #687F5E
     Secondary (Olive Green): #8FA17A
     Accent Gold: #D6C089
     Button Brown: #5C3D2E (Rich Luxury Brown)
     Button Brown Hover: #462D21
     Dark Text: #273322 (Deep Olive Charcoal)
   ============================================================ */

:root {
  --bg-cream: #F6F2E9;
  --bg-cream-card: #FFFFFF;
  --primary-sage: #687F5E;
  --primary-sage-hover: #566A4D;
  --secondary-olive: #8FA17A;
  --accent-gold: #D6C089;
  --accent-gold-light: #F9F5EA;
  --btn-brown: #5C3D2E;
  --btn-brown-hover: #462D21;
  --text-dark: #273322;
  --text-muted: #5F6B58;
  --border-light: #E2DBCF;
  --shadow-sm: 0 2px 8px rgba(92, 61, 46, 0.08);
  --shadow-md: 0 4px 16px rgba(92, 61, 46, 0.12);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.app-wrapper {
  width: 100%;
  max-width: 480px;
  background-color: var(--bg-cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 40px rgba(0,0,0,0.06);
}

/* ------------------------------------------------------------
   B. Sticky Header Section
   ------------------------------------------------------------ */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(246, 242, 233, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: contain;
  background: #FFFFFF;
  padding: 2px;
  border: 1.5px solid var(--primary-sage);
  box-shadow: var(--shadow-sm);
}

.header-brand-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 1.5px;
  color: var(--primary-sage);
  line-height: 1;
}

.header-sub-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary-olive);
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

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

/* Compact Segmented Language Toggle (ID | EN | CHN) */
.lang-pill-toggle {
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  border: 1.5px solid var(--primary-sage);
  border-radius: 20px;
  padding: 2px 6px;
  gap: 4px;
  height: 32px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.lang-pill-btn {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 12px;
  transition: all 0.15s ease;
  outline: none;
}

.lang-pill-btn:hover {
  color: var(--primary-sage);
}

.lang-pill-btn.active {
  background: var(--primary-sage);
  color: #FFFFFF !important;
  font-weight: 800;
}

.lang-divider {
  font-size: 0.7rem;
  color: var(--border-light);
  user-select: none;
}

/* Styled Native Language Select */
.lang-select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: 18px;
  padding: 2px 6px 2px 24px;
  box-shadow: var(--shadow-sm);
  height: 34px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.lang-select-wrapper:hover, .lang-select-wrapper:focus-within {
  border-color: var(--primary-sage);
  box-shadow: 0 0 0 2px rgba(47, 77, 50, 0.12);
}

.lang-globe-icon {
  position: absolute;
  left: 6px;
  font-size: 0.82rem;
  pointer-events: none;
}

.lang-native-select {
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary-sage);
  cursor: pointer;
  outline: none;
  padding-right: 2px;
}

/* Language Switcher Dropdown (Fallback) */
.lang-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.lang-dropdown-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 4px 9px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-sage);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  height: 38px;
}

.lang-dropdown-btn:hover {
  background: var(--bg-card);
  border-color: var(--primary-sage);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  min-width: 145px;
  z-index: 1000;
  overflow: hidden;
}

.lang-dropdown-menu.show {
  display: flex;
}

.lang-option-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.lang-option-item:hover {
  background: #F6F2E9;
  color: var(--primary-sage);
}

.lang-option-item.active {
  background: rgba(47, 77, 50, 0.08);
  color: #2F4D32;
  font-weight: 800;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--btn-brown);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-cream);
}

.user-avatar-small {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* ------------------------------------------------------------
   C. Main Content Section (Order Page)
   ------------------------------------------------------------ */
.main-content {
  padding: 16px 20px 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

/* Products Swipe Carousel */
.products-swipe-wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.products-swipe-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
}

.products-swipe-track::-webkit-scrollbar {
  display: none;
}

.product-card-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.swipe-indicator-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--secondary-olive);
}

/* Membuat container gambar utama berbentuk persegi (square 1:1) */
.hero-visual-card {
  width: 100%;
  aspect-ratio: 1 / 1; /* Memastikan lebar dan tinggi selalu sama (persegi) */
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.visual-carousel-container {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Memastikan foto di dalamnya pas memenuhi kotak persegi tanpa terdistorsi */
.visual-carousel-container img.carousel-slide {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Memotong gambar secara proporsional agar mengisi penuh area persegi */
  position: absolute;
  top: 0;
  left: 0;
}
.carousel-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.carousel-slide.active {
  display: block;
  animation: fadeIn 0.4s ease-in-out;
}

.carousel-nav-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
  background: rgba(0,0,0,0.3);
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: white;
  width: 18px;
  border-radius: 10px;
}

.product-tag-float {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(92, 61, 46, 0.9);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Main Hero Brand Story Card Style */
.main-brand-story-card {
  background: linear-gradient(180deg, #3E4E37 0%, #273322 100%);
  color: #F6F2E9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--accent-gold);
  box-shadow: 0 8px 24px rgba(39, 51, 34, 0.25);
  display: flex;
  flex-direction: column;
  position: relative;
}

.main-brand-photo-header {
  width: 100%;
  height: 240px;
  background: url('assets/greenhouse_rows.jpg') center/cover no-repeat;
  position: relative;
}

.main-brand-photo-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.4) 60%, #3E4E37 100%);
}

.main-brand-body-container {
  padding: 16px 22px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}

.main-brand-tag {
  align-self: center;
  background: var(--accent-gold);
  color: #3B2E0E;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main-brand-header-title {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1.15;
  letter-spacing: 1px;
}

.main-brand-poem-box {
  background: rgba(255, 255, 255, 0.08);
  border-top: 1px dashed rgba(214, 192, 137, 0.5);
  border-bottom: 1px dashed rgba(214, 192, 137, 0.5);
  padding: 14px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.08rem;
  color: #E6E1D5;
  line-height: 1.6;
}

.main-brand-body-text {
  font-size: 0.94rem;
  color: #D6D0C3;
  line-height: 1.65;
}

/* Pre-Order Scarcity Card */
.scarcity-cta-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid #C4AE77;
  box-shadow: 0 6px 20px rgba(214, 192, 137, 0.4);
  background-color: var(--accent-gold);
  position: relative;
}

.scarcity-photo-header {
  width: 100%;
  height: 280px;
  background: url('assets/honeyglobe_melon.jpg') center/cover no-repeat;
  position: relative;
}

.scarcity-photo-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 70%, #DFCE9F 100%);
}

.scarcity-content-inner {
  background: linear-gradient(135deg, #DFCE9F 0%, #D6C089 100%);
  padding: 16px 20px 22px 20px;
  text-align: center;
  color: #3D321A;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scarcity-badge-pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #8C6A15;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #E63946;
  border-radius: 50%;
  animation: blinkPulse 1.2s infinite;
}

.stock-title-h1 {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.15;
  color: #2E250F;
  margin: 4px 0;
}

.stock-number-highlight {
  color: #8C1C13;
  text-decoration: underline;
  text-decoration-color: rgba(140, 28, 19, 0.3);
}

.po-countdown-box {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.countdown-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #4A3C1A;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.countdown-digits-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.time-block {
  background: #3D321A;
  color: var(--accent-gold);
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
}

.time-block span:first-child {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
}

.time-block .unit {
  font-size: 0.62rem;
  color: #D6D0C3;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Product Info */
.product-info-block {
  background: white;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.product-variety-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary-olive);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-title-large {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
}

.product-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.product-subtitle, #frontendDescDisplay {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 6px;
  white-space: pre-line; /* Agar enter / new line dari admin ikut merender baris baru */
}

/* Product Thumbnails Strip inside Title Card */
.product-thumbnails-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0 4px 0;
  -webkit-overflow-scrolling: touch;
}
.product-thumbnails-strip::-webkit-scrollbar {
  height: 4px;
}
.product-thumb-item {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid var(--border-light);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
  background: #FAF8F5;
}
.product-thumb-item:hover, .product-thumb-item:active {
  transform: scale(1.08);
  border-color: var(--primary-sage);
  box-shadow: var(--shadow-sm);
}

/* Lightbox Modal */
.lightbox-modal-container {
  max-width: 440px;
  width: 90%;
  background: white;
  border-radius: 20px;
  padding: 16px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
  margin: auto;
}
.lightbox-img-full {
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: 12px;
  background: #FAF8F5;
  border: 1px solid var(--border-light);
}

/* Collapsible Accordion Cards */
.collapsible-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.accordion-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: white;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.accordion-header {
  background-color: var(--primary-sage);
  color: white;
  padding: 14px 18px;
  font-size: 0.98rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

.accordion-header:hover {
  background-color: var(--primary-sage-hover);
}

.accordion-icon-badge {
  margin-right: 8px;
  font-size: 1.1rem;
}

.accordion-title-flex {
  display: flex;
  align-items: center;
}

.chevron-icon {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.accordion-card.open .chevron-icon {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
  background-color: #FAF8F5;
}

.accordion-card.open .accordion-body {
  max-height: 2500px;
  transition: max-height 0.5s ease-in-out;
}

.card-photo-banner-expanded {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.card-photo-gradient-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.2) 60%, #FAF8F5 100%);
}

.accordion-content-inner {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.benefit-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.benefit-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--primary-sage);
  display: flex;
  align-items: center;
  gap: 6px;
}

.benefit-desc {
  font-size: 0.88rem;
  color: var(--text-dark);
  line-height: 1.45;
}

/* Standalone Gratitude Card */
.gratitude-standalone-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--primary-sage);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  position: relative;
}

.gratitude-photo-header {
  width: 100%;
  height: 220px;
  background: url('assets/greenhouse_farmers.jpg') center/cover no-repeat;
  position: relative;
}

.gratitude-photo-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 60%, #FFFFFF 100%);
}

.gratitude-body-content {
  padding: 16px 20px 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gratitude-header {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--primary-sage);
  letter-spacing: 1px;
  line-height: 1.2;
}

.gratitude-poem-body {
  font-size: 0.92rem;
  color: var(--text-dark);
  line-height: 1.6;
}

/* Pricing & Shipping Box */
.pricing-shipping-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-text-large {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.price-number {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: var(--btn-brown);
  font-weight: 800;
}

.shipping-text-badge {
  background-color: var(--accent-gold-light);
  border: 1px solid var(--accent-gold);
  color: #635025;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Bulk Promo Details styling */
.bulk-promo-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.bulk-promo-item {
  background: #FFFDF9;
  border: 1px dashed #D6C089;
  border-left: 4px solid var(--accent-gold);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #4A3C1A;
  transition: all 0.2s ease;
}

.bulk-promo-item.active-tier {
  background: #FAF5E8;
  border: 1px solid var(--btn-brown);
  border-left: 4px solid var(--btn-brown);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(92, 61, 46, 0.1);
}

/* Copy buttons for bank transfer */
.btn-copy-tag {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--btn-brown);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  user-select: none;
}
.btn-copy-tag:hover, .btn-copy-tag:active {
  background: var(--btn-brown);
  color: white;
  border-color: var(--btn-brown);
}

/* Sticky Bottom Bar */
.cta-button-wrapper {
  position: sticky;
  bottom: 16px;
  z-index: 90;
  padding: 0 4px;
}

.cta-flex-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.qty-select-dropdown {
  background-color: white;
  border: 2px solid var(--btn-brown);
  color: var(--btn-brown);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 15px 12px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(92, 61, 46, 0.2);
  outline: none;
  transition: all 0.2s ease;
  min-width: 105px;
  text-align: center;
}

.btn-primary-brown {
  flex: 1;
  background-color: var(--btn-brown);
  color: white;
  border: 1.5px solid #7D5440;
  padding: 16px 20px;
  border-radius: 30px;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(92, 61, 46, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s ease;
}

.btn-primary-brown:disabled {
  background-color: #8C8C8C !important;
  border-color: #777777 !important;
  color: #E8E8E8 !important;
  cursor: not-allowed !important;
  opacity: 0.65 !important;
  box-shadow: none !important;
  transform: none !important;
}

/* ADMIN PWA STYLING */
.admin-tab-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}

.admin-tab-btn {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  background: white;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.admin-tab-btn.active {
  background: var(--btn-brown);
  color: white;
  border-color: var(--btn-brown);
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

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

.admin-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.bulk-tier-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FAF8F5;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 6px;
  border: 1px solid var(--border-light);
}

/* OPTIMIZED THERMAL A6 PRINT STYLING (100mm x 150mm - WHITE BACKGROUND, MAXIMIZED ADDRESS & LOGO) */
.thermal-a6-wrapper {
  width: 100mm;
  min-height: 148mm;
  background: #FFFFFF !important;
  color: #000000 !important;
  border: 2px dashed #000000;
  padding: 10mm 8mm;
  font-family: Arial, Helvetica, sans-serif;
  margin: 0 auto 16px auto;
  box-sizing: border-box;
}

.thermal-header-flex {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid #000;
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.thermal-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.thermal-title-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
}

.thermal-address-box {
  background: #FFFFFF !important;
  border: 2.5px solid #000000;
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
}

.thermal-recipient-name {
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.thermal-recipient-address {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

@media print {
  @page {
    size: 100mm 150mm;
    margin: 0;
  }
  body, html {
    background: #FFFFFF !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body * {
    visibility: hidden;
  }
  #thermalPrintContainer, #thermalPrintContainer * {
    visibility: visible;
  }
  #thermalPrintContainer {
    position: absolute;
    left: 0;
    top: 0;
    width: 100mm;
    height: 150mm;
    padding: 6mm;
    background: #FFFFFF !important;
    color: #000000 !important;
  }
}

.leaflet-map-canvas {
  width: 100%;
  height: 240px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  margin-top: 8px;
  z-index: 1;
}

/* Footer Section */
.footer-section {
  background-color: #EFECE4;
  border-top: 1px solid var(--border-light);
  padding: 24px 20px 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  text-align: center;
}

.footer-line-1 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
}

.footer-line-2 {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--btn-brown);
  text-transform: uppercase;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-container {
  width: 100%;
  max-width: 480px;
  background: white;
  border-radius: 24px 24px 0 0;
  padding: 24px 20px 32px 20px;
  box-shadow: var(--shadow-lg);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

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

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
}

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

/* Toast Notification */
.toast-notification {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #273322;
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.toast-notification.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
