/* ========== RESET ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Poppins", sans-serif;
  background: #fff9f5;
  color: #333;
  line-height: 1.6;
}
/* ========== HEADER ========== */
.site-header {
  background: linear-gradient(135deg, #ffa36c, #ff7b00);
  color: #fff;
  padding: 8px 0;
  box-shadow: 0 3px 10px rgba(255, 123, 0, 0.25);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Logo */
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  line-height: 1.2;
}

.logo a {
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

/* Nav */
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
}

.nav a {
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.15);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.nav a:hover {
  background: #fff;
  color: #ff7b00;
  transform: translateY(-1px);
}

/* Greeting text */
.nav-user {
  color: #fff;
  font-size: 0.9rem;
  margin-right: 6px;
}
.nav-user strong {
  font-weight: 600;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .logo {
    font-size: 1.05rem;
  }

  .nav {
    justify-content: center;
    gap: 5px;
  }

  .nav a {
    padding: 4px 8px;
    font-size: 0.82rem;
  }

  .nav-user {
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 6px 0;
  }

  .logo {
    font-size: 0.95rem;
  }

  .nav {
    font-size: 0.78rem;
    gap: 4px;
  }

  .nav a {
    padding: 3px 6px;
    font-size: 0.78rem;
    border-radius: 8px;
  }

  .nav-user {
    font-size: 0.78rem;
  }
}


/* ========== MAIN CONTAINER ========== */
.main-box {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 24px rgba(255,163,108,0.12);
  margin: 30px auto;
  max-width: 1200px;
}

/* ========== DANH SÁCH SẢN PHẨM ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

/* Card sản phẩm */
.product-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(255,163,108,0.12);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 12px;
  min-height: 320px;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255,123,0,0.18);
}

/* Ảnh sản phẩm – nhỏ, không crop */
.product-card img {
  width: 100%;
  height: auto;
  max-height: 160px;       /* giảm kích thước ảnh */
  object-fit: contain;      /* không cắt ảnh */
  background: #fff;
  border-radius: 10px;
  padding: 6px;
  margin-bottom: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 163, 108, 0.25);
}

/* Nội dung card */
.product-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.product-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}
.product-card-price {
  color: #ff6a00;
  font-weight: 700;
  font-size: 1rem;
}

/* ========== CHI TIẾT SẢN PHẨM ========== */
.product-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1100px;
  margin: 40px auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(255,163,108,0.15);
  padding: 30px;
}
.detail-image {
  flex: 1 1 45%;
  text-align: center;
}
.detail-info {
  flex: 1 1 50%;
}
.product-image-large {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4/3;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(255,163,108,0.25);
  transition: 0.3s;
}
.product-image-large:hover {
  transform: scale(1.03);
}
.detail-image img[onclick] {
  border: 2px solid transparent;
  border-radius: 8px;
  transition: 0.2s;
}
.detail-image img[onclick]:hover {
  border-color: #ffa36c;
  transform: scale(1.05);
}

/* Thông tin */
.detail-info h2 {
  font-size: 1.7rem;
  color: #ff7b00;
  margin-bottom: 10px;
}
.detail-info p {
  margin-bottom: 8px;
}
.detail-info strong {
  color: #444;
}
.detail-info hr {
  margin: 18px 0;
  border: none;
  border-top: 1px solid #ffe3cf;
}

/* ========== NÚT & FORM ĐẶT HÀNG ========== */
#show-order-form-btn,
.order-form button {
  background: linear-gradient(135deg, #ffa36c, #ff7b00);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
  box-shadow: 0 4px 12px rgba(255,163,108,0.25);
}
#show-order-form-btn:hover,
.order-form button:hover {
  background: linear-gradient(135deg, #ff7b00, #ff5500);
  transform: translateY(-2px);
}
.order-form {
  background: #fff9f3;
  border: 1px solid #ffd6b3;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(255,163,108,0.1);
  margin-top: 10px;
}
.order-form input,
.order-form textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin-top: 4px;
  font-size: 0.95rem;
  transition: 0.15s;
}
.order-form input:focus,
.order-form textarea:focus {
  border-color: #ffa36c;
  box-shadow: 0 0 0 2px rgba(255,163,108,0.2);
}

/* ========== FOOTER ========== */
.site-footer {
  border-top: 1px solid #ffd8b2;
  padding: 18px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #aa7a50;
  background: #fff6ef;
  margin-top: 50px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
  }
  .nav {
    justify-content: center;
  }
  .nav a {
    font-size: 0.85rem;
    padding: 5px 10px;
  }
  .product-detail {
    flex-direction: column;
    padding: 18px;
    gap: 20px;
  }
  .product-image-large {
    max-width: 100%;
  }
  #show-order-form-btn, .order-form button {
    width: 100%;
  }
}

