/* ==========================================================
   FROZEN FOOD STORE — TOKO ONLINE GROSIR & ECER
   Modern, Mobile-First, Premium Stylesheet
   ========================================================== */

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

:root {
  --theme-primary: #BE1E1E;
  --theme-dark: #BE1E1E;
  --theme-light: #FEE2E2;
  --theme-accent: #FACC15;
  --theme-text: #1E1B4B;
  --theme-bg: #F8FAFC;
  --theme-header-bg: #FFFFFF;
  --theme-footer-bg: #BE1E1E;
  
  --theme-primary-rgb: 190, 30, 30;
  --theme-accent-rgb: 250, 204, 21;
  --theme-border: #E2E8F0;
  --theme-card-shadow: 0 10px 25px -5px rgba(190, 30, 30, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --theme-card-hover: 0 20px 35px -5px rgba(190, 30, 30, 0.18), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --theme-radius: 16px;
  --theme-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.9375rem; /* ~15px - refined, comfortable to read */
  line-height: 1.6;
  color: var(--theme-text);
  background-color: var(--theme-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

/* ==========================================================
   TYPOGRAPHY & UTILITIES
   ========================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--theme-dark);
  letter-spacing: -0.02em;
}

.text-primary-theme { color: var(--theme-primary) !important; }
.text-dark-theme { color: var(--theme-dark) !important; }
.text-accent-theme { color: var(--theme-accent) !important; }
.bg-primary-theme { background-color: var(--theme-primary) !important; }
.bg-dark-theme { background-color: var(--theme-dark) !important; }
.bg-light-theme { background-color: var(--theme-light) !important; }
.bg-accent-theme { background-color: var(--theme-accent) !important; color: #1E1B4B !important; }

.btn-primary-theme {
  background-color: var(--theme-primary);
  border-color: var(--theme-primary);
  color: #FFFFFF;
  font-weight: 600;
  border-radius: 12px;
  padding: 10px 20px;
  transition: var(--theme-transition);
}
.btn-primary-theme:hover, .btn-primary-theme:focus {
  background-color: var(--theme-dark);
  border-color: var(--theme-dark);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(var(--theme-primary-rgb), 0.35);
  transform: translateY(-2px);
}

.btn-accent-theme {
  background-color: var(--theme-accent);
  border-color: var(--theme-accent);
  color: #1E1B4B;
  font-weight: 700;
  border-radius: 12px;
  padding: 10px 22px;
  transition: var(--theme-transition);
}
.btn-accent-theme:hover, .btn-accent-theme:focus {
  background-color: #EAB308;
  border-color: #EAB308;
  color: #1E1B4B;
  box-shadow: 0 8px 20px rgba(var(--theme-accent-rgb), 0.4);
  transform: translateY(-2px);
}

.btn-outline-theme {
  border: 2px solid var(--theme-primary);
  color: var(--theme-primary);
  font-weight: 600;
  border-radius: 12px;
  padding: 8px 18px;
  background: transparent;
  transition: var(--theme-transition);
}
.btn-outline-theme:hover {
  background-color: var(--theme-primary);
  color: #FFFFFF;
}

/* ==========================================================
   TOP BAR & HEADER
   ========================================================== */
.top-announcement-bar {
  background: #BE1E1E !important;
  color: #FFFFFF;
  font-size: 0.825rem;
  font-weight: 500;
  padding: 5px 0;
}

.main-navbar {
  background-color: var(--theme-header-bg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1020;
  transition: var(--theme-transition);
  padding: 10px 0;
}

.navbar-brand img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.nav-link {
  font-size: 0.875rem; /* 14px - nyaman dibaca & pas satu baris */
  font-weight: 600;
  color: var(--theme-dark) !important;
  padding: 6px 12px !important;
  border-radius: 8px;
  transition: var(--theme-transition);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.nav-link i {
  font-size: 0.95rem;
}
.nav-link:hover, .nav-link.active {
  color: var(--theme-primary) !important;
  background-color: var(--theme-light);
}

.main-navbar .form-control {
  font-size: 0.85rem;
  padding: 6px 36px 6px 14px;
  min-width: 170px;
}
.main-navbar .btn-primary-theme {
  font-size: 0.85rem;
  padding: 6px 16px;
  white-space: nowrap;
}

/* ==========================================================
   MODE BELANJA TOGGLE SWITCH (ECER VS GROSIR)
   ========================================================== */
.mode-toggle-card {
  background: #FFFFFF;
  border: 1px solid var(--theme-border);
  border-radius: 16px;
  box-shadow: var(--theme-card-shadow);
  padding: 14px 20px;
  margin-bottom: 24px;
}

.mode-pill-wrapper {
  display: inline-flex;
  background: #F1F5F9;
  border-radius: 30px;
  padding: 3px;
  border: 1px solid #E2E8F0;
}

.mode-pill-btn {
  border: none;
  background: transparent;
  padding: 6px 16px;
  border-radius: 22px;
  font-weight: 700;
  font-size: 0.84rem;
  color: #64748B;
  transition: var(--theme-transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.mode-pill-btn i {
  font-size: 0.875rem;
}
.mode-pill-btn.active {
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-dark) 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(var(--theme-primary-rgb), 0.35);
}

.mode-badge-indicator {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
}
.mode-badge-ecer {
  background-color: #E2E8F0;
  color: #334155;
}
.mode-badge-grosir {
  background: linear-gradient(135deg, #FDE047 0%, #FACC15 100%);
  color: #3B0764;
  font-weight: 800;
}

/* ==========================================================
   HERO BANNER SLIDER 1:1 (SQUARE BANNER)
   - Laptop / Desktop (>= 768px): Jejer 2 Banner Berjalan
   - HP / Mobile (< 768px): 1 Banner Berjalan
   ========================================================== */
.hero-slider-section {
  position: relative;
  margin-top: 8px;
}

.hero-slider-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 4px 0;
}

.hero-slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
  gap: 16px;
}

/* Slide Items: 1 Banner Berjalan Konsisten di Semua Device */
.hero-slide-item {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.hero-banner-square-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(112, 36, 196, 0.14);
  background: #F8FAFC;
  transition: transform 0.35s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.35s ease;
}

.hero-banner-card:hover .hero-banner-square-wrap {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 18px 35px -5px rgba(112, 36, 196, 0.25);
}

.hero-square-banner-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

/* Slider Arrow Controls */
.hero-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(112, 36, 196, 0.2);
  color: var(--theme-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  z-index: 10;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.hero-slider-btn:hover {
  background: var(--theme-primary);
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 24px rgba(112, 36, 196, 0.45);
}

.hero-slider-btn.prev-btn {
  left: 14px;
}
.hero-slider-btn.next-btn {
  right: 14px;
}

/* Slider Dots Indicator */
.hero-slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.hero-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: #CBD5E1;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slider-dot.active {
  width: 28px;
  background: var(--theme-primary);
  box-shadow: 0 2px 8px rgba(var(--theme-primary-rgb), 0.45);
}

/* ==========================================================
   FEATURE STRIP
   ========================================================== */
.feature-box {
  background: #FFFFFF;
  border: 1px solid var(--theme-border);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  transition: var(--theme-transition);
  height: 100%;
}
.feature-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--theme-card-shadow);
  border-color: var(--theme-light);
}
.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background-color: var(--theme-light);
  color: var(--theme-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 14px;
}

/* ==========================================================
   PRODUCT CARDS
   ========================================================== */
.product-card {
  background: #FFFFFF;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  overflow: hidden;
  transition: var(--theme-transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--theme-card-hover);
  border-color: rgba(var(--theme-primary-rgb), 0.25);
}

.product-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 80%; /* 4:3 aspect ratio */
  background: #F8FAFC;
  overflow: hidden;
}
.product-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}

.badge-top-left {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
}

.badge-top-right {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
}

.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--theme-primary);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.product-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--theme-dark);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
}
.product-title:hover {
  color: var(--theme-primary);
}

