/* ============================================
   ROBOTIK STORE JAMBI — Main Stylesheet
   PHP 7.4 | Mobile-First | Dark Premium Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ── */
:root {
  --bg-primary: #070b14;
  --bg-secondary: #0d1424;
  --bg-card: #111827;
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.08);

  --orange: #FF5722;
  --orange-light: #FF7043;
  --orange-dark: #E64A19;
  --orange-glow: rgba(255, 87, 34, 0.2);

  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #475569;

  --green: #22C55E;
  --red: #EF4444;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-orange: 0 4px 20px rgba(255, 87, 34, 0.35);

  --navbar-h: 64px;
  --bottomnav-h: 68px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Light Mode Variables ── */
body.light-mode {
  --bg-primary: #F1F5FB;
  --bg-secondary: #E8EDF5;
  --bg-card: #FFFFFF;
  --bg-glass: rgba(0, 0, 0, 0.03);
  --border-glass: rgba(0, 0, 0, 0.08);
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #9CA3AF;
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.08);
  --orange-glow: rgba(255, 87, 34, 0.10);
  background: #F1F5FB !important;
  background-color: #F1F5FB !important;
  color: #111827 !important;
}

/* Smooth transition saat ganti tema */
body,
.navbar,
.searchbar,
.searchbar__inner,
.bottom-nav,
.produk-card,
.kategori-card__icon,
.bottom-sheet,
.qty-counter,
.promo-strip,
.btn-action--loc,
.toast {
  transition: background 0.35s ease, background-color 0.35s ease,
    border-color 0.35s ease, box-shadow 0.35s ease, color 0.35s ease !important;
}

/* ── Navbar light ── */
body.light-mode .navbar {
  background: rgba(241, 245, 251, 0.94);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

/* ── Searchbar light ── */
body.light-mode .searchbar {
  background: var(--bg-secondary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-mode .searchbar__inner {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.09);
}

/* ── Bottom nav light ── */
body.light-mode .bottom-nav {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .nav-item svg {
  stroke: #9CA3AF;
}

body.light-mode .nav-item span {
  color: #9CA3AF;
}

body.light-mode .nav-item.active svg {
  stroke: var(--orange);
}

body.light-mode .nav-item.active span {
  color: var(--orange);
}

/* ── Cards light ── */
body.light-mode .produk-card {
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

body.light-mode .produk-card__img-wrap,
body.light-mode .bottom-sheet__product-img {
  background: #FFFFFF !important;
}

/* ── Kategori light ── */
body.light-mode .kategori-card__icon {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ── Action buttons light ── */
body.light-mode .btn-action--loc {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.09);
}

/* ── Promo strip light ── */
body.light-mode .promo-strip {
  background: linear-gradient(90deg, rgba(255, 87, 34, 0.07), rgba(255, 87, 34, 0.02));
  border-color: rgba(255, 87, 34, 0.15);
}

/* ── Bottom sheet light ── */
body.light-mode .bottom-sheet {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .qty-counter {
  background: var(--bg-secondary);
  border-color: rgba(0, 0, 0, 0.08);
}

/* ── Toast light (tetap gelap agar terbaca) ── */
body.light-mode .toast {
  background: #1E293B;
  border-color: transparent;
  color: #F8FAFC;
}

/* ── Scrollbar light ── */
body.light-mode ::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

/* ── Skeleton shimmer light ── */
body.light-mode .skeleton {
  background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite;
}

/* ── Theme Toggle: internal icon positioning ── */

.theme-toggle__icon {
  position: relative;
  width: 24px;
  height: 24px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.theme-toggle__sun,
.theme-toggle__moon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

/* Dark mode: show moon, hide sun */
.theme-toggle__sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

.theme-toggle__moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Light mode: show sun, hide moon */
body.light-mode .theme-toggle__sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

body.light-mode .theme-toggle__moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}



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

/* Hapus kotak biru browser saat tap/klik */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: none;
}

button,
a,
input,
select,
textarea {
  outline: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -moz-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

button {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 80px;
  padding-bottom: calc(var(--bottomnav-h) + 40px);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

ul,
ol {
  list-style: none;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 4px;
}

/* ============================================
   TOP NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  transition: background var(--transition), border-color var(--transition);
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: var(--navbar-h);
}

.navbar__left,
.navbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 80px;
}

.navbar__right {
  justify-content: flex-end;
}

.navbar__center {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: center;
}

.navbar__logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--orange);
}

.navbar__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.navbar__title span {
  color: var(--orange);
}

.navbar__icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition),
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow var(--transition);
  position: relative;
}

.navbar__icon-btn:hover {
  background: var(--orange-glow);
  border-color: rgba(255, 87, 34, 0.3);
}

.navbar__icon-btn:active {
  transform: scale(0.88);
}

/* Search button khusus — glow saat aktif */
#btn-search-navbar:hover {
  background: var(--orange-glow);
  box-shadow: 0 0 0 2px rgba(255, 87, 34, 0.2);
}

#btn-search-navbar:active {
  transform: scale(0.88);
}

#btn-search-navbar svg {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#btn-search-navbar:active svg {
  transform: scale(0.85) rotate(-8deg);
}

.navbar__icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-secondary);
  transition: stroke var(--transition);
}

.navbar__icon-btn:hover svg {
  stroke: var(--orange);
}

.navbar__badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
}

