/* Giao diện khách (chung cho mọi shop). Mặc định (peach): tông kem / hồng đào / nâu cacao, chữ Fraunces (tiêu đề) + Nunito (nội dung). */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(/fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(/fonts/fraunces-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/nunito-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/nunito-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(/fonts/fraunces-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/nunito-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }

:root {
  --bg: #fdf6f0;
  --surface: #ffffff;
  --tint: #fbece4;
  --tint-2: #f3f7ee;
  --ink: #3b2a2f;
  --ink-2: #6f5c5e;
  --muted: #94817f;
  --line: #f0e0d6;
  --rose: #f4a9b8;
  --rose-deep: #d45d79;
  --rose-ink: #b23f5c;
  --sage: #9fc19b;
  --butter: #f7da8f;
  --sky: #a9d0e2;
  --ok: #3f8f5e;
  --err: #c2414b;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(59, 42, 47, .05), 0 10px 30px -14px rgba(59, 42, 47, .22);
  --shadow-sm: 0 1px 2px rgba(59, 42, 47, .06), 0 4px 12px -6px rgba(59, 42, 47, .14);
  --font: 'Nunito', ui-rounded, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --nl-a: #f8c3cd;
  --nl-b: #fbd9c4;
  --promo-a: #f3f7ee;
  --promo-b: #fff4d9;
  --wrap: 1200px;
  --header-h: 68px;
  color-scheme: light;
}

/* Bảng màu khác (Cài đặt › Cửa hàng › Giao diện) */
:root[data-theme='sage'] {
  --bg: #f6f7f1; --tint: #e9efe0; --tint-2: #fbf1e4; --line: #e2e7d8; --ink: #2f3a2f; --ink-2: #5c665a; --muted: #87907f;
  --rose: #b9d3a8; --rose-deep: #5f8f5a; --rose-ink: #44723f; --nl-a: #d4e5c4; --nl-b: #f4e6c8; --promo-a: #fbf1e4; --promo-b: #e9efe0;
}
:root[data-theme='lavender'] {
  --bg: #f8f5fb; --tint: #eee7f6; --tint-2: #fdf0f3; --line: #e6dcef; --ink: #33283f; --ink-2: #625670; --muted: #8f839b;
  --rose: #cdb6ea; --rose-deep: #8a63c2; --rose-ink: #6e48a6; --nl-a: #dccbf2; --nl-b: #f8d7e3; --promo-a: #fdf0f3; --promo-b: #eee7f6;
}
:root[data-theme='honey'] {
  --bg: #fdf8ec; --tint: #fbefcf; --tint-2: #eef4ea; --line: #f1e3c0; --ink: #3a2e1f; --ink-2: #6b5c45; --muted: #958566;
  --rose: #f6c453; --rose-deep: #a8690a; --rose-ink: #8a5408; --nl-a: #f9dc8c; --nl-b: #fde9c1; --promo-a: #eef4ea; --promo-b: #fbefcf;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose-ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--rose-deep); }
h1, h2, h3, .h3, .h4 { font-family: var(--display); font-weight: 650; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; font-variation-settings: 'SOFT' 100, 'WONK' 0; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
h3, .h3 { font-size: 1.25rem; }
.h4 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--rose-deep); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 64ch; }
.kicker { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--rose-deep); margin: 0 0 .5em; }
.kicker a { color: inherit; text-decoration: none; }
.big-emoji { font-size: 3.2rem; line-height: 1; margin: 0 0 .3em; }

/* ---------- Nút ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; border: 0; border-radius: 999px; padding: .72em 1.35em;
  font-weight: 800; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .12s, background .15s, box-shadow .15s; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 6px 16px -8px rgba(59, 42, 47, .6); }
.btn-primary:hover { background: #2b1d21; color: #fff; }
.btn-soft { background: var(--tint); color: var(--ink); }
.btn-soft:hover { background: color-mix(in srgb, var(--tint) 80%, var(--rose)); color: var(--ink); }
.btn-lg { padding: .9em 1.6em; font-size: 1.05rem; }
.btn-sm { padding: .5em 1em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; color: var(--ink); position: relative; text-decoration: none; }
.icon-btn:hover { background: var(--tint); color: var(--ink); }
.pill { display: inline-block; font-size: .78rem; font-weight: 800; padding: .2em .65em; border-radius: 999px; background: var(--tint); }
.pill-sale { background: #ffe1e6; color: var(--rose-ink); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 14px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo:hover { color: var(--ink); }
.logo-mark { flex-shrink: 0; transition: transform .3s; }
.logo:hover .logo-mark { transform: rotate(-12deg); }
.logo-text { font-family: var(--display); font-weight: 750; font-size: 1.42rem; letter-spacing: -.01em; }
.logo-text em { font-style: italic; color: var(--rose-deep); font-weight: 650; }
.nav { display: none; gap: 2px; margin-left: 10px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; padding: .45em .8em; border-radius: 999px; font-size: .97rem; }
.nav a:hover { background: var(--tint); color: var(--ink); }
.nav a[aria-current] { background: var(--ink); color: #fff; }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--rose-deep); color: #fff;
  font-size: .72rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.cart-count[hidden] { display: none; }
.cart-count.bump { animation: bump .4s; }
@keyframes bump { 40% { transform: scale(1.35); } }

.search { position: relative; display: none; }
.search input { width: 220px; height: 42px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 0 42px 0 16px; transition: width .2s, border-color .2s; }
.search input:focus { outline: none; border-color: var(--rose-deep); width: 280px; }
.search-btn { position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--ink-2); }
.suggest { position: absolute; right: 0; top: calc(100% + 8px); width: 340px; max-width: calc(100vw - 24px); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); list-style: none; margin: 0; padding: 6px; z-index: 40; }
.suggest a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.suggest a:hover, .suggest a.active { background: var(--tint); }
.suggest img { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; }
.suggest .s-title { flex: 1; font-weight: 700; line-height: 1.25; }
.suggest .s-price { color: var(--ink-2); font-size: .9rem; }
.suggest .s-all { justify-content: center; font-weight: 800; color: var(--rose-ink); }
.suggest .s-head { padding: 6px 8px 2px; font-size: .75rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
body.search-open .search { display: block; position: absolute; left: 12px; right: 12px; top: 12px; z-index: 35; }
body.search-open .search input { width: 100%; }
body.search-open .search .suggest { width: 100%; }

/* Ngăn kéo menu (điện thoại) */
.drawer { position: fixed; inset: 0 auto 0 0; width: min(340px, 88vw); background: var(--surface); z-index: 60; transform: translateX(-102%); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
  display: flex; flex-direction: column; overflow-y: auto; box-shadow: var(--shadow); }
.drawer.open { transform: none; }
.drawer-dim { position: fixed; inset: 0; background: rgba(59, 42, 47, .35); z-index: 55; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--line); }
.drawer-nav { display: flex; flex-direction: column; padding: 10px; }
.drawer-nav a { padding: 12px 14px; font-weight: 800; font-size: 1.1rem; color: var(--ink); text-decoration: none; border-radius: 12px; }
.drawer-nav a:hover { background: var(--tint); }
.drawer-label { margin: 8px 24px 4px; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.drawer-cols { display: flex; flex-direction: column; padding: 0 10px 10px; }
.drawer-cols a { display: flex; align-items: center; gap: 10px; padding: 9px 14px; color: var(--ink); text-decoration: none; border-radius: 12px; font-weight: 600; }
.drawer-cols a:hover { background: var(--tint); }
.drawer-cols small { margin-left: auto; color: var(--muted); }
.drawer-foot { margin-top: auto; padding: 16px 24px 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.drawer-foot > a { font-weight: 700; color: var(--ink); }

.socials { display: flex; gap: 6px; flex-wrap: wrap; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tint); color: var(--ink); }
.socials a:hover { background: var(--rose); color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 28px 0 8px; overflow: hidden; }
.hero-inner { display: grid; gap: 28px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 3.9rem); font-weight: 700; margin-bottom: .35em; }
.hero-text { font-size: 1.15rem; color: var(--ink-2); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 18px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-2); font-weight: 700; font-size: .93rem; }
.hero-art { position: relative; min-height: 320px; }
.hero-art::before { content: ''; position: absolute; inset: 6% 4% 2% 8%; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--rose) 45%, white), transparent 60%), radial-gradient(circle at 75% 70%, #fff0c9, transparent 55%), var(--tint);
  border-radius: 46% 54% 42% 58% / 55% 45% 55% 45%; }
