/* Cửa hàng, giỏ hàng, chính sách và footer pháp lý */
[hidden] { display: none !important; }
mark.todo { background: #fff3cd; color: #7a5600; border-radius: 6px; padding: 1px 6px; font-weight: 400; }

.cart-link {
  position: fixed; top: 14px; right: 14px; z-index: 5; height: 44px; padding: 0 16px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; text-transform: uppercase; letter-spacing: .06em;
  background: rgba(255,255,255,.92); border: 1.5px solid var(--wine); color: var(--wine); font-size: 15px;
}
.cart-link b {
  min-width: 22px; height: 22px; border-radius: 999px; background: var(--wine); color: #fff;
  display: inline-grid; place-items: center; font-size: 13px; font-weight: 500; padding: 0 6px;
}
.cart-link b[hidden] { display: none; }

/* Chọn combo, mảnh lẻ */
.opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.opts.small { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 760px) { .opts, .opts.small { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.opt {
  display: grid; gap: 4px; justify-items: center; text-align: center; padding: 18px 12px 16px; cursor: pointer;
  background: rgba(255,255,255,.96); border: 1.5px solid var(--line); border-radius: 22px; font: inherit; color: var(--wine);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.opt:hover { border-color: var(--wine); transform: translateY(-2px); }
.opt[aria-checked="true"] { border-color: var(--wine); box-shadow: 0 0 0 2px var(--wine) inset, 0 10px 24px rgba(135, 10, 50, .15); }
.opt b { font-weight: 500; font-size: 20px; text-transform: uppercase; margin-top: 8px; }
.opt small { font-size: 14px; color: var(--muted); font-weight: 300; }
.opt .price { font-size: 19px; font-weight: 500; }
.fig { display: grid; justify-items: center; gap: 4px; min-height: 120px; align-content: center; }
.fig img { width: 92px; height: auto; display: block; }
.opts.small .fig img { width: 76px; }
.flip { transform: scaleX(-1); }
.photo { width: 100%; height: auto; border-radius: 24px; box-shadow: 0 20px 50px rgba(60, 10, 25, .2); }
.order { max-width: 560px; justify-self: center; width: 100%; }
.form-row { display: flex; justify-content: space-between; align-items: center; font-size: 17px; color: var(--ink); }
.order .radio { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--ink); }

/* Giỏ hàng */
.checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 64px; }
@media (max-width: 860px) { .checkout { grid-template-columns: 1fr; } }
.box { background: rgba(255,255,255,.96); border: 1.5px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 14px; }
.box h2 { font-size: 24px; }
.lines { list-style: none; display: grid; gap: 12px; }
.lines li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.lines b { font-weight: 500; font-size: 18px; text-transform: uppercase; }
.lines small { display: block; color: var(--muted); font-size: 14px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; }
.qty button { width: 34px; height: 34px; border: 0; background: none; font: inherit; font-size: 18px; color: var(--wine); cursor: pointer; }
.qty span { min-width: 26px; text-align: center; color: var(--ink); }
.sum { display: flex; justify-content: space-between; font-size: 20px; color: var(--ink); }
.sum b { color: var(--wine); font-weight: 500; }
.form { display: grid; gap: 10px; }
.form label { display: grid; gap: 4px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.form label.radio { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--ink); text-transform: none; letter-spacing: 0; }
.bank { background: #fbf6f7; border: 1.5px dashed var(--wine); border-radius: 16px; padding: 16px; display: grid; gap: 6px; }
.bank dl, .legal dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; }
.bank dt, .legal dt { color: var(--muted); font-weight: 300; }
.bank dd { color: var(--ink); }
.done { text-align: center; }
.done .code { font-size: 32px; font-weight: 600; letter-spacing: .08em; }
.empty { text-align: center; color: var(--muted); }

/* Trang chính sách */
.policy { min-height: 40vh; background: rgba(255,255,255,.96); border: 1.5px solid var(--line); border-radius: 22px; padding: 28px; margin-bottom: 64px; display: grid; gap: 14px; }
.policy h2 { font-size: 24px; }
.policy ul { padding-left: 22px; color: var(--ink); line-height: 1.7; font-weight: 300; }

/* Footer pháp lý */
footer.legal { --ink: #3a1420; --muted: #8a5a66; --line: #E9E6E6; text-align: left; margin: 0; background: #fff; border-top: 1.5px solid var(--line); padding: 32px 16px 28px; color: var(--ink); }
.legal-grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1.2fr 1.6fr; gap: 24px; }
.legal h4 { font-weight: 500; text-transform: uppercase; letter-spacing: .08em; font-size: 15px; color: var(--wine); margin-bottom: 8px; }
.legal-copy { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) { .legal-grid { grid-template-columns: 1fr; } }
.legal-brand { font-size: 28px; font-weight: 600; text-transform: uppercase; color: var(--wine); }
.legal p, .legal dd { font-size: 15px; line-height: 1.6; }
.legal dd { color: var(--ink); font-weight: 300; }
.legal a { color: var(--wine); }
.legal nav { display: grid; gap: 6px; align-content: start; }
.legal nav a { text-decoration: none; font-size: 15px; }
.legal nav a:hover { text-decoration: underline; }
.legal-copy { max-width: 1080px; margin: 20px auto 0; text-align: center; color: var(--muted); font-size: 14px; }
.legal-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; letter-spacing: .12em; }
.legal-brand i { width: 30px; height: 26px; background: var(--wine); -webkit-mask: url("/assets/khoa/tag.webp") center / contain no-repeat; mask: url("/assets/khoa/tag.webp") center / contain no-repeat; }

/* Footer các trang cũ: dùng chung kiểu nền tối với cửa hàng */
footer.legal { background: #111; color: #d6d6d6; border-top: 0; padding: 56px 0 28px; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; letter-spacing: 0; }
footer.legal .legal-grid { max-width: 1320px; padding: 0 24px; grid-template-columns: 1fr .9fr 1.1fr 1.7fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { footer.legal .legal-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { footer.legal .legal-grid { grid-template-columns: 1fr; gap: 28px; } }
footer.legal h4, footer.legal .legal-brand { font-family: "Oswald", sans-serif; height: 26px; line-height: 26px; margin: 0 0 16px; color: #fff; }
footer.legal h4 { font-size: 14px; letter-spacing: .1em; }
footer.legal .legal-brand { font-size: 24px; font-weight: 600; letter-spacing: .14em; }
footer.legal .legal-brand i { width: 26px; height: 22px; background: #fff; }
footer.legal p, footer.legal dd { color: #d6d6d6; font-size: 14px; line-height: 1.7; font-weight: 400; }
footer.legal a { color: #d6d6d6; text-decoration: none; }
footer.legal a:hover { color: #fff; text-decoration: underline; }
footer.legal nav { gap: 8px; }
footer.legal nav a { font-size: 14px; }
footer.legal dl { grid-template-columns: 112px 1fr; gap: 6px 12px; }
footer.legal dt { color: #9a9a9a; white-space: nowrap; font-size: 14px; }
footer.legal .legal-copy { max-width: 1320px; margin: 48px auto 0; padding: 24px 24px 0; border-top: 1px solid #2a2a2a; justify-content: flex-start; color: #9a9a9a; font-size: 13px; }

/* Chặn kéo ngang trên điện thoại cho trang chủ và các trang sản phẩm cũ */
html, body { overflow-x: clip; }
