/* Trang chủ (vi + en): hướng "tờ bill". Mọi selector nằm dưới .hm. */
.hm {
    --ink: #1e1410;
    --lav: #ebdcc3;
    --pink: #f28c28;
    --lime: #d6f56a;
    --paper: #fffbf2;
    font-family: "Be Vietnam Pro", system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--lav);
    overflow-x: clip;
}
.hm h1, .hm h2, .hm h3 { font-family: "Unbounded", "Be Vietnam Pro", sans-serif; font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin: 0; text-transform: none; color: inherit; }
.hm p { margin: 0; }
.hm a { text-decoration: none; }
.hm :focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.hm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hm-btn { display: inline-flex; align-items: center; min-height: 54px; padding: 0 28px; border-radius: 14px; font-weight: 600; font-size: 16px; border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); transition: transform .12s, box-shadow .12s; cursor: pointer; }
.hm-btn:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.hm-btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.hm-btn-pink { background: var(--pink); color: var(--ink) !important; }
.hm-btn-white { background: var(--paper); color: var(--ink) !important; }
.hm-btn-ink { background: var(--ink); color: var(--paper) !important; box-shadow: 2px 2px 0 var(--pink); }
.hm-btn-ink:hover { box-shadow: 1px 1px 0 var(--pink); }

.hm-sec { padding: 96px clamp(20px, 5vw, 72px); }
.hm-head { max-width: 620px; margin-bottom: 44px; }
.hm-head h2, .hm-go h2, .hm-faq h2, .hm-visit h2 { font-size: clamp(30px, 4.2vw, 52px); }
.hm-head p { margin-top: 16px; font-size: 18px; }

/* Hero */
.hm-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; padding: 64px clamp(20px, 5vw, 72px) 88px; }
.hm-brand { font-family: "Space Mono", monospace !important; font-weight: 700 !important; font-size: 16px !important; letter-spacing: .08em !important; }
.hm-price { font-family: "Unbounded", sans-serif; font-weight: 800; font-size: clamp(44px, 6.4vw, 104px); line-height: 1; letter-spacing: -.05em; margin: 20px 0 24px; }
.hm-lead { font-size: 20px; font-weight: 500; max-width: 440px; }
.hm-stickers { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 44px 0 0; }
.hm-stickers li { padding: 8px 18px; border: 2px solid var(--ink); border-radius: 999px; background: var(--lime); font-weight: 600; font-size: 15px; transform: rotate(var(--t)); }
.hm-stickers li:nth-child(even) { background: var(--paper); }

/* Tờ bill: chuyển động duy nhất khi mở trang là "in" ra */
.hm-bill { --m: 9px; position: relative; background: var(--paper); font-family: "Space Mono", monospace; font-size: 15px; line-height: 1.5; padding: 28px 24px 40px; max-width: 420px; justify-self: center; width: 100%; transform: rotate(2deg); filter: drop-shadow(3px 3px 0 var(--ink));
    -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--m)) 100%;
            mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--m)) 100%;
    animation: hm-print .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes hm-print { from { clip-path: inset(0 0 100% 0); transform: translateY(-30px) rotate(2deg); } to { clip-path: inset(0 0 0 0); transform: rotate(2deg); } }
.hm-bill-head { display: grid; gap: 2px; text-align: center; padding-bottom: 16px; border-bottom: 2px dashed var(--ink); margin-bottom: 14px; }
.hm-bill-head strong { font-size: 18px; text-transform: uppercase; }
.hm-bill-head span { font-size: 13px; }
.hm-bill-rows { display: grid; gap: 2px; }
.hm-bill-row { display: flex; align-items: baseline; gap: 6px; padding: 6px 8px; margin: 0 -8px; color: var(--ink) !important; border-radius: 4px; }
.hm-bill-row:hover, .hm-bill-row.is-picked { background: var(--lime); }
.hm-bill-name { font-weight: 700; }
.hm-bill-dots { flex: 1; border-bottom: 2px dotted var(--ink); transform: translateY(-4px); min-width: 12px; opacity: .5; }
.hm-pick { display: block; width: 100%; margin-top: 18px; padding: 12px; border: 2px solid var(--ink); border-radius: 10px; background: var(--pink); font: 700 14px "Space Mono", monospace; color: var(--ink); cursor: pointer; }
.hm-pick:hover { background: var(--lime); }
.hm-bill-foot { margin-top: 18px; padding-top: 14px; border-top: 2px dashed var(--ink); font-size: 12px; text-align: center; }

