/* ============================================
   SKCOMPUTER – Responsive Styles
   ============================================ */

/* ---------- Tablet (max 1024px) ---------- */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.4rem; }
  .hero-inner { gap: 40px; }
  .hero-slideshow { max-width: 450px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail { gap: 32px; }
  .cart-layout { grid-template-columns: 1fr 300px; }
  .checkout-layout { grid-template-columns: 1fr 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .promo-banner { padding: 40px; }
  .promo-banner h2 { font-size: 1.6rem; }
}

/* ---------- Mobile Large (max 768px) ---------- */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }

  /* Header */
  .search-bar { display: none; }
  .menu-toggle { display: flex; }

  .header-inner { gap: 12px; }

  /* Admin "Back to Store" — icon only on small screens, no room for the label */
  .back-to-store-btn { width: 42px; padding: 0; justify-content: center; }
  .back-to-store-btn span { display: none; }

  /* Language toggle — trim padding so it doesn't crowd the other header icons */
  .lang-toggle { padding: 0 10px; font-size: 0.78rem; }

  /* Admin profile cluster — avatar only on small screens, name/date hidden */
  .admin-user-text { display: none; }
  .admin-user-section { padding-left: 8px; gap: 0; }

  /* Navigation */
  .nav-list {
    gap: 0;
    padding: 4px 0;
  }

  .nav-list a {
    padding: 6px 14px;
    font-size: 0.82rem;
  }

  /* Hero */
  .hero { padding: 60px 0; }
  .hero-inner { flex-direction: column; text-align: center; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero-buttons { justify-content: center; }
  .hero-slideshow { max-width: 100%; }
  .slideshow-prev, .slideshow-next { width: 36px; height: 36px; font-size: 0.9rem; }
  .hero-stats { justify-content: center; gap: 24px; }

  /* Categories */
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .category-card { padding: 20px 16px; }
  .category-icon { width: 48px; height: 48px; font-size: 1.2rem; }

  /* Products */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-info { padding: 12px; }
  .product-name { font-size: 0.85rem; }
  .product-price { font-size: 1rem; }

  /* Product Detail */
  .product-detail { grid-template-columns: 1fr; gap: 24px; }
  .product-gallery { position: static; }

  /* Product List Page */
  .page-layout { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  .filter-group {
    min-width: 200px;
    flex-shrink: 0;
  }

  /* Cart */
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }

  .cart-item {
    flex-wrap: wrap;
    gap: 12px;
  }

  .cart-item-image { width: 70px; height: 70px; }

  /* Checkout */
  .checkout-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  /* Auth */
  .auth-container { grid-template-columns: 1fr; max-width: 460px; }
  .auth-banner { display: none; }
  .auth-form-section { padding: 32px 24px; }

  /* Settings */
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav {
    position: static;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 4px;
  }
  .settings-nav a {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.82rem;
    padding: 10px 14px;
  }

  /* Promo */
  .promo-banner {
    flex-direction: column;
    padding: 32px 24px;
    text-align: center;
  }
  .countdown { justify-content: center; }
  .countdown-item { min-width: 60px; padding: 12px; }
  .countdown-value { font-size: 1.4rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Floating Cart */
  .floating-cart { display: flex; }

  /* Pagination */
  .pagination { gap: 4px; }
  .pagination a, .pagination span { width: 34px; height: 34px; font-size: 0.82rem; }
}

/* ---------- Mobile Small (max 480px) ---------- */
@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 0.9rem; }

  .section-title { font-size: 1.4rem; }

  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .category-card { padding: 16px 12px; }

  .products-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .product-info { padding: 10px; }
  .product-name { font-size: 0.8rem; }
  .product-price { font-size: 0.9rem; }
  .product-add-btn { width: 32px; height: 32px; font-size: 0.75rem; }

  .cart-item-price { min-width: auto; text-align: left; }

  .detail-info h1 { font-size: 1.4rem; }
  .detail-price { font-size: 1.5rem; }
  .detail-buttons { flex-direction: column; }
  .detail-buttons .btn { width: 100%; }

  .gallery-thumbs { gap: 8px; }
  .gallery-thumb { width: 60px; height: 60px; }

  .tabs { overflow-x: auto; }
  .tab-btn { white-space: nowrap; padding: 10px 16px; font-size: 0.85rem; }

  .hero-stats { flex-direction: column; gap: 16px; }

  .btn { padding: 10px 22px; font-size: 0.85rem; }
  .btn-lg { padding: 12px 28px; }
}

/* ---------- Print ---------- */
@media print {
  .header, .nav, .footer, .floating-cart { display: none; }
  body { background: #fff; color: #000; }
  .container { max-width: 100%; }
}
