/* ==========================================================================
   KSSH GLOBAL NIAGA — THE DAILY POUR & SILKY PUDDING MILK CHEESE
   Artisan Coffee, Tea & Silky Pudding Drop-Zone E-Commerce Theme
   ========================================================================== */

:root {
  --espresso-950: #140c08;
  --espresso-900: #1e130d;
  --espresso-800: #2d1d14;
  --espresso-700: #422b1e;
  --roast-600: #6e4832;
  --gold-500: #c89d66;
  --gold-400: #dfb780;
  --gold-300: #f0d5a8;
  --cream-50: #fdfbf7;
  --cream-100: #f7f1e7;
  --cream-200: #ede2d0;
  --cream-300: #dfd0b8;
  --text-dark: #23160f;
  --text-muted: #6e5a4d;
  --success: #1f7a4c;
  --warning: #c97a16;
  --danger: #b92b27;
  --info: #2563eb;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 10px 30px rgba(30, 19, 13, 0.08);
  --shadow-card: 0 14px 36px rgba(30, 19, 13, 0.12);
  --shadow-gold: 0 8px 25px rgba(200, 157, 102, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--cream-50);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, .serif-heading {
  font-family: 'Playfair Display', Georgia, serif;
}

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

/* Announcement Top Bar */
.announcement-bar {
  background: linear-gradient(90deg, var(--espresso-950), var(--espresso-800), var(--espresso-950));
  color: var(--gold-300);
  font-size: 0.84rem;
  padding: 0.5rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(200, 157, 102, 0.25);
  letter-spacing: 0.02em;
}

/* Navbar */
.kssh-navbar {
  background: rgba(20, 12, 8, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 157, 102, 0.3);
  position: sticky;
  top: 0;
  z-index: 1030;
  padding: 0.75rem 0;
}

.brand-monogram {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.monogram-emblem {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--gold-500);
  background: radial-gradient(circle at 30% 30%, #3a2519, #140c08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold-400);
  letter-spacing: 0.05em;
  box-shadow: 0 0 15px rgba(200, 157, 102, 0.25);
}

.brand-title {
  color: #ffffff;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.brand-subtitle {
  color: var(--gold-400);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  display: block;
}

.nav-zone-pill {
  background: rgba(200, 157, 102, 0.16);
  border: 1px solid rgba(200, 157, 102, 0.45);
  color: var(--gold-300);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.nav-zone-pill:hover {
  background: rgba(200, 157, 102, 0.28);
  color: #fff;
}

.nav-cart-btn {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--espresso-950);
  font-weight: 700;
  padding: 0.48rem 1.05rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  box-shadow: var(--shadow-gold);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cart-btn:hover {
  transform: translateY(-1px);
  color: var(--espresso-950);
}

/* Hero Section inspired by Flyer */
.hero-banner {
  background:
    radial-gradient(circle at 80% 20%, rgba(200, 157, 102, 0.22), transparent 45%),
    radial-gradient(circle at 15% 80%, rgba(141, 91, 60, 0.28), transparent 50%),
    linear-gradient(160deg, var(--espresso-950) 0%, var(--espresso-900) 55%, #2b1b12 100%);
  color: #ffffff;
  padding: 3.2rem 0 2.8rem;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--gold-500);
}

.hero-kicker {
  display: inline-block;
  color: var(--gold-400);
  border: 1px solid rgba(200, 157, 102, 0.45);
  background: rgba(200, 157, 102, 0.1);
  border-radius: 999px;
  padding: 0.3rem 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.hero-title span {
  color: var(--gold-400);
}

.hero-lead {
  color: var(--cream-200);
  font-size: 1.02rem;
  max-width: 580px;
  margin-bottom: 1.6rem;
}

/* Flyer Showcase Mini Cards in Hero */
.flyer-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.flyer-thumb-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(200, 157, 102, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  aspect-ratio: 3 / 4;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.flyer-thumb-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--gold-300);
}

.flyer-thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flyer-thumb-caption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(15, 9, 6, 0.92), transparent);
  padding: 1.4rem 0.85rem 0.65rem;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Step 1: Landing / Drop Zone Selector Section */
.zone-selector-section {
  margin-top: -1.6rem;
  position: relative;
  z-index: 10;
  margin-bottom: 2.5rem;
}

.zone-selector-shell {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--cream-200);
}

.zone-card {
  border: 2px solid var(--cream-200);
  background: var(--cream-50);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  height: 100%;
  transition: all 0.22s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.zone-card:hover {
  border-color: var(--gold-500);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.zone-card.active {
  border-color: var(--espresso-900);
  background: linear-gradient(145deg, #fffdf9 0%, #f7ecda 100%);
  box-shadow: 0 10px 26px rgba(200, 157, 102, 0.3);
}

.zone-card.active::after {
  content: "✓ AKTIF DIPILIH";
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--espresso-900);
  color: var(--gold-400);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.zone-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--espresso-900);
  color: var(--gold-400);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.zone-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(31, 122, 76, 0.12);
  color: var(--success);
}

/* Product Cards */
.category-pill {
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1.5px solid var(--cream-300);
  background: #ffffff;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.category-pill:hover,
.category-pill.active {
  background: var(--espresso-900);
  color: var(--gold-400);
  border-color: var(--espresso-900);
}

.product-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--cream-200);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 4 / 4.4;
  background: linear-gradient(180deg, #241710, #38251a);
  overflow: hidden;
}

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

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

.product-category-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(20, 12, 8, 0.85);
  backdrop-filter: blur(6px);
  color: var(--gold-400);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 157, 102, 0.4);
}

.product-signature-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #c89d66, #ebd197);
  color: var(--espresso-950);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.product-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-flavor-notes {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--roast-600);
  margin-bottom: 0.25rem;
}

