/* ============================================
   TOKO KUE RISE - GLOBAL CSS
   Modern, Clean & Attractive Design
   Bright Pink & Blue Theme
   ============================================ */

/* ---- CSS Variables ---- */
:root {
  /* Bright Pink Colors */
  --primary: #ec4899;
  --primary-dark: #be185d;
  --primary-light: #f9a8d4;
  --primary-glow: #f472b6;
  --primary-pastel: #fce7f3;
  
  /* Bright Blue Colors */
  --secondary: #3b82f6;
  --secondary-dark: #2563eb;
  --secondary-light: #93c5fd;
  --secondary-glow: #60a5fa;
  --secondary-pastel: #dbeafe;
  
  /* Accent Colors */
  --accent: #fbbf24;
  --accent-light: #fcd34d;
  
  /* Status Colors */
  --success: #10b981;
  --success-light: #d1fae5;
  --info: #06b6d4;
  --info-light: #cffafe;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  
  /* Neutral Colors */
  --dark: #1e293b;
  --dark-2: #334155;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --light-gray: #f8fafc;
  --white: #ffffff;
  
  /* Gradients - Bright Pink & Blue */
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #ec4899 100%);
  --gradient-pink: linear-gradient(135deg, #f472b6 0%, #ec4899 50%, #be185d 100%);
  --gradient-blue: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
  --gradient-sunset: linear-gradient(135deg, #60a5fa 0%, #f472b6 50%, #ec4899 100%);
  --gradient-soft: linear-gradient(135deg, #dbeafe 0%, #fce7f3 50%, #f9a8d4 100%);
  --gradient-bright: linear-gradient(135deg, #93c5fd 0%, #f472b6 50%, #f9a8d4 100%);
  --gradient-dark: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  --gradient-card: linear-gradient(135deg, rgba(59,130,246,0.1) 0%, rgba(236,72,153,0.1) 100%);

  /* Navbar UI/UX */
  --primary-pink: #ec4899;
  --primary-pink-dark: #db2777;
  --soft-pink: #fce7f3;
  --dark-text: #1f2937;
  --muted-text: #6b7280;
  --border-soft: #f3f4f6;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(59,130,246,0.08);
  --shadow-md: 0 4px 16px rgba(59,130,246,0.12);
  --shadow-lg: 0 8px 32px rgba(236,72,153,0.15);
  --shadow-xl: 0 16px 48px rgba(236,72,153,0.2);
  --shadow-glow-pink: 0 0 20px rgba(236,72,153,0.3);
  --shadow-glow-blue: 0 0 20px rgba(59,130,246,0.3);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Base ---- */
* { box-sizing: border-box; }
html,
body {
  overflow-x: hidden;
}
body {
  font-family: 'Poppins', sans-serif;
  background: #f8fafc;
  color: #1e293b;
  line-height: 1.6;
  min-height: 100vh;
}
a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #f472b6, #3b82f6); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #ec4899, #2563eb); }

/* ---- Navbar ---- */
.navbar {
  background: rgba(255, 255, 255, 0.84) !important;
  padding: 0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  position: sticky;
  top: 0;
  z-index: 1030;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.72);
}
.top-bar {
  background: rgba(255, 255, 255, 0.86) !important;
  color: rgba(15, 23, 42, 0.68) !important;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.68);
}
.top-bar a,
.top-bar span {
  color: rgba(15, 23, 42, 0.68) !important;
}
.navbar-inner {
  padding: 12px 0;
}
.navbar-brand {
  font-weight: 800;
  color: #111827 !important;
  font-size: 1.6rem;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;a
}
.navbar-brand .brand-icon {
  width: 42px;
  height: 42px;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #ec4899;
  box-shadow: none;
  animation: none;
}
@keyframes brandPulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(236,72,153,0.5), 0 4px 15px rgba(59,130,246,0.3); }
  50% { box-shadow: 0 6px 25px rgba(236,72,153,0.7), 0 6px 25px rgba(59,130,246,0.5); }
}
.navbar-brand .brand-text { line-height: 1.1; }
.navbar-brand .brand-text small {
  display: block;
  font-size: 0.6rem;
  font-weight: 400;
  opacity: 0.56;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.navbar-light .navbar-nav .nav-link {
  color: rgba(15, 23, 42, 0.74) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}
.navbar .container,
.navbar-brand,
.navbar-collapse,
.navbar-nav.align-items-center {
  background: transparent !important;
}
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: #111827 !important;
  background: rgba(236, 72, 153, 0.09);
}
.navbar-light .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, #60a5fa, #f472b6);
  border-radius: 2px;
  transition: transform 0.3s ease;
}
.navbar-light .navbar-nav .nav-link:hover::after { transform: translateX(-50%) scaleX(1); }
.navbar-toggler {
  border: 2px solid rgba(15, 23, 42, 0.16);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}
.navbar-toggler-icon { filter: invert(1); }
.navbar-toggler .bi-list {
  color: #111827 !important;
}
.dropdown-menu {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 200px;
  animation: dropdownFade 0.2s ease;
  border: 1px solid rgba(59,130,246,0.1);
}
@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.dropdown-item {
  border-radius: var(--radius-sm);
  padding: 10px 15px;
  font-size: 0.9rem;
  transition: var(--transition);
}
.dropdown-item:hover {
  background: linear-gradient(135deg, rgba(236,72,153,0.1) 0%, rgba(59,130,246,0.1) 100%);
  color: var(--primary);
}
.dropdown-item i { width: 20px; }