.product-price-box {
  background: var(--theme-bg);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 10px 0 14px;
}

.price-main {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--theme-primary);
}

.price-secondary {
  font-size: 0.85rem;
  color: #64748B;
}

.wholesale-callout {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--theme-dark);
  background-color: #FEF08A;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 4px;
}

/* ==========================================================
   CATEGORY PILLS & CHIPS
   ========================================================== */
/* ==========================================================
   CATEGORY ICON GRID
   - Laptop / Desktop (>= 992px): 8 Icon Berjejer (1 baris)
   - HP / Mobile (< 992px): 4 Icon per baris (2 baris x 4 icon)
   ========================================================== */
.category-icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 14px 6px;
  margin-bottom: 16px;
}

.category-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  text-align: center;
  padding: 6px 2px;
  border-radius: 16px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  user-select: none;
}

.category-icon-item:hover {
  transform: translateY(-3px);
}

.category-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid var(--theme-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 8px;
  transition: all 0.25s ease;
  color: var(--theme-primary);
}

@media (max-width: 575.98px) {
  .category-icon-circle {
    width: 50px;
    height: 50px;
    font-size: 1.35rem;
    margin-bottom: 6px;
  }
}

.category-icon-item:hover .category-icon-circle {
  border-color: var(--theme-primary);
  background: var(--theme-light);
  box-shadow: 0 6px 16px rgba(var(--theme-primary-rgb), 0.22);
  transform: scale(1.06);
}

.category-icon-item.active .category-icon-circle {
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-dark) 100%) !important;
  color: #FFFFFF !important;
  border-color: var(--theme-primary) !important;
  box-shadow: 0 6px 18px rgba(var(--theme-primary-rgb), 0.4) !important;
}

.category-icon-label {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
  color: #334155;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 85px;
  word-break: break-word;
}

@media (max-width: 575.98px) {
  .category-icon-label {
    font-size: 0.72rem;
    max-width: 75px;
  }
}

