  /* Custom styles for F and J Package Store */

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

  /* Selection color */
  ::selection {
    background-color: rgba(123, 45, 59, 0.15);
    color: #7B2D3B;
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #fefdfb;
  }
  ::-webkit-scrollbar-thumb {
    background: #e8c4cc;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #d4a0aa;
  }

  /* Navbar scroll state */
  #navbar.scrolled {
    background: rgba(254, 253, 251, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08);
  }

  #navbar.scrolled .font-serif {
    color: #7B2D3B;
  }

  /* Nav link underline animation */
  .nav-link {
    position: relative;
  }
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, #7B2D3B, #d44562);
    transition: width 0.3s ease;
  }
  .nav-link:hover::after {
    width: 100%;
  }

  /* Mobile menu animations */
  #mobileMenu.open {
    opacity: 1;
    pointer-events: all;
  }

  .menu-line:nth-child(1) {
    transform-origin: center;
  }
  .menu-line:nth-child(2) {
    opacity: 1;
  }
  .menu-line:nth-child(3) {
    transform-origin: center;
  }

  /* Active menu state */
  body.menu-open .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
  }
  body.menu-open .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  body.menu-open .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
  }

  /* Mobile link animation */
  .mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
  }
  #mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
  }
  #mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
  #mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
  #mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
  #mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
  #mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

  /* Fade-in animations */
  .fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger children */
  .stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
  .stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
  .stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
  .stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
  .stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
  .stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }
  .stagger-children.visible > *:nth-child(n+7) { transition-delay: 0.35s; }
  .stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
  }

  /* Floating animation for decorative elements */
  @keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
  }
  .float-slow {
    animation: float 6s ease-in-out infinite;
  }
  .float-medium {
    animation: float 4s ease-in-out infinite;
  }

  /* Subtle pulse for the hero badge */
  @keyframes pulse-soft {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
  }
  .pulse-soft {
    animation: pulse-soft 3s ease-in-out infinite;
  }

  /* Focus styles for accessibility */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  textarea:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
    border-radius: 4px;
  }

  /* Reduce motion for users who prefer it */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
    }
    html {
      scroll-behavior: auto;
    }
    .fade-in, .stagger-children > * {
      opacity: 1;
      transform: none;
    }
  }

  /* Tablet adjustments */
  @media (max-width: 768px) {
    .font-serif {
      line-height: 1.1;
    }
  }

  /* Print styles */
  @media print {
    #navbar, #mobileMenu, .fade-in {
      display: none !important;
    }
    body {
      background: white !important;
      color: black !important;
    }
  }
