/* Cá7màu.art — giao diện chung (bản sạch, 03/12/2026). Màu, font lấy từ tokens.css (V1.3). Không gradient.
   Nguyên tắc: nền trắng, chữ tím mực, nút chính tím mực đặc, viền mảnh, san hô chỉ làm điểm nhấn nhỏ. */
@import url("tokens.css");

:root {
  --vien: rgba(68, 35, 69, .12);      /* viền mảnh */
  --vien-dam: rgba(68, 35, 69, .28);
  --nen-phu: rgba(68, 35, 69, .045);  /* nền khung ảnh, chân trang: tím mực rất nhạt */
  --chu-phu: rgba(68, 35, 69, .66);
  --cao-tab: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--c7m-white); color: var(--c7m-ink);
  font-family: var(--c7m-font); font-weight: var(--c7m-weight-body);
  font-size: 16px; line-height: 1.55;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-weight: var(--c7m-weight-bold); line-height: 1.18; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.75rem, 6.4vw, 3rem); }
h2 { font-size: clamp(1.35rem, 4.6vw, 2rem); }
h3 { font-size: 1.05rem; font-weight: var(--c7m-weight-bold); }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--chu-phu); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.placeholder { font-weight: var(--c7m-weight-bold); color: var(--c7m-coral); }
.lk-mui { font-weight: var(--c7m-weight-bold); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.lk-mui:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--c7m-white); border-bottom: 1px solid var(--vien); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand img { width: 104px; height: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { text-decoration: none; font-weight: var(--c7m-weight-medium); padding: 8px 10px; border-radius: 999px; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--nen-phu); }
.nav .gio { position: relative; display: inline-flex; align-items: center; }
.dem { position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--c7m-coral); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; line-height: 1; }
.dem:empty { display: none; }
.nav .chu-nav { display: none; }
.nav svg { width: 24px; height: 24px; }
@media (min-width: 760px) {
  .brand img { width: 128px; }
  .site-head .wrap { height: 68px; }
  .nav .chu-nav { display: inline-block; }
  .nav .gio svg { margin-left: 6px; }
}

/* ---------- Thanh tab dưới (điện thoại) ---------- */
.tab-duoi { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--c7m-white); border-top: 1px solid var(--vien);
  display: grid; grid-template-columns: repeat(4, 1fr); height: calc(var(--cao-tab) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
.tab-duoi a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; font-size: .72rem; color: var(--chu-phu); position: relative; }
.tab-duoi a svg { width: 23px; height: 23px; }
.tab-duoi a[aria-current="page"] { color: var(--c7m-ink); font-weight: var(--c7m-weight-bold); }
.tab-duoi .dem { top: 6px; right: calc(50% - 20px); }
body.co-tab { padding-bottom: calc(var(--cao-tab) + env(safe-area-inset-bottom)); }
@media (min-width: 760px) { .tab-duoi { display: none; } body.co-tab { padding-bottom: 0; } }