/* Cart Badge */
.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: linear-gradient(135deg, #f472b6, #ec4899);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  animation: cartBounce 0.5s ease;
  box-shadow: 0 2px 8px rgba(236,72,153,0.4);
}
@keyframes cartBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* Navbar Login/Register Buttons */
.btn-nav-login {
  background: transparent;
  border: 2px solid rgba(15, 23, 42, 0.20) !important;
  color: #111827 !important;
  border-radius: var(--radius-xl) !important;
  padding: 7px 20px !important;
  font-size: 0.85rem !important;
  transition: var(--transition);
}
.btn-nav-login:hover {
  background: rgba(15, 23, 42, 0.06) !important;
  border-color: rgba(15, 23, 42, 0.34) !important;
}
.btn-nav-register {
  background: linear-gradient(135deg, #2563eb 0%, #ec4899 100%) !important;
  border: none !important;
  color: white !important;
  border-radius: var(--radius-xl) !important;
  padding: 7px 20px !important;
  font-size: 0.85rem !important;
  box-shadow: 0 10px 22px rgba(236,72,153,0.24), 0 6px 16px rgba(59,130,246,0.16);
  transition: var(--transition);
}
.btn-nav-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(236,72,153,0.30), 0 8px 18px rgba(59,130,246,0.18) !important;
}

/* ---- Hero Section (Shop) ---- */
.hero-section {
  background:
    linear-gradient(
      90deg,
      rgba(47, 27, 18, 0.78) 0%,
      rgba(47, 27, 18, 0.56) 38%,
      rgba(47, 27, 18, 0.18) 68%,
      rgba(47, 27, 18, 0.00) 100%
    ),
    radial-gradient(circle at 78% 24%, rgba(249, 115, 22, 0.20), transparent 30%),
    linear-gradient(135deg, #6f3f23 0%, #b86b35 48%, #f8b66d 100%);
  color: #ffffff;
  padding: 78px 0 104px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(120, 53, 15, 0.18);
}
.hero-section::before {
  content: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: #f8fafc;
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-section h1 {
  color: #ffffff;
  font-size: clamp(2.625rem, 6vw, 5.125rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 22px;
  background: none;
  background-size: auto;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: #ffffff;
  background-clip: text;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  animation: none;
}
@keyframes shimmer {
  to { background-position: 200% center; }
}
.hero-section p.lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.125rem, 2vw, 1.625rem);
  line-height: 1.7;
  opacity: 1;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.32);
}
.hero-section span[style] {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero-section h1 span[style] {
  background: none !important;
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
}

/* ---- Search Box ---- */
.search-box {
  background: white;
  padding: 24px 28px;
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.09);
  margin-top: -42px;
  position: relative;
  z-index: 10;
  border: 1px solid rgba(226, 232, 240, 0.95);
}
.search-box .form-control,
.search-box .form-select {
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 0.95rem;
  transition: var(--transition);
}
.search-box .form-control:focus,
.search-box .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(236,72,153,0.1);
  outline: none;
}

/* ---- Product Cards ---- */
.product-card {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  transition: var(--transition);
  background: white;
  height: 100%;
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}
.product-card .card-img-top {
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .card-img-top { transform: scale(1.08); }
.product-card .card-body { padding: 18px; }
.product-card .card-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.4;
}
.product-card .price {
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #3b82f6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 10px 0;
}
.product-card .card-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 14px 18px;
}
.product-card .badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
}

/* Category Badge */
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: linear-gradient(135deg, rgba(236,72,153,0.1) 0%, rgba(59,130,246,0.1) 100%);
  border-radius: var(--radius-xl);
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
  border: 1px solid rgba(236,72,153,0.2);
}

/* Stock Badge */
.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.stock-low { background: #fef3c7; color: #d97706; border: 1px solid #fcd34d; }
.stock-available { background: #d1fae5; color: #059669; border: 1px solid #6ee7b7; }
.stock-empty { background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; }

/* ---- Shop Product Cards ---- */
.shop-products-grid {
  align-items: stretch;
}
.shop-product-card {
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.95);
  overflow: hidden;
}
.shop-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}
.shop-product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f8fafc;
}
.shop-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.shop-product-label,
.shop-product-featured {
  position: absolute;
  top: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 3px;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}
