/* =========================================
   ADJUNA CREATIVE — style.css
   Modern Marketplace UI
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Sora:wght@400;600;700&display=swap');

/* ─── CSS Variables ─── */
:root {
  /* Brand Colors */
  --primary:        #1565C0;
  --primary-light:  #1976D2;
  --primary-dark:   #0D47A1;
  --primary-soft:   #E3F2FD;
  --accent:         #FF6F00;
  --accent-light:   #FFA726;

  /* Neutrals */
  --bg:             #F0F4FA;
  --bg-card:        #FFFFFF;
  --bg-header:      #FFFFFF;
  --surface:        #F8FAFF;
  --border:         #E2E8F4;
  --divider:        #EEF2F8;

  /* Text */
  --text-primary:   #0F1923;
  --text-secondary: #4A5568;
  --text-muted:     #94A3B8;
  --text-inverse:   #FFFFFF;

  /* Shadows */
  --shadow-xs:   0 1px 3px rgba(21,101,192,.06);
  --shadow-sm:   0 2px 8px rgba(21,101,192,.10);
  --shadow-md:   0 4px 20px rgba(21,101,192,.13);
  --shadow-lg:   0 8px 40px rgba(21,101,192,.18);
  --shadow-card: 0 2px 12px rgba(21,101,192,.08);

  /* Radius */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
  --t-fast: .15s var(--ease);
  --t-med:  .25s var(--ease);
  --t-slow: .4s  var(--ease);

  /* Layout */
  --header-h: 64px;
  --max-w: 1280px;
}

/* Dark Mode */
[data-theme="dark"] {
  --bg:           #0A0F1E;
  --bg-card:      #111827;
  --bg-header:    #0D1629;
  --surface:      #162032;
  --border:       #1E2D47;
  --divider:      #1A2540;
  --text-primary:   #F1F5FF;
  --text-secondary: #9DAFC5;
  --text-muted:     #4A6080;
  --primary-soft:   #0D1E3A;
  --shadow-card: 0 2px 12px rgba(0,0,0,.35);
  --shadow-md:   0 4px 20px rgba(0,0,0,.4);
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  transition: background var(--t-slow), color var(--t-slow);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select { font-family: inherit; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* ─── Utilities ─── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.flex { display: flex; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ─── Header ─── */
.header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background var(--t-slow), box-shadow var(--t-med);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, #42A5F5 100%);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(21,101,192,.3);
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.logo:hover .logo-mark {
  transform: rotate(-8deg) scale(1.05);
  box-shadow: 0 6px 20px rgba(21,101,192,.4);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-name {
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -.2px;
}
.logo-sub {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: .3px;
  text-transform: uppercase;
}

/* Search */
.search-wrap {
  flex: 1;
  max-width: 540px;
  position: relative;
}

.search-bar {
  width: 100%;
  height: 42px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  padding: 0 48px 0 18px;
  font-size: 14px;
  color: var(--text-primary);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-slow);
  outline: none;
}
.search-bar::placeholder { color: var(--text-muted); }
.search-bar:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(21,101,192,.12);
  background: var(--bg-card);
}

.search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  background: var(--primary);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  transition: background var(--t-fast), transform var(--t-fast);
}
.search-btn:hover { background: var(--primary-dark); transform: translateY(-50%) scale(1.05); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--t-fast);
  position: relative;
}
.btn-icon:hover {
  background: var(--primary-soft);
  border-color: var(--primary-light);
  color: var(--primary);
  transform: translateY(-1px);
}

.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.btn-wa {
  height: 40px;
  padding: 0 16px;
  background: #25D366;
  color: white;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--t-fast);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(37,211,102,.3);
}
.btn-wa:hover { background: #1ebe5d; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(37,211,102,.4); }

/* ─── Hero Slider ─── */
.hero-slider {
  position: relative;
  overflow: hidden;
  height: 220px;
  border-radius: var(--r-lg);
  margin: 20px 20px 0;
  box-shadow: var(--shadow-md);
}

.slides-track {
  display: flex;
  height: 100%;
  transition: transform .6s var(--ease);
}

.slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 48px;
  position: relative;
  overflow: hidden;
}
.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  z-index: 0;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,.55) 0%,
    rgba(0,0,0,.3) 60%,
    rgba(0,0,0,.05) 100%
  );
  z-index: 0;
}
.slide-content { position: relative; z-index: 1; max-width: 55%; }
.slide-icon {
  font-size: 36px;
  margin-bottom: 8px;
  display: block;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
.slide h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.slide p {
  font-size: clamp(11px, 1.8vw, 13px);
  color: rgba(255,255,255,.85);
  margin-bottom: 16px;
  line-height: 1.5;
}
.slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 20px;
  background: rgba(255,255,255,.2);
  border: 1.5px solid rgba(255,255,255,.5);
  backdrop-filter: blur(8px);
  border-radius: var(--r-full);
  color: white;
  font-size: 13px;
  font-weight: 700;
  transition: all var(--t-fast);
  cursor: pointer;
}
.slide-cta:hover { background: white; color: var(--primary); }

