/* ==========================================================================
   FORE COFFEE - ARTISANAL MODERN SPECIALTY COFFEE ORDER EXPERIENCE
   Theme: Deep Forest Green (#0c3b2e), Warm Cream (#faf9f5), & Golden Accent
   ========================================================================== */

:root {
  color-scheme: light;
  --bg: #f7f9f7;
  --bg-card: #ffffff;
  --bg-subtle: #edf3ee;
  --border: #e2ebe4;
  --border-focus: #0c3b2e;
  --text-main: #14241b;
  --text-muted: #5f7467;
  --text-dim: #8ba093;
  --brand: #0c3b2e;
  --brand-hover: #134e3e;
  --brand-light: #e8f3ec;
  --accent-gold: #c2882a;
  --accent-green: #10b981;
  --danger: #dc2626;
  --shadow-sm: 0 2px 8px rgba(12, 59, 46, 0.05);
  --shadow-md: 0 8px 24px rgba(12, 59, 46, 0.08);
  --shadow-lg: 0 16px 40px rgba(12, 59, 46, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1612;
  --bg-card: #18221c;
  --bg-subtle: #202d25;
  --border: #293a30;
  --border-focus: #10b981;
  --text-main: #f0fdf4;
  --text-muted: #9bb3a4;
  --text-dim: #60796b;
  --brand: #10b981;
  --brand-hover: #059669;
  --brand-light: #162f22;
  --accent-gold: #fbbf24;
  --accent-green: #34d399;
  --danger: #f87171;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: transparent;
}

/* ==========================================================================
   1. APP HEADER / NAVBAR
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: all 0.25s ease;
}

:root[data-theme="dark"] .app-header {
  background: rgba(24, 34, 28, 0.88);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
}

.brand-logo-circle {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #0c3b2e, #145946);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(12, 59, 46, 0.25);
}

.logo-leaf {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--brand);
}

:root[data-theme="dark"] .brand-title {
  color: #f0fdf4;
}

.brand-tagline {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Outlet Quick Pill */
.nav-store-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  max-width: 380px;
}

.nav-store-pill:hover {
  border-color: var(--border-focus);
  transform: translateY(-1px);
}

.store-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  flex-shrink: 0;
}

.store-dot.pulsing {
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.store-info-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  white-space: nowrap;
}

.store-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-dim);
}

.store-name-display {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  text-overflow: ellipsis;
  overflow: hidden;
}

.store-change-tag {
  font-size: 11px;
  font-weight: 700;
  background: var(--brand);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  margin-left: 4px;
}

/* Nav Controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 220px;
}

.nav-search-wrap input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  font-size: 13px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.nav-search-wrap input:focus {
  border-color: var(--border-focus);
  width: 260px;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.search-icon {
  position: absolute;
  left: 10px;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.promo-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(194, 136, 42, 0.15), rgba(194, 136, 42, 0.08));
  color: var(--accent-gold);
  border: 1px solid rgba(194, 136, 42, 0.3);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

.icon-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
}

.icon-action-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--border-focus);
  transform: translateY(-1px);
}

:root[data-theme="dark"] .theme-icon-light { display: block; }
:root[data-theme="dark"] .theme-icon-dark { display: none; }
:root:not([data-theme="dark"]) .theme-icon-light { display: none; }
:root:not([data-theme="dark"]) .theme-icon-dark { display: block; }

/* Cart Button */
.nav-cart-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--brand);
  color: #ffffff;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: 0 4px 14px rgba(12, 59, 46, 0.28);
  transition: all 0.2s ease;
}

.nav-cart-btn:hover {
  background: var(--brand-hover);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(12, 59, 46, 0.38);
}

.cart-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cart-icon-wrap svg {
  width: 19px;
  height: 19px;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -9px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  line-height: 17px;
  text-align: center;
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-card);
}

/* ==========================================================================
   2. HERO PROMO BANNER
   ========================================================================== */
.main-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px 80px 20px;
}

