/* ==========================================================================
   Zenith Footwear - Editorial High-Performance Luxury Stylesheet
   Inspired by top-tier modern footwear brands like Calza, APL & On Running
   ========================================================================== */

:root {
  --font-heading: 'Syne', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --color-primary: #0A0B0E;
  --color-surface: #FFFFFF;
  --color-bg-soft: #F6F7F9;
  --color-bg-card: #F3F4F6;
  --color-border: #E5E7EB;
  --color-accent: #FF385C;
  --color-accent-hover: #E0264A;
  --color-volt: #00E599;
  --color-text-main: #0F1115;
  --color-text-muted: #64748B;
  
  --shadow-subtle: 0 2px 10px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 40px -12px rgba(0, 0, 0, 0.16);
  --shadow-drawer: -10px 0 40px rgba(0, 0, 0, 0.25);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F1F4;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: #FAFAFA;
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

/* Glassmorphism Header */
.glass-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
}

/* Infinite Marquee Ticker */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Interactive Sneaker Hotspot Pins */
.hotspot-pin {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0F1115;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  z-index: 30;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
}
.hotspot-pin::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 56, 92, 0.6);
  animation: radarPulse 2s cubic-bezier(0.25, 0, 0.2, 1) infinite;
  pointer-events: none;
}
.hotspot-pin:hover {
  transform: scale(1.3);
  background-color: #FF385C;
}
@keyframes radarPulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.hotspot-card {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(15, 17, 21, 0.95);
  backdrop-filter: blur(12px);
  color: #FFFFFF;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 40;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.hotspot-card::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(15, 17, 21, 0.95);
}
.hotspot-pin:hover .hotspot-card,
.hotspot-pin:focus .hotspot-card {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Product Card Styling */
.product-card {
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.product-image-container {
  position: relative;
  overflow: hidden;
  background-color: #F3F4F6;
  aspect-ratio: 1 / 1;
}

.product-image-container img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.product-image-container .img-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.product-card:hover .img-main {
  opacity: 0;
  transform: scale(1.06);
}
.product-card:hover .img-hover {
  opacity: 1;
  transform: scale(1.06);
}

/* Quick Action Overlay */
.quick-action-bar {
  opacity: 0;
  transform: translateY(12px);
  transition: all var(--transition-smooth);
}
.product-card:hover .quick-action-bar {
  opacity: 1;
  transform: translateY(0);
}

/* Wishlist Heart Animation */
.wishlist-btn {
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.wishlist-btn:hover {
  transform: scale(1.15);
}
.wishlist-btn.active svg {
  fill: #FF385C;
  stroke: #FF385C;
}

/* Color Swatches */
.swatch-dot {
  width: 15px;
  height: 15px;
  border-radius: 9999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.15);
}
.swatch-dot:hover {
  transform: scale(1.25);
}
.swatch-dot.active {
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 3.5px #0F1115;
}

/* Size Pills */
.size-pill {
  transition: all 0.18s ease;
  cursor: pointer;
  user-select: none;
}
.size-pill:hover:not(.disabled) {
  border-color: #0F1115;
  color: #0F1115;
}
.size-pill.selected {
  background-color: #0F1115 !important;
  color: #FFFFFF !important;
  border-color: #0F1115 !important;
}

/* Animated Free Shipping Bar */
.shipping-progress-bar {
  background-size: 30px 30px;
  background-image: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.18) 75%,
    transparent 75%,
    transparent
  );
  animation: moveStripes 2s linear infinite;
}
@keyframes moveStripes {
  0% { background-position: 0 0; }
  100% { background-position: 30px 0; }
}

/* Slide Drawers (Cart & Wishlist) */
.drawer-backdrop {
  display: none !important;
  opacity: 0;
  pointer-events: none !important;
  transition: opacity 0.3s ease;
}
.drawer-backdrop.open {
  display: block !important;
  opacity: 1;
  pointer-events: auto !important;
}

.slide-drawer {
  transform: translateX(100%);
  pointer-events: none;
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
  box-shadow: var(--shadow-drawer);
}
.slide-drawer.open {
  transform: translateX(0);
  pointer-events: auto;
  visibility: visible;
}

.slide-drawer-left {
  transform: translateX(-100%);
  pointer-events: none;
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}
.slide-drawer-left.open {
  transform: translateX(0);
  pointer-events: auto;
  visibility: visible;
}

/* Modal Windows: STRICT display: none when closed so they NEVER block clicks! */
.modal-overlay {
  display: none !important;
  opacity: 0;
  pointer-events: none !important;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(8px);
}
.modal-overlay.open {
  display: flex !important;
  opacity: 1;
  pointer-events: auto !important;
}
.modal-content {
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.open .modal-content {
  transform: scale(1) translateY(0);
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}
.toast-msg {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #0F1115;
  color: #FFFFFF;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  font-size: 0.875rem;
  font-weight: 500;
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  max-width: 380px;
  border-left: 4px solid var(--color-accent);
}
.toast-msg.toast-success {
  border-left-color: #10B981;
}
.toast-msg.toast-info {
  border-left-color: #3B82F6;
}
.toast-msg.fadeOut {
  animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}
@keyframes toastSlideOut {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
  }
}

/* Order Tracking Stepper Timeline */
.track-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.track-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  left: 14px;
  bottom: -16px;
  width: 2px;
  background-color: #E2E8F0;
}
.track-step.completed:not(:last-child)::after {
  background-color: #10B981;
}
.track-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  background-color: #F1F5F9;
  color: #64748B;
  border: 2px solid #E2E8F0;
  z-index: 2;
}
.track-step.completed .track-dot {
  background-color: #10B981;
  color: #FFFFFF;
  border-color: #10B981;
}
.track-step.current .track-dot {
  background-color: #0F1115;
  color: #FFFFFF;
  border-color: #FF385C;
  box-shadow: 0 0 0 4px rgba(255, 56, 92, 0.25);
}

/* Voucher Ticket Card */
.voucher-card {
  background: linear-gradient(135deg, #18191E 0%, #0F1115 100%);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  position: relative;
}

/* Floating Back-to-Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 35;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0F1115;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.2s ease;
  opacity: 0;
  visibility: hidden;
}
.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top-btn:hover {
  transform: translateY(-4px);
  background-color: #FF385C;
}

/* Category card zoom */
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
}
.category-card img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.category-card:hover img {
  transform: scale(1.08);
}
.category-card-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
  transition: opacity 0.3s ease;
}

/* FAQ Accordion Styling */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.active .faq-content {
  max-height: 300px;
}
.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

/* Filter Price Slider */
input[type=range] {
  accent-color: #0F1115;
}
