:root {
  --bg: #fffaf6;
  --bg-soft: #fbefea;
  --surface: #ffffff;
  --brand: #9a5b47;
  --brand-soft: #f6e3dc;
  --accent: #e8a3b0;
  --ink: #4a3530;
  --muted: #7a625b;
  --line: #f1ddd6;
  --line-rose: #f1ddd6;
  --field: #a98a80;
  --zalo: #0068ff;
  --danger: #b91c1c;
  --ok: #166534;
  --overlay: rgba(74, 53, 48, 0.45);
  --shadow: 0 6px 20px rgba(154, 91, 71, 0.1);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Be Vietnam Pro', system-ui, sans-serif;
  --font-script: 'Great Vibes', cursive;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--font-body); color: var(--ink); background: var(--bg); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; box-shadow: 0 0 0 6px rgba(232, 163, 176, 0.45); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

.topbar { background: var(--bg-soft); color: var(--ink); text-align: center; font-weight: 500; font-size: 13px; padding: 7px 12px; border-bottom: 1px solid var(--line); }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line-rose); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; min-height: 44px; white-space: nowrap; }
.brand-bow { flex: none; color: var(--accent); }
@media (min-width: 768px) { .brand { font-size: 26px; } }
.search { display: none; align-items: center; flex: 0 1 380px; border: 1px solid var(--line-rose); border-radius: 999px; background: var(--bg-soft); padding-left: 16px; }
.search:focus-within { border-color: var(--ink); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; min-height: 44px; outline: none; }
.search button, .search-link { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: 999px; }
.search svg, .search-link svg { width: 20px; height: 20px; }
@media (min-width: 768px) { .search { display: flex; } .search-link { display: none; } }
.header-actions { display: flex; align-items: center; gap: 4px; }
.cart-link { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; color: var(--ink); border-radius: 999px; }
.cart-link svg { width: 22px; height: 22px; }
.cart-badge { position: absolute; top: 3px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.nav-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 10px; background: var(--accent); color: var(--ink); font-size: 12px; font-weight: 700; }

.brand-banner { display: block; margin: 16px 0 0; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: var(--bg-soft); }
.brand-banner img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 3; object-fit: cover; }
@media (max-width: 767px) { .brand-banner { margin: 0 -16px; border-radius: 0; box-shadow: none; } }
@media (max-width: 640px) { .brand-banner img { aspect-ratio: 4 / 3; } }
.hero { position: relative; margin: 16px 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; max-height: 70vh; background: var(--bg-soft); box-shadow: var(--shadow); }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0.6s; color: inherit; text-decoration: none; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero .badge { position: absolute; top: 12px; left: 12px; }
.hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 16px 40px; background: linear-gradient(transparent, rgba(74, 53, 48, 0.78)); color: var(--bg); }
.hero-text h1, .hero-text .hero-title { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1.15; margin: 0; color: inherit; }
.hero-text p { margin: 4px 0 0; }
.ai-note { font-size: 12px; opacity: 0.9; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 4px; display: flex; justify-content: center; }
.hero-dots button { width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hero-dots button::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 250, 246, 0.7); box-shadow: 0 0 0 1px rgba(74, 53, 48, 0.25); transition: width 0.3s, background 0.3s; }
.hero-dots button[aria-current='true']::before { width: 20px; border-radius: 4px; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }
@media (min-width: 768px) {
  .hero { aspect-ratio: auto; max-height: none; height: 460px; }
  .hero-slide { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-template-rows: 100%; background: var(--bg-soft); }
  .hero-text { position: static; align-self: center; padding: 32px 48px; background: none; color: var(--ink); }
  .hero-text h1, .hero-text .hero-title { font-size: 46px; }
  .hero-dots { left: 40%; bottom: 16px; }
  .hero-dots button::before { background: rgba(154, 91, 71, 0.25); box-shadow: none; }
  .hero-dots button[aria-current='true']::before { background: var(--brand); }
  .hero-text p { font-size: 18px; color: var(--muted); }
  .hero-text .ai-note { font-size: 13px; margin-top: 16px; }
}
.badge { display: inline-block; background: var(--accent); color: var(--ink); font-weight: 700; font-size: 12px; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 999px; }