.hero-banner {
  background: linear-gradient(135deg, #0c3b2e 0%, #154c3b 60%, #1c624d 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.hero-promo-tag {
  background: rgba(251, 191, 36, 0.2);
  color: #fef08a;
  border: 1px solid rgba(251, 191, 36, 0.4);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.hero-status-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.hero-status-pill.open {
  background: rgba(16, 185, 129, 0.25);
  color: #a7f3d0;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.hero-status-pill.closed {
  background: rgba(239, 68, 68, 0.25);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 22px;
  line-height: 1.6;
}

.hero-store-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-store-details {
  display: flex;
  align-items: center;
  gap: 12px;
}

.h-icon {
  font-size: 24px;
}

.hero-store-details b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.hero-store-details p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.8);
  margin: 1px 0 2px 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-store-details small {
  font-size: 11px;
  color: #a7f3d0;
}

.btn-secondary-light {
  background: #ffffff;
  color: #0c3b2e;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-secondary-light:hover {
  background: #f0fdf4;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   3. STICKY CATEGORY NAVIGATION
   ========================================================================== */
.category-sticky-bar {
  position: sticky;
  top: 67px;
  z-index: 90;
  background: var(--bg);
  padding: 10px 0 14px 0;
  margin-bottom: 16px;
}

.category-scroll-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 2px;
}

.category-scroll-inner::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.cat-chip:hover {
  border-color: var(--border-focus);
  transform: translateY(-1px);
}

.cat-chip.active {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(12, 59, 46, 0.2);
}

/* ==========================================================================
   4. PRODUCT CATALOG GRID
   ========================================================================== */
.catalog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.catalog-count-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-md);
}

.product-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-subtle);
  margin-bottom: 14px;
}

.product-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-thumb-wrap img {
  transform: scale(1.04);
}

.product-discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #dc2626;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
}

.product-cat-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--brand);
  margin-bottom: 4px;
}

:root[data-theme="dark"] .product-cat-tag {
  color: var(--accent-green);
}

.product-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 6px;
}

.product-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

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

.price-strike {
  font-size: 11.5px;
  text-decoration: line-through;
  color: var(--text-dim);
}

.price-discounted {
  font-size: 17px;
  font-weight: 800;
  color: var(--brand);
}

:root[data-theme="dark"] .price-discounted {
  color: var(--accent-green);
}

.btn-add-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.product-card:hover .btn-add-circle {
  transform: scale(1.1);
  background: var(--brand-hover);
}

/* ==========================================================================
   5. SLIDE-OUT CART DRAWER
   ========================================================================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 150;
  transition: opacity 0.3s ease;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100vw);
  background: var(--bg-card);
  z-index: 160;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.open {
  transform: translateX(0);
}

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

.drawer-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-title-group h3 {
  font-size: 18px;
  font-weight: 800;
}

.badge-count {
  background: var(--bg-subtle);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.btn-text-danger {
  font-size: 12px;
  font-weight: 600;
  color: var(--danger);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.btn-text-danger:hover {
  background: rgba(220, 38, 38, 0.1);
}

.drawer-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--text-muted);
  background: var(--bg-subtle);
}

.drawer-close-btn:hover {
  color: var(--text-main);
  background: var(--border);
}

.drawer-store-bar {
  background: var(--bg-subtle);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.d-pin {
  font-size: 16px;
}

.d-text small {
  display: block;
  font-size: 10.5px;
  color: var(--text-dim);
}

.d-text b {
  font-size: 12.5px;
  color: var(--text-main);
}

.drawer-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.cart-item-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cic-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.cic-title {
  font-size: 14.5px;
  font-weight: 700;
}

.cic-delete-btn {
  color: var(--text-dim);
  font-size: 16px;
  padding: 2px 6px;
  border-radius: 4px;
}

.cic-delete-btn:hover {
  color: var(--danger);
  background: rgba(220, 38, 38, 0.1);
}

.cic-specs {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.cic-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.cic-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--brand);
}

:root[data-theme="dark"] .cic-price {
  color: var(--accent-green);
}

.stepper-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-card);
  overflow: hidden;
}

.stepper-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.stepper-btn:hover {
  background: var(--bg-subtle);
}

.stepper-val {
  min-width: 26px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
}

.drawer-footer {
  padding: 18px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.voucher-applied-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--brand-light);
  border: 1px dashed var(--brand);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 14px;
}

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

.v-icon {
  font-size: 20px;
}

.v-left b {
  display: block;
  font-size: 12px;
  color: var(--brand);
}

.v-left small {
  font-size: 11px;
  color: var(--text-muted);
}

.v-tag {
  background: #dc2626;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}

.summary-breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text-muted);
}

.sum-row.discount {
  color: var(--accent-green);
  font-weight: 700;
}

.sum-row.grand-total {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 4px;
}

.sum-row.grand-total b {
  color: var(--brand);
}

:root[data-theme="dark"] .sum-row.grand-total b {
  color: var(--accent-green);
}

.btn-checkout-primary {
  width: 100%;
  background: var(--brand);
  color: #ffffff;
  font-weight: 700;
  font-size: 14.5px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(12, 59, 46, 0.3);
  transition: all 0.2s ease;
}

.btn-checkout-primary:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
}

.btn-checkout-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.empty-cart-state {
  text-align: center;
  padding: 48px 16px;
}

.empty-cart-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-cart-state h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.empty-cart-state p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   6. FLOATING MOBILE CART BAR
   ========================================================================== */
