/* ============================================================
   RAINBOW COMPUTER — responsive.css
   Breakpoints: 1024px (lg), 768px (md), 600px (sm), 480px (xs)
   ============================================================ */

/* ── LARGE DESKTOP (1280px+) ────────────────────────────────── */
@media (min-width: 1280px) {
  .brands-grid { grid-template-columns: repeat(8, 1fr); }
}

/* ── LAPTOP / SMALL DESKTOP (1024px-1279px) ─────────────────── */
@media (max-width: 1279px) {
  :root { --container-max: 100%; }
  .product-grid    { grid-template-columns: repeat(3, 1fr); }
  .catalog-grid    { grid-template-columns: repeat(3, 1fr); }
  .brands-grid     { grid-template-columns: repeat(6, 1fr); }
  .footer-grid     { grid-template-columns: 2fr 1fr 1fr; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
  .footer-grid .footer-brand .footer-brand-desc { max-width: 100%; }
}

/* ── TABLET (768px-1023px) ──────────────────────────────────── */
@media (max-width: 1023px) {
  /* Header */
  .header-nav { display: none; }
  .mobile-nav-toggle { display: flex; }
  .header-search { max-width: 360px; }
  .header-category-select { max-width: 130px; font-size: 12px; padding-inline: 8px; }

  /* Hero */
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero { padding-block: 40px; }
  .hero-desc { max-width: 100%; }

  /* Promo */
  .promo-banner { grid-template-columns: 1fr; }
  .promo-media { display: none; }

  /* Products */
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }

  /* Auction */
  .auction-grid { grid-template-columns: 1fr; }
  .auction-main-layout { grid-template-columns: 1fr; gap: 16px; }
  .auction-product-frame { height: 260px; }
  .auction-sidebar { border-left: none; border-top: 1px solid var(--border-subtle); }
  .top-bidders { flex-direction: column; gap: var(--space-sm); }
  .bidder-row { width: 100%; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .service-items-grid { grid-template-columns: repeat(2, 1fr); }

  /* Brands */
  .brands-grid { grid-template-columns: repeat(4, 1fr); }

  /* Store */
  .store-grid { grid-template-columns: 1fr; }
  .store-map-placeholder { aspect-ratio: 16/7; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .footer-grid .footer-brand { grid-column: 1 / -1; }

  /* Auction countdown layout */
  .auction-stats { grid-template-columns: repeat(3, 1fr); }
}

/* ── MOBILE LARGE (600px-767px) ─────────────────────────────── */
@media (max-width: 767px) {
  :root {
    --space-3xl: 40px;
    --space-2xl: 32px;
  }

  /* Container padding tighter */
  .container { padding-inline: var(--space-md); }

  /* Header */
  .header-search { max-width: 220px; }
  .logo-tagline { display: none; }

  /* Hero */
  .hero-cta-row { gap: var(--space-sm); }
  .hero-cta-row .btn { flex: 1; justify-content: center; }
  .hero-trust { gap: var(--space-lg); }

  /* Products */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; }

  /* Auction */
  .auction-main { padding: 16px; }
  .auction-product-frame { height: 220px; }
  .auction-stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .auction-stat { padding: 8px 6px; }
  .auction-stat-label { font-size: 9.5px; }
  .auction-stat-value { font-size: 0.9rem; }
  .top-bidders { flex-direction: column; padding: 12px 16px; }
  .bidder-row { min-width: unset; padding: 8px 10px; }
  .auction-cta { padding: 12px 16px; }
  .auction-header-sub { display: none; }

  /* Service items grid: single column */
  .service-items-grid { grid-template-columns: 1fr; }

  /* Brands */
  .brands-grid { grid-template-columns: repeat(4, 1fr); }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; }

  /* Section header row: stack */
  .section-header-row { flex-direction: column; align-items: flex-start; }
  .section-header-row .btn-ghost { padding-left: 0; }

  /* Catalog controls stack */
  .catalog-controls { flex-direction: column; align-items: stretch; }
  .catalog-search-wrap { max-width: 100%; }
  .catalog-sort { width: 100%; }

  /* Promo title */
  .promo-final { font-size: 1.4rem; }

  /* Store CTA */
  .store-cta-row { flex-direction: column; }
  .store-cta-row .btn { justify-content: center; }
}

/* ── MOBILE SMALL (max 480px) ───────────────────────────────── */
@media (max-width: 479px) {
  :root { --header-height: 56px; }

  /* Logo: hide text on very small screens */
  .logo-text { display: none; }

  /* Header search: shorter & compact */
  .header-search { max-width: 190px; }
  .header-category-select { display: none; }
  .header-search-divider { display: none; }
  .header-search input { font-size: 12.5px; padding-left: 10px; }

  /* Hero */
  .hero { padding-block: 32px; }
  .hero-title { font-size: 1.7rem; }
  .hero-trust { flex-direction: column; gap: var(--space-md); }
  .hero-trust-item { gap: var(--space-sm); }
  .hero-services { display: none; }

  /* Products: single column */
  .product-grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }

  /* Filter chips: horizontal scroll */
  .catalog-filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .catalog-filter-chips::-webkit-scrollbar { display: none; }
  .catalog-filter-chips .chip { flex-shrink: 0; }

  /* Brands: smaller grid */
  .brands-grid { grid-template-columns: repeat(3, 1fr); }

  /* Auction countdown: smaller font */
  .countdown-num { font-size: 1.1rem; }

  /* Promo: compact layout */
  .promo-content { padding: var(--space-lg); }
  .promo-pricing { flex-wrap: wrap; gap: var(--space-sm); }

  /* Float WA: slightly smaller */
  .float-wa { bottom: 16px; right: 16px; }
  .float-wa-btn { width: 48px; height: 48px; }
  .float-wa-btn svg { width: 24px; height: 24px; }

  /* Footer: brand section */
  .footer-brand-desc { font-size: 12px; }
}

/* ── CATEGORY NAV SCROLL LOCK ───────────────────────────────── */
@media (max-width: 1023px) {
  .category-nav-inner { padding-inline: var(--space-md); }
}

/* ── PRINT ──────────────────────────────────────────────────── */
@media print {
  .site-header, .float-wa, .mobile-nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
}
