/* 1. Tính kích thước bao gồm cả padding và viền */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Chữ và nền chung */
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #222;
}

/* 3. Ảnh không bao giờ tràn khỏi khung chứa */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 4. Khoảng cách 2 bên */
.header,
section,
.footer {
  padding: 16px;
}

/* 5. Giới hạn bề rộng trên màn hình lớn */
main {
  max-width: 960px;
  margin: 0 auto;
}

/* 6. Ảnh sản phẩm cùng tỉ lệ, bo góc */
.product img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

/* 7. Bảng giá: tab chọn loại sắt */
.price-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.price-tabs button {
  padding: 8px 16px;
  font: inherit;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.price-tabs button[aria-selected="true"] {
  background: #222;
  border-color: #222;
  color: #fff;
}

/* 8. Bảng giá: khung kẻ ô, cuộn ngang trên điện thoại */
.table-wrap {
  overflow-x: auto;
}

.price-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.price-table th,
.price-table td {
  border: 1px solid #ccc;
  padding: 8px 10px;
  text-align: left;
}

.price-table thead th {
  text-align: center;
  background: #f5f5f5;
}

.price-table tbody th {
  font-weight: normal;
  white-space: nowrap;
}

.price-note {
  font-size: 0.9em;
  color: #555;
}

.icon {
  display: inline-block;
  vertical-align: middle;
}
.arrow {
  color: #1a73e8;
}