/* ==========================================================
   TOKO KENAN BELANJA ONLINE - STYLESHEET (MOBILE FIRST)
   Desain Terinspirasi Modern E-Commerce / Klik Indomaret
   Dengan Bottom Navigation Bar & Layout Mobile Responsif
   ========================================================== */

:root {
  --primary-blue: #0284C7;
  --primary-dark: #0369A1;
  --primary-light: #E0F2FE;
  --accent-orange: #F97316;
  --accent-amber: #F59E0B;
  --accent-green: #10B981;
  --bg-main: #F8FAFC;
  --bg-card: #FFFFFF;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border-color: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.4;
  padding-bottom: 84px; /* Ruang untuk Menu Bawah Mobile Nav */
}

/* ================= 1. HEADER (KLIK INDOMARET STYLE) ================= */
.shop-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, #0284C7 0%, #0369A1 100%);
  color: #FFFFFF;
  padding: 10px 14px 14px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

/* 1.1 Top Section Tabs (Grocery / Food / Virtual) */
.header-top-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.top-tab {
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 18px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.top-tab.active {
  background: #FFFFFF;
  color: var(--primary-dark);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* 1.2 Brand Row */
.header-brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  background: #FFFFFF;
  border-radius: 8px;
  padding: 2px;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.3px;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.4px;
}

.btn-head-pill {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 16px;
  padding: 4px 10px;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.conn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.conn-dot.online {
  background: #10B981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.conn-dot.cloud {
  background: #38BDF8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.3);
}

.conn-dot.offline {
  background: #EF4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}

/* 1.3 Search Row */
.header-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-pill {
  flex: 1;
  background: #FFFFFF;
  border-radius: 24px;
  display: flex;
  align-items: center;
  padding: 4px 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.search-icon {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-right: 6px;
}

.search-pill input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.88rem;
  color: var(--text-primary);
  background: transparent;
  padding: 6px 0;
}

.btn-search-cam {
  background: none;
  border: none;
  font-size: 1.05rem;
  cursor: pointer;
  padding: 2px 4px;
  color: var(--text-secondary);
}

.btn-clear-search {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  cursor: pointer;
  padding: 2px 4px;
}

.btn-head-action {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  cursor: pointer;
  position: relative;
  font-size: 1rem;
}

.notif-badge-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EF4444;
  border: 1.5px solid #0284C7;
}

/* ================= 2. DELIVERY ADDRESS STRIP ================= */
.delivery-address-strip {
  background: #FFFFFF;
  margin: 10px 14px 6px;
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.delivery-strip-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.strip-pin {
  font-size: 1rem;
}

.strip-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.strip-text strong {
  color: var(--primary-dark);
}

.strip-help {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ================= 3. QUICK SERVICE CARDS (XPRESS & TOKO) ================= */
.quick-service-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 14px 10px;
}

.service-card {
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.service-card:active {
  transform: scale(0.97);
}

.service-card.xpress {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  border-color: #D97706;
}

.service-card.xtra {
  background: #FFFFFF;
  color: var(--text-primary);
}

.sc-badge {
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sc-desc {
  font-size: 0.7rem;
  opacity: 0.9;
}

.service-card.xtra .sc-desc {
  color: var(--text-muted);
}

/* ================= 4. HERO PROMO BANNER (TOP OF HOME & AUTO-SLIDE) ================= */
.promo-carousel {
  margin: 4px 14px 12px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.promo-slider {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.promo-slide {
  flex: 0 0 100%;
  min-width: 100%;
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: #FFFFFF;
  padding: 16px 14px;
  position: relative;
  box-sizing: border-box;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.promo-slide.has-image {
  padding: 0;
  background: #0F172A;
}

.promo-slide-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.promo-slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.75) 100%);
  padding: 12px 14px 10px;
  color: #FFFFFF;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.ps-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.22);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  width: fit-content;
}

.ps-title {
  font-size: 1.12rem;
  font-weight: 900;
  margin-bottom: 4px;
  line-height: 1.2;
}

.ps-desc {
  font-size: 0.78rem;
  opacity: 0.95;
  line-height: 1.3;
}

.promo-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 10;
}

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

.promo-dot.active {
  width: 22px;
  border-radius: 10px;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ================= 6. KATEGORI BELANJA ================= */
.categories-module {
  margin: 0 14px 14px;
}

.module-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.module-head h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
}

.btn-see-all {
  background: none;
  border: none;
  color: var(--primary-blue);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.category-cards-grid::-webkit-scrollbar {
  display: none;
}

.cat-pill-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 8px 6px;
  text-align: center;
  min-width: 68px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cat-pill-card:active {
  transform: scale(0.95);
}

.cat-pill-card.active {
  border-color: var(--primary-blue);
  background: #EFF6FF;
}

.c-icon {
  font-size: 1.4rem;
  margin-bottom: 3px;
}

.cat-pill-card span {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ================= 7. CATALOG CONTENT & GRID ================= */
.shop-content {
  padding: 0 14px 20px;
}

.catalog-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.catalog-info h3 {
  font-size: 0.95rem;
  font-weight: 800;
}

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

.catalog-sort select {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  outline: none;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Product Card */
.product-card {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all 0.2s;
}

.product-img-box {
  width: 100%;
  height: 120px;
  background: #F8FAFC;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
}

.product-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.product-img-placeholder {
  font-size: 2.2rem;
}

.product-badge-cat {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(15, 23, 42, 0.75);
  color: #FFFFFF;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.product-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.stock-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}

.stock-tag.in-stock {
  background: #ECFDF5;
  color: #065F46;
}

.stock-tag.out-stock {
  background: #FEF2F2;
  color: #991B1B;
}

.product-plu {
  font-size: 0.62rem;
  color: var(--text-muted);
}

.product-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 32px;
}

.product-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.product-price {
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--accent-orange);
}

.btn-add-cart {
  background: var(--primary-blue);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s;
}

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

.btn-add-cart:disabled {
  background: #CBD5E1;
  cursor: not-allowed;
}

.cart-stepper {
  display: flex;
  align-items: center;
  background: #F1F5F9;
  border-radius: 8px;
  padding: 2px;
}

.btn-step {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  width: 24px;
  height: 24px;
  font-size: 0.85rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-qty {
  font-size: 0.82rem;
  font-weight: 800;
  min-width: 20px;
  text-align: center;
}

/* ================= 8. FLOATING CART BAR (ABOVE BOTTOM NAV) ================= */
.floating-cart-bar {
  position: fixed;
  bottom: 70px;
  left: 12px;
  right: 12px;
  max-width: 500px;
  margin: 0 auto;
  z-index: 990;
  background: #0F172A;
  color: #FFFFFF;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.4);
  animation: slideUp 0.25s ease-out;
  cursor: pointer;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cart-qty-text {
  font-size: 0.75rem;
  color: #94A3B8;
}

.cart-total-text {
  font-size: 0.95rem;
  font-weight: 900;
  color: #38BDF8;
}

.btn-checkout-flow {
  background: var(--accent-orange);
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

/* ================= 9. MOBILE BOTTOM NAVIGATION BAR (KLIK INDOMARET) ================= */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  padding: 0 4px;
  user-select: none;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #64748B;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  background: none;
  border: none;
  padding: 4px 0 2px;
  transition: all 0.15s ease-in-out;
}

.bottom-nav-item:active {
  transform: scale(0.92);
}

.bottom-nav-item.active {
  color: var(--primary-blue);
  font-weight: 800;
}

.bottom-nav-icon {
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 22px;
}

.bottom-nav-icon svg {
  width: 22px;
  height: 22px;
}

/* Center Elevated Button (Poinku / Scan) */
.bottom-nav-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  top: -12px;
}

.btn-center-floating {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.45);
  border: 3.5px solid #FFFFFF;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-center-floating:active {
  transform: scale(0.9);
}

.center-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748B;
  margin-top: 2px;
}

.bottom-nav-badge {
  position: absolute;
  top: 3px;
  right: calc(50% - 18px);
  background: #EF4444;
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  border-radius: 10px;
  text-align: center;
  padding: 0 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* ================= 10. MODALS & SHEETS ================= */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.cart-sheet {
  background: #FFFFFF;
  width: 100%;
  max-width: 500px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: slideUpModal 0.25s ease-out;
}

@keyframes slideUpModal {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

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

.sheet-title-group h2 {
  font-size: 1.1rem;
  font-weight: 800;
}

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

.btn-close-sheet {
  background: #F1F5F9;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 0.9rem;
  cursor: pointer;
}

.sheet-body {
  padding: 14px 18px;
  overflow-y: auto;
  flex: 1;
}

.sheet-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border-color);
  background: #FFFFFF;
}

.footer-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.88rem;
  font-weight: 700;
}

.footer-total-row strong {
  font-size: 1.15rem;
  color: var(--accent-orange);
}

.btn-submit-order {
  width: 100%;
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.35);
}

/* Cart Items List */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px;
}

.cart-item-thumb {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #FFFFFF;
  border-radius: 8px;
  padding: 2px;
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.cart-item-price {
  font-size: 0.78rem;
  color: var(--accent-orange);
  font-weight: 800;
}

/* Fulfillment & Checkout Form */
.checkout-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
}

.section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.fulfillment-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.card-radio {
  background: #F8FAFC;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  display: block;
}

.card-radio input {
  display: none;
}

.card-radio.active {
  background: #EFF6FF;
  border-color: var(--primary-blue);
}

.card-radio-content {
  display: flex;
  align-items: center;
  gap: 6px;
}

.r-icon {
  font-size: 1.2rem;
}

.r-text strong {
  display: block;
  font-size: 0.8rem;
}

.r-text small {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 10px;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.85rem;
  outline: none;
}

.form-textarea {
  resize: vertical;
  min-height: 60px;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

/* Modals Centered */
.settings-modal-card, .success-card {
  background: #FFFFFF;
  border-radius: 20px;
  width: 90%;
  max-width: 440px;
  padding: 20px;
  margin: auto;
  box-shadow: var(--shadow-lg);
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.btn-close-modal {
  background: #F1F5F9;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.btn-test-conn {
  flex: 1;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-save-conn {
  flex: 1;
  background: var(--primary-blue);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-action-wa {
  background: #25D366;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 11px;
  border-radius: 10px;
  display: block;
}

.btn-action-close {
  background: #F1F5F9;
  color: var(--text-secondary);
  border: none;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
}

.width-full {
  width: 100%;
}

.settings-buttons {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.delivery-options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.delivery-card-choice {
  background: #F8FAFC;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.delivery-card-choice.active {
  background: #EFF6FF;
  border-color: var(--primary-blue);
}

.dc-icon {
  font-size: 1.5rem;
}

.dc-text strong {
  display: block;
  font-size: 0.85rem;
}

.dc-text small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Success Card */
.success-card {
  text-align: center;
}

.success-icon {
  font-size: 2.8rem;
  margin-bottom: 6px;
}

.success-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-green);
  margin-bottom: 4px;
}

.success-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.ticket-box {
  background: #F8FAFC;
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  padding: 12px;
  text-align: left;
  margin-bottom: 14px;
  font-size: 0.82rem;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Footer */
.shop-footer {
  padding: 16px 14px 20px;
  background: #FFFFFF;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-center strong {
  font-size: 0.9rem;
  color: var(--primary-dark);
}

.footer-center p {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin: 2px 0;
}

.footer-copy {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ================= 12. BARCODE SCANNER MODAL & LASER ================= */
.scanner-viewport-box {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: #000000;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.scanner-video {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.scanner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.scanner-frame {
  width: 75%;
  height: 60%;
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
}

.scanner-frame::before,
.scanner-frame::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: #38BDF8;
  border-style: solid;
}

.scanner-frame::before {
  top: -2px;
  left: -2px;
  border-width: 4px 0 0 4px;
  border-top-left-radius: 10px;
}

.scanner-frame::after {
  bottom: -2px;
  right: -2px;
  border-width: 0 4px 4px 0;
  border-bottom-right-radius: 10px;
}

.scanner-laser {
  position: absolute;
  left: 5%;
  right: 5%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #EF4444 30%, #F87171 50%, #EF4444 70%, transparent);
  box-shadow: 0 0 10px #EF4444, 0 0 4px #F87171;
  border-radius: 2px;
  animation: laserScan 1.8s infinite ease-in-out alternate;
}

@keyframes laserScan {
  0% { top: 10%; }
  100% { top: 90%; }
}

.highlight-pulse {
  animation: pulseHighlight 2s ease-in-out;
  border-color: #0284C7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.4) !important;
}

@keyframes pulseHighlight {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* ================= 13. PROFIL PELANGGAN ================= */
.profile-avatar-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0 12px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border-radius: 14px;
  margin-bottom: 14px;
}

.profile-avatar-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0284C7;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
  margin-bottom: 6px;
}

.profile-name-title {
  font-size: 1rem;
  font-weight: 800;
  color: #1E3A8A;
}

.profile-role-sub {
  font-size: 0.75rem;
  font-weight: 700;
  color: #3B82F6;
}

/* ================= 14. DETAIL PRODUK PADA RIWAYAT TRANSAKSI ================= */
.hoc-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.hoc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #F1F5F9;
}

.hoc-code {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0F172A;
}

.hoc-date {
  font-size: 0.72rem;
  color: #64748B;
}

.hoc-status {
  display: inline-block;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 8px;
  font-weight: 700;
  background: #E0F2FE;
  color: #0369A1;
  margin-top: 4px;
}

.hoc-info-row {
  font-size: 0.78rem;
  color: #475569;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hoc-items-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px;
  margin: 10px 0;
}

.hoc-items-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #1E293B;
  margin-bottom: 8px;
  border-bottom: 1px dashed #CBD5E1;
  padding-bottom: 4px;
}

.hoc-item-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 6px 0;
  border-bottom: 1px dashed #F1F5F9;
  font-size: 0.82rem;
}

.hoc-item-line:last-child {
  border-bottom: none;
}

.hoc-item-name {
  font-weight: 700;
  color: #1E293B;
  line-height: 1.2;
}

.hoc-item-qty {
  font-size: 0.72rem;
  color: #64748B;
  margin-top: 2px;
}

.hoc-item-sub {
  font-weight: 800;
  color: #0284C7;
  white-space: nowrap;
  margin-left: 8px;
}

.hoc-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid #CBD5E1;
  margin-top: 8px;
  font-size: 0.88rem;
}

.hoc-total-amount {
  font-weight: 900;
  color: #F97316;
  font-size: 1.05rem;
}

.hoc-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

/* ================= PROMO CARD & PROMO FILTER ================= */
.cat-pill-card.promo-card {
  border: 1.5px solid #F97316 !important;
  background: linear-gradient(180deg, #FFF7ED 0%, #FFEDD5 100%) !important;
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cat-pill-card.promo-card:hover,
.cat-pill-card.promo-card.active {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #FFEDD5 0%, #FDBA74 100%) !important;
  border-color: #EA580C !important;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.35);
}

.cat-pill-card.promo-card.active span {
  color: #9A3412 !important;
  font-weight: 900 !important;
}

.product-promo-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.35);
  z-index: 2;
  letter-spacing: 0.3px;
}

/* ================= RIWAYAT PESANAN SEARCH BAR ================= */
.history-search-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.history-search-bar input:focus {
  border-color: #0284C7;
  outline: none;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.badge-active-cust {
  display: inline-block;
  background: #DCFCE7;
  color: #15803D;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid #BBF7D0;
}

/* ================= NOTIFIKASI DOWNLOAD APLIKASI BELANJA (SIMPEL) ================= */
.app-download-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  color: #0F172A;
  padding: 8px 14px;
  margin: 8px 12px 12px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.08);
  position: relative;
  animation: slideDownFade 0.25s ease-out;
}

