/* Mobile Responsive Styles for Enhanced UI/UX */
@media (max-width: 768px) {
  /* Mobile Viewport Fixes */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  
  * {
    box-sizing: border-box !important;
  }
  
  /* Hero Section Mobile Adjustments */
  .hero {
    height: 70vh;
    align-items: center;
    padding: 0 1rem;
  }
  
  .hero-content {
    margin-bottom: 40px;
  }
  
  .banner-inputs {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    margin-bottom: 0;
  }
  
  .banner-inputs input {
    min-width: 100%;
  }
  
  /* Product Card Mobile Enhancements */
  .product-card {
    margin-bottom: 20px;
    height: auto; /* Override fixed height for mobile */
  }
  
  /* Reset product image size for mobile */
  .product-card .product-image {
    height: auto;
    margin-bottom: 1rem;
  }
  
  .product-card .product-image img {
    width: 100%;
    max-width: 200px;
    height: 160px;
    margin: 0 auto;
    border-radius: 12px;
    object-fit: cover;
  }
  
  /* Show product info normally on mobile */
  .product-info {
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  /* Position action buttons below content on mobile */
  .product-actions {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    height: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    margin-top: 15px;
    background: rgba(249, 249, 249, 0.95);
    padding: 15px;
    border-radius: 12px;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
    z-index: 10;
  }
  
  .action-btn {
    padding: 10px 16px;
    font-size: 0.8rem;
    opacity: 1 !important;
    transform: translateY(0) !important;
    display: inline-flex !important;
    visibility: visible !important;
    align-items: center;
    justify-content: center;
    min-height: 40px;
  }
  
  /* Ensure hero buttons are visible on mobile */
  .hero-buttons {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin-top: 2rem;
  }
  
  .enquiry-btn,
  .explore-btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100%;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    font-size: 1rem;
  }
  
  /* Disable all hover effects on mobile */
  .product-card:hover .product-image {
    height: auto !important;
    margin-bottom: 1rem !important;
  }
  
  .product-card:hover .product-image img {
    transform: none !important;
    position: static !important;
    width: 100% !important;
    max-width: 200px !important;
    height: 160px !important;
    border-radius: 12px !important;
    top: auto !important;
    left: auto !important;
  }
  
  .product-card:hover .product-info {
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .product-card:hover .product-actions {
    opacity: 1 !important;
    visibility: visible !important;
  }
}

@media (max-width: 480px) {
  .action-btn {
    padding: 8px 12px;
    font-size: 0.75rem;
    flex: 1; /* Make buttons equal width on small screens */
  }
  
  .banner-inputs {
    padding: 15px;
  }
  
  .product-actions {
    padding: 12px;
    flex-direction: row; /* Keep horizontal on small screens too */
    gap: 8px;
  }
  
  .product-card {
    padding: 1rem; /* Reduce card padding on small screens */
  }
  
  .logo-text {
    font-size: 28px !important;
  }
  
  .logo-accent {
    font-size: 28px !important;
  }
  
  /* Mobile Loader Fixes */
  .loader-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    height: -webkit-fill-available !important; /* iOS Safari fix */
    z-index: 10000 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .loader-overlay.fade-out {
    opacity: 0 !important;
    visibility: hidden !important;
  }
  
  /* Additional Mobile Header Fixes */
  .top-header {
    display: none !important; /* Hide top header on mobile */
  }
  
  .main-header {
    position: relative !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  
  /* Mobile Modal Fixes */
  .unified-modal {
    width: 95% !important;
    max-width: 95vw !important;
    max-height: 90vh !important;
    margin: 0 auto !important;
  }
  
  /* Mobile Button Improvements */
  .tab-btn {
    font-size: 0.9rem !important;
    padding: 0.6rem 1rem !important;
  }
}