/* Badge keranjang dengan angka (dari JS) */
.navbar__badge[data-count],
#keranjang-badge,
#nav-keranjang-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
  width: auto;
}

@keyframes badgePop {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.55);
  }

  70% {
    transform: scale(0.85);
  }

  100% {
    transform: scale(1);
  }
}

.badge-pop {
  animation: badgePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}



/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
  width: 100%;
}

/* ── Section Utility ── */
.section {
  padding: 20px 16px;
}

.section+.section {
  padding-top: 0;
}

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

.section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 16px;
  background: var(--orange);
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: middle;
}

.section-link {
  font-size: 13px;
  color: var(--orange);
  font-weight: 500;
}

/* ============================================
   HERO BANNER (SLIDER)
   ============================================ */
.hero-slider {
  position: relative;
  overflow: hidden;
  margin: 0 0 4px;
}

.hero-slides {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
  min-width: 100%;
  height: 190px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

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

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(7, 11, 20, 0.85) 40%, rgba(255, 87, 34, 0.15) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 20px;
}

.hero-slide__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  width: fit-content;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-slide__title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 6px;
  color: #fff;
}

.hero-slide__subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 14px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 30px;
  box-shadow: var(--shadow-orange);
  transition: transform var(--transition), box-shadow var(--transition);
  width: fit-content;
}

.btn-hero:active {
  transform: scale(0.96);
}

.btn-hero svg {
  width: 15px;
  height: 15px;
  stroke: #fff;
}

/* Dots */
.hero-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0 4px;
}

.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--border-glass);
  transition: width var(--transition), background var(--transition);
}

.hero-dot.active {
  width: 20px;
  background: var(--orange);
}

/* ============================================
   QUICK ACTION BUTTONS
   ============================================ */
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px 16px 4px;
}

.btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-action:active {
  transform: scale(0.97);
}

.btn-action svg {
  width: 18px;
  height: 18px;
}

.btn-action--wa {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn-action--wa svg {
  stroke: #fff;
}

.btn-action--loc {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
}

.btn-action--loc svg {
  stroke: var(--orange);
}

/* ============================================
   KATEGORI SCROLL
   ============================================ */
.kategori-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 16px 14px;
  scroll-padding: 0 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.kategori-scroll::-webkit-scrollbar {
  display: none;
}

.kategori-scroll.is-dragging {
  cursor: grabbing !important;
  user-select: none !important;
  scroll-snap-type: none !important;
}

.kategori-scroll.is-dragging * {
  user-select: none !important;
  pointer-events: none !important;
}

.kategori-scroll img,
.produk-scroll-horizontal img,
.kategori-card,
.produk-card {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

.kategori-card {
  flex: 0 0 74px;
  width: 74px;
  max-width: 74px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: none;
  border: none;
  outline: none;
  padding: 0;
  text-decoration: none;
  font-family: inherit;
}

.kategori-card:active {
  transform: scale(0.94);
}

.kategori-card__icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
}

.kategori-card__icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--orange-glow), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
}

