/* Giỏ hàng decal24h (phần 2). Mọi lớp bắt đầu bằng gh- để không đụng CSS chung.
   Màu lấy theo biến của style.css (phần 1): vàng làm màu chính, chữ đen trên nền vàng. */
:root {
  --gh-chinh: var(--vang, #fdd835);
  --gh-chinh-dam: var(--vang-dam, #f5d602);
  --gh-tren-chinh: var(--den, #101009);
  --gh-chu: var(--chu, #3a445e);
  --gh-nhat: var(--chu-nhat, #666);
  --gh-vien: var(--vien, #e6e6e6);
  --gh-nen-nhe: var(--nen, #f6f6f6);
  --gh-do: var(--do, #f3283d);
}

/* ---- nút chung ---- */
.gh-nut {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px; border-radius: 8px; border: 2px solid var(--gh-chinh);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center;
}
.gh-nut-chinh { background: var(--gh-chinh); color: var(--gh-tren-chinh); }
.gh-nut-chinh:hover { background: var(--gh-chinh-dam); border-color: var(--gh-chinh-dam); }
.gh-nut-phu { background: #fff; color: var(--gh-tren-chinh); }
.gh-nut-phu:hover { background: var(--gh-nen-nhe); }
.gh-nut:disabled { opacity: .45; cursor: not-allowed; }
.gh-nut-to { width: 100%; min-height: 52px; font-size: 1.1em; }
.gh-hang-nut { display: flex; gap: 10px; flex-wrap: wrap; }
.gh-hang-nut > .gh-nut { flex: 1 1 140px; }
.gh-giua { justify-content: center; }

.so-gio.gh-co-hang { background: var(--gh-do); color: #fff; border-radius: 999px; padding: 0 6px; min-width: 1.4em; display: inline-block; text-align: center; }

/* ---- khu mua ở trang SP ---- */
.gh-khu-mua { display: grid; gap: 14px; margin: 16px 0; }
.gh-gia { display: flex; align-items: baseline; gap: 10px; }
.gh-gia-ban { font-size: 1.7em; font-weight: 800; color: var(--gh-do); }
.gh-gia-goc { color: var(--gh-nhat); }
.gh-nhan { margin-bottom: 6px; color: var(--gh-nhat); }
.gh-nhan b { color: inherit; }
.gh-cac-nut { display: flex; flex-wrap: wrap; gap: 8px; }
.gh-chip {
  min-height: 40px; padding: 6px 14px; border: 1px solid var(--gh-vien); border-radius: 8px;
  background: #fff; color: var(--gh-chu); font: inherit; cursor: pointer;
}
.gh-chip:hover { border-color: var(--gh-tren-chinh); }
.gh-chip.gh-dang-chon { border: 2px solid var(--gh-tren-chinh); padding: 5px 13px; background: var(--gh-nen-nhe); font-weight: 700; }
.gh-chip.gh-het { color: #aaa; text-decoration: line-through; }
.gh-dong-sl { display: flex; align-items: center; gap: 12px; }
.gh-dong-sl .gh-nhan { margin: 0; }
.gh-bao-het:empty { display: none; }
.gh-bao-het { color: var(--gh-do); font-weight: 600; }

.gh-so-luong { display: inline-flex; border: 1px solid var(--gh-vien); border-radius: 8px; overflow: hidden; }
.gh-so-luong button { width: 40px; height: 40px; border: 0; background: var(--gh-nen-nhe); font-size: 1.2em; cursor: pointer; color: var(--gh-chu); }
.gh-so-luong input { width: 52px; height: 40px; border: 0; text-align: center; font: inherit; -moz-appearance: textfield; appearance: textfield; }
.gh-so-luong input::-webkit-outer-spin-button, .gh-so-luong input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.gh-bao-nhanh {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 9999;
  display: flex; gap: 14px; align-items: center; max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 10px; background: #222; color: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.25);
  transition: opacity .4s;
}
.gh-bao-nhanh a { color: var(--gh-chinh); font-weight: 700; white-space: nowrap; }
.gh-bao-nhanh.gh-an-di { opacity: 0; }

/* ---- trang giỏ ---- */
.gh-trang { max-width: 1100px; margin: 0 auto; padding: 16px; }
.gh-trang h1 { margin: 8px 0 16px; }
.gh-gio-rong { text-align: center; padding: 40px 0; }
.gh-khu-dat { display: grid; gap: 24px; }
@media (min-width: 860px) { .gh-khu-dat { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.gh-ds-mon { list-style: none; margin: 0; padding: 0; }
.gh-mon { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--gh-vien); }
.gh-mon-anh img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--gh-nen-nhe); display: block; }
.gh-mon-ten { color: inherit; font-weight: 600; text-decoration: none; }
.gh-mon-bt, .gh-mon-gia { color: var(--gh-nhat); font-size: .92em; margin-top: 2px; }
.gh-mon-duoi { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.gh-mon-duoi .gh-so-luong button, .gh-mon-duoi .gh-so-luong input { height: 34px; }
.gh-xoa { border: 0; background: none; color: var(--gh-do); cursor: pointer; font: inherit; text-decoration: underline; padding: 6px 0; }
.gh-mon-tien { font-weight: 700; white-space: nowrap; }
@media (max-width: 480px) {
  .gh-mon { grid-template-columns: 64px 1fr; }
  .gh-mon-anh img { width: 64px; height: 64px; }
  .gh-mon-tien { grid-column: 2; }
}
.gh-tong-ket { margin: 14px 0 0; }
.gh-tong-ket > div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
.gh-tong-ket dt { color: var(--gh-nhat); white-space: nowrap; }
.gh-tong-ket dd { margin: 0; text-align: right; }
#gh-tong { font-size: 1.35em; font-weight: 800; color: var(--gh-do); }
.gh-ghi-nho { color: var(--gh-nhat); font-size: .9em; }

.gh-cot-form { color: var(--gh-chu); background: var(--gh-nen-nhe); border-radius: 12px; padding: 16px; }
.gh-cot-form h2 { margin: 0 0 12px; font-size: 1.2em; }
.gh-form { display: grid; gap: 12px; }
.gh-form label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; font-weight: 600; }
.gh-form label > input:not([type=radio]), .gh-form label > textarea { flex: 1 1 100%; }
.gh-form input:not([type=radio]), .gh-form textarea {
  width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--gh-vien); border-radius: 8px; font: inherit; font-weight: 400; background: #fff;
}
.gh-form input:focus, .gh-form textarea:focus { outline: 2px solid var(--gh-chinh-dam); border-color: var(--gh-tren-chinh); }
.gh-hai-cot { display: grid; gap: 12px; }
@media (min-width: 520px) { .gh-hai-cot { grid-template-columns: 1fr 1fr; } }
.gh-bat-buoc { color: var(--gh-do); }
.gh-thanh-toan { border: 1px solid var(--gh-vien); border-radius: 8px; padding: 10px 12px; margin: 0; background: #fff; }
.gh-thanh-toan legend { font-weight: 700; padding: 0 4px; }
.gh-form .gh-chon { display: flex; flex-wrap: nowrap; gap: 8px; align-items: flex-start; font-weight: 400; padding: 6px 0; }
.gh-chon input { margin-top: 4px; }
.gh-bay { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gh-loi { background: #fdecea; color: var(--gh-do); border-radius: 8px; padding: 10px 12px; margin: 0; font-weight: 600; }

/* ---- trang cảm ơn ---- */
.gh-cam-on { max-width: 640px; text-align: center; padding-top: 32px; }
.gh-dau-tich { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: var(--gh-chinh); color: var(--gh-tren-chinh); font-size: 36px; line-height: 64px; }
.gh-ma-don { font-size: 1.2em; letter-spacing: .5px; color: var(--gh-tren-chinh); }