.slide-deco {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(60px, 10vw, 100px);
  opacity: .25;
  pointer-events: none;
  z-index: 1;
}

/* Slider Controls */
.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.4);
  transition: all var(--t-med);
  cursor: pointer;
  border: none;
}
.dot.active {
  width: 20px;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.2);
  border: 1.5px solid rgba(255,255,255,.4);
  backdrop-filter: blur(8px);
  border-radius: var(--r-full);
  color: white;
  font-size: 16px;
  z-index: 10;
  transition: all var(--t-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-btn:hover { background: rgba(255,255,255,.35); }
.slider-btn.prev { left: 14px; }
.slider-btn.next { right: 14px; }

/* ─── Section Wrapper ─── */
.section { padding: 28px 20px 0; max-width: var(--max-w); margin: 0 auto; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--primary);
  border-radius: var(--r-full);
  display: block;
}
.see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  transition: color var(--t-fast);
}
.see-all:hover { color: var(--primary-dark); }

/* ─── Category Filter ─── */
.cat-scroll {
  overflow-x: auto;
  display: flex;
  gap: 8px;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.cat-scroll::-webkit-scrollbar { display: none; }

.cat-chip {
  flex-shrink: 0;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
}
.cat-chip:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  background: var(--primary-soft);
}
.cat-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(21,101,192,.25);
}

/* ─── Product Grid ─── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  padding-bottom: 32px;
}

/* ─── Product Card ─── */
.product-card {
  background: var(--bg-card);
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-fast);
  position: relative;
  display: flex;
  flex-direction: column;
  animation: fadeUp .4s var(--ease) both;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(21,101,192,.2);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Card Image */
.card-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface);
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.product-card:hover .card-img { transform: scale(1.06); }

/* Badge */
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  height: 22px;
  padding: 0 10px;
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
  display: flex;
  align-items: center;
  z-index: 2;
}
.badge-bestseller {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(255,111,0,.3);
}
.badge-new {
  background: #00C853;
  color: white;
  box-shadow: 0 2px 8px rgba(0,200,83,.3);
}
.badge-promo {
  background: #E91E63;
  color: white;
}

/* Card Body */
.card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }

.card-category {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}

.card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2px;
}
.card-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Sora', sans-serif;
}

.card-min {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.card-order-btn {
  margin-top: auto;
  padding-top: 12px;
}
.btn-order {
  width: 100%;
  height: 36px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 700;
  transition: all var(--t-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.product-card:hover .btn-order {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(21,101,192,.3);
}

/* ─── Empty State ─── */
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 12px;
}
.empty-icon { font-size: 48px; opacity: .5; }
.empty-title { font-size: 18px; font-weight: 700; color: var(--text-secondary); }
.empty-sub   { font-size: 14px; color: var(--text-muted); text-align: center; }

/* ─── Skeleton Loading ─── */
.skeleton-card { background: var(--bg-card); border-radius: var(--r-md); border: 1.5px solid var(--border); overflow: hidden; }
.skeleton-img  { aspect-ratio: 1/1; }
.skeleton-body { padding: 14px; }
.skeleton-line { height: 12px; border-radius: 6px; background: var(--divider); margin-bottom: 8px; animation: pulse 1.4s ease-in-out infinite; }
.skeleton-line.short { width: 60%; }
.skeleton-line.price { height: 18px; width: 70%; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }

/* ─── Modal ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,15,30,.6);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-card);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform var(--t-slow);
  position: relative;
}
.modal-overlay.open .modal { transform: translateY(0); }

/* Desktop modal */
@media (min-width: 640px) {
  .modal-overlay { align-items: center; }
  .modal {
    max-height: 85vh;
    border-radius: var(--r-xl);
    transform: translateY(40px) scale(.97);
  }
  .modal-overlay.open .modal { transform: translateY(0) scale(1); }
}

/* Modal drag handle */
.modal-handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: var(--r-full);
  margin: 14px auto 0;
}
@media (min-width: 640px) { .modal-handle { display: none; } }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-secondary);
  z-index: 5;
  transition: all var(--t-fast);
}
.modal-close:hover { background: #FEE2E2; border-color: #FCA5A5; color: #EF4444; }

/* Modal Images */
.modal-gallery { position: relative; }
.modal-img-main {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.modal-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.modal-thumbs::-webkit-scrollbar { display: none; }
.thumb {
  width: 58px;
  height: 58px;
  border-radius: var(--r-sm);
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--t-fast), opacity var(--t-fast);
  opacity: .65;
}
.thumb.active { border-color: var(--primary); opacity: 1; }
.thumb:hover { opacity: .9; }

/* Modal Body */
.modal-body { padding: 20px 20px 32px; }

.modal-badge { margin-bottom: 8px; }
.modal-category {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}
.modal-name {
  font-family: 'Sora', sans-serif;
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 12px;
}

/* Price Table */
.price-table {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 20px;
}
.price-table-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 10px 16px;
  background: var(--primary-soft);
  border-bottom: 1.5px solid var(--border);
}
.price-table-head span {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .4px;
}
.price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 9px 16px;
  border-bottom: 1px solid var(--divider);
  transition: background var(--t-fast);
  font-size: 13px;
}
.price-row:last-child { border-bottom: none; }
.price-row.active-tier { background: rgba(21,101,192,.07); }
.price-row.active-tier .tier-price { color: var(--primary); font-weight: 800; }
.tier-qty   { color: var(--text-secondary); }
.tier-price { font-weight: 600; }