.kategori-card:hover .kategori-card__icon {
  border-color: var(--orange);
}

.kategori-card:hover .kategori-card__icon::before {
  opacity: 1;
}

/* Active State */
.kategori-card.active .kategori-card__icon {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
}

.kategori-card.active .kategori-card__name {
  color: var(--orange);
  font-weight: 700;
}

.kategori-card__name {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.3;
}

/* ============================================
   PRODUK CARDS
   ============================================ */
.produk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── Section Kategori Produk Horizontal Scroll ── */
.section-category {
  padding: 16px 0 8px;
}

.section-category .section-header {
  padding: 0 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-category .section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.section-category .section-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.section-category .section-link:hover {
  opacity: 0.85;
}

.section-category .section-link svg {
  width: 14px;
  height: 14px;
  stroke: var(--orange);
  transition: transform 0.2s ease;
}

.section-category .section-link:hover svg {
  transform: translateX(3px);
}

.produk-scroll-horizontal {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 16px 16px;
  scroll-padding: 0 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.produk-scroll-horizontal::-webkit-scrollbar {
  display: none;
}

.produk-scroll-horizontal.is-dragging,
.kategori-scroll.is-dragging {
  cursor: grabbing !important;
  user-select: none !important;
  scroll-snap-type: none !important;
}

.produk-scroll-horizontal.is-dragging * {
  user-select: none !important;
  pointer-events: none !important;
}

.produk-card--horizontal {
  flex: 0 0 180px;
  width: 180px;
  max-width: 180px;
  scroll-snap-align: start;
}

@media (max-width: 375px) {
  .produk-card--horizontal {
    flex: 0 0 160px;
    width: 160px;
    max-width: 160px;
  }
}

/* ── Card View More di Ujung Kanan Scroll ── */
.produk-card--view-more {
  flex: 0 0 150px;
  width: 150px;
  max-width: 150px;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border-glass);
  background: var(--bg-glass);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
  padding: 20px 12px;
  text-align: center;
}

@media (max-width: 375px) {
  .produk-card--view-more {
    flex: 0 0 135px;
    width: 135px;
    max-width: 135px;
  }
}

.produk-card--view-more:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
  background: var(--orange-glow);
  box-shadow: 0 8px 24px rgba(255, 87, 34, 0.15);
}

.produk-card--view-more:active {
  transform: scale(0.96);
}

.view-more-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    background var(--transition),
    border-color var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.view-more-circle svg {
  width: 20px;
  height: 20px;
  stroke: var(--orange);
  transition: transform 0.25s ease;
}

.produk-card--view-more:hover .view-more-circle {
  background: var(--orange);
  border-color: var(--orange);
}

.produk-card--view-more:hover .view-more-circle svg {
  stroke: #fff;
  transform: translateX(3px);
}

.view-more-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
  transition: color var(--transition);
}

.produk-card--view-more:hover .view-more-label {
  color: var(--orange);
}

.view-more-cat {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Light Mode View More */
body.light-mode .produk-card--view-more {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.6);
}

body.light-mode .produk-card--view-more:hover {
  border-color: var(--orange);
  background: rgba(255, 87, 34, 0.08);
}

body.light-mode .view-more-circle {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.produk-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color var(--transition),
    box-shadow var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  animation: cardFadeIn 0.5s ease both;
}

.produk-card:nth-child(1) {
  animation-delay: 0.05s;
}

.produk-card:nth-child(2) {
  animation-delay: 0.10s;
}

.produk-card:nth-child(3) {
  animation-delay: 0.15s;
}

.produk-card:nth-child(4) {
  animation-delay: 0.20s;
}

.produk-card:nth-child(5) {
  animation-delay: 0.25s;
}

.produk-card:nth-child(6) {
  animation-delay: 0.30s;
}

.produk-card:nth-child(7) {
  animation-delay: 0.35s;
}

.produk-card:nth-child(8) {
  animation-delay: 0.40s;
}

.produk-card:nth-child(9) {
  animation-delay: 0.45s;
}

