/* MMay — style.css
   Đổi màu/phông ở khối :root bên dưới. */
:root {
  --paper: #F4F2F7;
  --paper-2: #EAE6F0;
  --white: #FFFFFF;
  --ink: #231B30;
  --ink-soft: #5B5368;
  --line: #D6D0E0;
  --accent: #C92A64;        /* nút, liên kết */
  --accent-bright: #E0447A; /* điểm nhấn lớn */
  --accent-dark: #A81F51;
  --moss: #46663A;
  --mustard: #F2C14E;
  --danger: #B3261E;

  --font-display: 'Bricolage Grotesque', 'Be Vietnam Pro', system-ui, sans-serif;
  --font-body: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --shape: 28px 6px 28px 6px; /* hình khung ảnh đặc trưng */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5.6vw, 4.4rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.05rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(44px, 7vw, 92px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.muted { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--ink); color: var(--white); font: 600 1rem/1 var(--font-body);
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn-accent { background: var(--accent); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-small { padding: 8px 16px; font-size: .9rem; }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); border-color: var(--danger); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 2px dashed var(--line); }
.bar { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand-name { font: 800 1.6rem/1 var(--font-display); letter-spacing: -0.04em; }
.nav { display: flex; gap: 6px; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { background: var(--paper-2); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--white); }
.cart-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; padding: 8px 4px; }
.cart-count { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: var(--white); font-size: .8rem; display: inline-grid; place-items: center; }
.cart-count[data-empty="true"] { background: var(--paper-2); color: var(--ink-soft); }
.nav-toggle { display: none; background: none; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; font: 600 .9rem var(--font-body); color: var(--ink); cursor: pointer; }

/* ---------- Hero + bảng màu ---------- */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(36px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 13ch; }
.hero p.lead { font-size: 1.15rem; max-width: 46ch; color: var(--ink-soft); }

.shade { padding-top: 14px; border-top: 4px solid var(--ink); position: relative; }
.shade-row { display: flex; gap: clamp(6px, 1.4vw, 14px); justify-content: space-between; align-items: flex-start; }
.skein { flex: 1 1 0; min-width: 0; max-width: 72px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.skein-body {
  width: 100%; height: var(--h, 260px); border-radius: 6px 6px 999px 999px / 6px 6px 40px 40px;
  background: repeating-linear-gradient(118deg, var(--c) 0 7px, color-mix(in srgb, var(--c) 80%, #000) 7px 10px);
  box-shadow: inset 0 -10px 14px -8px rgba(0,0,0,.18);
  transform-origin: top center;
  animation: unroll .9s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(var(--i) * 70ms);
}
.skein-name { writing-mode: vertical-rl; font-size: .8rem; color: var(--ink-soft); white-space: nowrap; letter-spacing: .01em; }
.skein::before { content: ''; width: 10px; height: 14px; margin-top: -14px; background: var(--ink); border-radius: 0 0 5px 5px; order: -1; }
@keyframes unroll { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---------- Lưới sản phẩm ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 34px 22px; }
.card { display: block; text-decoration: none; color: var(--ink); }
.card:hover { color: var(--ink); }
.card-img { position: relative; aspect-ratio: 1 / 1; background: var(--paper-2); border-radius: var(--shape); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-title { margin: 14px 0 4px; font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.35; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-weight: 700; }
.dots { display: inline-flex; align-items: center; }
.dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--paper); background: var(--c); box-shadow: 0 0 0 1px var(--line); margin-left: -4px; cursor: pointer; transition: transform .12s; }
.dot:hover { transform: scale(1.25); position: relative; z-index: 1; }
.dots-more { font-size: .8rem; color: var(--ink-soft); margin-left: 6px; }
.badge { position: absolute; left: 12px; top: 12px; background: var(--mustard); color: var(--ink); font-weight: 600; font-size: .8rem; padding: 4px 10px; border-radius: 999px; }

/* ---------- Danh mục / điểm nổi bật ---------- */
.cats { display: flex; flex-wrap: wrap; gap: 12px; }
.cat-link { display: inline-flex; align-items: baseline; gap: 8px; padding: 12px 20px; border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; }
.cat-link small { color: var(--ink-soft); font-weight: 500; }
.cat-link:hover { background: var(--ink); color: var(--white); }
.cat-link:hover small { color: var(--paper-2); }

.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px dashed var(--line); border-bottom: 2px dashed var(--line); }
.point { padding: 28px 28px 28px 0; }
.point + .point { padding-left: 28px; border-left: 2px dashed var(--line); }
.point p { margin: 0; color: var(--ink-soft); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: start; }

/* ---------- Cửa hàng: bộ lọc ---------- */
.page-title { padding: clamp(28px, 4vw, 52px) 0 8px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; margin: 20px 0 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 2px solid var(--line); background: transparent; color: var(--ink); font: 500 .95rem var(--font-body); cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.tools { display: flex; gap: 10px; flex-wrap: wrap; }
input[type=text], input[type=search], input[type=tel], input[type=email], input[type=password], input[type=number], textarea, select {
  font: 400 1rem var(--font-body); color: var(--ink); background: var(--white);
  border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px; width: 100%;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); }
.tools input, .tools select { width: auto; min-width: 180px; }
.empty { padding: 56px 0; text-align: center; color: var(--ink-soft); }
.notice { background: var(--paper-2); border-left: 6px solid var(--mustard); padding: 14px 18px; border-radius: 4px 12px 12px 4px; margin: 0 0 24px; }
.notice.error { border-left-color: var(--danger); }

/* ---------- Chi tiết sản phẩm ---------- */
.detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 64px); padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 72px); align-items: start; }
.gallery-main { aspect-ratio: 1 / 1; background: var(--paper-2); border-radius: var(--shape); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb { width: 70px; height: 70px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--paper-2); cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--ink); }
.crumbs { font-size: .9rem; color: var(--ink-soft); margin-bottom: 12px; }
.detail h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); letter-spacing: -0.03em; }
.detail .price { font-size: 1.6rem; display: block; margin-bottom: 18px; }
.field-label { display: block; font-weight: 600; margin: 20px 0 8px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border: 2px solid var(--line); border-radius: 999px; background: transparent; font: 500 .92rem var(--font-body); color: var(--ink); cursor: pointer; }
.swatch i { width: 24px; height: 24px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px var(--line); }
.swatch[aria-pressed="true"] { border-color: var(--ink); background: var(--white); }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; background: var(--white); }
.qty button { width: 40px; height: 40px; border: 0; background: none; font: 600 1.2rem var(--font-body); cursor: pointer; color: var(--ink); border-radius: 50%; }
.qty button:hover { background: var(--paper-2); }
.qty span { min-width: 34px; text-align: center; font-weight: 600; }
.buy-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
.stock { font-weight: 600; font-size: .92rem; }
.stock.in { color: var(--moss); }
.stock.out { color: var(--danger); }
.desc { margin-top: 28px; padding-top: 22px; border-top: 2px dashed var(--line); white-space: pre-line; }

