    /* Simple hover dropdown toggle (not used for smooth transition) */
    /* Mega menu fullwidth styles */
    
    /* Backdrop overlay for mega menu */
    .mega-menu-backdrop {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      z-index: 35;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.25s ease;
      pointer-events: none;
    }
    
    .mega-menu-backdrop.open {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }
    
    /* Full-viewport mega menu (fixed to viewport so it spans edge-to-edge) */
    .mega-menu {
      position: fixed;
      left: 95px !important;
      right: 0;
      top: 0;
      /* will be set by JS when opening to sit below nav */
      transform: translateY(20px);
      margin: 0;
      padding: 0;
      z-index: 40;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.25s ease, transform 0.25s ease;
      pointer-events: none;
      /* keep internal scrolling limits */
      max-height: calc(100vh - 6rem);
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
      box-sizing: border-box;
      /* Wheat background using theme SVG file */
      background-color:#f9f6f4;
      background-image: url('../images/thin-wheat-awn.svg');
      background-size: 19%;
      background-position: bottom right;
      background-repeat: no-repeat;
    }

    .mega-menu.open {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
      pointer-events: auto;
      margin-top: 20px;
    }

    

    /* Closing state: allow animated fade/slide out before hiding */
    .mega-menu.closing {
      opacity: 0 !important;
      transform: translateY(20px) !important;
      visibility: visible !important;
      /* keep visible during animation */
      pointer-events: none;
    }

    /* Mega menu content styling to show wheat background */
    .mega-menu .grid {
      /* background: rgba(255, 255, 255, 0.7); */
      margin: 1px;
    }

    /* Make sure wheat pattern is visible behind content */
    .mega-menu .grid > div {
      margin: 1px;
      padding: 15px;
    }

    /* Brands carousel styles */
    .brand-carousel {
      padding: 0;
    }

    .brand-carousel .viewport {
      overflow: hidden;
    }

    .brand-carousel .track {
      display: flex;
      transition: transform 0.45s ease;
    }

    .brand-item {
      box-sizing: border-box;
      padding: 0.5rem;
    }

    /* Small screens: show 2 items */
    .brand-item {
      min-width: 50%;
    }

    /* Medium and up: show 6 items */
    @media (min-width: 768px) {
      .brand-item {
        min-width: calc(100% / 6);
      }
    }

    .brand-controls button {
      background: rgba(17, 24, 39, 0.8);
      color: #fff;
      padding: 0.5rem;
      border-radius: 9999px;
    }

    .brand-dots {
      gap: .5rem;
    }
  /* Vertical stacked text (one word per line). Make block-level and left-aligned */
  .vertical-text { line-height: 1; display: block; width: 100%; }
  .vertical-text span { display: block; text-align: right; }

  /* Responsive Video Styling */
  .video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 1.5rem auto;
    text-align: center;
  }

  .video-responsive iframe,
  .video-responsive object,
  .video-responsive embed,
  .video-responsive video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }

  /* WordPress video embeds */
  .wp-video,
  .wp-video-shortcode {
    max-width: 100% !important;
    height: auto !important;
    margin: 1.5rem auto !important;
    display: block !important;
    text-align: center !important;
  }

  .wp-video video {
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
  }

  /* YouTube, Vimeo, and other embeds */
  iframe[src*="youtube.com"],
  iframe[src*="youtu.be"],
  iframe[src*="vimeo.com"],
  iframe[src*="dailymotion.com"],
  iframe[src*="player.vimeo.com"] {
    max-width: 100%;
    margin: 1.5rem auto;
    display: block;
  }

  /* General video elements */
  video {
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
    display: block;
  }

  /* Content area video containers */
  .entry-content video,
  .post-content video,
  .product-content video,
  .woocommerce-product-details__short-description video {
    max-width: 100% !important;
    height: auto !important;
    margin: 1.5rem auto !important;
    display: block !important;
  }

  /* WordPress oembed wrapper */
  .wp-block-embed,
  .wp-embed-responsive {
    margin: 1.5rem auto !important;
    text-align: center !important;
  }

  .wp-block-embed iframe {
    max-width: 100% !important;
    margin: 0 auto !important;
    display: block !important;
  }

  /* Mobile responsive adjustments */
  @media (max-width: 768px) {
    .video-responsive {
      margin: 1rem auto;
    }
    
    iframe[src*="youtube.com"],
    iframe[src*="youtu.be"],
    iframe[src*="vimeo.com"] {
      margin: 1rem auto;
    }
  }

  /* Mobile Sidebar Menu Styles */
  /* Sidebar Base Styles */
  .mobile-sidebar {
    backdrop-filter: blur(10px);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }
  
  .mobile-sidebar.menu-open {
    transform: translateX(0);
  }
  
  #mobile-menu-overlay.overlay-open {
    opacity: 1;
    visibility: visible;
  }
  
  /* Menu Content Styles */
  .mobile-submenu {
    background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
    border-left: 3px solid #e2e8f0;
    margin: 0.25rem 0 0.25rem 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
    overflow: hidden;
  }
  
  .mobile-menu-parent {
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
  }
  
  .mobile-menu-parent:hover {
    background: linear-gradient(to right, #f8fafc, #ffffff);
    border-left: 3px solid #3b82f6;
    padding-left: calc(1rem - 3px);
  }
  
  .mobile-submenu-toggle:hover {
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 0.375rem;
  }
  
  .mobile-submenu a {
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
  }
  
  .mobile-submenu a:hover {
    background: linear-gradient(to right, #dbeafe, #eff6ff);
    border-left: 3px solid #3b82f6;
    padding-left: calc(1rem - 3px);
    transform: translateX(2px);
  }
  
  .mobile-submenu a:last-child {
    border-bottom: none;
  }
  
  /* Staggered animations for menu items */
  .mobile-menu-list > li {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInFromLeft 0.4s ease-out forwards;
  }
  
  .mobile-menu-list > li:nth-child(1) { animation-delay: 0.1s; }
  .mobile-menu-list > li:nth-child(2) { animation-delay: 0.15s; }
  .mobile-menu-list > li:nth-child(3) { animation-delay: 0.2s; }
  .mobile-menu-list > li:nth-child(4) { animation-delay: 0.25s; }
  .mobile-menu-list > li:nth-child(5) { animation-delay: 0.3s; }
  .mobile-menu-list > li:nth-child(6) { animation-delay: 0.35s; }
  
  /* Submenu item animations */
  .mobile-submenu li {
    opacity: 0;
    transform: translateX(-15px);
    animation: slideInSubmenu 0.3s ease-out forwards;
  }
  
  .mobile-submenu li:nth-child(1) { animation-delay: 0.1s; }
  .mobile-submenu li:nth-child(2) { animation-delay: 0.15s; }
  .mobile-submenu li:nth-child(3) { animation-delay: 0.2s; }
  .mobile-submenu li:nth-child(4) { animation-delay: 0.25s; }
  .mobile-submenu li:nth-child(5) { animation-delay: 0.3s; }
  
  @keyframes slideInFromLeft {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes slideInSubmenu {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  /* Touch-friendly targets */
  @media (max-width: 768px) {
    .mobile-menu-parent, 
    .mobile-submenu a {
      min-height: 52px;
      display: flex;
      align-items: center;
    }
    
    .mobile-submenu-toggle {
      min-width: 48px;
      min-height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .mobile-sidebar {
      width: 85vw;
      max-width: 320px;
    }
  }
  
  /* Prevent body scroll when sidebar is open */
  body.sidebar-open {
    overflow: hidden;
  }