.produk-card:nth-child(10) {
  animation-delay: 0.50s;
}

.produk-card:nth-child(11) {
  animation-delay: 0.55s;
}

.produk-card:nth-child(12) {
  animation-delay: 0.60s;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

.produk-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 87, 34, 0.4);
  box-shadow: 0 12px 32px rgba(255, 87, 34, 0.18), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.produk-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--bg-secondary);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.produk-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.produk-card:hover .produk-card__img {
  transform: scale(1.06);
}

.produk-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}

.produk-card__stock-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
}

.produk-card__stock-badge.in-stock {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
}

.produk-card__stock-badge.out-stock {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
}

.produk-card__icon-placeholder {
  font-size: 52px;
  filter: grayscale(0.2);
  animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-6px);
  }
}

.produk-card__body {
  padding: 11px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.produk-card__category {
  font-size: 11px;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.produk-card__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  /* Kunci: min-height 2 baris agar semua card rata */
  min-height: calc(13px * 1.35 * 2);
}

.produk-card__price {
  font-size: 15px;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 10px;
  /* Dorong tombol ke bawah */
  margin-top: auto;
}

.btn-order {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 0;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px rgba(255, 87, 34, 0.3);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow var(--transition),
    background var(--transition);
  position: relative;
  overflow: hidden;
  margin-top: auto;
}

/* Ripple effect */
.btn-order::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: inherit;
  opacity: 0;
  transform: scale(0);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.btn-order:active::after {
  transform: scale(2);
  opacity: 0;
  transition: 0s;
}

.btn-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.5);
}

.btn-order:active {
  transform: scale(0.96);
  box-shadow: none;
}

/* Animasi sukses tambah keranjang */
.btn-order.added {
  background: linear-gradient(135deg, #22C55E, #16A34A);
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
  animation: btnPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes btnPop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }

  100% {
    transform: scale(1);
  }
}

.btn-order.disabled {
  background: var(--bg-secondary);
  color: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-order svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
}

/* ============================================
   CARD QTY CONTROL — kontrol +/- di kartu produk
   ============================================ */
.card-qty-ctrl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  border-radius: var(--radius-sm);
  padding: 4px;
  gap: 4px;
  box-shadow: 0 2px 12px rgba(255, 87, 34, 0.3);
  animation: cardQtyIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardQtyIn {
  0% {
    transform: scale(0.85);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.card-qty__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  border-radius: calc(var(--radius-sm) - 3px);
  transition: background 0.15s, transform 0.15s;
  flex-shrink: 0;
  line-height: 1;
}

.card-qty__btn:hover {
  background: rgba(255, 255, 255, 0.38);
  transform: scale(1.12);
}

.card-qty__btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.15);
}

.card-qty__val {
  flex: 1;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  min-width: 24px;
  letter-spacing: 0.5px;
}

/* ============================================
   BOTTOM SHEET ORDER MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  z-index: 2001;
  padding: 0 0 calc(var(--bottomnav-h) + 10px);
  transform: translateY(105%);
  transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 85vh;
  overflow-y: auto;
  border-top: 1px solid var(--border-glass);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.45);
  will-change: transform;
}

.bottom-sheet.active {
  transform: translateY(0);
}

/* Stagger animasi konten di dalam sheet */
.bottom-sheet.active .bottom-sheet__handle {
  animation: sheetItemIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s both;
}

.bottom-sheet.active .bottom-sheet__header {
  animation: sheetItemIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.10s both;
}

.bottom-sheet.active .bottom-sheet__label {
  animation: sheetItemIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

.bottom-sheet.active .qty-counter {
  animation: sheetItemIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.20s both;
}

.bottom-sheet.active .wa-note {
  animation: sheetItemIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s both;
}

.bottom-sheet.active #btn-add-to-cart {
  animation: sheetBtnIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.30s both;
}

@keyframes sheetItemIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sheetBtnIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.92);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.bottom-sheet__handle {
  display: flex;
  justify-content: center;
  padding: 12px 0 0;
}

.bottom-sheet__handle::before {
  content: '';
  width: 40px;
  height: 4px;
  background: var(--border-glass);
  border-radius: 2px;
}

