/* ===== CUSTOM STYLES ===== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Navbar glass effect */
#navbar {
  background: rgba(255, 252, 248, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(123, 45, 59, 0.08);
}

#navbar.scrolled {
  background: rgba(255, 252, 248, 0.95);
  box-shadow: 0 4px 24px rgba(123, 45, 59, 0.08);
}

/* Nav link underline on hover */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #7B2D3B;
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width 0.2s ease;
}

.nav-link:hover::after {
  width: calc(100% - 16px);
}

/* Product card image container */
.product-card {
  will-change: transform;
}

/* Custom select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237B2D3B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* Selection color */
::selection {
  background: #f9c5cc;
  color: #5e1f28;
}

/* Scroll reveal base - visible by default for progressive enhancement */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Reduced motion: disable all animations */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .product-card:hover,
  a:hover {
    transform: none;
  }

  .product-card:hover img,
  a:hover img {
    transform: none;
  }

  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }

  .floating {
    animation: none;
  }
}

/* Reduced motion JS class */
.no-motion .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.no-motion .product-card:hover,
.no-motion a:hover {
  transform: none;
}

.no-motion .product-card:hover img,
.no-motion a:hover img {
  transform: none;
}

/* Mobile menu transition */
#mobile-menu {
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid #7B2D3B;
  outline-offset: 2px;
}

/* Subtle gradient for hero section */
#top::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,252,248,0.97) 0%, rgba(255,248,240,0.9) 50%, rgba(252,228,232,0.6) 100%);
  pointer-events: none;
  z-index: -1;
}
