/* Bộ áo Chie Haus (site.json "skin": "chiehaus") — nạp SAU site.css, chỉ shop chiehaus tải file này.
   Phong cách "nhà nhỏ ấm áp": nền gần trắng, chữ viết tay Gaegu cho chữ ngắn (tiêu đề, menu, tên, giá), Nunito cho đoạn văn,
   một màu nhấn đỏ gạch (--rose-deep trong bảng màu kinfolk), hình vẽ nét mảnh. Đợt 1: khung chung (chữ, nút, header, menu, footer). */
@font-face { font-family: 'Gaegu'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/gaegu-400-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-2017, U+201A-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Gaegu'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/gaegu-700-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-2017, U+201A-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Dấu nháy ‘ ’ của Gaegu bị lệch / thừa khoảng trắng → để phông dự phòng vẽ (bỏ U+2018-2019 khỏi unicode-range ở trên) */
/* Klee One rút gọn: chỉ các chữ ちえハウス ありがとう */
@font-face { font-family: 'Klee One'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/klee-one-600-chiehaus.woff2) format('woff2');
  unicode-range: U+3042, U+3046, U+3048, U+304B-304C, U+3061-3062, U+3068-3069, U+308A, U+3094, U+3099, U+30A6, U+30B9-30BA, U+30CF-30D0, U+30F4; }

:root {
  --hand: var(--display);
  --jp: 'Klee One', 'Hiragino Maru Gothic ProN', 'Yu Gothic', sans-serif;
  --paper: #f9f5f0;
  --paper-2: #f2ebe2;
  --cheek: #f4c4bd;
  --radius: 12px;
  --header-h: 100px;
  --shadow: 0 1px 2px rgba(35, 23, 14, .05), 0 8px 24px -12px rgba(35, 23, 14, .18);
  --shadow-sm: 0 1px 2px rgba(35, 23, 14, .05), 0 4px 12px -6px rgba(35, 23, 14, .14);
}
@media (max-width: 999px) { :root { --header-h: 68px; } }

