/* Nguyên Hồng — website tự viết, CSS thuần. Tông socola – kem – vàng đồng. */
:root {
  --choco: #4A2C21;
  --choco-900: #2B1A12;
  --ink: #2A211C;
  --muted: #6B5E55;
  --cream: #FBF8F3;
  --paper: #FFFFFF;
  --sand: #EFE6D8;
  --sand-2: #F5EFE6;
  --line: #E7DCCB;
  --gold: #A16207;
  --gold-700: #854D0E;
  --gold-300: #D9B46A;
  --wine: #7F1D1D;
  --footer: #1F1612;
  --ok: #166534;
  --err: #B91C1C;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Be Vietnam Pro', 'Segoe UI', Roboto, Arial, sans-serif;
  --r: .75rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--choco); text-underline-offset: .18em; }
a:hover { color: var(--gold-700); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; color: var(--choco-900); letter-spacing: -.01em; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(161, 98, 7, .22); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--choco); color: #fff; padding: .5rem 1rem; border-radius: .5rem; }
.skip:focus { left: 8px; }

/* Nút */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .65rem 1.3rem; border-radius: .5rem; border: 1px solid transparent;
  font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 200ms var(--ease);
}
.btn-lg { min-height: 52px; padding: .8rem 1.75rem; font-size: 1.0625rem; }
.btn-primary { background: var(--choco); color: #fff; }
.btn-primary:hover { background: var(--choco-900); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-700); color: #fff; }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(251, 248, 243, .55); }
.btn-ghost:hover { background: rgba(251, 248, 243, .1); color: #fff; border-color: var(--cream); }
.btn-line { background: transparent; color: var(--choco); border-color: var(--choco); }
.btn-line:hover { background: var(--choco); color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }
.eyebrow { margin: 0 0 .5rem; font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-700); }
.more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--choco); text-decoration: none; white-space: nowrap; }
.more .icon { transition: transform 200ms var(--ease); }
.more:hover .icon { transform: translateX(3px); }

/* Thanh trên + header */
.topbar { background: var(--choco-900); color: rgba(251, 248, 243, .88); font-size: .8125rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 36px; }
.topbar a { color: var(--gold-300); text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.topbar a:hover { color: var(--cream); }
.header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 243, .96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--choco); margin-right: auto; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--choco); color: var(--gold-300); font: 700 1.15rem/1 var(--serif); letter-spacing: .04em;
  box-shadow: inset 0 0 0 2px var(--choco), inset 0 0 0 3px rgba(217, 180, 106, .7);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font: 700 1.65rem/1 var(--serif); color: var(--choco-900); }
.brand-tag { white-space: nowrap; margin-top: .25rem; font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-700); }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { position: relative; padding: .6rem .8rem; white-space: nowrap; font-weight: 500; color: var(--ink); text-decoration: none; }
.nav a::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .35rem; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--choco); }
.search { position: relative; flex: 0 1 300px; }
.search input {
  width: 100%; height: 44px; padding: 0 2.9rem 0 1rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); font-size: .9375rem;
}
.search input::placeholder { color: #8C7F75; }
.search input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(161, 98, 7, .18); }
.search button { position: absolute; right: 0; top: 0; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--choco); cursor: pointer; display: grid; place-items: center; }
.cart-link { white-space: nowrap; position: relative; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .6rem; color: var(--choco); font-weight: 600; text-decoration: none; }
.cart-count {
  position: static; min-width: 1.3rem; height: 1.3rem; padding: 0 .3rem; border-radius: 999px;
  background: var(--gold); color: #fff; font-size: .6875rem; font-weight: 700; display: grid; place-items: center;
}
.cart-count:empty, .cart-count[data-n="0"] { display: none; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: .5rem; background: var(--paper); color: var(--choco); cursor: pointer; place-items: center; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: var(--cream); padding: 4.5rem 0 4rem;
  background:
    radial-gradient(60rem 30rem at 85% 30%, rgba(217, 180, 106, .18), transparent 60%),
    radial-gradient(40rem 24rem at 0% 100%, rgba(127, 29, 29, .35), transparent 60%),
    linear-gradient(160deg, var(--choco) 0%, var(--choco-900) 100%);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 2rem; }
