/* Mobile Responsive Styles */
@media (max-width: 768px) {
  /* General Mobile Adjustments */
  html {
    -webkit-overflow-scrolling: touch;
  }
  body {
    font-size: 16px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
  }
  
  /* Header Mobile */
  .ws-header {
    height: 56px;
  }

  /* Hide header location block on mobile (sticky footer has location + directions) */
  .ws-header .ws-header-location,
  #wsHeaderLocation {
    display: none !important;
  }
  
  /* Hero Mobile */
  .ws-hero {
    min-height: 50vh;
    max-height: 60vh;
  }
  
  .ws-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    min-width: 100%;
    min-height: 100%;
    position: absolute;
    top: 0;
    left: 0;
  }
  
  .ws-hero-content {
    padding: 20px;
  }
  
  .ws-hero-title {
    font-size: 1.8rem;
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: 1px;
    text-shadow: 0 3px 16px #222, 0 1px 0 #222, 0 0px 2px rgba(255,255,255,0.12);
  }
  
  .ws-hero-tagline {
    font-size: 1rem;
    margin-bottom: 28px;
    line-height: 1.4;
    text-shadow: 0 2px 8px var(--charcoal), 0 1px 0 #222;
  }

  /* Hero buttons responsive styling for mobile */
  .ws-hero-actions {
    gap: 12px;
    margin-top: 20px;
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }

  .ws-hero-btn {
    padding: 12px 24px;
    font-size: 0.95rem;
    min-height: 44px;
    width: 100%;
  }

  /* Collapsible Sections Mobile */
  .ws-section-toggle {
    padding: 16px 20px;
    font-size: 1.5rem;
  }

  .ws-section-toggle span {
    font-size: 1.5rem;
  }

  .ws-toggle-icon {
    font-size: 1rem;
    right: 20px;
  }

  .ws-section-content.expanded {
    padding: 16px 0;
  }

  /* Mobile Suppliers - Show note, hide desktop grid */
  .ws-suppliers-mobile-note {
    display: block;
  }

  .ws-suppliers-desktop {
    display: none !important;
  }
  
  /* Quick Links Mobile */
  .ws-quick-links {
    display: none; /* Hide quick links on mobile for cleaner layout */
  }
  
  /* Section Titles Mobile */
  .ws-section-title {
    font-size: 1.5rem;
    padding: 15px 20px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  
  /* Content Sections Mobile */
  .ws-retail,
  .ws-farmers-market,
  .ws-green-assoc,
  .ws-local-suppliers,
  .ws-featured-products,
  .ws-limited-events,
  .ws-gift-cards {
    margin: 30px auto;
    padding: 0 12px;
  }
  
  /* Gift Cards Mobile */
  .ws-gift-cards {
    padding: 40px 12px;
  }
  
  .ws-gift-cards-desc {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  
  .ws-gift-card {
    padding: 30px 20px;
  }
  
  .ws-gift-card-header {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
  }
  
  .ws-gift-card-icon {
    width: 70px;
    height: 70px;
  }
  
  .ws-gift-card-icon i {
    font-size: 2rem;
  }
  
  .ws-gift-card-title {
    font-size: 1.5rem;
  }
  
  .ws-gift-card-desc {
    font-size: 1rem;
  }
  
  .ws-gift-card-features {
    gap: 10px;
  }
  
  .ws-gift-card-features p {
    font-size: 0.95rem;
  }
  
  .ws-gift-card-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    min-height: 44px;
  }

  .ws-limited-events-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ws-limited-events-left .ws-farmers-content {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .ws-limited-events-left .ws-farmers-img {
    height: 200px;
  }

  .ws-luncheon-card-content {
    padding: 30px 20px;
  }
  
  .ws-retail-desc,
  .ws-green-desc,
  .ws-suppliers-desc,
  .ws-gift-cards-desc {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .ws-farmers-desc {
    font-size: 1rem;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  }
  
  /* Farmers Market Mobile */
  .ws-farmers-content {
    padding: 20px 16px;
    gap: 20px;
  }
  
  .ws-farmers-market .ws-section-title {
    background: rgba(255, 255, 255, 0.98);
    padding: 15px 20px;
  }
  
  /* Product Cards Mobile */
  .ws-product-card {
    margin-bottom: 20px;
    border-radius: 16px;
  }
  
  .ws-product-info {
    padding: 16px;
  }
  
  .ws-product-title {
    font-size: 1.2rem;
  }
  
  .ws-product-desc {
    font-size: 0.9rem;
  }
  
  .ws-product-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
    min-height: 44px; /* Touch target size */
  }
  
  /* Enhanced Touch Targets */
  button,
  .ws-btn,
  .ws-nav-toggle,
  .ws-back-to-top,
  .ws-modal-close {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Improved Form Handling */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="date"],
  select,
  textarea {
    font-size: 16px !important; /* Prevents zoom on iOS */
    padding: 12px 16px;
    border-radius: 8px;
    -webkit-appearance: none;
    appearance: none;
  }
  
  /* Better Form Spacing */
  .ws-form-group {
    margin-bottom: 24px;
  }
  
  .ws-form-group label {
    margin-bottom: 8px;
    font-size: 1rem;
  }
  
  /* Modal Improvements */
  .ws-modal {
    padding: 16px;
  }
  
  .ws-modal-content {
    width: 100%;
    max-width: 95%;
    margin: 20px auto;
    border-radius: 12px;
  }
  
  .ws-modal-header {
    padding: 16px 20px 12px 20px;
  }
  
  .ws-modal-body {
    padding: 20px;
  }
  
  /* Navigation Enhancements */
  .ws-nav-list {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
  }
  
  .ws-nav-list li a {
    padding: 14px 20px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .ws-dropdown-content {
    position: static;
    box-shadow: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .ws-dropdown-content a {
    padding: 12px 32px;
    font-size: 0.95rem;
  }
  
  /* Improved Accessibility */
  .ws-nav-toggle:focus,
  .ws-btn:focus,
  .ws-modal-close:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
  }
  
  /* Better Image Handling */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Prevent Horizontal Scrolling */
  body {
    overflow-x: hidden;
    width: 100%;
  }
  
  /* Enhanced Card Interactions */
  .ws-location,
  .ws-menu-section,
  .ws-bread-card,
  .ws-supplier-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .ws-location:active,
  .ws-menu-section:active,
  .ws-bread-card:active,
  .ws-supplier-card:active {
    transform: scale(0.98);
  }
  
  /* Improved Loading States */
  .ws-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
  }
  
  .ws-loading::after {
    content: '';
    width: 32px;
    height: 32px;
    border: 3px solid var(--taupe);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* Better Error Handling */
  .ws-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 16px 0;
    border: 1px solid #f5c6cb;
  }
  
  .ws-success {
    background: #d4edda;
    color: #155724;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 16px 0;
    border: 1px solid #c3e6cb;
  }
  
  /* Improved Footer */
  .ws-footer {
    padding: 30px 16px;
    margin-top: 60px;
  }
  
  .ws-footer-nav {
    gap: 20px;
    margin-bottom: 20px;
  }
  
  .ws-footer-nav a {
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
  }
  
  .ws-footer-nav a:hover,
  .ws-footer-nav a:focus {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  /* Back to Top Button */
  .ws-back-to-top {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }
  
  /* Enhanced Scroll Behavior */
  html {
    scroll-behavior: smooth;
  }
  
  /* Better Focus Management */
  .ws-nav-list:focus-within {
    outline: 2px solid var(--accent-color);
    outline-offset: -2px;
  }
  
  /* Improved Text Selection */
  ::selection {
    background-color: var(--primary-color);
    color: white;
  }
  
  ::-moz-selection {
    background-color: var(--primary-color);
    color: white;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .ws-hero {
    min-height: 45vh;
    max-height: 55vh;
  }
  
  .ws-hero-title {
    font-size: 1.6rem;
  }
  
  .ws-hero-tagline {
    font-size: 0.95rem;
  }

  /* Hero buttons for extra small mobile */
  .ws-hero-actions {
    gap: 10px;
    max-width: 260px;
  }

  .ws-hero-btn {
    padding: 11px 20px;
    font-size: 0.9rem;
  }
  
  .ws-section-title {
    font-size: 1.4rem;
    padding: 12px 16px;
  }
  
  .ws-main-card {
    margin: 16px auto;
    padding: 16px 12px;
  }
  
  .ws-locations-list,
  .ws-menus-list,
  .ws-bread-section {
    padding: 0 8px 24px 8px;
  }
  
  .ws-location,
  .ws-menu-section {
    padding: 16px 12px 12px 12px;
  }
  
  .ws-bread-card {
    padding: 10px 12px;
  }
  
  .ws-bread-card .ws-bread-img {
    width: 45px;
    height: 45px;
    margin-right: 10px;
  }
  
  .ws-bread-card .ws-bread-title {
    font-size: 0.85rem;
  }
  
  .ws-gift-card {
    padding: 24px 16px;
  }
  
  .ws-gift-card-icon {
    width: 60px;
    height: 60px;
  }
  
  .ws-gift-card-icon i {
    font-size: 1.8rem;
  }
  
  .ws-gift-card-title {
    font-size: 1.3rem;
  }
  
  .ws-gift-card-desc {
    font-size: 0.95rem;
  }
  
  .ws-social-content,
  .ws-social-cta {
    padding: 30px 16px;
  }
  
  .ws-social-cta h2 {
    font-size: 1.6rem;
  }
  
  .ws-footer {
    padding: 24px 12px;
  }
  
  .ws-bread-modal-content,
  .ws-order-summary-content {
    width: 98%;
    margin: 10px;
    padding: 16px;
  }
  
  .ws-modal {
    margin: 10px;
    padding: 16px;
  }
}

/* Very small mobile devices */
@media (max-width: 360px) {
  .ws-hero-title {
    font-size: 1.4rem;
  }
  
  .ws-hero-tagline {
    font-size: 0.9rem;
  }
  
  .ws-section-title {
    font-size: 1.3rem;
    padding: 10px 12px;
  }
  
  .ws-main-card {
    padding: 12px 8px;
  }
  
  .ws-location,
  .ws-menu-section {
    padding: 12px 8px 8px 8px;
  }
  
  .ws-bread-card {
    padding: 8px 10px;
  }
  
  .ws-bread-card .ws-bread-img {
    width: 40px;
    height: 40px;
    margin-right: 8px;
  }
  
  .ws-bread-card .ws-bread-title {
    font-size: 0.8rem;
  }
  
  .ws-social-content,
  .ws-social-cta {
    padding: 24px 12px;
  }
  
  .ws-social-cta h2 {
    font-size: 1.4rem;
  }
  
  .ws-footer {
    padding: 20px 8px;
  }
}

/* Extra extra small mobile devices (for very narrow screens) */
@media (max-width: 320px) {
  .ws-locations-list {
    padding: 0 4px 16px 4px; /* Absolute minimal padding */
  }
  
  .ws-location {
    padding: 10px 6px 6px 6px;
  }
  
  .ws-location-title {
    font-size: 1.1rem;
  }
  
  .ws-location-info {
    font-size: 0.9rem;
  }
  
  .ws-location-map iframe {
    height: 160px; /* Very small map for very small screens */
  }
  
  .ws-location-btn {
    padding: 10px 12px;
    font-size: 0.8rem;
    min-height: 40px;
  }
  
  .ws-hero-title {
    font-size: 1.3rem;
  }
  
  .ws-hero-tagline {
    font-size: 0.85rem;
  }
  
  .ws-section-title {
    font-size: 1.2rem;
    padding: 8px 10px;
  }
  
  .ws-main-card {
    padding: 10px 6px;
  }
}
