/* Dope Squad Edition - Custom Luxury Streetwear Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Syne:wght@700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --bg-primary: #0a0a0c;
  --bg-secondary: #121217;
  --bg-tertiary: #1b1b22;
  --card-bg: #14141a;
  --card-border: rgba(255, 255, 255, 0.08);
  --accent-red: #ff2a4b;
  --accent-glow: rgba(255, 42, 75, 0.35);
  --text-main: #f5f5f7;
  --text-muted: #9e9ea7;
  --font-heading: 'Syne', sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Safe Area Insets for iOS & Android notch / home bar */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  /* Extra bottom padding on mobile for the fixed bottom navigation bar */
  padding-bottom: calc(4.5rem + var(--safe-bottom));
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

.font-brand {
  font-family: var(--font-heading);
}

.font-accent {
  font-family: var(--font-mono);
}

/* Instant Tactile Feedback on Mobile Touch */
button, a, input, select {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button:active, a.btn-tap:active {
  transform: scale(0.96);
  transition: transform 0.08s ease-in-out;
}

/* Custom Scrollbar for Desktop */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0d0d11;
}
::-webkit-scrollbar-thumb {
  background: #2a2a35;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ff2a4b;
}

/* Hidden Scrollbar utility for horizontal swiping on mobile */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

/* Glassmorphism */
.glass-nav {
  background: rgba(10, 10, 12, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: rgba(20, 20, 26, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}

/* Neon & Glow effects */
.glow-accent {
  box-shadow: 0 0 25px var(--accent-glow);
}

.glow-text {
  text-shadow: 0 0 12px rgba(255, 42, 75, 0.5);
}

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

.animate-marquee {
  display: flex;
  width: 200%;
  animation: marquee 24s linear infinite;
}

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

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  background: rgba(12, 12, 17, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
  padding-bottom: max(6px, var(--safe-bottom));
}

.mobile-bottom-nav button,
.mobile-bottom-nav a {
  user-select: none;
  -webkit-user-select: none;
}

/* Image zoom transition */
.product-img-wrapper {
  position: relative;
  overflow: hidden;
  background: #111116;
}

.product-img-wrapper img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

@media (hover: hover) {
  .product-card:hover .product-img-wrapper img {
    transform: scale(1.06);
  }
}

/* Quick Action Overlay on Desktop */
.quick-action-overlay {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
  .product-card:hover .quick-action-overlay {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Badges */
.badge-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Modal Backdrop */
.modal-backdrop {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overscroll-behavior: contain;
}

/* Bottom Sheet Slide Up Animation for Mobile Quick View */
@keyframes sheetSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.mobile-bottom-sheet {
  animation: sheetSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Hero Badge Pulse */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(255, 42, 75, 0.4); }
  50% { box-shadow: 0 0 30px rgba(255, 42, 75, 0.8); }
}

.pulse-glow {
  animation: pulseGlow 2.5s infinite;
}

/* Toast Notifications */
.toast-enter {
  transform: translateY(100%);
  opacity: 0;
}
.toast-enter-active {
  transform: translateY(0);
  opacity: 1;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast-exit {
  transform: translateY(0);
  opacity: 1;
}
.toast-exit-active {
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.25s ease;
}
