/* ==========================================================================
   PAWFECT PET SHOP - RESPONSIVE STYLESHEET
   ========================================================================== */

/* Large Screens & Laptops */
@media (max-width: 1200px) {
  .grid-5 {
    grid-template-columns: repeat(4, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Medium Screens & Tablets */
@media (max-width: 992px) {
  .grid-4, .grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-content h1 {
    font-size: 2.75rem;
  }

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

  .shop-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    z-index: 1000;
    overflow-y: auto;
    padding: 2rem 1.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-xl);
  }

  .shop-sidebar.active {
    left: 0;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .deal-section {
    padding: 2.5rem 1.5rem;
  }

  .deal-content h2 {
    font-size: 1.85rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    align-items: flex-start;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--gray-200);
  }

  .nav-links.active {
    display: flex;
  }

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

/* Small Screens & Mobile Phones */
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4, .grid-5 {
    grid-template-columns: 1fr;
  }

  .section-padding {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .hero {
    padding: 2.5rem 0 3.5rem;
  }

  .hero-content h1 {
    font-size: 2.15rem;
  }

  .hero-badges {
    flex-direction: column;
    gap: 0.75rem;
  }

  .top-bar-left, .top-bar-right {
    display: none;
  }

  .top-bar .container {
    justify-content: center;
  }

  .search-box {
    display: none; /* Accessible via mobile search overlay if triggered */
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .cart-table-wrap {
    overflow-x: auto;
  }

  .cart-table {
    min-width: 600px;
  }

  .modal-container {
    width: 95%;
    padding: 1.25rem;
  }

  .tabs-header {
    gap: 1rem;
    overflow-x: auto;
    white-space: nowrap;
  }
}
