/* Lớp làm mượt: bo góc, bóng mềm, chuyển động nhẹ. Đặt sau shop.css để ghi đè. */
:root {
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow-1: 0 1px 2px rgb(11 11 12 / .05), 0 6px 18px rgb(11 11 12 / .06);
  --shadow-2: 0 10px 34px rgb(11 11 12 / .14);
}
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
html { scroll-padding-top: 90px; }
body { -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a, button { -webkit-tap-highlight-color: transparent; }

.page-progress { position: fixed; z-index: 90; inset: 0 0 auto; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; opacity: 0; }
.page-progress.run { opacity: 1; animation: progress 1.6s var(--ease) forwards; }
@keyframes progress { 0% { transform: scaleX(0); } 60% { transform: scaleX(.7); } 100% { transform: scaleX(.92); } }

/* Hiện dần: chỉ áp dụng khi JS chạy, tránh mất nội dung nếu JS lỗi */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* Nút */
.btn { border-radius: 999px; padding: 13px 28px; transition: transform .18s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 28%, transparent); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-light:hover { background: var(--accent); }
.btn.is-busy, button.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after, button.is-busy::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 2px solid rgb(255 255 255 / .4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.quick-add button.is-busy::after { border-color: rgb(11 11 12 / .25); border-top-color: var(--ink); }
.btn-outline.is-busy::after { border-color: rgb(11 11 12 / .25); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Header */
.site-header { transition: background .25s, box-shadow .25s, border-color .25s; }
.site-header.scrolled { background: rgb(255 255 255 / .97); box-shadow: 0 6px 24px rgb(11 11 12 / .07); }
.is-home .site-header.scrolled { background: color-mix(in srgb, var(--dark) 86%, transparent); }
.nav-item > a { position: relative; transition: color .2s; }
.nav-item > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 16px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-item:hover > a::after, .nav-item:focus-within > a::after { transform: scaleX(1); }
.sub { display: block; visibility: hidden; opacity: 0; transform: translateY(8px); border: 0; border-radius: var(--r); padding: 10px; box-shadow: var(--shadow-2); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; visibility: visible; opacity: 1; transform: none; }
.sub a { display: flex; align-items: center; gap: 9px; border-radius: var(--r-sm); transition: background .15s, padding .15s; }
.sub a:hover { padding-left: 14px; }
.sub-head { font-weight: 700; }
.sub-child { padding-left: 30px !important; color: var(--muted); }
.sub-dot { width: 9px; height: 9px; border-radius: 50%; }
.icon-btn { border-radius: 50%; transition: background .18s, transform .18s; }
.icon-btn:hover { background: rgb(127 127 127 / .14); }
.icon-btn:active { transform: scale(.92); }

/* Tìm kiếm */
.search { position: relative; }
.search form { display: flex; align-items: center; padding-right: 6px; border: 1px solid transparent; border-radius: 999px; background: rgb(127 127 127 / .12); transition: background .2s, border-color .2s, box-shadow .2s; }
.search form:focus-within { background: var(--paper); color: var(--ink); border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.search input, .is-home .search input { width: 170px; padding: 6px 6px 6px 0; border: 0; background: transparent; outline: 0; transition: width .25s var(--ease); }
.search form:focus-within input { width: 230px; }
.search .icon-btn { width: 34px; height: 34px; }
.search-pop { position: absolute; z-index: 60; right: 0; top: calc(100% + 10px); width: min(92vw, 440px); max-height: 70vh; overflow-y: auto; padding: 8px; background: var(--paper); color: var(--ink); border-radius: var(--r); box-shadow: var(--shadow-2); animation: pop .18s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.search-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px; border-radius: var(--r-sm); transition: background .15s; }
.search-row:hover { background: var(--mist); }
.search-thumb { display: grid; place-items: center; width: 46px; height: 46px; overflow: hidden; background: var(--mist); border-radius: var(--r-sm); }
.search-thumb img { width: 100%; height: 100%; object-fit: contain; }
.search-text { min-width: 0; text-decoration: none; font-size: .875rem; }
.search-text b, .search-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-text small { color: var(--muted); }
.search-action { display: flex; align-items: center; gap: 6px; }
.search-action button { min-width: 28px; height: 28px; padding: 0 8px; background: var(--mist); border: 0; border-radius: 999px; cursor: pointer; font-weight: 700; transition: background .15s; }
.search-action button:hover { background: #e2e2e2; }
.search-action .search-add { background: var(--ink); color: #fff; font-size: .75rem; }
.search-action .search-add:hover { background: var(--accent); }
.search-empty { padding: 16px; text-align: center; color: var(--muted); }

/* Giỏ xem nhanh */
.cart-wrap { position: relative; }
.cart-count { transition: transform .2s; }
.cart-count.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.4); } }
.mini-cart { position: absolute; z-index: 60; right: 0; top: calc(100% + 10px); width: min(92vw, 360px); padding: 12px; background: var(--paper); color: var(--ink); border-radius: var(--r); box-shadow: var(--shadow-2); opacity: 0; transform: translateY(8px); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.mini-cart.open { opacity: 1; transform: none; }
.mini-cart::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.mini-lines { display: grid; gap: 4px; max-height: 320px; overflow-y: auto; }
.mini-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px; border-radius: var(--r-sm); transition: background .15s; }
.mini-row:hover { background: var(--mist); }
.mini-thumb { display: grid; place-items: center; width: 52px; height: 52px; overflow: hidden; background: var(--mist); border-radius: var(--r-sm); }
.mini-thumb img { width: 100%; height: 100%; object-fit: contain; }
.mini-swatch { width: 22px; height: 30px; border-radius: 5px; }
.mini-text { display: grid; font-size: .8125rem; min-width: 0; }
.mini-text a { text-decoration: none; }
.mini-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-text small { color: var(--muted); }
.mini-remove { width: 26px; height: 26px; background: none; border: 0; border-radius: 50%; color: var(--muted); cursor: pointer; font-size: 1.1rem; transition: background .15s, color .15s; }
.mini-remove:hover { background: #fbe3e1; color: var(--error); }
.mini-foot { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.mini-total { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: .9375rem; }
.mini-empty { padding: 18px 8px; text-align: center; }
.mini-empty p { margin-bottom: 12px; color: var(--muted); }

/* Thông báo nổi */
.toasts { position: fixed; z-index: 95; right: 16px; bottom: 16px; display: grid; gap: 8px; max-width: min(92vw, 360px); pointer-events: none; }
.toast { padding: 12px 16px; background: var(--ok); color: #fff; border-radius: var(--r-sm); box-shadow: var(--shadow-2); font-size: .9rem; opacity: 0; transform: translateY(12px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.toast.show { opacity: 1; transform: none; }
.toast-error { background: var(--error); }

/* Banner trượt */
.slider { position: relative; overflow: hidden; background: var(--ink); }
.slides { position: relative; min-height: min(82vh, 720px); }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility .7s; }
.slide.is-active { position: relative; opacity: 1; visibility: visible; z-index: 1; }
.slide-image img { display: block; width: 100%; height: min(82vh, 720px); object-fit: cover; }
.slide-link { position: absolute; inset: 0; z-index: 2; }
.slide-copy { position: absolute; left: clamp(16px, 8vw, 128px); bottom: 12%; color: #fff; text-shadow: 0 2px 18px rgb(0 0 0 / .45); }
.slide-copy h1 { margin: 10px 0 22px; font-family: var(--display); font-weight: 700; letter-spacing: -.025em; font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: 1.12; }
.slider-arrow { position: absolute; z-index: 3; top: 50%; width: 46px; height: 46px; margin-top: -23px; background: rgb(255 255 255 / .14); border: 0; border-radius: 50%; color: #fff; cursor: pointer; font-size: 1.5rem; line-height: 1; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .2s, transform .2s; }
.slider-arrow:hover { background: rgb(255 255 255 / .3); transform: scale(1.07); }
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }
.slider-dots { position: absolute; z-index: 3; left: 50%; bottom: 18px; display: flex; gap: 8px; transform: translateX(-50%); }
.slider-dots button { width: 9px; height: 9px; padding: 0; background: rgb(255 255 255 / .4); border: 0; border-radius: 999px; cursor: pointer; transition: width .3s var(--ease), background .3s; }
.slider-dots button[aria-current] { width: 28px; background: #fff; }

/* Ô danh mục */

/* Thẻ sản phẩm */
.card { position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r); transition: transform .28s var(--ease), box-shadow .28s var(--ease), opacity .55s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.js .card[data-reveal]:not(.in) { transform: translateY(14px); }
.card-media { border-radius: var(--r) var(--r) 0 0; }
.card-media .tub, .card-media img { transition: transform .45s var(--ease); }
.card:hover .tub, .card:hover .card-media img { transform: translateY(-6px) scale(1.03); }
.tag { border-radius: 999px; padding: 4px 10px; font-style: normal; box-shadow: 0 2px 8px rgb(11 11 12 / .08); }
.card-body { padding: 12px 12px 16px; }
.card-title { margin-top: 0; }
.quick-add { margin: 0; opacity: 0; transform: translateY(6px); transition: opacity .22s var(--ease), transform .22s var(--ease); pointer-events: none; }
.card:hover .quick-add, .quick-add:focus-within { opacity: 1; transform: none; pointer-events: auto; }
.quick-add button { position: relative; width: 100%; padding: 9px 12px; background: var(--ink); color: #fff; border: 0; border-radius: 999px; cursor: pointer; font-size: .75rem; font-weight: 700; letter-spacing: .03em; transition: background .18s, transform .18s; }
.quick-add button:hover { background: var(--accent); }
.quick-add button:active { transform: scale(.97); }
.quick-add button.done { background: var(--ok); }
.card-media { position: relative; }
.card > .quick-add { position: relative; left: auto; right: auto; order: 1; height: 0; overflow: visible; padding: 0 12px; }
.card > .quick-add button { position: absolute; left: 12px; right: 12px; width: auto; bottom: 10px; }
.card > .card-body { order: 2; }
.dot { transition: transform .15s var(--ease); }
.dot:hover { transform: scale(1.3); }

/* Băng chuyền */
.rail { gap: 12px; padding: 6px 6px 18px; margin: 0 -6px; scroll-behavior: smooth; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail-arrows button { width: 40px; height: 40px; margin-left: 4px; background: var(--mist); border-radius: 50%; transition: background .18s, opacity .18s, transform .18s; }
.rail-arrows button:hover:not(:disabled) { background: var(--ink); color: #fff; transform: scale(1.06); }
.rail-arrows button:disabled { opacity: .35; cursor: default; }

/* Khối theo danh mục */
.cat-section { padding: clamp(36px, 5vw, 64px) var(--gutter) 0; }
.cat-section .rail-head h2 { font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 700; }
.cat-section .rail-head p { margin-top: 2px; font-size: .9rem; }
.show-more { flex: none; padding: 8px 16px; background: var(--mist); border-radius: 999px; font-size: .8125rem; font-weight: 700; text-decoration: none; transition: background .18s, color .18s, transform .18s; }
.show-more:hover { background: var(--ink); color: #fff; transform: translateX(2px); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { padding: 4px 12px; background: var(--mist); border-radius: 999px; font-size: .75rem; font-weight: 600; text-decoration: none; }
.cat-banner { display: block; margin-bottom: 14px; overflow: hidden; border-radius: var(--r); }
.cat-banner img { display: block; width: 100%; max-height: 260px; object-fit: cover; transition: transform .6s var(--ease); }
.cat-banner:hover img { transform: scale(1.02); }
.grid { gap: 22px 12px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-bottom: 8px; }

/* Banner rộng, nhận tin */

/* Danh sách có bộ lọc */
.listing { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; padding-top: 22px; }
.filter-panel { position: sticky; top: 92px; align-self: start; padding: 16px; background: var(--mist); border-radius: var(--r); }
.filter-panel summary { font-weight: 700; cursor: pointer; list-style: none; }
.filter-panel summary::-webkit-details-marker { display: none; }
.filter-form { display: grid; gap: 14px; margin-top: 12px; font-size: .875rem; }
.filter-form fieldset { margin: 0; padding: 0; border: 0; }
.filter-form legend { padding: 0; margin-bottom: 4px; color: var(--muted); font-size: .75rem; font-weight: 700; }
.radio-row { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 8px; cursor: pointer; transition: background .15s; }
.radio-row:hover { background: rgb(255 255 255 / .75); }
.radio-row.child { padding-left: 24px; }
.radio-row input { accent-color: var(--accent); }
.price-range { display: flex; align-items: center; gap: 6px; }
.price-range input { width: 100%; min-width: 0; padding: 7px 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.filters select { padding: 7px 10px; background: var(--mist); border: 0; border-radius: 999px; }
.pager a { border-radius: 10px; transition: background .15s, color .15s; }
.pager a:hover { background: var(--mist); }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; padding-block: 28px; }
.brand-tile { display: grid; place-items: center; min-height: 120px; padding: 18px; background: var(--mist); border-radius: var(--r); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; }
.brand-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.brand-tile img { max-width: 100%; max-height: 80px; object-fit: contain; }

/* Trang sản phẩm */
.gallery-tub, .gallery-main { border-radius: var(--r-lg); }
.gallery-thumbs button { border-radius: var(--r-sm); overflow: hidden; transition: transform .15s; }
.gallery-thumbs button:hover { transform: translateY(-2px); }
.buy-price [data-price].flash-in { animation: priceIn .3s var(--ease); }
@keyframes priceIn { from { opacity: .35; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.buy-price small { margin-left: 8px; font-size: .8125rem; font-weight: 500; }
.stock-pill { display: inline-block; margin-bottom: 8px; padding: 3px 12px; background: #dff3e7; color: var(--ok); border-radius: 999px; font-size: .75rem; font-weight: 700; }
.stock-pill.is-out { background: #fbe3e1; color: var(--error); }
.pill span { border-radius: 999px; transition: background .18s, color .18s, border-color .18s, transform .15s; }
.pill span:hover { border-color: var(--ink); transform: translateY(-1px); }
.stepper-input { display: inline-flex; align-items: center; flex: none; height: 48px; padding: 3px; background: var(--mist); border-radius: 999px; }
.stepper-input button { width: 38px; height: 38px; background: #fff; border: 0; border-radius: 50%; cursor: pointer; font-size: 1.1rem; transition: transform .12s, background .15s; }
.stepper-input button:hover { background: var(--ink); color: #fff; }
.stepper-input button:active { transform: scale(.9); }
.stepper-input input { width: 44px; padding: 0; background: transparent; border: 0; outline: 0; text-align: center; font-weight: 600; appearance: textfield; -moz-appearance: textfield; }
.stepper-input input::-webkit-outer-spin-button, .stepper-input input::-webkit-inner-spin-button { appearance: none; margin: 0; }
.line-qty .stepper-input { height: 40px; }
.line-qty .stepper-input button { width: 32px; height: 32px; }
.line-qty .stepper-input input { width: 36px; border: 0; }
.macros { border: 0; background: transparent; gap: 8px; }
.macros div { background: var(--mist); border-radius: var(--r-sm); }
.details details summary { list-style: none; display: flex; justify-content: space-between; }
.details details summary::-webkit-details-marker { display: none; }
.details details summary::after { content: "+"; font-size: 1.2rem; font-weight: 400; transition: transform .2s var(--ease); }
.details details[open] summary::after { transform: rotate(45deg); }

/* Giỏ, thanh toán */
.panel { border-radius: var(--r); }
.sticky-panel { position: sticky; top: 92px; }
.line { transition: opacity .25s, transform .25s; }
.line.removing { opacity: 0; transform: translateX(16px); }
.line-media { border-radius: var(--r-sm); }
.line-note { width: 100%; max-width: 320px; margin-top: 6px; padding: 6px 10px; background: var(--mist); border: 1px solid transparent; border-radius: 8px; font-size: .8125rem; transition: border-color .15s, background .15s; }
.line-note:focus { background: #fff; border-color: var(--accent); outline: 0; }
.coupon input, .form input:not([type="radio"]), .form textarea { border-radius: var(--r-sm) !important; border-color: #cfcfcf !important; transition: border-color .15s, box-shadow .15s; }
.coupon input:focus, .form input:not([type="radio"]):focus, .form textarea:focus { outline: 0; border-color: var(--accent) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.coupon .btn { border-radius: var(--r-sm); }
.form .choice { border-radius: var(--r-sm); border-color: #cfcfcf; transition: border-color .15s, background .15s; }
.form .choice:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, #fff); }
.form .choice input { accent-color: var(--accent); }
.small-note { margin-top: -6px; margin-bottom: 10px; font-size: .75rem; }
.flash { border-radius: var(--r-sm); }
.flash.inline { border-radius: var(--r-sm); }
.empty svg { color: #bdbdbd; margin-bottom: 8px; }

.kicker.dark { margin-bottom: 10px; }
.page-head { padding-block: clamp(32px, 4.6vw, 60px); background: radial-gradient(55% 170% at 92% -20%, color-mix(in srgb, var(--tile, var(--accent)) 72%, transparent), transparent), var(--dark); border-bottom: 0; }
.title { line-height: 1.3; }

/* QR đặt cọc */
.qr-box { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; margin: 20px 0; padding: 22px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-1); animation: pop .35s var(--ease); }
.qr-code { padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.qr-code img { display: block; width: 240px; height: auto; max-width: 100%; }
.qr-info h2 { font-size: 1.125rem; }
.qr-timer { margin: 6px 0 12px; }
.qr-timer b { font-size: 1.25rem; font-variant-numeric: tabular-nums; transition: color .2s; }
.qr-timer b.urgent { color: var(--error); }
.qr-info dl { margin: 0; }
.qr-info dl div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 6px 0; border-top: 1px solid var(--line); }
.qr-info dd { margin: 0; font-weight: 700; }
.qr-wait { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--muted); font-size: .875rem; }
.dot-pulse { flex: none; width: 10px; height: 10px; background: var(--ok); border-radius: 50%; animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(20 96 58 / .5); } 80%, 100% { box-shadow: 0 0 0 10px rgb(20 96 58 / 0); } }
.qr-expired { display: block; background: color-mix(in srgb, var(--accent) 6%, #fff); box-shadow: none; }
.qr-expired h2 { margin-bottom: 6px; }
.qr-expired .btn { margin: 12px 0 10px; }

/* Tra cứu */
.lookup { max-width: 760px; margin: 0 auto; }
.lookup-form { padding: 20px; background: var(--mist); border-radius: var(--r); }
.lookup-head { margin: 26px 0 10px; font-size: 1.125rem; }
.order-cards { display: grid; gap: 10px; }
.order-card { padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: box-shadow .2s, transform .55s var(--ease), opacity .55s var(--ease); }
.order-card:hover { box-shadow: var(--shadow-1); }
.order-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.status-chip { padding: 3px 11px; background: #e2edfa; color: #1c4f8a; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.status-delivered { background: #dff3e7; color: var(--ok); }
.status-cancelled, .status-returned { background: #ededed; color: var(--muted); }
.status-awaiting_payment, .status-pending { background: #fdf0d3; color: #7d5300; }
.status-note { margin-top: 8px; color: #7d5300; font-size: .875rem; }
.cancel-box { margin-top: 8px; font-size: .875rem; }
.cancel-box summary { color: var(--error); cursor: pointer; font-weight: 600; }
.cancel-box form { margin-top: 10px; }

/* Chân trang */
.footer-brand p { margin-top: 8px; color: #c9c9c9; font-size: .875rem; }
.footer-brand a { text-decoration: none; }
.footer-cols a { color: #e6e6e6; transition: color .15s, transform .15s; }
.footer-cols a:hover { color: var(--accent); text-decoration: none; transform: translateX(2px); }

@media (max-width: 960px) {
  .sub { visibility: visible; opacity: 1; transform: none; box-shadow: none; }
  .search { display: block; }
  .search input, .is-home .search input { width: 0; padding: 0; transition: width .25s var(--ease), padding .25s; }
  .search form:focus-within input, .is-home .search form:focus-within input { width: 112px; padding: 6px 6px 6px 0; }
  .search form { background: transparent; }
  .search-pop { position: fixed; left: 8px; right: 8px; top: 60px; width: auto; }
  .mini-cart { display: none; }
  .listing { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .filter-panel { position: static; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sticky-panel { position: static; }
  .slider-arrow { display: none; }
}
@media (max-width: 640px) {
  .qr-box { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .qr-info { width: 100%; }
}
@media (hover: none) {
  .card:hover { transform: none; box-shadow: none; }
  /* Màn hình cảm ứng không có rê chuột: luôn hiện nút tròn thêm vào giỏ trên ảnh. */
  .quick-add { opacity: 1; transform: none; pointer-events: auto; }
  .card > .quick-add button { left: auto; right: 10px; width: 42px; height: 42px; padding: 0; font-size: 0; }
  .quick-add button span { font-size: 1.35rem; font-weight: 500; line-height: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
  .slide, .slide * { transition: none !important; }
  @view-transition { navigation: none; }
}

/* Nhịp chữ: tiêu đề Bricolage đậm, chữ nhấn Fraunces nghiêng, nội dung Be Vietnam Pro */
.svg-defs { position: absolute; }
body { line-height: 1.6; text-rendering: optimizeLegibility; font-feature-settings: "ss01" 0; }
h1 em, h2 em, .title em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.015em; }
.logo { font-weight: 800; font-size: 1.6rem; letter-spacing: -.035em; }
.logo span { margin-left: 3px; font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.nav-item > a { font-size: .9rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.nav-item > a::after { bottom: 14px; }
.btn { font-size: .9rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.kicker { font-size: .8125rem; font-weight: 600; letter-spacing: .01em; text-transform: none; }
.card-title { font-size: .98rem; font-weight: 600; letter-spacing: -.005em; text-transform: none; line-height: 1.35; }
.card-meta { font-size: .8125rem; font-weight: 400; text-transform: none; }
.card-price { font-size: .98rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.tag { font-size: .75rem; font-weight: 600; text-transform: none; }
.quick-add button { font-size: .8125rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.rail-head h2, .cat-section .rail-head h2 { font-family: var(--display); font-size: clamp(1.75rem, 3.2vw, 2.75rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.12; text-transform: none; }
.card-media { isolation: isolate; }
.card-media::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 55% at 50% 58%, color-mix(in srgb, var(--tone, #ff4a1c) 34%, transparent), transparent 72%); opacity: 0; transition: opacity .45s var(--ease); }
.card:hover .card-media::before { opacity: 1; }
.card:hover { box-shadow: 0 18px 44px rgb(11 11 12 / .11); }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.rail.is-dragging a { pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .rail { cursor: grab; } }
.footer-cols h3 { font-size: .8125rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.footer-mark { margin: 40px 0 18px; font-family: var(--display); font-size: calc((100vw - 2 * var(--gutter)) / 3.98); font-weight: 800; line-height: .9; letter-spacing: -.04em; white-space: nowrap; overflow: hidden; color: transparent; background: linear-gradient(180deg, #f2f2f2 8%, #39393d 92%); -webkit-background-clip: text; background-clip: text; padding-block: .05em .12em; }
.footer-mark em { font-family: var(--serif); font-weight: 400; letter-spacing: -.03em; }
.gallery-main { transition: opacity .14s ease; }

/* Ô chọn tỉnh/thành, phường/xã (address.js) */
.addr-wrap { position: relative; }
.addr-drop { position: absolute; z-index: 60; left: 0; right: 0; top: 100%; margin-top: 4px; max-height: 280px; overflow-y: auto; padding: 4px; border: 1px solid #dfe3e8; border-radius: 10px; background: #fff; box-shadow: 0 14px 34px rgb(15 23 42 / .14); font-weight: 400; overscroll-behavior: contain; }
.addr-drop[hidden] { display: none; }
.addr-opt { padding: 8px 10px; border-radius: 7px; color: #1d2633; font-size: .9375rem; line-height: 1.3; cursor: pointer; }
.addr-opt:hover, .addr-opt.is-active { background: #eef5ff; }
.addr-empty { padding: 10px; color: #6b7a8c; font-size: .875rem; }
.addr-msg { display: block; margin-top: 4px; color: #c0281c; font-size: .8125rem; font-weight: 500; }
.addr-msg[hidden] { display: none; }
input.addr-bad { border-color: #e08b83 !important; box-shadow: 0 0 0 3px rgb(192 40 28 / .1) !important; }
