/* ============================================================
   PAMUNGKAS ATK - Main Stylesheet
   Design: Warm Professional | Sora + Plus Jakarta Sans
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --primary:     #1B4F72;   /* Deep navy blue */
  --primary-d:   #154060;
  --primary-l:   #2E86C1;
  --accent:      #F39C12;   /* Warm amber/orange */
  --accent-d:    #D68910;
  --accent-l:    #FAD7A0;
  --success:     #27AE60;
  --danger:      #E74C3C;
  --warning:     #F39C12;
  --info:        #2980B9;
  --bg:          #FFFDF9;   /* Warm cream white */
  --bg2:         #F5F0E8;
  --text:        #1A1A2E;
  --text-muted:  #6B7280;
  --border:      #E5DDD0;
  --white:       #FFFFFF;
  --shadow:      0 4px 20px rgba(27,79,114,.10);
  --shadow-lg:   0 10px 40px rgba(27,79,114,.15);
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  all .25s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
  overflow-x: hidden;
  width: 100%;
}
h1,h2,h3,h4,h5 {
  font-family: 'Sora', sans-serif;
  line-height: 1.25;
  font-weight: 700;
}
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
input, textarea, select, button { font-family: inherit; }

/* ---- Container ---- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; overflow-x: clip; }

/* ---- Topbar ---- */
.topbar {
  background: var(--primary);
  color: #fff;
  font-size: 12.5px;
  padding: 6px 0;
  display: none;
}
.topbar .container {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
@media(min-width:768px) { .topbar { display: block; } }

/* ---- Site Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(27,79,114,.08);
  transition: var(--transition);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Sora', sans-serif;
  color: var(--primary);
  flex-shrink: 0;
  text-decoration: none;
}
.logo-text {
  display: flex; flex-direction: column; line-height: 1.1;
}
.logo-line1 {
  font-weight: 800; font-size: 1rem; color: var(--primary); letter-spacing: -.3px;
}
.logo-line2 {
  font-weight: 700; font-size: 0.7rem; color: var(--accent-d);
  letter-spacing: 2px; text-transform: uppercase;
}
.logo-icon { font-size: 1.6rem; }

.main-nav {
  display: none; gap: 4px; align-items: center; flex: 1; justify-content: center;
}
.nav-link {
  padding: 8px 16px; border-radius: 8px;
  font-weight: 500; font-size: 14px;
  color: var(--text-muted);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  background: var(--accent-l);
  color: var(--primary);
}
@media(min-width:768px) { .main-nav { display: flex; } }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }
@media(min-width: 600px) { .header-actions { gap: 10px; } }
.btn-wa-header-removed { display: none; } /* WA button moved to footer only */
.btn-cart {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: var(--bg2); border-radius: 10px;
  font-size: 1.2rem;
}
.btn-cart:hover { background: var(--accent-l); }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--accent); color: white;
  font-size: 10px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif;
}
.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all .25s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media(min-width:768px) { .hamburger { display: none; } }

/* Mobile nav */
@media(max-width:767px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 280px;
    background: var(--white);
    flex-direction: column;
    padding: 24px 20px 20px;
    border-left: 1px solid var(--border);
    box-shadow: -4px 0 24px rgba(27,79,114,.15);
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    display: flex !important;
    z-index: 850;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-link {
    padding: 13px 16px;
    font-size: 15px;
    border-radius: 10px;
    border-bottom: 1px solid var(--bg2);
  }
  .nav-link:last-child { border-bottom: none; }
}

/* ---- Flash Message ---- */
.flash {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  font-size: 14px; font-weight: 500;
  border-bottom: 2px solid transparent;
  position: relative;
}
.flash-success { background: #EAFAF1; color: #1e8449; border-color: #27AE60; }
.flash-error   { background: #FDEDEC; color: #C0392B; border-color: #E74C3C; }
.flash-info    { background: #EBF5FB; color: #1a5276; border-color: #2980B9; }
.flash-close {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  background: none; border: none; font-size: 18px; cursor: pointer;
  opacity: .6;
}
.flash-close:hover { opacity: 1; }

/* ---- Main Content ---- */
.main-content { min-height: 60vh; }

/* ---- Section ---- */
.section { padding: 60px 0; overflow-x: hidden; }
.section-sm { padding: 40px 0; overflow-x: hidden; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 2rem; color: var(--primary); margin-bottom: 10px; }
.section-header p { color: var(--text-muted); font-size: 15px; }
.section-header .line {
  width: 60px; height: 4px; background: var(--accent);
  border-radius: 2px; margin: 12px auto 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px;
  font-weight: 600; font-size: 14px; cursor: pointer;
  border: 2px solid transparent; transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: white; border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-d); border-color: var(--primary-d); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(27,79,114,.25); }
.btn-accent {
  background: var(--accent); color: white; border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-d); border-color: var(--accent-d); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--primary); border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }
.btn-danger { background: var(--danger); color: white; border-color: var(--danger); }
.btn-success { background: var(--success); color: white; border-color: var(--success); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; justify-content: center; }
.btn-wa-footer {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25D366; color: white; padding: 10px 18px;
  border-radius: 10px; font-weight: 600; font-size: 13px;
  margin-top: 12px;
}

/* ---- Cards ---- */
.card {
  background: white; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  overflow: hidden; transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-body { padding: 20px; }

/* ---- Product Card ---- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.product-card { border-radius: var(--radius); overflow: hidden; background: white; border: 1px solid var(--border); transition: var(--transition); }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-img {
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, var(--bg2) 0%, var(--accent-l) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 14px; }
.product-kategori { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.product-nama { font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 600; margin-bottom: 4px; line-height: 1.3; }
.product-harga { font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 700; color: var(--accent-d); margin-bottom: 10px; }
.product-stok { font-size: 11px; color: var(--success); margin-bottom: 10px; }
.product-stok.habis { color: var(--danger); }
.product-actions { display: flex; gap: 8px; }
.product-actions .btn { flex: 1; justify-content: center; font-size: 12px; padding: 8px 10px; }

/* ---- Service Cards ---- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.service-card {
  border-radius: var(--radius-lg); overflow: hidden;
  background: white; border: 1px solid var(--border);
  transition: var(--transition);
  display: flex; flex-direction: column;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-header {
  padding: 24px 24px 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-l) 100%);
  color: white;
}
.service-icon { font-size: 2.5rem; margin-bottom: 10px; }
.service-nama { font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.service-jenis { font-size: 12px; opacity: .8; }
.service-body { padding: 16px 20px; flex: 1; display: flex; flex-direction: column; }
.service-desc { color: var(--text-muted); font-size: 13px; margin-bottom: 12px; flex: 1; }
.service-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.service-harga { font-family: 'Sora', sans-serif; font-weight: 700; color: var(--accent-d); font-size: 15px; }
.service-estimasi { font-size: 12px; color: var(--text-muted); }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-l) 60%, #1abc9c 100%);
  color: white;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; max-width: 640px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  padding: 6px 14px; border-radius: 20px;
  font-size: 13px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2rem,5vw,3rem); margin-bottom: 18px; line-height: 1.15; }
.hero p { font-size: 16px; opacity: .9; margin-bottom: 30px; line-height: 1.7; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-white { background: white; color: var(--primary); font-weight: 700; }
.btn-white:hover { background: var(--accent-l); }
.btn-ghost { background: transparent; color: white; border: 2px solid rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: white; }

/* ---- Category Banner ---- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px; }
.cat-card {
  background: white; border: 2px solid var(--border);
  border-radius: var(--radius); padding: 20px 12px;
  text-align: center; cursor: pointer; transition: var(--transition);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-decoration: none; color: var(--text);
}
.cat-card:hover, .cat-card.active {
  border-color: var(--accent); background: var(--accent-l);
  transform: translateY(-3px); box-shadow: var(--shadow);
}
.cat-icon { font-size: 2rem; }
.cat-name { font-size: 12.5px; font-weight: 600; }

/* ---- Cara Pesan Steps ---- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.step-card {
  text-align: center; padding: 30px 20px;
  background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--border); transition: var(--transition);
  position: relative;
}
.step-card:hover { box-shadow: var(--shadow); }
.step-num {
  width: 48px; height: 48px;
  background: var(--primary); color: white;
  border-radius: 50%; font-family: 'Sora', sans-serif;
  font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.step-icon { font-size: 2rem; margin-bottom: 12px; }
.step-title { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.step-desc { font-size: 13px; color: var(--text-muted); }

/* ---- Stats / Highlights ---- */
.stats-bar {
  background: var(--primary); color: white; padding: 30px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; text-align: center; }
.stat-num { font-family: 'Sora', sans-serif; font-size: 2rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 13px; opacity: .85; margin-top: 4px; }

/* ---- Keranjang / Cart ---- */
/* ================================================================
   KERANJANG — Responsive Layout
   ================================================================ */

/* Grid wrapper: 1 col mobile, 2 col desktop */
.cart-wrapper { display: grid; grid-template-columns: 1fr; gap: 16px; min-width: 0; }
@media(min-width:900px) { .cart-wrapper { grid-template-columns: 1fr 360px; gap: 24px; } }
.cart-wrapper > * { min-width: 0; }
.cart-left  { display: flex; flex-direction: column; gap: 12px; }
.cart-right { display: flex; flex-direction: column; gap: 12px; }

/* Shared card style */
.cart-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-sizing: border-box;
}
.cart-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--bg2);
  gap: 10px;
}
.cart-card-header h3 { font-size: 14px; color: var(--primary); margin: 0; }

