/* ==========================================================================
   FishTolls - Responsive CSS
   Breakpoints: 1024px (Tablet), 768px (Mobile Landscape), 480px (Mobile Portrait)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    display: none; /* Collapsible on mobile if needed */
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .topbar {
    display: none; /* Simplify mobile view */
  }

  .header-row {
    flex-wrap: wrap;
    gap: 12px;
  }

  .header-search {
    order: 3;
    max-width: 100%;
    width: 100%;
  }

  .header-support {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .navigation-bar {
    display: none; /* Handled by mobile sliding menu */
  }

  .mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: var(--navy-deep);
    color: #ffffff;
    z-index: 9999;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 4px 0 20px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
  }

  .mobile-nav-drawer.is-open {
    left: 0;
  }

  .mobile-nav-header {
    padding: 18px 20px;
    background: #051424;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-nav-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
  }

  .mobile-nav-links {
    padding: 20px 0;
    overflow-y: auto;
  }

  .mobile-nav-links a {
    display: block;
    padding: 12px 24px;
    color: #cbd5e1;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .mobile-nav-links a:hover, .mobile-nav-links a.active {
    color: #ffffff;
    background: rgba(2, 128, 144, 0.2);
  }

  .hero-trust-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .combo-card {
    grid-template-columns: 1fr;
  }

  .combo-media {
    height: 200px;
  }

  .reviews-grid, .blog-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .legal-info-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .cookie-content {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    justify-content: flex-end;
  }

  .policy-content-card {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .product-gallery-main {
    height: 280px;
  }
}
