/* ===========================================================
   Hệ màu / font lấy theo sketchnote.trammb.com
   =========================================================== */
:root {
  --ink: #1F3A68;
  --ink-deep: #13284C;
  --ink-soft: #546480;
  --sky: #A8C0DE;
  --sky-soft: #E0E9F4;
  --paper: #F4F4F1;
  --paper-2: #FAFAF8;
  --white: #FFFFFF;
  --line: #DFDFD8;
  --danger: #A23B3B;
  --danger-bg: #FBEDEA;
  /* Màu báo việc đã xong: dấu tích trên file khách vừa chọn */
  --ok: #2F7A4F;

  --font-display: "Quicksand", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --font-body: "Mulish", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --r-md: 16px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 9999px;
  --shadow: 0 12px 34px rgba(31, 58, 104, .10);
  --shadow-sm: 0 6px 20px rgba(31, 58, 104, .06);
  --wrap: 1040px;
}

* { box-sizing: border-box; }

/*
  Thẻ có thuộc tính hidden phải biến mất thật. Nhiều chỗ bên dưới đặt
  display: grid / flex, mà mấy dòng đó đè mất nết ẩn mặc định của trình
  duyệt, làm khối đáng lẽ ẩn vẫn hiện ra.
*/
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
}

img { max-width: 100%; display: block; }
a { color: var(--ink); }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2rem, 680px); margin-inline: auto; }
.center { text-align: center; }

/* ---------- Chữ ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.22;
  letter-spacing: -.01em;
  margin: 0 0 .35em;
}
h1.display { font-size: clamp(1.95rem, 7vw, 3.05rem); }
h2.display { font-size: clamp(1.5rem, 5.2vw, 2.15rem); }
h3 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0 0 .4em;
  line-height: 1.35;
}
.lead { font-size: 1.05rem; max-width: 56ch; }
.center .lead, .lead.center { margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: .7rem;
}

.section { padding: 3.5rem 0; }
/* chừa chỗ cho header dính khi nhảy tới neo #dat-in / #cach-lam */
[id] { scroll-margin-top: 4.5rem; }
.section--tight { padding: 2.2rem 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(244, 244, 241, .96);
  backdrop-filter: saturate(180%) blur(8px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: .8rem 0;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: .3rem 1.1rem;
}
.nav-links a {
  display: block;
  padding: .3rem .1rem;
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: .05rem;
  height: 2px;
  background: var(--ink);
  transition: right .2s;
}
.nav-links a:hover::after,
.nav-links a.is-active::after { right: 0; }

/* ---------- Nút ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 1em 2em;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  border-radius: 12px;
  transition: background .18s, color .18s, border-color .18s;
}
.btn:hover, .btn:focus-visible { background: var(--ink-deep); border-color: var(--ink-deep); }
.btn--sky { background: var(--sky); border-color: var(--sky); color: var(--ink); }
.btn--sky:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Nút gửi kiêm thanh tiến độ khi đang tải file lên */
.btn--progress, .btn--progress[disabled] { position: relative; overflow: hidden; opacity: 1; cursor: progress; }
.btn--progress::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: var(--pc, 0%);
  background: var(--sky);
  opacity: .45;
  transition: width .25s linear;
}
.btn--progress .btn-label { position: relative; z-index: 1; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: center;
  margin-top: 1.6rem;
}
/* nowrap + đáy rộng hơn: hai nút xuống dòng thay vì gãy chữ giữa nút */
.actions .btn { flex: 1 1 240px; max-width: 300px; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { padding: 2.5rem 0 0; text-align: center; }
.hero .lead { margin-inline: auto; }
.hero-badge { margin-top: 1.8rem; font-size: .88rem; }
.hero-badge b { font-size: 1.1rem; font-weight: 900; color: var(--ink); }

/* ---------- Card ---------- */
.card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.3rem;
  box-shadow: var(--shadow-sm);
}
.grid { display: grid; gap: 1.1rem; }
.grid--2 { grid-template-columns: 1fr; }