/* ── Mobile: card list per item (visible only < 640px) ── */
/* Mobile: show card list, hide table */
.cart-items-mobile  { display: block !important; }
.cart-table-desktop { display: none  !important; }

/* Desktop ≥ 640px: hide cards, show table */
@media(min-width:640px) {
  .cart-items-mobile  { display: none  !important; }
  .cart-table-desktop { display: block !important; }
}

/* ── Cart Item Card (cic) — redesigned ── */
.cic {
  display: flex; gap: 12px; padding: 14px 16px;
  border-bottom: 1px solid var(--bg2);
  align-items: flex-start;
  transition: background .15s;
}
.cic:last-child { border-bottom: none; }
.cic:active { background: #F8FAFC; }

/* Image box */
.cic-img {
  width: 72px; height: 72px; flex-shrink: 0;
  border-radius: 12px; background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border: 1px solid var(--border);
}
.cic-img img { width: 100%; height: 100%; object-fit: cover; }
.cic-emoji { font-size: 2rem; line-height: 1; }

/* Body */
.cic-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }

/* Row 1: name + delete */
.cic-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
}
.cic-name {
  font-weight: 700; font-size: 14px; line-height: 1.3;
  color: var(--text); flex: 1; min-width: 0;
}
.cic-del {
  background: none; border: none; cursor: pointer;
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text-muted); flex-shrink: 0;
  transition: background .15s, color .15s;
}
.cic-del:hover { background: #FEE2E2; color: var(--danger); }

/* Row 2: badge + harga */
.cic-mid { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cic-badge {
  font-size: 10px; font-weight: 600; padding: 2px 8px;
  border-radius: 20px; white-space: nowrap;
}
.cic-badge-produk  { background: #DBEAFE; color: #1e40af; }
.cic-badge-layanan { background: #D1FAE5; color: #065F46; }
.cic-harga { font-size: 13px; color: var(--text-muted); }
.cic-harga small { font-size: 11px; }

/* Row 3: qty + subtotal */
.cic-bot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.cic-qty-fixed { font-size: 12px; color: var(--text-muted); }
.cic-subtotal {
  font-family: 'Sora', sans-serif;
  font-weight: 800; font-size: 15px; color: var(--primary);
  white-space: nowrap; flex-shrink: 0;
}


/* ── Desktop: table (visible only ≥ 640px) ── */
.cart-table { width: 100%; border-collapse: collapse; min-width: 460px; }
.cart-table th {
  padding: 10px 12px; background: var(--bg2); font-size: 12px;
  text-align: left; border-bottom: 2px solid var(--border); white-space: nowrap;
}
.cart-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 13px; }
.cart-table tr:last-child td { border-bottom: none; }
.cart-table th:nth-child(1), .cart-table td:nth-child(1) { min-width: 150px; }
.cart-table th:nth-child(2), .cart-table td:nth-child(2) { min-width: 95px; white-space: nowrap; }
.cart-table th:nth-child(3), .cart-table td:nth-child(3) { min-width: 105px; }
.cart-table th:nth-child(4), .cart-table td:nth-child(4) { min-width: 85px; white-space: nowrap; }
.cart-table th:last-child,  .cart-table td:last-child  { width: 36px; }

/* Shared item image */
.cart-item-img {
  width: 44px; height: 44px; border-radius: 8px; background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; overflow: hidden; flex-shrink: 0;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.cart-item-info  { display: flex; align-items: center; gap: 10px; }
.cart-item-name  { font-weight: 600; font-size: 13px; line-height: 1.3; }
.cart-item-meta  { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ── Qty controls ── */
.qty-control { display: flex; align-items: center; gap: 4px; }
.qty-btn {
  width: 28px; height: 28px; border: 1px solid var(--border); background: white;
  border-radius: 6px; cursor: pointer; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); flex-shrink: 0;
}
.qty-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.qty-input {
  width: 36px; text-align: center; border: 1px solid var(--border);
  border-radius: 6px; padding: 3px 2px; font-size: 13px;
}

/* ── Remove button ── */
.btn-remove {
  background: none; border: none; cursor: pointer; font-size: 16px;
  padding: 4px; opacity: .6; transition: opacity .2s;
}
.btn-remove:hover { opacity: 1; }

/* ── Cart action buttons ── */
.cart-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-block-mobile { flex: 1; min-width: 130px; text-align: center; justify-content: center; }

/* ── Member active banner ── */
.member-active-banner {
  display: flex; align-items: center; gap: 10px;
  border-radius: 12px; padding: 11px 14px; font-size: 12px; color: white;
  background: linear-gradient(135deg, #8E44AD, #6C3483);
}
.member-banner-icon { font-size: 1.4rem; flex-shrink: 0; }

/* ── Order Summary (right column) ── */
.order-summary {
  padding: 16px; box-sizing: border-box; width: 100%;
}
@media(min-width:900px) { .order-summary { position: sticky; top: 90px; padding: 20px; } }
.order-summary h3 { font-size: 14px; margin-bottom: 12px; color: var(--primary); }

.summary-items { margin-bottom: 4px; }
.summary-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--bg2); font-size: 13px;
}
.summary-row:last-of-type { border: none; }
.summary-row span:first-child { flex: 1; min-width: 0; }
.summary-row span:last-child  { flex-shrink: 0; white-space: nowrap; font-weight: 600; }
.summary-divider { border: none; border-top: 1px solid var(--border); margin: 6px 0; }
.summary-discount { color: var(--success); }
.summary-total  { font-weight: 700; font-size: 15px; color: var(--primary); }
.summary-note   { font-size: 11px; color: var(--text-muted); margin: 8px 0 12px; }
.summary-wa     { margin-top: 12px; text-align: center; font-size: 13px; }
.summary-wa a   { color: var(--primary); }

/* ── Promo box ── */
.cart-promo-box {
  padding: 14px 16px; box-sizing: border-box; width: 100%;
}
.cart-promo-box h4 { font-size: 13px; margin-bottom: 10px; color: var(--primary); }

.promo-input-wrap {
  display: flex; gap: 8px; align-items: center; width: 100%;
}
.promo-input-wrap .form-control { flex: 1; min-width: 0; }
.promo-status { font-size: 12px; margin-top: 6px; min-height: 18px; }
.promo-status.ok  { color: var(--success); font-weight: 600; }
.promo-status.err { color: var(--danger); }

.promo-active-row {
  display: flex; justify-content: space-between; align-items: center;
  background: #D1FAE5; border: 1px solid #6EE7B7;
  border-radius: 8px; padding: 8px 12px; font-size: 13px; margin-bottom: 8px;
}
.promo-remove-btn {
  background: none; border: none; cursor: pointer; font-size: 15px;
  color: #065F46; line-height: 1; padding: 2px 4px;
}
.promo-link { display: block; font-size: 12px; color: var(--primary-l); margin-top: 10px; }

/* ── Bundling box ── */
.cart-bundling-box { padding: 14px 16px; box-sizing: border-box; }
.cart-bundling-box h4 { font-size: 13px; margin-bottom: 10px; color: var(--primary); }

.bundling-item {
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: 11px 12px; margin-bottom: 8px;
}
.bundling-item-top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; margin-bottom: 8px;
}
.bundling-name  { font-size: 13px; font-weight: 600; flex: 1; min-width: 0; }
.bundling-badge {
  background: #E8D5F5; color: #6C3483;
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px;
  white-space: nowrap; flex-shrink: 0;
}
.bundling-item-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.bundling-price { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bundling-price s { font-size: 11px; color: var(--text-muted); }
.bundling-price strong { font-weight: 700; color: #8E44AD; font-size: 14px; }
.btn-bundling {
  background: #8E44AD; color: white; border-color: #8E44AD;
  font-size: 12px; padding: 5px 12px; white-space: nowrap; flex-shrink: 0;
}
.btn-bundling:hover { background: #6C3483; }

/* ── Scroll hint ── */
.table-scroll-hint {
  display: none; font-size: 11px; color: var(--text-muted);
  text-align: center; padding: 4px 0 6px; letter-spacing: .3px;
}
@media(max-width:640px) { .table-scroll-hint { display: block; } }


/* Scroll hint label on mobile */
.table-scroll-hint {
  display: none;
  font-size: 11px; color: var(--text-muted); text-align: center;
  padding: 4px 0 6px; letter-spacing: .3px;
}
@media(max-width:600px) { .table-scroll-hint { display: block; } }

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  /* Scroll hint shadow on right edge when overflowing */
  background:
    linear-gradient(to right, white 30%, rgba(255,255,255,0)) left center,
    linear-gradient(to right, rgba(255,255,255,0), white 70%) right center,
    radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.08), transparent) left center,
    radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.08), transparent) right center;
  background-repeat: no-repeat;
  background-size: 40px 100%, 40px 100%, 12px 100%, 12px 100%;
  background-attachment: local, local, scroll, scroll;
}
/* cart item styles defined in keranjang section above */
/* qty styles defined in keranjang section above */