.hero .eyebrow { color: var(--gold-300); }
.hero h1 { color: #FFF8EE; font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.06; margin-bottom: 1.25rem; }
.hero-lead { max-width: 34rem; margin-bottom: 2rem; font-size: 1.0625rem; line-height: 1.7; color: rgba(251, 248, 243, .85); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-art svg { width: 100%; max-width: 460px; height: auto; margin: 0 auto; }

/* Cam kết */
.trust { background: var(--paper); border-bottom: 1px solid var(--line); padding: 1.75rem 0 .75rem; }
.trust .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.trust-item { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: 1rem; }
.trust-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sand-2); color: var(--gold-700); flex: 0 0 44px; }
.trust-item strong { display: block; font-size: .9375rem; color: var(--choco-900); }
.trust-item div span { display: block; font-size: .8125rem; line-height: 1.45; color: var(--muted); }

/* Khối nội dung */
.section { padding: 4rem 0; }
.section-alt { background: var(--sand-2); }
.section h2 { font-size: clamp(1.85rem, 3.2vw, 2.25rem); margin: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }

.tone-0 { --tone-bg: #F3E7DA; --tone-ink: #4A2C21; }
.tone-1 { --tone-bg: #EFE3D0; --tone-ink: #6B4A12; }
.tone-2 { --tone-bg: #F2E1DF; --tone-ink: #7F1D1D; }
.tone-3 { --tone-bg: #E9E6DA; --tone-ink: #3F4A2A; }
.tone-4 { --tone-bg: #F5EBD8; --tone-ink: #854D0E; }
.tone-5 { --tone-bg: #E8E1DA; --tone-ink: #3A2E2A; }

.cat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.cat-tile {
  display: flex; flex-direction: column; min-height: 168px; padding: 1.25rem; border-radius: var(--r);
  background: var(--tone-bg); color: var(--tone-ink); text-decoration: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
  transition: transform 200ms var(--ease), box-shadow 200ms ease;
}
.cat-tile:hover { color: var(--tone-ink); transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(161, 98, 7, .45), 0 12px 24px -16px rgba(43, 26, 18, .45); }
.cat-index { font: 700 1rem/1 var(--serif); color: var(--gold-700); }
.cat-name { margin-top: auto; font: 700 1.75rem/1.05 var(--serif); }
.cat-meta { display: flex; justify-content: space-between; align-items: center; margin-top: .6rem; font-size: .8125rem; font-weight: 500; color: var(--muted); }
.cat-meta .icon { color: var(--tone-ink); transition: transform 200ms var(--ease); }
.cat-tile:hover .cat-meta .icon { transform: translateX(4px); }

/* Thẻ sản phẩm */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--paper); transition: transform 200ms var(--ease), box-shadow 200ms ease, border-color 160ms ease;
}
.card:hover { transform: translateY(-2px); border-color: rgba(161, 98, 7, .5); box-shadow: 0 14px 28px -18px rgba(43, 26, 18, .45); }
.card-img { display: block; aspect-ratio: 1 / 1; margin: .5rem .5rem 0; padding: .5rem; border-radius: .5rem; background: var(--cream); }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: .8rem 1rem 1rem; }
.card-cat { font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-700); }
.card-title { margin: .2rem 0 .7rem; font: 500 .9375rem/1.4 var(--sans); min-height: 2.8em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::before { content: ""; position: absolute; inset: 0; } /* cả thẻ bấm được */
.card-title a:hover { color: var(--choco); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; }
.price { font-weight: 700; color: var(--choco); font-size: 1.0625rem; }
.price small { font-weight: 500; color: var(--muted); font-size: .75rem; }
.add-btn {
  position: relative; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--choco); color: #fff; cursor: pointer; transition: background-color 160ms ease, transform 160ms ease;
}
.add-btn:hover { background: var(--gold); }
.add-btn:active { transform: scale(.94); }

/* Ảnh chờ */
.ph {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem;
  width: 100%; height: 100%; border-radius: .5rem; color: var(--tone-ink);
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .35) 0 2px, transparent 2px 12px), var(--tone-bg);
}
.ph::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(161, 98, 7, .28); border-radius: .35rem; pointer-events: none; }
.ph-seal { display: grid; place-items: center; width: 4.25rem; height: 4.25rem; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1.5px rgba(161, 98, 7, .55), 0 0 0 4px rgba(255, 255, 255, .35); font: 700 1.6rem/1 var(--serif); letter-spacing: .04em; }
.ph-cat { max-width: 85%; font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-align: center; opacity: .8; }
.ph-lg .ph-seal { width: 8rem; height: 8rem; font-size: 3rem; }
.ph-lg .ph-cat { font-size: .875rem; }

