/* ===========================
   Under Bro – ui.css
   Giao diện mobile-first dùng chung (nền tối, nhấn vàng đồng). Nạp sau style.css.
   =========================== */
:root {
  --ub-bg: #0a0a0a;
  --ub-bg2: #101113;
  --ub-card: #17181a;
  --ub-line: rgba(255, 255, 255, 0.12);
  --ub-muted: rgba(255, 255, 255, 0.72);
  --ub-font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ub-display: 'Barlow Condensed', 'Barlow', 'Arial Narrow', Impact, sans-serif;
  --ub-header-h: 56px;
  --ub-safe-b: env(safe-area-inset-bottom, 0px);
  --ub-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 72px; }
html.ub-lock, html.ub-lock body { overflow: hidden; }

body.ub-page {
  background: var(--ub-bg);
  color: #fff;
  font-family: var(--ub-font);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-tap-highlight-color: rgba(201, 168, 76, 0.22);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.ub-page.has-sticky { padding-bottom: calc(76px + var(--ub-safe-b)); }

:where(.ub-page) a { color: inherit; }
.ub-page :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.ub-page input, .ub-page button, .ub-page select, .ub-page textarea { font-family: inherit; }

.ub-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ub-skip { position: absolute; left: 8px; top: -80px; z-index: 3000; background: #fff; color: #0a0a0a; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.ub-skip:focus { top: 8px; }

.ub-container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .ub-container { padding: 0 24px; } }

/* ---------- Buttons ---------- */
.ub-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 10px;
  font: 600 1rem/1 var(--ub-font); letter-spacing: 0.01em; text-decoration: none; text-align: center;
  border: 1.5px solid transparent; cursor: pointer; background: none; color: #fff;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
.ub-btn:active { transform: scale(0.98); }
.ub-btn-primary { background: var(--gold); color: #0a0a0a; }
.ub-btn-primary:hover { background: var(--gold-light, #e8c97a); }
.ub-btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.ub-btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.ub-btn-light { background: #fff; color: #0a0a0a; }
.ub-btn-light:hover { background: #ececec; }
.ub-btn-pill { border-radius: 999px; }
.ub-btn-lg { min-height: 52px; font-size: 1.0625rem; padding: 0 28px; }
.ub-btn-sm { padding: 0 14px; font-size: 0.9375rem; }
.ub-btn-block { width: 100%; }
.ub-link { color: var(--gold); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 12px 4px; display: inline-block; }

.ub-icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; position: relative;
  background: none; border: 0; color: #fff; border-radius: 10px; cursor: pointer; flex-shrink: 0;
  touch-action: manipulation;
}
.ub-icon-btn:hover { color: var(--gold); }

/* ---------- Announcement ---------- */
.ub-announce {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 6px 48px; background: var(--gold); color: #0a0a0a;
  font-size: 0.8125rem; font-weight: 600; text-align: center; line-height: 1.3;
}
.ub-announce p { margin: 0; text-wrap: balance; }
.ub-announce-close {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: #0a0a0a; cursor: pointer;
}
.ub-announce-close svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.ub-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 10, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.ub-header.is-scrolled { border-bottom-color: var(--ub-line); }
.ub-header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--ub-header-h); max-width: 1400px; margin: 0 auto; padding: 0 4px;
}
.ub-burger { justify-self: start; }
.ub-logo { justify-self: center; display: block; line-height: 0; padding: 11px 4px; }
.ub-logo-img { display: block; height: 22px; width: auto; max-width: 100%; }
.ub-actions { justify-self: end; display: flex; align-items: center; }
.ub-nav { display: none; }
.ub-badge {
  position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--gold); color: #0a0a0a;
  font: 700 0.6875rem/18px var(--ub-font); text-align: center; pointer-events: none;
}
.ub-badge.is-empty { display: none; }

@media (min-width: 1024px) {
  .ub-header-inner { display: flex; gap: 32px; height: 68px; padding: 0 24px; max-width: 1280px; }
  .ub-burger { display: none; }
  .ub-logo { order: 0; padding: 0; }
  .ub-logo-img { height: 28px; }
  .ub-nav { display: flex; gap: 28px; margin-left: 8px; flex: 1; }
  .ub-nav a { font: 600 0.9375rem/1 var(--ub-font); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; padding: 12px 0; color: #fff; }
  .ub-nav a:hover { color: var(--gold); }
  .ub-actions { margin-left: auto; }
}

/* ---------- Overlay + Drawer ---------- */
.ub-overlay {
  position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, 0.62);
  opacity: 0; visibility: hidden; transition: opacity 0.28s, visibility 0s 0.28s;
}
.ub-overlay.is-open { opacity: 1; visibility: visible; transition: opacity 0.28s, visibility 0s; }

.ub-drawer {
  position: fixed; top: 0; bottom: 0; z-index: 1010; width: min(86vw, 360px);
  background: #111214; color: #fff; display: flex; flex-direction: column;
  visibility: hidden; transition: transform 0.3s var(--ub-ease), visibility 0s 0.3s;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5); overscroll-behavior: contain;
}
.ub-drawer-left { left: 0; transform: translateX(-100%); }
.ub-drawer-right { right: 0; transform: translateX(100%); width: min(92vw, 420px); }
.ub-drawer.is-open { transform: none; visibility: visible; transition: transform 0.3s var(--ub-ease), visibility 0s; }
.ub-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; min-height: 60px; border-bottom: 1px solid var(--ub-line); flex-shrink: 0; }
.ub-drawer-head .ub-logo-img { height: 22px; }
.ub-drawer-body { flex: 1; overflow-y: auto; padding: 8px 0 24px; -webkit-overflow-scrolling: touch; }
.ub-drawer-label { padding: 18px 20px 6px; color: var(--gold); font: 600 0.8125rem/1 var(--ub-font); letter-spacing: 0.14em; text-transform: uppercase; }
.ub-drawer-list { list-style: none; margin: 0; padding: 0; }
.ub-drawer-list a { display: flex; align-items: center; min-height: 52px; padding: 0 20px; font: 700 1.25rem/1 var(--ub-display); letter-spacing: 0.03em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.ub-drawer-list a:hover { color: var(--gold); background: rgba(255, 255, 255, 0.03); }
.ub-drawer-contact { list-style: none; margin: 16px 0 0; padding: 0 20px; display: grid; gap: 4px; }
.ub-drawer-contact:empty { display: none; }
.ub-drawer-contact a { display: block; padding: 10px 0; color: var(--ub-muted); }

/* ---------- Search ---------- */
.ub-search {
  position: fixed; inset: 0; z-index: 1020; background: var(--ub-bg); overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity 0.22s, transform 0.22s, visibility 0s 0.22s;
}
.ub-search.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.22s, transform 0.22s, visibility 0s; }
.ub-search-bar { display: flex; align-items: center; gap: 8px; padding: 10px 8px 10px 16px; border-bottom: 1px solid var(--ub-line); position: sticky; top: 0; background: var(--ub-bg); }
.ub-search-form { position: relative; flex: 1; }
.ub-search-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ub-muted); display: grid; pointer-events: none; }
.ub-search-input {
  width: 100%; height: 48px; padding: 0 16px 0 46px; border-radius: 999px; border: 1px solid var(--ub-line);
  background: #1b1c1f; color: #fff; font-size: 16px; /* >=16px chống tự zoom trên iOS */ -webkit-appearance: none; appearance: none;
}
.ub-search-input::placeholder { color: rgba(255, 255, 255, 0.5); }
.ub-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.ub-search-cancel { min-width: 56px; min-height: 44px; background: none; border: 0; color: var(--gold); font: 600 1rem var(--ub-font); cursor: pointer; }
.ub-search-label { padding: 18px 16px 8px; margin: 0; color: var(--ub-muted); font: 600 0.8125rem/1 var(--ub-font); letter-spacing: 0.1em; text-transform: uppercase; }
.ub-search-results { list-style: none; margin: 0; padding: 0 8px 40px; max-width: 720px; margin-inline: auto; }
.ub-search-results a { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 8px; min-height: 72px; text-decoration: none; border-radius: 12px; }
.ub-search-results a:hover { background: rgba(255, 255, 255, 0.05); }
.ub-search-results img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: #222; }
.ub-sr-name { font-weight: 600; line-height: 1.3; }
.ub-sr-name small { display: block; color: var(--ub-muted); font-weight: 400; font-size: 0.8125rem; }
.ub-search-results strong { color: var(--gold); white-space: nowrap; }