.bottom-sheet__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 16px;
  border-bottom: 1px solid var(--border-glass);
}

.bottom-sheet__product-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  border: 1px solid var(--border-glass);
}

.bottom-sheet.active .bottom-sheet__product-img {
  animation: iconPopIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.08s both;
}

@keyframes iconPopIn {
  from {
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
  }

  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.bottom-sheet__info {
  flex: 1;
}

.bottom-sheet__info-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.bottom-sheet__info-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--orange);
}

.bottom-sheet__body {
  padding: 16px 20px;
}

.bottom-sheet__label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

/* Qty counter */
.qty-counter {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  width: fit-content;
  overflow: hidden;
  margin-bottom: 20px;
}

.qty-btn {
  width: 40px;
  height: 40px;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--orange);
  font-weight: 700;
  transition: background var(--transition);
}

.qty-btn:active {
  background: var(--orange-glow);
}

.qty-value {
  min-width: 48px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  padding: 0 4px;
  border-left: 1px solid var(--border-glass);
  border-right: 1px solid var(--border-glass);
  height: 40px;
  line-height: 40px;
}

/* WA note */
.wa-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(37, 211, 102, 0.06);
  border: 1px solid rgba(37, 211, 102, 0.15);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.wa-note svg {
  width: 18px;
  height: 18px;
  stroke: #25D366;
  flex-shrink: 0;
  margin-top: 1px;
}

.wa-note p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.wa-note strong {
  color: #25D366;
}

.btn-order-wa {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow var(--transition),
    background 0.3s ease;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* Ripple layer */
.btn-order-wa::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.25);
  border-radius: inherit;
  transform: scale(0);
  opacity: 1;
  transition: transform 0.5s ease, opacity 0.5s ease;
  pointer-events: none;
}

.btn-order-wa:active::before {
  transform: scale(2.5);
  opacity: 0;
  transition: 0s;
}

.btn-order-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
}

.btn-order-wa:active {
  transform: scale(0.96);
  box-shadow: none;
}

/* Success bounce state */
.btn-order-wa.btn-success {
  animation: cartBtnSuccess 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cartBtnSuccess {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }

  25% {
    transform: scale(0.93);
    filter: brightness(1.5);
  }

  60% {
    transform: scale(1.07);
    filter: brightness(1.2);
  }

  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

.btn-order-wa svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-order-wa:hover svg {
  transform: scale(1.15) rotate(-8deg);
}

/* ============================================
   BOTTOM NAVIGATION
   ============================================ */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--bottomnav-h);
  background: #000000 !important;
  background-color: #000000 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  padding: 8px 0;
  cursor: pointer;
  transition: transform var(--transition);
  position: relative;
  background: transparent;
  border: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  color: inherit;
  text-decoration: none;
}

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

.nav-item svg {
  width: 22px;
  height: 22px;
  stroke: var(--text-muted);
  transition: stroke var(--transition);
}

.nav-item span {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-item.active svg {
  stroke: var(--orange);
}

.nav-item.active span {
  color: var(--orange);
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--orange);
  border-radius: 0 0 3px 3px;
}

.nav-item__badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 18px);
  background: var(--orange);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
}

/* ============================================
   PROMO STRIP
   ============================================ */