/* Quà tặng */
.gift {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; padding: 3rem 3.5rem; border-radius: 1rem;
  background: linear-gradient(135deg, rgba(217, 180, 106, .18), transparent 55%), var(--sand); box-shadow: inset 0 0 0 1px rgba(161, 98, 7, .25);
}
.gift h2 { font-size: 2rem; margin-bottom: .75rem; }
.gift p:not(.eyebrow) { max-width: 40rem; margin: 0; color: var(--muted); }
.gift-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Trang danh sách */
.page-head { padding-top: 2.5rem; padding-bottom: 1.5rem; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: .4rem; }
.page-head p { color: var(--muted); margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .75rem; padding: 0; list-style: none; font-size: .875rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--choco); }
.shop { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 2rem; padding-bottom: 4rem; }
.side { align-self: start; position: sticky; top: 96px; padding: 1rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.side h2 { font: 600 .8125rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-700); margin: .25rem .5rem .75rem; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side a { position: relative; display: flex; justify-content: space-between; gap: .5rem; padding: .55rem .75rem; border-radius: .4rem; color: var(--ink); text-decoration: none; font-weight: 500; }
.side a:hover { background: var(--sand-2); }
.side a[aria-current="page"] { background: var(--sand); color: var(--choco-900); font-weight: 700; }
.side a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: .45rem; bottom: .45rem; width: 3px; border-radius: 3px; background: var(--gold); }
.side .sub a { padding-left: 1.5rem; font-weight: 400; font-size: .9375rem; }
.side small { color: var(--muted); font-weight: 400; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.25rem; }
.toolbar .count { color: var(--muted); font-size: .9375rem; }
.toolbar label { font-size: .875rem; color: var(--muted); display: inline-flex; align-items: center; gap: .5rem; }
.toolbar select { max-width: 100%; height: 44px; padding: 0 2.2rem 0 .9rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--paper); }
.empty { padding: 3rem 1rem; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r); }
.chips { display: none; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; margin-bottom: 1rem; scrollbar-width: none; }
.chips a { flex: 0 0 auto; padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; font-size: .875rem; font-weight: 500; }
.chips a[aria-current="page"] { background: var(--choco); color: #fff; border-color: var(--choco); }

/* Trang sản phẩm */
.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; padding-top: 1.5rem; padding-bottom: 3rem; }
.pd-img { aspect-ratio: 1 / 1; padding: 1rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.pd-img img { width: 100%; height: 100%; object-fit: contain; }
.pd h1 { font-size: clamp(1.9rem, 3.4vw, 2.4rem); }
.pd-code { color: var(--muted); font-size: .875rem; margin-bottom: 1rem; }
.pd-price { font: 700 1.9rem/1.2 var(--sans); color: var(--choco); margin: .5rem 0 1.5rem; }
.pd-price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: .5rem; background: var(--paper); }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--choco); cursor: pointer; display: grid; place-items: center; }
.qty button:hover { background: var(--sand-2); }
.qty input { width: 3.25rem; height: 44px; border: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; background: transparent; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd-buy { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1.5rem; }
.pd-trust { list-style: none; margin: 0; padding: 1rem 1.1rem; border-radius: var(--r); background: var(--sand-2); font-size: .9375rem; }
.pd-trust li { display: flex; gap: .6rem; align-items: center; padding: .3rem 0; }
.pd-trust .icon { color: var(--gold-700); }
.pd-desc { margin-top: 1.5rem; color: var(--muted); }

/* Giỏ hàng + đặt hàng */
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 2rem; padding-bottom: 4rem; align-items: start; }
.cart-lines { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1rem; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line-img { width: 72px; height: 72px; border-radius: .5rem; overflow: hidden; }
.line-img .ph-seal { width: 2.4rem; height: 2.4rem; font-size: .9rem; box-shadow: inset 0 0 0 1px rgba(161, 98, 7, .55); }
.line-img .ph-cat, .line-img .ph::after { display: none; }
.line-name { font-weight: 500; color: var(--ink); text-decoration: none; display: block; }
.line-unit { font-size: .875rem; color: var(--muted); }
.line-right { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.line-total { font-weight: 700; color: var(--choco); }
.line-del { border: 0; background: none; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; font-size: .8125rem; min-height: 32px; }
.line-del:hover { color: var(--err); }
.summary { position: sticky; top: 96px; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.summary h2 { font-size: 1.6rem; }
.sum-row { display: flex; justify-content: space-between; padding: .4rem 0; }
.sum-total { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .9rem; font-weight: 700; font-size: 1.15rem; color: var(--choco-900); }
.form { display: grid; gap: 1rem; margin-top: 1.25rem; }
.field label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .35rem; }
.field label .req { color: var(--err); }
.field input, .field textarea {
  width: 100%; min-height: 44px; padding: .6rem .85rem; border: 1px solid #DCCFBC; border-radius: .5rem; background: var(--paper);
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(161, 98, 7, .18); }
.field .hint { font-size: .8125rem; color: var(--muted); margin-top: .3rem; }
.field .err-msg { display: none; font-size: .8125rem; color: var(--err); margin-top: .3rem; }
.field.invalid input, .field.invalid textarea { border-color: var(--err); }
.field.invalid .err-msg { display: block; }
.pay { display: grid; gap: .5rem; border: 0; padding: 0; margin: 0; }
.pay legend { font-size: .875rem; font-weight: 600; margin-bottom: .35rem; }
.pay label { display: flex; gap: .6rem; align-items: center; min-height: 44px; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: .5rem; cursor: pointer; }
.pay input { accent-color: var(--choco); width: 18px; height: 18px; }
.pay label:has(input:checked) { border-color: var(--choco); background: var(--sand-2); }
.hp { position: absolute; left: -5000px; }
.alert { padding: .9rem 1rem; border-radius: .5rem; font-size: .9375rem; }
.alert-err { background: #FEF2F2; color: var(--err); border: 1px solid #FECACA; }
.alert-ok { background: #F0FDF4; color: var(--ok); border: 1px solid #BBF7D0; }
.thanks { max-width: 640px; margin: 3rem auto 5rem; text-align: center; padding: 2.5rem 1.5rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); }
.thanks .big-ic { width: 64px; height: 64px; margin: 0 auto 1rem; color: var(--ok); }
.order-code { display: inline-block; margin: .5rem 0 1rem; padding: .5rem 1rem; border-radius: .5rem; background: var(--sand-2); font: 700 1.25rem/1.2 var(--sans); letter-spacing: .05em; color: var(--choco-900); }

/* Liên hệ */
.contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding-bottom: 4rem; }
.contact-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.contact-card .trust-ic { margin-bottom: .9rem; }
.contact-card h2 { font: 600 1rem/1.3 var(--sans); color: var(--choco-900); margin-bottom: .35rem; }
.contact-card p { margin: 0; color: var(--muted); }

/* Thông báo nổi */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 140%); display: flex; align-items: center; gap: .75rem;
  width: max-content; max-width: calc(100vw - 32px); padding: .8rem 1rem; border-radius: .75rem; background: var(--choco-900); color: var(--cream);
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, .45); visibility: hidden; opacity: 0;
  transition: transform 260ms var(--ease), opacity 200ms ease, visibility 0s linear 260ms;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; opacity: 1; transition: transform 260ms var(--ease), opacity 200ms ease; }