/* ---------- Giỏ hàng & đặt hàng ---------- */
.cart-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; padding-bottom: 72px; }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 2px dashed var(--line); align-items: center; }
.line:first-child { padding-top: 0; }
.line img { width: 84px; height: 84px; object-fit: cover; border-radius: 14px; background: var(--paper-2); }
.line h3 { margin: 0 0 2px; font-family: var(--font-body); font-weight: 600; }
.line .sub { color: var(--ink-soft); font-size: .9rem; margin-bottom: 8px; }
.line .qty button { width: 34px; height: 34px; }
.line-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink-soft); text-decoration: underline; cursor: pointer; font: 400 .88rem var(--font-body); }
.link-btn:hover { color: var(--danger); }
.panel { background: var(--white); border: 2px dashed var(--ink); border-radius: 20px; padding: clamp(20px, 3vw, 32px); }
.panel h2 { font-size: 1.4rem; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.sum-row.total { font-weight: 700; font-size: 1.25rem; padding-top: 12px; margin-top: 8px; border-top: 2px solid var(--ink); }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-row .hint { color: var(--ink-soft); font-size: .88rem; margin-top: 4px; }
.radio, .form-row .radio { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; font-weight: 400; }
.radio strong { font-weight: 600; }
.radio input { margin-top: 5px; accent-color: var(--accent); }
.radio:has(input:checked) { border-color: var(--ink); }
.field-error { color: var(--danger); font-size: .9rem; margin-top: 4px; }
.success { max-width: 640px; margin: 0 auto; padding: clamp(36px, 6vw, 72px) 0; }
.code { font: 800 1.6rem var(--font-display); letter-spacing: .04em; background: var(--paper-2); padding: 4px 14px; border-radius: 10px; display: inline-block; }
.qr { width: 240px; border-radius: 12px; border: 2px solid var(--line); margin: 12px 0; }

/* ---------- Trang thông tin ---------- */
.prose { max-width: 70ch; }
.prose h3 { margin-top: 1.5em; }
.info-layout { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 5vw, 64px); padding-bottom: 80px; }
.toc { position: sticky; top: 90px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.toc a { padding: 8px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
.toc a:hover { background: var(--paper-2); }
.info-block { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 2px dashed var(--line); scroll-margin-top: 90px; }
.info-block:last-child { border-bottom: 0; }
details { border-bottom: 2px dashed var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--ink-soft); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 2px dashed var(--line); margin-top: 24px; padding: 48px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-grid h3 { font-family: var(--font-body); font-size: .95rem; font-weight: 700; margin-bottom: 10px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-grid a { color: var(--ink); text-decoration: none; }
.foot-grid a:hover { color: var(--accent); text-decoration: underline; }
.copy { margin-top: 36px; color: var(--ink-soft); font-size: .88rem; }
.float-zalo { position: fixed; right: 18px; bottom: 18px; z-index: 30; background: #0068FF; color: #fff; text-decoration: none; font-weight: 700; padding: 12px 18px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.22); }
.float-zalo:hover { background: #0050c8; color: #fff; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: var(--white); padding: 12px 22px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Admin ---------- */
.admin-wrap { padding: 32px 0 80px; }
.login-box { max-width: 420px; margin: 40px auto; }
.tabs { display: flex; gap: 8px; margin: 18px 0 24px; flex-wrap: wrap; align-items: center; }
.tabs .spacer { margin-left: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 14px; overflow: hidden; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { background: var(--paper-2); font-size: .88rem; }
.table img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; background: var(--paper-2); }
.table-scroll { overflow-x: auto; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--paper-2); margin: 2px 4px 2px 0; }
.tag.on { background: var(--mustard); }
.tag.off { background: #F3D3D0; color: var(--danger); }
dialog { border: 0; border-radius: 20px; padding: 0; width: min(680px, 94vw); max-height: 92vh; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgba(35,27,48,.55); }
.dlg-body { padding: 26px; overflow: auto; max-height: 92vh; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-row { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.check-row label { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; }
.color-row { display: grid; grid-template-columns: 20px 28px 1fr 42px 116px 34px; gap: 6px; margin-bottom: 6px; align-items: center; }
.num { font: 700 1rem var(--font-display); color: var(--ink-soft); text-align: center; }
.move { display: flex; flex-direction: column; gap: 2px; }
.move button { border: 1px solid var(--line); background: var(--white); border-radius: 6px; font-size: .7rem; line-height: 1; padding: 5px 0; cursor: pointer; color: var(--ink); }
.move button:hover:not([disabled]) { background: var(--paper-2); }
.move button[disabled] { opacity: .3; cursor: default; }
.swatch small { color: var(--ink-soft); font-size: .8rem; }
.color-img { position: relative; width: 44px; }
.color-img-pick, .form-row .color-img-pick { margin: 0; font-weight: 400; width: 44px; height: 44px; border: 2px dashed var(--line); border-radius: 10px; overflow: hidden; display: grid; place-items: center; cursor: pointer; background: var(--white); color: var(--ink-soft); font-size: .75rem; }
.color-img-pick:hover, .color-img-pick:focus-within { border-color: var(--ink); }
.color-img-pick img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .color-row { grid-template-columns: 20px 28px 1fr 42px 90px 34px; } }
.color-row input[type=color] { width: 56px; height: 42px; padding: 2px; border-radius: 10px; border: 2px solid var(--line); background: var(--white); }
.img-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.img-item { position: relative; width: 92px; }
.img-item img { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; background: var(--paper-2); }
.img-item .first { position: absolute; left: 4px; top: 4px; background: var(--mustard); font-size: .7rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.img-item .acts { display: flex; gap: 4px; margin-top: 4px; }
.img-item .acts button { flex: 1; font-size: .75rem; padding: 4px 0; border: 1px solid var(--line); background: var(--white); border-radius: 8px; cursor: pointer; }
.order-card { background: var(--white); border-radius: 14px; padding: 18px 20px; margin-bottom: 14px; }
.order-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; margin-bottom: 8px; }
.order-items { margin: 8px 0; padding-left: 18px; color: var(--ink-soft); }
.status-sel { width: auto; padding: 6px 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid, .detail, .cart-layout, .about-grid, .info-layout { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .points { grid-template-columns: 1fr; }
  .point, .point + .point { padding: 22px 0; border-left: 0; }
  .point + .point { border-top: 2px dashed var(--line); }
  .foot-grid { grid-template-columns: 1fr; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; }
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--paper); border-bottom: 2px dashed var(--line); padding: 10px 20px 16px; }
  .nav.open { display: flex; }
  .site-header .bar { position: relative; }
  .bar { gap: 12px; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .card-img { border-radius: 20px 5px 20px 5px; }
  .card-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .line { grid-template-columns: 64px 1fr; }
  .line img { width: 64px; height: 64px; }
  .line-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .two { grid-template-columns: 1fr; }
  .skein-name { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- Form thêm/sửa sản phẩm: gọn hơn ---- */
.dlg-body { padding: 20px 22px; }
dialog { width: min(640px, 94vw); }
dialog h2 { font-size: 1.3rem; margin-bottom: 12px; }
dialog .form-row { margin-bottom: 10px; }
dialog .form-row > label { margin-bottom: 4px; font-size: .92rem; }
dialog input[type=text], dialog input[type=number], dialog textarea { padding: 8px 12px; border-radius: 10px; }
dialog .two { gap: 10px; }
dialog .check-row { gap: 6px 16px; margin-bottom: 10px; font-size: .92rem; }
dialog .hint { font-size: .82rem; }
.color-row input[type=color] { width: 42px; height: 38px; padding: 2px; border-radius: 8px; }
.color-row .btn-x { padding: 6px 0; width: 34px; border-width: 1px; }
.img-x { position: absolute; right: -6px; top: -6px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: var(--ink); color: var(--white); font-size: .8rem; line-height: 1; cursor: pointer; padding: 0; }
.img-x:hover { background: var(--danger); }
.color-row .num { font-size: .9rem; }
.move button { padding: 3px 0; }

/* ---- Nhiều ảnh cho mỗi phân loại ---- */
.variant { margin-bottom: 12px; }
.img-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 0 54px; align-items: center; }
.thumb-box { position: relative; width: 44px; height: 44px; }
.thumb-pick { width: 44px; height: 44px; padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper-2); cursor: pointer; }
.thumb-pick img { width: 100%; height: 100%; object-fit: cover; }
.thumb-box.main .thumb-pick { border-color: var(--ink); cursor: default; }
.thumb-box.main::after { content: 'Chính'; position: absolute; left: 2px; bottom: 2px; background: var(--mustard); font-size: .6rem; font-weight: 700; padding: 0 5px; border-radius: 999px; pointer-events: none; }
.thumb-add, .form-row .thumb-add { margin: 0; font-weight: 500; font-size: .78rem; height: 44px; padding: 0 12px; border: 2px dashed var(--line); border-radius: 10px; display: inline-flex; align-items: center; cursor: pointer; background: var(--white); color: var(--ink-soft); }
.thumb-add:hover, .thumb-add:focus-within { border-color: var(--ink); color: var(--ink); }

/* ---- Trang sản phẩm: bộ lọc + sắp xếp ---- */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.filters { position: sticky; top: 88px; max-height: calc(100vh - 100px); overflow-y: auto; padding-right: 6px; }
.filter-group { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 2px dashed var(--line); }
.filter-title { font: 700 .95rem var(--font-body); letter-spacing: 0; margin: 0 0 10px; }
.cat-list { display: flex; flex-direction: column; gap: 2px; }
.cat-opt { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; width: 100%; text-align: left; padding: 8px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: 500 .95rem var(--font-body); cursor: pointer; }
.cat-opt small { color: var(--ink-soft); }
.cat-opt:hover { background: var(--paper-2); }
.cat-opt[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.cat-opt[aria-pressed="true"] small { color: var(--paper-2); }
.price-inputs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.price-inputs input { padding: 8px 10px; }
.filters .swatch { padding: 4px 12px 4px 4px; font-size: .88rem; }
.filters .swatch i { width: 20px; height: 20px; }
.check-line { display: flex; gap: 8px; align-items: center; font-weight: 500; cursor: pointer; }
.check-line input { accent-color: var(--accent); width: 18px; height: 18px; }
.toolbar-left { display: flex; align-items: center; gap: 12px; }
.result-count { color: var(--ink-soft); font-size: .95rem; }
.filter-toggle { display: none; }
.shop-layout .toolbar { margin-top: 0; }
@media (max-width: 860px) {
  .shop-layout { grid-template-columns: 1fr; gap: 0; }
  .filters { display: none; position: static; max-height: none; overflow: visible; margin-bottom: 20px; padding: 16px; background: var(--white); border-radius: 16px; }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; }
}
.filter-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.filter-head .link-btn { color: var(--accent); font-size: .85rem; }
.filter-head .link-btn:hover { color: var(--accent-dark); }

/* ---- Màu hết hàng ---- */
.dot.sold { opacity: .45; background-image: linear-gradient(135deg, transparent 45%, var(--ink) 46%, var(--ink) 54%, transparent 55%); }
.swatch.sold { opacity: .6; }
.swatch.sold i { background-image: linear-gradient(135deg, transparent 44%, var(--ink) 45%, var(--ink) 55%, transparent 56%); }
.soldout-chk, .form-row .soldout-chk { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 0 auto; font-weight: 500; font-size: .82rem; color: var(--ink-soft); cursor: pointer; }
.soldout-chk input { width: auto; margin: 0; }

/* ---- Admin: tìm/lọc đơn hàng ---- */
.order-tools { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.order-tools input[type=search] { flex: 1 1 240px; }
.order-tools select { flex: 0 1 240px; width: auto; }
