/**
 * OPEX responsive — mobile / tablet / desktop / wide
 * Breakpoints: 768 (tablet), 1024 (desktop), 1280 (wide)
 */

/* Mobile-first tweaks */
@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }

  body {
    -webkit-tap-highlight-color: rgba(30, 30, 30, 0.08);
  }

  .page-hero {
    padding-block: 1.25rem;
  }

  .product__actions {
    flex-direction: column;
    gap: 0.55rem;
  }

  .product__actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .mega__panel,
  .mega-panel.is-open {
    border: 0;
    border-radius: 0;
  }

  .mega__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--opex-space-4);
  }

  .cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    border-radius: 8px;
  }

  .card {
    border-radius: 12px;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .hide-tablet {
    display: none !important;
  }

  .container {
    padding-inline: 1.5rem;
  }

  .mega__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .hide-desktop {
    display: none !important;
  }

  .container {
    padding-inline: 1.5rem;
  }

  .site-header__inner {
    gap: var(--opex-space-6);
  }
}

/* Wide */
@media (min-width: 1280px) {
  .container {
    padding-inline: 1.5rem;
  }

  .section {
    padding-block: var(--opex-space-12);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print */
@media print {
  .site-header,
  .bottom-nav,
  .site-footer,
  .btn,
  .filters {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
