/* ═══════════════════════════════════════════════════
   GlobalKeyStore — Responsive Breakpoints
   ═══════════════════════════════════════════════════ */

/* ─── Tablet (max 992px) ─── */
@media (max-width: 992px) {
  :root {
    --fs-5xl: 2.8rem;
    --fs-4xl: 2.2rem;
    --fs-3xl: 1.8rem;
  }

  .nav-links { display: none; }

  .mobile-toggle { display: flex; }

  /* Mobile Menu */
  .nav-links.mobile-active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10,10,15,0.98);
    backdrop-filter: blur(20px);
    padding: var(--space-2xl);
    gap: var(--space-lg);
    z-index: 999;
    animation: menu-slide-in 0.3s ease;
  }

  @keyframes menu-slide-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-links.mobile-active a {
    font-size: var(--fs-lg);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-color);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-product {
    grid-template-columns: 1fr;
    padding: var(--space-xl);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Shop */
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .filters-sidebar {
    position: static;
  }

  /* Product Detail */
  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    position: static;
  }

  /* Dashboard */
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
  }

  /* Contact */
  .contact-cards {
    grid-template-columns: 1fr;
  }

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

  /* Reviews */
  .reviews-summary {
    grid-template-columns: 1fr;
  }

  /* Bundles */
  .bundles-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* ─── Mobile (max 576px) ─── */
@media (max-width: 576px) {
  :root {
    --fs-5xl: 2.2rem;
    --fs-4xl: 1.8rem;
    --fs-3xl: 1.5rem;
    --fs-2xl: 1.3rem;
    --space-4xl: 3.5rem;
    --space-3xl: 2.5rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
  }

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

  .hero-trust {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .countdown {
    flex-wrap: wrap;
    justify-content: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form .btn {
    width: 100%;
  }

  .nav-actions .btn-sm {
    display: none;
  }

  .cart-sidebar {
    width: 100%;
  }

  .product-actions {
    flex-direction: column;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  /* Tabs scroll */
  .tabs {
    gap: 0;
  }

  .tab-btn {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--fs-xs);
  }

  /* Footer bottom */
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .payment-icons {
    justify-content: center;
  }

  /* Featured price */
  .featured-price .current {
    font-size: var(--fs-3xl);
  }

  /* Product price */
  .product-price-big .current-price {
    font-size: var(--fs-3xl);
  }
}

/* ─── Very small screens ─── */
@media (max-width: 360px) {
  :root {
    --fs-5xl: 1.8rem;
    --fs-4xl: 1.5rem;
  }
}

/* ─── Large Desktop (min 1400px) ─── */
@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }
}

/* ─── Touch-friendly ─── */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px;
  }

  .product-card:hover {
    transform: none;
  }

  .product-card:hover .card-image img {
    transform: none;
  }
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  .fade-in, .fade-in-left, .fade-in-right, .scale-in {
    opacity: 1;
    transform: none;
  }
}