.card--feature {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  transition: transform .2s, box-shadow .2s;
}
.card--feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card--feature svg { width: 52px; height: 52px; margin-bottom: .9rem; color: var(--ink); }
.card--feature p { flex: 1; font-size: .92rem; margin: 0; }

/* ---------- Dải màu đậm ---------- */
.band { background: var(--ink); padding: 2.5rem 0; }
.band .display, .band h3 { color: #fff; }
.band-caption {
  text-align: center;
  color: rgba(255, 255, 255, .88);
  margin: 1.6rem auto 0;
  max-width: 56ch;
}
.band-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .9rem;
}
.band-list li {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--r-md);
  padding: 1rem 1.2rem;
  color: rgba(255, 255, 255, .88);
  font-size: .95rem;
}
.band-list b { color: #fff; display: block; font-weight: 800; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.gallery-grid figure {
  margin: 0;
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.gallery-grid figure:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-grid .ph {
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(135deg, var(--paper-2) 0 10px, var(--paper) 10px 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sky);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  padding: .5rem;
}
.gallery-grid figcaption {
  padding: .6rem .9rem .9rem;
  font-size: .82rem;
  text-align: center;
}

/* ---------- Tag pill ---------- */
.tag-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
}
.tag-list li {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1.5px solid var(--sky);
  border-radius: var(--r-pill);
  padding: .4em 1em;
}

/* ---------- Form ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.2rem;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.6rem; }
.field:last-of-type { margin-bottom: 1.2rem; }
.lbl {
  display: block;
  font-weight: 800;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: .35rem;
}
.lbl .opt { font-weight: 600; letter-spacing: .04em; text-transform: none; color: var(--ink-soft); }
.hint { font-size: .88rem; color: var(--ink-soft); margin: 0 0 .75rem; }

.radio-group { display: grid; gap: .6rem; }
.radio {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  border: 1.5px solid var(--line);
  background: var(--paper-2);
  border-radius: var(--r-md);
  padding: .9rem 1rem;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.radio input { margin: .2rem 0 0; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.radio:has(input:checked) { border-color: var(--ink); background: var(--sky-soft); }
.radio strong { display: block; color: var(--ink); font-weight: 800; font-size: .97rem; }
.radio small { font-size: .86rem; }

input[type="text"], input[type="tel"], input[type="password"],
input[type="number"], input[type="email"], select, textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px; /* >=16px để iOS không tự zoom */
  color: var(--ink);
  background: var(--paper-2);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: .85rem 1rem;
}
input::placeholder, textarea::placeholder { color: #98A2B0; }
textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
select { cursor: pointer; appearance: none; background-image: none; }
input:focus, textarea:focus, select:focus, .file-drop:focus-within {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--sky-soft);
}

