/**
 * COSAS3D — Responsive Adaptations
 * Desktop, Laptop, Tablet, and Mobile Deliberate Layouts
 */

/* Laptops & Tablets (< 1024px) */
@media (max-width: 1024px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .gallery-container {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .philosophy-grid,
  .value-props-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .conversion-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile & Small Tablets (< 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .nav-menu {
    display: none; /* Controlled by mobile drawer */
  }

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

  .hero-section {
    padding-top: var(--space-2xl);
  }

  .hero-stats-bar {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .hero-stats-bar::before {
    display: none;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-controls-group {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input {
    width: 100%;
  }

  .search-input:focus {
    width: 100%;
  }

  .sort-select {
    width: 100%;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-md);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .print-head-widget {
    bottom: 16px;
    right: 16px;
  }

  .assistant-speech-bubble {
    width: calc(100vw - 32px);
    right: 0;
  }

  .gallery-thumbs-strip {
    gap: var(--space-xs);
  }

  .gallery-thumb-btn {
    width: 64px;
    height: 64px;
  }

  .specs-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xs);
  }

  .spec-key {
    margin-top: var(--space-xs);
  }
}

/* Extra small mobile (< 480px) */
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

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

  .product-price-section {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }

  .cart-drawer {
    max-width: 100%;
  }
}