.shop-product-label {
  right: 8px;
}
.shop-product-featured {
  left: 8px;
  background: #ee4d2d;
  color: #fff;
}
.label-empty {
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
}
.label-low {
  background: #ffd400;
  color: #111827;
}
.shop-product-card .card-body {
  padding: 10px 12px 8px;
}
.shop-product-category {
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 4px;
  background: #fff1ec;
  border: 1px solid #ffd3c7;
  color: #ee4d2d;
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-product-title {
  min-height: 2.8em;
  margin: 0 0 6px;
  color: #111827;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shop-product-description {
  min-height: 2.7em;
  margin: 0 0 8px;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shop-product-meta {
  display: grid;
  gap: 6px;
}
.product-card .shop-product-price {
  margin: 0;
  color: #ee4d2d;
  background: none;
  -webkit-text-fill-color: currentColor;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.2;
}
.shop-product-card .stock-badge {
  width: fit-content;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.74rem;
  line-height: 1.2;
}
.shop-product-actions {
  padding: 8px 10px 10px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}
.shop-product-action-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 6px;
}
.shop-product-action-grid .btn {
  min-height: 36px;
  padding: 7px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  line-height: 1.1;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}
.shop-btn-detail {
  border-color: rgba(236, 72, 153, 0.42);
  color: #db2777;
}
.shop-btn-detail:hover {
  background: #fdf2f8;
  border-color: #db2777;
  color: #db2777;
  transform: none;
}
.shop-btn-cart {
  background: linear-gradient(135deg, #2563eb 0%, #ec4899 100%);
  box-shadow: none;
}
.shop-btn-cart:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #db2777 100%);
  transform: none;
  box-shadow: none;
}

/* ---- Buttons ---- */
.btn {
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.btn-primary {
  background: linear-gradient(135deg, #60a5fa 0%, #f472b6 50%, #ec4899 100%);
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(236,72,153,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(236,72,153,0.45), 0 6px 20px rgba(59,130,246,0.2);
  background: linear-gradient(135deg, #3b82f6 0%, #ec4899 50%, #f472b6 100%);
  color: white;
}
.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline-primary:hover {
  background: linear-gradient(135deg, #60a5fa 0%, #f472b6 50%, #ec4899 100%);
  border-color: transparent;
  color: white;
  transform: translateY(-2px);
}
.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  border: none;
  box-shadow: 0 4px 15px rgba(16,185,129,0.3);
}
.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16,185,129,0.45);
}
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 6px 14px; font-size: 0.82rem; }

/* ---- WhatsApp Float ---- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}
.whatsapp-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #25d366 0%, #10b981 100%);
  border-radius: 50%;
  color: white;
  font-size: 23px;
  box-shadow: 0 8px 20px rgba(37,211,102,0.28);
  transition: var(--transition);
  animation: waFloat 3s ease-in-out infinite;
}
@keyframes waFloat {
  0%, 100% { transform: translateY(0); box-shadow: 0 8px 20px rgba(37,211,102,0.28); }
  50% { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(37,211,102,0.38); }
}
.whatsapp-float a:hover {
  transform: translateY(-3px) scale(1.04) !important;
  box-shadow: 0 12px 26px rgba(37,211,102,0.4);
  animation: none;
}

/* ---- Rating Stars ---- */
.rating { color: #fbbf24; }
.star { color: #e2e8f0; font-size: 1.1rem; }
.star.filled { color: #fbbf24; }

/* ---- Section Headers ---- */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #60a5fa, #f472b6, #ec4899);
  border-radius: 2px;
  margin-top: 10px;
}
.section-title.text-center::after { margin: 10px auto 0; }
.section-subtitle {
  color: var(--gray);
  font-size: 1rem;
  margin-bottom: 40px;
}

/* ---- Cards General ---- */
.card {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }

/* ---- Alerts ---- */
.alert {
  border: none;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-weight: 500;
}
.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid #10b981; }
.alert-danger { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }
.alert-warning { background: #fef3c7; color: #92400e; border-left: 4px solid #f59e0b; }
.alert-info { background: #cffafe; color: #164e63; border-left: 4px solid #06b6d4; }

/* ---- Forms ---- */
.form-control, .form-select {
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: var(--transition);
  background: white;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(236,72,153,0.1);
  outline: none;
}
.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 6px;
}
.invalid-feedback { font-size: 0.82rem; }

/* ---- Tables ---- */
.table {
  border-radius: var(--radius-md);
  overflow: hidden;
}
.table thead th {
  background: linear-gradient(135deg, #60a5fa 0%, #f472b6 50%, #ec4899 100%);
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  padding: 14px 16px;
}
.table tbody tr {
  transition: var(--transition);
  border-bottom: 1px solid #e2e8f0;
}
.table tbody tr:hover { background: linear-gradient(90deg, rgba(236,72,153,0.03) 0%, rgba(59,130,246,0.03) 100%); }
.table tbody td { padding: 14px 16px; vertical-align: middle; border: none; }

/* ---- Badges ---- */
.badge {
  padding: 6px 12px;
  font-weight: 600;
  border-radius: var(--radius-xl);
  font-size: 0.78rem;
}

/* ---- Pagination ---- */
.pagination .page-link {
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-sm) !important;
  margin: 0 3px;
  color: var(--primary);
  font-weight: 600;
  transition: var(--transition);
}
.pagination .page-link:hover,
.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, #60a5fa 0%, #f472b6 50%, #ec4899 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 12px rgba(236,72,153,0.3);
}

/* ---- Footer ---- */
.site-footer {
  background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #1e293b 100%);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 0;
  margin-top: 0;
}
.site-footer h5 {
  color: white;
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.1rem;
}
.site-footer p { color: rgba(255,255,255,0.65); font-size: 0.9rem; line-height: 1.8; }
.site-footer a { color: rgba(255,255,255,0.7); transition: var(--transition); }
.site-footer a:hover { color: #f472b6; }
.footer-brand { font-size: 1.5rem; font-weight: 800; color: white; margin-bottom: 15px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: white;
  font-size: 1.1rem;
  margin-right: 8px;
  transition: var(--transition);
}
.footer-social a:hover {
  background: linear-gradient(135deg, #60a5fa 0%, #f472b6 50%, #ec4899 100%);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(236,72,153,0.4);
}
.footer-bottom {
  background: rgba(0,0,0,0.2);
  padding: 20px 0;
  margin-top: 40px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-contact-item .icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.footer-hours-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.88rem;
}
.footer-hours-item:last-child { border-bottom: none; }

/* ---- Notification Toast ---- */
.toast-notification {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  min-width: 300px;
  max-width: 400px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-left: 4px solid var(--success);
}
.toast-notification.error { border-left-color: var(--danger); }
.toast-notification.warning { border-left-color: var(--warning); }
.toast-notification .toast-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.toast-notification .toast-icon.success { background: #d1fae5; color: var(--success); }
.toast-notification .toast-icon.error { background: #fee2e2; color: var(--danger); }
.toast-notification .toast-message { font-size: 0.9rem; font-weight: 500; color: var(--dark); }
@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(100px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---- Loading Spinner ---- */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.9);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.spinner-ring {
  width: 50px;
  height: 50px;
  border: 4px solid #e2e8f0;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Scroll to Top ---- */
.scroll-top {
  position: fixed;
  bottom: 98px;
  right: 24px;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #60a5fa 0%, #f472b6 50%, #ec4899 100%);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .navbar-collapse { background: rgba(255,255,255,0.9); border-radius: var(--radius-md); padding: 15px; margin-top: 10px; box-shadow: 0 16px 34px rgba(15,23,42,0.10); }
  .hero-section h1 { font-size: 2rem; }
  .section-title { font-size: 1.6rem; }
}
@media (max-width: 767px) {
  body {
    background: #f5f5f5;
  }
  .navbar .container {
    min-height: 58px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .navbar-brand {
    max-width: calc(100vw - 84px);
    gap: 8px;
    font-size: 1.28rem;
    letter-spacing: 0;
  }
  .navbar-brand .brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 1.15rem;
    flex: 0 0 42px;
  }
  .navbar-brand .brand-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .navbar-brand .brand-text small {
    margin-top: 1px;
    font-size: 0.53rem;
    letter-spacing: 1.7px;
  }
  .navbar-toggler {
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .navbar-collapse {
    margin-top: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.94);
  }
  .navbar-light .navbar-nav .nav-link {
    padding: 10px 12px !important;
    border-radius: 8px;
  }
  .hero-section {
    min-height: 560px;
    padding: 90px 0 70px;
    background:
      linear-gradient(
        180deg,
        rgba(47, 27, 18, 0.76) 0%,
        rgba(47, 27, 18, 0.52) 45%,
        rgba(47, 27, 18, 0.18) 100%
      ),
      radial-gradient(circle at 72% 18%, rgba(249, 115, 22, 0.18), transparent 30%),
      linear-gradient(135deg, #6f3f23 0%, #b86b35 48%, #f8b66d 100%);
  }
  .hero-section h1 {
    font-size: 2.625rem;
  }
  .hero-section p.lead {
    font-size: 1.0625rem;
    line-height: 1.7;
  }
  .search-box {
    padding: 14px;
    margin: -28px 2px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
  }
  .search-box .form-label {
    font-size: 0.78rem;
  }
  .search-box .form-control,
  .search-box .form-select {
    min-height: 42px;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 0.86rem;
  }
  .search-box .btn-lg {
    min-height: 42px;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 0.86rem;
  }
  .section-title {
    font-size: 1.15rem;
  }
  .section-title::after {
    width: 42px;
    height: 3px;
  }
  #gridView,
  #listView {
    display: none;
  }
  .shop-products-grid {
    --bs-gutter-x: 8px;
    --bs-gutter-y: 8px;
  }
  .shop-product-card {
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
  }
  .shop-product-card:hover {
    transform: none;
  }
  .shop-product-card .card-body {
    padding: 8px;
  }
  .shop-product-label,
  .shop-product-featured {
    top: 6px;
    min-height: 20px;
    padding: 3px 6px;
    font-size: 0.62rem;
  }
  .shop-product-label {
    right: 6px;
  }
  .shop-product-featured {
    left: 6px;
  }
  .shop-product-category {
    max-width: 100%;
    margin-bottom: 5px !important;
    padding: 2px 6px;
    font-size: 0.62rem;
  }
  .shop-product-title {
    min-height: 2.7em;
    margin-bottom: 4px;
    font-size: 0.78rem;
    line-height: 1.35;
    font-weight: 500;
  }
  .shop-product-description {
    display: none;
  }
  .product-card .shop-product-price {
    font-size: 0.95rem;
  }
  .shop-product-card .stock-badge {
    padding: 2px 0;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 0.65rem;
  }
  .shop-product-actions {
    padding: 0 8px 8px;
    border-top: 0;
  }
  .shop-product-action-grid {
    grid-template-columns: 36px 1fr;
    gap: 6px;
  }
  .shop-product-action-grid .btn {
    min-height: 32px;
    padding: 6px;
    border-radius: 4px;
    font-size: 0.7rem;
  }
  .shop-btn-detail span {
    display: none;
  }
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
  }
  .whatsapp-float a {
    width: 46px;
    height: 46px;
    font-size: 22px;
  }
  .scroll-top {
    bottom: 86px;
    right: 16px;
    width: 36px;
    height: 36px;
  }
  .toast-notification {
    left: 12px;
    right: 12px;
    top: 72px;
    min-width: 0;
    max-width: none;
  }
}

/* ---- Utility ---- */
.text-gradient {
  background: linear-gradient(135deg, #60a5fa 0%, #f472b6 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bg-gradient-primary { 
  background: linear-gradient(135deg, #60a5fa 0%, #f472b6 50%, #ec4899 100%); 
}
.bg-gradient-dark { 
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%); 
}
.rounded-xl { border-radius: var(--radius-xl); }
.shadow-primary { box-shadow: 0 8px 25px rgba(236,72,153,0.3); }
.hover-lift { transition: var(--transition); }
.hover-lift:hover { transform: translateY(-5px); }

/* ---- New Bright Theme Utilities ---- */
.bg-pink-light { background: var(--primary-pastel); }
.bg-blue-light { background: var(--secondary-pastel); }
.text-pink { color: var(--primary); }
.text-blue { color: var(--secondary); }
.border-pink { border-color: var(--primary-light); }
.border-blue { border-color: var(--secondary-light); }

/* Glow Effects */
.glow-pink {
  box-shadow: 0 0 20px rgba(236,72,153,0.3);
}
.glow-blue {
  box-shadow: 0 0 20px rgba(59,130,246,0.3);
}
.glow-pink-hover:hover {
  box-shadow: 0 0 30px rgba(236,72,153,0.5);
  transition: var(--transition);
}
.glow-blue-hover:hover {
  box-shadow: 0 0 30px rgba(59,130,246,0.5);
  transition: var(--transition);
}

/* Gradient Borders */
.gradient-border {
  position: relative;
  background: white;
  border-radius: var(--radius-md);
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #60a5fa, #f472b6, #ec4899);
  z-index: -1;
}

/* Soft Background Cards */
.card-soft-pink {
  background: linear-gradient(135deg, #fce7f3 0%, #f9a8d4 100%);
  border: 1px solid rgba(236,72,153,0.2);
}
.card-soft-blue {
  background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%);
  border: 1px solid rgba(59,130,246,0.2);
}
.card-soft-mixed {
  background: linear-gradient(135deg, #dbeafe 0%, #fce7f3 50%, #f9a8d4 100%);
  border: 1px solid rgba(236,72,153,0.15);
}

/* ---- Compact Public Page Spacing ---- */
body > .container.my-5,
body > .container.mt-5,
body > .container.mb-5 {
  margin-top: 1.25rem !important;
  margin-bottom: 1.25rem !important;
}

.checkout-wrapper,
.order-detail-wrapper {
  padding-top: 1.25rem !important;
  padding-bottom: 1.25rem !important;
}

.order-card,
.checkout-card,
.card.mb-3 {
  margin-bottom: 1rem !important;
}

.breadcrumb {
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  body > .container.my-5,
  body > .container.mt-5,
  body > .container.mb-5,
  .checkout-wrapper,
  .order-detail-wrapper {
    margin-top: 0.75rem !important;
    margin-bottom: 0.75rem !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }
}

/* ============================================
   ARTIKEL - CLEAN BAKERY ARTICLE GLOBAL FIXES
   ============================================ */

/* Fix: Konten artikel tidak tertutup fixed navbar */
.article-detail-section,
.articles-full-section {
  scroll-margin-top: 80px;
}

/* Artikel warm bakery color additions */
.article-detail-content blockquote {
  border-left-color: #b86b35;
}

/* Fix pagination artikel agar konsisten dengan tema warm */
.articles-full-section .pagination .page-link {
  color: #b86b35;
  border-color: rgba(184, 107, 53, 0.25);
}
.articles-full-section .pagination .page-item.active .page-link {
  background: #b86b35;
  border-color: #b86b35;
  color: #ffffff;
}
.articles-full-section .pagination .page-link:hover {
  background: #b86b35;
  border-color: #b86b35;
  color: #ffffff;
}

@media (max-width: 768px) {
  /* Floating buttons di halaman artikel */
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
  }
  .whatsapp-float a {
    width: 46px;
    height: 46px;
    font-size: 22px;
  }
  .scroll-top {
    bottom: 86px;
    right: 16px;
    width: 36px;
    height: 36px;
  }
}

/* ============================================
   SMOOTH HERO TO CARD TRANSITION
   Perbaikan transisi Navbar → Hero → Feature Card
   ============================================ */

/* ---- CSS Variables Tambahan ---- */
:root {
  --header-height: 72px;
  --admin-preview-height: 44px;
  --section-gap: 28px;
}

/* ---- Body Class: Admin Preview Mode ---- */
/* Navbar proyek menggunakan sticky, bukan fixed.
   Tapi saat mode admin preview ada banner tambahan
   yang perlu ditangani agar layout tidak bertabrakan. */

/* ---- Hero Slider: Smooth Bottom Transition ---- */
/* Tambahkan border-radius bawah agar transisi ke card lebih halus */
.hero-slider {
  border-radius: 18px !important;
}

@media (max-width: 768px) {
  .hero-slider {
    border-radius: 14px !important;
  }
}

/* ---- Home Highlights (Feature Card) ---- */
/* Feature card diberi jarak dari hero agar dua area terbaca terpisah */
.home-highlights {
  position: relative;
  z-index: 6;
  margin-top: 34px;
  margin-bottom: 52px;
}

.highlight-grid {
  position: relative;
  z-index: 5;
  max-width: 92%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.96) !important;
  border-radius: 14px !important;
  padding: 18px !important;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.10) !important;
  backdrop-filter: none;
  border: 1px solid rgba(226, 232, 240, 0.92) !important;
  transition: box-shadow 0.3s ease;
}

.highlight-grid:hover {
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12) !important;
}

/* ---- Feature Item ---- */
.highlight-item {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%) !important;
  border-radius: 10px !important;
  padding: 18px 20px !important;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 82px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.82);
  transition: all 0.3s ease;
}

.highlight-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border-color: rgba(236, 72, 153, 0.18);
}

/* ---- Feature Icon ---- */
.highlight-icon {
  width: 52px !important;
  height: 52px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #2563eb 0%, #ec4899 100%) !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18) !important;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.highlight-item:hover .highlight-icon {
  transform: scale(1.08) rotate(-3deg);
}

/* ---- Feature Text ---- */
.highlight-item strong {
  display: block;
  color: #111827 !important;
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.highlight-item small {
  display: block;
  color: #64748b !important;
  line-height: 1.4;
  font-size: 0.82rem;
}

/* ---- Admin Preview Banner: Extra Spacing ---- */
/* Saat admin mode preview aktif, banner preview tampil.
   Tambahkan padding atas pada hero agar tidak menempel banner. */
.hero-slider + .home-highlights,
.hero-slider ~ .home-highlights {
  margin-top: 34px;
}

/* ---- Smooth section-to-section gap ---- */
.home-highlights + section,
.home-highlights ~ section:first-of-type {
  margin-top: 0;
}

/* ---- Homepage background ---- */
body > .hero-slider,
body section.hero-slider {
  /* ensure hero tidak ada gap atas */
  margin-top: 20px;
}

/* ---- Responsive Mobile ---- */
@media (max-width: 768px) {
  .home-highlights {
    margin-top: 20px;
    margin-bottom: 30px;
  }

  .highlight-grid {
    max-width: 96% !important;
    padding: 12px !important;
    border-radius: 12px !important;
    gap: 8px !important;
    grid-template-columns: 1fr !important;
  }

  .highlight-item {
    min-height: 68px !important;
    padding: 14px !important;
    border-radius: 8px !important;
  }

  .highlight-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
  }
}

@media (max-width: 480px) {
  .home-highlights {
    margin-top: 18px;
  }

  .highlight-grid {
    max-width: 100% !important;
    border-radius: 10px !important;
  }
}

/* ============================================
   TRANSPARENT NAVBAR ON HOMEPAGE
   ============================================ */
body.home-transparent-nav {
  padding-top: 0 !important;
}

body.home-transparent-nav .top-bar {
  position: relative !important;
  background: rgba(255, 255, 255, 0.86) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.68) !important;
}

body.home-transparent-nav .navbar {
  position: sticky !important;
  top: 0;
  background: rgba(255, 255, 255, 0.84) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.72) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  backdrop-filter: blur(18px) !important;
}

body.home-transparent-nav .admin-preview-badge {
  position: relative !important;
  top: auto;
}

body.home-transparent-nav .hero-slider {
  width: calc(100% - 48px) !important;
  max-width: 1400px !important;
  margin-top: 22px !important;
  border-radius: 18px !important;
  min-height: 500px;
  height: 580px;
}

@media (max-width: 768px) {
  body.home-transparent-nav .hero-slider {
    width: calc(100% - 24px) !important;
    border-radius: 14px !important;
    height: 330px;
    min-height: 330px;
  }
}

body.home-transparent-nav .navbar.scrolled {
  position: sticky !important;
  background: rgba(255, 255, 255, 0.90) !important;
}

body.home-transparent-nav .navbar.scrolled .navbar-brand {
  color: #111827 !important;
}
body.home-transparent-nav .navbar.scrolled .navbar-brand small {
  color: rgba(17,24,39,0.56) !important;
}
body.home-transparent-nav .navbar.scrolled .nav-link {
  color: rgba(15, 23, 42, 0.74) !important;
}
body.home-transparent-nav .navbar.scrolled .nav-link:hover,
body.home-transparent-nav .navbar.scrolled .nav-link.active {
  color: #111827 !important;
  background: rgba(236, 72, 153, 0.10);
}
body.home-transparent-nav .navbar.scrolled .navbar-toggler .bi-list {
  color: #111827 !important;
}
body.home-transparent-nav .navbar.scrolled .navbar-toggler {
  border-color: rgba(15, 23, 42, 0.16);
}

/* ============================================
   NAVBAR UI/UX UPDATE - Toko Kue RiSe
   Active state tegas, ikon solid, dan mobile rapi
   ============================================ */
.navbar,
body.home-transparent-nav .navbar,
body.home-transparent-nav .navbar.scrolled {
  min-height: 78px;
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid var(--border-soft) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04) !important;
}