/* ---------- Chữ ---------- */
body { font-size: 16.5px; }
h1, h2, h3, .h3, .h4 { font-family: var(--hand); font-weight: 700; letter-spacing: .01em; line-height: 1.1; font-variation-settings: normal; }
h1 { font-size: clamp(2.4rem, 1.9rem + 2.4vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 1.5rem + 1.2vw, 2.5rem); }
h3, .h3 { font-size: 1.55rem; }
.h4 { font-size: 1.35rem; }
.lead { font-family: var(--hand); font-size: 1.3rem; line-height: 1.4; }
.kicker { font-weight: 700; letter-spacing: .16em; color: var(--rose-ink); }
.section-head h2 { font-size: clamp(1.9rem, 1.6rem + 1.2vw, 2.5rem); }
.section-link { font-family: var(--hand); font-size: 1.25rem; font-weight: 400; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.section-link:hover { color: var(--rose-ink); }

/* ---------- Nút ---------- */
.btn { font-weight: 600; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; padding: .95em 1.8em; }
.btn-lg { font-size: .95rem; padding: 1.1em 2.1em; }
.btn-sm { font-size: .78rem; padding: .7em 1.2em; }
.btn-primary { background: var(--rose-deep); box-shadow: 0 6px 14px -8px rgba(181, 65, 49, .8); }
.btn-primary:hover { background: var(--rose-ink); }
.btn-soft { background: var(--paper-2); }
.btn-soft:hover { background: var(--line); }

/* ---------- Header ---------- */
.site-header { background: color-mix(in srgb, var(--bg) 94%, transparent); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header-inner { gap: 28px; }
.logo { gap: 12px; }
.logo:hover .logo-mark { transform: rotate(-6deg); }
.logo-lines { display: grid; line-height: 1; color: var(--ink); }
.logo-jp { font: 600 14px/1 var(--jp); letter-spacing: .34em; margin-left: 2px; }
.logo-word { font: 700 29px/1 var(--hand); letter-spacing: .16em; margin: 4px 0 5px; }
.logo-sub { font: 400 14px/1 var(--hand); letter-spacing: .05em; color: var(--ink-2); white-space: nowrap; }
.site-header .logo-mark { width: 72px; height: 72px; }
.nav { margin: 0 auto; gap: 4px; align-items: center; }
.nav > a, .nav-drop-btn { position: relative; display: flex; align-items: center; gap: 3px; font: 400 20px/1 var(--hand); color: var(--ink); background: none; border: 0; border-radius: 0; padding: 12px 14px; text-decoration: none; cursor: pointer; }
.nav > a:hover, .nav-drop-btn:hover { background: none; color: var(--ink); }
.nav > a[aria-current], .nav-drop-btn[aria-current] { background: none; color: var(--ink); }
.nav > a::after, .nav-drop-btn::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 1.5px; background: currentColor; transform: scaleX(0); transition: transform .2s; }
.nav-drop-btn::after { right: 32px; }
.nav > a:hover::after, .nav > a[aria-current]::after, .nav-drop-btn:hover::after, .nav-drop-btn[aria-current]::after { transform: scaleX(1); }
.nav-drop { position: relative; }
.nav-drop-btn .ico { transition: transform .2s; }
.nav-drop.open .nav-drop-btn .ico { transform: rotate(180deg); }
.drop-panel { position: absolute; top: calc(100% + 4px); left: 0; z-index: 40; width: 256px; max-height: calc(100vh - 110px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); padding: 10px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.drop-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } /* cầu nối để chuột đi từ nút xuống không bị đóng */
@media (hover: hover) { .nav-drop:hover .drop-panel { opacity: 1; visibility: visible; transform: none; } }
.nav-drop.open .drop-panel { opacity: 1; visibility: visible; transform: none; }
.drop-label { margin: 10px 10px 4px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.drop-cols, .drop-links { display: flex; flex-direction: column; gap: 1px; }
.drop-cols a, .drop-links a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; color: var(--ink); text-decoration: none; font: 400 19px/1.1 var(--hand); }
.drop-cols a:hover, .drop-links a:hover { background: var(--paper); color: var(--ink); }
.drop-cols img, .col-emoji { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; background: var(--paper); flex: none; display: grid; place-items: center; font-size: 20px; }
.drop-cols small { margin-left: auto; font: 12px var(--font); color: var(--muted); }
.header-tools { margin-left: 0; gap: 4px; }
.header-tools .icon-btn { width: 44px; height: 44px; color: var(--ink); }
.header-tools .icon-btn:hover { background: var(--paper); }
.cart-count { background: var(--rose-deep); color: #fff; border: 2px solid var(--bg); top: 1px; right: -1px; }
/* Tim trên header chỉ hiện khi đã lưu pattern (ảnh mẫu không có tim; vào danh sách lưu qua menu Patterns) */
.wish-link:has([data-wish-count][hidden]) { display: none; }

/* Ô tìm kiếm: xổ xuống dưới header ở mọi cỡ màn hình */
.search, body.search-open .search { display: none; }
body.search-open .site-header .search { display: block; position: absolute; left: 0; right: 0; top: 100%; z-index: 35; background: var(--surface);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 18px max(var(--gut), calc((100% - var(--wrap)) / 2)) 22px; }
.search input, .search input:focus, body.search-open .search input { width: 100%; height: 50px; padding: 0 56px 0 22px; font-size: 1rem; }
.search-btn { top: 25px; right: max(calc(var(--gut) + 6px), calc((100% - var(--wrap)) / 2 + 6px)); width: 36px; height: 36px; }
body.search-open .site-header .suggest { left: max(var(--gut), calc((100% - var(--wrap)) / 2)); right: auto; top: calc(100% - 14px); width: min(560px, calc(100% - 40px)); }
.suggest .s-title { font-family: var(--hand); font-size: 1.15rem; font-weight: 400; }
.search-toggle { display: inline-grid; }
@media (min-width: 1000px) { .search-toggle { display: inline-grid; } .search { display: none; } body.search-open .site-header .search { display: block; } }

/* Màn hình vừa: menu nhỏ lại, bỏ dòng phụ của logo */
@media (max-width: 1180px) {
  .header-inner { gap: 14px; }
  .nav > a, .nav-drop-btn { font-size: 18px; padding: 12px 9px; }
  .nav > a::after { left: 9px; right: 9px; }
  .nav-drop-btn::after { left: 9px; right: 27px; }
  .logo-sub { display: none; }
  .site-header .logo-mark { width: 60px; height: 60px; }
}
/* Điện thoại / máy tính bảng: ☰ trái, logo, kính lúp + giỏ phải */
@media (max-width: 999px) {
  .header-inner { gap: 4px; }
  .logo { margin-right: auto; gap: 8px; }
  .site-header .logo-mark { width: 46px; height: 46px; }
  .logo-jp { font-size: 10px; letter-spacing: .3em; }
  .logo-word { font-size: 22px; margin: 3px 0 0; }
  .nav-burger { margin-left: -8px; }
  .header-tools { gap: 0; margin-right: -8px; }
  .acct-link { display: none; }
}
@media (max-width: 380px) {
  .logo-word { font-size: 19px; letter-spacing: .12em; }
  .site-header .logo-mark { width: 40px; height: 40px; }
}

/* ---------- Menu điện thoại ---------- */
.drawer { background: var(--bg); }
.drawer-head { border-bottom: 0; padding: 14px 12px 6px 18px; }
.drawer-head .logo-mark { width: 50px; height: 50px; }
.drawer-head .logo-word { font-size: 22px; }
.drawer-head .logo-sub { display: none; }
.drawer-nav { padding: 6px 20px 10px; }
.drawer-nav a { font: 400 23px/1.1 var(--hand); padding: 13px 4px; border-radius: 0; border-bottom: 1px dashed var(--line); }
.drawer-nav a:hover { background: none; color: var(--rose-ink); }
.drawer-label { margin: 14px 24px 8px; color: var(--muted); }
.drawer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 20px 14px; }
.drawer-cols a { flex-direction: column; justify-content: center; gap: 6px; padding: 10px 4px 9px; background: var(--paper); border-radius: 12px; text-align: center; font: 400 17px/1.05 var(--hand); }
.drawer-cols a:hover { background: var(--paper-2); }
.drawer-cols img, .drawer-cols .col-emoji { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.drawer-foot { border-top: 0; }
.drawer-foot > a { font: 400 19px/1.2 var(--hand); }

/* ---------- Mạng xã hội: icon đen, không nền ---------- */
.socials { gap: 10px; }
.socials a { width: 36px; height: 36px; background: none; color: var(--ink); }
.socials a:hover { background: var(--paper); color: var(--rose-deep); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 70px; background: var(--bg); border-top: 1px solid var(--line); position: relative; }
.footer-inner { grid-template-columns: 1fr 1fr; gap: 26px 20px; padding-top: 34px; padding-bottom: 0; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand .logo-mark { width: 84px; height: 84px; }
.footer-col { gap: 2px; }
.footer-col h3 { font: 700 .82rem/1 var(--font); letter-spacing: .04em; text-transform: none; color: var(--ink); margin: 6px 0 10px; }
.footer-col a { font: 400 18px/1.25 var(--hand); color: var(--ink-2); padding: 2px 0; }
.footer-col a:hover { color: var(--rose-ink); }
.footer-letter { grid-column: 1 / -1; }
.footer-letter h3 { display: flex; align-items: center; gap: 10px; margin: 4px 0 6px; font: 400 21px/1.2 var(--hand); }
.footer-letter p { margin: 0 0 12px 32px; font: 400 17px/1.3 var(--hand); color: var(--ink-2); }
.footer-letter .socials { margin-top: 16px; }
.footer-copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; border-top: 0; padding-top: 6px; padding-bottom: 24px; font-size: .8rem; }
.ground { position: relative; margin-top: 18px; color: var(--ink); overflow: hidden; }
.grass { display: block; width: 100%; height: 101px; margin-top: -21px; pointer-events: none; }
.grass-bunny { transform-box: fill-box; transform-origin: bottom center; animation: bunny-peek 7s ease-in-out infinite; }
@keyframes bunny-peek { 0%, 78%, 100% { translate: 0 0; rotate: 0deg; } 84% { translate: 0 4px; rotate: -3deg; } 92% { rotate: 2deg; } }
@media (min-width: 800px) {
  .footer-inner { grid-template-columns: 1.45fr .8fr .95fr .8fr 1.6fr; gap: 30px; }
  .footer-brand, .footer-letter { grid-column: auto; }
}

/* Ô đăng ký thư: ô bo tròn + nút đỏ mũi tên dính liền */
.nl-form.nl-arrow { flex-wrap: wrap; gap: 0; max-width: 400px; }
.nl-arrow input[type='email'] { flex: 1 1 0; min-width: 0; border: 1.5px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px; background: var(--surface); padding: .8em 1.2em; font-size: .92rem; }
.nl-arrow input[type='email']:focus { outline: none; border-color: var(--ink-2); }
.nl-go { flex: 0 0 56px; border: 0; border-radius: 0 999px 999px 0; background: var(--rose-deep); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.nl-go:hover { background: var(--rose-ink); }
.nl-go:disabled { opacity: .6; }
.nl-arrow .nl-msg { margin-top: 8px; }

/* ---------- Ngăn giỏ hàng ---------- */
.cd-head h2 { font-size: 1.9rem; }
.cd-added { background: #eef3e6; color: #3e5a28; font: 400 18px/1.25 var(--hand); }
.cart-drawer::backdrop { background: rgba(35, 23, 14, .35); }

/* ---------- Đường dẫn, đầu trang ---------- */
.crumbs { font-size: .82rem; }
.page-head h1 { margin-top: 6px; }

/* Hình vẽ (bông hoa cạnh tiêu đề…) */
.doodle { display: inline-block; vertical-align: middle; flex: none; }

/* ================= Đợt 2: thẻ pattern (mọi trang) + trang chủ ================= */
/* Mép giấy xé của ảnh lớn: máy tính xé trái + dưới, điện thoại chỉ xé dưới */

/* ---------- Thẻ pattern ---------- */
.grid { gap: 28px 22px; }
.card-img { border-radius: var(--radius); box-shadow: none; background: var(--paper-2); }
.card-link:hover .card-img img { transform: scale(1.04); }
.card-title { font: 400 20px/1.15 var(--hand); margin: 12px 2px 4px; color: var(--ink); }
.card-link:hover .card-title { color: var(--rose-ink); }
.card-meta { gap: 8px; row-gap: 6px; flex-wrap: wrap; align-items: center; justify-content: flex-start; margin-top: 2px; }
.card-meta .price { font: 700 27px/1 var(--hand); color: var(--rose-deep); white-space: nowrap; }
.card-meta .price s { margin-left: 3px; font: 400 13px/1 var(--hand); color: var(--muted); }
.card-meta .price-free { color: #5b763f; }
/* Thẻ đang giảm giá: giá + cuộn len vẫn một hàng */
.card-meta:has(s) { flex-wrap: nowrap; gap: 4px; }
.card-meta:has(s) .diff-yarn { gap: 1px; }
.card-meta:has(s) .diff-yarn img { width: 17px; height: 17px; }
.card-meta .diff { margin-left: auto; }
.diff-dots i { width: 7px; height: 7px; }
.wish-btn { top: 9px; right: 9px; width: 34px; height: 34px; background: #fff; color: var(--rose-deep); box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.wish-btn .ico { width: 18px; height: 18px; }
/* Nhãn góc dưới phải ảnh: hình vẽ New / Free / Sale; chưa có hình thì con dấu tròn */
.badge { left: auto; top: auto; right: 6px; bottom: 6px; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 50%; background: var(--rose-deep); color: #fff;
  font: 800 11px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; transform: rotate(-12deg); box-shadow: inset 0 0 0 2px var(--rose-deep), inset 0 0 0 4px rgba(255, 255, 255, .75); }
.badge-free { background: #5b763f; color: #fff; box-shadow: inset 0 0 0 2px #5b763f, inset 0 0 0 4px rgba(255, 255, 255, .75); }
.badge-sale { background: var(--rose-deep); }
.badge-art { width: 76px; height: auto; padding: 0; background: none; border-radius: 0; box-shadow: none; transform: none; }
.badge-art img { display: block; width: 100%; height: auto; }
@media (max-width: 559px) {
  .grid { gap: 22px 14px; }
  .card-title { font-size: 18px; }
  .card-meta .price { font-size: 22px; }
  .card-meta:has(s) { flex-wrap: wrap; }
  .diff-yarn { gap: 1px; }
  .diff-yarn img, .card-meta:has(s) .diff-yarn img { width: 16px; height: 16px; }
  .wish-btn { width: 30px; height: 30px; top: 7px; right: 7px; }
  .badge { width: 40px; height: 40px; font-size: 10px; }
  .badge-art { width: 62px; height: auto; }
}

/* ---------- Tiêu đề khối có bông hoa đỏ ---------- */
.title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.title-row h2 { margin: 0; font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.5rem); }
.title-row .doodle { width: 28px; height: 28px; margin-left: 10px; vertical-align: -2px; } /* hoa đi liền chữ, xuống dòng cùng chữ */
@media (max-width: 559px) { .title-row { gap: 10px; } .title-row .doodle { width: 21px; height: 21px; margin-left: 6px; } .title-row .section-link { font-size: 1.1rem; } }
.cozy-home .section { padding-top: 0; padding-bottom: 0; margin-top: 64px; }
@media (max-width: 799px) { .cozy-home .section { margin-top: 44px; } }
.link-small { font: 700 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Hero ---------- */
.cozy-hero { padding: 18px 0 0; overflow: visible; }
.cozy-hero .hero-inner { grid-template-columns: 1fr; gap: 0; align-items: start; }
.hero-copy { position: relative; z-index: 2; padding: 18px 0 40px; }
.hero-kicker { display: inline-block; position: relative; margin: 0 0 14px; font: 400 17px/1.25 var(--hand); transform: rotate(-9deg); transform-origin: left; color: var(--ink); }
.hero-kicker .doodle { position: absolute; right: -36px; top: -6px; color: var(--rose-deep); }
.cozy-hero h1 { position: relative; margin: 0 0 30px 12px; font-size: clamp(2.6rem, 1.6rem + 3.6vw, 3.9rem); line-height: 1.04; transform: rotate(-7deg); transform-origin: left; }
.hero-squiggle { position: absolute; left: 34%; bottom: -24px; width: 40%; color: var(--rose-deep); }
.hero-spark { position: absolute; left: -34px; top: 42%; color: var(--rose-deep); }
.hero-fl1 { position: absolute; right: -6px; top: 30%; }
.hero-fl2 { position: absolute; right: 12%; bottom: -58px; display: none; }
.cozy-hero .hero-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; margin: 46px 0 24px; max-width: 340px; font: 400 19px/1.45 var(--hand); letter-spacing: .03em; color: var(--ink-2); }
.hero-mascot { position: absolute; right: -2px; bottom: 34px; width: 84px; pointer-events: none; }
.hero-mascot svg { width: 100%; height: auto; display: block; }
.cozy-hero .hero-art { position: relative; order: -1; min-height: 0; height: 300px; filter: drop-shadow(0 10px 18px rgba(35, 23, 14, .12)); }
.cozy-hero .hero-art::before { display: none; }
.hero-slides { position: absolute; inset: 0; clip-path: var(--torn-all); background: var(--paper-2); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.hero-slide.on { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-empty { display: grid; place-items: center; height: 100%; background: var(--paper); }
.hero-empty svg { width: min(220px, 50%); height: auto; }
.hero-pager { position: absolute; right: 16px; bottom: 30px; z-index: 2; display: flex; align-items: center; gap: 4px; padding: 5px 8px; border-radius: 10px; background: #fff; box-shadow: var(--shadow-sm); font: 700 13px/1 var(--font); letter-spacing: .1em; }
.hero-pager button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
.hero-pager button:hover { background: var(--paper); }
@media (min-width: 900px) {
  .cozy-hero .hero-inner { grid-template-columns: 36% 1fr; align-items: center; }
  .hero-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 26px 40px 56px 0; }
  .hero-kicker { font-size: 19px; margin-bottom: 22px; }
  .cozy-hero h1 { margin: 0 0 30px 16px; font-size: clamp(2.6rem, 1rem + 3.2vw, 3.9rem); }
  .hero-fl2 { display: block; }
  .cozy-hero .hero-text { margin-top: 50px; font-size: 20px; }
  .hero-mascot { right: -40px; bottom: 0; width: 120px; }
  .cozy-hero .hero-art { order: 0; height: 500px; }
  .hero-pager { right: 28px; bottom: 22px; }
}

/* ---------- Dải 4 điểm mạnh ---------- */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 0; padding: 24px 0 6px; border-top: 1px solid var(--line); }
.feature { padding: 6px 12px; text-align: center; text-decoration: none; color: var(--ink); }
.feature:nth-child(even) { border-left: 1px solid var(--line); }
.feature-icon { display: block; width: 56px; height: 56px; margin: 0 auto 10px; transition: transform .25s; }
.feature-icon svg { width: 100%; height: 100%; }
.feature:hover { color: var(--ink); }
.feature:hover .feature-icon { transform: rotate(-6deg) scale(1.06); }
.feature h2 { margin: 0 0 8px; font-size: 21px; font-weight: 400; }
.feature p { margin: 0; font: 700 10.5px/1.6 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
@media (min-width: 800px) {
  .features { grid-template-columns: repeat(4, 1fr); padding-top: 28px; }
  .feature + .feature { border-left: 1px solid var(--line); }
  .feature h2 { font-size: 24px; }
  .feature p { font-size: 11.5px; letter-spacing: .16em; }
}

/* ---------- Featured / New: 5 cột trên máy tính, cuộn ngang trên điện thoại ---------- */
@media (min-width: 1000px) { .cozy-home .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 799px) {
  .cozy-home .grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 6px; scrollbar-width: none; }
  .cozy-home .grid .card { flex: 0 0 44%; scroll-snap-align: start; }
}

/* ---------- Bộ 3 thẻ ---------- */
.trio { display: grid; grid-template-columns: 1fr; gap: 18px; }
.tile { position: relative; display: block; min-height: 220px; border-radius: 14px; overflow: hidden; background: var(--paper); color: var(--ink); text-decoration: none; transition: transform .25s, box-shadow .25s; }
.tile:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); }
.tile h3 { margin: 0; font-size: 32px; line-height: 1.05; }
.tile p { font: 400 17px/1.3 var(--hand); color: var(--ink-2); }
.tile-pic img { width: 100%; height: 100%; object-fit: cover; }
.tile-video { display: grid; grid-template-columns: 46% 54%; background: var(--surface); border: 1px solid var(--line); }
.tile-note { position: relative; padding: 30px 8px 18px 22px; }
.tile-note h3 { font-size: 28px; transform: rotate(-8deg); transform-origin: left; }
.tile-note p { margin: 30px 0 0; font-size: 15px; transform: rotate(-8deg); transform-origin: left; }
.tape { position: absolute; left: -8px; top: 14px; width: 74px; height: 22px; background: rgba(214, 196, 170, .8); transform: rotate(-12deg); }
.tile-video .tile-pic { position: relative; }
.tile-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 62px; height: 62px; border: 2.5px solid #fff; border-radius: 50%;
  background: rgba(35, 23, 14, .35); backdrop-filter: blur(3px); color: #fff; transition: background .2s; }
.tile:hover .tile-play { background: var(--rose-deep); }
.tile-text { padding: 28px 26px; }
.tile-text p { max-width: 230px; margin: 16px 0 20px; }
.tile-flower { position: absolute; top: 20px; right: 22px; }
.tile-doodle { position: absolute; right: 12px; bottom: 10px; width: 84px; }
.tile-doodle svg { width: 100%; height: auto; }
.tile-journal { display: grid; grid-template-columns: 1fr 44%; }
.tile-text-in { padding: 28px 8px 26px 26px; }
.tile-text-in p { margin: 16px 0 20px; }
@media (min-width: 640px) { .trio { grid-template-columns: 1fr 1fr; } .tile-video { grid-column: 1 / -1; } }
@media (min-width: 1000px) {
  .trio { grid-template-columns: 1.55fr 1fr 1.3fr; gap: 22px; }
  .trio-2 { grid-template-columns: 1.5fr 1fr; }
  .tile-video { grid-column: auto; grid-template-columns: 40% 60%; }
  .tile { min-height: 250px; }
  .tile h3 { font-size: 34px; }
  .tile-note { padding: 34px 10px 20px 26px; }
  .tile-note h3 { font-size: 30px; }
  .tile-video .tile-play { left: -2px; }
}

/* ---------- Shop by Category ---------- */
.cats-row { display: flex; gap: 12px; overflow-x: auto; margin: 0 calc(-1 * var(--gut)); padding: 2px var(--gut) 8px; scrollbar-width: none; }
.cat-tile { flex: 0 0 104px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px 14px; border-radius: var(--radius); background: var(--paper); color: var(--ink); text-align: center; text-decoration: none; transition: background .2s; }
.cat-tile:hover { background: var(--paper-2); color: var(--ink); }
.cat-art { display: grid; place-items: center; width: 64px; height: 64px; transition: transform .25s; }
.cat-art svg, .cat-art img { width: 64px; height: 64px; }
.cat-art img { border-radius: 50%; object-fit: cover; }
.cat-emoji { font-size: 40px; }
.cat-tile:hover .cat-art { transform: translateY(-4px) rotate(-4deg); }
.cat-name { font: 400 19px/1.1 var(--hand); }
.cat-tile small { margin-top: -4px; font-size: 12px; color: var(--muted); }
@media (min-width: 1000px) { .cats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; margin: 0; padding: 0; overflow: visible; } .cat-name { font-size: 20px; } }

/* ---------- Băng rôn bundle ---------- */
.banner { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: center; padding: 22px; border-radius: 18px; background: var(--rose); color: var(--ink); text-decoration: none; }
.banner:hover { color: var(--ink); }
.banner h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 30px; }
.banner p { margin: 6px 0 16px; font: 400 19px/1.3 var(--hand); color: var(--ink-2); }
.banner-stack { display: flex; order: -1; padding-left: 26px; }
.banner-stack img { width: 84px; height: 84px; margin-left: -26px; border: 3px solid #fff; border-radius: 14px; object-fit: cover; box-shadow: var(--shadow-sm); }
.banner-stack img:nth-child(odd) { transform: rotate(-6deg); }
.banner-stack img:nth-child(even) { transform: rotate(5deg); }
@media (min-width: 700px) { .banner { grid-template-columns: 1fr auto; padding: 28px 34px; } .banner-stack { order: 0; } .banner h3 { font-size: 34px; } }

/* ---------- Quà đăng ký thư ---------- */
.gift { display: grid; grid-template-columns: 1fr; justify-items: center; align-items: center; gap: 14px; padding: 22px 18px; border: 1.5px dashed #ddd2c4; border-radius: 20px; text-align: center; }
.gift-img { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; transform: rotate(-5deg); box-shadow: var(--shadow); }
.gift-art { display: grid; place-items: center; background: var(--paper); }
.gift h2 { margin: 0; font-size: 27px; }
.gift h2 .doodle { margin-left: 8px; vertical-align: -3px; }
.gift p { margin: 6px 0 0; font: 400 18px/1.3 var(--hand); color: var(--ink-2); }
.gift .nl-form.nl-arrow { width: 100%; max-width: 320px; margin: 0 auto; }
.gift .nl-arrow input[type='email'] { height: 44px; padding: 0 8px 0 18px; font-size: 15px; }
.gift .nl-go { flex: 0 0 48px; height: 44px; }
.gift .nl-msg:empty { display: none; }
@media (min-width: 900px) { .gift { grid-template-columns: auto minmax(0, 1fr) 320px; justify-items: stretch; gap: 26px; padding: 20px 30px; text-align: left; } .gift-img { width: 92px; height: 92px; } .gift h2 { font-size: 30px; } }

/* ---------- Made by You: ảnh polaroid nghiêng ---------- */
.polaroids { display: flex; gap: 18px; overflow-x: auto; margin: 0 calc(-1 * var(--gut)); padding: 14px var(--gut); scrollbar-width: none; }
.polaroid { flex: 0 0 150px; margin: 0; padding: 10px 10px 14px; background: #fff; border-radius: 4px; box-shadow: var(--shadow); transition: transform .25s; }
.polaroid:nth-child(odd) { transform: rotate(-2.4deg); }
.polaroid:nth-child(even) { transform: rotate(2deg); }
.polaroid:hover { transform: rotate(0) scale(1.04); }
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.polaroid figcaption { margin-top: 10px; font: 400 17px/1.1 var(--hand); text-align: center; }
.polaroid small { display: block; margin-top: 3px; font: 12px var(--font); color: var(--muted); }
@media (min-width: 900px) { .polaroids { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 14px 0; overflow: visible; } }

/* ---------- Hi, I'm Chie ---------- */
.meet { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 10px; padding: 24px 20px; border-radius: 20px; background: var(--paper); text-align: center; }
.meet-art { width: 120px; }
.meet-art svg { width: 100%; height: auto; display: block; }
.meet-jp { display: block; margin-bottom: 8px; font: 600 15px/1 var(--jp); letter-spacing: .3em; color: var(--rose-ink); }
.meet h2 { margin: 0 0 8px; font-size: 32px; }
.meet p { max-width: 560px; margin: 0 0 12px; color: var(--ink-2); }
.meet .socials { justify-content: center; margin-top: 8px; }
@media (min-width: 900px) { .meet { grid-template-columns: 160px 1fr auto; justify-items: stretch; gap: 34px; padding: 26px 34px; text-align: left; } .meet h2 { font-size: 40px; } .meet .socials { justify-content: flex-start; } }

/* ================= Đợt 3: trang danh sách (All / Free / bộ sưu tập / tag / tìm kiếm) + thẻ ================= */
/* Ảnh thứ hai hiện dần khi rê chuột (chỉ máy có chuột) */
.card-img-alt { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; pointer-events: none; }
@media (hover: hover) { .card-link:hover .card-img-alt { opacity: 1; } }
/* Độ khó bằng cuộn len */
.diff-yarn { display: inline-flex; gap: 3px; color: var(--muted); }
.diff-yarn svg, .diff-yarn img { display: block; flex: none; }
.diff-yarn img { width: 21px; height: 21px; }
.diff-yarn .yarn-off { filter: grayscale(1) brightness(1.7) opacity(.38); }

/* Đầu trang: tiêu đề viết tay + hoa đỏ, mèo vẽ góc phải */
.cozy-head { position: relative; padding-top: 6px; padding-bottom: 18px; }
.cozy-head h1 { margin: 6px 0 0; max-width: 80%; }
.cozy-head h1 .doodle { width: 32px; height: 32px; margin-left: 12px; vertical-align: -2px; }
.cozy-head .lead { max-width: 560px; margin: 10px 0 0; color: var(--ink-2); }
.head-doodle { position: absolute; right: var(--gut); bottom: 6px; width: 120px; }
.head-doodle svg { width: 100%; height: auto; display: block; }
@media (max-width: 799px) { .head-doodle { width: 70px; right: 14px; bottom: auto; top: 54px; } .cozy-head h1, .cozy-head .lead { max-width: calc(100% - 70px); } .cozy-head h1 .doodle { width: 24px; height: 24px; } }

/* Hàng ô danh mục nhỏ */
.cats-sm { margin-top: 6px; }
.cats-sm .cat-tile { flex-basis: 86px; padding: 10px 6px 9px; gap: 4px; border: 1.5px solid transparent; }
.cats-sm .cat-art, .cats-sm .cat-art svg, .cats-sm .cat-art img { width: 44px; height: 44px; }
.cats-sm .cat-emoji { font-size: 28px; }
.cats-sm .cat-name { font-size: 17px; }
.cat-tile.on { border-color: var(--ink); background: var(--surface); }
@media (min-width: 1000px) { .cats-sm { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; } .cats-sm .cat-tile { flex: none; } }

/* Thanh lọc: số pattern · nút độ khó · giá · sắp xếp */
.cozy-filters { align-items: center; gap: 10px 12px; margin: 22px 0 24px; padding: 12px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.cozy-filters .count { flex-basis: 100%; margin: 0; font: 400 21px/1 var(--hand); color: var(--ink); }
.cozy-filters .count strong { font-weight: 700; }
.level-chips { position: relative; /* giữ chữ ẩn .sr-only trong khung cuộn, không làm trang tràn ngang */ display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--gut)); padding: 2px var(--gut); flex-basis: calc(100% + 2 * var(--gut)); scrollbar-width: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); color: var(--ink);
  font: 400 17px/1 var(--hand); white-space: nowrap; }
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.on .diff-yarn { color: #fff; }
.chip .diff-yarn svg circle[fill="none"] { stroke: currentColor; }
.chip .diff-yarn { gap: 1px; }
.chip .diff-yarn img { width: 15px; height: 15px; }
.chip.on .diff-yarn .yarn-off { filter: grayscale(1) brightness(2) opacity(.5); }
.cozy-filters label { flex: 1 1 0; }
.cozy-filters select { width: 100%; min-width: 0; padding: 8px 36px 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; background-color: var(--surface); font: 400 17px/1 var(--hand); color: var(--ink); }
/* Máy tính: hàng 1 = số pattern (trái) + giá, sắp xếp (phải); hàng 2 = nút độ khó — không còn rớt dòng lung tung */
@media (min-width: 900px) {
  .cozy-filters .count { flex-basis: auto; margin-right: auto; }
  .level-chips { order: 3; flex-basis: 100%; margin: 0; padding: 0; overflow: visible; flex-wrap: wrap; }
  .cozy-filters label { flex: none; }
  .cozy-filters select { width: auto; }
}

/* Phân trang tròn */
.pager { gap: 8px; margin-top: 40px; }
.pager a, .pager span { min-width: 42px; height: 42px; border: 1.5px solid var(--line); border-radius: 50%; background: var(--surface); box-shadow: none; font: 400 20px/1 var(--hand); color: var(--ink); }
.pager a:hover { border-color: var(--ink); background: var(--surface); }
.pager [aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager .gap { border: 0; background: none; }

/* Tag: chữ viết tay rời, không nền */
.tag-cloud { gap: 6px 16px; margin-top: 40px; }
.tag-cloud a { padding: 0; background: none; font: 400 18px/1.3 var(--hand); color: var(--muted); }
.tag-cloud a:hover { background: none; color: var(--rose-ink); text-decoration: underline; }

/* Không có kết quả: thỏ ngồi */
.cozy-empty { padding: 30px 16px 10px; }
.empty-art { display: block; width: 110px; margin: 0 auto 6px; }
.empty-art svg { width: 100%; height: auto; display: block; }
.cozy-empty h2 { margin-bottom: 8px; font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.6rem); }
.cozy-empty p { max-width: 460px; margin: 0 auto 22px; font: 400 20px/1.35 var(--hand); color: var(--ink-2); }
.banner.section { margin-top: 56px; padding-top: 22px; padding-bottom: 22px; }
@media (min-width: 700px) { .banner.section { padding-top: 28px; padding-bottom: 28px; } }

/* ================= Đợt 4: trang pattern, bundle, giỏ hàng, đơn hàng / tải file ================= */
h1 .doodle, h2 .doodle { margin-left: 10px; vertical-align: -2px; }
.btn-soft, .buy-row .btn-soft { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.btn-soft:hover, .buy-row .btn-soft:hover { background: var(--ink); color: #fff; }

/* ---------- Trang pattern ---------- */
.gallery-main { border-radius: 16px; box-shadow: none; background: var(--paper-2); }
.gallery-thumbs button { border-radius: 10px; opacity: .75; background: var(--paper-2); }
.gallery-thumbs button.on { border-color: var(--ink); }
.product-info .kicker { margin-top: 6px; }
.product-info h1 { font-size: clamp(2.6rem, 2rem + 2.4vw, 3.8rem); line-height: 1.05; }
.product-info .lead { font-size: 1.35rem; margin: 6px 0 12px; }
.product-price .price { font: 700 2.4rem/1 var(--hand); color: var(--ink); }
.product-price .price s { font-size: 1.5rem; font-weight: 400; }
.pill { font-family: var(--font); letter-spacing: .08em; text-transform: uppercase; background: var(--rose); color: var(--rose-ink); }
.rating { font-weight: 600; }
.stars { color: #d9952b; }
.buy-row .btn { flex: 1 1 200px; }
.cozy-assure { gap: 10px; margin: 22px 0; color: var(--ink); font: 400 19px/1.25 var(--hand); }
.cozy-assure li { display: flex; align-items: center; gap: 12px; }
.cozy-assure svg { flex: none; width: 34px; height: 34px; }
/* Thẻ "Pattern notes": nền kem, viền nét đứt bên trong như thẻ công thức */
.recipe { position: relative; margin: 0 0 18px; padding: 20px 22px 14px; border-radius: 14px; background: var(--paper); }
.recipe::before { content: ''; position: absolute; inset: 7px; border: 1.5px dashed #ddd2c4; border-radius: 10px; pointer-events: none; }
.recipe h2 { margin: 0 0 10px; font-size: 1.5rem; }
.recipe .specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 0; padding: 0; background: none; box-shadow: none; }
.recipe .specs > div { display: block; padding: 0; border: 0; }
.recipe .specs dt { margin-bottom: 4px; font: 700 11px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.recipe .specs dd { font: 400 19px/1.2 var(--hand); }
.recipe .diff { font: inherit; color: var(--ink); }
.pin-btn, .share-btn, .pin-btn:hover { background: var(--paper-2); }
.product-body { padding-top: 44px; }
.side-box { border: 1.5px solid var(--line); box-shadow: none; border-radius: 14px; background: var(--surface); }
.side-box h2 { font-size: 1.5rem; margin-bottom: 10px; }
.stitch-chips a { background: var(--paper); }
.stitch-chips a:hover { background: var(--paper-2); }
.files li { padding: 8px 12px; margin-bottom: 6px; border-radius: 10px; background: var(--paper); font-weight: 600; }
.prose h2 { font-size: 2rem; }
.prose blockquote { border-left: 3px solid var(--rose-deep); font: 400 1.5rem/1.3 var(--hand); color: var(--ink); }
.buy-bar strong { font: 700 20px/1.1 var(--hand); }
.section-head h2 { display: flex; align-items: center; }

/* Đánh giá: giấy note dán băng keo, xen kẽ nghiêng nhẹ */
.reviews h2 { align-items: center; }
.review-list { gap: 26px 18px; padding-top: 8px; }
.review { position: relative; border: 0; border-radius: 10px; background: var(--paper); padding: 22px 20px 16px; }
.review:nth-child(3n+2) { background: #fbf1d8; transform: rotate(.6deg); }
.review:nth-child(3n) { transform: rotate(-.6deg); }
.review::before { content: ''; position: absolute; top: -9px; left: 50%; width: 70px; height: 20px; margin-left: -35px; background: rgba(214, 196, 170, .7); transform: rotate(-3deg); }
.review p { font: 400 19px/1.35 var(--hand); }
.review-reply { font: 15px/1.5 var(--font); }

/* Ảnh khách làm: polaroid nghiêng */
.makes-grid { column-gap: 18px; }
.make { margin-bottom: 20px; padding: 10px 10px 4px; border-radius: 4px; background: #fff; box-shadow: var(--shadow); transition: transform .25s; }
.make:nth-child(odd) { transform: rotate(-1.6deg); }
.make:nth-child(even) { transform: rotate(1.4deg); }
.make:hover { transform: none; }
.make figcaption { padding: 10px 4px 8px; text-align: center; font: 400 17px/1.25 var(--hand); }
.make-cap { font-family: var(--font); font-size: 13px; }
.make-pattern { font: 700 12px/1.3 var(--font); letter-spacing: .06em; }

/* ---------- Bundle ---------- */
.bundle-card { border: 1.5px solid var(--line); box-shadow: none; border-radius: 16px; background: var(--paper); }
.bundle-body h3 { font-size: 1.6rem; }
.bundle-price .price { font: 700 22px/1 var(--hand); }

/* ---------- Ngăn giỏ hàng + trang giỏ ---------- */
.cd-head h2 span { font-family: var(--font); }
.cart-line { box-shadow: none; border: 1.5px solid var(--line); border-radius: 14px; }
.cart-line a { font: 400 20px/1.15 var(--hand); }
.cart-line .right { font: 700 19px/1 var(--hand); }
.upsell { background: var(--rose); }
.upsell strong { font: 700 19px/1.2 var(--hand); }
.cart-page h1 { margin-bottom: 18px; }
.checkout { background: var(--paper); box-shadow: none; border-radius: 18px; }
.totals .total { font: 700 26px/1 var(--hand); }
.totals .total dd, .totals .total dt { font-weight: 700; }
.pay-tabs { background: var(--paper-2); }
.cart-page .empty-art, .order-page .thanks-art { display: block; width: 110px; margin: 0 auto 6px; }
.cart-page .empty-art svg, .thanks-art svg { width: 100%; height: auto; display: block; }
.cart-page [data-cart-empty] h2 { font-size: 2.2rem; }

/* ---------- Trang cảm ơn / tải file / lấy lại pattern ---------- */
.thanks-jp { margin: 0 0 4px; font: 600 22px/1 var(--jp); letter-spacing: .3em; color: var(--rose-ink); }
.order-page h1 { font-size: clamp(2.4rem, 2rem + 2vw, 3.2rem); }
.order-page .lead { font: 400 21px/1.4 var(--hand); }
.dl-item { box-shadow: none; border: 1.5px solid var(--line); border-radius: 14px; }
.dl-item h2 { font-size: 1.5rem; }
.order-next { background: var(--paper); }
.order-summary h2 { font-size: 1.4rem; }
.order-total strong { font: 700 24px/1 var(--hand); }
.notice { background: var(--paper); }
.stack-form input { border-radius: 999px; }
.wish-btn-label { width: auto; height: 40px; top: auto; right: auto; background: var(--surface); border: 1.5px solid var(--line); box-shadow: none; }

/* ================= Đợt 5: Tutorials, Journal, bài viết, About / FAQ / Terms, Made by you, bản tin, 404 ================= */
:root { --torn-all: polygon(0.0% 0.2%,4.0% 0.9%,8.0% 0.1%,12.0% 0.7%,16.0% 0.1%,20.0% 0.2%,24.0% 1.0%,28.0% 0.2%,32.0% 0.6%,36.0% 0.4%,40.0% 0.4%,44.0% 0.5%,48.0% 0.2%,52.0% 0.8%,56.0% 0.1%,60.0% 0.2%,64.0% 0.0%,68.0% 0.3%,72.0% 0.4%,76.0% 0.9%,80.0% 0.4%,84.0% 0.1%,88.0% 0.2%,92.0% 1.0%,96.0% 0.1%,100.0% 0.6%,99.7% 4.0%,99.5% 8.0%,99.7% 12.0%,99.4% 16.0%,99.6% 20.0%,99.5% 24.0%,99.3% 28.0%,99.5% 32.0%,99.9% 36.0%,99.9% 40.0%,99.2% 44.0%,99.6% 48.0%,99.8% 52.0%,99.2% 56.0%,99.5% 60.0%,99.4% 64.0%,99.3% 68.0%,99.8% 72.0%,99.7% 76.0%,99.3% 80.0%,99.9% 84.0%,99.4% 88.0%,99.9% 92.0%,99.4% 96.0%,100.0% 98.4%,97.0% 97.9%,94.0% 98.1%,91.0% 98.9%,88.0% 99.6%,85.0% 99.7%,82.0% 98.8%,79.0% 98.9%,76.0% 99.8%,73.0% 98.0%,70.0% 98.9%,67.0% 98.4%,64.0% 99.5%,61.0% 99.5%,58.0% 100.0%,55.0% 99.2%,52.0% 99.4%,49.0% 99.1%,46.0% 99.2%,43.0% 98.1%,40.0% 98.0%,37.0% 99.6%,34.0% 99.1%,31.0% 99.6%,28.0% 98.5%,25.0% 97.8%,22.0% 99.5%,19.0% 98.3%,16.0% 99.3%,13.0% 100.0%,10.0% 98.3%,7.0% 99.2%,4.0% 99.6%,1.0% 99.0%,0.2% 96.0%,0.3% 92.0%,0.4% 88.0%,0.3% 84.0%,0.5% 80.0%,0.2% 76.0%,0.1% 72.0%,0.1% 68.0%,0.1% 64.0%,0.4% 60.0%,0.3% 56.0%,0.6% 52.0%,0.4% 48.0%,0.6% 44.0%,0.8% 40.0%,0.1% 36.0%,0.0% 32.0%,0.1% 28.0%,0.3% 24.0%,0.5% 20.0%,0.6% 16.0%,0.3% 12.0%,0.8% 8.0%,0.0% 4.0%); }

/* ---------- Tutorials: lộ trình người mới ---------- */
.learn-path { position: relative; display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.learn-path::before { content: ''; position: absolute; left: 30px; top: 20px; bottom: 20px; border-left: 2px dashed #dccfbf; }
.learn-path a { position: relative; display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 0 14px; color: var(--ink); text-decoration: none; }
.learn-path i { counter-increment: step; grid-row: span 2; display: grid; place-items: center; width: 62px; height: 62px; border: 2px solid var(--ink); border-radius: 50%; background: var(--surface);
  font: 700 26px/1 var(--hand); font-style: normal; transition: background .2s, color .2s, border-color .2s; }
.learn-path i::before { content: counter(step); }
.learn-path a:hover i { background: var(--rose-deep); border-color: var(--rose-deep); color: #fff; }
.learn-path b { align-self: end; font: 400 22px/1.1 var(--hand); }
.learn-path small { align-self: start; font-size: 13px; color: var(--muted); }
@media (min-width: 900px) {
  .learn-path { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 16px; }
  .learn-path::before { left: 8%; right: 8%; top: 31px; bottom: auto; border-left: 0; border-top: 2px dashed #dccfbf; }
  .learn-path a { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 4px; }
  .learn-path i { grid-row: auto; margin-bottom: 8px; }
}

/* Lưới video */
.video-grid { display: grid; grid-template-columns: 1fr; gap: 26px 22px; }
.vcard { display: block; color: var(--ink); text-decoration: none; }
.vcard:hover { color: var(--rose-ink); }
.vthumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.vthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.vcard:hover .vthumb img { transform: scale(1.04); }
.vplay { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 56px; height: 56px; border: 2.5px solid #fff; border-radius: 50%;
  background: rgba(35, 23, 14, .35); backdrop-filter: blur(3px); color: #fff; transition: background .2s; }
.vcard:hover .vplay { background: var(--rose-deep); }
.vcard b { display: block; margin: 12px 0 2px; font: 400 21px/1.15 var(--hand); }
.vcard small { font-size: 13px; color: var(--muted); }
@media (min-width: 560px) { .video-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }

/* Stitch Guide: thẻ chữ viết tắt lớn màu đỏ */
#stitches .title-row { flex-wrap: wrap; }
.stitch-filter { max-width: 320px; margin: 0; padding: 10px 18px; border: 1.5px solid var(--line); background: var(--surface); font-size: .95rem; }
.stitch-group h3 { margin: 24px 0 12px; font-size: 1.5rem; }
.stitch-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.stitch-card { position: relative; display: block; padding: 18px 16px 16px; border: 0; border-radius: var(--radius); background: var(--paper); box-shadow: none; color: var(--ink); text-decoration: none; transition: background .2s, transform .2s; }
.stitch-card:hover { background: var(--paper-2); box-shadow: none; transform: translateY(-2px); }
.stitch-card .abbr { display: block; min-width: 0; height: auto; padding: 0; background: none; border-radius: 0; font: 700 34px/1 var(--hand); color: var(--rose-ink); }
.stitch-card strong { display: block; margin-top: 6px; font: 400 19px/1.15 var(--hand); font-weight: 400; }
.stitch-card small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.stitch-vid { position: absolute; top: 14px; right: 14px; color: var(--muted); }
.stitch-page .abbr-lg { background: var(--rose); color: var(--rose-ink); font-family: var(--hand); }

/* ---------- Journal ---------- */
.post-grid { gap: 34px 22px; }
.post-card-link { background: none; border-radius: 0; box-shadow: none; overflow: visible; }
.post-card-link:hover { transform: none; box-shadow: none; }
.post-card-img { aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--paper-2); }
.post-card-img img { transition: transform .4s; }
.post-card-link:hover .post-card-img img { transform: scale(1.04); }
.post-card-body { padding: 14px 2px 0; }
.post-card-body .kicker { font-size: 11px; }
.post-card-body h3 { margin: 6px 0; font-size: 1.6rem; }
.post-card-link:hover h3 { color: var(--rose-ink); }
.post-card-body p { font-size: .95rem; }
/* Bài mới nhất: thẻ lớn nằm ngang nền kem */
.post-lead { display: grid; grid-template-columns: 1fr; margin-bottom: 40px; border-radius: 18px; overflow: hidden; background: var(--paper); color: var(--ink); text-decoration: none; }
.post-lead:hover { color: var(--ink); }
.post-lead-img { display: block; aspect-ratio: 16 / 10; background: var(--paper-2); }
.post-lead-img img, .post-lead-img .img-ph { width: 100%; height: 100%; object-fit: cover; }
.post-lead-body { display: block; padding: 24px 22px; }
.post-lead h2 { margin: 10px 0 12px; font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem); }
.post-lead p { color: var(--ink-2); }
@media (min-width: 900px) { .post-lead { grid-template-columns: 1fr 1fr; } .post-lead-img { aspect-ratio: auto; min-height: 340px; } .post-lead-body { align-self: center; padding: 40px; } }

/* ---------- Bài viết ---------- */
.post-head { text-align: center; padding-top: 10px; }
.post-head .crumbs { justify-content: center; }
.post-head h1 { margin: 14px 0 12px; font-size: clamp(2.4rem, 1.8rem + 2.6vw, 3.8rem); }
.post-meta { font: 700 12px/1.6 var(--font); letter-spacing: .14em; text-transform: uppercase; }
.post-cover { filter: drop-shadow(0 10px 18px rgba(35, 23, 14, .12)); }
.post-cover img { border-radius: 0; clip-path: var(--torn-all); }
.prose { color: var(--ink-2); }
.prose h2, .prose h3 { color: var(--ink); }
.prose h3 { font-size: 1.6rem; }
.prose a { color: var(--rose-ink); }
.post-nl { background: var(--paper); border-radius: 18px; }
.post-nl h2 { font-size: 1.6rem; }
.author-card { display: flex; align-items: center; gap: 18px; margin: 30px 0 10px; padding: 18px 22px; border-radius: 16px; border: 1.5px dashed #ddd2c4; }
.author-art { flex: none; width: 72px; }
.author-art svg { width: 100%; height: auto; display: block; }
.author-card h2 { margin: 0 0 4px; font-size: 1.5rem; }
.author-card p { margin: 0; font-size: .95rem; color: var(--ink-2); }

/* ---------- Trang nội dung (About, FAQ, Terms, Privacy) ---------- */
.page-narrow h1 { font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.4rem); }
.page-narrow .prose h2 { font-size: 1.8rem; }
.page-narrow .prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--rose-deep); font: 400 1.4rem/1.35 var(--hand); color: var(--ink); }
.about-hi { display: flex; align-items: flex-end; gap: 14px; margin-top: 10px; }
.about-art { width: 90px; }
.about-art svg { width: 100%; height: auto; display: block; }
.about-hi .meet-jp { margin-bottom: 14px; }

/* ---------- Made by you: trang lớn ---------- */
.share-box { padding: 24px; border: 1.5px dashed #ddd2c4; border-radius: 18px; }
.share-box h2 { font-size: 2rem; }
.make-form { background: var(--paper); box-shadow: none; border-radius: 16px; }
.file-drop { border-color: #ddd2c4; background: var(--surface); font: 400 19px/1.2 var(--hand); }

/* ---------- 404 ---------- */
.cozy-404 { padding-top: 30px; }
.big-404 { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; font: 700 120px/1 var(--hand); color: var(--rose-deep); }
.big-404 .doodle { width: 96px; height: 96px; margin: 0; }
.big-404 img.art { width: 130px; height: auto; }
.cozy-404 h1 { margin-top: 8px; }
.cozy-404 .title-row { margin-top: 30px; text-align: left; }
.cozy-404 .grid { text-align: left; }

/* ================= Rà soát 22/10 — đợt A: khớp số đo với bản demo (_thiet-ke-chiehaus/ch.css) ================= */
/* Lề + bề rộng nội dung như demo: 1200px, lề 40px (điện thoại 16px) */
:root { --gut: 40px; }
@media (max-width: 799px) { :root { --gut: 16px; } }
.wrap { max-width: calc(var(--wrap) + var(--gut) * 2); padding-left: var(--gut); padding-right: var(--gut); }
.wrap-narrow { max-width: calc(760px + var(--gut) * 2); padding-left: var(--gut); padding-right: var(--gut); }
.page-head, .footer-inner { padding-left: var(--gut); padding-right: var(--gut); }
body { font-size: 16px; }

/* Nút: chữ 14px (lớn 15px, nhỏ 12px), dòng = cỡ chữ, viền trong suốt 1.5px */
.btn { gap: 10px; border: 1.5px solid transparent; padding: 12px 26px; font: 600 14px/1 var(--font); letter-spacing: .14em; }
.btn-lg { padding: 16px 32px; font-size: 15px; }
.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-soft, .buy-row .btn-soft { border-color: var(--ink); }

/* Logo 3 dòng */
.logo-jp { font-size: 15px; }
.logo-word { font-size: 30px; margin: 3px 0 4px; }
@media (max-width: 999px) { .logo-jp { font-size: 10px; } .logo-word { font-size: 22px; margin: 2px 0 0; } }

/* Footer */
.site-footer { margin-top: 74px; }
.footer-inner { grid-template-columns: 1fr 1fr 1fr; gap: 22px 16px; padding-top: 30px; }
.footer-brand .logo-mark { width: 70px; height: 70px; }
.footer-col h3 { margin: 8px 0 14px; font-size: 13px; }
.footer-col a { font: 400 17px/1.15 var(--hand); padding: 3px 0; }
.footer-letter h3 { margin: 8px 0 14px; font: 400 19px/1 var(--hand); }
.footer-letter p { margin: -6px 0 12px 32px; font: 400 16px/1.3 var(--hand); }
.nl-arrow input[type='email'] { padding: 12px 18px; font-size: 14px; line-height: normal; }
.nl-go { flex-basis: 54px; }
.footer-copy { gap: 10px; padding-top: 10px; padding-bottom: 22px; font-size: 12px; line-height: normal; }
@media (min-width: 800px) { .footer-brand .logo-mark { width: 92px; height: 92px; } }
@media (min-width: 901px) { .footer-inner { grid-template-columns: 1.5fr .8fr .9fr .8fr 1.6fr; gap: 30px; } .footer-brand, .footer-letter { grid-column: auto; } }
@media (max-width: 900px) { .footer-brand, .footer-letter { grid-column: 1 / -1; } .site-footer { margin-top: 54px; } }

/* Trang chủ */
.cozy-hero h1 { font-size: clamp(42px, 4.4vw, 62px); }
@media (max-width: 899px) { .cozy-hero h1 { font-size: 46px; margin-bottom: 26px; } }
.features { padding: 26px 0 10px; }
.feature { padding: 6px 16px; }
@media (max-width: 799px) { .features { padding-top: 22px; } }
.tile { box-shadow: 0 1px 0 var(--line); min-height: 250px; }
.tile-pic { position: relative; overflow: hidden; min-height: 100%; }
.tile-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile p { font-size: 18px; }
.tile-text p { margin: 18px 0 22px; }
.tile-note h3 { font-size: 30px; }
@media (max-width: 640px) { .tile { min-height: 210px; } .tile h3 { font-size: 30px; } }
@media (min-width: 1000px) { .cats-row { grid-template-columns: repeat(7, minmax(0, 1fr)); } .cats-sm { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.cat-name { font-size: 20px; }
.cats-sm .cat-name { font-size: 17px; }
.gift p { font-size: 19px; }
.badge { font-size: 12px; font-weight: 700; }
@media (max-width: 559px) { .badge { font-size: 10.5px; } }

/* Trang danh sách: màn ≥1280px (đủ 1200px nội dung) để nút độ khó cùng hàng với giá + sắp xếp như demo */
.cozy-filters .count { font-size: 20px; }
@media (min-width: 1280px) { .level-chips { order: 0; flex-basis: auto; flex-wrap: nowrap; } }

/* Trang pattern: tên 64px, giá 40px */
.product-info h1 { font-size: clamp(46px, 5vw, 64px); }
.product-price { margin: 22px 0 20px; }
.product-price .price { font-size: 40px; }

/* Tutorials, bài viết, giỏ hàng */
.stitch-card .abbr { font-size: 38px; }
.author-card { margin-top: 40px; padding: 20px 24px; border: 0; background: var(--paper); }
.upsell { margin-top: 22px; padding: 14px 16px; border: 0; border-radius: 14px; }
.post-lead .post-meta-line { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; font: 600 11.5px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.post-lead .post-meta-line .cat { color: var(--rose-ink); }
/* Tiêu đề trang con 60px (điện thoại 40px), hoa cách chữ 14px như demo */
.page-head h1, .page-narrow h1, .cart-page h1 { font-size: clamp(40px, 5vw, 60px); line-height: 1.1; }
.product-info h1 { line-height: 1.1; }
h1 .doodle { margin-left: 14px; }
.footer-letter h3 { letter-spacing: normal; }
.link-small { font-weight: 600; }
.product-price { gap: 12px; }
.cozy-filters { gap: 10px 14px; }
.cat-tile { border: 1.5px solid transparent; }
.cats-row { gap: 14px; }
.cats-sm { gap: 10px; }
@media (min-width: 1000px) { .trio .tile { min-height: 290px; } }
/* Hàng lọc vừa 1200px nội dung (màn ≥1280px): nút độ khó gọn hơn (cuộn len 14px), ô chọn rộng cố định */
@media (min-width: 1280px) {
  .level-chips { gap: 6px; }
  .level-chips .chip { padding: 7px 12px; gap: 6px; }
  .level-chips .diff-yarn img { width: 14px; height: 14px; }
  .cozy-filters select[name='price'] { width: 132px; }
  .cozy-filters select[name='sort'] { width: 160px; }
}

/* ================= Rà soát 22/10 — đợt B: trang pattern như demo ================= */
/* Ảnh: máy tính = ảnh nhỏ xếp dọc bên trái (78px) + ảnh chính; tim tròn góc phải, bộ đếm "1 / 5" góc trái dưới.
   Điện thoại = ảnh chính tràn mép, không bo, ảnh nhỏ cuộn ngang bên dưới */
.gallery-stage { position: relative; }
.gallery-stage .wish-btn { top: 14px; right: 14px; width: 42px; height: 42px; z-index: 3; }
.gallery-stage .wish-btn .ico { width: 22px; height: 22px; }
.gallery-count { position: absolute; left: 14px; bottom: 14px; z-index: 3; padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, .92);
  font: 600 12px/1.4 var(--font); letter-spacing: .1em; pointer-events: none; }
.gallery-main { border-radius: 16px; }
.gallery-thumbs button { opacity: 1; border-width: 2px; }
@media (max-width: 799px) {
  .gallery-stage { margin: 0 calc(-1 * var(--gut)); }
  .gallery-main { border-radius: 0; }
  .gallery-thumbs { padding: 0; }
}
@media (min-width: 800px) {
  .product { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 54px; align-items: start; }
  .product-info { position: static; }
  .gallery { position: sticky; top: 96px; display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 14px; align-items: start; }
  .gallery-thumbs { order: -1; flex-direction: column; margin: 0; padding: 0; gap: 10px; overflow: visible; }
  .gallery-thumbs button { flex: none; width: 78px; height: 78px; }
}
/* Hàng mua: Add to cart · Buy now · tim tròn 54px */
.buy-row { flex-wrap: nowrap; align-items: stretch; gap: 12px; }
.buy-row .btn { flex: 1 1 0; min-width: 0; }
.buy-row .wish-btn { position: static; flex: 0 0 54px; width: 54px; height: auto; min-height: 54px; border: 1.5px solid var(--line); box-shadow: none; }
.buy-row .wish-btn .ico { width: 24px; height: 24px; }
@media (max-width: 559px) { .buy-row { flex-wrap: wrap; } .buy-row .btn-primary { flex: 1 1 calc(100% - 66px); } .buy-row .btn-soft { order: 3; flex-basis: 100%; } }
/* Chia sẻ: 3 nút tròn viền mảnh */
.share-round { display: flex; align-items: center; gap: 12px; margin-top: 20px; font: 13px var(--font); color: var(--muted); }
.share-round a, .share-round button { display: grid; place-items: center; width: 36px; height: 36px; border: 1.5px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; padding: 0; }
.share-round a:hover, .share-round button:hover { border-color: var(--ink); color: var(--rose-deep); }
/* Tab About this pattern / Video / Questions */
.product-body { grid-template-columns: minmax(0, 1fr) 340px; gap: 54px; padding-top: 0; margin-top: 64px; }
@media (max-width: 899px) { .product-body { grid-template-columns: 1fr; gap: 10px; margin-top: 44px; } }
.tabs { display: flex; gap: 6px; margin-bottom: 22px; border-bottom: 1.5px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs [role='tab'] { margin-bottom: -1.5px; padding: 12px 16px; border: 0; border-bottom: 2.5px solid transparent; background: none; color: var(--muted); font: 400 22px/1 var(--hand); white-space: nowrap; cursor: pointer; }
.tabs [role='tab'][aria-selected='true'] { border-color: var(--rose-deep); color: var(--ink); }
.faq-list details { border-bottom: 1px dashed var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; list-style: none; cursor: pointer; font: 700 21px/1.2 var(--hand); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font: 400 28px/1 var(--hand); color: var(--rose-deep); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details .prose { padding-bottom: 14px; font-size: 16px; }
.faq-list .section-link { display: inline-block; margin-top: 16px; }
/* Chip mũi móc: chữ viết tắt Gaegu đỏ */
.stitch-chips a { padding: 6px 12px; font-size: 14px; }
.stitch-chips b { font: 700 18px/1 var(--hand); color: var(--rose-ink); }
/* Ảnh khách làm ở trang pattern: 5 polaroid một hàng (điện thoại cuộn ngang) */
.makes-row { columns: auto; display: flex; gap: 18px; overflow-x: auto; margin: 0 calc(-1 * var(--gut)); padding: 14px var(--gut); scrollbar-width: none; }
.makes-row .make { flex: 0 0 150px; margin: 0; }
.makes-row .make img { aspect-ratio: 1; object-fit: cover; }
@media (min-width: 900px) { .makes-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 14px 0; overflow: visible; } }
.section-head.title-row { align-items: flex-end; }
.product-body > *, .product > * { min-width: 0; } /* hàng tab cuộn ngang không đẩy cột rộng ra (điện thoại) */
@media (max-width: 559px) { .tabs [role='tab'] { padding: 10px 11px; font-size: 19px; } }

/* ---------- Rà soát 22/10 — đợt C: Tutorials, Journal, bài viết ---------- */
/* Tutorials: mèo nằm góc đầu trang, ảnh video 16:10 + thời lượng (video tự tải lên), lọc video */
.head-cat { right: 0; bottom: 0; width: 140px; }
@media (max-width: 799px) { .head-cat { top: auto; right: 12px; bottom: 68px; width: 70px; } .cozy-head:has(.head-cat) h1 { max-width: none; } .cozy-head:has(.head-cat) .lead { max-width: 75%; } .page-head .lead { font-size: 18px; } }
.vthumb { aspect-ratio: 16 / 10; }
.vdur { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(35, 23, 14, .75); color: #fff; font: 600 12px/1.4 var(--font); }
.vcard b { margin: 12px 0 4px; font-size: 22px; }
.vcard small { display: block; font-size: 14px; line-height: 1.6; }
.video-tabs { margin: 6px 0 26px; }
.video-tabs .chip { cursor: pointer; }
.vcard[hidden] { display: none; }
/* Journal: dòng "chuyên mục · phút đọc" trên tiêu đề thẻ (bỏ ngày dưới) */
.post-meta-line { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; font: 600 11.5px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.post-meta-line .cat { color: var(--rose-ink); }
.post-card-body { padding: 14px 0 0; }
.post-card-body .post-meta-line { font-size: 15px; }
.post-card-body h3 { margin: 8px 0 6px; font-size: 26px; }
.post-card-body p { font-size: 15px; color: var(--ink-2); }
/* Bài viết: chuyên mục · ngày · phút đọc; ảnh bìa rộng 980px (rộng hơn cột chữ) */
.post-head .post-meta-line { justify-content: center; }
.post > .post-cover { max-width: calc(980px + var(--gut) * 2); margin: 10px auto 34px; padding: 0 var(--gut); }
.post > .post-cover img { aspect-ratio: 2 / 1; object-fit: cover; }
/* Trích dẫn: chỉ vạch đỏ bên trái, chữ tay lớn */
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 26px; border-radius: 0; background: none; font-size: 26px; }
/* Ô mẹo (nút "Ô mẹo" trong trình soạn): giấy note vàng dán băng keo */
.prose .tip { position: relative; margin: 1.8em 0; padding: 22px 24px 18px; border-radius: 6px; background: #fbf1d8; transform: rotate(-.6deg); }
.prose .tip::before { content: ''; position: absolute; top: -10px; left: 30px; width: 80px; height: 22px; background: rgba(214, 196, 170, .75); transform: rotate(-5deg); }
.prose .tip > p { margin: 0; }
.prose .tip > p + p { margin-top: .6em; }
.prose .tip > p:first-child { margin-bottom: 6px; }
.prose .tip > p:first-child > strong { display: block; font: 700 24px/1 var(--hand); color: var(--ink); }

/* ---------- Rà soát 22/10 — đợt D: About, FAQ, giỏ hàng, 404 ---------- */
.btn-line { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
/* About: chữ "Hi, I'm Chie" nghiêng bên trái + ảnh mép xé có giấy note bên phải */
.about-story { margin-top: 30px; }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.story > * { min-width: 0; }
.story-jp { display: block; margin: 30px 0 18px; font: 600 20px/1 var(--jp); letter-spacing: .3em; color: var(--rose-ink); }
.story h1 { margin: 0 0 30px; font-size: clamp(46px, 5.6vw, 70px); transform: rotate(-4deg); transform-origin: left; }
.story .prose { font-size: 17px; color: var(--ink-2); }
.story .btn { margin-top: 8px; }
.story-photo { position: relative; filter: drop-shadow(0 10px 18px rgba(35, 23, 14, .12)); }
.story-photo img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; clip-path: var(--torn-all); }
.story-art { display: grid; place-items: center; aspect-ratio: 5 / 4; border-radius: 18px; background: var(--paper); filter: none; }
.story-art > svg { width: 50%; height: auto; }
.story-note { position: absolute; left: -14px; bottom: -18px; max-width: 150px; margin: 0; padding: 12px 16px 14px; background: #fbf1d8; box-shadow: var(--shadow);
  font: 400 18px/1.15 var(--hand); color: var(--ink); transform: rotate(-4deg); }
.story-note::before { content: ''; position: absolute; left: 50%; top: -10px; width: 56px; height: 20px; margin-left: -28px; background: rgba(214, 196, 170, .75); transform: rotate(-4deg); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value { padding: 26px 22px; border-radius: 16px; background: var(--paper); text-align: center; }
.value .doodle-icon { display: block; margin: 0 auto 10px; }
.value h2 { margin: 0 0 8px; font-size: 26px; }
.value p { margin: 0; font-size: 15px; color: var(--ink-2); }
.name-card { display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center; padding: 30px 34px; border: 1.5px dashed #ddd2c4; border-radius: 18px; }
.name-card .big { font: 600 56px/1 var(--jp); letter-spacing: .1em; }
.name-card dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; font: 400 20px/1.2 var(--hand); }
.name-card dt { font-family: var(--jp); color: var(--rose-ink); }
.name-card dd { margin: 0; }
.makes-share { margin-top: 26px; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact > div { padding: 26px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface); }
.contact h2 { margin: 0 0 8px; font-size: 28px; }
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; gap: 30px; }
  .values, .contact { grid-template-columns: 1fr; }
  .name-card { grid-template-columns: 1fr; gap: 16px; padding: 24px 18px; text-align: center; }
  .name-card .big { font-size: 44px; }
  .name-card dl { justify-content: center; text-align: left; }
}
/* FAQ: câu hỏi xổ xuống + ô "Get my patterns again" bên phải */
.faq-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: start; }
.faq-split > * { min-width: 0; }
.faq-page summary { padding: 18px 0; font-size: 24px; }
.faq-page summary::after { font-size: 30px; }
.faq-page details .prose { padding-bottom: 18px; }
.faq-page details .prose > :first-child { margin-top: 0; }
.page-head .lead.prose p { margin: 0; }
.form-card { padding: 28px; border-radius: 18px; background: var(--paper); }
.form-card h2 { margin: 0 0 8px; font-size: 34px; }
.form-card-lead { margin: 0; font: 400 19px/1.35 var(--hand); color: var(--ink-2); }
.form-card input[type='email'] { width: 100%; margin: 12px 0; padding: 13px 20px; border-radius: 999px; }
.form-card .small { margin: 12px 0 0; font-size: 13px; }
@media (max-width: 900px) { .faq-split { grid-template-columns: 1fr; gap: 30px; } }
/* Giỏ hàng: dòng không khung, vạch kẻ; khung "Summary" có tổng tiền trên ô mã giảm giá */
.cart-page .cart-lines ul { gap: 0; border-top: 1px solid var(--line); }
.cart-page .cart-line { grid-template-columns: 96px 1fr auto; gap: 18px; padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.cart-page .cart-line img, .cart-page .cart-line .img-ph { width: 96px; height: 96px; border-radius: 12px; }
.cart-page .cart-line div > a { font: 700 24px/1.1 var(--hand); }
.cart-page .cart-line .sub { margin-top: 4px; font-size: 13px; }
.cart-page .cart-line .right strong { font: 700 24px/1 var(--hand); }
.cart-page .cart-line .rm { margin-top: 4px; font: 13px var(--font); }
.cart-page .checkout { padding: 26px; }
.checkout-title { order: -2; margin: 0; font-size: 30px; }
.cart-page .checkout .totals { order: -1; border: 0; padding: 0; }
.cart-page .totals > div { padding: 6px 0; font-size: 15px; }
.cart-page .totals .total { margin-top: 8px; padding-top: 14px; border-top: 1.5px dashed #ddd2c4; font-size: 26px; }
@media (max-width: 900px) { .cart-page .cart-line { grid-template-columns: 72px 1fr auto; gap: 12px; } .cart-page .cart-line img, .cart-page .cart-line .img-ph { width: 72px; height: 72px; } }
/* 404: hai nút như demo, ô tìm bên dưới */
.cozy-404 h1 { font-size: 46px; }
.btns-404 { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; }
.cozy-404 .search-404 { margin-top: 26px; }
@media (min-width: 900px) { .cart-page .cart-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; } .cart-page .checkout { position: sticky; top: 96px; } }
/* Đồ họa mới 28/10: hình vẽ là <img class="art"> (src/views/art.js) thay cho SVG tạm — cùng khung, cùng cỡ như SVG */
:is(.hero-mascot, .tile-doodle, .meet-art, .head-doodle, .empty-art, .thanks-art, .author-art, .about-art) img.art { display: block; width: 100%; height: auto; }
.feature-icon img.art { width: 100%; height: 100%; object-fit: contain; }
.cat-art img.art { border-radius: 0; object-fit: contain; }
.hero-empty img.art { width: min(220px, 50%); height: auto; }
.cozy-assure img.art { flex: none; width: 34px; height: 34px; }
.story-art > img.art { width: 50%; height: auto; aspect-ratio: auto; object-fit: contain; clip-path: none; }
.story-art > .pet { width: 40%; }
.story-art .pet img { aspect-ratio: auto; object-fit: contain; clip-path: none; }
.logo-mark.art { flex: none; max-width: none; object-fit: contain; }
/* Logo động 28/10 (src/views/art.js logoAnim): 4 lớp ảnh chồng nhau, chỉ đổi transform/opacity → trình duyệt chạy trên GPU,
   không tính lại bố cục / vẽ lại trang. Cao theo các luật .logo-mark ở trên, rộng theo aspect-ratio (logo giờ rộng hơn cao). */
.logo-mark.logo-anim { position: relative; display: block; flex: none; width: auto; max-width: none; }
.logo-anim img { position: absolute; display: block; height: auto; max-width: none; pointer-events: none; user-select: none; }
.la-bunny { animation: la-peek 7s ease-in-out infinite; }
.la-tail { transform-origin: 40% 92%; animation: la-wag 3s ease-in-out infinite; }
.la-smoke { transform-origin: 15% 100%; animation: la-smoke 6s ease-in-out infinite; }
/* Thỏ: đứng yên ~4 giây, thụt xuống sau mái, nhô lên nửa chừng, thụt lần nữa rồi trồi lên (chỉ đi xuống — mép cắt luôn nằm sau mái) */
@keyframes la-peek { 0%, 58%, 100% { transform: none; } 65% { transform: translateY(13%); } 72% { transform: translateY(2%); } 77% { transform: translateY(8%); } 86% { transform: none; } }
@keyframes la-wag { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(6deg); } }
/* Khói: hiện ra sát ống khói, phồng dần, bay lên lệch phải rồi tan; 55% = vị trí như hình gốc */
@keyframes la-smoke { 0% { transform: translate(-14%, 34%) scale(.5); opacity: 0; } 20% { opacity: 1; } 55% { transform: none; opacity: 1; } 100% { transform: translate(12%, -26%) scale(1.15); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .logo-anim img { animation: none; } }

/* Mèo vẫy đuôi, thỏ chớp mắt 5/11: các lớp cùng khung xếp chồng, chỉ transform / opacity */
.pet { position: relative; display: block; width: 100%; }
.pet img { display: block; width: 100%; height: auto; }
.pet img + img { position: absolute; inset: 0; }
.empty-art .pet { width: 88px; margin: 0 auto; } /* thỏ cao hơn hình cũ: giữ chiều cao khoảng 142px */
.pet-cat-tail { transform-origin: 81% 33%; animation: pet-wag 3.4s ease-in-out infinite; }
.pet-bunny-blink { opacity: 0; animation: pet-blink 5.6s step-end infinite; }
@keyframes pet-wag { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(5deg); } }
@keyframes pet-blink { 0%, 100% { opacity: 0; } 90% { opacity: 1; } 92% { opacity: 0; } 95% { opacity: 1; } 97% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pet-cat-tail, .pet-bunny-blink { animation: none; } }

/* Khối trang chủ 5/11: bắt đầu từ đây, băng rôn khuyến mãi, chữ + ảnh */
.start-steps { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 0; padding: 0; list-style: none; }
.start-steps a { display: block; height: 100%; padding: 18px 20px; border: 1.5px dashed #ddd2c4; border-radius: 16px; color: var(--ink); text-decoration: none; transition: border-color .2s; }
.start-steps a:hover { border-color: var(--rose-deep); color: var(--ink); }
.start-steps b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--rose-deep); color: #fff; font: 700 22px/1 var(--hand); }
.start-steps h3 { margin: 10px 0 2px; font: 400 23px/1.1 var(--hand); }
.start-steps p { margin: 0; color: var(--ink-2); }
.hpromo { position: relative; display: block; overflow: hidden; border-radius: 18px; background: var(--paper); color: var(--ink); text-decoration: none; }
.hpromo:hover { color: var(--ink); }
.hpromo > img { display: block; width: 100%; height: 170px; object-fit: cover; } /* điện thoại: ảnh trên, chữ dưới */
.hpromo-plain { background: var(--rose); }
.hpromo-note { position: relative; padding: 16px 18px 18px; }
.hpromo-note h2 { margin: 0; font: 700 30px/1.1 var(--hand); }
.hpromo-note p { margin: 6px 0 12px; font: 400 18px/1.3 var(--hand); color: var(--ink-2); }
.hpromo-left { display: inline-block; margin-bottom: 6px; padding: 3px 10px; border-radius: 999px; background: var(--rose-deep); color: #fff; font: 700 15px/1.2 var(--hand); }
.text-block { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: center; }
.text-block h2 { margin: 0 0 8px; }
.text-block p { margin: 0 0 16px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.text-block > img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 16px; }
@media (min-width: 800px) {
  .start-steps { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .hpromo { display: flex; align-items: center; min-height: 400px; padding: 40px; }
  .hpromo > img { position: absolute; inset: 0; height: 100%; }
  .hpromo-note { max-width: 400px; padding: 24px 28px; border-radius: 10px; background: rgba(255, 254, 252, .94); }
  .hpromo-note h2 { font-size: 36px; }
  .text-block { grid-template-columns: 1fr 1fr; gap: 40px; }
  .text-block.text-only { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; text-align: center; }
  .text-left > img { order: -1; }
}