.promo-strip {
  background: linear-gradient(90deg, rgba(255, 87, 34, 0.15), rgba(255, 87, 34, 0.05));
  border: 1px solid rgba(255, 87, 34, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 16px 16px;
}

.promo-strip__icon {
  font-size: 22px;
  flex-shrink: 0;
}

.promo-strip__text {
  flex: 1;
}

.promo-strip__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.promo-strip__sub {
  font-size: 11px;
  color: var(--text-secondary);
}

.promo-strip__cta {
  font-size: 12px;
  color: var(--orange);
  font-weight: 600;
  white-space: nowrap;
}

/* ============================================
   SKELETON LOADER (shimmer)
   ============================================ */
@keyframes shimmer {
  0% {
    background-position: -400px 0;
  }

  100% {
    background-position: 400px 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-secondary) 50%, var(--bg-card) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast-container {
  position: fixed;
  top: calc(var(--navbar-h) + 10px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  box-shadow: var(--shadow-card);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.5s forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* ============================================
   CART PANEL — Keranjang Belanja
   ============================================ */
.cart-sticky-banner {
  position: fixed;
  bottom: calc(var(--bottomnav-h) + 12px);
  left: 12px;
  right: 12px;
  background: #00AA5B;
  /* Tokopedia green */
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: none;
  /* Default hide, controlled by JS */
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  cursor: pointer;
  z-index: 990;
  box-shadow: 0 4px 16px rgba(0, 170, 91, 0.3);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, opacity 0.3s ease;
}

.cart-sticky-banner.banner-hidden {
  transform: translateY(150px);
  opacity: 0;
  pointer-events: none;
}

.cart-sticky-banner.active {
  display: flex;
}

.cart-sticky-banner:active {
  transform: scale(0.98);
}

.cart-sticky-banner__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-sticky-banner__text strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.cart-sticky-banner__text p {
  font-size: 11px;
  opacity: 0.95;
  margin: 0;
}

.cart-sticky-banner__price {
  font-size: 14px;
  font-weight: 700;
}

.cart-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border-top: 1px solid var(--border-glass);
  z-index: 2001;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  max-height: 86vh;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
}

.cart-panel.active {
  transform: translateY(0);
}

.cart-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 12px;
  border-bottom: 1px solid var(--border-glass);
  flex-shrink: 0;
}

.cart-panel__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.cart-panel__title svg {
  width: 20px;
  height: 20px;
  stroke: var(--orange);
}

.cart-panel__close {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}

.cart-panel__close:hover {
  background: var(--orange-glow);
}

.cart-panel__close svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-secondary);
}

.cart-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  -webkit-overflow-scrolling: touch;
}

/* ── Cart Empty ── */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 56px 24px;
  text-align: center;
}

.cart-empty__icon {
  font-size: 52px;
  line-height: 1;
  opacity: 0.35;
  margin-bottom: 6px;
}

.cart-empty__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

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

/* ── Cart Item ── */
.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-glass);
  transition: background var(--transition);
}

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

.cart-item__icon {
  font-size: 34px;
  line-height: 1;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
}

.cart-item__info {
  flex: 1;
  min-width: 0;
}

.cart-item__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item__price {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.cart-item__sub {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  margin-top: 4px;
}

.cart-item__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Cart Qty Controls ── */
.cart-qty {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  overflow: hidden;
}

.cart-qty__btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-qty__btn:hover {
  background: var(--orange-glow);
  color: var(--orange);
}

.cart-qty__val {
  min-width: 26px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  border-left: 1px solid var(--border-glass);
  border-right: 1px solid var(--border-glass);
  padding: 0 4px;
  line-height: 30px;
}

/* ── Delete Button ── */
.cart-item__del {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-muted);
  transition: color var(--transition);
  display: flex;
  align-items: center;
}

.cart-item__del:hover {
  color: var(--red);
}

.cart-item__del svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
}

/* ── Cart Footer ── */
.cart-panel__footer {
  flex-shrink: 0;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-card);
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-total-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.cart-total-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

/* ── Checkout WA Button ── */
.btn-checkout-wa {
  width: 100%;
  padding: 15px 20px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  letter-spacing: 0.01em;
}

.btn-checkout-wa svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
}

.btn-checkout-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
}

.btn-checkout-wa:active {
  transform: scale(0.97);
}

/* ── Add to Cart button variant ── */
.btn-add-cart {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark)) !important;
}

/* ── Light mode cart overrides ── */
body.light-mode .cart-panel {
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.12);
}

body.light-mode .cart-panel__footer {
  background: #ffffff;
}

body.light-mode .cart-item__icon {
  background: var(--bg-secondary);
}

/* ============================================
   RESPONSIVE — max 480px default, but ensure
   tablet looks good too
   ============================================ */
