/* ==========================================================================
   SHINEMART DIGITAL CATALOG - VIBRANT CYAN (#38b6ff) & HOT PINK (#ff66c4) DESIGN SYSTEM
   ========================================================================== */

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

:root {
  --color-primary: #38b6ff;
  --color-primary-hover: #0099ff;
  --color-primary-dark: #0077d6;
  --color-primary-light: #e8f7ff;
  
  --color-accent-pink: #ff66c4;
  --color-accent-pink-hover: #e043a5;
  --color-accent-pink-light: #fff0f8;
  
  --color-wa: #25d366;
  --color-wa-dark: #1da851;
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-brand: 0 10px 25px -5px rgba(56, 182, 255, 0.35);
  --shadow-pink: 0 10px 25px -5px rgba(255, 102, 196, 0.35);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* Glassmorphism Header */
.header-glass {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

/* Custom Banner Slider */
.banner-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.banner-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.banner-slide {
  min-width: 100%;
  box-sizing: border-box;
}

/* Pulse Animation for WA & Action Buttons */
@keyframes pulse-cyan {
  0% {
    box-shadow: 0 0 0 0 rgba(56, 182, 255, 0.5);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(56, 182, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(56, 182, 255, 0);
  }
}

.brand-pulse-btn {
  animation: pulse-cyan 2s infinite;
}

/* Category Card Styling */
.category-card {
  transition: var(--transition);
  background: white;
  border: 1px solid var(--border-light);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(56, 182, 255, 0.15);
  border-color: var(--color-primary);
}

.category-card.active {
  background: linear-gradient(135deg, #e8f7ff 0%, #fff0f8 100%);
  border-color: var(--color-primary);
  color: #0077d6;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(56, 182, 255, 0.2);
}

/* Mobile 1-Baris Slider Kategori */
@media (max-width: 639px) {
  .category-tab-btn.category-card {
    flex-shrink: 0;
    width: 11.5rem;
    min-width: 11.5rem;
  }
}

/* Product Card Styling */
.product-card {
  transition: var(--transition);
  background: white;
  border: 1px solid #edf2f7;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  border-radius: 1rem;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -6px rgba(56, 182, 255, 0.18);
  border-color: rgba(56, 182, 255, 0.5);
}

.product-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.06);
}

/* Shimmer Badge in Hot Pink & Cyan Gradient */
.badge-promo {
  background: linear-gradient(135deg, #ff66c4 0%, #ff3b8d 100%);
  color: white;
  font-weight: 800;
  box-shadow: 0 3px 8px rgba(255, 102, 196, 0.4);
}

.badge-stock {
  background: #e8f7ff;
  color: #0077d6;
  font-weight: 700;
}

/* WhatsApp Direct Button inside Card */
.btn-wa-card {
  background: linear-gradient(135deg, #38b6ff 0%, #0099ff 100%);
  color: white;
  transition: var(--transition);
}

.btn-wa-card:hover {
  background: linear-gradient(135deg, #0099ff 0%, #0077d6 100%);
  box-shadow: 0 6px 16px rgba(56, 182, 255, 0.4);
}

/* Modal styling */
.modal-backdrop {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  transition: opacity 0.3s ease;
}

.modal-content {
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modal Stacking Hierarchy - memastikan modal pratinjau & keranjang selalu muncul di depan */
#sectionDetailModal {
  z-index: 50 !important;
}

#productPreviewModal {
  z-index: 70 !important;
}

#cartModal {
  z-index: 80 !important;
}

.toast-notification {
  z-index: 90 !important;
}

@keyframes modalPop {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Floating WhatsApp Widget */
.floating-wa-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 40;
  background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  transition: var(--transition);
}

.floating-wa-btn:hover {
  transform: scale(1.08) translateY(-3px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #38b6ff;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Product card clickable area */
.product-card-body {
  cursor: pointer;
}

/* Product Preview Modal */
.preview-image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #f1f5f9;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

/* ==========================================================================
   PROMO PRODUCT STYLES (Diskon %, Buy 1 Get 1, Diskon Nominal)
   ========================================================================== */
.promo-card {
  position: relative;
  border: 2px solid #ff66c4 !important;
  box-shadow: 0 6px 20px rgba(255, 102, 196, 0.16) !important;
  background: #ffffff;
  transition: all 0.25s ease-in-out;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(255, 102, 196, 0.25) !important;
  border-color: #e043a5 !important;
}

.promo-badge-glow {
  box-shadow: 0 2px 8px rgba(255, 102, 196, 0.35);
  animation: promoPulse 2s ease-in-out infinite alternate;
}

@keyframes promoPulse {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.03);
  }
}

/* Horizontal Promo Carousel Card */
.promo-carousel-card {
  flex: 0 0 170px;
  max-width: 170px;
}

@media (min-width: 640px) {
  .promo-carousel-card {
    flex: 0 0 210px;
    max-width: 210px;
  }
}

@media (min-width: 1024px) {
  .promo-carousel-card {
    flex: 0 0 230px;
    max-width: 230px;
  }
}

/* Hide scrollbar utility */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

