/* ═══════════════════════════════════════════════════════════════
   RAINORA V2 — RESPONSIVE
═══════════════════════════════════════════════════════════════ */

/* ─── Mobile First Adjustments ─── */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .search-header { display: none; }
  .hamburger-btn { display: grid; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .trust-bar { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; --bottom-nav-h: 60px; }

  .topbar {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    padding: 0 12px;
  }
  .topbar-right { order: 1; }
  .topbar-center { order: 2; }
  .topbar-actions { order: 3; }

  .brand-text small { display: none; }
  .brand-mark { width: 34px; height: 34px; font-size: 17px; border-radius: 10px; }
  .brand-text span { font-size: 15px; }
  .hamburger-btn { width: 40px; height: 40px; }
  
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .pf-stage-wrap { order: 1; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }

  .pf-stage { min-height: 380px; height: 54vh; }
  .pf-dots { bottom: 17%; }
  .pf-navs { bottom: 6%; }
  
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card__body { padding: 12px; }
  .product-card__title { font-size: 14px; }
  .product-card__price-current { font-size: 14px; }
  .product-card__wish { opacity: 1; transform: scale(1); }
  .product-card__overlay { padding: 8px 12px; }
  .product-card__overlay .btn { height: 36px; font-size: 12px; }
  .product-card__overlay .btn .btn-text { display: none; }
  
  .trust-bar { grid-template-columns: 1fr; }
  .trust-item { padding: 14px 16px; }
  
  .category-grid { grid-template-columns: 1fr 1fr; }
  .brands-grid { grid-template-columns: repeat(3, 1fr); }
  
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { width: 100%; }
  
  .section { padding: 48px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  
  .product-detail { grid-template-columns: 1fr !important; }
  .product-detail__gallery { order: 1; }
  .product-detail__info { order: 2; }
  
  .checkout-layout { grid-template-columns: 1fr !important; }
  .checkout-summary { order: -1; }
  
  /* Cart page responsive */
  .cart-layout { grid-template-columns: 1fr !important; gap: 20px; }
  .cart-items { order: 1; }
  .cart-summary-card { order: 2; position: static; }
  .cart-page-item {
    grid-template-columns: 70px 1fr auto;
    gap: 12px;
  }
  .cart-page-item img {
    width: 70px;
    height: 70px;
  }
  .cart-page-item__price {
    grid-column: 2 / 3;
    font-size: 14px;
  }
  .cart-item__remove {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: start;
  }
  .cross-sell__grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .modal { padding: 24px; border-radius: var(--radius-lg); }
  
  body { padding-bottom: var(--bottom-nav-h); }
  
  .bottom-nav { display: flex; }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 24px); }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-card__media { aspect-ratio: 1; }
  .product-card__body { padding: 10px; }
  .product-card__brand { font-size: 10px; }
  .product-card__title { font-size: 13px; -webkit-line-clamp: 1; }
  .product-card__rating { font-size: 11px; margin-bottom: 6px; }
  .product-card__price-old { font-size: 11px; }
  .product-card__price-current { font-size: 13px; }
  .product-card__discount { font-size: 10px; padding: 2px 6px; }
  .product-card__overlay .btn { height: 34px; font-size: 11px; padding: 0 8px; }
  
  .hero-title { font-size: 32px !important; }
  .hero-subtitle { font-size: 14px !important; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }

  .pf-stage { min-height: 320px; height: 48vh; }
  .pf-navs .icon-btn { width: 36px; height: 36px; }

  .section-title { font-size: 24px; }
  
  .toast-wrap { bottom: calc(var(--bottom-nav-h) + 12px); }
  
  /* Smaller cart items on very small screens */
  .cart-page-item {
    grid-template-columns: 60px 1fr auto;
    gap: 8px;
    padding: 12px;
  }
  .cart-page-item img {
    width: 60px;
    height: 60px;
  }
  .category-grid { grid-template-columns: 1fr; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .cross-sell__grid { grid-template-columns: 1fr; }
}

/* ─── Tablet ─── */
@media (min-width: 769px) and (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* ─── Desktop ─── */
@media (min-width: 1025px) {
  .bottom-nav { display: none; }
  .hamburger-btn { display: none; }
  .mobile-menu-overlay { display: none; }
  .mobile-menu { display: none; }
}

/* ─── Large Desktop ─── */
@media (min-width: 1536px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 28px; }
}

/* ═══════════════ BOTTOM NAVIGATION (Mobile) ═══════════════ */
.bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--bottom-nav-h); z-index: 90;
  background: var(--surface); border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  padding: 0 8px;
}
.bottom-nav__item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  font-size: 10px; font-weight: 600; color: var(--text-muted);
  transition: color .2s; position: relative;
}
.bottom-nav__item:hover, .bottom-nav__item.active { color: var(--accent); }
.bottom-nav__item svg { width: 22px; height: 22px; }
.bottom-nav__badge {
  position: absolute; top: 4px; right: 50%; transform: translateX(14px);
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--rose-500); color: #fff;
  font-size: 9px; font-weight: 800; border-radius: var(--radius-full);
  display: grid; place-items: center;
}

/* (Mobile menu styles in components.css) */