.floating-mobile-bar {
  display: none;
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 16px;
  background: var(--brand);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 120;
}

.floating-mobile-bar.hidden {
  display: none !important;
}

.floating-bar-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.float-count-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
}

.float-badge {
  background: #ffffff;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.float-price-wrap small {
  display: block;
  font-size: 10px;
  opacity: 0.85;
}

.float-price-wrap b {
  font-size: 15px;
  font-weight: 800;
}

.btn-float-action {
  background: #ffffff;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   7. MODALS STYLING (DIALOG)
   ========================================================================== */
.custom-modal {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  background: transparent;
  max-width: 90vw;
  max-height: 90vh;
  margin: auto;
}

.custom-modal::backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-card {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-medium { width: 520px; }
.modal-large { width: 680px; }
.modal-qris { width: 480px; }

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 19px;
  font-weight: 800;
}

.modal-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.modal-close-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.modal-close-icon:hover {
  background: var(--border);
  color: var(--text-main);
}

/* Store Modal */
.store-search-field {
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-subtle);
}

.store-search-field input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--text-main);
}

.store-modal-list {
  max-height: 420px;
  overflow-y: auto;
  padding: 8px 12px;
}

.store-choice-item {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.store-choice-item:hover {
  background: var(--bg-subtle);
  border-color: var(--border);
}

.store-choice-item.active {
  background: var(--brand-light);
  border-color: var(--brand);
}

.sci-info b {
  display: block;
  font-size: 14px;
  color: var(--text-main);
}

.sci-info small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

.sci-status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.sci-status.open {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}

.sci-status.closed {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

/* Product Detail & Customization Modal */
.product-modal-scroll {
  max-height: 75vh;
  overflow-y: auto;
}

.pm-hero {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 24px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.pm-hero-img {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
}

.pm-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm-hero-copy h2 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.pm-hero-copy p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 6px 0 12px 0;
}

.pm-prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.pm-prices .price-now {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand);
}

:root[data-theme="dark"] .pm-prices .price-now {
  color: var(--accent-green);
}

.pm-options-body {
  padding: 20px 24px;
}

.pm-group {
  margin-bottom: 22px;
}

.pm-group-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pm-group-title small {
  font-weight: 600;
  color: var(--text-dim);
  font-size: 12px;
}

.pm-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pm-chip {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.pm-chip:hover {
  border-color: var(--border-focus);
}

.pm-chip.active {
  border-color: var(--brand);
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 700;
}

:root[data-theme="dark"] .pm-chip.active {
  background: #193828;
  color: #34d399;
}

.pm-chip-add {
  font-size: 11px;
  color: var(--text-dim);
}

.pm-chip.active .pm-chip-add {
  color: inherit;
}

.pm-sticky-bottom {
  position: sticky;
  bottom: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.stepper-large {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
}

.stepper-large button {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.stepper-large span {
  min-width: 34px;
  text-align: center;
  font-weight: 800;
}

/* ==========================================================================
   8. CHECKOUT FORM
   ========================================================================== */
.checkout-form {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.form-group label {
  font-size: 13px;
  font-weight: 700;
}

.form-group .req {
  color: var(--danger);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-main);
  outline: none;
  font-size: 13.5px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--border-focus);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.form-hint {
  font-size: 11px;
  color: var(--text-dim);
}

.service-type-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.service-option input {
  display: none;
}

.service-box {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  background: var(--bg-subtle);
  transition: all 0.2s ease;
}

.service-option.active .service-box {
  border-color: var(--brand);
  background: var(--brand-light);
  color: var(--brand);
}

:root[data-theme="dark"] .service-option.active .service-box {
  background: #173626;
  color: #34d399;
}

.s-icon {
  font-size: 22px;
  display: block;
  margin-bottom: 2px;
}

.service-box b {
  display: block;
  font-size: 13px;
}

.service-box small {
  font-size: 10.5px;
  color: var(--text-muted);
}

.checkout-mini-summary {
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mini-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.mini-row.discount {
  color: var(--accent-green);
  font-weight: 700;
}

.mini-row.grand {
  border-top: 1px solid var(--border);
  padding-top: 6px;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 800;
}

/* ==========================================================================
   9. AUTHENTIC NATIONAL QRIS (MATCHING USER'S FLYER AHMAD STORE)
   ========================================================================== */
.qris-modal-card {
  padding-bottom: 24px;
}

.qris-view-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}

.tab-qris-btn {
  flex: 1;
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.tab-qris-btn.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
  background: var(--bg-card);
}

.official-qris-wrapper {
  padding: 16px 20px;
  display: flex;
  justify-content: center;
}

.flyer-view-content {
  width: 100%;
  max-width: 360px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border);
  background: #ffffff;
}

.flyer-img-box img {
  width: 100%;
  height: auto;
  display: block;
}

/* DYNAMIC NATIONAL QRIS CARD */
.dynamic-qris-card {
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  color: #111827;
  border-radius: 12px;
  padding: 20px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

/* Geometric Red Accents from official ASPI flyer */
.dynamic-qris-card::before {
  content: "";
  position: absolute;
  top: 110px;
  left: 0;
  width: 38px;
  height: 90px;
  background: #e11d48;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.dynamic-qris-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 140px;
  height: 110px;
  background: #e11d48;
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
  z-index: 1;
}

.nat-qris-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #111827;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.nat-qris-logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.qris-brand-bold {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
  color: #111827;
}

.qris-brand-sub {
  font-size: 9px;
  font-weight: 700;
  line-height: 1.15;
  color: #111827;
}

.nat-gpn-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #dc2626;
  font-size: 16px;
}

.nat-merchant-info {
  text-align: center;
  margin-bottom: 12px;
}

.nat-store-title {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
}

.nat-nmid {
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  margin-top: 2px;
}

.nat-subcode {
  font-size: 12px;
  color: #6b7280;
}

.nat-qr-box {
  width: 220px;
  height: 220px;
  margin: 0 auto 10px auto;
  padding: 6px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.nat-qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nat-qris-slogan {
  text-align: center;
  margin-bottom: 12px;
}

.nat-qris-slogan b {
  display: block;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: #111827;
}

.nat-qris-slogan small {
  font-size: 10px;
  color: #6b7280;
}

.nat-qris-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 9px;
  padding-top: 6px;
  border-top: 1px solid #f3f4f6;
}

.nat-print-info {
  display: flex;
  flex-direction: column;
  color: #6b7280;
}

.nat-how-to-pay {
  color: #ffffff;
  text-align: right;
  max-width: 140px;
}

.pay-icons-row {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 2px;
}

.p-step {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.p-step span {
  font-size: 12px;
}

.p-step small {
  font-size: 7.5px;
  display: block;
  max-width: 38px;
  line-height: 1;
}

/* Payment Details Bar */
.payment-amount-highlight {
  margin: 0 20px 14px 20px;
  background: var(--bg-subtle);
  border: 1.5px dashed var(--brand);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.amount-left small {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.qris-big-amount {
  font-size: 22px;
  font-weight: 900;
  color: var(--brand);
}

:root[data-theme="dark"] .qris-big-amount {
  color: var(--accent-green);
}

.btn-copy-chip {
  background: var(--brand);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-copy-chip:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
}

.qris-notice-box {
  margin: 0 20px 16px 20px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 12px;
  line-height: 1.5;
}

.timer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--border);
}

.timer-countdown {
  font-family: monospace;
  font-size: 14px;
  color: #dc2626;
  font-weight: 800;
}

.notice-desc {
  color: var(--text-muted);
}

.qris-actions-stack {
  margin: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-whatsapp-main {
  background: #25d366 !important;
  color: #ffffff !important;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: all 0.2s ease;
}

.btn-whatsapp-main:hover {
  background: #20ba5a !important;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.wa-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.qris-sub-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-outline-action {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  color: var(--text-main);
  background: var(--bg-card);
  transition: all 0.2s ease;
}

.btn-outline-action:hover {
  background: var(--bg-subtle);
  border-color: var(--border-focus);
}

.btn-text-neutral {
  padding: 8px;
  font-size: 12.5px;
  color: var(--text-dim);
  text-align: center;
}

.btn-text-neutral:hover {
  color: var(--text-main);
}

/* ==========================================================================
   10. LOADING STATES & RESPONSIVENESS
   ========================================================================== */
.loading-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px auto;
}

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

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .hero-title { font-size: 28px; }
  .hero-banner { padding: 28px 20px; }
  .nav-store-pill { max-width: 200px; }
  .nav-search-wrap { display: none; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

@media (max-width: 640px) {
  .header-inner { padding: 10px 14px; }
  .brand-tagline { display: none; }
  .promo-pill { display: none; }
  .nav-store-pill { display: none; }
  .hero-store-card { flex-direction: column; align-items: flex-start; }
  .btn-secondary-light { width: 100%; text-align: center; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-card { padding: 10px; }
  .product-title { font-size: 14px; }
  .product-desc { display: none; }
  .price-discounted { font-size: 14.5px; }
  .pm-hero { grid-template-columns: 1fr; }
  .pm-hero-img { width: 100%; height: 200px; }
  .floating-mobile-bar { display: flex; }
  .nav-cart-btn { padding: 6px 12px; }
  .cart-total-text { display: none; }
}
