/* ============================================================
   OBJ ROCK — Responsive overrides
   Mobile-first adjustments for specific widths
   ============================================================ */

/* Ultra-wide refinements */
@media (min-width: 1600px) {
  :root { --container: 1320px; }
}

/* Desktop large */
@media (max-width: 1280px) {
  .nav-links { gap: 0; }
  .nav-link { padding: .55rem .7rem; font-size: .88rem; }
}

/* Tablet landscape */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > :nth-child(4),
  .footer-grid > :nth-child(5) { grid-column: span 1; }
}

/* Tablet portrait */
@media (max-width: 768px) {
  :root {
    --container: 100%;
    --sp-7: 2.5rem;
    --sp-8: 3rem;
    --sp-9: 4rem;
    --sp-10: 5rem;
  }
  .section { padding-block: clamp(2.5rem, 6vw, 4rem); }
  .page-hero { padding-top: 2.5rem; padding-bottom: 2rem; }
  .navbar { height: 64px; }
  .navbar.scrolled { height: 56px; }
  .brand-name { font-size: .95rem; }
  .brand-name small { font-size: .55rem; }
  .brand-mark { width: 32px; height: 32px; font-size: .9rem; }
  .nav-actions .nav-action.hide-tablet { display: none; }

  /* Cart drawer full width on mobile */
  .drawer { width: 100%; }

  /* Toast stacks higher on mobile */
  .toast-stack { bottom: 5.5rem; right: 1rem; left: 1rem; }
  .toast { min-width: 0; max-width: 100%; }

  /* FAB spacing */
  .fab-whatsapp { bottom: 1rem; left: 1rem; width: 48px; height: 48px; font-size: 1.25rem; }
  .ai-fab { bottom: 1rem; right: 1rem; width: 52px; height: 52px; font-size: 1.2rem; }
  .ai-panel { bottom: 4.5rem; right: 1rem; left: 1rem; width: auto; }
}

/* Mobile large */
@media (max-width: 480px) {
  .btn { padding: .75rem 1.1rem; }
  .btn-lg { padding: .9rem 1.4rem; font-size: 1rem; }
  .container { width: min(100% - 1.75rem, var(--container)); }
  .container-wide { width: min(100% - 1.75rem, var(--container-wide)); }
  .product-card-actions { flex-direction: column; }
  .product-card-actions .btn-icon { width: 100%; flex: none; }
  .carousel-caption .actions { flex-direction: column; }
  .carousel-caption .actions .btn { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Small phones */
@media (max-width: 360px) {
  :root { --fs-display: clamp(2rem, 9vw, 2.6rem); }
  .brand-name small { display: none; }
  .nav-actions .nav-action { width: 36px; height: 36px; }
  .product-card-body { padding: 1rem; }
  .product-card-actions { padding: 0 1rem 1rem; }
}

/* Touch device adjustments */
@media (hover: none) {
  .product-card-wish { opacity: 1; }
  .product-card:hover { transform: none; box-shadow: var(--shadow-sm); }
  .lift:hover { transform: none; }
}

/* Print */
@media print {
  .navbar, .footer, .fab-whatsapp, .ai-fab, .ai-panel,
  .scroll-progress, .announce, .drawer, .drawer-backdrop,
  .modal-backdrop, .search-overlay { display: none !important; }
  body { background: white; color: black; }
}

/* Reduced data preference */
@media (prefers-reduced-data: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