.category-icon-item.active .category-icon-label {
  color: var(--theme-primary);
  font-weight: 800;
}

.category-icon-item:hover .category-icon-label {
  color: var(--theme-primary);
}

/* ==========================================================
   CATEGORY SECTION (Background Lembut Selaras Logo Dapoer Hamasah)
   ========================================================== */
.category-purple-section {
  background: #FFF3E8; /* Warna peach/cream lembut solid selaras logo */
  border: 1px solid #FED7AA;
  border-radius: 24px;
  padding: 22px 20px 18px;
  box-shadow: 0 8px 24px rgba(251, 146, 60, 0.12);
  position: relative;
  margin-bottom: 32px;
}

.category-purple-section::before,
.category-purple-section::after {
  display: none; /* Hilangkan ornamen gradasi */
}

.category-purple-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}

.category-purple-title {
  color: #1C1917; /* Charcoal black elegan seperti teks Dapoer */
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.category-purple-title i {
  color: var(--theme-primary); /* Oranye logo Dapoer Hamasah */
}

.category-purple-link {
  color: #C2410C;
  background: #FFFFFF;
  border: 1px solid #FED7AA;
  padding: 6px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.825rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(194, 65, 12, 0.08);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.category-purple-link:hover {
  background: var(--theme-primary);
  color: #FFFFFF;
  border-color: var(--theme-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(250, 133, 54, 0.35);
}

/* Penyesuaian Icon di dalam Section Lembut */
.category-purple-section .category-icon-grid {
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.category-purple-section .category-icon-circle {
  background: #FFFFFF;
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.08);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-purple-section .category-icon-item:hover .category-icon-circle {
  transform: translateY(-4px) scale(1.08);
  background: #FFFFFF;
  border-color: var(--theme-primary);
  box-shadow: 0 8px 20px rgba(250, 133, 54, 0.22);
}

.category-purple-section .category-icon-item.active .category-icon-circle {
  background: var(--theme-primary) !important;
  color: #FFFFFF !important;
  border-color: var(--theme-primary) !important;
  box-shadow: 0 8px 22px rgba(250, 133, 54, 0.45) !important;
  transform: scale(1.1);
}

.category-purple-section .category-icon-item.active .category-icon-circle i {
  color: #FFFFFF !important;
}

.category-purple-section .category-icon-label {
  color: #1C1917; /* Charcoal black, sangat kontras & terbaca jelas */
  font-weight: 700;
  text-shadow: none;
}

.category-purple-section .category-icon-item.active .category-icon-label {
  color: #EA580C;
  font-weight: 800;
}

.category-purple-section .category-icon-item:hover .category-icon-label {
  color: var(--theme-primary);
}

/* Category Chip Legacy Fallback */
.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #FFFFFF;
  border: 1px solid var(--theme-border);
  border-radius: 30px;
  color: var(--theme-dark);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--theme-transition);
  white-space: nowrap;
}
.category-chip:hover, .category-chip.active {
  background-color: var(--theme-primary);
  border-color: var(--theme-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(var(--theme-primary-rgb), 0.25);
}

/* ==========================================================
   FLOATING WHATSAPP BUTTON & CART BADGE
   ========================================================== */
.floating-wa-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: #FFFFFF;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 1040;
  transition: var(--theme-transition);
  text-decoration: none;
}
.floating-wa-btn:hover {
  transform: scale(1.1);
  color: #FFFFFF;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.cart-badge-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--theme-accent);
  color: #1E1B4B;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
}

/* ==========================================================
   CART & ORDER SUMMARY
   ========================================================== */
.cart-item-row {
  background: #FFFFFF;
  border: 1px solid var(--theme-border);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--theme-transition);
}
.cart-item-row:hover {
  border-color: rgba(var(--theme-primary-rgb), 0.3);
}

.cart-item-thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  background: #F8FAFC;
  flex-shrink: 0;
}

.qty-control-group {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--theme-border);
  border-radius: 10px;
  background: #FFFFFF;
  overflow: hidden;
}
.qty-btn {
  background: #F8FAFC;
  border: none;
  width: 34px;
  height: 34px;
  font-weight: 700;
  color: var(--theme-dark);
  transition: var(--theme-transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover {
  background: var(--theme-light);
  color: var(--theme-primary);
}
.qty-input {
  width: 44px;
  height: 34px;
  border: none;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--theme-dark);
}

/* ==========================================================
   PRODUCT DETAIL PAGE (COMPACT, NEAT & TIDY)
   ========================================================== */
.product-detail-card {
  border-radius: 18px;
  background: #FFFFFF;
}

.product-img-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.product-img-main {
  max-height: 290px;
  width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 0.74rem;
  line-height: 1.25;
  white-space: nowrap;
}

.product-spec-pill .spec-label {
  color: #64748B;
  font-weight: 500;
}

.product-spec-pill .spec-value {
  color: #1E293B;
  font-weight: 700;
}

.product-detail-title {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1E293B;
  margin-top: 2px;
  word-break: break-word;
}

@media (min-width: 768px) {
  .product-detail-title {
    font-size: 1.35rem;
  }
}

.product-detail-desc {
  font-size: 0.84rem;
  line-height: 1.5;
  color: #64748B;
  margin-bottom: 14px;
}

.product-price-box {
  background: #FFF5F5;
  border: 1px solid #FED7D7;
  border-radius: 12px;
}

.product-price-amount {
  font-size: 1.32rem;
  font-weight: 800;
  color: #BE1E1E;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.product-price-unit {
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748B;
}

.product-qty-subtotal-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
}