.hero-pic { position: absolute; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); background: var(--surface); border: 6px solid #fff; transition: transform .3s; }
.hero-pic img { width: 100%; height: 100%; object-fit: cover; }
.hero-pic:hover { transform: rotate(0) scale(1.03); z-index: 3; }
.hero-pic-1 { width: 58%; aspect-ratio: 4/5; left: 6%; top: 4%; transform: rotate(-4deg); z-index: 2; }
.hero-pic-2 { width: 42%; aspect-ratio: 1; right: 4%; top: 0; transform: rotate(5deg); }
.hero-pic-3 { width: 40%; aspect-ratio: 1; right: 8%; bottom: 0; transform: rotate(-2deg); z-index: 2; }
.hero-blob { position: absolute; inset: 0; display: grid; place-items: center; font-size: 7rem; }

/* ---------- Section ---------- */
.section { padding: 34px 0; }
.section-tint { background: var(--tint); margin: 18px 0; padding: 40px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.section-link { font-weight: 800; text-decoration: none; color: var(--rose-ink); white-space: nowrap; }
.page-head { padding: 18px 20px 6px; }
.page-head h1 { margin-bottom: .25em; }
.page-narrow { padding-top: 26px; padding-bottom: 50px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .86rem; color: var(--muted); margin: 14px 0 10px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

/* ---------- Thẻ pattern ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
.card { min-width: 0; }
.card-link { color: var(--ink); text-decoration: none; display: block; }
.card-img { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--tint); box-shadow: var(--shadow-sm); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.card-link:hover .card-img img { transform: scale(1.05); }
.card-title { font-family: var(--font); font-weight: 800; font-size: 1rem; line-height: 1.3; margin: 10px 2px 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-link:hover .card-title { color: var(--rose-ink); }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 2px; }
.badge { position: absolute; left: 10px; top: 10px; background: #fff; color: var(--ink); font-size: .75rem; font-weight: 800; padding: .25em .7em; border-radius: 999px; box-shadow: var(--shadow-sm); }
.badge-free { background: var(--sage); color: #1f3a22; }
.badge-sale { background: var(--rose-deep); color: #fff; }
.img-ph { display: grid; place-items: center; width: 100%; height: 100%; font-size: 2.6rem; background: var(--tint); }
.price { font-weight: 800; font-size: 1.02rem; }
.price s { color: var(--muted); font-weight: 600; font-size: .9em; margin-left: 2px; }
.price-free { color: var(--ok); }
.diff { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.diff-dots { display: inline-flex; gap: 3px; }
.diff-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.diff-dots i.on { background: var(--rose-deep); }

/* Bộ sưu tập */
.col-row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; scrollbar-width: thin; }
.col-chip { flex: 0 0 auto; width: 128px; text-align: center; color: var(--ink); text-decoration: none; scroll-snap-align: start; }
.col-img { display: grid; place-items: center; width: 112px; height: 112px; margin: 0 auto 8px; border-radius: 50%; overflow: hidden; background: var(--tint); border: 4px solid #fff; box-shadow: var(--shadow-sm); font-size: 2.6rem; transition: transform .2s; }
.col-img img { width: 100%; height: 100%; object-fit: cover; }
.col-chip:hover .col-img { transform: translateY(-3px) rotate(-3deg); }
.col-name { display: block; font-weight: 800; line-height: 1.25; }
.col-chip small { color: var(--muted); }

/* Bundle */
.bundle-grid { display: grid; gap: 18px; }
.bundle-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.bundle-link { display: flex; gap: 16px; align-items: center; padding: 16px; color: var(--ink); text-decoration: none; }
.bundle-link:hover h3 { color: var(--rose-ink); }
.bundle-stack { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.bundle-stack img { position: absolute; width: 84px; height: 100px; object-fit: cover; border-radius: 12px; border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.bundle-stack img:nth-child(1) { left: 0; top: 10px; transform: rotate(-8deg); }
.bundle-stack img:nth-child(2) { left: 22px; top: 2px; z-index: 2; }
.bundle-stack img:nth-child(3) { left: 40px; top: 12px; transform: rotate(8deg); z-index: 3; }
.bundle-stack img:nth-child(4) { display: none; }
.bundle-body h3 { margin: 0 0 4px; }
.bundle-body p { margin: 0; }
.bundle-price { margin-top: 6px !important; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bundle-price s { color: var(--muted); }
.bundle-hero { display: grid; gap: 28px; align-items: center; padding-top: 10px; }
.bundle-stack-lg { width: 100%; max-width: 420px; height: 340px; margin: 0 auto; }
.bundle-stack-lg img { width: 58%; height: 78%; }
.bundle-stack-lg img:nth-child(1) { left: 2%; top: 12%; }
.bundle-stack-lg img:nth-child(2) { left: 21%; top: 2%; }
.bundle-stack-lg img:nth-child(3) { left: 40%; top: 14%; }

/* Khối giới thiệu */
.promo-row { display: grid; gap: 18px; }
.promo { border-radius: var(--radius); padding: 26px; position: relative; overflow: hidden; color: var(--ink); text-decoration: none; display: block; }
.promo h2 { margin-bottom: .3em; }
.promo p { color: var(--ink-2); }
.promo-stitch { background: var(--promo-a); }
.promo-stitch:hover { color: var(--ink); box-shadow: var(--shadow); }
.promo-nl { background: var(--promo-b); }
.promo-emoji { font-size: 2.4rem; display: block; margin-bottom: 8px; }
.about-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); margin-bottom: 30px; }
.about-strip > div { max-width: 60ch; }
.about-strip p { color: var(--ink-2); }

/* Bài viết */
.post-grid { display: grid; gap: 22px; }
.post-card-link { display: block; color: var(--ink); text-decoration: none; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); height: 100%; transition: transform .2s, box-shadow .2s; }
.post-card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.post-card-img { aspect-ratio: 16/10; background: var(--tint); overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 16px 18px 20px; }
.post-card-body h3 { margin: 4px 0 6px; }
.post-card-body p { color: var(--ink-2); font-size: .95rem; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-body time { font-size: .82rem; color: var(--muted); }

/* Ảnh khách gửi: lưới xếp gạch */
.makes-grid { columns: 2; column-gap: 12px; }
.make { break-inside: avoid; margin: 0 0 12px; background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.make img { width: 100%; }
.make figcaption { padding: 10px 12px 12px; font-size: .9rem; line-height: 1.4; }
.make figcaption a { text-decoration: none; }
.make-cap { display: block; color: var(--ink-2); margin-top: 3px; }
.make-pattern { display: block; margin-top: 4px; font-weight: 800; font-size: .85rem; }
.share-box { max-width: 640px; }
.make-share { margin-top: 18px; }
.make-share > summary { list-style: none; }
.make-share > summary::-webkit-details-marker { display: none; }
.make-form { margin-top: 16px; display: grid; gap: 12px; background: var(--surface); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow-sm); max-width: 620px; }
.make-preview { max-height: 220px; width: auto; border-radius: 12px; }
.file-drop { display: flex; align-items: center; justify-content: center; gap: 8px; border: 2px dashed var(--rose); border-radius: 16px; padding: 22px; cursor: pointer; font-weight: 800; background: #fff8f9; }
.file-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-drop:focus-within { outline: 3px solid var(--rose-deep); }

/* ---------- Form ---------- */
label { font-weight: 700; font-size: .95rem; display: block; }
label small { font-weight: 400; color: var(--muted); }
input[type='text'], input[type='email'], input[type='search'], input:not([type]), select, textarea {
  width: 100%; border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px; padding: .7em .9em; margin-top: 5px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rose-deep); box-shadow: 0 0 0 4px rgba(212, 93, 121, .14); }
input[aria-invalid='true'] { border-color: var(--err); }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: .92rem; cursor: pointer; }
label.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--rose-deep); flex-shrink: 0; }
.form-row { display: grid; gap: 12px; }
.input-row { display: flex; gap: 8px; align-items: stretch; }
.input-row input { margin: 0; }
.field-msg { min-height: 0; margin: 4px 0 0; font-size: .9rem; font-weight: 600; }
.field-msg.err, .form-msg.err { color: var(--err); }
.field-msg.ok, .form-msg.ok { color: var(--ok); }
.form-msg { margin: 0; font-weight: 700; }
.stack-form { display: grid; gap: 10px; max-width: 420px; }
.notice { background: var(--tint-2); border-radius: 16px; padding: 18px 20px; }
.alert { background: #fff4d9; border-radius: 12px; padding: 12px 16px; font-weight: 600; }

/* Bản tin */
.nl-form { display: flex; flex-wrap: wrap; gap: 8px; max-width: 460px; width: 100%; }
.nl-form input[type='email'] { flex: 1 1 200px; margin: 0; border-radius: 999px; padding: .75em 1.1em; }
.nl-msg { flex-basis: 100%; margin: 0; font-weight: 700; font-size: .92rem; }
.nl-msg.err { color: var(--err); }
.nl-msg.ok { color: var(--ok); }
.gift-img { margin: 0 auto 18px; border-radius: 20px; box-shadow: var(--shadow); }

/* ---------- Danh sách ---------- */
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: .45em 1em; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .93rem; }
.chip:hover { border-color: var(--rose); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin: 6px 0 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.filters .count { margin: 0 auto 6px 0; font-weight: 700; color: var(--ink-2); flex-basis: 100%; }
.filters label { font-size: .82rem; color: var(--muted); }
.filters select { width: auto; min-width: 128px; padding: .5em 2em .5em .8em; border-radius: 999px; font-weight: 700; color: var(--ink); }
.clear { font-size: .88rem; margin-left: 4px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0 10px; }
.tag-cloud a { font-size: .88rem; padding: .3em .8em; border-radius: 999px; background: var(--tint); color: var(--ink-2); text-decoration: none; }
.tag-cloud a:hover { background: var(--rose); color: var(--ink); }
.pager { display: flex; justify-content: center; gap: 6px; margin: 34px 0 10px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 999px; padding: 0 10px; font-weight: 800; text-decoration: none; color: var(--ink); }
.pager a { background: var(--surface); box-shadow: var(--shadow-sm); }
.pager a:hover { background: var(--tint); }
.pager [aria-current] { background: var(--ink); color: #fff; }
.pager .gap { box-shadow: none; }
.empty { text-align: center; padding: 50px 20px; }
.empty-emoji { font-size: 3rem; margin: 0; }
.empty p { color: var(--ink-2); }

/* ---------- Trang pattern ---------- */
.product { display: grid; gap: 26px; padding-top: 4px; }
.gallery { min-width: 0; }
.gallery-main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); background: var(--tint); scrollbar-width: none; box-shadow: var(--shadow-sm); }
.gallery-main::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; aspect-ratio: 1; cursor: zoom-in; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding: 2px; }
.gallery-thumbs button { flex: 0 0 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--tint); opacity: .7; }
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs button.on { border-color: var(--rose-deep); opacity: 1; }
.product-info h1 { margin-bottom: .2em; }
.product-price { display: flex; align-items: center; gap: 10px; margin: 10px 0 18px; }
.product-price .price { font-size: 1.6rem; }
.buy-row { display: flex; flex-wrap: wrap; gap: 10px; }
.buy-row .btn { flex: 1 1 180px; }
.assure { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 6px; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.specs { margin: 0 0 18px; background: var(--surface); border-radius: 16px; padding: 6px 16px; box-shadow: var(--shadow-sm); }
.specs > div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.specs > div:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); font-weight: 700; font-size: .9rem; }
.specs dd { margin: 0; font-weight: 600; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.pin-btn, .share-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: .5em 1em; font-weight: 800; font-size: .88rem; cursor: pointer; text-decoration: none; }
.pin-btn { background: #e60023; color: #fff; }
.pin-btn:hover { background: #c5001e; color: #fff; }
.share-btn { background: var(--tint); color: var(--ink); }
.product-body { display: grid; gap: 26px; padding-top: 30px; }
.product-side { display: grid; gap: 16px; align-content: start; }
.side-box { background: var(--surface); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.checks li::before { content: '✓'; color: var(--ok); font-weight: 800; margin-right: 8px; }
.files { list-style: none; padding: 0; margin: 0 0 10px; }
.files li { display: flex; justify-content: space-between; padding: 6px 0; font-weight: 700; }
.files small { color: var(--muted); }
.stitch-chips { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.stitch-chips a { display: inline-block; padding: .3em .8em; border-radius: 999px; background: var(--tint-2); color: var(--ink); text-decoration: none; font-size: .9rem; }
.stitch-chips a:hover { background: var(--sage); }
.buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(59, 42, 47, .3); transform: translateY(110%); transition: transform .25s; }
.buy-bar.show { transform: none; }
.buy-bar-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.buy-bar-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; margin: 10px 0 20px; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); font-size: 1.6rem; cursor: pointer; color: var(--rose-deep); box-shadow: var(--shadow); }

/* Phóng to ảnh */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(30, 20, 23, .92); display: grid; place-items: center; padding: 20px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; }
.lightbox button { position: absolute; top: 14px; right: 14px; color: #fff; background: rgba(255, 255, 255, .15); }
.lightbox .lb-prev, .lightbox .lb-next { top: 50%; transform: translateY(-50%); }
.lightbox .lb-prev { left: 10px; right: auto; }
.lightbox .lb-next { right: 10px; }

/* ---------- Nội dung bài viết ---------- */
.prose { font-size: 1.06rem; line-height: 1.75; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: 16px; margin: 1.2em auto; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--rose-deep); font-weight: 800; }
.prose blockquote { margin: 1.4em 0; padding: .8em 1.2em; border-left: 4px solid var(--rose); background: var(--surface); border-radius: 0 14px 14px 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.2em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5em .7em; text-align: left; }
.prose th { background: var(--tint); }
.prose code { background: var(--tint); border-radius: 6px; padding: .1em .4em; font-size: .92em; }
.post-head { padding-top: 10px; }
.post-meta { color: var(--muted); font-weight: 600; }
.post-cover { margin: 10px auto 26px; }
.post-cover img { border-radius: var(--radius); width: 100%; }
.post-nl { background: var(--promo-b); border-radius: var(--radius); padding: 24px; margin: 30px 0 10px; }
.preview-bar { background: var(--butter); text-align: center; padding: 8px; font-weight: 800; }