/* Description */
.modal-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.modal-specs { margin-bottom: 20px; }
.specs-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.specs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.specs-list li {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.specs-list li::before {
  content: '✓';
  width: 18px;
  height: 18px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Quantity Slider */
.qty-section { margin-bottom: 20px; }
.qty-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.qty-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.qty-display {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  min-width: 80px;
  text-align: right;
}

.range-wrap { position: relative; }

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: var(--r-full);
  outline: none;
  margin-bottom: 8px;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(21,101,192,.2), 0 2px 6px rgba(21,101,192,.4);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  cursor: grab;
}
input[type="range"]::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.15);
  box-shadow: 0 0 0 5px rgba(21,101,192,.2), 0 2px 10px rgba(21,101,192,.5);
}
input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(to right, var(--primary) 0%, var(--primary) var(--progress, 0%), var(--border) var(--progress, 0%), var(--border) 100%);
  border-radius: var(--r-full);
  height: 6px;
}

.qty-minmax {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Qty Stepper */
.qty-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  width: fit-content;
  margin-top: 10px;
}
.step-btn {
  width: 40px;
  height: 40px;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  background: transparent;
  transition: background var(--t-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-btn:hover { background: var(--primary-soft); }
.step-btn:disabled { color: var(--text-muted); cursor: not-allowed; }
.qty-input {
  width: 80px;
  height: 40px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  color: var(--text-primary);
  background: transparent;
  border: none;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  outline: none;
}

/* Price Summary */
.price-summary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin-bottom: 16px;
}
.price-row-calc {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.price-row-calc:last-child { margin-bottom: 0; }
.price-calc-label { font-size: 13px; color: rgba(255,255,255,.8); }
.price-calc-val   { font-size: 13px; font-weight: 600; color: white; }
.price-total-label { font-size: 14px; color: rgba(255,255,255,.9); font-weight: 600; }
.price-total-val {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: white;
}
.price-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.2);
  margin: 10px 0;
}

/* CTA Buttons */
.modal-cta { display: flex; gap: 10px; }

.btn-wa-main {
  flex: 1;
  height: 50px;
  background: #25D366;
  color: white;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--t-fast);
  box-shadow: 0 4px 16px rgba(37,211,102,.3);
}
.btn-wa-main:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37,211,102,.4);
}
.btn-wa-main:active { transform: translateY(0); }

.btn-share {
  width: 50px;
  height: 50px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}
.btn-share:hover { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }

/* ─── Toast Notification ─── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1A1F2E;
  color: white;
  padding: 12px 24px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 600;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  transition: transform .4s var(--ease), opacity .4s var(--ease);
  opacity: 0;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
[data-theme="dark"] .toast { background: #E3F2FD; color: #0D47A1; }

/* ─── Footer ─── */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 32px 20px;
  margin-top: 40px;
  text-align: center;
}
.footer-logo {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.footer-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.footer-links a { font-size: 13px; color: var(--text-secondary); transition: color var(--t-fast); }
.footer-links a:hover { color: var(--primary); }
.footer-copy { font-size: 12px; color: var(--text-muted); }

/* ─── Back to Top ─── */
.back-top {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: white;
  border-radius: var(--r-full);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(21,101,192,.3);
  z-index: 800;
  opacity: 0;
  transform: translateY(16px);
  transition: all var(--t-med);
  pointer-events: none;
}
.back-top.show { opacity: 1; transform: translateY(0); pointer-events: all; }
.back-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ─── Cara Pemesanan ─── */
.cara-pesan {
  max-width: var(--max-w);
  margin: 16px auto 0;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cara-pesan-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}
.cara-pesan-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cara-pesan-steps span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}
.cara-pesan-arrow {
  color: var(--primary) !important;
  font-weight: 700 !important;
}

/* ─── Stats Bar ─── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0 0;
  padding: 0 20px;
  max-width: var(--max-w);
  margin-inline: auto;
}
.stat-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
  text-align: center;
  transition: all var(--t-fast);
}
.stat-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-sm); }
.stat-icon { font-size: 22px; margin-bottom: 4px; }
.stat-val  { font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 800; color: var(--primary); }
.stat-label{ font-size: 11px; color: var(--text-muted); font-weight: 500; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hero-slider { height: 180px; margin: 16px 16px 0; }
  .slide { padding: 0 30px; }
  .slide-deco { right: 16px; font-size: 60px; }
  .section { padding: 20px 16px 0; }
  .stats-bar { padding: 0 16px; gap: 8px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .modal-body { padding: 16px 16px 24px; }
  .btn-wa { display: none; }
}

@media (max-width: 400px) {
  .logo-sub { display: none; }
  .search-wrap { max-width: none; }
  .hero-slider { height: 160px; }
}