.nav-menu { --heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8-5.2-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 5.8-8 11-8 11z' fill='none' stroke='%23000' stroke-width='2.6' stroke-linejoin='round'/%3E%3C/svg%3E"); background: var(--bg); border-bottom: 1px solid var(--line-rose); }
.nav-menu ul { list-style: none; margin: 0 auto; padding-top: 12px; padding-bottom: 4px; display: flex; align-items: center; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 16px; scrollbar-width: none; }
.nav-menu ul::-webkit-scrollbar { display: none; }
.nav-menu li { flex: none; display: flex; align-items: center; scroll-snap-align: start; }
.nav-menu li:first-child { margin-left: auto; }
.nav-menu li:last-child { margin-right: auto; }
.nav-menu li + li::before { content: ''; flex: none; width: 8px; height: 8px; margin: 0 8px; background: var(--accent); -webkit-mask: var(--heart) center / contain no-repeat; mask: var(--heart) center / contain no-repeat; }
.nav-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; padding: 6px 16px; border-radius: 999px; text-decoration: none; color: var(--ink); text-align: center; white-space: nowrap; transition: background-color 0.2s, color 0.2s; }
.nav-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.2; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); transition: color 0.2s; }
.nav-sub { font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.nav-item:hover, .nav-item:focus-visible { background: var(--bg-soft); }
.nav-item:hover .nav-name, .nav-item:focus-visible .nav-name, .nav-item[aria-current='page'] .nav-name { color: var(--brand); }
.nav-item:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; box-shadow: none; }
.nav-item[aria-current='page'] { background: var(--brand-soft); }
.nav-bow { position: absolute; top: -8px; left: 50%; width: 14px; height: 10px; color: var(--accent); transform: translateX(-50%); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .nav-menu ul { animation: nav-fade linear both; animation-timeline: scroll(x self); }
  @keyframes nav-fade {
    from { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
    99% { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
    to { -webkit-mask-image: none; mask-image: none; }
  }
}
@media (max-width: 640px) {
  .nav-menu li + li::before { margin: 0 4px; }
  .nav-item { padding: 6px 12px; }
  .nav-name { font-size: 14px; }
  .nav-sub { font-size: 11px; }
}
.tagline { margin: 4px 0 8px; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: 0.14em; color: var(--brand); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--brand-soft); border: 1px solid var(--line-rose); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; transition: border-color 0.2s, background-color 0.2s; }
.chip:hover { border-color: var(--brand); }
.chip[aria-current='page'] { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: var(--shadow); }

.trust { list-style: none; margin: 0 0 8px; padding: 6px 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; background: var(--bg-soft); border-radius: 16px; }
.trust a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 4px; text-decoration: none; font-weight: 600; font-size: 13px; color: var(--muted); text-align: center; }
.trust svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
@media (max-width: 480px) { .trust a { flex-direction: column; gap: 2px; font-size: 12px; } }