/* Mũi móc */
.stitch-filter { max-width: 420px; margin-bottom: 18px; border-radius: 999px !important; }
.stitch-group { margin-bottom: 30px; }
.stitch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.stitch-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; background: var(--surface); border-radius: 16px; padding: 14px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); }
.stitch-card:hover { box-shadow: var(--shadow); color: var(--ink); }
.stitch-card .abbr { grid-row: span 2; }
.stitch-card small { color: var(--ink-2); line-height: 1.35; }
.abbr { display: inline-grid; place-items: center; min-width: 52px; height: 52px; padding: 0 8px; border-radius: 14px; background: var(--tint-2); font-weight: 800; font-family: var(--font); font-size: .95rem; color: #2f5d34; }
.abbr-lg { height: auto; min-width: 0; padding: .1em .5em; font-size: .55em; vertical-align: middle; }
.stitch-page { padding-bottom: 20px; }

/* ---------- Giỏ hàng ---------- */
.cart-page { padding-top: 20px; padding-bottom: 60px; }
.cart-layout { display: grid; gap: 22px; align-items: start; }
.cart-lines ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; background: var(--surface); border-radius: 18px; padding: 12px; box-shadow: var(--shadow-sm); }
.cart-line img, .cart-line .img-ph { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; }
.cart-line a { color: var(--ink); text-decoration: none; font-weight: 800; line-height: 1.3; }
.cart-line .sub { font-size: .85rem; color: var(--muted); }
.cart-line .right { text-align: right; display: grid; gap: 4px; justify-items: end; }
.cart-line .rm { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: .85rem; text-decoration: underline; padding: 0; }
.cart-note { background: #fff4d9; border-radius: 12px; padding: 10px 14px; margin-top: 12px; font-size: .92rem; }
.checkout { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.checkout label { margin-top: 2px; }
.totals { margin: 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); padding: 8px 0; }
.totals > div { display: flex; justify-content: space-between; padding: 4px 0; }
.totals dt { color: var(--ink-2); }
.totals dd { margin: 0; font-weight: 700; }
.totals .total { font-size: 1.25rem; padding-top: 8px; }
.totals .total dt { color: var(--ink); font-weight: 800; }
.totals .total dd { font-weight: 800; }
.totals .vnd dd, .totals .vnd dt { color: var(--muted); font-size: .92rem; }
.buyer { display: grid; gap: 4px; }
.buyer .check { margin-top: 8px; }
.pay { display: grid; gap: 10px; }
.pay-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--tint); border-radius: 999px; padding: 4px; }
.pay-tabs button { border: 0; background: transparent; border-radius: 999px; padding: .6em .4em; font-weight: 800; font-size: .88rem; cursor: pointer; }
.pay-tabs [aria-selected='true'] { background: var(--surface); box-shadow: var(--shadow-sm); }
.paypal-box { min-height: 50px; }
.secure { margin: 0; text-align: center; font-size: .85rem; color: var(--muted); }
.qr-dialog { border: 0; border-radius: 24px; padding: 26px 22px 20px; width: min(400px, 94vw); text-align: center; box-shadow: var(--shadow); }
.qr-dialog::backdrop { background: rgba(59, 42, 47, .5); }
.qr-dialog img { margin: 6px auto 10px; border-radius: 12px; }
.qr-amount { font-size: 1.6rem; font-weight: 800; margin: 0 0 8px; }
.qr-info { margin: 0 0 10px; text-align: left; background: var(--tint); border-radius: 14px; padding: 8px 14px; }
.qr-info > div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.qr-info dt { color: var(--muted); }
.qr-info dd { margin: 0; text-align: right; font-weight: 700; }
.qr-status { font-weight: 800; }
.copy { border: 0; background: var(--surface); border-radius: 999px; padding: .2em .7em; font-weight: 800; font-size: .8rem; cursor: pointer; }
.dialog-x { position: absolute; top: 8px; right: 8px; font-size: 1.5rem; }

