/* ==============================================================
 * SukaGadget Modern Design System
 * Aesthetic: Clean Tech Minimalist, Authentic Gadget Flagship (Apple / Nothing / Linear inspired)
 * ============================================================== */

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

:root {
  --color-primary: #0F172A;        /* Deep Obsidian Midnight Slate */
  --color-primary-dark: #020617;
  --color-blue: #2563EB;           /* Tech Electric Blue Accent */
  --color-blue-hover: #1D4ED8;
  --color-secondary: #F59E0B;      /* Warm Cyber Gold / Titanium Amber */
  --color-secondary-hover: #D97706;
  --color-accent: #EF4444;         /* Crisp Modern Coral Red */
  --color-success: #10B981;        /* Clean Modern Emerald */
  --color-dark: #090D16;
  --color-gray-light: #F8FAFC;
  --color-border: #E2E8F0;
  --color-border-subtle: #F1F5F9;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #0F172A;
  background-color: #F8FAFC;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.011em;
}

/* Headings Crisp Typography */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.025em;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Custom Scrollbar - Sleek Minimalist */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Hide scrollbar for slider track while keeping scrollable */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ==============================================================
 * Buttons: Natural, Sleek, Tactile
 * ============================================================== */
.btn-primary-brand {
  background-color: var(--color-primary);
  color: #FFFFFF;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.btn-primary-brand:hover {
  background-color: var(--color-primary-dark);
  box-shadow: 0 6px 18px -4px rgba(15, 23, 42, 0.3);
  transform: translateY(-1px);
}

.btn-secondary-brand {
  background-color: var(--color-secondary);
  color: #0F172A;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.btn-secondary-brand:hover {
  background-color: var(--color-secondary-hover);
  color: #FFFFFF;
  box-shadow: 0 6px 18px -4px rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background-color: var(--color-success);
  color: #FFFFFF;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.btn-whatsapp:hover {
  background-color: #059669;
  box-shadow: 0 6px 18px -4px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

/* Button Tactile Press */
button:active, .btn-primary-brand:active, .btn-secondary-brand:active, .btn-whatsapp:active {
  transform: scale(0.98) !important;
  transition: transform 0.08s ease;
}

/* ==============================================================
 * Product Card: High-End Hardware Showcase
 * ============================================================== */
.product-card {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.9);
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  border-color: #CBD5E1;
}

/* Diskon Card */
.diskon-card {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.9);
}
.diskon-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -6px rgba(239, 68, 68, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  border-color: #FCA5A5;
}

/* ==============================================================
 * Swatches & Options
 * ============================================================== */
.swatch-btn {
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.swatch-btn:hover {
  border-color: #0F172A;
}
.swatch-btn.active {
  border-color: #0F172A;
  background-color: #0F172A;
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 2px 8px -1px rgba(15, 23, 42, 0.25);
}

.color-swatch-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 1px #CBD5E1;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.color-swatch-circle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 1.5px #64748B;
}
.color-swatch-circle.active {
  box-shadow: 0 0 0 2px #0F172A;
  transform: scale(1.15);
}

/* Condition Box (Trade-In) */
.condition-radio-box {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.condition-radio-box:hover {
  border-color: #94A3B8;
}
.condition-radio-box.active {
  border-color: #0F172A !important;
  background-color: #F8FAFC !important;
  box-shadow: 0 0 0 1px #0F172A;
}

/* ==============================================================
 * Floating WhatsApp Widget
 * ============================================================== */
.wa-float-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
}
@media (max-width: 768px) {
  .wa-float-container {
    bottom: 82px;
    right: 16px;
  }
}

.wa-popup-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.96);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.wa-popup-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 40;
}

/* ==============================================================
 * Micro-Animations & Shimmer
 * ============================================================== */
@keyframes pulseSubtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.03); }
}
.pulse-badge {
  animation: pulseSubtle 3s infinite ease-in-out;
}

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

/* Scroll Reveal Effects */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.delay-75  { transition-delay: 75ms; }
.delay-150 { transition-delay: 150ms; }
.delay-225 { transition-delay: 225ms; }
.delay-300 { transition-delay: 300ms; }
.delay-375 { transition-delay: 375ms; }
.delay-450 { transition-delay: 450ms; }

/* Modern Floating Toast Notification */
.sg-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
@media (max-width: 640px) {
  .sg-toast-container {
    top: auto;
    bottom: 76px;
    left: 16px;
    right: 16px;
  }
}

.sg-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: 14px;
  box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 600;
  max-width: 420px;
  transform: translateY(-16px) scale(0.95);
  opacity: 0;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
@media (max-width: 640px) {
  .sg-toast {
    transform: translateY(16px) scale(0.95);
    max-width: 100%;
  }
}
.sg-toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.sg-toast.hide {
  transform: scale(0.92);
  opacity: 0;
}
.sg-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2.5px;
  background: var(--color-success);
  width: 100%;
  transform-origin: left;
  animation: toastProgress 3s linear forwards;
}
@keyframes toastProgress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

/* Cart Badge Bounce */
@keyframes badgePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.3); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); }
}
.badge-pop {
  animation: badgePop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Glass panel utility */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Tech dark console */
.dark-console {
  background: linear-gradient(145deg, #0B0F19 0%, #020617 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