@media (min-width: 481px) {
  body {
    max-width: 480px;
    margin: 0 auto;
  }

  .navbar,
  .bottom-nav {
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
  }

  .modal-overlay {
    max-width: 100%;
  }

  .bottom-sheet {
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
  }

  .cart-sticky-banner {
    max-width: calc(480px - 24px);
    left: 50%;
    transform: translateX(-50%);
  }

  .cart-sticky-banner.banner-hidden {
    transform: translateX(-50%) translateY(150px);
  }

  .cart-sticky-banner:active {
    transform: translateX(-50%) scale(0.98);
  }

  .bottom-sheet.active {
    transform: translateX(-50%) translateY(0);
  }

  .cart-panel {
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
  }

  .cart-panel.active {
    transform: translateX(-50%) translateY(0);
  }

  .toast-container {
    left: 50%;
  }
}

@media (min-width: 768px) {
  body {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
  }

  /* Full screen pattern (Background belakang) */
  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    background-color: #0f172a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 1600 800'%3E%3Cg %3E%3Cpolygon fill='%231e293b' points='800 100 0 200 0 800 1600 800 1600 200'/%3E%3Cpolygon fill='%231c2636' points='800 200 0 400 0 800 1600 800 1600 400'/%3E%3Cpolygon fill='%23192332' points='800 300 0 600 0 800 1600 800 1600 600'/%3E%3Cpolygon fill='%2317202d' points='1600 800 800 400 0 800'/%3E%3Cpolygon fill='%23151c29' points='1280 800 800 500 320 800'/%3E%3Cpolygon fill='%23121924' points='533.3 800 1066.7 800 800 600'/%3E%3Cpolygon fill='%230f172a' points='684.1 800 914.3 800 800 700'/%3E%3C/g%3E%3C/svg%3E");
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    transition: background-color 0.35s ease;
  }

  body.light-mode::before {
    background-color: #f6f6f6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 1600 800'%3E%3Cg %3E%3Cpolygon fill='%23eaf0f1' points='800 100 0 200 0 800 1600 800 1600 200'/%3E%3Cpolygon fill='%23dfebec' points='800 200 0 400 0 800 1600 800 1600 400'/%3E%3Cpolygon fill='%23d3e5e7' points='800 300 0 600 0 800 1600 800 1600 600'/%3E%3Cpolygon fill='%23c8e0e3' points='1600 800 800 400 0 800'/%3E%3Cpolygon fill='%23bcdade' points='1280 800 800 500 320 800'/%3E%3Cpolygon fill='%23b1d5d9' points='533.3 800 1066.7 800 800 600'/%3E%3Cpolygon fill='%23a5cfd4' points='684.1 800 914.3 800 800 700'/%3E%3C/g%3E%3C/svg%3E");
  }

  /* Solid container 480px (Layar HP) */
  body::after {
    content: '';
    position: fixed;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    z-index: -1;
    background: var(--bg-primary);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    transition: background 0.35s ease, box-shadow 0.35s ease;
  }

  body.light-mode::after {
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
  }
}

/* -- Product & Category Images -- */
.kat-card__icon img,
.prod-card__img img,
.prod-detail__img img,
.cart-item__icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ── Custom Modal ── */
.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.custom-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.custom-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 24px;
  width: 100%;
  max-width: 320px;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.custom-modal-overlay.active .custom-modal {
  transform: scale(1) translateY(0);
}

.custom-modal__icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.custom-modal__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.custom-modal__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.custom-modal__actions {
  display: flex;
  gap: 12px;
}

.custom-modal__btn {
  flex: 1;
  padding: 14px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Outfit', sans-serif;
}

.custom-modal__btn--cancel {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.custom-modal__btn--confirm {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.2);
}

.custom-modal__btn:active {
  transform: scale(0.95);
}

/* ── Custom Select ── */
.custom-select-wrapper {
  position: relative;
  user-select: none;
}

.custom-select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1.5px solid var(--border-glass);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.custom-select-trigger:active {
  transform: scale(0.98);
}

.custom-select-options {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.3);
  z-index: 100;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-select-options.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select-option {
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid var(--border-glass);
}

.custom-select-option:last-child {
  border-bottom: none;
}

.custom-select-option:hover {
  background: rgba(255, 87, 34, 0.1);
}

.custom-select-option.selected {
  color: var(--orange);
  font-weight: 700;
  background: rgba(255, 87, 34, 0.05);
}