/* ---------- Đơn hàng / tải file ---------- */
.order-page { padding-top: 34px; padding-bottom: 60px; text-align: center; }
.order-page .lead { margin-left: auto; margin-right: auto; }
.dl-list { display: grid; gap: 12px; margin: 26px 0; text-align: left; }
.dl-item { display: flex; gap: 14px; background: var(--surface); border-radius: 18px; padding: 14px; box-shadow: var(--shadow-sm); align-items: flex-start; }
.dl-item img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.dl-item h2 { margin: 2px 0 8px; }
.dl-item ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.order-next { text-align: left; background: var(--tint-2); border-radius: 18px; padding: 16px 20px; }
.order-next p { margin: 6px 0; }
.order-summary { text-align: left; margin-top: 30px; border-top: 1px dashed var(--line); padding-top: 18px; }
.order-summary ul { list-style: none; padding: 0; margin: 0 0 8px; }
.order-summary li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.order-total { display: flex; justify-content: space-between; font-size: 1.1rem; }
.search-404 { max-width: 420px; margin: 20px auto 36px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; background: var(--surface); border-top: 1px solid var(--line); }
.footer-nl { background: linear-gradient(120deg, var(--nl-a), var(--nl-b)); }
.footer-nl-inner { display: grid; gap: 14px; padding: 30px 20px; align-items: center; }
.footer-nl h2 { margin: 0 0 4px; }
.footer-nl p { margin: 0; color: #5a4144; }
.footer-nl .nl-form input[type='email'] { border-color: transparent; }
.footer-inner { display: grid; gap: 26px; padding: 36px 20px 20px; }
.footer-brand p { color: var(--ink-2); margin: 10px 0 14px; max-width: 34ch; }
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-col h3 { font-family: var(--font); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.footer-col a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-col a:hover { color: var(--rose-ink); text-decoration: underline; }
.footer-copy { font-size: .85rem; color: var(--muted); padding-top: 14px; padding-bottom: 30px; border-top: 1px solid var(--line); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 90; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 700;
  display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); transition: opacity .2s, transform .2s; max-width: calc(100vw - 24px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast a { color: var(--butter); font-weight: 800; white-space: nowrap; }
.page-product .toast { bottom: 84px; }

/* ---------- Nút lưu (wishlist) ---------- */
.card { position: relative; }
.wish-btn { position: absolute; top: 8px; right: 8px; z-index: 2; display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--ink-2); cursor: pointer; box-shadow: var(--shadow-sm); transition: color .15s, transform .15s; }
.wish-btn:hover { color: var(--rose-deep); transform: scale(1.06); }
.wish-btn[aria-pressed='true'] { color: var(--rose-deep); }
.wish-btn[aria-pressed='true'] .ico { fill: currentColor; }
.wish-btn.pop { animation: bump .4s; }
.wish-btn-label { position: static; display: inline-flex; align-items: center; width: auto; height: 40px; margin-left: auto; gap: .4em; padding: 0 1em;
  border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); box-shadow: none; font-weight: 800; font-size: .95rem; color: var(--ink); }
.wish-btn-label:hover { transform: none; border-color: var(--rose); }
.wish-item { display: grid; gap: 10px; align-content: start; }
.wishlist-page { padding-top: 24px; padding-bottom: 40px; }
.wishlist-page .section-head h1 { margin: 0; }

/* ---------- Điểm Etsy + ảnh khách cạnh nút mua ---------- */
.rating { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 700; font-size: .93rem; text-decoration: none; }
a.rating:hover { color: var(--ink); text-decoration: underline; }
.rating b { color: var(--ink); }
.stars { --pct: calc(var(--r) / 5 * 100%); letter-spacing: 1px; font-size: 1.02rem;
  background: linear-gradient(90deg, #e9a92a var(--pct), var(--line) var(--pct)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy .rating { margin-top: 14px; }
.proof { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: -6px 0 18px; }
.proof-makes { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 700; font-size: .93rem; text-decoration: none; }
.proof-makes:hover { color: var(--ink); text-decoration: underline; }
.proof-faces { display: inline-flex; }
.proof-faces img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg); margin-left: -8px; }
.proof-faces img:first-child { margin-left: 0; }

/* ---------- Ngăn giỏ hàng trượt ra ---------- */
.cart-drawer { margin: 0 0 0 auto; height: 100dvh; max-height: none; width: min(420px, 100vw); border: 0; padding: 0; background: var(--bg); color: var(--ink);
  box-shadow: var(--shadow); display: flex; flex-direction: column; overflow-y: auto; }
.cart-drawer:not([open]) { display: none; }
.cart-drawer[open] { animation: slide-in .25s cubic-bezier(.2, .8, .2, 1); }
@keyframes slide-in { from { transform: translateX(100%); } }
.cart-drawer::backdrop { background: rgba(59, 42, 47, .45); }
.cd-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 8px 20px; position: sticky; top: 0; background: var(--bg); z-index: 1; }
.cd-head h2 { margin: 0; font-size: 1.3rem; }
.cd-head span { color: var(--muted); font-family: var(--font); font-size: 1rem; }
.cd-added { margin: 0 20px 10px; background: var(--tint-2); border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: .93rem; }
.cd-lines { list-style: none; padding: 0 20px; margin: 0; display: grid; gap: 10px; }
.cd-lines .cart-line { grid-template-columns: 64px 1fr auto; padding: 10px; gap: 12px; }
.cd-lines .cart-line img, .cd-lines .cart-line .img-ph { width: 64px; height: 64px; }
.cart-drawer .cart-note { margin: 10px 20px 0; }
.cd-empty { text-align: center; padding: 40px 20px; color: var(--ink-2); }
.cd-foot { margin-top: auto; padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 10px; position: sticky; bottom: 0; background: var(--bg); border-top: 1px solid var(--line); }
.cd-foot .totals { border: 0; padding: 0; }
.cd-foot p { margin: 0; }
.cart-drawer [data-cd-upsell] { padding: 0 20px; }

