/* Scroll reveal */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-fade {
  transform: none;
}

.reveal-scale {
  transform: translateY(20px) scale(0.97);
}

.reveal-scale.is-visible {
  transform: translateY(0) scale(1);
}

/* Mobile & touch-friendly layout */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  overflow-x: hidden;
}

@media (max-width: 639px) {
  .site-header {
    padding-top: 1.25rem !important;
    padding-bottom: 0.5rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .site-header h1 {
    font-size: 1.75rem !important;
    line-height: 1.1 !important;
  }

  .site-header .w-8 {
    width: 2rem;
  }

  .site-header a[aria-label="Panier"] {
    min-width: 2.75rem;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .divider-line {
    opacity: 0.25;
    margin-bottom: 0.75rem;
  }

  .hero-section {
    min-height: 22rem;
    height: auto;
    max-height: none;
    padding-top: 3rem;
    padding-bottom: 3rem;
    margin-top: 0.5rem;
    border-radius: 0.5rem;
  }

  .hero-section .hero-content {
    padding-top: 0 !important;
  }

  .hero-section h2 {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .hero-section p {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
  }

  .hero-section .btn-hero {
    width: 100%;
    max-width: 18rem;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
  }

  .section-mobile-tight {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .product-card h4 {
    font-size: 1rem;
  }

  .info-card {
    padding: 1.25rem !important;
  }

  .cart-layout-mobile {
    gap: 1.5rem !important;
  }

  .order-summary-mobile {
    position: static !important;
    width: 100% !important;
    padding: 1.25rem !important;
  }

  .product-detail-mobile h2 {
    font-size: 1.75rem !important;
  }

  .product-detail-mobile #product-price {
    font-size: 1.5rem !important;
  }

  .size-btn-mobile {
    width: 2.75rem !important;
    height: 2.75rem !important;
  }

  footer nav {
    gap: 0.75rem 1rem !important;
    font-size: 0.6875rem !important;
  }

  footer .flex.gap-4 {
    gap: 1rem !important;
  }

  .btn-plus,
  .btn-minus {
    min-width: 2.75rem !important;
    min-height: 2.75rem !important;
  }

  #add-to-cart {
    width: 100%;
    max-width: none;
  }

  main.container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

@media (max-width: 380px) {
  .site-header h1 {
    font-size: 1.5rem !important;
  }
}