/* ---------- Mini-cart ---------- */
.ub-cart-title { font: 700 1.5rem/1 var(--ub-display); letter-spacing: 0.04em; text-transform: uppercase; margin: 0; }
.ub-freeship { padding: 12px 16px; background: #15161a; border-bottom: 1px solid var(--ub-line); flex-shrink: 0; }
.ub-freeship p { margin: 0 0 8px; font-size: 0.9375rem; }
.ub-freeship strong { color: var(--gold); }
.ub-freeship-track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.ub-freeship-fill { height: 100%; width: 0; background: var(--gold); border-radius: 3px; transition: width 0.4s var(--ub-ease); }
.ub-cart-scroll { flex: 1; overflow-y: auto; padding: 0 16px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.ub-cart-empty { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 56px 0; color: var(--ub-muted); text-align: center; }
.ub-cart-empty p { margin: 0; }
.ub-cart-item { display: grid; grid-template-columns: 80px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--ub-line); align-items: start; }
.ub-ci-img { display: block; width: 80px; height: 80px; border-radius: 10px; overflow: hidden; background: #222; }
.ub-ci-img img { width: 100%; height: 100%; object-fit: cover; }
.ub-ci-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; line-height: 1.3; text-decoration: none; }
.ub-ci-price { margin: 4px 0 6px; color: var(--ub-muted); font-size: 0.9375rem; }
.ub-qty { display: inline-flex; align-items: center; border: 1px solid var(--ub-line); border-radius: 999px; }
.ub-qty button { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: #fff; font-size: 1.25rem; cursor: pointer; border-radius: 50%; touch-action: manipulation; }
.ub-qty button:hover { color: var(--gold); }
.ub-qty span { min-width: 24px; text-align: center; font-weight: 600; }
.ub-ci-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ub-ci-side strong { white-space: nowrap; }
.ub-ci-del { min-height: 44px; padding: 0 4px; background: none; border: 0; color: var(--ub-muted); text-decoration: underline; font-size: 0.875rem; cursor: pointer; }
.ub-ci-del:hover { color: #ff7b6e; }

.ub-cart-extra { padding: 12px 16px; border-top: 1px solid var(--ub-line); flex-shrink: 0; max-height: 34vh; overflow-y: auto; }
.ub-extra-title { margin: 0 0 8px; color: var(--gold); font: 600 0.8125rem/1 var(--ub-font); letter-spacing: 0.12em; text-transform: uppercase; }
.ub-extra-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ub-extra-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; }
.ub-extra-item img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: #222; }
.ub-extra-info { display: grid; gap: 2px; min-width: 0; }
.ub-extra-info a { text-decoration: none; font-size: 0.9375rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ub-extra-info strong { color: var(--ub-muted); font-size: 0.875rem; font-weight: 600; }

.ub-cart-foot { padding: 12px 16px calc(12px + var(--ub-safe-b)); border-top: 1px solid var(--ub-line); background: #111214; flex-shrink: 0; }
.ub-coupon { display: flex; gap: 8px; }
.ub-coupon input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--ub-line); background: #1b1c1f; color: #fff; font-size: 16px; text-transform: uppercase; }
.ub-coupon-result { margin: 6px 0 0; font-size: 0.875rem; min-height: 0; }
.ub-coupon-result:empty { display: none; }
.ub-coupon-result.is-ok { color: #5fd28a; }
.ub-coupon-result.is-err { color: #ff7b6e; }
.ub-sum { margin: 12px 0 4px; }
.ub-sum div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; color: var(--ub-muted); }
.ub-sum dd { margin: 0; }
.ub-sum-total { color: #fff !important; font-size: 1.25rem; font-weight: 700; }
.ub-ship-note { margin: 0 0 12px; color: var(--ub-muted); font-size: 0.875rem; }

/* ---------- Banner shop 16:9 (hero) ---------- */
.bn { background: var(--ub-bg); }
.bn-viewport { position: relative; max-width: 1200px; margin: 0 auto; }
.bn-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.bn-track::-webkit-scrollbar { display: none; }
.bn-track:focus-visible { outline-offset: -3px; }
.bn-slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; min-width: 0; }
.bn-media { display: block; aspect-ratio: 16 / 9; background: #15161a; }
.bn-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bn-arrow { display: none; }
.bn-dots { display: flex; justify-content: center; padding: 2px 0 6px; }
@media (min-width: 768px) {
  .bn-viewport { padding-top: 16px; }
  .bn-track { border-radius: 16px; }
}
@media (min-width: 900px) {
  .bn-arrow {
    position: absolute; top: calc(16px + (100% - 16px) / 2); transform: translateY(-50%); z-index: 3;
    display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
    background: rgba(10, 10, 10, 0.78); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); cursor: pointer;
    transition: background 0.2s, color 0.2s;
  }
  .bn-arrow:hover { background: var(--gold); color: #0a0a0a; }
  .bn-arrow:disabled { opacity: 0.35; cursor: default; }
  .bn-prev { left: 12px; }
  .bn-prev svg { transform: scaleX(-1); }
  .bn-next { right: 12px; }
  .bn-dots .ub-dot { width: 28px; }
}

.ub-dot { position: relative; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; }
.ub-dot::before { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.4); transform: translate(-50%, -50%); transition: width 0.25s, background 0.25s; }
.ub-dot.is-active::before { background: var(--gold); width: 24px; }

/* ---------- Trust bar ---------- */
.ub-trust { background: var(--ub-bg2); border-block: 1px solid var(--ub-line); }
.ub-trust ul { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding-top: 14px; padding-bottom: 14px; }
.ub-trust li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 4px 2px; }
.ub-trust-ico { color: var(--gold); display: grid; place-items: center; }
.ub-trust-ico svg { width: 26px; height: 26px; }
.ub-trust-emoji { font-size: 1.5rem; line-height: 1; }
.ub-trust-text { display: flex; flex-direction: column; gap: 2px; font-size: 0.75rem; line-height: 1.3; color: var(--ub-muted); }
.ub-trust-text strong { color: #fff; font-size: 0.8125rem; font-weight: 600; }
@media (min-width: 768px) {
  .ub-trust li { flex-direction: row; text-align: left; justify-content: center; gap: 14px; padding: 8px; }
  .ub-trust-text { font-size: 0.875rem; }
  .ub-trust-text strong { font-size: 1rem; }
}

/* ---------- Sections ---------- */
.ub-section { padding: 44px 0; }
.ub-section-alt { background: var(--ub-bg2); }
@media (min-width: 768px) { .ub-section { padding: 72px 0; } }
.ub-h2 { margin: 0 0 8px; font: 700 clamp(1.875rem, 7vw, 2.75rem)/1.05 var(--ub-display); letter-spacing: 0.02em; text-transform: uppercase; }
.ub-lead { margin: 0 0 22px; color: var(--ub-muted); font-size: 1.0625rem; }
.ub-eyebrow { margin: 0 0 8px; color: var(--gold); font: 600 0.8125rem/1 var(--ub-font); letter-spacing: 0.18em; text-transform: uppercase; }
.ub-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 16px; }
.ub-sec-head .ub-h2 { margin: 0; }
.ub-filter-note { margin: 0; color: var(--ub-muted); font-size: 0.9375rem; }
.ub-filter-note a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; padding: 12px 0; display: inline-block; }
.ub-empty { color: var(--ub-muted); padding: 24px 0; }

/* ---------- Category grid ---------- */
.ub-cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.ub-cat { position: relative; display: block; aspect-ratio: 1 / 1.08; border-radius: 14px; overflow: hidden; background: var(--ub-card); text-decoration: none; isolation: isolate; }
.ub-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transition: transform 0.5s var(--ub-ease); }
.ub-cat::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10, 10, 10, 0) 45%, rgba(10, 10, 10, 0.88) 100%); }
.ub-cat:hover img { transform: scale(1.05); }
.ub-cat.is-active { outline: 2px solid var(--gold); outline-offset: -2px; }
.ub-cat-label { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding: 12px; }
.ub-cat-name { font: 700 1.125rem/1.1 var(--ub-display); letter-spacing: 0.04em; text-transform: uppercase; }
.ub-cat-arrow { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: #0a0a0a; display: grid; place-items: center; }
@media (min-width: 768px) {
  .ub-cat-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .ub-cat-name { font-size: 1.375rem; }
}

/* ---------- Horizontal snap rows ---------- */
.ub-snap {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 -16px; padding: 4px 16px 14px; scroll-padding-left: 16px; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.ub-snap::-webkit-scrollbar { display: none; }
.ub-snap > * { flex: 0 0 72vw; max-width: 320px; scroll-snap-align: start; }
@media (min-width: 768px) {
  .ub-snap { margin: 0; padding: 0; overflow: visible; display: grid; gap: 16px; }
  .ub-snap > * { max-width: none; }
  .ub-tech-row { grid-template-columns: repeat(3, 1fr); }
  .pc-row { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) { .pc-row { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Tech cards ---------- */
.ub-tech-row > * { flex-basis: 82vw; max-width: 380px; }
.ub-tech-card { display: flex; flex-direction: column; background: var(--ub-card); border: 1px solid var(--ub-line); border-radius: 16px; overflow: hidden; }
.ub-tech-media { aspect-ratio: 1; background: #222; }
.ub-tech-media img { width: 100%; height: 100%; object-fit: cover; }
.ub-tech-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ub-tech-label { margin: 0; color: var(--gold); font: 700 0.9375rem/1.2 var(--ub-display); letter-spacing: 0.1em; text-transform: uppercase; }
.ub-tech-body h3 { margin: 0; font: 700 1.5rem/1.1 var(--ub-display); text-transform: uppercase; letter-spacing: 0.02em; }
.ub-tech-body p:not(.ub-tech-label) { margin: 0; color: var(--ub-muted); }
.ub-tech-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: auto; padding-top: 8px; }

/* ---------- Product card ---------- */
.pc { background: var(--ub-card); border: 1px solid var(--ub-line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.pc-media { position: relative; display: block; aspect-ratio: 1; background: #222; overflow: hidden; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ub-ease); }
.pc:hover .pc-media img { transform: scale(1.04); }
.pc-badge { position: absolute; top: 10px; left: 10px; padding: 5px 11px; border-radius: 999px; font: 700 0.75rem/1 var(--ub-font); letter-spacing: 0.06em; text-transform: uppercase; z-index: 2; }
.pc-badge-new { background: #fff; color: #0a0a0a; }
.pc-badge-hot { background: var(--gold); color: #0a0a0a; }
.pc-badge-sale { background: #c1272d; color: #fff; }
.pc-pct { position: absolute; top: 10px; right: 10px; padding: 5px 9px; border-radius: 8px; background: #c1272d; color: #fff; font: 700 0.8125rem/1 var(--ub-font); z-index: 2; }
.pc-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 14px; flex: 1; }
.pc-name { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.3; min-height: 44px; }
.pc-name a { text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 44px; }
.pc-name a:hover { color: var(--gold); }
.pc-price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.pc-price strong { font-size: 1.1875rem; }
.pc-price s { color: var(--ub-muted); font-size: 0.9375rem; }
.pc-sold, .pc-stars { margin: 0; color: var(--ub-muted); font-size: 0.8125rem; }
.pc-items { list-style: disc; padding-left: 18px; margin: 0; color: var(--ub-muted); font-size: 0.875rem; }
.pc-add { margin-top: auto; }

/* ---------- Story + How-to ---------- */
.ub-story-inner { max-width: 760px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.ub-story-title { margin-bottom: 14px; }
.ub-story-text { margin: 0 0 12px; color: var(--ub-muted); font-size: 1.0625rem; line-height: 1.7; }
.ub-story .ub-btn { margin-top: 12px; }
.ub-how { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.ub-how-card { background: var(--ub-card); border: 1px solid var(--ub-line); border-radius: 16px; padding: 20px; }
.ub-how-num { display: block; color: var(--gold); font: 700 2.5rem/1 var(--ub-display); margin-bottom: 6px; }
.ub-how-card h3 { margin: 0 0 4px; font: 700 1.5rem/1.1 var(--ub-display); text-transform: uppercase; letter-spacing: 0.02em; }
.ub-how-prod { margin: 0 0 12px; font-size: 0.9375rem; }
.ub-how-prod a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 12px 0; }
.ub-how-prod { margin-bottom: 4px; }
.ub-how-card ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ub-muted); list-style: disc; }
@media (min-width: 768px) { .ub-how { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

/* ---------- Offer + reviews ---------- */
.ub-offer-inner { max-width: 640px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.ub-offer-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.ub-offer-form { display: flex; gap: 8px; width: 100%; }
.ub-offer-form input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--ub-line); background: #1b1c1f; color: #fff; font-size: 16px; }
.ub-offer-msg { margin: 12px 0 0; color: var(--gold); min-height: 1.4em; }
.ub-review-grid { display: grid; gap: 12px; }
@media (min-width: 768px) { .ub-review-grid { grid-template-columns: repeat(3, 1fr); } }
.ub-review { margin: 0; background: var(--ub-card); border: 1px solid var(--ub-line); border-radius: 14px; padding: 18px; }
.ub-review-stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 8px; }
.ub-review blockquote { margin: 0 0 10px; color: var(--ub-muted); line-height: 1.6; }
.ub-review figcaption { font-size: 0.875rem; font-weight: 600; }

/* ---------- Footer ---------- */
.ub-footer { background: #060607; border-top: 1px solid var(--ub-line); padding-top: 28px; margin-top: 24px; }
.ub-footer-brand { padding: 4px 0 20px; }
.ub-footer-brand > a { display: inline-block; padding: 9px 0; line-height: 0; }
.ub-footer-brand .ub-logo-img { height: 26px; }
.ub-footer-brand p { margin: 12px 0 0; color: var(--ub-muted); max-width: 36ch; }
.ub-footer-contact { list-style: none; margin: 8px 0 0; padding: 0; }
.ub-footer-contact:empty { display: none; }
.ub-footer-contact a { display: inline-block; padding: 11px 0; text-decoration: underline; text-underline-offset: 3px; }
.ub-acc { border-top: 1px solid var(--ub-line); }
.ub-acc summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; cursor: pointer; list-style: none; font: 700 1.125rem/1 var(--ub-display); letter-spacing: 0.08em; text-transform: uppercase; }
.ub-acc summary::-webkit-details-marker { display: none; }
.ub-chev { transition: transform 0.25s; flex-shrink: 0; }
.ub-acc[open] .ub-chev { transform: rotate(180deg); }
.ub-acc ul { list-style: none; margin: 0; padding: 0 0 16px; display: grid; gap: 0; }
.ub-acc li { color: var(--ub-muted); }
.ub-acc li a { display: inline-block; padding: 11px 0; text-decoration: none; }
.ub-acc li a:hover { color: var(--gold); }
.ub-acc li > span { display: inline-block; padding: 11px 0; }
.ub-acc li.ub-hide-empty a { padding: 11px 0; }
.ub-footer-bottom { display: flex; flex-direction: column; gap: 14px; padding: 18px 0 calc(28px + var(--ub-safe-b)); border-top: 1px solid var(--ub-line); }
.ub-pay-list { display: flex; gap: 8px; }
.ub-pay { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; height: 32px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 6px; font: 700 0.8125rem/1 var(--ub-font); letter-spacing: 0.06em; }
.ub-copy { margin: 0; color: var(--ub-muted); font-size: 0.875rem; }
@media (min-width: 768px) {
  .ub-footer { padding-top: 56px; }
  .ub-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
  .ub-acc { border-top: 0; }
  .ub-acc summary { min-height: 0; margin-bottom: 14px; cursor: default; color: #fff; pointer-events: none; }
  .ub-chev { display: none; }
  .ub-footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; margin-top: 24px; }
}

/* ---------- Khác ---------- */
.pd-sticky-cart, .pd-sticky-buy { min-height: 44px; }
@media (max-width: 767px) { .back-to-top { display: none; } }
.float-buttons { bottom: calc(20px + var(--ub-safe-b)); right: 16px; }
body.has-sticky .float-buttons { bottom: calc(88px + var(--ub-safe-b)); }
.back-to-top { bottom: calc(20px + var(--ub-safe-b)); left: 16px; }
.cart-toast { z-index: 1100; bottom: calc(24px + var(--ub-safe-b)); right: 16px; left: 16px; text-align: center; }
@media (min-width: 768px) { .cart-toast { left: auto; right: 32px; text-align: left; } }
.checkout-overlay, .checkout-modal { z-index: 1050; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* trang product.html dự phòng (sản phẩm tạo trong Admin) dùng header sticky nên không cần chừa chỗ header cố định */
.pd-page { padding-top: 0; }

/* ---------- Giới thiệu ngắn (H1 của trang chủ) ---------- */
.ub-intro { padding: 32px 0 4px; text-align: center; }
.ub-intro-title { margin: 0 0 8px; font: 700 clamp(1.625rem, 6vw, 2.5rem)/1.1 var(--ub-display); letter-spacing: 0.02em; text-transform: uppercase; text-wrap: balance; }
.ub-intro-sub { margin: 0 auto; max-width: 640px; color: var(--ub-muted); font-size: 1.0625rem; }

/* ---------- Form thanh toán: ô nhập >=16px (chống tự phóng to trên iOS), gợi ý địa chỉ ---------- */
.checkout-modal .co-input { font-size: 16px; min-height: 46px; }
.checkout-modal select.co-input { appearance: auto; }
.co-hint { display: block; margin-top: 4px; color: #888; font-size: 0.8125rem; line-height: 1.4; }
.co-form-group label { display: block; }
