/* ==========================================================================
   HANSSHOP - FOOTWEAR & FASHION E-COMMERCE
   Ultra-Smooth & Lightweight Transitions & Luxury Aesthetic Theme
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Italiana&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-display: 'Italiana', Georgia, serif;

  --color-obsidian: #121110;
  --color-charcoal: #232220;
  --color-sand: #C9A97C;
  --color-sand-dark: #A88656;
  --color-sand-light: #F4EFE6;
  --color-terracotta: #C46851;
  --color-bg-alabaster: #FAF8F5;
  --color-bg-card: #FFFFFF;
  --color-border: #E8E2D9;
  --color-border-dark: #32302C;
  --color-text-muted: #747069;
  
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-base: 0.35s var(--ease-smooth);
  --transition-slow: 0.6s var(--ease-smooth);
  
  --shadow-subtle: 0 4px 20px -2px rgba(18, 17, 16, 0.05);
  --shadow-hover: 0 16px 36px -4px rgba(18, 17, 16, 0.12);
  --shadow-gold: 0 8px 24px -2px rgba(201, 169, 124, 0.3);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-alabaster);
  color: var(--color-obsidian);
  overflow-x: hidden;
  line-height: 1.6;
}

.font-serif {
  font-family: var(--font-serif);
}

.font-display {
  font-family: var(--font-display);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-alabaster);
}
::-webkit-scrollbar-thumb {
  background: #D5CEBF;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-sand);
}

/* Announcement Ticker */
.ticker-animate {
  display: inline-block;
  white-space: nowrap;
  animation: tickerSlide 28s linear infinite;
}

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

/* Header Glassmorphism & Fixed Navigation */
.header-glass {
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 226, 217, 0.8);
  transition: all 0.3s var(--ease-smooth);
}

.header-scrolled {
  box-shadow: 0 10px 30px -10px rgba(18, 17, 16, 0.08);
  background: rgba(255, 255, 255, 0.95);
}

/* Nav Link Hover Underline */
.nav-link {
  position: relative;
  transition: color var(--transition-fast);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--color-obsidian);
  transition: width var(--transition-base);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Animated Buttons */
.btn-luxury {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all var(--transition-base);
}
.btn-luxury::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}
.btn-luxury:hover::before {
  left: 100%;
}
.btn-luxury:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.btn-luxury:active {
  transform: translateY(0);
}

/* Product Card Effects */
.product-card {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.product-image-container {
  overflow: hidden;
  position: relative;
}

.product-primary-img,
.product-hover-img {
  transition: transform 0.7s var(--ease-smooth), opacity 0.5s ease;
}

.product-hover-img {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card:hover .product-primary-img {
  transform: scale(1.06);
}

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

/* Quick Action Overlay */
.product-quick-actions {
  transform: translateY(100%);
  opacity: 0;
  transition: all var(--transition-base);
}
.product-card:hover .product-quick-actions {
  transform: translateY(0);
  opacity: 1;
}

/* Heart Wishlist Micro-Animation */
.wishlist-btn {
  transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}
.wishlist-btn:hover {
  transform: scale(1.15);
}
.wishlist-btn.active {
  background-color: #FEE2E2 !important;
  color: #DC2626 !important;
  transform: scale(1.1);
}
.wishlist-btn.active svg {
  fill: #DC2626;
}

/* Lookbook Hotspot Pulse Animation */
.hotspot-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 20;
}

.hotspot-pulse {
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  position: relative;
  transition: transform 0.3s var(--ease-spring);
}

.hotspot-pulse::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  animation: pulseRipple 2.2s infinite cubic-bezier(0.24, 0, 0.38, 1);
}

