/* SYNC Design System - Ultra-Premium Fruit-Infused Editorial Styles */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Sora:wght@300;400;500;600;700;800&display=swap');

:root {
  --surface: #fdf8f7;
  --surface-dim: #ddd9d8;
  --surface-bright: #fdf8f7;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f7f3f1;
  --surface-container: #f1edec;
  --surface-container-high: #ebe7e6;
  --surface-container-highest: #e5e2e0;
  --on-surface: #1c1b1b;
  --on-surface-variant: #474741;
  --primary: #080806;
  --on-primary: #ffffff;
  --secondary: #56624a;
  --secondary-container: #d7e4c6;
  --on-secondary-container: #5a664e;
  --outline: #787770;
  --outline-variant: #c8c7be;
  --accent-orange: #ea580c;
  --accent-orange-light: #ffedd5;
  --accent-mango: #eab308;
  --accent-mango-light: #fef9c3;
  --accent-berry: #be123c;
  --accent-berry-light: #ffe4e6;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--surface);
  color: var(--on-surface);
  font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-display, .font-sora {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.02em;
}

/* Glassmorphism Styles */
.glass-panel {
  background: rgba(253, 248, 247, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(200, 199, 190, 0.35);
}

.glass-nav {
  background: rgba(253, 248, 247, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-dark {
  background: rgba(8, 8, 6, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Ambient Diffused Shadows */
.soft-shadow {
  box-shadow: 0 20px 40px -10px rgba(86, 98, 74, 0.08);
}

.product-shadow {
  box-shadow: 0 20px 40px rgba(86, 98, 74, 0.08);
}

.luxury-card-shadow {
  box-shadow: 0 25px 50px -12px rgba(8, 8, 6, 0.08);
}

.floating-shadow-orange {
  box-shadow: 0 24px 48px -12px rgba(234, 88, 12, 0.15);
}

.floating-shadow-mango {
  box-shadow: 0 24px 48px -12px rgba(234, 179, 8, 0.18);
}

.floating-shadow-berry {
  box-shadow: 0 24px 48px -12px rgba(190, 18, 60, 0.15);
}

/* Shimmer & Glow Effects */
.shimmer-btn {
  position: relative;
  overflow: hidden;
}

.shimmer-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 20%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 80%
  );
  transform: rotate(25deg) translateY(-100%);
  animation: shimmer 4s infinite;
}

@keyframes shimmer {
  0% { transform: rotate(25deg) translateY(-120%); }
  25% { transform: rotate(25deg) translateY(120%); }
  100% { transform: rotate(25deg) translateY(120%); }
}

/* Pulse Glow */
.pulse-badge {
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(234, 88, 12, 0); }
  100% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0); }
}

/* Marquee Ticker */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  display: flex;
}

.marquee-content {
  display: flex;
  flex-shrink: 0;
  animation: marquee 25s linear infinite;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* Material Symbols thin styling */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 250, 'GRAD' 0, 'opsz' 24;
}

.material-symbols-outlined.fill-current {
  font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--surface-container-low);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-container-highest);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--outline-variant);
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 320px;
  max-width: 420px;
  background: rgba(8, 8, 6, 0.95);
  color: #ffffff;
  padding: 16px 20px;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 14px;
  animation: slideUpFade 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.3s ease;
}

.toast.hiding {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Cart Drawer Animation */
#cart-drawer-overlay {
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

#cart-drawer {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Search Modal Animation */
#search-modal {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#search-modal-content {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Mobile Menu Drawer */
#mobile-menu {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
