/* ============================================
   RESPONSIVE.CSS
   Ajustes generales que NO pisan header/search/hero/footer custom
   ============================================ */

/* Desktop grande */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Tablet y desktop medio */
@media (max-width: 1023px) and (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .products-list .product-card {
    grid-template-columns: 250px 1fr;
  }
}

/* Mobile general */
@media (max-width: 767px) {
  .products-section {
    padding: 56px 0;
  }

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

  .products-list .product-card {
    grid-template-columns: 1fr;
  }

  .product-card {
    max-width: 400px;
    margin: 0 auto;
  }

  .product-footer {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .product-cta .btn {
    width: 100%;
  }

  .products-filters {
    padding: 16px;
  }

  .filter-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .filter-options {
    flex-direction: column;
  }

  .filter-option {
    width: 100%;
    text-align: center;
  }

  section {
    padding: 56px 0;
  }

  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.45rem;
  }

  .container {
    padding: 0 15px;
  }

  .btn {
    padding: 10px 24px;
    font-size: 0.9rem;
  }
}

/* Mobile pequeño */
@media (max-width: 480px) {
  .product-image {
    height: 180px;
  }

  .product-content {
    padding: 16px;
  }

  .product-title {
    font-size: 1.3rem;
  }

  .price-amount {
    font-size: 1.3rem;
  }

  .modal-content {
    padding: 15px;
  }

  .modal-qty-panel {
    padding: 12px;
  }
}

/* Landscape bajo */
@media (max-height: 600px) and (orientation: landscape) {
  .products-section {
    padding: 40px 0;
  }
}

/* Print */
@media print {
  .header,
  .footer,
  .search-bar,
  .btn,
  .social-icons,
  .wa-float,
  .back-to-top {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .product-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