.product-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--espresso-900);
  margin-bottom: 0.4rem;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.quota-meter-box {
  background: var(--cream-100);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.95rem;
  border: 1px solid var(--cream-200);
}

.quota-progress {
  height: 6px;
  background: var(--cream-300);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.35rem;
}

.quota-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--espresso-800), var(--gold-500));
  border-radius: 999px;
}

/* Buttons */
.btn-kssh-primary {
  background: var(--espresso-900);
  color: var(--gold-400);
  border: 1px solid var(--espresso-900);
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 0.62rem 1.15rem;
  transition: all 0.2s ease;
}

.btn-kssh-primary:hover:not(:disabled) {
  background: var(--espresso-700);
  color: #ffffff;
  border-color: var(--gold-500);
}

.btn-kssh-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--espresso-950);
  border: none;
  font-weight: 800;
  border-radius: var(--radius-sm);
  padding: 0.68rem 1.25rem;
  box-shadow: var(--shadow-gold);
  transition: all 0.2s ease;
}

.btn-kssh-gold:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
  color: var(--espresso-950);
}

/* Sticky Floating Bottom Cart Bar */
.floating-cart-bar {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(94%, 860px);
  background: rgba(20, 12, 8, 0.96);
  backdrop-filter: blur(12px);
  color: #fff;
  border: 1.5px solid var(--gold-500);
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  z-index: 1020;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* QRIS Frame Styling */
.qris-card-container {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 2px solid var(--gold-500);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.qris-card-header {
  background: linear-gradient(135deg, var(--espresso-950), var(--espresso-800));
  color: var(--gold-400);
  padding: 1.25rem 1.5rem;
  border-bottom: 2px solid var(--gold-500);
}

.qris-image-frame {
  max-width: 350px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--cream-300);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.qris-image-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}
.badge-info {
  background: #dbeafe;
  color: #1e40af;
}
.badge-success {
  background: #d1fae5;
  color: #065f46;
}
.badge-gold {
  background: #f5e6c8;
  color: #5c3a1d;
}
.badge-completed {
  background: #1e130d;
  color: #dfb780;
}
.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

/* Admin Layout */
.admin-sidebar {
  background: var(--espresso-950);
  color: var(--cream-100);
  min-height: calc(100vh - 64px);
  border-right: 1px solid rgba(200, 157, 102, 0.25);
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.78rem 1rem;
  color: var(--cream-200);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
  transition: all 0.2s ease;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  background: linear-gradient(90deg, rgba(200, 157, 102, 0.22), rgba(200, 157, 102, 0.06));
  color: var(--gold-400);
  border-left: 3px solid var(--gold-500);
}

.kpi-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.35rem;
  border: 1px solid var(--cream-200);
  box-shadow: var(--shadow-soft);
  height: 100%;
}

/* Footer */
.kssh-footer {
  margin-top: auto;
  background: var(--espresso-950);
  color: var(--cream-200);
  border-top: 2px solid var(--gold-500);
  padding: 2.5rem 0 5rem;
}

@media (max-width: 767px) {
  .floating-cart-bar {
    border-radius: 18px;
    padding: 0.65rem 1rem;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

/* ==========================================================================
   Invoice & Kuitansi (Official Financial Documents — Espresso & Gold Theme)
   ========================================================================== */
.doc-paper {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 2px solid var(--gold-500);
  box-shadow: 0 20px 50px rgba(20, 12, 8, 0.14);
  overflow: hidden;
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}

.doc-header {
  background:
    radial-gradient(circle at 88% 20%, rgba(200, 157, 102, 0.24), transparent 48%),
    linear-gradient(135deg, var(--espresso-950) 0%, var(--espresso-800) 100%);
  color: #ffffff;
  padding: 2rem 2.25rem;
  border-bottom: 3px solid var(--gold-500);
  position: relative;
}

.doc-type-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
  color: var(--espresso-950);
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.doc-meta-box {
  background: var(--cream-50);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
}

.terbilang-parallelogram {
  background: linear-gradient(135deg, var(--cream-100) 0%, #f5e6ce 100%);
  border: 1.5px solid var(--gold-500);
  border-left: 6px solid var(--espresso-900);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  color: var(--espresso-900);
  font-size: 1.05rem;
}

.kuitansi-nominal-box {
  background: var(--espresso-900);
  color: var(--gold-400);
  border: 2px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.5rem;
  display: inline-block;
  box-shadow: var(--shadow-gold);
}

.doc-stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 3px double currentColor;
  border-radius: 12px;
  padding: 0.45rem 1.15rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(-4deg);
  font-size: 0.92rem;
}

.doc-stamp-paid {
  color: #15803d;
  background: rgba(22, 163, 74, 0.08);
}

.doc-stamp-unpaid {
  color: #b45309;
  background: rgba(217, 119, 6, 0.08);
}

.doc-stamp-cancelled {
  color: #b91c1c;
  background: rgba(185, 28, 28, 0.08);
}

.kuitansi-grid-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--cream-300);
  align-items: baseline;
}

@media (max-width: 576px) {
  .kuitansi-grid-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .doc-header {
    padding: 1.5rem 1.25rem;
  }
}

@media print {
  body {
    background: #ffffff !important;
  }
  .kssh-navbar,
  .announcement-bar,
  .kssh-footer,
  .floating-cart-bar,
  .no-print,
  .alert {
    display: none !important;
  }
  .doc-paper {
    box-shadow: none !important;
    border: 2px solid #23160f !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  .doc-header {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .kuitansi-nominal-box,
  .terbilang-parallelogram,
  .doc-type-badge,
  .status-badge {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