.navbar .container {
  min-height: 78px;
  gap: 24px;
}

.navbar-brand {
  gap: 14px;
  color: var(--dark-text) !important;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0;
}

.navbar-brand .brand-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-pink), #f472b6) !important;
  color: #ffffff;
  font-size: 1.45rem;
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.25);
}

.navbar-brand .brand-text small,
body.home-transparent-nav .navbar.scrolled .navbar-brand small {
  margin-top: 5px;
  color: var(--muted-text) !important;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2.4px;
  opacity: 1;
}

.navbar-light .navbar-nav {
  gap: 8px;
}

.navbar-light .navbar-nav .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 16px !important;
  border-radius: 14px;
  color: var(--dark-text) !important;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.navbar-light .navbar-nav .nav-link i {
  margin: 0 !important;
  color: currentColor;
  font-size: 0.94rem;
  line-height: 1;
  transition: color 0.25s ease;
}

.navbar-light .navbar-nav .nav-link::after {
  display: none;
}

.navbar-light .navbar-nav .nav-link.active,
body.home-transparent-nav .navbar .nav-link.active,
body.home-transparent-nav .navbar.scrolled .nav-link.active {
  background: var(--primary-pink) !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.28);
}

.navbar-light .navbar-nav .nav-link.active i,
body.home-transparent-nav .navbar .nav-link.active i,
body.home-transparent-nav .navbar.scrolled .nav-link.active i {
  color: #ffffff !important;
}