/* order-summary & summary-row defined in keranjang responsive section above */

/* ---- Checkout Form ---- */
.checkout-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media(min-width:900px) { .checkout-grid { grid-template-columns: 1fr 380px; gap: 28px; } }

.form-section {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
}
@media(min-width:600px) { .form-section { padding: 28px; } }
.form-section h3 { font-size: 1rem; color: var(--primary); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--bg2); }
@media(min-width:600px) { .form-section h3 { font-size: 1.1rem; margin-bottom: 20px; padding-bottom: 12px; } }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--text); }
.form-control {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 14px; background: var(--bg); color: var(--text);
  transition: var(--transition); box-sizing: border-box;
}
.form-control:focus { outline: none; border-color: var(--primary); background: white; box-shadow: 0 0 0 3px rgba(27,79,114,.1); }
.form-control.error { border-color: var(--danger); }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 0; }
@media(min-width:600px) { .form-row { grid-template-columns: 1fr 1fr; gap: 14px; } }
.form-error { color: var(--danger); font-size: 12px; margin-top: 4px; }
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control { cursor: pointer; }

/* Radio/Checkbox ---- */
.radio-group, .check-group { display: flex; flex-direction: column; gap: 8px; }
.radio-option, .check-option {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1.5px solid var(--border);
  border-radius: 10px; cursor: pointer; transition: var(--transition);
}
.radio-option:has(input:checked), .check-option:has(input:checked) {
  border-color: var(--primary); background: var(--bg2);
}
.radio-option input, .check-option input { accent-color: var(--primary); width: 16px; height: 16px; flex-shrink: 0; }
.radio-label { font-size: 13px; font-weight: 500; }
.radio-desc { font-size: 11px; color: var(--text-muted); }

/* ---- Payment Methods ---- */
.payment-methods { display: flex; flex-direction: column; gap: 8px; }
.payment-option {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: 10px; cursor: pointer; transition: var(--transition);
}
.payment-option:has(input:checked) { border-color: var(--primary); background: #EBF5FB; }
.payment-icon { font-size: 1.3rem; flex-shrink: 0; }

/* ---- Page Header ---- */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-l) 100%);
  color: white; padding: 32px 0;
  margin-bottom: 28px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
@media(min-width:600px) { .page-header { padding: 50px 0; margin-bottom: 40px; } }
.page-header h1 { font-size: 1.6rem; margin-bottom: 6px; }
@media(min-width:600px) { .page-header h1 { font-size: 2rem; margin-bottom: 8px; } }
.breadcrumb { display: flex; gap: 8px; font-size: 13px; opacity: .8; flex-wrap: wrap; }
.breadcrumb a { color: white; }
.breadcrumb-sep { opacity: .5; }

/* ---- Filters ---- */
.filter-bar {
  display: flex; gap: 12px; flex-wrap: wrap;
  align-items: center; margin-bottom: 28px;
}
.filter-btn {
  padding: 8px 16px; border-radius: 20px;
  border: 1.5px solid var(--border); background: white;
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: var(--transition); color: var(--text);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--primary); background: var(--primary); color: white;
}
.search-box {
  display: flex; align-items: center; gap: 0;
  border: 1.5px solid var(--border); border-radius: 10px;
  background: white; overflow: hidden; flex: 1; min-width: 200px; max-width: 360px;
}
.search-box input {
  flex: 1; padding: 9px 14px; border: none; background: transparent;
  font-size: 14px; outline: none;
}
.search-box button { padding: 9px 14px; background: var(--primary); color: white; border: none; cursor: pointer; }

/* ---- Status Page ---- */
/* ================================================================
   STATUS PESANAN — Responsive
   ================================================================ */

/* Search card */
.status-search-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  box-sizing: border-box;
}
@media(min-width:600px) { .status-search-card { padding: 28px; } }

.status-section-title {
  font-size: 14px; color: var(--primary);
  margin-bottom: 16px; font-weight: 700;
}
@media(min-width:600px) { .status-section-title { font-size: 15px; } }

.status-search-form .admin-form-row { margin-bottom: 14px; }
.btn-block-status { width: 100%; justify-content: center; }

/* Empty state */
.status-empty {
  text-align: center; padding: 40px 20px;
  color: var(--text-muted);
}
.status-empty-icon { font-size: 3.5rem; margin-bottom: 14px; }
.status-empty p    { font-size: 14px; line-height: 1.6; }
.status-empty-note { font-size: 12px; margin-top: 6px; opacity: .75; }