@keyframes slideDownFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.adb-icon {
  font-size: 1.4rem;
  line-height: 1;
  background: #E0F2FE;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.adb-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.adb-title {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
  color: #1E293B;
  margin-bottom: 2px;
}

.adb-link-blue {
  color: #0284C7;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: color 0.15s ease;
  width: fit-content;
}

.adb-link-blue:hover {
  color: #0369A1;
  text-decoration: underline;
}

.adb-dismiss-btn {
  background: transparent;
  color: #94A3B8;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}

.adb-dismiss-btn:hover {
  background: #E2E8F0;
  color: #475569;
}


/* ================= ADMIN PRODUCT PHOTO & CONTROLS ================= */
.admin-card-btn-photo {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.82);
  color: #F8FAFC;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
  z-index: 3;
  backdrop-filter: blur(4px);
  transition: all 0.15s ease;
}

.admin-card-btn-photo:hover {
  background: #0284C7;
  color: #FFFFFF;
}

.admin-tab-nav {
  display: flex;
  border-bottom: 2px solid #E2E8F0;
  margin-bottom: 14px;
  gap: 4px;
}

.admin-tab-item {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748B;
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s ease;
}

.admin-tab-item.active {
  color: #0284C7;
  border-bottom-color: #0284C7;
  font-weight: 800;
}

.photo-preview-container {
  width: 100%;
  height: 160px;
  border: 2px dashed #CBD5E1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F8FAFC;
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
}

.photo-preview-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.photo-preview-placeholder {
  text-align: center;
  color: #94A3B8;
  font-size: 0.8rem;
}