.navbar-light .navbar-nav .nav-link.active:hover,
body.home-transparent-nav .navbar .nav-link.active:hover,
body.home-transparent-nav .navbar.scrolled .nav-link.active:hover {
  background: var(--primary-pink-dark) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.navbar-light .navbar-nav .nav-link:not(.active):hover,
body.home-transparent-nav .navbar .nav-link:not(.active):hover,
body.home-transparent-nav .navbar.scrolled .nav-link:not(.active):hover {
  background: var(--soft-pink) !important;
  color: var(--primary-pink) !important;
  transform: translateY(-2px);
}

.navbar-light .navbar-nav.nav-actions {
  align-items: center;
  gap: 12px !important;
}

.navbar-light .navbar-nav.nav-actions .nav-action-btn {
  position: relative;
  width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0 !important;
  border-radius: 14px;
  background: #f9fafb;
  color: var(--dark-text) !important;
  font-size: 1.1rem;
}

.navbar-light .navbar-nav.nav-actions .nav-action-btn:hover {
  background: var(--soft-pink) !important;
  color: var(--primary-pink) !important;
  transform: translateY(-2px);
}

.cart-badge {
  top: -6px;
  right: -6px;
  min-width: 20px;
  width: auto;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--primary-pink);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(236, 72, 153, 0.28);
}