/* Result card */
.status-result-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  box-sizing: border-box;
}
@media(min-width:600px) { .status-result-card { padding: 28px; } }

/* Header row: nomor + badge */
.status-result-header {
  display: flex; justify-content: space-between;
  align-items: flex-start; flex-wrap: wrap;
  gap: 12px; margin-bottom: 20px;
}
.status-nomor-label { font-size: 11px; color: var(--text-muted); margin-bottom: 3px; }
.status-nomor {
  font-family: 'Sora', sans-serif; font-size: 1.1rem;
  font-weight: 800; color: var(--primary); word-break: break-all;
}
@media(min-width:480px) { .status-nomor { font-size: 1.3rem; } }
.status-tanggal { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* Status badge */
.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 600; flex-shrink: 0;
}
.status-menunggu     { background: #FEF9C3; color: #854D0E; }
.status-dikonfirmasi { background: #D1FAE5; color: #065F46; }
.status-diproses     { background: #DBEAFE; color: #1e40af; }
.status-selesai      { background: #D1FAE5; color: #065F46; }
.status-dibatalkan   { background: #FEE2E2; color: #991B1B; }

/* Info grid */
.status-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  background: var(--bg2); padding: 16px;
  border-radius: 12px; margin-bottom: 20px;
}
.status-info-item { min-width: 0; }
.status-info-label { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
.status-info-val   { font-weight: 600; font-size: 13px; word-break: break-word; }
.status-total      { color: var(--accent-d); font-size: 15px; font-weight: 800; }

/* Timeline */
.order-timeline { margin: 12px 0 20px; }
.timeline-step {
  display: flex; gap: 14px; padding-bottom: 20px; position: relative;
}
.timeline-step::before {
  content: ''; position: absolute; left: 17px; top: 34px; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-step:last-child::before { display: none; }
.timeline-dot {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; border: 2px solid var(--border); background: white;
}
.timeline-dot.active  { background: var(--success); border-color: var(--success); color: white; }
.timeline-dot.current { background: var(--accent);  border-color: var(--accent);  color: white; box-shadow: 0 0 0 4px rgba(230,126,34,.15); }
.timeline-info h4 { font-size: 13px; font-weight: 700; line-height: 1.3; }
.timeline-info p  { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Item list */
.status-item-list { margin-bottom: 16px; }
.status-item-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--bg2); font-size: 13px;
}
.status-item-row:last-child { border-bottom: none; }
.status-item-name { flex: 1; min-width: 0; }
.status-item-qty  { color: var(--text-muted); font-size: 12px; margin-left: 4px; }
.status-item-price { flex-shrink: 0; font-weight: 600; white-space: nowrap; }
.status-item-total {
  font-weight: 800; font-size: 15px; color: var(--primary);
  padding-top: 12px; border-top: 2px solid var(--border); border-bottom: none;
}

/* Actions */
.status-actions {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px;
}
.status-actions .btn { flex: 1; min-width: 130px; justify-content: center; }

/* Print */
@media print {
  .site-header, .topbar, .page-header, .status-search-card,
  .status-actions, .wa-float, .pwa-install-banner, footer { display: none !important; }
  .status-result-card { border: none; padding: 0; box-shadow: none; }
}



/* ---- Admin Layout ---- */
/* ================================================================
   ADMIN PANEL — Full Responsive Layout
   ================================================================ */

.admin-wrapper { display: flex; min-height: 100vh; }

/* ── Sidebar ── */
.admin-sidebar {
  width: 220px; flex-shrink: 0;
  background: var(--primary); color: white;
  position: fixed; top: 0; left: 0; height: 100vh;
  overflow-y: auto; overflow-x: hidden;
  z-index: 500; transition: transform .28s ease;
}
.admin-sidebar-inner { min-height: 100%; display: flex; flex-direction: column; }

.admin-logo {
  padding: 16px 18px 12px;
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: .95rem;
  border-bottom: 1px solid rgba(255,255,255,.12); flex-shrink: 0;
  display: flex; align-items: center; gap: 8px;
}
.admin-logo small { display: block; font-weight: 400; font-size: 10px; opacity: .6; margin-top: 1px; }

.admin-nav { padding: 10px 0; flex: 1; }
.admin-nav a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 18px; color: rgba(255,255,255,.72);
  font-size: 13px; font-weight: 500; transition: var(--transition);
  border-left: 3px solid transparent; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(255,255,255,.1); color: white;
  border-left-color: var(--accent);
}
.admin-nav .nav-section {
  padding: 12px 18px 4px;
  font-size: 9.5px; text-transform: uppercase;
  letter-spacing: 1px; opacity: .42; color: white;
}

.admin-sidebar-footer {
  padding: 8px 18px 18px;
  border-top: 1px solid rgba(255,255,255,.1); margin-top: auto;
}
.admin-sidebar-footer a {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.62); font-size: 12.5px;
  padding: 7px 0; text-decoration: none; transition: var(--transition);
}
.admin-sidebar-footer a:hover { color: white; }

/* ── Main area ── */
.admin-main {
  flex: 1; margin-left: 220px; min-width: 0;
  background: #F0F4F8; display: flex; flex-direction: column;
}

/* ── Topbar ── */
.admin-topbar {
  background: white; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  gap: 10px;
}
.admin-topbar h1 {
  font-size: 1.05rem; color: var(--primary);
  font-family: 'Sora', sans-serif; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.admin-topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.admin-topbar-right .admin-user-label { font-size: 12px; color: var(--text-muted); }
@media(max-width:400px) { .admin-topbar-right .admin-user-label { display: none; } }

/* ── Content ── */
.admin-content { padding: 18px 20px; flex: 1; }

/* Sidebar mobile overlay */
.admin-sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 499;
}
.admin-sidebar-overlay.open { display: block; }

/* Mobile hamburger */
.admin-mobile-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 6px; border-radius: 8px; color: var(--primary); flex-shrink: 0;
}
.admin-mobile-toggle svg { display: block; }

/* ── Dashboard stats grid ── */
.dashboard-main-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media(min-width:900px) { .dashboard-main-grid { grid-template-columns: 1fr 300px; gap: 22px; } }

.dash-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px; margin-bottom: 20px;
}
@media(min-width:640px) { .dash-stats { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

.dash-stat {
  background: white; border-radius: var(--radius); padding: 16px;
  border: 1px solid var(--border); border-left: 4px solid var(--primary);
  min-width: 0;
}
.dash-stat.accent  { border-left-color: var(--accent); }
.dash-stat.success { border-left-color: var(--success); }
.dash-stat.danger  { border-left-color: var(--danger); }
.dash-stat-num {
  font-family: 'Sora', sans-serif; font-size: 1.5rem;
  font-weight: 800; color: var(--primary); line-height: 1.1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media(min-width:640px) { .dash-stat-num { font-size: 1.8rem; } }
.dash-stat.accent .dash-stat-num  { color: var(--accent-d); }
.dash-stat.success .dash-stat-num { color: var(--success); }
.dash-stat-label { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.dash-stat-icon  { float: right; font-size: 1.6rem; opacity: .28; }

/* ── Admin cards ── */
.admin-card {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
}
.admin-card-header {
  padding: 14px 18px; border-bottom: 1px solid var(--bg2);
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
}
.admin-card-header h3 { font-size: 14px; color: var(--primary); margin: 0; }
.admin-card-body { padding: 18px; }

/* ── Admin table — always scrollable ── */
.admin-table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%;
  /* scroll shadow hint */
  background:
    linear-gradient(to right, white 30%, rgba(255,255,255,0)) left center,
    linear-gradient(to right, rgba(255,255,255,0), white 70%) right center,
    radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.07), transparent) left center,
    radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.07), transparent) right center;
  background-repeat: no-repeat;
  background-size: 40px 100%, 40px 100%, 10px 100%, 10px 100%;
  background-attachment: local, local, scroll, scroll;
}
.admin-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.admin-table th {
  background: #F8FAFC; padding: 10px 13px;
  font-size: 11px; text-transform: uppercase; letter-spacing: .5px;
  text-align: left; border-bottom: 2px solid var(--border);
  color: var(--text-muted); white-space: nowrap;
}
.admin-table td {
  padding: 12px 13px; border-bottom: 1px solid var(--bg2);
  font-size: 13px; vertical-align: middle;
}
.admin-table tr:hover td { background: #FAFAFA; }
.admin-table tr:last-child td { border-bottom: none; }

/* ── Badges ── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.badge-warning { background: #FEF9C3; color: #854D0E; }
.badge-info    { background: #DBEAFE; color: #1e40af; }
.badge-primary { background: #EDE9FE; color: #5B21B6; }
.badge-success { background: #D1FAE5; color: #065F46; }
.badge-danger  { background: #FEE2E2; color: #991B1B; }

/* ── Pagination ── */
.pagination { display: flex; gap: 5px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.page-btn {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border); background: white;
  font-size: 13px; font-weight: 500; cursor: pointer; transition: var(--transition);
  text-decoration: none; color: var(--text);
}
.page-btn:hover, .page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.page-btn.disabled { opacity: .4; pointer-events: none; }

/* ── Filter bar / search in admin ── */
.admin-filter-bar {
  display: flex; gap: 8px; align-items: center;
  flex-wrap: wrap; margin-bottom: 16px;
}
.admin-filter-bar .search-wrap { display: flex; gap: 0; flex: 1; min-width: 160px; }
.admin-filter-bar .search-wrap input {
  flex: 1; border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
}
.admin-filter-bar .search-wrap button {
  border-radius: 0 var(--radius) var(--radius) 0; flex-shrink: 0;
}

/* ── Status filter chips (pesanan) ── */
.status-chips {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px;
}
.status-chip {
  padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
  border: 1.5px solid var(--border); background: white; cursor: pointer;
  text-decoration: none; color: var(--text); transition: var(--transition);
  white-space: nowrap;
}
.status-chip.active, .status-chip:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* ── Pengaturan Poin grid ── */
.poin-setting-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 16px; align-items: start;
}
@media(min-width: 760px) { .poin-setting-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }

