@media (max-width: 768px) {
  .header {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 6px;
  }

  .nav a {
    white-space: nowrap;
  }

  .brand h1 {
    font-size: 19px;
  }

  .hero {
    min-height: 460px;
    padding: 45px 20px;
  }

  .hero h2 {
    font-size: 34px;
  }

  .section,
  .page {
    padding: 38px 16px;
  }

  .title h2,
  .page-header h2,
  .about h2 {
    font-size: 28px;
  }

  .about,
  .detail-card,
  .cart-layout,
  .login-page,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    flex-direction: column;
  }

  .filters input,
  .filters select,
  .filters button,
  .stock-check {
    width: 100%;
    min-width: 0;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .cart-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cart-card img {
    width: 100%;
    height: 180px;
  }

  .cart-controls {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding: 35px 20px;
  }

  .login-brand {
    padding: 45px 20px;
  }

  .login-brand h2 {
    font-size: 32px;
  }

  .login-area {
    padding: 28px 16px;
  }

  .detail-info h2 {
    font-size: 30px;
  }

  .detail-data {
    grid-template-columns: 1fr;
  }

  .admin-panel,
  .table-wrap {
    padding: 18px;
  }

  .table-header {
    flex-direction: column;
    align-items: stretch;
  }

  .search-form input {
    width: 100%;
    min-width: 0;
  }

  .actions {
    flex-direction: column;
  }
}