/* Món nổi bật: polaroid */
.hm-polas { background: var(--paper); }
.hm-pola-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 36px 28px; padding: 8px 0; }
.hm-pola { display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 18px; background: #fff; border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); transform: rotate(var(--t)); color: var(--ink) !important; transition: transform .15s; }
.hm-pola:hover { transform: rotate(0) scale(1.03); }
.hm-pola-img { position: relative; aspect-ratio: 1; background: var(--lav); margin-bottom: 12px; display: block; overflow: hidden; }
.hm-pola-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-pola-img img[src*="/cup/"] { object-fit: contain; padding: 18%; }
.hm-badge { position: absolute; top: 8px; left: 8px; background: var(--pink); border: 2px solid var(--ink); font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.hm-pola strong { font-family: "Unbounded", sans-serif; font-size: 17px; line-height: 1.2; }
.hm-pola em { font-style: normal; font-size: 14px; opacity: .65; }
.hm-pola b { margin-top: 8px; font: 700 18px "Space Mono", monospace; }

/* Làm việc: giấy dán */
.hm-work { background: var(--ink); color: var(--paper); }
.hm-notes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.hm-notes li { background: var(--lime); color: var(--ink); padding: 28px 24px 32px; transform: rotate(var(--t)); box-shadow: 3px 3px 0 var(--pink); }
.hm-notes li:nth-child(2) { background: var(--paper); }
.hm-notes li:nth-child(3) { background: var(--pink); box-shadow: 3px 3px 0 var(--lav); }
.hm-notes span { font-size: 36px; line-height: 1; display: block; margin-bottom: 14px; }
.hm-notes h3 { font-size: 20px; margin-bottom: 10px; }

/* Mang đi và giao */
.hm-go { background: var(--lime); }
.hm-go h2 { max-width: 760px; }
.hm-go-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 44px; }
.hm-go-grid h3 { font-size: 24px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 3px solid var(--ink); }

/* Không gian: dải ảnh dán băng keo */
.hm-space { background: var(--paper); overflow: hidden; }
.hm-strip { display: flex; gap: 22px; overflow-x: auto; padding: 14px 6px 28px; scroll-snap-type: x proximity; }
.hm-strip a { flex: 0 0 auto; height: 300px; transform: rotate(var(--t)); border: 8px solid #fff; outline: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); scroll-snap-align: center; background: #fff; }
.hm-strip img { height: 100%; width: auto; max-width: none; display: block; }

/* Ghé quán */
.hm-visit { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.hm-visit ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; font-weight: 500; }
.hm-visit ul a { text-decoration: underline; color: var(--ink); }
.hm-map { width: 100%; height: 380px; border: 2px solid var(--ink); border-radius: 18px; box-shadow: 3px 3px 0 var(--ink); background: #fff; }

/* Khách nước ngoài */
.hm-welcome { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; background: var(--pink); padding-top: 56px; padding-bottom: 56px; }
.hm-welcome h2 { font-size: clamp(26px, 3vw, 38px); }
.hm-welcome p { margin-top: 10px; max-width: 640px; }
.hm-welcome .hm-actions { margin-top: 0; }
.hm-welcome .hm-btn-pink { background: var(--paper); }

/* FAQ */
.hm-faq { background: var(--paper); }
.hm-faq > * { max-width: 860px; }
.hm-faq h2 { margin-bottom: 28px; }
.hm-faq details { border: 2px solid var(--ink); border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; background: #fff; }
.hm-faq details[open] { background: var(--lime); }
.hm-faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary::after { content: "+"; font: 700 24px/1 "Space Mono", monospace; }
.hm-faq details[open] summary::after { content: "–"; }
.hm-faq details p { margin-top: 10px; max-width: 64ch; }

@media (max-width: 900px) {
    .hm-hero, .hm-visit, .hm-notes, .hm-go-grid { grid-template-columns: 1fr; }
    .hm-hero { padding-top: 40px; }
    .hm-sec { padding-top: 64px; padding-bottom: 64px; }
    .hm-strip a { height: 220px; }
    .hm-pola-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
}
@media (max-width: 480px) { .hm-pola-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
    .hm-bill { animation: none; }
    .hm-btn, .hm-pola { transition: none; }
}

/* Nâng cấp: huy hiệu giờ mở cửa, ảnh dán sau tờ bill, ô "xem thêm", mép răng cưa */
.hm .hm-open { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); font: 600 14px "Be Vietnam Pro", sans-serif; }
.hm-open span { width: 10px; height: 10px; border-radius: 50%; background: #2fb344; box-shadow: 0 0 0 3px rgba(47, 179, 68, .25); }
.hm-open.is-closed span { background: #9a93ad; box-shadow: none; }

.hm-visual { position: relative; width: 100%; max-width: 520px; justify-self: center; padding: 0 0 150px; }
.hm-photo { position: absolute; left: 0; bottom: 0; width: 74%; aspect-ratio: 4 / 3; margin: 0; padding: 10px; background: #fff; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); transform: rotate(-5deg); }
.hm-photo::before { content: ""; position: absolute; top: -14px; left: 50%; width: 84px; height: 26px; background: rgba(214, 245, 106, .85); border: 2px solid var(--ink); transform: translateX(-50%) rotate(3deg); }
.hm-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%; display: block; }
.hm-visual .hm-bill { position: relative; margin-left: auto; margin-right: 4%; width: 80%; max-width: none; }

.hm-hero { position: relative; padding-bottom: 104px; }
.hm-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; background: linear-gradient(135deg, var(--paper) 25%, transparent 25%) 0 0 / 32px 32px, linear-gradient(225deg, var(--paper) 25%, transparent 25%) 0 0 / 32px 32px; }

.hm-pola-more { justify-content: center; align-items: flex-start; gap: 14px; padding: 28px 22px; background: var(--pink); }
.hm-pola-more strong { font-size: 26px; line-height: 1.1; }
.hm-pola-more span { padding: 8px 16px; font-size: 13px; border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 14px "Be Vietnam Pro", sans-serif; }
.hm-pola-more:hover span { background: var(--lime); color: var(--ink); }

@media (max-width: 900px) {
    .hm-visual { max-width: 440px; justify-self: start; padding: 0 0 120px; }
    .hm-hero { padding-bottom: 72px; }
}
@media (max-width: 480px) {
    .hm-photo { width: 70%; }
    .hm-visual .hm-bill { width: 86%; margin-right: 0; }
}