.file-drop {
  position: relative;
  border: 2px dashed var(--sky);
  border-radius: var(--r-md);
  background: var(--paper-2);
  padding: 1.6rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.file-drop input[type="file"] {
  position: absolute; inset: 0;
  opacity: 0; width: 100%; height: 100%;
  cursor: pointer;
}
.file-drop svg { width: 30px; height: 30px; margin: 0 auto .4rem; color: var(--ink); }
.file-drop b {
  display: block;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.file-drop span { font-size: .86rem; }
.file-drop.dragging { border-color: var(--ink); background: var(--sky-soft); }

/* Đã chọn được file: ô đổi hẳn diện mạo cho khách thấy rõ là đã nhận.
   Trước đây chọn xong ô này vẫn y như lúc chưa chọn. */
.file-drop.co-file {
  border-style: solid;
  border-color: var(--ink);
  background: var(--sky-soft);
  padding: 1.1rem 1rem;
}
.file-drop.co-file svg { color: var(--ok, #2F7A4F); }

/* minmax(0, 1fr): ô của lưới mặc định không chịu hẹp hơn nội dung bên
   trong, nên tên file dài làm cả thẻ phình ra khỏi khung. */
.file-list { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .45rem; }
.file-list li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .7rem;
  font-size: .87rem;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--sky-soft);
  border-radius: var(--r-md, 18px);
  padding: .6rem .7rem .6rem .9rem;
}

/* Dấu tích: thứ nói với khách rằng file này đã nằm trong đơn rồi */
.fi-tick {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: var(--ok, #2F7A4F);
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  line-height: 1;
}
.fi-giua {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .7rem;
}
.fi-xoa {
  flex: none;
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  width: 1.7rem;
  height: 1.7rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.fi-xoa:hover { background: var(--line); color: var(--ink); }
/* flex:1 và min-width:0 để tên file dài co lại thành dấu ba chấm.
   Thiếu min-width:0 thì ô flex không chịu hẹp hơn nội dung, và tên dài
   đẩy dung lượng với nút bỏ file ra khỏi màn hình điện thoại. */
.file-list .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .sz { flex: none; font-size: .8rem; opacity: .75; }

.notice {
  background: var(--sky-soft);
  border-radius: var(--r-md);
  padding: 1rem 1.2rem;
  font-size: .92rem;
  margin-bottom: 1.3rem;
}
.notice b {
  display: block;
  color: var(--ink);
  font-weight: 800;
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .25rem;
}

.form-error {
  display: none;
  background: var(--danger-bg);
  border: 1.5px solid #E8C4BC;
  color: var(--danger);
  border-radius: var(--r-md);
  padding: .9rem 1.1rem;
  font-size: .92rem;
  margin-bottom: 1rem;
}
.form-error.show { display: block; }

/* ---------- Khối ước tính giá tự động ---------- */
.quote {
  margin-top: .9rem;
  background: var(--sky-soft);
  border-radius: var(--r-md);
  padding: 1rem 1.1rem;
}
.quote-loading { font-size: .9rem; color: var(--ink-soft); }

.quote-head { text-align: center; padding-bottom: .9rem; }
.quote-tag {
  display: inline-block;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: .3rem;
}
.quote-head strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}
.quote-head small { display: block; font-size: .86rem; color: var(--ink-soft); margin-top: .15rem; }

/* Ô số lượng */
.sl-hang {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem .8rem;
  margin: .9rem 0 .2rem;
}
.sl-lbl { font-weight: 800; font-size: .92rem; }
.sl-dieu {
  display: flex;
  align-items: center;
  border: 2px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
}
.sl-nut {
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: .45rem .8rem;
  cursor: pointer;
}
.sl-nut:hover { background: var(--sky-soft); }
.sl-dieu input {
  width: 3.4rem;
  border: 0;
  text-align: center;
  font: inherit;
  font-weight: 800;
  padding: .45rem .2rem;
  background: transparent;
  /* bỏ mũi tên tăng giảm mặc định, đã có hai nút hai bên rồi */
  -moz-appearance: textfield;
  appearance: textfield;
}
.sl-dieu input::-webkit-outer-spin-button,
.sl-dieu input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sl-ghi { font-size: .82rem; color: var(--ink-soft); flex: 1 1 14rem; }

/* Gửi bằng đường dẫn thay cho tải file lên.
   Trước đây đây chỉ là một dòng chữ nhỏ, nhìn không ra là bấm được nên gần
   như không ai mở. Nay là một tấm thẻ có viền, có icon và mũi tên xoay. */
.link-file {
  margin-top: .9rem;
  border: 2px dashed var(--line);
  border-radius: var(--r-lg, 14px);
  background: var(--white);
  transition: border-color .15s, background .15s;
}
.link-file:hover { border-color: var(--sky); }
.link-file[open] { border-style: solid; border-color: var(--ink); }

.link-file > summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  list-style: none;
}
.link-file > summary::-webkit-details-marker { display: none; }

.lf-icon {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  flex: none;
  border-radius: 50%;
  background: var(--sky-soft);
  color: var(--ink);
}
.lf-icon svg { width: 1.1rem; height: 1.1rem; }
.lf-chu { flex: 1; min-width: 0; }
.lf-chu b { display: block; font-size: .92rem; color: var(--ink); }
.lf-chu small { display: block; font-size: .8rem; color: var(--ink-soft); margin-top: .1rem; }
.lf-mui {
  flex: none;
  color: var(--ink-soft);
  transition: transform .2s;
}
.link-file[open] .lf-mui { transform: rotate(180deg); }

.link-file-body { padding: 0 1rem 1rem; }
.link-file-body input {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: .6rem .8rem;
  font: inherit;
  background: var(--white);
}
.link-file-body input:focus { outline: none; border-color: var(--ink); }
#linkNote { margin-top: .5rem; }

/* Nhãn nhỏ phía trên mỗi nhóm nút chọn (mức giao / loại nhựa), để khách
   biết đang chọn cái gì chứ không phải chỉ thấy một dãy nút trơ trọi. */
.quote-group-label {
  display: block;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 .35rem;
}

/* Ba mức giao hàng: khách bấm chọn, giá bên dưới đổi theo */
.quote-speeds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .4rem;
  margin-bottom: .6rem;
}
.quote-speed {
  font: inherit;
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: .6rem .5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.quote-speed:hover { border-color: var(--sky); }
.quote-speed.is-chon { border-color: var(--ink); }
.quote-speed .sp-ten {
  display: block; font-size: .72rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft);
}
.quote-speed b { display: block; color: var(--ink); font-size: 1rem; margin: .15rem 0; }
.quote-speed small { display: block; font-size: .72rem; color: var(--ink-soft); line-height: 1.3; }

@media (max-width: 420px) {
  .quote-speeds { grid-template-columns: 1fr; }
  .quote-speed { display: flex; align-items: baseline; justify-content: space-between; text-align: left; gap: .5rem; }
  .quote-speed b { margin: 0; }
}

.quote-mats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .4rem;
  margin-bottom: .8rem;
}
.quote-mat {
  font: inherit;
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: .55rem .7rem;
  text-align: center;
  cursor: pointer;
  width: 100%;
  transition: border-color .15s;
}
.quote-mat:hover { border-color: var(--sky); }
.quote-mat.is-chon { border-color: var(--ink); }
.quote-mat span { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.quote-mat b { display: block; color: var(--ink); font-size: .98rem; }

.quote-files { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .3rem; }
.quote-files li {
  display: flex;
  justify-content: space-between;
  gap: .7rem;
  font-size: .84rem;
  color: var(--ink-soft);
}
.quote-files .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quote-files .dim { flex: none; font-weight: 700; color: var(--ink); }

.quote-warn {
  background: var(--white);
  border-left: 3px solid var(--ink);
  border-radius: 10px;
  padding: .7rem .9rem;
  font-size: .86rem;
  margin-bottom: .8rem;
}

.quote-check {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .86rem;
  color: var(--ink-soft);
  cursor: pointer;
  margin-bottom: .8rem;
}
.quote-check input { margin: .2rem 0 0; width: 17px; height: 17px; accent-color: var(--ink); flex: none; }

.quote-note {
  font-size: .82rem;
  line-height: 1.5;
  color: var(--ink-soft);
  border-top: 1px solid rgba(31, 58, 104, .14);
  padding-top: .75rem;
}
.quote-note b { color: var(--ink); }

/* ---------- Bảng giá ---------- */
.table-card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); }
th {
  background: var(--sky-soft);
  color: var(--ink);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
td:first-child { color: var(--ink); font-weight: 800; }
tbody tr:last-child td { border-bottom: none; }

@media (max-width: 559px) {
  table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table, tbody, tr, td { display: block; width: 100%; }
  tbody tr { padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
  tbody tr:last-child { border-bottom: none; }
  td { border: none; padding: 0; }
  td:first-child { font-size: 1rem; margin-bottom: .1rem; }
  td:nth-child(2) { font-weight: 800; color: var(--ink); margin-bottom: .3rem; }
  td:nth-child(3) { font-size: .88rem; }
}

/* ---------- Các bước / trang cảm ơn ---------- */
.check {
  width: 72px; height: 72px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: var(--sky-soft);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.check svg { width: 34px; height: 34px; }
.order-id {
  display: inline-block;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--ink);
  background: var(--sky-soft);
  border-radius: var(--r-pill);
  padding: .3em 1.1em;
}
.steps {
  counter-reset: s;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  text-align: left;
  display: grid;
  gap: .7rem;
}
.steps li {
  counter-increment: s;
  position: relative;
  padding: 1rem 1.2rem 1rem 3.2rem;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  font-size: .95rem;
}
.steps li::before {
  content: counter(s);
  position: absolute; left: 1.1rem; top: 1rem;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--ink); color: #fff;
  font-size: .78rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; margin-top: 2.5rem; }
.footer-inner { padding: 3rem 0 2.5rem; text-align: center; }
.footer-inner .display { color: #fff; }
.footer-inner p { color: rgba(255, 255, 255, .85); margin-inline: auto; max-width: 46ch; }
.footer-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.5rem; }
.footer-actions .btn { border-color: #fff; background: #fff; color: var(--ink); }
.footer-actions .btn:hover { background: var(--sky); border-color: var(--sky); color: var(--ink); }
.footer-actions .btn--outline { background: transparent; color: #fff; }
.footer-actions .btn--outline:hover { background: #fff; color: var(--ink); }
.footer-fine {
  border-top: 1px solid rgba(255, 255, 255, .18);
  padding: 1.1rem 0 2rem;
  text-align: center;
  font-size: .82rem;
  color: rgba(255, 255, 255, .7);
}
.footer-fine a { color: rgba(255, 255, 255, .9); }

/* ---------- CTA dính đáy ---------- */
.sticky-cta {
  position: sticky;
  bottom: 0;
  background: rgba(244, 244, 241, .96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding: .7rem 0 calc(.7rem + env(safe-area-inset-bottom));
  z-index: 50;
}

/* ---------- Sản phẩm ---------- */
.btn--sm { padding: .6em 1.4em; font-size: .78rem; }

/*
  Phải viết .nav-links .nav-cart chứ không phải .nav-cart: dòng
  ".nav-links a { display: block }" ở trên nặng ký hơn, viết ngắn thì nó đè
  mất, icon và con số lại rơi về xếp theo đường chân chữ, lệch nhau.
*/
.nav-links .nav-cart {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  line-height: 1;
}
.nav-links .nav-cart svg { width: 20px; height: 20px; display: block; }
/* Gạch chân của menu bám theo chiều cao dòng chữ, icon không có cái đó */
.nav-links .nav-cart::after { bottom: -.15rem; }
.cart-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 .32em;
  border-radius: var(--r-pill);
  background: var(--ink); color: #fff;
  font-size: .7rem; font-weight: 800; line-height: 1;
}


.prod-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.prod {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.prod:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.prod-thumb { display: block; }
.prod-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.prod-thumb .ph, .prod-detail-img .ph {
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(135deg, var(--sky-soft) 0 12px, var(--paper-2) 12px 24px);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 1rem;
  font-weight: 800; font-size: .9rem;
}
.prod-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.prod-body h3 { margin: 0 0 .3rem; font-family: var(--font-display); font-size: 1.12rem; color: var(--ink); }
.prod-body h3 a { text-decoration: none; }
.prod-body h3 a:hover { text-decoration: underline; }
.prod-short { margin: 0 0 .9rem; font-size: .9rem; flex: 1; }
.prod-price { margin: 0; color: var(--ink); font-weight: 900; font-size: 1.15rem; }
.prod-price--big { font-size: 1.6rem; margin: .4rem 0 1rem; }
.prod-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.prod-empty {
  grid-column: 1 / -1;
  text-align: center;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.prod-detail { display: grid; gap: 1.4rem; margin-top: .6rem; }
.prod-detail-img {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.prod-detail-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.prod-detail-info .display { font-size: clamp(1.7rem, 6vw, 2.3rem); margin: .2rem 0 0; }

.prod-buy { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .8rem; margin-top: 1.4rem; }
.prod-qty { display: grid; gap: .3rem; }
.prod-qty span {
  font-size: .68rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink);
}
.prod-qty input {
  width: 84px; padding: .75em .9em;
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  background: var(--white); font: inherit; color: var(--ink); font-weight: 800;
}
.prod-qty input:focus-visible { outline: none; border-color: var(--ink); }

.prod-detail-text {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem 1.5rem;
  margin-top: 1.4rem;
}
.prod-detail-text p { margin: 0 0 .9rem; }
.prod-detail-text p:last-child { margin-bottom: 0; }

/* ---------- Giỏ hàng ---------- */
.cart-rows { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .7rem; }
.cart-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: .9rem;
  align-items: center;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: .9rem 1.1rem;
}
.cart-row-thumb {
  width: 64px; height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--sky-soft) 0 10px, var(--paper-2) 10px 20px);
}
.cart-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-row-main { min-width: 0; }
.cart-row-name { display: block; color: var(--ink); font-weight: 800; font-size: .98rem; text-decoration: none; }
.cart-row-name:hover { text-decoration: underline; }
.cart-row-sub { font-size: .84rem; }
.cart-row-tools { display: flex; align-items: center; gap: .5rem; margin-top: .5rem; }
.cart-row-tools input {
  width: 66px; padding: .35em .6em;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--white); font: inherit; font-size: .88rem;
  color: var(--ink); font-weight: 800;
}
.cart-row-tools input:focus-visible { outline: none; border-color: var(--ink); }
.cart-row-money { margin-left: auto; color: var(--ink); font-weight: 900; }
.cart-del {
  background: none; border: none; cursor: pointer; padding: .2em .4em;
  font: inherit; font-size: .84rem; color: var(--danger); text-decoration: underline;
}

.cart-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  background: var(--sky-soft);
  border-radius: var(--r-md);
  padding: 1rem 1.3rem;
  color: var(--ink);
  font-weight: 800;
}
.cart-total b { font-size: 1.35rem; font-weight: 900; }

.cart-empty {
  text-align: center;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 2.8rem 1.5rem;
}
.cart-empty h2 { font-family: var(--font-display); color: var(--ink); margin: 0 0 .5rem; }
.cart-empty .btn { margin-top: 1.2rem; }

/* ---------- Thẻ chuyển qua lại ---------- */
.tab-bar {
  display: flex;
  gap: .4rem;
  background: var(--white);
  border-radius: var(--r-pill);
  padding: .35rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.8rem;
}
.tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  border-radius: var(--r-pill);
  padding: .8em 1em;
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .18s, color .18s;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn[aria-selected="true"] { background: var(--ink); color: #fff; }
.tab-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Chưa có JavaScript thì hai phần nằm nối đuôi nhau, vẫn đọc được hết */
.tab-panel + .tab-panel { margin-top: 2.5rem; }

/* Máy nhỏ: co chữ lại để hai thẻ vẫn nằm cạnh nhau, đứng cạnh nhau mới
   nhìn ra là chọn một trong hai. Hẹp quá thì mới chịu xếp dọc. */
@media (max-width: 420px) {
  .tab-btn { padding: .8em .5em; font-size: .68rem; letter-spacing: .06em; }
}
@media (max-width: 329px) {
  .tab-bar { border-radius: var(--r-lg); flex-direction: column; }
  .tab-btn { border-radius: var(--r-lg); }
}

/* ---------- Desktop ---------- */
@media (min-width: 700px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 4.5rem 0; }
  .band { padding: 3.5rem 0; }
  .form-card { padding: 2.2rem 2rem; }
  .band-list { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .prod-detail { grid-template-columns: 1fr 1fr; align-items: start; gap: 2rem; }
}