/* ---------- Nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1.5px solid var(--c7m-ink);
  background: var(--c7m-white); color: var(--c7m-ink); font: inherit; font-weight: var(--c7m-weight-bold);
  text-decoration: none; cursor: pointer; transition: background .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { background: var(--nen-phu); }
.btn-chinh, .btn-dam { background: var(--c7m-ink); color: var(--c7m-white); }
.btn-chinh:hover, .btn-dam:hover { background: var(--c7m-ink); opacity: .88; }
.btn[disabled] { opacity: .35; cursor: not-allowed; }
.btn-full { width: 100%; }

/* ---------- Thẻ chọn (chip) ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--vien-dam); background: var(--c7m-white); color: var(--c7m-ink);
  border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .88rem; font-weight: var(--c7m-weight-medium); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--c7m-ink); border-color: var(--c7m-ink); color: var(--c7m-white); }

/* ---------- Thẻ phong cách ---------- */
.luoi { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px 12px; }
@media (min-width: 760px) { .luoi { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px 20px; } }
@media (min-width: 1024px) { .luoi { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.the { display: flex; flex-direction: column; min-width: 0; }
.the .khung-boc { position: relative; }
.the .khung { position: relative; aspect-ratio: 4/5; background: var(--nen-phu); border-radius: var(--c7m-radius-sm); overflow: hidden; display: block; }
.the .khung img { width: 100%; height: 100%; object-fit: cover; }
.the .khung.poster img { object-position: center bottom; }
/* Áo mẫu: phóng to phần ngực áo để hình in rõ như ảnh sản phẩm */
.the .khung.ao-the .ao { position: absolute; width: 168%; left: -34%; top: -16%; }
.the .tim { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--c7m-white); display: grid; place-items: center; cursor: pointer; padding: 0; }
.the .tim svg { width: 20px; height: 20px; fill: none; stroke: var(--c7m-ink); stroke-width: 1.7; }
.the .tim[aria-pressed="true"] svg { fill: var(--c7m-coral); stroke: var(--c7m-coral); }
.the .than { padding: 10px 2px 0; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.the .ten { font-weight: var(--c7m-weight-bold); font-size: 1rem; line-height: 1.3; }
.the .mo-ta { font-size: .84rem; color: var(--chu-phu); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.the .gia { font-weight: var(--c7m-weight-bold); margin-top: 4px; }
.the .lk-mui { font-size: .88rem; margin-top: 4px; }

/* ---------- Tiêu đề khối ---------- */
section.khoi { padding: 40px 0; }
.tieu-de { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.tieu-de h2 { margin: 0; }
.tieu-de a { font-weight: var(--c7m-weight-bold); text-decoration: none; font-size: .92rem; white-space: nowrap; }

/* ---------- Form ---------- */
label { font-weight: var(--c7m-weight-medium); display: block; margin-bottom: 6px; }
input[type=text], input[type=tel], textarea, select {
  width: 100%; font: inherit; color: var(--c7m-ink); background: var(--c7m-white);
  border: 1px solid var(--vien-dam); border-radius: var(--c7m-radius-sm); padding: 12px 14px; min-height: 48px;
}
input:focus, textarea:focus, select:focus, .btn:focus-visible, .chip:focus-visible, a:focus-visible { outline: 2px solid var(--c7m-coral); outline-offset: 2px; }
.truong { margin-bottom: 16px; }
.bao-loi { color: var(--c7m-coral); font-weight: var(--c7m-weight-medium); min-height: 1.4em; }
.bao-loi:empty { display: none; }

/* ---------- Footer ---------- */
.site-foot { background: var(--nen-phu); color: var(--c7m-ink); padding: 40px 0 28px; margin-top: 56px; }
.site-foot .logo { width: 128px; }
.site-foot .cot { display: grid; gap: 28px; }
@media (min-width: 760px) { .site-foot .cot { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-foot h3 { font-size: .95rem; margin-bottom: 10px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--chu-phu); }
.site-foot .slogan { font-weight: var(--c7m-weight-bold); font-size: 1.1rem; margin: 14px 0 6px; }
.site-foot .day { border-top: 1px solid var(--vien); margin-top: 28px; padding-top: 16px; font-size: .8rem; color: var(--chu-phu); }

/* ---------- Áo mockup ---------- */
.ao { position: relative; width: 100%; aspect-ratio: 400/440; }
.ao svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ao .vung-in { position: absolute; left: 31%; width: 38%; top: 24%; height: 52%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4%; overflow: hidden; }
.ao.sau .vung-in { top: 18%; }
.ao .vung-in img { flex: 0 1 auto; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; }
.ao.sang .vung-in img { mix-blend-mode: multiply; }
.ao .vung-in .chu-ao { flex: none; text-align: center; line-height: 1.2; padding: .1em 0; word-break: break-word; max-width: 100%; }
.ao .vung-in.trong { border: 2px dashed rgba(127,127,127,.5); border-radius: 8px; }

.toast { position: fixed; left: 50%; bottom: calc(var(--cao-tab) + 16px); transform: translateX(-50%); background: var(--c7m-ink); color: var(--c7m-white); padding: 12px 18px; border-radius: 999px; font-weight: 600; z-index: 50; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.hien { opacity: 1; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