.crumbs { font-size: 14px; color: var(--muted); padding-top: 12px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-title { font-size: 26px; margin: 4px 0 12px; }
.section-title { font-size: 22px; margin: 24px 0 8px; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 4px; }
.size-filter { display: flex; gap: 6px; }
.size-chip { display: inline-grid; place-items: center; min-width: 44px; height: 44px; border: 1px solid var(--line-rose); border-radius: 12px; background: var(--surface); font-weight: 600; text-decoration: none; transition: border-color 0.2s; }
.size-chip:hover { border-color: var(--brand); }
.size-chip[aria-current='true'] { background: var(--brand); border-color: var(--brand); color: #fff; }
.sort select { min-height: 44px; padding: 0 12px; border: 1px solid var(--line-rose); border-radius: 10px; font: inherit; font-weight: 600; background: var(--surface); color: var(--ink); cursor: pointer; }
.count { color: var(--muted); font-size: 14px; margin: 4px 0 12px; }
.empty { padding: 32px 16px; text-align: center; color: var(--muted); background: var(--bg-soft); border-radius: 12px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: block; text-decoration: none; color: inherit; }
.card-media { position: relative; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: var(--bg-soft); box-shadow: var(--shadow); }
.card-img, .card-empty { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-img-alt { opacity: 0; transition: opacity 0.25s ease; }
@media (hover: hover) { .card:hover .card-img-alt { opacity: 1; } }
.card-off { position: absolute; top: 8px; left: 8px; background: var(--accent); color: var(--ink); font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 999px; }
.card-soldout { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(74, 53, 48, 0.8); color: var(--bg); text-align: center; font-weight: 600; font-size: 13px; padding: 6px; }
.card-body { padding: 8px 2px 4px; }
.card h3 { font: 500 15px/1.4 var(--font-body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover h3 { text-decoration: underline; }
.price { font-family: var(--font-display); color: var(--brand); font-weight: 700; font-size: 21px; line-height: 1.2; margin: 4px 0 0; }
.price s { font-family: var(--font-body); color: var(--muted); font-weight: 500; font-size: 0.65em; margin-left: 4px; }
.dots { display: flex; align-items: center; gap: 4px; margin: 6px 0 0; }
.dot { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line-rose); }
.dot-text { display: inline-grid; place-items: center; background: var(--bg-soft); font-size: 10px; font-weight: 700; color: var(--muted); }
.dot-more { font-size: 12px; color: var(--muted); font-weight: 700; }
.meta { color: var(--muted); font-size: 13px; margin: 2px 0 0; }

.fab-chat { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 20; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff; box-shadow: 0 6px 20px rgba(154, 91, 71, 0.3); transition: transform 0.2s; border: 0; cursor: pointer; }
.fab-zalo { background: var(--zalo); box-shadow: 0 6px 18px rgba(0, 104, 255, 0.35); }
.fab-chat:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 7px rgba(232, 163, 176, 0.6); }
.fab-chat:hover { transform: scale(1.05); }
.fab-chat svg { width: 26px; height: 26px; }

.search-page { padding-top: 16px; }
.search-big { display: flex; gap: 8px; margin: 8px 0 16px; }
.search-big input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 10px; font: inherit; }
.empty p { margin: 0 0 10px; }
.empty .btn { margin-top: 4px; }

.pdp { display: grid; gap: 16px; padding-top: 12px; padding-bottom: 24px; }
.pdp > * { min-width: 0; }
.pdp-notice { margin-top: 8px; }
.pdp-notice > * { margin: 0; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1fr 1fr; gap: 32px; } }
#main-img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; background: var(--bg-soft); box-shadow: var(--shadow); }
.thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 8px; padding-bottom: 4px; }
.thumbs button { flex: 0 0 64px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; }
.thumbs img { width: 64px; height: 84px; object-fit: cover; }
.info h1 { font-size: 24px; }
.info .price { font-size: 30px; }
.pdp-off { display: inline-block; vertical-align: middle; margin-left: 8px; font-family: var(--font-body); background: var(--accent); color: var(--ink); font-weight: 700; font-size: 13px; padding: 2px 10px; border-radius: 999px; }
fieldset { border: 0; padding: 0; margin: 16px 0 0; min-width: 0; }
legend { font-weight: 700; margin-bottom: 8px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 56px; height: 72px; padding: 0; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--surface); color: var(--ink); font-size: 11px; }
.swatch img { width: 100%; height: 100%; object-fit: cover; }
.swatch[aria-pressed='true'] { border-color: var(--brand); box-shadow: 0 0 0 2px var(--accent); }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.size { min-width: 56px; min-height: 44px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: 16px; cursor: pointer; transition: border-color 0.15s; }
.size[aria-pressed='true'] { border-color: var(--brand); color: var(--ink); background: var(--brand-soft); }
.size:disabled { color: #b8a59f; text-decoration: line-through; cursor: not-allowed; background: var(--bg-soft); }
.size-guide { margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.size-guide summary { cursor: pointer; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; font-size: 14px; vertical-align: middle; }
.desc p { margin: 8px 0; }

.has-bottom-bar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(154, 91, 71, 0.08); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; transition: filter 0.2s, box-shadow 0.2s; }
.btn:hover { filter: brightness(0.94); }
.btn svg { width: 20px; height: 20px; flex: none; }
.sticky-bar .btn { flex: 1; min-height: 48px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn-ghost { background: var(--brand-soft); color: var(--ink); }
#toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 99px; font-size: 14px; margin: 0; z-index: 30; }
#toast:empty { display: none; }

.site-footer { background: var(--bg-soft); margin-top: 40px; padding: 28px 0; font-size: 14px; color: var(--ink); }
.brand-foot { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand); margin: 0; }
.script-line { font-family: var(--font-script); font-size: 30px; line-height: 1.2; color: var(--brand); margin: 0 0 10px; }
.contact { list-style: none; padding: 0; margin: 0 0 10px; }
.site-footer nav a { display: inline-flex; align-items: center; margin: 4px 14px 4px 0; min-height: 44px; }
.policy { max-width: 720px; padding-top: 16px; padding-bottom: 40px; }
.policy h1 { font-size: 24px; margin-bottom: 12px; }

.is-admin { background: var(--bg); }
.admin-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; background: var(--ink); color: var(--bg); padding: 6px 16px; }
.admin-bar a { color: var(--bg); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; min-height: 44px; }
.admin-bar a:hover { text-decoration: underline; }
.admin-bar :focus-visible { outline-color: var(--accent); }
.admin-bar form { margin-left: auto; }
.admin-main { max-width: 1100px; margin: 0 auto; padding: 16px; }
.admin-main h1 { font-size: 24px; margin-bottom: 12px; }
.admin-main h2 { font-size: 18px; margin-bottom: 10px; grid-column: 1 / -1; }
.login { max-width: 420px; padding-top: 10vh; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
label small, .help { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
input[type='text'], input[type='number'], input[type='password'], input[type='tel'], input[type='email'], select, textarea {
  width: 100%; margin-top: 4px; padding: 10px; border: 1px solid var(--field); border-radius: 10px; font: inherit; color: var(--ink); background: var(--surface); min-height: 44px;
}
.err { display: block; color: var(--danger); font-size: 13px; font-weight: 600; margin-top: 4px; }
.notice { background: #ecfdf5; border: 1px solid #a7f3d0; padding: 10px 12px; border-radius: 8px; }
.warn { background: #fef2f2; border: 1px solid #fecaca; padding: 10px 12px; border-radius: 8px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.table-wrap { overflow-x: auto; }
.thumb { width: 48px; height: 64px; object-fit: cover; border-radius: 6px; }
.thumb.empty { display: inline-block; background: var(--bg-soft); }
.img-grid, .pick-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.img-tile { margin: 0; width: 110px; }
.img-tile img { width: 110px; height: 146px; object-fit: cover; border-radius: 8px; }
.pick { display: inline-block; cursor: pointer; }
.pick img { width: 64px; height: 84px; object-fit: cover; border-radius: 6px; border: 2px solid transparent; }
.pick input:checked + img { border-color: var(--brand); }
.pick input { position: absolute; opacity: 0; }
.color-list { list-style: none; padding: 0; margin: 0 0 16px; }
.color-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; }
.inline-form input[type='text'] { margin: 0; width: 200px; }
.link-danger { background: none; border: 0; color: var(--danger); font-weight: 700; cursor: pointer; min-height: 44px; }
.matrix td, .matrix th { text-align: center; }
.matrix input { width: 22px; height: 22px; }
.status { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--bg-soft); }
.status-new { background: var(--accent); } .status-confirmed { background: #dbeafe; } .status-shipping { background: #e0e7ff; }
.status-delivered { background: #dcfce7; } .status-returned { background: #fee2e2; } .status-cancelled { background: #e5e5e5; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filters a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.filters a[aria-current='page'] { background: var(--brand); border-color: var(--brand); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions form { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.events { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.events li { padding: 4px 0; border-bottom: 1px dashed var(--line); }
.cat-picks { margin: 4px 0 14px; }
.cat-picks .check { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 0 16px 0 0; font-weight: 600; }
.cat-picks input { width: 20px; height: 20px; }
.guide { max-width: 820px; line-height: 1.6; }
.guide h3 { font-size: 16px; margin: 18px 0 6px; }
.guide-section { scroll-margin-top: 16px; }
.guide-toc ol { margin: 0; padding-left: 20px; columns: 2; }
.guide-toc a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.steps { padding-left: 22px; }
.steps li { margin-bottom: 8px; }
.defs dt { font-weight: 700; margin-top: 10px; }
.defs dd { margin: 2px 0 0; color: var(--muted); }
.formula { margin: 12px 0; padding: 14px 16px; border-left: 4px solid var(--brand); background: var(--bg-soft); border-radius: 10px; font-family: var(--font-display); font-weight: 700; font-size: 21px; }
.formula small { display: block; margin-top: 4px; font-family: var(--font-body); font-weight: 400; font-size: 14px; color: var(--muted); }
.calc { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 12px 0; padding: 14px; border: 2px solid var(--brand); border-radius: 16px; }
.calc label { flex: 1 1 220px; margin: 0; }
.calc .btn { min-height: 44px; }
.calc-result { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 0 0 16px; }
.calc-result div { background: var(--bg-soft); border-radius: 10px; padding: 10px 12px; }
.calc-result dt { font-size: 13px; color: var(--muted); }
.calc-result dd { margin: 2px 0 0; font-weight: 700; font-size: 18px; }
.calc-result dd.big { font-family: var(--font-display); color: var(--brand); font-size: 28px; }
.guide code { background: var(--bg-soft); padding: 1px 6px; border-radius: 4px; font-size: 0.92em; }
@media (max-width: 600px) { .guide-toc ol { columns: 1; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.btn-chat { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-zalo { background: var(--zalo); color: #fff; border: 0; }
.btn-messenger { background: var(--brand); color: #fff; border: 0; }
.contact-sheet { margin: auto auto 0; width: min(100%, 480px); border: 0; border-radius: 16px 16px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgba(74, 53, 48, 0.18); color: var(--ink); background: var(--bg); }
.contact-sheet::backdrop { background: var(--overlay); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.sheet-close { min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 15px; cursor: pointer; }
.contact-sheet ul { list-style: none; margin: 0; padding: 0; }
.sheet-link { display: flex; align-items: center; gap: 12px; min-height: 56px; color: var(--ink); text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--line); }
.contact-sheet li:last-child .sheet-link { border-bottom: 0; }
.sheet-link svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; color: #fff; background: var(--zalo); flex: none; }
.sheet-messenger svg { background: var(--brand); }
@media (min-width: 768px) { .contact-sheet { margin: auto; border-radius: 16px; } }
.contact-sheet.is-fallback-open { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--bg); margin: 0 auto; }
.sticky-bar .add-form { flex: 2; display: flex; }
.sticky-bar .add-form .btn { flex: 1; }
.notice-warn { background: #fff7ed; border: 1px solid #fed7aa; padding: 10px 12px; border-radius: 8px; margin: 0 0 12px; }
.notice-warn ul { margin: 6px 0 0; padding-left: 18px; }
.cart-page { padding-top: 16px; padding-bottom: 32px; max-width: 720px; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line img, .cart-thumb { width: 64px; height: 80px; object-fit: cover; border-radius: 8px; background: var(--bg-soft); flex: none; }
.cart-line-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.cart-line-info a { color: var(--ink); font-weight: 700; text-decoration: none; }
.cart-line-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.cart-line-actions select { min-height: 44px; min-width: 64px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; font: inherit; }
.link-remove { min-height: 44px; border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; }
.cart-summary { margin: 16px 0; padding: 16px; border-radius: 16px; background: var(--bg-soft); }
.cart-summary > div { display: flex; justify-content: space-between; padding: 4px 0; }
.cart-summary .free { color: var(--ok); }
.ship-hint { margin: 4px 0; color: var(--brand); font-weight: 600; font-size: 14px; }
.cart-summary .cart-total { border-top: 1px solid var(--line-rose); margin-top: 6px; padding-top: 10px; font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.checkout { display: grid; gap: 12px; }
.checkout h2 { font-size: 24px; margin: 8px 0 0; }
.checkout label { display: grid; gap: 4px; font-weight: 600; }
.checkout input, .checkout textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--surface); min-height: 44px; padding: 10px 12px; border: 1px solid var(--field); border-radius: 12px; }
.checkout .err { color: var(--danger); font-weight: 600; font-size: 14px; }
.checkout .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cod { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--bg-soft); color: var(--muted); }
.btn-block { width: 100%; min-height: 52px; }

.thanks { max-width: 640px; padding-top: 16px; padding-bottom: 40px; }
.order-code { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--brand); }
.thanks-actions { display: flex; flex-wrap: wrap; gap: 8px; }
