/* ============================================
   MOBILE HORIZONTAL LABELS & BADGES
   Makes section labels and badges horizontal on mobile
   ============================================ */

@media (max-width: 768px) {
  /* ============================================
     HORIZONTAL SECTION LABELS IN HERO
     "FOR SUPERMARKETS" and "FOR BRANDS"
     ============================================ */
  
  /* Reset hero section labels to horizontal */
  .hero.hero--inner .section-label {
    writing-mode: horizontal-tb !important;
    text-orientation: initial !important;
    transform: none !important;
    
    /* Reset position to normal flow */
    position: static !important;
    left: auto !important;
    top: auto !important;
    
    /* Horizontal styling */
    padding: 8px 16px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    
    /* Visual styling - horizontal pill */
    background: rgba(229, 57, 53, 0.1) !important;
    border: 1px solid rgba(229, 57, 53, 0.2) !important;
    border-radius: 100px !important;
    color: #E53935 !important;
    
    /* Reset margins */
    z-index: auto !important;
    margin: 0 auto 1rem !important;
    display: inline-block !important;
  }
  
  /* Reset hero container padding */
  .hero.hero--inner .hero-container {
    padding-left: 1rem !important;
    position: relative !important;
    text-align: center !important;
  }
  
  /* ============================================
     HORIZONTAL FLOATING CARD BADGES
     "48-Hour Delivery", "Supplier Vetting", etc.
     ============================================ */
  
  .floating-card-badge {
    writing-mode: horizontal-tb !important;
    text-orientation: initial !important;
    transform: none !important;
    
    /* Horizontal styling */
    padding: 8px 16px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    
    /* Visual styling - horizontal pill at top */
    background: linear-gradient(90deg, rgba(229, 57, 53, 0.9) 0%, rgba(229, 57, 53, 0.7) 100%) !important;
    color: white !important;
    border-radius: 100px !important;
    
    /* Reset position to normal flow at top of card */
    position: absolute !important;
    left: 16px !important;
    top: 16px !important;
    
    /* Flex layout for icon + text */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
  }
  
  /* Reset icon rotation */
  .floating-card-badge i {
    transform: none !important;
    font-size: 12px !important;
  }
  
  /* For dark cards, keep badge styling */
  .floating-card.dark .floating-card-badge {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%) !important;
    color: #1a1a1a !important;
  }
  
  /* Reset floating card body padding */
  .floating-card-body {
    position: relative !important;
    padding-left: 0 !important;
    padding-top: 56px !important;
  }
}

/* Extra Small Screens - Adjustments */
@media (max-width: 380px) {
  .hero.hero--inner .section-label {
    font-size: 11px !important;
    padding: 6px 14px !important;
  }
  
  .floating-card-badge {
    font-size: 10px !important;
    padding: 6px 12px !important;
    left: 12px !important;
    top: 12px !important;
  }
  
  .floating-card-body {
    padding-top: 48px !important;
  }
}