.btn-nav-login {
  min-height: 42px;
  border-color: rgba(236, 72, 153, 0.34) !important;
  color: var(--primary-pink) !important;
  font-weight: 700 !important;
}

.btn-nav-login:hover {
  background: var(--soft-pink) !important;
  border-color: var(--primary-pink) !important;
  color: var(--primary-pink) !important;
}

.btn-nav-register {
  min-height: 42px;
  background: var(--primary-pink) !important;
  font-weight: 700 !important;
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.28) !important;
}

.btn-nav-register:hover {
  background: var(--primary-pink-dark) !important;
  color: #ffffff !important;
}

.navbar-toggler {
  color: var(--dark-text);
  border: 1px solid rgba(236, 72, 153, 0.20) !important;
  background: #ffffff;
}

.navbar-toggler i {
  color: var(--dark-text) !important;
}

@media (max-width: 991px) {
  .navbar .container {
    min-height: 70px;
  }

  .navbar-collapse {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 12px !important;
  }

  .navbar-light .navbar-nav.mx-auto {
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
    padding: 10px 2px 4px;
    scrollbar-width: none;
  }

  .navbar-light .navbar-nav.mx-auto::-webkit-scrollbar {
    display: none;
  }

  .navbar-light .navbar-nav .nav-link {
    white-space: nowrap;
    min-height: 42px;
    padding: 0 14px !important;
    font-size: 0.88rem;
  }

  .navbar-light .navbar-nav.nav-actions {
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
    padding-top: 10px;
  }

  .navbar-light .navbar-nav.nav-actions .nav-action-btn {
    width: 42px;
    height: 42px;
    min-height: 42px;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .navbar .container {
    gap: 14px;
  }

  .navbar-brand {
    max-width: calc(100vw - 92px);
    gap: 10px;
    font-size: 1.28rem;
  }

  .navbar-brand .brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 1.2rem;
    flex: 0 0 46px;
  }

  .navbar-brand .brand-text small {
    display: none;
  }

  .navbar-light .navbar-nav .nav-link {
    gap: 7px;
    padding: 0 12px !important;
  }

  .navbar-light .navbar-nav .nav-link i {
    font-size: 0.86rem;
  }
}

