@media (max-width: 768px) {
  .product-management {
    padding: 16px;
    margin: 0 auto;
    max-width: 100%;
    overflow-x: hidden;
  }

  .product-management h2 {
    font-size: 1.3rem;
    text-align: center;
  }

  .actions {
    flex-direction: column;
    gap: 12px;
    display: flex;
    align-items: stretch;
  }

  .search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .search-form input[type="text"],
  .custom-select {
    flex: 1 1 100%;
    min-width: 220px;
    font-size: 0.95rem;
  }

  .search-btn {
    flex: 1 1 auto;
    min-width: 44px;
    padding: 10px;
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .conf-info {
    align-self: center;
    font-size: 1.2rem;
    position: relative;
  }

  .conf-content {
    position: absolute;
    right: 0;
    left: auto;
    z-index: 999;
    background: #fff;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
  }

  .product-container {
    margin-top: 20px;
    overflow-x: auto;
  }

  .product-header h3 {
    font-size: 1.1rem;
    text-align: center;
  }

  .product-table table {
    font-size: 0.85rem;
    width: max-content;
    min-width: 800px;
  }

  .product-table th,
  .product-table td {
    padding: 8px;
    white-space: nowrap;
  }

  .product-table td:nth-child(2) {
    max-width: 250px;
    word-break: break-word;
    white-space: normal;
  }

  .btn {
    font-size: 0.85rem;
    padding: 8px 12px;
  }

  .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 20px;
  }

  .pagination a {
    padding: 6px 10px;
    font-size: 0.9rem;
    border-radius: 4px;
    background: #eee;
  }

  .pagination a.active {
    background-color: #1d49d8;
    color: #fff;
  }

}


@media (max-width: 1366px) {
  .product-table td:last-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .product-table td:last-child a {
    width: 100px;
    text-align: center;
  }
}