/* ========== QUẢN LÝ ĐƠN HÀNG ========== */
.page-title {
  color: #ff7b00;
  font-size: 1.5rem;
  margin-bottom: 18px;
  font-weight: 600;
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.filter-form label {
  font-weight: 500;
  color: #555;
}

.filter-form select {
  border: 1px solid #ffd0a3;
  border-radius: 8px;
  padding: 6px 10px;
  background: #fffaf5;
  font-size: 0.95rem;
}

.btn-filter {
  background: linear-gradient(135deg, #ffa36c, #ff7b00);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
}
.btn-filter:hover {
  background: linear-gradient(135deg, #ff7b00, #ff5500);
  transform: translateY(-2px);
}

/* Bảng đơn hàng */
.table-box {
  overflow-x: auto;
}
.order-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(255,163,108,0.1);
}

.order-table thead {
  background: linear-gradient(135deg, #ffa36c, #ff7b00);
  color: #fff;
}
.order-table th,
.order-table td {
  padding: 10px 12px;
  text-align: center;
  font-size: 0.9rem;
}
.order-table tbody tr:nth-child(even) {
  background: #fffaf5;
}
.order-table tbody tr:hover {
  background: #fff0e6;
}

/* Badge trạng thái */
.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  text-transform: capitalize;
  font-size: 0.85rem;
}
.badge-new {
  background: #ffe5b4;
  color: #ff8b00;
}
.badge-done {
  background: #d6f8d6;
  color: #2fa84f;
}
.badge-cancel {
  background: #ffd6d6;
  color: #d92b2b;
}

/* Nút xem */
.btn-view {
  background: linear-gradient(135deg, #ffb36c, #ff7b00);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.25s;
}
.btn-view:hover {
  background: linear-gradient(135deg, #ff7b00, #ff5500);
}
/* ========== CHI TIẾT ĐƠN HÀNG ========== */
.order-detail-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(255,163,108,0.15);
  padding: 24px;
  margin-top: 10px;
}

.order-info h3 {
  font-size: 1.3rem;
  color: #ff7b00;
  margin-bottom: 12px;
}
.order-info p {
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.order-info strong {
  color: #444;
}

.sub-title {
  margin: 14px 0 8px;
  font-size: 1.1rem;
  color: #ff7b00;
}

/* Bảng sản phẩm trong đơn */
.order-detail-table {
  width: 100%;
  border-collapse: collapse;
  background: #fffaf5;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 6px;
}
.order-detail-table th,
.order-detail-table td {
  padding: 8px 10px;
  text-align: center;
  font-size: 0.9rem;
}
.order-detail-table thead {
  background: linear-gradient(135deg, #ffa36c, #ff7b00);
  color: #fff;
}
.order-detail-table tbody tr:nth-child(even) {
  background: #fff5ee;
}
.order-detail-table tbody tr:hover {
  background: #fff0e6;
}

.order-total {
  text-align: right;
  font-size: 1.05rem;
  margin-top: 10px;
  font-weight: 600;
  color: #ff7b00;
}
.order-total span {
  font-size: 1.1rem;
}

/* Cập nhật trạng thái */
.update-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.select-status {
  border: 1px solid #ffd0a3;
  border-radius: 8px;
  padding: 8px 12px;
  background: #fffaf5;
  font-size: 0.95rem;
}

.btn-save {
  background: linear-gradient(135deg, #ffa36c, #ff7b00);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
}
.btn-save:hover {
  background: linear-gradient(135deg, #ff7b00, #ff5500);
  transform: translateY(-2px);
}

/* Thông báo không có sản phẩm */
.no-items {
  color: #c26b00;
  background: #fff4e3;
  padding: 10px 14px;
  border-radius: 10px;
  margin: 8px 0;
  font-size: 0.95rem;
}
/* ========== CHI TIẾT ĐƠN HÀNG ĐẸP ========== */
.order-detail {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(255,163,108,0.15);
  padding: 24px;
  margin-top: 10px;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header trên cùng */
.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.order-header h3 {
  color: #ff7b00;
  margin-bottom: 4px;
}
.order-header span {
  color: #555;
  font-size: 0.9rem;
}

/* Lưới thông tin */
.order-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 6px 20px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}
.order-info-grid strong {
  color: #444;
}

/* Bảng sản phẩm */
.order-items {
  width: 100%;
  border-collapse: collapse;
  background: #fffaf5;
  border-radius: 12px;
  overflow: hidden;
}
.order-items thead {
  background: linear-gradient(135deg, #ffa36c, #ff7b00);
  color: #fff;
}
.order-items th, .order-items td {
  padding: 10px 12px;
  text-align: center;
  font-size: 0.9rem;
}
.order-items tbody tr:nth-child(even) {
  background: #fff6ee;
}
.order-items tbody tr:hover {
  background: #fff0e6;
}

/* Ảnh sản phẩm nhỏ */
.item-name {
  display: flex;
  align-items: center;
  gap: 8px;
}
.item-name img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(255,163,108,0.3);
}

/* Tổng tiền */
.order-total {
  text-align: right;
  font-size: 1rem;
  font-weight: 600;
  color: #ff7b00;
  margin-top: 12px;
}
.order-total span {
  font-size: 1.1rem;
}

/* Form cập nhật */
.update-status-form {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.select-status {
  border: 1px solid #ffd0a3;
  border-radius: 8px;
  padding: 8px 12px;
  background: #fffaf5;
  font-size: 0.95rem;
}
.btn-save {
  background: linear-gradient(135deg, #ffa36c, #ff7b00);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
  box-shadow: 0 4px 12px rgba(255,163,108,0.25);
}
.btn-save:hover {
  background: linear-gradient(135deg, #ff7b00, #ff5500);
  transform: translateY(-2px);
}

/* Khi không có sản phẩm */
.no-items {
  background: #fff4e3;
  border-left: 4px solid #ffb36c;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #c66b00;
}

/* Badge trạng thái */
.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.badge-new { background: #ffe5b4; color: #ff8b00; }
.badge-done { background: #d6f8d6; color: #2fa84f; }
.badge-cancel { background: #ffd6d6; color: #d92b2b; }

/* ========== CHI TIẾT ĐƠN HÀNG - DẠNG DỌC ========== */
.order-detail {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(255,163,108,0.15);
  padding: 24px;
  margin-top: 10px;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.order-header h3 { color: #ff7b00; margin-bottom: 4px; }
.order-header p { margin: 4px 0; font-size: 0.9rem; color: #666; }

/* Thông tin khách hàng thẳng hàng dọc */
.order-info-vertical {
  background: #fffaf5;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 2px 10px rgba(255,163,108,0.1);
  margin-bottom: 14px;
}
.order-info-vertical p {
  margin: 4px 0;
  font-size: 0.95rem;
  line-height: 1.5;
}
.order-info-vertical strong {
  color: #ff7b00;
  display: inline-block;
  width: 150px;
}

/* Bảng sản phẩm */
.order-items {
  width: 100%;
  border-collapse: collapse;
  background: #fffaf5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(255,163,108,0.12);
}
.order-items thead {
  background: linear-gradient(135deg, #ffa36c, #ff7b00);
  color: #fff;
}
.order-items th, .order-items td {
  padding: 10px 12px;
  text-align: center;
}
.order-items tbody tr:nth-child(even) { background: #fff5ee; }
.order-items tbody tr:hover { background: #fff0e6; }

/* Ảnh sản phẩm nhỏ */
.item-name {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.item-name img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(255,163,108,0.3);
  background: #fff;
}

.order-total {
  text-align: right;
  font-size: 1rem;
  font-weight: 600;
  color: #ff7b00;
  margin-top: 14px;
}

/* Cập nhật trạng thái */
.update-status-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}
.select-status {
  border: 1px solid #ffd0a3;
  border-radius: 8px;
  padding: 8px 12px;
  background: #fffaf5;
  font-size: 0.95rem;
}
.btn-save {
  background: linear-gradient(135deg, #ffa36c, #ff7b00);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
  box-shadow: 0 4px 12px rgba(255,163,108,0.25);
}
.btn-save:hover {
  background: linear-gradient(135deg, #ff7b00, #ff5500);
  transform: translateY(-2px);
}

/* Badge trạng thái */
.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.badge-new { background: #ffe5b4; color: #ff8b00; }
.badge-process { background: #fff3b3; color: #b77a00; }
.badge-done { background: #d6f8d6; color: #2fa84f; }
.badge-cancel { background: #ffd6d6; color: #d92b2b; }

/* Thông báo / không có sản phẩm */
.no-items {
  background: #fff4e3;
  border-left: 4px solid #ffb36c;
  padding: 8px 12px;
  border-radius: 8px;
  color: #c26b00;
  font-size: 0.9rem;
}
/* ========== QUẢN LÝ SẢN PHẨM ========== */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.page-title {
  color: #ff7b00;
  font-weight: 700;
  font-size: 1.4rem;
}
.btn-add {
  background: linear-gradient(135deg, #ffa36c, #ff7b00);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255,163,108,0.25);
  transition: 0.25s;
}
.btn-add:hover {
  background: linear-gradient(135deg, #ff7b00, #ff5500);
  transform: translateY(-2px);
}

/* Bảng quản lý sản phẩm */
.product-list {
  width: 100%;
  border-collapse: collapse;
  background: #fffaf5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(255,163,108,0.15);
}
.product-list thead {
  background: linear-gradient(135deg, #ffa36c, #ff7b00);
  color: #fff;
}
.product-list th, .product-list td {
  padding: 10px 12px;
  text-align: center;
  vertical-align: middle;
}
.product-list tbody tr:nth-child(even) {
  background: #fff5ee;
}
.product-list tbody tr:hover {
  background: #fff0e6;
}

/* Ảnh sản phẩm nhỏ */
.thumb-img {
  max-width: 60px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(255,163,108,0.3);
}
.no-img {
  color: #aaa;
  font-style: italic;
}

/* Tên sản phẩm */
.prod-name {
  text-align: left;
  font-weight: 600;
  color: #444;
}

/* Nút thao tác */
.actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.actions form { display: inline; }
.btn-edit, .btn-delete {
  border: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: 0.25s;
}
.btn-edit {
  background: #fff1e6;
  color: #ff7b00;
  border: 1px solid #ffc193;
}
.btn-edit:hover {
  background: #ffdbb0;
}
.btn-delete {
  background: #ffe0e0;
  color: #d92b2b;
  border: 1px solid #ffb0b0;
}
.btn-delete:hover {
  background: #ffbcbc;
}
.no-items {
  background: #fff4e3;
  border-left: 4px solid #ffb36c;
  padding: 8px 12px;
  border-radius: 8px;
  color: #c26b00;
  font-size: 0.9rem;
  text-align: center;
}
/* ========== FORM SỬA SẢN PHẨM ========== */
.page-title {
  color: #ff7b00;
  font-weight: 700;
  margin-bottom: 16px;
}

.product-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.form-left, .form-right {
  flex: 1 1 300px;
}

.product-form label {
  font-weight: 600;
  color: #444;
  display: block;
  margin-bottom: 4px;
}
.product-form input[type="text"],
.product-form input[type="number"],
.product-form select,
.product-form textarea {
  width: 100%;
  border: 1px solid #ffd0a3;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.95rem;
  background: #fffaf5;
  transition: 0.2s;
}
.product-form input:focus,
.product-form textarea:focus,
.product-form select:focus {
  border-color: #ffa36c;
  box-shadow: 0 0 0 2px rgba(255,163,108,0.2);
}

/* Hình ảnh sản phẩm */
.product-images {
  margin-top: 12px;
}
.image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.image-item {
  border: 1px solid #ffd6b3;
  border-radius: 10px;
  padding: 8px;
  background: #fffaf5;
  box-shadow: 0 2px 6px rgba(255,163,108,0.15);
  text-align: center;
}
.image-item img {
  max-width: 120px;
  border-radius: 8px;
  margin-bottom: 6px;
}
.btn-delete-img {
  background: #ffe0e0;
  color: #d92b2b;
  border: 1px solid #ffb0b0;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: 0.25s;
}
.btn-delete-img:hover {
  background: #ffbcbc;
}

/* Nút chính */
.form-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-save {
  background: linear-gradient(135deg, #ffa36c, #ff7b00);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
  box-shadow: 0 4px 12px rgba(255,163,108,0.25);
}
.btn-save:hover {
  background: linear-gradient(135deg, #ff7b00, #ff5500);
  transform: translateY(-2px);
}
.btn-cancel {
  background: #fff4e3;
  color: #ff7b00;
  border-
/* ========== QUẢN LÝ DANH MỤC ========== */
.category-form {
  margin-bottom: 20px;
  background: #fffaf5;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(255,163,108,0.12);
}
.category-form label {
  font-weight: 600;
  color: #444;
  display: block;
  margin-bottom: 8px;
}
.category-input-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.category-input-group input[type="text"] {
  flex: 1;
  border: 1px solid #ffd0a3;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.95rem;
  background: #fff;
  transition: 0.2s;
}
.category-input-group input:focus {
  border-color: #ffa36c;
  box-shadow: 0 0 0 2px rgba(255,163,108,0.2);
}
.btn-add {
  background: linear-gradient(135deg, #ffa36c, #ff7b00);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255,163,108,0.25);
  transition: 0.25s;
}
.btn-add:hover {
  background: linear-gradient(135deg, #ff7b00, #ff5500);
  transform: translateY(-2px);
}

/* Bảng danh mục */
.category-table {
  width: 100%;
  border-collapse: collapse;
  background: #fffaf5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(255,163,108,0.15);
}
.category-table thead {
  background: linear-gradient(135deg, #ffa36c, #ff7b00);
  color: #fff;
}
.category-table th, .category-table td {
  padding: 10px 12px;
  text-align: center;
}
.category-table tbody tr:nth-child(even) {
  background: #fff5ee;
}
.category-table tbody tr:hover {
  background: #fff0e6;
}

/* Nút xóa */
.actions {
  display: flex;
  justify-content: center;
}
.btn-delete {
  background: #ffe0e0;
  color: #d92b2b;
  border: 1px solid #ffb0b0;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: 0.25s;
}
.btn-delete:hover {
  background: #ffbcbc;
}

.no-items {
  background: #fff4e3;
  border-left: 4px solid #ffb36c;
  padding: 8px 12px;
  border-radius: 8px;
  color: #c26b00;
  font-size: 0.9rem;
  text-align: center;
}
/* ========== QUẢN LÝ NHÂN VIÊN ========== */
.user-table {
  width: 100%;
  border-collapse: collapse;
  background: #fffaf5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(255,163,108,0.15);
}
.user-table thead {
  background: linear-gradient(135deg, #ffa36c, #ff7b00);
  color: #fff;
}
.user-table th, .user-table td {
  padding: 10px 12px;
  text-align: center;
  vertical-align: middle;
}
.user-table tbody tr:nth-child(even) { background: #fff5ee; }
.user-table tbody tr:hover { background: #fff0e6; }

/* Vai trò và trạng thái */
.badge-role, .badge-active, .badge-inactive {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: capitalize;
}
.badge-admin { background: #ffdca8; color: #b76b00; }
.badge-staff { background: #d6f8d6; color: #208d40; }
.badge-active { background: #eaffea; color: #2fa84f; border: 1px solid #c7f5c7; }
.badge-inactive { background: #ffe3e3; color: #d92b2b; border: 1px solid #ffc0c0; }

/* Nút thao tác */
.actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-toggle, .btn-delete {
  border: none;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: 0.25s;
}
.btn-toggle {
  background: #fff4e3;
  color: #ff7b00;
  border: 1px solid #ffd0a3;
}
.btn-toggle:hover { background: #ffe3c1; }
.btn-delete {
  background: #ffe0e0;
  color: #d92b2b;
  border: 1px solid #ffb0b0;
}
.btn-delete:hover { background: #ffbcbc; }

/* Nút thêm nhân viên */
.btn-add {
  background: linear-gradient(135

/* ========== QUẢN LÝ NHÂN VIÊN - CARD STYLE ========== */
.staff-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(255,163,108,0.12);
  padding: 24px;
}
.staff-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.staff-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ff7b00;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-orange {
  background: linear-gradient(135deg, #ffa36c, #ff7b00);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.25s;
  box-shadow: 0 4px 14px rgba(255,163,108,0.25);
}
.btn-orange:hover {
  background: linear-gradient(135deg, #ff7b00, #ff5500);
  transform: translateY(-2px);
}

/* GRID CÁC THẺ NHÂN VIÊN */
.staff-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

/* CARD */
.staff-card {
  background: #fffaf5;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(255,163,108,0.12);
  padding: 18px;
  transition: 0.25s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.staff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(255,123,0,0.18);
}
.staff-card.inactive {
  background: #fff3f3;
  opacity: 0.9;
}

/* AVATAR */
.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffa36c, #ff7b00);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 3px 8px rgba(255,123,0,0.25);
}
.staff-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.staff-info h3 {
  margin: 0;
  color: #333;
  font-size: 1.05rem;
  font-weight: 600;
}
.username {
  color: #888;
  font-size: 0.9rem;
  margin: 2px 0;
}

/* ROLE */
.badge-role {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: capitalize;
}
.badge-role.admin {
  background: #fff0d1;
  color: #b76b00;
}
.badge-role.staff {
  background: #eaffea;
  color: #2fa84f;
}

/* TRẠNG THÁI */
.staff-status {
  text-align: center;
}
.badge-active, .badge-inactive {
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}
.badge-active {
  background: #d8ffe3;
  color: #2fa84f;
}
.badge-inactive {
  background: #ffe3e3;
  color: #d92b2b;
}

/* HÀNH ĐỘNG */
.staff-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.staff-actions form { display: inline; }
.btn-toggle, .btn-delete {
  border: none;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.25s;
}
.btn-toggle {
  background: #fff4e3;
  color: #ff7b00;
  border: 1px solid #ffd0a3;
}
.btn-toggle:hover {
  background: #ffe0b2;
}
.btn-delete {
  background: #ffe0e0;
  color: #d92b2b;
  border: 1px solid #ffb0b0;
}
.btn-delete:hover {
  background: #ffbcbc;
}

/* KHÔNG CÓ USER */
.no-data {
  text-align: center;
  background: #fff4e3;
  border-left: 4px solid #ffb36c;
  padding: 10px;
  border-radius: 8px;
  color: #c26b00;
  font-size: 0.9rem;
}
/* ========== CHI TIẾT ĐƠN HÀNG ========== */
.order-detail {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(255,163,108,0.12);
  padding: 24px;
  margin-top: 20px;
}

/* Header */
.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.order-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #333;
}
.order-header span {
  color: #ff7b00;
  font-weight: 700;
}

/* BADGE TRẠNG THÁI */
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: capitalize;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}
.badge-new {
  background: #fff3cd;
  color: #a87b00;
}
.badge-process {
  background: #e3f2fd;
  color: #1e73be;
}
.badge-done {
  background: #d4edda;
  color: #2b7a2b;
}
.badge-cancel {
  background: #f8d7da;
  color: #a31b2b;
}

/* Thông tin khách hàng */
.order-info-vertical {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px 24px;
  background: #fffaf5;
  border: 1px solid #ffe4c6;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.order-info-vertical p {
  margin: 0;
  font-size: 0.95rem;
  color: #333;
}
.order-info-vertical strong {
  color: #ff7b00;
}

/* BẢNG */
.order-items {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 10px;
  box-shadow: 0 3px 10px rgba(255,163,108,0.1);
}
.order-items thead {
  background: linear-gradient(135deg, #ffa36c, #ff7b00);
  color: #fff;
}
.order-items th, .order-items td {
  padding: 10px 12px;
  text-align: left;
  font-size: 0.95rem;
  vertical-align: middle;
}
.order-items tbody tr:nth-child(even) {
  background: #fffaf5;
}
.order-items tbody tr:hover {
  background: #fff3e8;
}
.order-items img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 8px;
  margin-right: 8px;
  vertical-align: middle;
}

/* Tổng cộng */
.order-total {
  text-align: right;
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 10px;
  color: #333;
}
.order-total span {
  color: #ff7b00;
}

/* Form cập nhật */
.update-status-form {
  background: #fffaf5;
  border: 1px solid #ffd6b3;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(255,163,108,0.08);
  margin-top: 10px;
}
.update-status-form h4 {
  margin-bottom: 10px;
  color: #ff7b00;
}
.status-flex {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.select-status {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ffd0a3;
  background: #fff;
}
.btn-save {
  background: linear-gradient(135deg, #ffa36c, #ff7b00);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
  box-shadow: 0 4px 12px rgba(255,163,108,0.25);
}
.btn-save:hover {
  background: linear-gradient(135deg, #ff7b00, #ff5500);
  transform: translateY(-1px);
}
.update-status-form textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #ffd0a3;
  padding: 8px 10px;
  font-size: 0.95rem;
  resize: vertical;
  transition: 0.2s;
}
.update-status-form textarea:focus {
  border-color: #ffa36c;
  box-shadow: 0 0 0 2px rgba(255,163,108,0.2);
}

/* Không có dữ liệu */
.no-items {
  background: #fff4e3;
  border-left: 4px solid #ffb36c;
  padding: 8px 12px;
  border-radius: 8px;
  color: #c26b00;
  font-size: 0.9rem;
  text-align: center;
}
 /* ========== CHI TIẾT SẢN PHẨM ========== */
.product-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 24px auto;
  align-items: flex-start;
}
.detail-image {
  flex: 1 1 360px;
  text-align: center;
}
.product-image-large {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(255,163,108,0.25);
}
.thumb-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
.thumb-small {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.25s;
  border: 1px solid #ffe4d6;
}
.thumb-small:hover {
  transform: scale(1.05);
  border-color: #ffa36c;
  box-shadow: 0 0 6px rgba(255,163,108,0.35);
}
.detail-info {
  flex: 1 1 400px;
}

/* ========== FORM ĐẶT HÀNG ========== */
.order-form-box {
  background: #fffaf5;
  border: 1px solid #ffe3c1;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 3px 10px rgba(255,163,108,0.1);
  margin-top: 14px;
}
.order-form input,
.order-form textarea {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #ffd0a3;
  padding: 8px;
  font-size: 0.95rem;
}
.order-form label {
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
}

/* ========== MÔ TẢ SẢN PHẨM ========== */
.product-description {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #ffe3c1;
  padding: 20px 22px;
  margin: 24px 0;
  line-height: 1.9;
  font-size: 1rem;
  color: #333;
  box-shadow: 0 2px 10px rgba(255, 163, 108, 0.12);
}
.product-description h4 {
  color: #ff7b00;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 12px 0 8px;
}
.product-description p {
  margin-bottom: 10px;
  text-align: justify;
}
.product-description ul {
  padding-left: 22px;
  margin: 10px 0;
}
.product-description li {
  margin-bottom: 6px;
  list-style-type: "• ";
}
.desc-content {
  white-space: pre-wrap;
  line-height: 1.9;
  text-align: justify;
  font-size: 1rem;
}

/* Responsive mobile */
@media (max-width: 768px) {
  .product-detail {
    flex-direction: column;
  }
  .detail-image, .detail-info {
    width: 100%;
  }
  .product-description {
    padding: 16px;
    font-size: 0.95rem;
    line-height: 1.8;
  }
  .product-description h4 {
    font-size: 1.05rem;
  }
}
.address-group select,
.address-group input {
  width: 100%;
  margin: 6px 0;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
}

.address-group label {
  font-weight: 600;
  color: #444;
  display: block;
  margin-bottom: 4px;
}
/* ========== DANH SÁCH SẢN PHẨM ========== */
.page-title {
  text-align: center;
  margin-bottom: 16px;
  color: #ff6a00;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}
.search-form input,
.search-form select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 0.95rem;
  outline: none;
}
.search-form input:focus,
.search-form select:focus {
  border-color: #ff7b00;
  box-shadow: 0 0 4px rgba(255, 123, 0, 0.4);
}
.search-form button {
  background: linear-gradient(135deg, #ffa36c, #ff6fb5);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s;
}
.search-form button:hover {
  transform: scale(1.05);
}

/* ========== GRID SẢN PHẨM ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.product-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(255, 123, 0, 0.15);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(255, 123, 0, 0.25);
}
.img-box {
  width: 100%;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff8f2;
}
.img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: 0.3s;
}
.product-card:hover img {
  transform: scale(1.05);
}
.info {
  padding: 12px 14px;
  text-align: center;
}
.info h3 a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
}
.info h3 a:hover {
  color: #ff6a00;
}
.category {
  color: #888;
  font-size: 0.85rem;
}
.price {
  color: #ff6a00;
  font-weight: 700;
  font-size: 1rem;
  margin: 6px 0;
}
.package {
  font-size: 0.9rem;
  color: #666;
}
.short-desc {
  font-size: 0.85rem;
  color: #666;
  margin-top: 4px;
}
.empty {
  text-align: center;
  color: #888;
}

/* ========== PHÂN TRANG ========== */
.pagination {
  text-align: center;
  margin-top: 20px;
}
.pagination a {
  background: linear-gradient(135deg, #ff6a00, #ff6fb5);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  margin: 0 4px;
  transition: 0.3s;
}
.pagination a:hover {
  transform: scale(1.05);
}
.pagination span {
  margin: 0 6px;
  color: #555;
}
/* ========== SECTION CHÍNH ========== */
.product-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 10px 50px;
}
.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #ff7b00;
  margin-bottom: 24px;
}

/* ========== TÌM KIẾM ========== */
.search-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}
.search-bar input,
.search-bar select {
  padding: 10px 14px;
  border-radius: 25px;
  border: 1px solid #ffd0a0;
  outline: none;
  font-size: 0.95rem;
  background-color: #fffdfc;
  min-width: 180px;
}
.search-bar input:focus,
.search-bar select:focus {
  border-color: #ff6a00;
  box-shadow: 0 0 6px rgba(255, 107, 0, 0.3);
}
.search-bar button {
  background: linear-gradient(135deg, #ffa36c, #ff6fb5);
  border: none;
  border-radius: 25px;
  color: white;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}
.search-bar button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(255, 123, 0, 0.3);
}

/* ========== GRID SẢN PHẨM ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.product-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(255, 123, 0, 0.15);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 22px rgba(255, 107, 0, 0.25);
}
.image-wrap {
  background: linear-gradient(135deg, #fff8f2, #fff0f9);
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1 / 1;
}
.image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s;
}
.product-card:hover img {
  transform: scale(1.07);
}
.info {
  text-align: center;
  padding: 14px;
}
.name a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 1rem;
}
.name a:hover {
  color: #ff6a00;
}
.category {
  color: #888;
  font-size: 0.85rem;
  margin: 4px 0;
}
.price {
  font-weight: 700;
  color: #ff6a00;
  font-size: 1.1rem;
  margin: 6px 0;
}
.package {
  font-size: 0.9rem;
  color: #777;
}

/* ========== NÚT XEM CHI TIẾT ========== */
.btn-detail {
  display: inline-block;
  margin-top: 10px;
  background: linear-gradient(135deg, #ff9a6a, #ff6fb5);
  color: #fff;
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}
.btn-detail:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(255, 107, 0, 0.3);
}

/* ========== PHÂN TRANG ========== */
.pagination {
  text-align: center;
  margin-top: 28px;
}
.pagination a {
  background: linear-gradient(135deg, #ff7b00, #ff6fb5);
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  text-decoration: none;
  margin: 0 5px;
  transition: 0.3s;
}
.pagination a:hover {
  transform: scale(1.1);
}
.pagination span {
  color: #555;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
  .section-title {
    font-size: 1.4rem;
  }
  .search-bar input, .search-bar select {
    flex: 1;
    min-width: 130px;
  }
}


/* ========== SHOP ========== */
.shop-container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 40px 15px;
}
.shop-title {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 700;
  color: #ff7b00;
  margin-bottom: 30px;
}

/* ========== FILTER BAR ========== */
.filter-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}
.filter-group {
  display: flex;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid transparent;
  border-radius: 40px;
  padding: 8px;
  gap: 8px;
  backdrop-filter: blur(5px);
  background-image: linear-gradient(white, white),
                    linear-gradient(135deg, #ffa36c, #ff6fb5);
  background-origin: border-box;
  background-clip: content-box, border-box;
}
.filter-group input,
.filter-group select {
  border: none;
  outline: none;
  padding: 10px 16px;
  border-radius: 30px;
  font-size: 0.95rem;
  background-color: transparent;
}
.filter-group button {
  background: linear-gradient(135deg, #ffa36c, #ff6fb5);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}
.filter-group button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(255, 123, 0, 0.3);
}

/* ========== GRID SẢN PHẨM ========== */
.product-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
}
.product-item {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(255, 123, 0, 0.15);
  transition: all 0.35s ease;
  position: relative;
}
.product-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 25px rgba(255, 107, 0, 0.25);
}

/* ========== ẢNH ========== */
.product-image {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff8f2, #fff0f9);
  aspect-ratio: 1/1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}
.product-item:hover img {
  transform: scale(1.08);
}

/* ========== OVERLAY NÚT MUA ========== */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,163,108,0.1), rgba(255,111,181,0.15));
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  justify-content: center;
  align-items: center;
}
.product-item:hover .overlay {
  opacity: 1;
}
.btn-buy {
  background: linear-gradient(135deg, #ffa36c, #ff6fb5);
  color: white;
  padding: 10px 22px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.25);
  transition: transform 0.3s;
}
.btn-buy:hover {
  transform: scale(1.08);
}

/* ========== THÔNG TIN ========== */
.product-info {
  padding: 14px 16px 20px;
  text-align: center;
}
.pname a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
}
.pname a:hover {
  color: #ff6a00;
}
.category {
  font-size: 0.85rem;
  color: #888;
}
.price {
  font-weight: 700;
  color: #ff6a00;
  font-size: 1.1rem;
  margin-top: 6px;
}

/* ========== PHÂN TRANG ========== */
.pagination {
  text-align: center;
  margin-top: 40px;
}
.pagination a {
  background: linear-gradient(135deg, #ff7b00, #ff6fb5);
  color: #fff;
  padding: 8px 18px;
  border-radius: 25px;
  text-decoration: none;
  margin: 0 5px;
  transition: 0.3s;
}
.pagination a:hover {
  transform: scale(1.1);
}
.pagination span {
  color: #555;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
  .shop-title {
    font-size: 1.5rem;
  }
  .filter-group {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-group input,
  .filter-group select,
  .filter-group button {
    width: 100%;
  }
}
.btn-cart {
  background: linear-gradient(135deg, #ff9a6a, #ff6fb5);
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 8px 14px;
  font-size: 0.9rem;
  margin-top: 8px;
  cursor: pointer;
  transition: 0.3s;
}
.btn-cart:hover {
  transform: scale(1.05);
}

/* ===== Giỏ hàng ===== */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.cart-table th, .cart-table td {
  border-bottom: 1px solid #eee;
  padding: 8px;
  text-align: center;
}
.cart-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.remove-btn {
  background: none;
  border: none;
  color: #ff6a00;
  font-size: 1.1rem;
  cursor: pointer;
}
.cart-summary {
  margin-top: 20px;
  text-align: right;
}
.cart-summary span {
  color: #ff6a00;
  font-weight: 700;
  font-size: 1.2rem;
}
.checkout-btn {
  background: linear-gradient(135deg, #ffa36c, #ff6fb5);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 10px 20px;
  margin-top: 10px;
  cursor: pointer;
  transition: 0.3s;
}
.checkout-btn:hover {
  transform: scale(1.05);
}
.btn-cart {
  background: linear-gradient(135deg, #ff9a6a, #ff6fb5);
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 8px 14px;
  font-size: 0.9rem;
  margin-top: 10px;
  cursor: pointer;
  transition: 0.3s;
}
.btn-cart:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 10px rgba(255, 107, 0, 0.3);
}

/* Cho overlay hiển thị 2 nút đẹp */
.overlay {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,163,108,0.15), rgba(255,111,181,0.15));
  opacity: 0;
  transition: opacity 0.4s;
}
.product-item:hover .overlay {
  opacity: 1;
}

/* ===== GIỎ HÀNG ===== */
.cart-container {
  text-align:center;
  margin-top:20px;
}
.cart-table {
  width:100%;
  border-collapse:collapse;
  margin:20px auto;
}
.cart-table th, .cart-table td {
  border:1px solid #ffd2b0;
  padding:8px;
  text-align:center;
}
.cart-thumb {
  width:60px;
  height:60px;
  object-fit:contain;
}
.cart-summary {
  margin-top:20px;
}
.btn-remove {
  background:#ff6a00;
  color:#fff;
  border:none;
  border-radius:6px;
  padding:6px 10px;
  cursor:pointer;
}

/* ===== TOAST THÔNG BÁO ===== */
.toast-msg {
  position:fixed;
  bottom:30px;
  right:-300px;
  background:linear-gradient(135deg,#ffa36c,#ff6fb5);
  color:#fff;
  padding:12px 18px;
  border-radius:8px;
  font-weight:500;
  box-shadow:0 4px 14px rgba(255,123,0,0.3);
  opacity:0;
  transition:all 0.4s ease;
  z-index:9999;
}
.toast-msg.show {
  right:30px;
  opacity:1;
}


/* =====================================================
   FIX GIAO DIỆN MOBILE – PRODUCT DETAIL
===================================================== */
@media (max-width: 600px) {

  /* ===== HEADER GỌN LẠI ===== */
  .site-header {
    padding: 4px 0;
  }

  .header-inner {
    flex-direction: column;
    gap: 4px;
  }

  .logo a {
    font-size: 1rem;
    font-weight: 700;
  }

  .nav {
    gap: 4px;
  }

  .nav a {
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 8px;
  }

  /* ===== KHUNG SẢN PHẨM ===== */
  .product-detail {
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    margin: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
  }

  /* ===== ẢNH CHÍNH ===== */
  .product-image-large {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: none;
  }

  /* ===== THUMBNAIL DẠNG LƯỚT ===== */
  .thumb-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 0;
  }

  .thumb-small {
    min-width: 64px;
    height: 64px;
    border-radius: 8px;
  }

  /* ===== THÔNG TIN SẢN PHẨM ===== */
  .detail-info h2 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-top: 10px;
  }

  .price {
    font-size: 1.45rem;
    font-weight: 800;
    color: #ff6a00;
    margin: 8px 0;
  }

  /* ===== BỎ EMOJI CHO GỌN ===== */
  .detail-info p {
    font-size: 0.9rem;
    color: #444;
  }

  /* ===== NÚT ĐẶT HÀNG DÍNH ĐÁY ===== */
  .order-form-box {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 14px 14px 0 0;
    padding: 12px;
    z-index: 9999;
    box-shadow: 0 -4px 16px rgba(0,0,0,.18);
  }

  .order-form button {
    width: 100%;
    font-size: 1rem;
    padding: 14px;
    border-radius: 30px;
  }

  /* ===== CHỪA CHỖ TRÁNH CHE NỘI DUNG ===== */
  body {
    padding-bottom: 90px;
  }
}


/* =====================================================
   FIX MOBILE PRODUCT DETAIL – FINAL
===================================================== */
@media (max-width: 600px) {

  /* 1. HEADER MỎNG – KHÔNG TRANH SP */
  .site-header {
    padding: 2px 0;
  }

  .header-inner {
    justify-content: center;
  }

  .nav {
    display: none;
  }

  .logo a {
    font-size: 0.95rem;
    font-weight: 700;
  }

  /* 2. ẢNH FULL NGANG */
  .product-detail {
    margin: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .detail-left {
    width: 100%;
  }

  .product-image-large {
    width: 100%;
    border-radius: 0;
    object-fit: cover;
  }

  /* 3. THUMBNAIL LƯỚT */
  .thumb-list {
    overflow-x: auto;
    justify-content: flex-start;
    padding: 8px;
  }

  .thumb-small {
    min-width: 64px;
    height: 64px;
  }

  /* 4. GIÁ ĐẬP VÀO MẮT */
  .product-meta .price {
    font-size: 1.6rem;
    font-weight: 900;
    color: #ff4d00;
  }

  /* 5. CTA DUY NHẤT – DÍNH ĐÁY */
  .btn-order-now {
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 16px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 14px;
    background: linear-gradient(135deg,#ff7b00,#ff4d00);
    z-index: 9999;
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
  }

  body {
    padding-bottom: 90px;
  }
}

