/* ========================================================
   PAZARVADI PREMIUM DESIGN SYSTEM & ANIMATIONS
   Brand Colors:
   Primary: #FD4800 (Pazarvadi Flame Orange)
   Dark Surface: #0F1114 (Obsidian Slate)
======================================================== */

:root {
  --pzr-primary: #fd4800;
  --pzr-primary-hover: #e03e00;
  --pzr-primary-light: #fff2ec;
  --pzr-primary-glow: rgba(253, 72, 0, 0.28);
  --pzr-dark: #0f1114;
  --pzr-dark-surface: #181b20;
  --pzr-dark-border: #262a30;
  --pzr-gray-50: #f8fafc;
  --pzr-gray-100: #f1f5f9;
  --pzr-gray-200: #e2e8f0;
  --pzr-gray-300: #cbd5e1;
  --pzr-gray-600: #475569;
  --pzr-gray-800: #1e293b;
  --pzr-success: #10b981;
}

html {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  position: relative;
  margin: 0;
  padding: 0;
}

/* Major layout blocks must never exceed viewport width */
main, header, footer, section {
  max-width: 100%;
  overflow-x: clip;
}

/* Prevent any media or elements from blowing out container widths on mobile */
img, svg, video, canvas, audio, iframe, embed, object {
  max-width: 100%;
}

/* Cart drawer & Off-screen elements: prevent horizontal touch panning when closed */
#cart-drawer.translate-x-full {
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Glassmorphism Styles */
.glass-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.glass-dark {
  background: rgba(15, 17, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Brand Glows & Gradients */
.bg-pzr-gradient {
  background: linear-gradient(135deg, #fd4800 0%, #ff682e 50%, #ffa500 100%);
}

.bg-radial-glow {
  background: radial-gradient(circle at 50% 0%, rgba(253, 72, 0, 0.18) 0%, transparent 70%);
}

.btn-glow {
  box-shadow: 0 4px 18px rgba(253, 72, 0, 0.38);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-glow:hover {
  box-shadow: 0 8px 25px rgba(253, 72, 0, 0.55);
  transform: translateY(-2px);
}

/* Story Highlights (Instagram / Trendyol style stories) */
.story-ring {
  background: linear-gradient(45deg, #fd4800, #ff8c00, #ff0055, #fd4800);
  background-size: 300% 300%;
  animation: storyGradient 4s ease infinite;
}

@keyframes storyGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hover Elevation & Floating */
.hover-elevate {
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease;
}
.hover-elevate:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -10px rgba(15, 17, 20, 0.12);
}

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

/* Live Floating Social Proof Notification */
#live-sale-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: calc(100vw - 32px);
  z-index: 45;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(150%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#live-sale-toast.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 640px) {
  #live-sale-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
  #toast-container {
    left: 16px;
    right: 16px;
    bottom: 80px;
    max-width: calc(100vw - 32px);
  }
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
  }
}

/* Pulse Animation for Hot Deals */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(253, 72, 0, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(253, 72, 0, 0);
  }
}
.pulse-badge {
  animation: pulseGlow 2s infinite;
}

/* Badges */
.badge-firsat {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}
.badge-coksatan {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}
.badge-yeni {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}
.badge-ozel {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: white;
}

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 40;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}
.whatsapp-float:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}

/* Toast Container */
#toast-container {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 16px;
  background: #0f1114;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateX(0);
}
.toast.success {
  border-left: 4px solid var(--pzr-success);
}
.toast.error {
  border-left: 4px solid #ef4444;
}
.toast.info {
  border-left: 4px solid var(--pzr-primary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ========================================================
   PROFESSIONAL ICON BADGES & MICRO-INTERACTIONS
   ======================================================== */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.icon-box:hover {
  transform: translateY(-2px) scale(1.05);
}

.icon-box-orange {
  background: linear-gradient(135deg, rgba(253, 72, 0, 0.12) 0%, rgba(253, 72, 0, 0.04) 100%);
  color: #fd4800;
  border: 1px solid rgba(253, 72, 0, 0.18);
  box-shadow: 0 4px 12px rgba(253, 72, 0, 0.08);
}
.icon-box-orange:hover {
  box-shadow: 0 8px 20px rgba(253, 72, 0, 0.2);
}

.icon-box-emerald {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.04) 100%);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
}
.icon-box-emerald:hover {
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
}

.icon-box-blue {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12) 0%, rgba(14, 165, 233, 0.04) 100%);
  color: #0284c7;
  border: 1px solid rgba(14, 165, 233, 0.2);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.08);
}
.icon-box-blue:hover {
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.2);
}

.icon-box-purple {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12) 0%, rgba(168, 85, 247, 0.04) 100%);
  color: #7c3aed;
  border: 1px solid rgba(168, 85, 247, 0.2);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.08);
}
.icon-box-purple:hover {
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.2);
}

/* Category Quick Navigation Pills */
.category-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.22s ease;
}
.category-nav-pill:hover {
  background: #fff2ec;
  color: #fd4800;
  border-color: rgba(253, 72, 0, 0.3);
  transform: translateY(-1px);
}
.category-nav-pill svg {
  transition: transform 0.22s ease;
}
.category-nav-pill:hover svg {
  transform: scale(1.15);
}

/* Smooth SVG transitions */
svg {
  flex-shrink: 0;
}