/* Gợi ý mua cả bundle */
.upsell { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start; margin-top: 14px; padding: 14px; border-radius: 18px;
  background: color-mix(in srgb, var(--promo-b) 70%, var(--surface)); border: 1.5px dashed var(--rose); }
.upsell img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.upsell strong { display: block; line-height: 1.3; }
.upsell p { margin: 4px 0 10px; font-size: .9rem; color: var(--ink-2); }
.upsell s { color: var(--muted); }
.upsell-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: .9rem; font-weight: 700; }

/* ---------- Màn hình lớn ---------- */
@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 18px; }
  .makes-grid { columns: 3; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 800px) {
  .hero { padding: 40px 0 20px; }
  .hero-inner { grid-template-columns: 1.05fr 1fr; gap: 40px; }
  .hero-art { min-height: 460px; }
  .bundle-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-row { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: repeat(3, 1fr); }
  .product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 44px; align-items: start; }
  .product-info { position: sticky; top: calc(var(--header-h) + 16px); }
  .product-body { grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; }
  .bundle-hero { grid-template-columns: 1fr 1fr; }
  .cart-layout { grid-template-columns: minmax(0, 1fr) 400px; }
  .checkout { position: sticky; top: calc(var(--header-h) + 16px); }
  .footer-nl-inner { grid-template-columns: 1fr auto; padding: 36px 20px; }
  .footer-inner { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .filters .count { flex-basis: auto; }
  .gallery-thumbs button { flex-basis: 76px; height: 76px; }
  .buy-bar { display: none; }
}
@media (min-width: 1000px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .makes-grid { columns: 4; }
  .bundle-grid { grid-template-columns: repeat(3, 1fr); }
  .nav { display: flex; }
  .nav-burger { display: none; }
  .search { display: block; }
  .search-toggle { display: none; }
}
@media (max-width: 999px) {
  .logo-text { font-size: 1.3rem; }
  .header-inner { gap: 4px; }
}
@media (max-width: 380px) {
  .logo-text { font-size: 1.15rem; }
  .header-tools .icon-btn { width: 38px; }
  .logo-mark { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Nút xem thử bảng màu (chỉ hiện khi chạy ở máy mình) */
.theme-picker { position: fixed; left: 12px; bottom: 12px; z-index: 70; display: flex; gap: 6px; background: #fff; padding: 6px; border-radius: 999px; box-shadow: var(--shadow); }
.theme-picker button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; cursor: pointer; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.theme-picker button[aria-pressed='true'] { box-shadow: 0 0 0 2px var(--ink); }