/* ============================================
   MOBILE RESPONSIVE IMPROVEMENTS
   Perbaikan tampilan mobile - Toko Kue RiSe
   ============================================ */

/* ---- Global Mobile Base ---- */
@media (max-width: 768px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}


/* ---- Navbar Mobile ---- */
@media (max-width: 768px) {
  .navbar,
  body.home-transparent-nav .navbar,
  body.home-transparent-nav .navbar.scrolled {
    min-height: 60px !important;
  }
  .navbar .container {
    min-height: 60px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    gap: 0 !important;
    justify-content: space-between;
  }
  .navbar-brand {
    gap: 10px !important;
    font-size: 1.15rem !important;
    max-width: calc(100% - 58px) !important;
  }
  .navbar-brand .brand-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    font-size: 1.1rem !important;
    flex: 0 0 40px !important;
  }
  .navbar-brand .brand-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .navbar-brand .brand-text small {
    display: none !important;
  }
  .navbar-toggler {
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px;
    padding: 0 !important;
  }
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(236, 72, 153, 0.12);
    border-radius: 14px !important;
    padding: 10px !important;
    margin-top: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10) !important;
  }
  .navbar-light .navbar-nav.mx-auto {
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 4px !important;
    padding: 4px 0 8px !important;
  }
  .navbar-light .navbar-nav .nav-link {
    min-height: 38px !important;
    padding: 0 10px !important;
    font-size: 0.82rem !important;
    border-radius: 10px !important;
    gap: 5px !important;
  }
  .navbar-light .navbar-nav .nav-link i {
    font-size: 0.82rem !important;
  }
  .navbar-light .navbar-nav.nav-actions {
    flex-direction: row !important;
    justify-content: flex-start !important;
    flex-wrap: wrap;
    gap: 6px !important;
    padding-top: 6px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
  }
  .navbar-light .navbar-nav.nav-actions .nav-action-btn {
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    border-radius: 10px !important;
    font-size: 0.92rem !important;
  }
  .btn-nav-login,
  .btn-nav-register {
    min-height: 38px !important;
    font-size: 0.82rem !important;
    padding: 0 14px !important;
  }
}