@keyframes pulseRipple {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  70% {
    transform: scale(2.4);
    opacity: 0;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.hotspot-pin:hover .hotspot-pulse {
  transform: scale(1.25);
  background: var(--color-sand);
  color: white;
}

/* Hotspot Card Preview Tooltip */
.hotspot-tooltip {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition-base);
  width: 240px;
  z-index: 30;
}

.hotspot-pin:hover .hotspot-tooltip,
.hotspot-pin.active .hotspot-tooltip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Drawers & Modals Backdrop */
.modal-backdrop {
  background: rgba(18, 17, 16, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* Offcanvas Drawer Transition */
.drawer-content {
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .drawer-content {
  transform: translateX(0);
}

/* Standard Pop-in Modal */
.modal-box {
  transform: scale(0.95) translateY(12px);
  opacity: 0;
  transition: transform 0.35s var(--ease-spring), opacity 0.3s ease;
}

.modal-backdrop.open .modal-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Shipping Progress Bar */
.shipping-progress {
  background: linear-gradient(90deg, var(--color-sand), #E8C99B, var(--color-sand));
  background-size: 200% 100%;
  animation: shimmerProgress 2s linear infinite;
}

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

/* Scroll Reveal Animation Classes */
.reveal-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
  will-change: opacity, transform;
}

.reveal-fade.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Delay Utility */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* Custom Badge Pill */
.badge-luxury {
  background-color: var(--color-obsidian);
  color: #FFFFFF;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
}
.badge-gold {
  background: linear-gradient(135deg, #DFBE89, #AF894E);
  color: #121110;
}
.badge-sale {
  background: #C46851;
  color: #FFFFFF;
}

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

.toast-item {
  pointer-events: auto;
  background: #FFFFFF;
  color: var(--color-obsidian);
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 320px;
  max-width: 420px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.35s var(--ease-spring);
}

.toast-item.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-item.hide {
  transform: translateY(20px);
  opacity: 0;
}

/* Craftsmanship Hotspot Spec Points on Shoe */
.spec-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  background-color: var(--color-sand);
  border: 3px solid #FFFFFF;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 2px var(--color-sand);
  transition: transform 0.2s ease;
}
.spec-dot:hover, .spec-dot.active {
  transform: scale(1.3);
  background-color: var(--color-obsidian);
}

/* Color Swatch Circle */
.color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 1px #D6D0C5;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.color-swatch:hover, .color-swatch.active {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px var(--color-obsidian);
}

/* Size Selector Button */
.size-btn {
  border: 1px solid var(--color-border);
  background: #FFFFFF;
  transition: all 0.2s ease;
  font-weight: 500;
}
.size-btn:hover {
  border-color: var(--color-obsidian);
}
.size-btn.active {
  background: var(--color-obsidian);
  color: #FFFFFF;
  border-color: var(--color-obsidian);
}

/* Quantity Counter Input */
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Mobile Bottom Navigation Bar */
@media (max-width: 768px) {
  .mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-around;
    padding: 8px 12px;
  }
}

/* ==========================================================================
   Liquid Glass Floating Action Buttons (FAB Cart, FAB MyOrder, FAB WhatsApp)
   Adapted from store Liquid Glass Design System
   ========================================================================== */
.floating-cart-btn,
.floating-orders-btn,
.floating-wa-btn {
  position: fixed !important;
  z-index: 45 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 48px !important;
  height: 48px !important;
  right: 28px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(14px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(160%) !important;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  color: #1C1917 !important;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.floating-cart-btn:hover,
.floating-orders-btn:hover {
  transform: scale(1.08) !important;
  background: #1C1917 !important;
  border-color: #1C1917 !important;
  color: #FFFFFF !important;
  box-shadow: 0 10px 28px rgba(28, 25, 23, 0.25) !important;
}

.floating-cart-btn:hover svg,
.floating-orders-btn:hover svg {
  color: #FFFFFF !important;
}

/* WhatsApp FAB Special Emerald Hover */
.floating-wa-btn:hover {
  transform: scale(1.08) !important;
  background: #25D366 !important;
  border-color: #25D366 !important;
  color: #FFFFFF !important;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35) !important;
}

.floating-wa-btn:hover svg {
  color: #FFFFFF !important;
}

.floating-cart-btn:active,
.floating-orders-btn:active,
.floating-wa-btn:active {
  transform: scale(0.95) !important;
}

/* Desktop vertical positions */
.floating-wa-btn {
  bottom: 28px !important;
}

.floating-orders-btn {
  bottom: 86px !important;
}

.floating-cart-btn {
  bottom: 144px !important;
}

/* Badge for Cart FAB */
.floating-cart-btn .cart-badge {
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  background: #C9A97C !important;
  color: #1C1917 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  min-width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  border: 2px solid #FFFFFF !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 4px !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.floating-cart-btn .cart-badge.hidden {
  display: none !important;
}

/* Hide FABs when Cart Drawer, Mobile Menu, or Modal is open */
body.cart-open .floating-cart-btn,
body.cart-open .floating-orders-btn,
body.cart-open .floating-wa-btn,
body.cart-open .mobile-nav,
body.menu-open .floating-cart-btn,
body.menu-open .floating-orders-btn,
body.menu-open .floating-wa-btn,
body.menu-open .mobile-nav {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ==========================================================================
   Liquid Glass Mobile Bottom Navigation Pill
   Adapted from store Liquid Glass Design System
   ========================================================================== */
.mobile-nav {
  display: none;
}

@media (max-width: 768px) {
  .mobile-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 20px !important;
    left: 16px !important;
    right: 16px !important;
    max-width: 440px !important;
    margin: 0 auto !important;
    height: 64px !important;
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    box-shadow: 0 10px 32px rgba(28, 25, 23, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
    border-radius: 36px !important;
    z-index: 40 !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
  }

  .mobile-nav-link {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: #78716C !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
    padding: 4px 0 !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .mobile-nav-link svg {
    width: 20px !important;
    height: 20px !important;
    margin-bottom: 3px !important;
    transition: transform 0.2s ease !important;
  }

  .mobile-nav-link.active {
    color: #A88656 !important;
    font-weight: 700 !important;
  }

  .mobile-nav-link:active {
    transform: scale(0.92) !important;
  }

  /* Responsive FAB positions on Mobile (floating above the mobile nav pill) */
  .floating-cart-btn,
  .floating-orders-btn,
  .floating-wa-btn {
    width: 44px !important;
    height: 44px !important;
    right: 18px !important;
  }

  .floating-wa-btn {
    bottom: 96px !important;
  }

  .floating-orders-btn {
    bottom: 150px !important;
  }

  .floating-cart-btn {
    bottom: 204px !important;
  }

  /* Extra bottom padding on mobile so content is not obscured */
  body {
    padding-bottom: 96px !important;
  }
}

