/* ==========================================================================
   LA GRANJA ANIMAL SUPPLIES - RESPONSIVE STYLES
   ========================================================================== */

/* Tablets & Small Desktops (<= 1024px) */
@media (max-width: 1024px) {
  .hero-slide {
    grid-template-columns: 1fr;
    padding: 36px 24px;
    text-align: center;
    gap: 20px;
  }
  
  .hero-slide-content {
    order: 2;
  }
  
  .hero-slide-image {
    order: 1;
  }
  
  .hero-slide-image img {
    max-height: 280px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .shop-layout {
    grid-template-columns: 1fr;
  }
  
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .services-hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

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

  .services-features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  /* Top Bar Mobile */
  .top-bar {
    font-size: 0.76rem;
    padding: 6px 0;
  }
  
  .top-bar-left {
    display: none;
  }
  
  .top-bar .container {
    justify-content: center;
    padding: 0 10px;
  }
  
  .top-bar-right {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  
  .top-bar-item {
    font-size: 0.78rem;
    gap: 4px;
  }
  
  /* Main Header */
  .header-logo img {
    height: 42px;
  }
  
  .logo-title {
    font-size: 1.15rem;
  }
  
  .logo-subtitle {
    font-size: 0.62rem;
  }
  
  .header-search {
    display: none; /* Accessible in mobile drawer and page search */
  }
  
  .main-nav {
    display: none !important; /* Hide desktop nav, use side drawer */
  }
  
  .mobile-menu-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  
  /* Hero Slider Mobile */
  .hero-section {
    padding: 0;
  }
  
  .hero-slide {
    padding: 48px 18px 56px;
    min-height: 440px;
    background-position: right center;
    background-size: cover;
  }

  .hero-slide::before {
    background: linear-gradient(180deg, 
      rgba(168, 28, 30, 0.95) 0%, 
      rgba(168, 28, 30, 0.90) 70%, 
      rgba(132, 21, 23, 0.96) 100%
    );
  }
  
  .hero-slide-content {
    max-width: 100%;
    text-align: left;
  }

  .hero-tag {
    font-size: 0.8rem;
    padding: 5px 14px;
    margin-bottom: 14px;
  }

  .hero-title {
    font-size: 2.1rem;
    margin-bottom: 12px;
    line-height: 1.15;
  }
  
  .hero-desc {
    font-size: 0.98rem;
    margin-bottom: 24px;
    line-height: 1.5;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .slider-arrow.prev { left: 8px; }
  .slider-arrow.next { right: 8px; }
  
  /* Titles & Headings */
  .section-title {
    font-size: 1.75rem;
  }
  
  .page-title-banner {
    padding: 32px 0;
  }
  
  .page-title-banner h1 {
    font-size: 1.9rem;
  }
  
  /* Categories Grid */
  .categories-boxes-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  
  .category-box-card {
    min-height: 170px;
    padding: 20px;
  }
  
  /* Products Grid */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .product-card {
    padding: 12px;
  }
  
  .product-img-wrapper {
    height: 140px;
    margin-bottom: 10px;
  }
  
  .product-img-wrapper img {
    max-height: 130px;
  }
  
  .product-title {
    font-size: 0.92rem;
    min-height: 2.4em;
    margin-bottom: 6px;
  }
  
  .product-desc {
    display: none; /* Save vertical space on mobile */
  }
  
  .btn-consult-whatsapp {
    font-size: 0.82rem;
    padding: 8px 10px;
    gap: 4px;
  }
  
  /* Promo Banners Grid */
  .banners-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .promo-banner {
    min-height: 200px;
    padding: 24px 20px;
  }
  
  .promo-banner-content h3 {
    font-size: 1.35rem;
  }

  /* Instagram Community Card */
  .instagram-card-banner {
    padding: 24px 18px;
    flex-direction: column;
    text-align: center;
  }
  
  .instagram-card-left {
    flex-direction: column;
    gap: 14px;
  }
  
  .instagram-card-right {
    width: 100%;
  }
  
  .instagram-card-right .btn {
    width: 100%;
  }
  
  /* Features Grid */
  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  
  .feature-item {
    padding: 12px;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  /* Floating WhatsApp Button */
  .whatsapp-float span {
    display: none;
  }
  
  .whatsapp-float {
    padding: 14px;
    bottom: 20px;
    right: 20px;
    border-radius: 50%;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .services-pricing-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .services-addons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .services-features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Shop Mobile Filters (Horizontal Chips & Compact Sidebar) */
  .shop-sidebar {
    padding: 16px;
    margin-bottom: 20px;
    border-radius: var(--radius-md);
  }

  .filter-group {
    margin-bottom: 16px;
    padding-bottom: 16px;
  }

  .filter-title {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }

  .filter-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .filter-item {
    padding: 7px 14px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--color-border);
    font-size: 0.85rem;
    background: var(--color-bg-alt);
    gap: 8px;
  }

  .filter-item.active {
    border-color: var(--color-primary);
  }

  .filter-count {
    font-size: 0.75rem;
  }
}

/* Extra Small Phones (<= 400px) */
@media (max-width: 400px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .product-img-wrapper {
    height: 170px;
  }
  
  .product-img-wrapper img {
    max-height: 155px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .header-cta-text {
    display: none;
  }
}