/* ---- Hero Section (Shop) Mobile ---- */
@media (max-width: 768px) {
  .hero-section {
    padding: 38px 0 54px !important;
    min-height: unset !important;
  }
  .hero-section h1 {
    font-size: 1.6rem !important;
    margin-bottom: 12px !important;
  }
  .hero-section p.lead {
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
  }
}

/* ---- Search Box Mobile ---- */
@media (max-width: 768px) {
  .search-box {
    padding: 14px !important;
    margin-top: -22px !important;
    border-radius: 10px !important;
  }
  .search-box .form-control,
  .search-box .form-select {
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
  }
  .search-box .btn-lg {
    min-height: 44px !important;
    font-size: 0.9rem !important;
  }
}

/* ---- Articles Page Mobile ---- */
@media (max-width: 768px) {
  .articles-header {
    padding: 36px 0 48px !important;
    text-align: center !important;
  }
  .articles-header .header-content h1 {
    font-size: 1.55rem !important;
    margin-bottom: 8px !important;
  }
  .articles-header .header-content p {
    font-size: 0.88rem !important;
    max-width: 100%;
  }
  .articles-badge {
    font-size: 11px !important;
    padding: 5px 12px !important;
    margin-bottom: 12px !important;
  }
  .articles-full-section {
    padding: 22px 0 36px !important;
  }
  .articles-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .article-card {
    border-radius: 10px !important;
  }
  .article-image {
    height: auto !important;
    aspect-ratio: 4 / 3;
  }
  .article-body {
    padding: 12px !important;
  }
  .article-title {
    font-size: 0.88rem !important;
    margin-bottom: 6px !important;
    line-height: 1.35 !important;
  }
  .article-excerpt {
    font-size: 0.76rem !important;
    line-height: 1.5 !important;
    margin-bottom: 10px !important;
  }
  .article-meta {
    font-size: 0.7rem !important;
    margin-bottom: 6px !important;
  }
  .btn-read-more {
    font-size: 0.74rem !important;
    padding: 6px 10px !important;
    width: 100%;
    justify-content: center;
  }
}

/* ---- Section Headers Mobile ---- */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.2rem !important;
  }
  .section-title::after {
    width: 40px !important;
    height: 3px !important;
  }
  .section-subtitle {
    font-size: 0.88rem !important;
    margin-bottom: 20px !important;
  }
}

/* ---- Footer Mobile ---- */
@media (max-width: 768px) {
  .site-footer {
    padding: 32px 0 0 !important;
  }
  .site-footer h5 {
    font-size: 1rem !important;
    margin-bottom: 12px !important;
  }
  .site-footer p {
    font-size: 0.85rem !important;
  }
  .footer-brand {
    font-size: 1.2rem !important;
    margin-bottom: 10px !important;
  }
  .footer-social a {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.95rem !important;
  }
  .footer-contact-item {
    gap: 8px !important;
    margin-bottom: 10px !important;
  }
  .footer-contact-item .icon {
    width: 30px !important;
    height: 30px !important;
    font-size: 0.85rem !important;
  }
  .footer-bottom {
    padding: 14px 0 !important;
    margin-top: 24px !important;
    font-size: 0.78rem !important;
  }
}

/* ---- WhatsApp & Scroll Top Mobile ---- */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 14px !important;
    right: 14px !important;
  }
  .whatsapp-float a {
    width: 44px !important;
    height: 44px !important;
    font-size: 20px !important;
  }
  .scroll-top {
    bottom: 72px !important;
    right: 14px !important;
    width: 34px !important;
    height: 34px !important;
  }
}

/* ---- Toast Notification Mobile ---- */
@media (max-width: 768px) {
  .toast-notification {
    left: 10px !important;
    right: 10px !important;
    top: 66px !important;
    min-width: 0 !important;
    max-width: none !important;
    font-size: 0.85rem;
  }
}

/* ---- Overflow fix on mobile ---- */
@media (max-width: 768px) {
  .d-flex.flex-wrap.gap-2.align-items-center {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    padding-bottom: 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .d-flex.flex-wrap.gap-2.align-items-center::-webkit-scrollbar {
    display: none;
  }
}

/* ---- Very Small Screens (400px dan bawah) ---- */
@media (max-width: 400px) {
  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .navbar-brand {
    font-size: 1.05rem !important;
    max-width: calc(100% - 54px) !important;
    gap: 8px !important;
  }
  .navbar-brand .brand-icon {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
    font-size: 1rem !important;
    border-radius: 10px !important;
  }
  .navbar-toggler {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
  }
  .hero-section {
    padding: 28px 0 42px !important;
  }
  .hero-section h1 {
    font-size: 1.35rem !important;
  }
  .articles-header {
    padding: 28px 0 38px !important;
  }
  .articles-header .header-content h1 {
    font-size: 1.35rem !important;
  }
  .articles-grid {
    grid-template-columns: 1fr !important;
  }
  .article-image {
    height: 180px !important;
    aspect-ratio: unset !important;
  }
  .article-body {
    padding: 14px !important;
  }
  .article-title {
    font-size: 0.95rem !important;
  }
  .section-title {
    font-size: 1.05rem !important;
  }
  .site-footer {
    padding: 24px 0 0 !important;
  }
}