.toast a { color: var(--gold-300); font-weight: 600; white-space: nowrap; }

/* Chân trang */
.footer { background: var(--footer); color: rgba(251, 248, 243, .78); }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 2rem; padding: 3.5rem 0 2rem; }
.footer-brand { font: 700 2rem/1.1 var(--serif); color: #FFF8EE; margin-bottom: .75rem; }
.footer h2 { font: 600 .8125rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-300); margin: .5rem 0 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .6rem; }
.footer a { color: rgba(251, 248, 243, .85); text-decoration: none; }
.footer a:hover { color: var(--gold-300); }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact .icon { color: var(--gold-300); margin-top: .2rem; }
.footer-bottom { border-top: 1px solid rgba(251, 248, 243, .08); background: rgba(0, 0, 0, .25); font-size: .8125rem; color: rgba(251, 248, 243, .6); }
.footer-bottom .wrap { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: .75rem; padding-bottom: .75rem; }

/* Màn hình vừa */
@media (max-width: 1199.98px) {
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand-tag { display: none; }
  .search { flex-basis: 210px; }
  .nav a { padding: .6rem .6rem; }
  .nav a::after { left: .6rem; right: .6rem; }
  .cart-link .lbl { display: none; }
  .cart-count { position: absolute; top: 2px; left: 22px; }
}
@media (max-width: 991.98px) {
  .menu-btn { display: grid; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 16px 1rem; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px -20px rgba(0, 0, 0, .4);
  }
  .nav.open { display: flex; }
  .nav a { padding: .85rem .25rem; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .search { order: 5; flex: 1 1 100%; margin-bottom: .75rem; }
  .header .wrap { flex-wrap: wrap; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .trust .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop { grid-template-columns: minmax(0, 1fr); }
  .toolbar .search { flex: 1 1 100% !important; max-width: none !important; margin: 0; order: -1; }
  .side { display: none; }
  .chips { display: flex; }
  .pd { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .pd-img { max-width: 480px; width: 100%; margin: 0 auto; }
  .cart { grid-template-columns: 1fr; }
  .summary { position: static; }
  .gift { flex-direction: column; align-items: flex-start; padding: 2rem 1.5rem; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; }
}
/* Điện thoại */
@media (max-width: 575.98px) {
  .topbar .hide-sm { display: none; }
  .topbar .wrap { justify-content: center; }
  .header .wrap { min-height: 64px; gap: .5rem; }
  .brand-mark { width: 40px; height: 40px; font-size: 1rem; }
  .brand-name { font-size: 1.35rem; }
  .brand-tag { display: none; }
  .cart-link span.lbl { display: none; }
  .hero { padding: 3rem 0 2.75rem; }
  .hero-lead { font-size: 1rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .section { padding: 2.75rem 0; }
  .section-head { flex-wrap: wrap; align-items: flex-start; margin-bottom: 1.25rem; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .trust .wrap { gap: .75rem; }
  .trust-item { flex-direction: column; gap: .5rem; }
  .trust-ic { width: 40px; height: 40px; flex-basis: 40px; }
  .cat-tile { min-height: 132px; padding: 1rem; }
  .cat-name { font-size: 1.45rem; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .card-body { padding: .7rem .75rem .8rem; }
  .card-title { font-size: .875rem; }
  .price { font-size: 1rem; }
  .add-btn { width: 40px; height: 40px; }
  .gift h2 { font-size: 1.6rem; }
  .gift-actions .btn { flex: 1 1 100%; }
  .line { grid-template-columns: 56px minmax(0, 1fr); }
  .line-img { width: 56px; height: 56px; }
  .line-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; gap: .5rem; }
  .line .qty input { width: 2.4rem; }
  .line-del { min-width: 44px; min-height: 44px; justify-content: center; }
  .line-del .del-lbl { display: none; }
  .footer-main { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; scroll-behavior: auto !important; }
  .card:hover, .cat-tile:hover { transform: none; }
}