.poin-preview-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; font-size: 13px;
}

/* ================================================================
   ADMIN — Responsive Layout Classes
   ================================================================ */

/* Main split: list/table on left + form on right */
.admin-split-layout {
  display: grid; grid-template-columns: 1fr;
  gap: 16px; align-items: start;
}
@media(min-width:760px)  { .admin-split-layout { grid-template-columns: 1fr 340px; gap: 20px; } }
@media(min-width:1100px) { .admin-split-layout { grid-template-columns: 1fr 400px; } }

/* Two equal columns */
.admin-two-col { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media(min-width:760px) { .admin-two-col { grid-template-columns: 1fr 1fr; gap: 20px; } }

/* Form row: 2 fields side by side */
.admin-form-row { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media(min-width:520px) { .admin-form-row { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* Form row: 3 fields side by side */
.admin-form-row-3 { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media(min-width:520px) { .admin-form-row-3 { grid-template-columns: 1fr 1fr; gap: 10px; } }
@media(min-width:760px) { .admin-form-row-3 { grid-template-columns: 1fr 1fr 1fr; gap: 10px; } }

.promo-admin-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media(min-width:900px) { .promo-admin-grid { grid-template-columns: 1fr 340px; } }

/* ================================================================
   ADMIN RESPONSIVE BREAKPOINTS
   ================================================================ */

/* Tablet (≤ 900px): sidebar slides in as drawer */
@media(max-width:900px) {
  .admin-mobile-toggle { display: flex; align-items: center; }
  .admin-sidebar { transform: translateX(-100%); box-shadow: 4px 0 24px rgba(0,0,0,.25); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-content { padding: 14px 16px; }
  .admin-topbar { padding: 10px 14px; }
  .dash-stats { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .admin-card-header { padding: 12px 14px; }
  .admin-card-body { padding: 14px; }
}

/* Mobile (≤ 480px): extra compact */
@media(max-width:480px) {
  .admin-content { padding: 10px 12px; }
  .dash-stat { padding: 12px; }
  .dash-stat-num { font-size: 1.25rem; }
  .dash-stat-icon { font-size: 1.3rem; }
  .admin-topbar h1 { font-size: .95rem; }
  .admin-table th, .admin-table td { padding: 9px 10px; font-size: 12px; }
  .status-chips { gap: 4px; }
  .status-chip { font-size: 11px; padding: 4px 10px; }
}


/* ---- Empty State ---- */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 4rem; margin-bottom: 16px; }
.empty-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.empty-desc { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }

/* ---- Alert ---- */
.alert { padding: 14px 18px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; display: flex; gap: 10px; align-items: flex-start; }
.alert-info    { background: #EBF5FB; color: #1a5276; border-left: 4px solid var(--info); }
.alert-success { background: #EAFAF1; color: #1e8449; border-left: 4px solid var(--success); }
.alert-warning { background: #FEF9E7; color: #7D6608; border-left: 4px solid var(--warning); }
.alert-danger  { background: #FDEDEC; color: #C0392B; border-left: 4px solid var(--danger); }

/* ---- Modal ---- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 9000; display: flex; align-items: center; justify-content: center;
  padding: 12px; opacity: 0; pointer-events: none; transition: opacity .25s;
  overflow-y: auto;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: white; border-radius: var(--radius-lg);
  max-width: 540px; width: 100%; padding: 20px;
  transform: scale(.95); transition: transform .25s;
  max-height: 92vh; overflow-y: auto;
  margin: auto;
}
@media(min-width: 600px) { .modal { padding: 28px; } }
.modal-overlay.open .modal { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-header h3 { font-size: 1.1rem; color: var(--primary); }
.modal-close { background: none; border: none; font-size: 20px; cursor: pointer; padding: 4px 8px; }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ---- Site Footer ---- */
.site-footer {
  background: var(--primary); color: rgba(255,255,255,.85);
  padding: 60px 0 0;
  margin-top: 80px;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px; margin-bottom: 40px;
}
.footer-logo { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.3rem; color: white; margin-bottom: 12px; }
.footer-desc { font-size: 13.5px; line-height: 1.7; margin-bottom: 16px; }
.footer-col h4 { color: white; font-size: 14px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .5px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li, .footer-col ul a { font-size: 13.5px; }
.footer-col ul a:hover { color: var(--accent); }
.contact-list li { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; }
.footer-sosmed { display: flex; gap: 10px; flex-wrap: wrap; }
.sosmed-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.1); color: white;
  padding: 8px 14px; border-radius: 8px; font-size: 13px;
  transition: var(--transition);
}
.sosmed-link:hover { background: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
  font-size: 12.5px; opacity: .7;
}

/* ---- WA Float ---- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 800;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,.4);
  transition: var(--transition);
  animation: pulse 2.5s infinite;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(37,211,102,.5); }
@keyframes pulse {
  0%,100% { box-shadow: 0 6px 20px rgba(37,211,102,.4); }
  50%      { box-shadow: 0 6px 28px rgba(37,211,102,.6); }
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent-d); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.fw-bold { font-weight: 700; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; } .gap-2 { gap: 8px; } .gap-3 { gap: 16px; }
.align-center { align-items: center; } .justify-between { justify-content: space-between; }
.w-100 { width: 100%; }
.bg-white { background: white; }
.rounded { border-radius: var(--radius); }
.p-3 { padding: 24px; }
.shadow { box-shadow: var(--shadow); }
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.nowrap { white-space: nowrap; }

/* ---- Admin Login ---- */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-l) 100%);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.login-card {
  background: white; border-radius: var(--radius-lg);
  padding: 40px; max-width: 400px; width: 100%;
  box-shadow: var(--shadow-lg);
}
.login-logo { text-align: center; margin-bottom: 30px; }
.login-logo .icon { font-size: 3rem; }
.login-logo h1 { font-size: 1.5rem; color: var(--primary); margin-top: 8px; }
.login-logo p { font-size: 13px; color: var(--text-muted); }

/* ---- Responsive Tweaks ---- */
@media(max-width:767px) {
  .section { padding: 40px 0; }
  .hero { padding: 50px 0 70px; }
  .hero h1 { font-size: 1.7rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .service-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .admin-mobile-toggle { display: flex; align-items: center; }
  .admin-sidebar {
    transform: translateX(-100%);
    box-shadow: 4px 0 20px rgba(0,0,0,.25);
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-content { padding: 16px; }
  .admin-topbar { padding: 12px 16px; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
}
@media(max-width:480px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-btns { flex-direction: column; }
}

/* ============================================================
   PROMO, EVENT GANJIL & BUNDLING STYLES
   ============================================================ */

/* ---- Event Tanggal Ganjil Hero ---- */
.ganjil-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  padding: 40px;
  color: white;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.ganjil-hero.aktif {
  background: linear-gradient(135deg, #E74C3C 0%, #C0392B 40%, #922B21 100%);
  box-shadow: 0 12px 40px rgba(231,76,60,.35);
  animation: glowRed 3s ease-in-out infinite;
}
.ganjil-hero.tidak-aktif {
  background: linear-gradient(135deg, #7F8C8D 0%, #636e72 100%);
}
@keyframes glowRed {
  0%,100% { box-shadow: 0 12px 40px rgba(231,76,60,.35); }
  50%      { box-shadow: 0 16px 50px rgba(231,76,60,.55); }
}
.ganjil-deco {
  font-size: 5rem;
  flex-shrink: 0;
  animation: bounce 1.5s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.ganjil-body { flex: 1; }
.ganjil-tag {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,.25); backdrop-filter: blur(4px);
  padding: 5px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 700; letter-spacing: .5px;
  margin-bottom: 12px;
}
.ganjil-body h2 { font-size: 1.6rem; margin-bottom: 8px; }
.ganjil-body p  { font-size: 14px; opacity: .9; margin-bottom: 20px; line-height: 1.6; }
.ganjil-cards {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.ganjil-card {
  background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius); padding: 18px 20px;
  min-width: 220px; flex: 1;
}
.ganjil-diskon {
  font-family: 'Sora', sans-serif;
  font-size: 2.2rem; font-weight: 800; margin-bottom: 4px;
}
.ganjil-nama { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.ganjil-desc { font-size: 12px; opacity: .85; margin-bottom: 8px; }
.ganjil-syarat { font-size: 11px; opacity: .75; margin-bottom: 4px; }
.ganjil-periode { font-size: 11px; opacity: .7; }

/* ---- Promo Cards ---- */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.promo-card {
  display: flex;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--border);
  background: white;
  transition: var(--transition);
  position: relative;
}
.promo-card::before {
  content: '';
  position: absolute; top: 50%; left: 170px;
  transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--border);
  z-index: 2;
}
.promo-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.promo-card-left {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-l) 100%);
  color: white; padding: 24px 20px;
  width: 170px; flex-shrink: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
}
.promo-badge-type {
  font-size: 10px; font-weight: 700; letter-spacing: .5px;
  background: rgba(255,255,255,.2); padding: 3px 10px;
  border-radius: 20px; margin-bottom: 10px;
}
.promo-nilai {
  font-family: 'Sora', sans-serif;
  font-size: 2rem; font-weight: 800; line-height: 1;
  margin-bottom: 4px;
}
.promo-off { font-size: 11px; opacity: .8; font-weight: 600; letter-spacing: 1px; }
.promo-card-right { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.promo-nama { font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 700; }
.promo-desc { font-size: 13px; color: var(--text-muted); }
.promo-syarat-list {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px;
}
.promo-syarat-list span {
  background: var(--bg2); padding: 3px 10px;
  border-radius: 20px; font-size: 11px; font-weight: 500;
}
.promo-kuota-bar {
  height: 5px; background: var(--bg2); border-radius: 3px; overflow: hidden; margin-top: 4px;
}
.promo-kuota-fill {
  height: 100%; background: linear-gradient(90deg, var(--success), var(--accent));
  border-radius: 3px; transition: width .5s;
}
.promo-kode-wrap {
  display: flex; align-items: center; gap: 8px; margin-top: 8px;
}
.promo-kode {
  font-family: 'Sora', monospace; font-size: 15px; font-weight: 800;
  letter-spacing: 2px; color: var(--primary);
  background: var(--bg2); padding: 7px 14px;
  border-radius: 8px; border: 2px dashed var(--border);
  flex: 1; text-align: center; transition: color .2s;
}
.btn-copy-kode {
  background: var(--primary); color: white;
  border: none; border-radius: 8px; padding: 7px 12px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: var(--transition); white-space: nowrap;
}
.btn-copy-kode:hover { background: var(--primary-d); }

.promo-try-box {
  margin-top: 28px; background: white;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
}
.promo-try-box h4 { font-family: 'Sora', sans-serif; font-size: 15px; }
.promo-try-form { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- Promo Badge di Checkout ---- */
.promo-badge-active {
  display: inline-flex; align-items: center; gap: 6px;
  background: #D1FAE5; color: #065F46;
  border: 1.5px solid #27AE60; border-radius: 20px;
  padding: 5px 14px; font-size: 13px; font-weight: 600;
}
.promo-event-banner {
  background: linear-gradient(135deg, #E74C3C, #C0392B);
  color: white; border-radius: 12px; padding: 14px 20px;
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px; font-size: 14px;
}
.promo-event-banner .ev-icon { font-size: 2rem; flex-shrink: 0; }
.promo-event-banner strong { font-size: 15px; }

/* ---- Bundling Cards ---- */
.bundling-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.bundling-card {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 2px solid var(--border); background: white;
  transition: var(--transition); display: flex; flex-direction: column;
}
.bundling-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--accent); }
.bundling-header {
  background: linear-gradient(135deg, #8E44AD 0%, #6C3483 100%);
  color: white; padding: 24px 20px; text-align: center; position: relative;
}
.bundling-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--accent); color: white;
  font-size: 11px; font-weight: 800; padding: 4px 10px;
  border-radius: 20px; letter-spacing: .5px;
}
.bundling-icon { font-size: 2.5rem; margin-bottom: 10px; }
.bundling-nama { font-family: 'Sora', sans-serif; font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.bundling-desc { font-size: 12.5px; opacity: .85; line-height: 1.5; }
.bundling-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.bundling-items { margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.bundling-item {
  display: flex; align-items: center; gap: 8px; font-size: 13px;
  padding: 7px 10px; background: var(--bg2); border-radius: 8px;
}
.bundling-item-icon { font-size: 1rem; flex-shrink: 0; }
.bundling-item-nama { flex: 1; font-weight: 500; }
.bundling-item-harga { font-weight: 600; color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.bundling-harga-wrap { text-align: center; padding: 16px 0; border-top: 2px dashed var(--border); margin-bottom: 12px; }
.bundling-harga-normal { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.bundling-harga-bundling {
  font-family: 'Sora', sans-serif; font-size: 1.9rem; font-weight: 800;
  color: #8E44AD; margin-bottom: 4px;
}
.bundling-hemat {
  display: inline-block; background: #FFF3CD; color: #856404;
  font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 20px;
}

/* ---- Promo Banner Homepage ---- */
.promo-banner-strip {
  background: linear-gradient(90deg, #8E44AD, #E74C3C, #F39C12);
  color: white; text-align: center;
  padding: 12px 20px; font-size: 14px; font-weight: 600;
  position: relative; overflow: hidden;
}
.promo-banner-strip a { color: white; text-decoration: underline; }
.promo-ticker {
  display: flex; gap: 40px; animation: ticker 20s linear infinite;
  white-space: nowrap;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Checkout Promo Section ---- */
/* cart-promo-box & promo-input-wrap defined in keranjang responsive section above */
/* ---- Countdown tanggal ganjil ---- */
.ganjil-countdown {
  display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap;
}
.countdown-box {
  background: rgba(255,255,255,.2); border-radius: 10px;
  padding: 10px 16px; text-align: center; min-width: 70px;
}
.countdown-num { font-family: 'Sora', sans-serif; font-size: 1.4rem; font-weight: 800; }
.countdown-label { font-size: 10px; opacity: .8; }

/* ---- Responsive ---- */
@media(max-width:767px) {
  .ganjil-hero { flex-direction: column; padding: 24px; }
  .ganjil-deco { font-size: 3rem; }
  .promo-grid { grid-template-columns: 1fr; }
  .promo-card { flex-direction: column; }
  .promo-card::before { display: none; }
  .promo-card-left { width: 100%; flex-direction: row; gap: 16px; padding: 16px 20px; }
  .bundling-grid { grid-template-columns: 1fr; }
  .promo-admin-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PWA STYLES
   ============================================================ */

/* Promo Ticker fix */
.promo-banner-strip {
  background: linear-gradient(90deg, #8E44AD, #E74C3C 50%, #F39C12);
  color: white; font-size: 13px; font-weight: 600;
  padding: 9px 0; overflow: hidden; position: relative;
  display: flex; align-items: center;
}
.promo-ticker-wrap { flex: 1; overflow: hidden; }
.promo-ticker {
  display: flex; gap: 0; white-space: nowrap;
  animation: ticker 25s linear infinite;
}
.promo-ticker:hover { animation-play-state: paused; }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.promo-ticker-cta {
  flex-shrink: 0; color: white; font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,.2); padding: 4px 14px;
  border-radius: 20px; white-space: nowrap; margin-right: 12px;
  text-decoration: none; transition: var(--transition);
}
.promo-ticker-cta:hover { background: rgba(255,255,255,.35); }

/* Nav promo link */
.nav-promo { color: var(--danger) !important; font-weight: 600 !important; }
.nav-promo.active, .nav-promo:hover { background: #FDEDEC !important; color: var(--danger) !important; }

/* WA button label hide on mobile */
.wa-label { display: none; }
@media(min-width:900px) { .wa-label { display: inline; } }

/* Mobile nav overlay */
.nav-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.4); z-index: 800; backdrop-filter: blur(2px);
}
.nav-overlay.open { display: block; }

/* ---- PWA Install Banner ---- */
.pwa-install-banner {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  background: white; border: 1px solid var(--border);
  border-radius: 16px; padding: 14px 16px;
  box-shadow: 0 8px 32px rgba(27,79,114,.2);
  z-index: 1500;                     /* di atas wa-float(800) dan header(900) */
  width: calc(100% - 32px); max-width: 420px;
  display: flex; align-items: center; gap: 12px;
  animation: slideUp .35s ease;
  pointer-events: all;               /* pastikan klik tidak terblokir */
}
@keyframes slideUp {
  from { transform: translateX(-50%) translateY(20px); opacity:0; }
  to   { transform: translateX(-50%) translateY(0);    opacity:1; }
}
.pwa-install-content { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.pwa-install-text { display: flex; flex-direction: column; min-width: 0; }
.pwa-install-text strong { font-size: 14px; font-weight: 700; color: var(--primary); }
.pwa-install-text span   { font-size: 12px; color: var(--text-muted); }
.pwa-install-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pwa-btn-install {
  background: var(--primary); color: white; border: none;
  padding: 9px 18px; border-radius: 10px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: var(--transition);
}
.pwa-btn-install:hover { background: var(--primary-d); transform: translateY(-1px); }
.pwa-btn-dismiss {
  background: none; border: none; color: var(--text-muted);
  font-size: 18px; cursor: pointer; padding: 4px 8px;
  border-radius: 6px; line-height: 1;
}
.pwa-btn-dismiss:hover { background: var(--bg2); }

/* ---- Offline Toast ---- */
.offline-toast {
  position: fixed; top: 0; left: 0; right: 0;
  background: #E74C3C; color: white;
  text-align: center; padding: 10px 16px;
  font-size: 13px; font-weight: 600; z-index: 9999;
  animation: slideDown .3s ease;
}
@keyframes slideDown {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

/* ---- PWA Update Toast ---- */
.pwa-update-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--primary); color: white;
  padding: 12px 20px; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(27,79,114,.3);
  display: flex; align-items: center; gap: 12px;
  z-index: 9999; font-size: 13px; font-weight: 600;
  opacity: 0; transition: all .35s ease;
}
.pwa-update-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.pwa-update-btn {
  background: var(--accent); color: white; border: none;
  padding: 6px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 700; cursor: pointer;
}

/* ---- PWA Standalone mode ---- */
.pwa-standalone .site-header { padding-top: env(safe-area-inset-top); }
.pwa-standalone .wa-float    { bottom: calc(24px + env(safe-area-inset-bottom)); }

/* ---- Safe area (iPhone notch/home bar) ---- */
body {
  padding-bottom: env(safe-area-inset-bottom);
}
.wa-float {
  bottom: calc(24px + env(safe-area-inset-bottom));
  right: calc(24px + env(safe-area-inset-right));
}

/* ---- Responsive tweaks (better mobile UX) ---- */
@media(max-width:480px) {
  .hero { padding: 40px 0 60px; }
  .hero h1 { font-size: 1.55rem; }
  .hero-btns { gap: 10px; }
  .hero-btns .btn { padding: 12px 18px; font-size: 14px; }
  .site-header .container { height: 60px; }
  .logo-line1 { font-size: 0.9rem; }
  .logo-line2 { font-size: 0.65rem; }
  .pwa-install-banner { bottom: 70px; }
  .section { padding: 32px 0; }
  .section-sm { padding: 20px 0; }
  .section-header h2 { font-size: 1.5rem; }
  .product-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .product-info { padding: 10px; }
  .product-nama { font-size: 13px; }
  .product-harga { font-size: 14px; }
  .bundling-grid { grid-template-columns: 1fr; }
  .promo-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(3,1fr); gap: 10px; }
  .cat-card { padding: 14px 8px; }
  .cat-icon { font-size: 1.6rem; }
  .cat-name { font-size: 11px; }
  .steps-grid { grid-template-columns: 1fr; gap: 14px; }
  .footer-grid { gap: 24px; }
  /* Disable sticky order summary on mobile — let it flow naturally (handled in base CSS) */
}

/* ---- Tablet ---- */
@media(min-width:481px) and (max-width:767px) {
  .product-grid { grid-template-columns: repeat(2,1fr); }
  .service-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(4,1fr); }
  .bundling-grid { grid-template-columns: 1fr; }
}

@media(min-width:768px) and (max-width:1023px) {
  .product-grid { grid-template-columns: repeat(3,1fr); }
  .cat-grid { grid-template-columns: repeat(5,1fr); }
  .service-grid { grid-template-columns: repeat(2,1fr); }
  .bundling-grid { grid-template-columns: repeat(2,1fr); }
  .cart-wrapper { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
}

/* ---- Large screen ---- */
@media(min-width:1280px) {
  .product-grid { grid-template-columns: repeat(5,1fr); }
  .container { max-width: 1280px; }
}

   MEMBER STYLES
   ============================================================ */

/* ---- Member benefits bar (auth page) ---- */
/* ================================================================
   MEMBER PAGE — Auth & Benefits
   ================================================================ */

/* Benefits bar */
.member-benefits-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: linear-gradient(135deg, #8E44AD, #6C3483);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
@media(min-width: 640px) {
  .member-benefits-bar { grid-template-columns: repeat(4, 1fr); }
}

.mbenefit {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  color: white; font-size: 12px; font-weight: 600; line-height: 1.4;
  border-right: 1px solid rgba(255,255,255,.15);
  border-bottom: 1px solid rgba(255,255,255,.12);
  min-width: 0; box-sizing: border-box;
}
@media(min-width: 640px) {
  .mbenefit { padding: 16px 18px; font-size: 13px; border-bottom: none; }
  .mbenefit:last-child { border-right: none; }
}
.mbenefit:nth-child(2n) { border-right: none; }
.mbenefit span { font-size: 1.3rem; flex-shrink: 0; }

/* Auth wrapper */
.member-auth-wrap { max-width: 520px; margin: 0 auto; }

/* Auth tabs */
.auth-tabs {
  display: flex; gap: 4px;
  background: var(--bg2); border-radius: var(--radius); padding: 4px;
  margin-bottom: 16px;
}
.auth-tab {
  flex: 1; text-align: center; padding: 10px 12px;
  border-radius: 8px; font-size: 13px; font-weight: 600;
  color: var(--text-muted); text-decoration: none;
  transition: var(--transition); white-space: nowrap;
}
.auth-tab.active { background: white; color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,.1); }

/* Auth card */
.auth-card {
  background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 20px; box-sizing: border-box;
}
@media(min-width: 520px) { .auth-card { padding: 28px; } }

.auth-title { font-size: 1.15rem; color: var(--primary); margin-bottom: 18px; }

/* Paket grid */
.paket-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 16px; margin-bottom: 32px;
}
@media(min-width: 480px) { .paket-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media(min-width: 900px) { .paket-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }



/* ---- Paket Langganan grid ---- */
.paket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px; margin-bottom: 24px;
}
.paket-card {
  border-radius: var(--radius-lg); overflow: hidden;
  background: white; border: 2px solid var(--border);
  transition: var(--transition); position: relative;
  display: flex; flex-direction: column;
}
.paket-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--paket-color, var(--accent)); }
.paket-popular {
  border-color: var(--paket-color, #F39C12);
  box-shadow: 0 8px 32px rgba(243,156,18,.2);
}
.paket-popular-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--paket-color, var(--accent)); color: white;
  font-size: 11px; font-weight: 800; padding: 4px 12px;
  border-radius: 20px; letter-spacing: .3px; z-index: 1;
}
.paket-header {
  background: linear-gradient(135deg, var(--paket-color, #8E44AD) 0%, color-mix(in srgb, var(--paket-color, #8E44AD) 70%, black) 100%);
  padding: 28px 24px 20px; text-align: center; color: white;
}
.paket-ikon { font-size: 2.8rem; margin-bottom: 10px; }
.paket-nama { font-family: 'Sora',sans-serif; font-size: 1.2rem; font-weight: 800; margin-bottom: 12px; }
.paket-harga { font-family: 'Sora',sans-serif; font-size: 2rem; font-weight: 800; }
.paket-durasi { font-size: 13px; opacity: .85; font-weight: 400; }
.paket-body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }
.paket-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }
.paket-benefits { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; flex: 1; }
.paket-benefits li { font-size: 13.5px; display: flex; align-items: flex-start; gap: 8px; }
.benefit-ok { color: var(--text); }
.benefit-no { color: var(--text-muted); }
.paket-btn { font-size: 14px; font-weight: 700; padding: 13px; border-radius: 12px; }

/* ---- Member badge chip ---- */
.member-benefit-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--bg2); border: 1.5px solid var(--border);
  padding: 5px 12px; border-radius: 20px;
  font-size: 12.5px; font-weight: 600; color: var(--text);
}

/* ---- Member navbar button ---- */
.btn-member-hdr {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 12px; border-radius: 10px;
  background: var(--bg2); color: var(--text);
  font-size: 13px; font-weight: 600;
  text-decoration: none; transition: var(--transition);
  position: relative;
}
.btn-member-hdr:hover { background: #E8D5F5; color: #6C3483; }
.btn-member-hdr-guest:hover { background: var(--accent-l); color: var(--primary); }
.member-hdr-badge {
  font-size: 9px; font-weight: 800; color: white;
  padding: 2px 6px; border-radius: 10px; letter-spacing: .5px;
  white-space: nowrap;
}

/* ---- Member promo event banner ---- */
.promo-event-banner.member-banner {
  background: linear-gradient(135deg, #8E44AD, #6C3483) !important;
}

/* ---- Member dashboard benefit progress ---- */
.member-aktif-bar {
  height: 8px; background: var(--bg2); border-radius: 4px; overflow: hidden;
}
.member-aktif-bar-fill { height: 100%; border-radius: 4px; transition: width 1s; }


/* ============================================================
   POIN REDEMPTION STYLES
   ============================================================ */

/* Poin info bar */
.poin-info-bar {
  display: flex; align-items: center;
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 20px;
  gap: 0; flex-wrap: wrap; margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.poin-info-item {
  flex: 1; min-width: 120px;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px;
}
.poin-info-icon { font-size: 1.6rem; flex-shrink: 0; }
.poin-info-val  { font-family:'Sora',sans-serif; font-size:1.2rem; font-weight:800; color:var(--primary); line-height:1.1; }
.poin-info-label{ font-size:11px; color:var(--text-muted); margin-top:2px; }
.poin-info-divider {
  width: 1px; background: var(--border); align-self: stretch; flex-shrink: 0;
}
@media(max-width:600px) {
  .poin-info-bar { padding: 12px 8px; gap:0; }
  .poin-info-item { min-width:50%; padding:8px 10px; gap:8px; }
  .poin-info-icon { font-size: 1.3rem; }
  .poin-info-val  { font-size: 1rem; }
  .poin-info-divider { display:none; }
}

/* Redeem card overlay */
.redeem-card { position:relative; }
.redeem-card-disabled { opacity:.7; }
.redeem-card-disabled:hover { transform:none !important; box-shadow:var(--shadow) !important; }

.redeem-poin-badge {
  position: absolute; top: 8px; left: 8px;
  background: linear-gradient(135deg, #E74C3C, #8E44AD);
  color: white; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  white-space: nowrap;
}
.redeem-lock-overlay {
  position: absolute; inset:0;
  background: rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.redeem-harga-coret {
  font-size: 12px; color: var(--text-muted);
  text-decoration: line-through;
}
.redeem-harga-poin {
  font-family: 'Sora', sans-serif;
  font-size: 15px; font-weight: 800;
  color: #8E44AD;
}

/* Redeem confirm box */
.redeem-confirm-box {
  background: linear-gradient(135deg, #E74C3C, #8E44AD);
  color: white; border-radius: 12px; padding: 16px 20px;
  margin-bottom: 16px;
}
.redeem-confirm-nama {
  font-family: 'Sora',sans-serif;
  font-size: 15px; font-weight: 700;
}

/* Admin produk poin box */
.poin-redeem-box {
  border: 2px dashed var(--accent);
  border-radius: 12px; padding:14px 16px;
  margin-bottom: 14px;
}