.product-subtotal-val {
  font-size: 1.12rem;
  font-weight: 800;
  color: #1E293B;
  line-height: 1.2;
}

.product-trust-grid {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
}

/* ==========================================================
   TESTIMONIALS & VIDEO EMBED
   ========================================================== */
.testimonial-card {
  background: #FFFFFF;
  border: 1px solid var(--theme-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--theme-card-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.testi-stars {
  color: #FACC15;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.testi-media-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.testi-media-img:hover {
  transform: scale(1.02);
}

.responsive-video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #000000;
}
.responsive-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  background-color: var(--theme-footer-bg);
  color: #F3E8FF;
  padding: 50px 0 24px;
  margin-top: auto;
}
.site-footer h5 {
  color: #FFFFFF;
  font-weight: 700;
  margin-bottom: 20px;
}
.site-footer a {
  color: #E9D5FF;
  text-decoration: none;
  transition: var(--theme-transition);
}
.site-footer a:hover {
  color: var(--theme-accent);
  padding-left: 4px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 40px;
  font-size: 0.85rem;
  color: #D8B4FE;
}

/* ==========================================================
   ANIMATIONS & MICRO-INTERACTIONS
   ========================================================== */
@keyframes pulseWa {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.pulse-wa {
  animation: pulseWa 2s infinite;
}

/* Loading skeletons */
.skeleton {
  background: linear-gradient(90deg, #E2E8F0 25%, #F1F5F9 50%, #E2E8F0 75%);
  background-size: 200% 100%;
  animation: skeletonLoad 1.5s infinite;
  border-radius: 8px;
}
@keyframes skeletonLoad {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-banner-img {
    min-height: 200px;
  }
  .cart-item-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================
   MOBILE PRODUCT GRID JEJER 2 (2 COLUMNS ON HP)
   ========================================================== */
@media (max-width: 575.98px) {
  .product-card {
    border-radius: 14px;
  }
  .product-body {
    padding: 10px 8px 12px;
  }
  .product-title {
    font-size: 0.825rem;
    line-height: 1.3;
    height: 2.6em;
    margin-bottom: 4px;
    font-weight: 700;
  }
  .product-category-tag {
    font-size: 0.65rem;
    margin-bottom: 2px;
  }
  .product-price-box {
    padding: 6px 8px;
    margin: 6px 0 10px;
    border-radius: 8px;
  }
  .price-main {
    font-size: 0.98rem;
    font-weight: 800;
  }
  .price-secondary {
    font-size: 0.72rem;
  }
  .wholesale-callout {
    font-size: 0.65rem;
    padding: 2px 5px;
    margin-top: 2px;
  }
  .badge-top-left {
    top: 6px;
    left: 6px;
    gap: 3px !important;
  }
  .badge-top-right {
    top: 6px;
    right: 6px;
  }
  .badge-top-left .badge,
  .badge-top-right .badge {
    font-size: 0.625rem;
    padding: 3px 6px;
    border-radius: 6px;
    letter-spacing: -0.02em;
  }
  .product-card .btn {
    font-size: 0.75rem;
    padding: 6px 4px !important;
    border-radius: 8px;
  }
  .whatsapp-float-btn {
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
    font-size: 1.65rem;
  }
}

/* ==========================================================
   APP VIEW ARCHITECTURE (LAPTOP, TABLET & HP - UKURAN SERAGAM)
   ========================================================== */

/* Outer Body & Backdrop: Merah Lembut (Soft Warm Red) */
body.app-body-backdrop {
  background-color: #FFF1F2;
  background-image: 
    radial-gradient(circle at 12% 15%, #FFE4E6 0%, transparent 45%),
    radial-gradient(circle at 88% 85%, #FEE2E2 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, #FFF5F5 0%, #FFEBEB 100%);
  background-attachment: fixed;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Viewport Wrapper: Centers App Frame on Laptop/Tablet, Fluid on HP */
.app-viewport-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  box-sizing: border-box;
}

@media (min-width: 521px) {
  .app-viewport-wrapper {
    padding: 24px 16px 80px 16px;
  }
}

/* App Shell Container: The Native Smartphone Screen Simulation */
.app-shell-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background-color: var(--theme-bg, #F8FAFC);
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.15);
}

@media (min-width: 521px) {
  .app-shell-container {
    border-radius: 44px;
    border: 9px solid #7F1D1D;
    box-shadow: 
      0 20px 60px -10px rgba(127, 29, 29, 0.22),
      0 0 0 1px rgba(255, 255, 255, 0.8),
      0 8px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    min-height: 850px;
  }
}

/* Smartphone Top Status Bar */
.app-status-bar {
  background-color: #BE1E1E !important;
  color: #FFFFFF;
  font-size: 0.72rem;
  height: 32px;
  user-select: none;
  z-index: 1025;
}

.dynamic-island-notch {
  width: 82px;
  height: 16px;
  background: #000000;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
}

.notch-camera {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1E293B;
  border: 1px solid #334155;
}

/* Slim Top Announcement Bar (Header - 100% Solid #BE1E1E Tanpa Gradasi) */
.app-announcement-bar {
  background: #BE1E1E !important;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 500;
}

/* App Top Header Bar */
.app-top-bar {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--theme-border, #E2E8F0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.app-bar-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--theme-light, #FEE2E2);
  color: var(--theme-dark, #450A0A);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  text-decoration: none;
  transition: var(--theme-transition);
  cursor: pointer;
  flex-shrink: 0;
}

.app-bar-btn:hover {
  background: var(--theme-primary);
  color: #FFFFFF;
  transform: scale(1.05);
}

.app-bar-page-title {
  font-size: 0.95rem;
  color: var(--theme-dark);
}

.app-brand-title {
  font-size: 0.95rem;
}

/* Main Content Padding for App Bottom Nav */
.app-main-content {
  flex: 1 0 auto;
  padding-bottom: 85px;
}

/* App Bottom Navigation Bar */
.app-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--theme-border, #E2E8F0);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

@media (min-width: 521px) {
  .app-bottom-nav {
    max-width: 458px;
    bottom: 24px;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
}

.app-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #64748B;
  font-size: 0.68rem;
  font-weight: 600;
  flex: 1;
  padding: 4px 2px;
  transition: all 0.2s ease;
  border-radius: 12px;
  user-select: none;
}

.app-nav-item:hover {
  color: var(--theme-primary);
}

.app-nav-icon {
  font-size: 1.25rem;
  line-height: 1;
  margin-bottom: 2px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.app-nav-item.active {
  color: var(--theme-primary) !important;
  font-weight: 800;
}

.app-nav-item.active .app-nav-icon {
  transform: scale(1.18);
  color: var(--theme-primary);
}

/* Floating WhatsApp Button locked within 480px app bounds */
.floating-wa-btn {
  position: fixed;
  z-index: 1025;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  font-size: 1.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: all 0.25s ease;
}

.floating-wa-btn:hover {
  background: #128C7E;
  color: #FFFFFF;
  transform: scale(1.08);
}

@media (min-width: 521px) {
  .floating-wa-btn {
    bottom: 96px;
    left: calc(50% + 228px - 58px);
  }
}

@media (max-width: 520px) {
  .floating-wa-btn {
    bottom: 74px;
    right: 14px;
    left: auto;
  }
}

/* App Footer inside Shell (100% Solid #BE1E1E Tanpa Gradasi) */
.app-footer {
  background-color: #BE1E1E !important;
  color: #FFFFFF !important;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.app-footer p,
.app-footer .text-white-50 {
  color: rgba(255, 255, 255, 0.88) !important;
}

.app-footer-links a {
  color: rgba(255, 255, 255, 0.9) !important;
  transition: color 0.15s ease;
}

.app-footer-links a:hover {
  color: #FACC15 !important;
}

/* Consistency Overrides for Components inside App View (Laptop, Tablet & HP) */
.app-shell-container .container {
  max-width: 100% !important;
  padding-left: 14px !important;
  padding-right: 14px !important;
}

/* Uniform App Product Cards on All Screens */
.app-shell-container .product-card {
  border-radius: 14px;
}

.app-shell-container .product-body {
  padding: 10px 8px 12px;
}

.app-shell-container .product-title {
  font-size: 0.825rem;
  line-height: 1.3;
  height: 2.6em;
  margin-bottom: 4px;
  font-weight: 700;
}

.app-shell-container .product-category-tag {
  font-size: 0.65rem;
  margin-bottom: 2px;
}

.app-shell-container .product-price-box {
  padding: 6px 8px;
  margin: 6px 0 10px;
  border-radius: 8px;
}

.app-shell-container .price-main {
  font-size: 0.98rem;
  font-weight: 800;
}

.app-shell-container .badge-top-left {
  top: 6px;
  left: 6px;
}

.app-shell-container .badge-top-right {
  top: 6px;
  right: 6px;
}

.app-shell-container .badge-top-left .badge,
.app-shell-container .badge-top-right .badge {
  font-size: 0.625rem;
  padding: 3px 6px;
  border-radius: 6px;
}

.app-shell-container .product-card .btn {
  font-size: 0.75rem;
  padding: 6px 4px !important;
  border-radius: 8px;
}

/* Scale large headings nicely for app layout */
.app-shell-container h1,
.app-shell-container .display-5 {
  font-size: 1.35rem !important;
}

.app-shell-container h2 {
  font-size: 1.2rem !important;
}

.app-shell-container h3 {
  font-size: 1.1rem !important;
}

.app-shell-container h4 {
  font-size: 1.0rem !important;
}

.app-shell-container .lead {
  font-size: 0.875rem !important;
}

/* Toast Container positioning */
#toast-container {
  max-width: 440px;
  left: 50% !important;
  transform: translateX(-50%) !important;
  bottom: 85px !important;
  right: auto !important;
}

/* ==========================================================
   EXPLICIT LAYOUT RULES (PRODUK 50% JEJER 2, TESTI 100%, PROFILE 100%)
   ========================================================== */

/* 1. Display Produk Jejer 2 (50% Tiap Produk) */
.app-shell-container .product-card-col,
.app-shell-container .col-6.product-card-col {
  flex: 0 0 50% !important;
  max-width: 50% !important;
  width: 50% !important;
  display: flex !important;
}

.app-shell-container .product-card-col .product-card {
  width: 100% !important;
}

/* 2. Testimoni 100% Full Width (1 Kolom per Baris) */
.app-shell-container .testimonial-col,
.app-shell-container .col-12.testimonial-col,
.app-shell-container .testimonial-card {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* 3. Profile 100% Full Width (Semua Elemen 1 Kolom ke Bawah) */
.app-shell-container .profile-col,
.app-shell-container .profile-card,
.app-shell-container .profile-section {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* 4. Keranjang Belanja 100% Full Width (Tampilan 1 Kolom Penuh) */
.app-shell-container .cart-col-100,
.app-shell-container .cart-item-row-100,
.app-shell-container .cart-summary-card-100 {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}

.cart-item-row-100 {
  background: #FFFFFF;
  border: 1px solid #F1F5F9;
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-item-row-100:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cart-item-thumb-app {
  width: 62px;
  height: 62px;
  border-radius: 12px;
  object-fit: cover;
  background: #F8FAFC;
  flex-shrink: 0;
  border: 1px solid #F1F5F9;
}

.qty-control-group-app {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #E2E8F0;
  border-radius: 9px;
  background: #FFFFFF;
  overflow: hidden;
}

.qty-btn-app {
  background: #F8FAFC;
  border: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1E293B;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.qty-btn-app:hover {
  background: #FEE2E2;
  color: #DC2626;
}

.qty-input-app {
  width: 32px;
  height: 28px;
  border: none;
  border-left: 1px solid #E2E8F0;
  border-right: 1px solid #E2E8F0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0F172A;
  background: #FFFFFF;
}

/* ==========================================================
   REFERENCE LAYOUT STYLES (FROZEN FOOD STORE RED THEME)
   ========================================================== */

/* Header Brand Logo & Red Cart Button */
.brand-cart-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #DC2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
}

.btn-cart-circle-red {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #DC2626;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.05rem;
  box-shadow: 0 3px 8px rgba(220, 38, 38, 0.35);
  position: relative;
  transition: transform 0.15s ease;
}
.btn-cart-circle-red:hover {
  transform: scale(1.08);
}

.cart-badge-count-red {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #FACC15;
  color: #450A0A;
  font-size: 0.62rem;
  font-weight: 900;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-menu-hamburger {
  background: transparent;
  border: none;
  padding: 2px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #1E293B;
}

/* 1. Promotional Red Hero Banner */
.product-promo-hero-banner {
  background: radial-gradient(circle at 85% 50%, rgba(254, 240, 138, 0.25), transparent 50%), linear-gradient(135deg, #B91C1C 0%, #DC2626 55%, #881337 100%);
  border-radius: 20px;
  padding: 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.banner-hero-headline {
  font-size: 1.35rem;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.text-yellow-glow {
  color: #FACC15;
  text-shadow: 0 0 16px rgba(250, 204, 21, 0.7);
}

.banner-sub-ribbon {
  background: #7F1D1D;
  color: #FFFFFF;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

.banner-checklist {
  font-size: 0.68rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.banner-check-text {
  color: #FFFFFF;
}

.banner-snowflake-decor {
  position: absolute;
  color: rgba(255, 255, 255, 0.2);
  pointer-events: none;
}
.banner-snowflake-decor.sf-1 { top: 8px; right: 20px; font-size: 1.6rem; }
.banner-snowflake-decor.sf-2 { bottom: 10px; left: 10px; font-size: 1.2rem; }
.banner-snowflake-decor.sf-3 { top: 50%; left: 45%; font-size: 1.0rem; }

.banner-dish-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.4);
}

/* 2. Category Horizontal Scroll Bar (5 Tampil, Sisanya Geser) */
.category-scroll-container {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 10px 0;
  width: 100%;
}
.category-scroll-container::-webkit-scrollbar {
  display: none;
}

.category-scroll-track {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  width: max-content;
}

.category-pill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  width: 88px;
  min-width: 88px;
  max-width: 88px;
  flex: 0 0 88px;
  padding: 6px 2px 8px 2px;
  border-radius: 20px;
  transition: all 0.2s ease;
  user-select: none;
  text-align: center;
}

@media (max-width: 480px) {
  .category-pill-item {
    width: calc((100vw - 16px - 16px) / 5);
    min-width: calc((100vw - 16px - 16px) / 5);
    max-width: calc((100vw - 16px - 16px) / 5);
    flex: 0 0 calc((100vw - 16px - 16px) / 5);
  }
}

.cat-pill-thumb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  overflow: hidden;
  padding: 4px;
  margin-bottom: 4px;
  transition: transform 0.2s ease;
}

.cat-pill-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cat-pill-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #334155;
  text-align: center;
  line-height: 1.2;
  height: 2.4em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.category-pill-item:hover .cat-pill-thumb {
  transform: scale(1.08);
}

.category-pill-item.active {
  background: #DC2626;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.category-pill-item.active .cat-pill-thumb {
  border-color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.category-pill-item.active .cat-pill-label {
  color: #FFFFFF !important;
  font-weight: 800;
}

/* 3. 3-Column Product Cards (Jejer 3) */
.app-shell-container .row.g-2 > .col-4 {
  flex: 0 0 33.333333% !important;
  max-width: 33.333333% !important;
  width: 33.333333% !important;
  display: flex !important;
  padding-left: 3px !important;
  padding-right: 3px !important;
}

.app-product-card-3col {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #F1F5F9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  width: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-product-card-3col:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.09);
}

.app-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #F8FAFC;
  overflow: hidden;
}

.app-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.app-product-card-3col:hover .app-card-img-wrap img {
  transform: scale(1.05);
}

.btn-wishlist-heart {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
  color: #DC2626;
  font-size: 0.75rem;
  cursor: pointer;
  z-index: 5;
  transition: transform 0.15s ease;
}

.btn-wishlist-heart:hover {
  transform: scale(1.15);
}

.btn-wishlist-heart.active i {
  color: #DC2626;
}

.app-card-badge-bestseller {
  position: absolute;
  top: 5px;
  left: 5px;
  background: #DC2626;
  color: #FFFFFF;
  font-size: 0.46rem;
  font-weight: 900;
  padding: 2px 4px;
  border-radius: 4px;
  z-index: 5;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.app-card-body {
  padding: 6px 5px 8px 5px;
}

.app-card-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #1E293B;
  line-height: 1.25;
  height: 2.5em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.app-card-price {
  font-size: 0.76rem;
  font-weight: 900;
  color: #DC2626;
  white-space: nowrap;
}

.btn-cart-yellow {
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: #FACC15;
  color: #7F1D1D;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 5px rgba(250, 204, 21, 0.45);
  flex-shrink: 0;
}

.btn-cart-yellow:hover {
  background: #EAB308;
  transform: scale(1.08);
}

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

/* 4. Deep Red & Yellow Active Bottom Navigation Bar */
.app-bottom-nav-red {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 1030;
  background: #990000;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}

@media (min-width: 521px) {
  .app-bottom-nav-red {
    max-width: 458px;
    bottom: 24px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
}

.app-nav-item-red {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 4px 6px;
  border-radius: 14px;
  transition: all 0.2s ease;
  user-select: none;
}

.app-nav-item-red:hover {
  color: #FACC15;
}

.app-nav-item-red .nav-icon-wrap {
  font-size: 1.25rem;
  line-height: 1;
  margin-bottom: 2px;
}

.app-nav-item-red.active-pill {
  background: #FACC15 !important;
  color: #450A0A !important;
  font-weight: 800 !important;
  border-radius: 16px;
  padding: 5px 16px;
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.45);
}

.app-nav-item-red.active-pill .nav-icon-wrap,
.app-nav-item-red.active-pill .nav-label-text {
  color: #450A0A !important;
}

/* ==========================================================
   REVISED INDEX.PHP RED APP STYLES (MATCHING USER RED SWATCH)
   ========================================================== */

.text-red-primary,
.text-purple-primary {
  color: #DC2626 !important;
}
.text-red-dark,
.text-purple-dark {
  color: #7F1D1D !important;
}

/* Pure 100% Image Banners (JPG/PNG) */
.hero-image-banner,
.cta-image-banner {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.hero-image-banner img,
.cta-image-banner img {
  width: 100% !important;
  height: auto !important;
  display: block;
  object-fit: cover;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cta-image-banner a:hover img {
  transform: scale(1.02);
}

/* 1. Hero Red Banner (Legacy Fallback) */
.hero-red-banner,
.hero-purple-banner {
  background: radial-gradient(circle at 85% 50%, rgba(254, 240, 138, 0.25), transparent 50%), linear-gradient(135deg, #450A0A 0%, #7F1D1D 45%, #B91C1C 100%);
  border-radius: 20px;
  padding: 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-red-title,
.hero-purple-title {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hero-magenta-ribbon,
.hero-red-ribbon {
  background: #7F1D1D;
  color: #FFFFFF;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(127, 29, 29, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-three-badges {
  display: flex;
  gap: 4px;
}

.hero-badge-item {
  flex: 1;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 5px 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.hero-badge-item .badge-title {
  font-size: 0.6rem;
  font-weight: 800;
  color: #450A0A;
  display: block;
  line-height: 1.1;
}

.hero-badge-item .badge-sub {
  font-size: 0.52rem;
  font-weight: 600;
  color: #64748B;
  display: block;
  line-height: 1.1;
}

.hero-plate-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
}

/* 2. 5 Categories Horizontal Scroller */
.category-scroll-5-wrapper {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 8px 0;
}
.category-scroll-5-wrapper::-webkit-scrollbar {
  display: none;
}

.category-scroll-5-track {
  width: max-content;
}

.category-card-5-item {
  flex: 0 0 calc((100% - 32px) / 5);
  min-width: 68px;
  max-width: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
  user-select: none;
  transition: transform 0.2s ease;
}

.category-card-5-item:hover {
  transform: translateY(-2px);
}

.cat-card-5-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1.5px solid #F1F5F9;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  padding: 4px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cat-card-5-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.category-card-5-item:hover .cat-card-5-thumb {
  border-color: #DC2626;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.cat-card-5-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #450A0A;
  text-align: center;
  line-height: 1.2;
}

/* 3. Produk Terlaris (Jejer 2) */
.app-bestseller-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #F1F5F9;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  width: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-bestseller-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.bestseller-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #F8FAFC;
  overflow: hidden;
}

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

.app-bestseller-card:hover .bestseller-img-wrap img {
  transform: scale(1.05);
}

.badge-terlaris-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #DC2626;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: 12px;
  padding: 2px 8px;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
  z-index: 5;
}

.bestseller-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1E1B4B;
  line-height: 1.25;
  height: 2.5em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.bestseller-price {
  font-size: 0.92rem;
  font-weight: 900;
  color: #DC2626 !important;
  white-space: nowrap;
}

.btn-cart-yellow-sq {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #FACC15;
  color: #7F1D1D;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(250, 204, 21, 0.45);
  flex-shrink: 0;
}

.btn-cart-yellow-sq:hover {
  background: #EAB308;
  transform: scale(1.08);
}

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

/* 4. Banner Call To Action (Belanja Lebih Praktis via WhatsApp) */
.cta-wa-red-banner,
.cta-wa-purple-banner {
  background: linear-gradient(135deg, #450A0A 0%, #7F1D1D 45%, #B91C1C 100%);
  border-radius: 20px;
  padding: 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cta-headline {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.cta-phone-img {
  width: 100%;
  max-height: 130px;
  object-fit: contain;
}

/* 5. Trust Badges Strip */
.trust-badge-strip {
  border: 1px solid #F1F5F9;
}

.trust-title {
  font-size: 0.65rem;
  font-weight: 700;
  color: #450A0A;
  line-height: 1.2;
  display: block;
}

/* 6. App 5-Item Floating Bottom Navigation Bar (100% Solid #BE1E1E Tanpa Gradasi) */
.app-bottom-nav-5 {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 1030;
  background: #BE1E1E !important;
  border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 20px rgba(190, 30, 30, 0.35);
}

@media (min-width: 521px) {
  .app-bottom-nav-5 {
    max-width: 458px;
    bottom: 24px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
  }
}

.app-nav-item-5 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.66rem;
  font-weight: 600;
  flex: 1;
  padding: 4px 2px;
  transition: all 0.2s ease;
  user-select: none;
}

.app-nav-item-5:hover {
  color: #FACC15;
}

.app-nav-item-5.active {
  color: #FACC15 !important;
  font-weight: 800;
}

.app-nav-item-5.active .nav-icon {
  transform: scale(1.12);
  color: #FACC15 !important;
}

.app-nav-item-5 .nav-icon {
  font-size: 1.25rem;
  line-height: 1;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.9);
  transition: transform 0.15s ease;
}

/* Center Elevated Floating Cart Button */
.app-nav-item-center-cart {
  position: relative;
  top: -14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  user-select: none;
}

.center-cart-btn-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #FACC15 !important; /* Gold yellow button without gradient */
  border: 3.5px solid #BE1E1E !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.2s ease;
}

.center-cart-btn-circle i {
  color: #BE1E1E !important;
}

.center-cart-btn-circle:hover {
  transform: scale(1.08);
}

.center-cart-label {
  font-size: 0.66rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 2px;
}

.app-nav-item-center-cart.active .center-cart-label {
  color: #FACC15 !important;
}

.center-cart-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #BE1E1E !important;
  color: #FFFFFF !important;
  font-size: 0.62rem;
  font-weight: 900;
  border-radius: 50%;
  width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #FFFFFF !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}



