/* BuBu site theme: green — recoloured copy of assets/theme.css (generated, do not edit) */
/* ==========================================================================
   BuBu Store - new look "Ocean"                                        v1.0
   --------------------------------------------------------------------------
   ONE file, loaded after rebuild.css / storefront.css / help-docs.css.
     <html data-skin="ocean">   new colours + desktop home arrangement
                                (remove the attribute = today's look)
     <html data-motion="on">    button / card effects, scroll reveal
   Visual only: prices, cart, checkout, forms and links work as before.

   1) Tokens                  6b) Cart, checkout, account, top-up
   2) Header, buttons, footer 6c) Admin
   3) Titles                  7) Login / register / forgot password
   4) Home page               8) Help pages (contact, guide, policy)
   5) Product cards           9) Cute avatars
   6) Product page            10) Fixes for any look
                              10b) Search box suggestions
                              10c) Page not found (404)
                              11) Effects   11b) Smooth page change
                              12) Keyframes + reduced motion
   ========================================================================== */

/* --------------------------------------------------------------------------
   1) Tokens
   -------------------------------------------------------------------------- */
:root {
  /* wave outline of the home banner edge (used as a mask) */
  --th-wave-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 34' preserveAspectRatio='none'%3E%3Cpath d='M0 14 Q 75 2 150 14 T 300 14 T 450 14 T 600 14 V34 H0 Z'/%3E%3C/svg%3E");
  /* used by the effects when the new look is switched off */
  --th-primary: #101311;
  --th-primary-2: #2c3630;
  --th-primary-rgb: 16, 19, 17;
  --th-accent: #16a34a;
}

html[data-skin="ocean"] {
  --th-primary: #0e7434;
  --th-primary-2: #139951;
  --th-primary-rgb: 14, 116, 52;
  --th-accent: #17bb80;
  --th-accent-rgb: 23, 187, 128;
  --th-link: #0f7b3f;
  --th-ink: #0a5225;
  --th-label: #4c6858;
  --th-price: #d61944;
  --th-price-soft: #fff1f2;
  --th-soft: #ebfbf1;
  --th-soft-line: #d4f7e2;
  --th-gradient: linear-gradient(135deg, #0e7434, #139951);
  --th-line-gradient: linear-gradient(90deg, #0e7434, #17bb80, #139951);
  --th-wave: 22px;
  --th-title-font: "Baloo 2", "Be Vietnam Pro", sans-serif;
  --th-title-bar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='6' viewBox='0 0 60 6'%3E%3Cdefs%3E%3ClinearGradient id='g'%3E%3Cstop stop-color='%230e7434'/%3E%3Cstop offset='1' stop-color='%2317bb80'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='42' height='6' rx='3' fill='url(%23g)'/%3E%3Crect x='48' width='12' height='6' rx='3' fill='%2317bb80' fill-opacity='.45'/%3E%3C/svg%3E");
  --th-bolt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 24'%3E%3Cpath d='M12.5 0 1 13.6h7.2L6.6 24 19 9.6h-7.4z'/%3E%3C/svg%3E");

  /* shared colours of rebuild.css: every page that uses them (account,
     cart, checkout, top-up, news...) follows the new look */
  --black: #0a5225;
  --accent: #0e7434;
  --blue: #0e7434;
  --red: #d61944;
  --price-red: #d61944;
  --muted: #5a7163;
  --surface-strong: #0a5225;
  --bg: #f1fdf5;
  --surface-soft: #f1fdf6;
  --line: #e2efe7;
  --line-strong: #cae3d4;

  /* shared colours of help-docs.css */
  --primary: #0e7434;
  --primary-2: #139951;
  --chip: #d4f7e2;
}

@media (max-width: 720px) {
  html[data-skin="ocean"] {
    --th-wave: 16px;
  }
}

/* --------------------------------------------------------------------------
   2) Header, buttons, prices, footer
   -------------------------------------------------------------------------- */
html[data-skin="ocean"] body {
  background:
    radial-gradient(circle at 12% -6%, rgba(25, 204, 95, .20), transparent 34rem),
    radial-gradient(circle at 88% 4%, rgba(23, 187, 128, .14), transparent 32rem),
    linear-gradient(180deg, #f1fcf5 0, #f1fdf5 240px, #f1fdf5 100%);
}

/* ticker strip */
html[data-skin="ocean"] .bubu-ticker-shell {
  border-color: transparent;
  background: linear-gradient(90deg, #0d682e, #139951);
}

html[data-skin="ocean"] .bubu-ticker-shell :is(.bubu-ticker-item, .bubu-ticker-item span) {
  color: #ffffff;
}

html[data-skin="ocean"] .bubu-ticker-badge {
  background: #ffffff;
  color: var(--th-primary);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}

html[data-skin="ocean"] .bubu-ticker-dot {
  background: var(--th-accent);
  box-shadow: 0 0 0 3px rgba(var(--th-accent-rgb), .30);
}

/* thin brand line under the header */
html[data-skin="ocean"] .bubu-top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--th-line-gradient);
  pointer-events: none;
}

/* lightning bolt after the shop name = "giao key tức thì" */
html[data-skin="ocean"] :is(.bubu-brand-copy strong, .auth-stage-brand > span, .docs-brand > span:not(.docs-brand__logo))::after {
  content: "";
  display: inline-block;
  width: .78em;
  height: .9em;
  margin-left: 6px;
  vertical-align: -.06em;
  background: linear-gradient(160deg, #139951, #0e7434);
  -webkit-mask: var(--th-bolt) center / contain no-repeat;
  mask: var(--th-bolt) center / contain no-repeat;
  transform-origin: 50% 60%;
}

/* search + desktop shortcut row */
html[data-skin="ocean"] .bubu-search button,
html[data-skin="ocean"] .bubu-shortcut-badge {
  background: var(--th-gradient);
  color: #ffffff;
}

html[data-skin="ocean"] .bubu-shortcut:hover {
  background: rgba(var(--th-primary-rgb), .07);
  color: var(--th-primary);
}

html[data-skin="ocean"] .bubu-user-caret {
  color: var(--muted);
}

/* primary buttons */
html[data-skin="ocean"] :is(.btn, a.btn, button.btn):not(.btn-secondary):not(.btn-ghost):not(.btn-light):not([disabled]) {
  border-color: transparent;
  background: var(--th-gradient);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(var(--th-primary-rgb), .26);
}

html[data-skin="ocean"] :is(.btn, a.btn, button.btn):not(.btn-secondary):not(.btn-ghost):not(.btn-light):not([disabled]):hover {
  box-shadow: 0 16px 34px rgba(var(--th-primary-rgb), .34);
}

/* secondary buttons */
html[data-skin="ocean"] :is(.btn-secondary, a.btn-secondary, button.btn-secondary):not([disabled]) {
  border-color: rgba(var(--th-primary-rgb), .32);
  background: #ffffff;
  color: var(--th-primary);
}

html[data-skin="ocean"] :is(.btn-secondary, a.btn-secondary, button.btn-secondary):not([disabled]):hover {
  background: rgba(var(--th-primary-rgb), .06);
}

/* labels, prices, badges */
html[data-skin="ocean"] .product-meta span {
  color: var(--th-link);
}

html[data-skin="ocean"] :is(.price-line strong, .product-actions > div > strong:not(.stock-out), #pdTotal, #pdPrice) {
  color: var(--th-price);
}

html[data-skin="ocean"] .sale-tag {
  background: var(--th-gradient);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(var(--th-primary-rgb), .35);
}

/* section panels + links */
html[data-skin="ocean"] .home-category-panel {
  border-color: rgba(var(--th-primary-rgb), .12);
  background-image: radial-gradient(circle at 0 0, rgba(var(--th-primary-rgb), .07), transparent 22rem);
}

html[data-skin="ocean"] .home-category-link {
  border-color: transparent;
  background: var(--th-gradient);
  color: #ffffff;
}

html[data-skin="ocean"] .home-section-title-row > a {
  border-color: rgba(var(--th-primary-rgb), .30);
  color: var(--th-primary);
}

html[data-skin="ocean"] .hero-slider-dot.is-active {
  background: linear-gradient(90deg, var(--th-primary), var(--th-accent));
}

/* footer */
html[data-skin="ocean"] .site-footer {
  position: relative;
  background: linear-gradient(160deg, #043015, #0a5024);
}

html[data-skin="ocean"] .site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--th-line-gradient);
}

/* phone bottom bar + floating contact */
html[data-skin="ocean"] .mobile-bottom-link.is-active {
  background: var(--th-gradient);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(var(--th-primary-rgb), .30);
}

html[data-skin="ocean"] .floating-contact-toggle {
  border-color: transparent;
  background: var(--th-gradient);
  box-shadow: 0 14px 32px rgba(var(--th-primary-rgb), .34);
}

html[data-skin="ocean"] .floating-contact-toggle .social-icon {
  color: var(--th-primary);
}

/* keyboard focus ring */
html[data-skin="ocean"] :is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(var(--th-primary-rgb), .45);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   3) Section titles: Baloo 2 + colour bar under the title (all pages)
   -------------------------------------------------------------------------- */
html[data-skin="ocean"] :is(
  .home-section-title-row > h2,
  .section-head > div > :is(h1, h2),
  .pr-title,
  .salev-head > h1,
  .rv-head > h1,
  .landing-lite-products-head h2,
  .docs-section > h2
) {
  padding-bottom: 14px;
  background: var(--th-title-bar) no-repeat 0 100% / 60px 6px;
  color: var(--th-ink);
  font-family: var(--th-title-font);
  font-weight: 800;
  letter-spacing: 0;
}

/* every page heading (shop, account, checkout, help pages, admin) in the same
   font; product names keep the normal font */
html[data-skin="ocean"] main :is(h1, h2):not(.pd-title) {
  font-family: var(--th-title-font);
  font-weight: 800;
  letter-spacing: 0;
}

/* --------------------------------------------------------------------------
   4) Home page
      Desktop: banner + news side by side, shortcuts below, then products.
      Phones keep today's order.
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  html[data-skin="ocean"] body.page-home main.container {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    grid-template-areas: "alert alert" "hero news" "quick quick" "feat feat" "best best" "land land";
    column-gap: 26px;
    row-gap: 0;
    align-items: start;
  }

  html[data-skin="ocean"] body.page-home main.container > .alert { grid-area: alert; }
  html[data-skin="ocean"] body.page-home main.container > .home-hero-layout { grid-area: hero; }
  html[data-skin="ocean"] body.page-home main.container > .home-news-section { grid-area: news; }
  html[data-skin="ocean"] body.page-home main.container > .home-quick-section { grid-area: quick; }
  html[data-skin="ocean"] body.page-home main.container > .home-category-stack--featured-home { grid-area: feat; }
  html[data-skin="ocean"] body.page-home main.container > .home-category-stack--bestsellers { grid-area: best; }
  html[data-skin="ocean"] body.page-home main.container > .home-category-stack:not(.home-category-stack--featured-home):not(.home-category-stack--bestsellers) { grid-area: land; }

  /* banner with a curved bottom */
  html[data-skin="ocean"] body.page-home .hero-showcase {
    border-radius: 30px 30px 0 0;
    clip-path: ellipse(135% 100% at 50% 0%);
  }

  /* news next to the banner: compact list */
  html[data-skin="ocean"] body.page-home .home-news-section {
    margin-top: 10px;
    padding: 16px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(14, 116, 52, .12);
  }

  html[data-skin="ocean"] body.page-home .home-news-section .home-section-title-row {
    margin-bottom: 10px;
  }

  html[data-skin="ocean"] body.page-home .home-news-section .home-section-title-row > h2 {
    font-size: 24px;
  }

  html[data-skin="ocean"] body.page-home .home-news-section .home-section-title-row > a,
  html[data-skin="ocean"] body.page-home .home-news-card .home-news-image span {
    display: none;
  }

  html[data-skin="ocean"] body.page-home .home-news-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  html[data-skin="ocean"] body.page-home .home-news-card {
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 12px;
    padding: 8px;
    border-radius: 16px;
  }

  html[data-skin="ocean"] body.page-home .home-news-card .home-news-image {
    grid-row: 1 / span 2;
  }

  html[data-skin="ocean"] body.page-home .home-news-card > strong {
    font-size: 13px;
    line-height: 1.35;
  }
}

/* "Khám phá nhanh" banners as white-framed stickers */
html[data-skin="ocean"] .home-static-banner-card {
  border: 6px solid #ffffff;
  border-radius: 24px;
  box-shadow: 0 16px 30px rgba(14, 116, 52, .18);
}

@media (min-width: 721px) {
  html[data-skin="ocean"] .home-static-banner-card {
    transform: rotate(-2deg);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
  }

  html[data-skin="ocean"] .home-static-banner-card:nth-child(even) {
    transform: rotate(2deg);
  }

  html[data-skin="ocean"] .home-static-banner-card:hover {
    transform: rotate(0) scale(1.04);
  }
}

/* --------------------------------------------------------------------------
   5) Product cards: round, soft shadow, rose price tag
   -------------------------------------------------------------------------- */
html[data-skin="ocean"] .product-card {
  border: 0;
  border-radius: 26px;
  box-shadow: 0 16px 34px rgba(14, 116, 52, .14);
}

html[data-skin="ocean"] .product-card .product-thumb-wrap {
  border-radius: 26px 26px 18px 18px;
}

html[data-skin="ocean"] .product-card .price-line strong {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--th-price-soft);
}

html[data-skin="ocean"] :is(.home-static-banner-card, .home-news-card):hover {
  border-color: rgba(var(--th-primary-rgb), .30);
}

/* cards in a gentle wave: one high, one low
   (desktop grids have 4 columns, phones 2 columns or a swipe row) */
@media (min-width: 1024px), (max-width: 720px) {
  html[data-skin="ocean"] :is(.home-category-grid, .product-grid, .pd-related-grid) {
    padding-bottom: calc(var(--th-wave) + 4px);
  }

  html[data-skin="ocean"] :is(.home-category-grid, .product-grid, .pd-related-grid) > .product-card:nth-child(even) {
    position: relative;
    top: var(--th-wave);
  }
}

/* --------------------------------------------------------------------------
   6) Product page: same layout as today, band under the header in sea blue
   -------------------------------------------------------------------------- */
html[data-skin="ocean"] .page-product-detail--storefront .pd-shell::after {
  background: linear-gradient(180deg, #dbf8e5, #ebfbf1);
}

/* --------------------------------------------------------------------------
   6b) Cart, checkout, order done, account, top-up, reviews, phone menu:
       the buttons / active pills that were black use the same blue as the
       main buttons; big dark panels become deep sea blue
   -------------------------------------------------------------------------- */
html[data-skin="ocean"] :is(
  .confirm-submit,
  .cart-step.is-active,
  .cart-pay-pill.is-bank,
  .success-check,
  .success-next-list strong,
  .account-link:hover,
  .account-link.active,
  .account-command-kicker,
  .account-command-btn,
  .account-security-btn,
  .account-review-action--dark,
  .favorite-card__btn,
  .bubu-auth-choice__btn:not(.bubu-auth-choice__btn--register),
  .bubu-topup-plus,
  .bubu-shortcut.is-active,
  .bubu-mobile-menu__account-nav a.is-active,
  .bubu-mobile-menu__langs a.active,
  .landing-lite-step-number,
  .landing-floating-cart,
  .prv-filter.active,
  .prv-bar-fill
) {
  border-color: transparent;
  background: var(--th-gradient);
  color: #ffffff;
}

html[data-skin="ocean"] body.page-topup :is(.topup-quick.is-active, .topup-quick:hover, .topup-steps strong) {
  border-color: transparent;
  background: var(--th-gradient);
  color: #ffffff;
}

html[data-skin="ocean"] .bubu-auth-choice__btn--register {
  background: var(--th-soft-line);
  color: var(--th-primary);
}

html[data-skin="ocean"] :is(.bubu-mobile-menu__account, .account-info-row--strong) {
  background: linear-gradient(150deg, #0a5225, #0e7434);
}

html[data-skin="ocean"] body.page-topup .topup-balance-card,
html[data-skin="ocean"] body.page-news .news-source-card {
  background: linear-gradient(150deg, #0a5225, #0e7434);
}

html[data-skin="ocean"] .account-key-code {
  background: #0a5225;
}

/* --------------------------------------------------------------------------
   6c) Admin: same colours as the shop
   -------------------------------------------------------------------------- */
html[data-skin="ocean"] :is(
  .admin-app-link:hover,
  .admin-app-link.is-active,
  .admin-app-store-link:hover,
  .admin-console-link:hover,
  .admin-console-link.is-active,
  .admin-key-head-link:hover,
  .admin-btn-live,
  .admin-btn-info
) {
  border-color: transparent;
  background: var(--th-gradient);
  color: #ffffff;
}

html[data-skin="ocean"] .admin-console-hero {
  background: linear-gradient(150deg, #043015, #0a5024);
}

html[data-skin="ocean"] :is(.admin-overview-head span, .admin-key-kicker) {
  color: var(--th-link);
}

html[data-skin="ocean"] :is(.admin-overview-card-head > a, .admin-link-blue, .admin-key-panel-head > a, .admin-key-panel-head > span) {
  color: var(--th-primary);
}

html[data-skin="ocean"] :is(.admin-line-chart-svg polyline, .admin-line-chart-svg circle) {
  stroke: var(--th-primary);
}

html[data-skin="ocean"] .admin-line-chart-svg polygon {
  fill: rgba(var(--th-primary-rgb), .10);
}

html[data-skin="ocean"] .admin-bar-chart-item span {
  background: linear-gradient(180deg, #0e7434, #17bb80);
}

html[data-skin="ocean"] .admin-payment-row i {
  background: var(--th-accent);
}

/* --------------------------------------------------------------------------
   7) Login / register / forgot password
   -------------------------------------------------------------------------- */
/* desktop illustration */
html[data-skin="ocean"] body.auth-page .auth-visual::before {
  background:
    radial-gradient(circle at 24% 78%, rgba(25, 204, 95, .20), transparent 30%),
    radial-gradient(circle at 82% 22%, rgba(23, 187, 128, .16), transparent 32%);
}

html[data-skin="ocean"] body.auth-page .auth-visual-screen {
  background: linear-gradient(150deg, #0a5225, #0e7434);
}

html[data-skin="ocean"] body.auth-page .auth-visual-screen::before {
  background: #ccf5db;
}

html[data-skin="ocean"] body.auth-page .auth-visual-screen::after {
  background:
    linear-gradient(90deg, transparent 0 37%, #c9e1d2 37% 63%, transparent 63% 100%),
    linear-gradient(#d2e6d9, #d2e6d9) center 42px / 150px 8px no-repeat,
    repeating-linear-gradient(90deg, #e2f0e8 0 13px, #f1fdf5 13px 17px) center 56px / 170px 22px no-repeat;
}

html[data-skin="ocean"] body.auth-page :is(.auth-visual-screen span, .auth-visual-screen em) {
  background: rgba(255, 255, 255, .22);
}

html[data-skin="ocean"] body.auth-page .auth-visual-card {
  border-color: #31e576;
  background: #ebfbf1;
  color: var(--th-primary);
  box-shadow: 0 20px 40px rgba(14, 116, 52, .12);
}

html[data-skin="ocean"] body.auth-page .auth-visual-card::before {
  background: linear-gradient(90deg, #0e7434, #17bb80);
}

html[data-skin="ocean"] body.auth-page .auth-visual-card small {
  color: var(--th-primary);
}

html[data-skin="ocean"] body.auth-page .auth-visual-card b {
  color: var(--th-label);
}

html[data-skin="ocean"] body.auth-page .auth-visual-mascot {
  box-shadow: 0 18px 42px rgba(14, 116, 52, .12);
}

html[data-skin="ocean"] body.auth-page .auth-star--one::before { background: #16b353; }
html[data-skin="ocean"] body.auth-page .auth-star--two::before { background: #fb7185; }
html[data-skin="ocean"] body.auth-page .auth-leaf::before { background: #17bb80; }

/* form card */
html[data-skin="ocean"] body.auth-page .auth-panel {
  position: relative;
  border-color: var(--th-soft-line);
  box-shadow: 0 24px 70px rgba(14, 116, 52, .10), inset 0 1px 0 rgba(255, 255, 255, .9);
}

html[data-skin="ocean"] body.auth-page .auth-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--th-line-gradient);
}

html[data-skin="ocean"] body.auth-page .auth-panel-head p {
  color: var(--th-link);
  font-weight: 700;
}

html[data-skin="ocean"] body.auth-page .auth-panel-head h1 {
  color: var(--th-ink);
}

html[data-skin="ocean"] body.auth-page :is(.auth-field > span:first-child, .auth-captcha > span, .auth-rule-list, .auth-panel-desc, .auth-alt, .auth-login-divider) {
  color: var(--th-label);
}

html[data-skin="ocean"] body.auth-page .auth-input {
  border-color: var(--line-strong);
}

html[data-skin="ocean"] body.auth-page .auth-input:focus-within {
  border-color: rgba(var(--th-primary-rgb), .55);
  box-shadow: 0 0 0 4px rgba(var(--th-primary-rgb), .12);
}

html[data-skin="ocean"] body.auth-page .auth-input svg {
  color: var(--th-primary-2);
}

html[data-skin="ocean"] body.auth-page .auth-submit,
html[data-skin="ocean"] body.auth-page .auth-tab.is-active {
  border-color: transparent;
  background: var(--th-gradient);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(var(--th-primary-rgb), .26);
}

html[data-skin="ocean"] body.auth-page .auth-submit:hover {
  box-shadow: 0 20px 40px rgba(var(--th-primary-rgb), .32);
}

html[data-skin="ocean"] body.auth-page .auth-secondary-btn {
  border-color: rgba(var(--th-primary-rgb), .32);
  background: #ffffff;
  color: var(--th-primary);
}

html[data-skin="ocean"] body.auth-page .auth-secondary-btn:hover {
  background: rgba(var(--th-primary-rgb), .06);
}

html[data-skin="ocean"] body.auth-page .auth-tab {
  border-color: var(--line-strong);
}

html[data-skin="ocean"] body.auth-page .auth-login-divider::before,
html[data-skin="ocean"] body.auth-page .auth-login-divider::after,
html[data-skin="ocean"] body.auth-page .auth-divider-line {
  background: var(--th-soft-line);
}

html[data-skin="ocean"] body.auth-page .auth-alt a {
  color: var(--th-link);
  text-decoration-color: rgba(15, 123, 63, .4);
}

html[data-skin="ocean"] body.auth-page .auth-stage-footer a:hover {
  color: var(--th-primary);
}

/* --------------------------------------------------------------------------
   8) Help pages: contact, payment guide, policy, privacy (help-docs.css)
   -------------------------------------------------------------------------- */
html[data-skin="ocean"] .docs-brand > span:not(.docs-brand__logo) {
  background-image: linear-gradient(115deg, #0a5225 0%, #0e7434 45%, #139951 75%, #0f7b3f 100%);
  text-shadow: none;
}

html[data-skin="ocean"] :is(.docs-copy button, .doc-btn.primary, .info-card__link, .contact-row__link, .sidebar__links a.is-active) {
  border-color: transparent;
  background: var(--th-gradient);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(var(--th-primary-rgb), .22);
}

html[data-skin="ocean"] .sidebar::before {
  background: linear-gradient(90deg, #0e7434, #17bb80, transparent);
}

html[data-skin="ocean"] .sidebar__title::before,
html[data-skin="ocean"] .docs-list li::before,
html[data-skin="ocean"] .sidebar__powered-dot {
  background: var(--th-primary);
  box-shadow: 0 0 0 4px rgba(var(--th-primary-rgb), .14);
}

html[data-skin="ocean"] :is(.sidebar__links a:hover, .toc a:hover) {
  border-color: var(--th-soft-line);
  background: var(--th-soft);
  color: var(--th-ink);
}

html[data-skin="ocean"] .sidebar__links a:hover::before {
  background: var(--th-primary);
}

html[data-skin="ocean"] :is(.eyebrow, .info-card__label) {
  color: var(--th-link);
}

html[data-skin="ocean"] :is(.docs-title, .info-card__title, .contact-row__name) {
  color: var(--th-ink);
}

html[data-skin="ocean"] .contact-row__icon {
  background: var(--th-soft-line);
  color: var(--th-primary);
}

html[data-skin="ocean"] .docs-search:focus-within {
  border-color: rgba(var(--th-primary-rgb), .55);
  box-shadow: 0 0 0 4px rgba(var(--th-primary-rgb), .12);
}

/* --------------------------------------------------------------------------
   9) Cute avatars (SVG drawn by theme.js instead of a plain letter)
   -------------------------------------------------------------------------- */
html[data-skin="ocean"] :is(.bubu-user-avatar, .bubu-mobile-menu__avatar, .account-profile-avatar, .account-rank-avatar, .prv-avatar).th-avatar {
  overflow: hidden;
  padding: 0;
  background: #fde7ef;
  color: transparent;
  font-size: 0;
}

html[data-skin="ocean"] .th-avatar > svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* --------------------------------------------------------------------------
   10) Fixes for any look (bugs of the current site, phones)
   -------------------------------------------------------------------------- */
/* full-width bands (100vw) were a few px wider than the page on computers
   with a classic scrollbar (Windows) and made the page scroll sideways */
html {
  overflow-x: clip;
}

/* contact page: long Zalo / Discord links pushed the page sideways */
.contact-row__link {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
}

/* login page: the 400px Google button pushed the page sideways
   (theme.js also sizes the button to the screen before Google draws it) */
body.auth-page .auth-panel {
  min-width: 0;
  max-width: 100%;
  grid-template-columns: minmax(0, 1fr);
}

body.auth-page .auth-google-wrap > .g_id_signin {
  min-width: 0;
  max-width: 100%;
}

/* account page: long names, order codes, dates and amounts no longer squeeze
   into narrow boxes or stick out (boxes move to a new row instead) */
.account-order-detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}

.account-order-meta-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}

body.page-account .account-rank-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
}

body .account-review-summary {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

body .account-review-summary strong {
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.account-copy-box-top {
  flex-wrap: wrap;
}

.account-copy-box-label {
  flex: 1 0 160px;
}

.account-order-table th {
  white-space: nowrap;
}

/* account page: the profile form opens with "Chỉnh sửa hồ sơ" */
.account-profile-edit {
  margin-top: 16px;
}

.account-profile-edit > summary {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: #ffffff;
  color: var(--black);
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.account-profile-edit > summary::-webkit-details-marker {
  display: none;
}

.account-profile-edit > summary:hover {
  background: var(--surface-soft);
}

.account-profile-edit[open] > summary {
  margin-bottom: 12px;
}

.account-profile-edit[open] .account-profile-edit-open,
.account-profile-edit:not([open]) .account-profile-edit-close {
  display: none;
}

/* account page: orders are shown 20 per page */
.account-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.account-pagination-info {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.account-pagination-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.account-pagination-links .btn {
  min-width: 38px;
}

.account-pagination-links .btn.is-current {
  pointer-events: none;
}

@media (max-width: 420px) {
  .account-order-item-main {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* status pills (Đang xử lý, Thành công...) never break in two */
.pill {
  white-space: nowrap;
}

/* top-up history: cells stay on one line, the table scrolls inside its box */
.topup-history-table :is(th, td) {
  white-space: nowrap;
}

/* checkout summary: label and amount no longer squeeze each other */
.confirm-row {
  flex-wrap: wrap;
  column-gap: 12px;
}

.confirm-row > span {
  white-space: nowrap;
}

.confirm-row > strong {
  margin-left: auto;
}

/* order done: the status moves under the title when there is no room */
.success-panel-head {
  flex-wrap: wrap;
  gap: 8px 12px;
}

.success-panel-head > div {
  flex: 1 0 auto;
}

/* product reviews: "0đánh giá" -> "0 đánh giá" */
.pr-pill {
  column-gap: .3em;
}

/* --------------------------------------------------------------------------
   10b) Search box suggestions (list built by theme.js under the header search)
   -------------------------------------------------------------------------- */
.bubu-search.th-suggest-ready {
  position: relative;
  overflow: visible;
}

/* the box no longer clips its children, so the button rounds its own corners */
.bubu-search.th-suggest-ready > button {
  border-radius: 0 999px 999px 0;
}

.th-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 60;
  max-height: min(70vh, 540px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  border: 1px solid var(--line-strong, #d8e7de);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 48px rgba(10, 82, 37, .18);
  color: var(--th-ink, #111a15);
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
}

.th-suggest[hidden] {
  display: none;
}

.th-suggest-label {
  padding: 8px 10px 4px;
  color: var(--muted, #64776c);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.th-suggest-opt {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
}

.th-suggest-opt:hover,
.th-suggest-opt[aria-selected="true"] {
  background: var(--th-soft, #f0f5f2);
  color: inherit;
  text-decoration: none;
}

.th-suggest-opt[aria-selected="true"] {
  box-shadow: inset 3px 0 0 var(--th-primary-2, #2c3630);
}

.th-suggest-opt img,
.th-suggest-noimg {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--th-soft-line, #e0e9e4);
}

.th-suggest-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.th-suggest-name {
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.th-suggest-name mark {
  padding: 0 1px;
  border-radius: 4px;
  background: #fde68a;
  color: inherit;
}

.th-suggest-cat {
  overflow: hidden;
  color: var(--th-link, #47574e);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.th-suggest-price {
  display: grid;
  justify-items: end;
  gap: 2px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.th-suggest-price strong {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--th-price-soft, #fff1f2);
  color: var(--th-price, #dc2626);
  font-size: 13px;
  font-weight: 800;
}

.th-suggest-old {
  color: var(--muted, #64776c);
  font-size: 11px;
}

.th-suggest-opt.is-contact .th-suggest-price strong {
  background: var(--th-soft-line, #e0e9e4);
  color: var(--th-primary, #101311);
}

.th-suggest-opt.is-out .th-suggest-price strong {
  background: #f0f5f2;
  color: #64776c;
}

.th-suggest-opt.is-out img {
  opacity: .7;
  filter: grayscale(.7);
}

.th-suggest-all {
  display: block;
  margin-top: 4px;
  padding: 10px;
  border-top: 1px solid var(--line, #e0e9e4);
  color: var(--th-primary, #101311);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.th-suggest-all:hover,
.th-suggest-all[aria-selected="true"] {
  border-radius: 12px;
  background: var(--th-soft, #f0f5f2);
  color: var(--th-primary, #101311);
  text-decoration: none;
}

.th-suggest-empty,
.th-suggest-loading {
  padding: 12px 10px 6px;
  color: var(--muted, #64776c);
  overflow-wrap: anywhere;
}

.th-suggest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 10px 10px;
}

.th-suggest-chip {
  max-width: 100%;
  overflow: hidden;
  padding: 5px 12px;
  border: 1px solid var(--line-strong, #d8e7de);
  border-radius: 999px;
  background: var(--th-soft, #f8fafc);
  color: var(--th-ink, #111a15);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.th-suggest-chip:hover {
  border-color: var(--th-primary-2, #2c3630);
  color: var(--th-ink, #111a15);
  text-decoration: none;
}

/* phones: price goes under the name, long names use 2 lines */
@media (max-width: 560px) {
  .th-suggest {
    left: -4px;
    right: -4px;
    max-height: min(62vh, 480px);
  }

  .th-suggest-opt {
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: start;
    gap: 4px 10px;
    padding: 8px 6px;
  }

  .th-suggest-opt img,
  .th-suggest-noimg {
    grid-row: 1 / span 2;
    width: 46px;
    height: 46px;
  }

  .th-suggest-name {
    display: -webkit-box;
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .th-suggest-price {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
  }
}

html[data-motion="on"] .th-suggest:not([hidden]) {
  transform-origin: 50% 0;
  animation: th-suggest-in .18s cubic-bezier(.2, .8, .2, 1);
}

/* --------------------------------------------------------------------------
   10c) Page not found (not_found.php, answers HTTP 404)
   -------------------------------------------------------------------------- */
.not-found {
  display: grid;
  gap: 32px;
  margin: 8px 0 40px;
}

.not-found-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(24px, 5vw, 44px) clamp(16px, 4vw, 40px);
  border: 1px solid var(--line, #e0e9e4);
  border-radius: 28px;
  background: linear-gradient(180deg, #e2faea 0%, #ffffff 72%);
  text-align: center;
}

.not-found-art {
  display: block;
  width: min(320px, 100%);
  height: auto;
}

.not-found-digit {
  font-family: var(--th-title-font, "Be Vietnam Pro", sans-serif);
  font-size: 112px;
  font-weight: 800;
}

.not-found-card h1 {
  margin: 0;
  color: var(--th-ink, #111a15);
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1.2;
}

.not-found-card p {
  max-width: 560px;
  margin: 0;
  color: var(--muted, #64776c);
  font-size: 15px;
  line-height: 1.6;
}

.not-found-actions,
.not-found-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.not-found-actions {
  margin-top: 4px;
}

.not-found-links {
  gap: 8px;
}

.not-found-links a {
  padding: 6px 14px;
  border: 1px solid var(--line-strong, #d8e7de);
  border-radius: 999px;
  background: #ffffff;
  color: var(--th-ink, #111a15);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.not-found-links a:hover {
  border-color: var(--th-primary-2, #2c3630);
  color: var(--th-ink, #111a15);
  text-decoration: none;
}

.not-found-buoy,
.not-found-wave {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

html[data-motion="on"] .not-found-buoy {
  animation: th-bob 3.2s ease-in-out infinite;
}

html[data-motion="on"] .not-found-wave {
  animation: th-wave-drift 6s ease-in-out infinite alternate;
}

html[data-motion="on"] .not-found-wave--back {
  animation-duration: 8s;
  animation-direction: alternate-reverse;
}

/* --------------------------------------------------------------------------
   11) Effects (data-motion="on"), with the old and the new look
   -------------------------------------------------------------------------- */
html[data-motion="on"] :is(.btn, .bubu-search button, .mobile-bottom-link, .floating-contact-toggle, .pd-stepper button, .bubu-nav-chip, .home-category-link, .home-section-title-row > a, .bubu-shortcut, .auth-submit, .auth-secondary-btn, .docs-copy button, .doc-btn, .info-card__link, .contact-row__link) {
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

html[data-motion="on"] :is(.btn, .bubu-search button, .mobile-bottom-link, .floating-contact-toggle, .pd-stepper button, .bubu-nav-chip, .home-category-link, .home-section-title-row > a, .bubu-shortcut, .auth-submit, .auth-secondary-btn, .docs-copy button, .doc-btn, .info-card__link, .contact-row__link):active {
  transform: scale(.95);
}

/* lightning bolt flickers now and then */
html[data-skin="ocean"][data-motion="on"] .bubu-brand-copy strong::after {
  animation: th-zap 4.5s ease-in-out infinite;
}

/* with theme.js the same jump + flash runs only when it is due (every 4.5 s,
   0.8 s long), so nothing has to run in between */
html.th-zap-js[data-skin="ocean"][data-motion="on"] .bubu-brand-copy strong::after {
  animation: none;
}

html.th-zap-js[data-skin="ocean"][data-motion="on"] .bubu-brand-copy strong.is-zap::after {
  animation: th-zap-once .81s ease-in-out;
}

/* ripple (spans added by theme.js) */
.th-ripple-host {
  position: relative;
}

.th-ripple-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.th-ripple {
  position: absolute;
  border-radius: 50%;
  background: currentColor;
  opacity: .28;
  transform: scale(0);
  animation: th-ripple .62s cubic-bezier(.2, .8, .2, 1) forwards;
  pointer-events: none;
}

/* cards: lift + zoom + light sweep (mouse only) */
@media (hover: hover) and (pointer: fine) {
  html[data-motion="on"] :is(.product-card, .home-static-banner-card, .home-news-card) {
    transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s ease, border-color .28s ease;
  }

  html[data-motion="on"] :is(.product-card, .home-static-banner-card, .home-news-card):hover {
    box-shadow: 0 24px 48px rgba(var(--th-primary-rgb), .16);
  }

  html[data-motion="on"] .product-card:hover {
    transform: translateY(-6px);
  }

  html[data-motion="on"] .product-card .product-thumb {
    transition: transform .6s cubic-bezier(.2, .8, .2, 1);
  }

  html[data-motion="on"] .product-card:hover .product-thumb {
    transform: scale(1.07);
  }

  html[data-motion="on"] .product-card .product-thumb-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .38) 46%, transparent 60%);
    transform: translateX(-120%);
    pointer-events: none;
  }

  html[data-motion="on"] .product-card:hover .product-thumb-wrap::after {
    transform: translateX(120%);
    transition: transform .9s ease;
  }
}

/* scroll reveal (classes added by theme.js; never hidden without JS) */
html.th-reveal-ready[data-motion="on"] .th-reveal {
  opacity: 0;
  transform: translateY(22px) scale(.985);
  transition: opacity .6s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--th-delay, 0ms);
}

html.th-reveal-ready[data-motion="on"] .th-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* "Mua ngay": soft light sweep */
html[data-motion="on"] #pdBtnBuy:not([disabled]) {
  position: relative;
  overflow: hidden;
}

html[data-motion="on"] #pdBtnBuy:not([disabled])::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .42), transparent);
  transform: skewX(-18deg);
  animation: th-sheen 3.6s ease-in-out infinite;
  pointer-events: none;
}

/* floating contact: the same soft halo as before (14px around the button,
   fading). It is a layer behind the button that grows and fades, so the
   graphics chip moves it and the page is not painted again every frame.
   Phones: round 48px button; 721px and up: 122 x 52 pill */
html[data-motion="on"] .floating-socials:not(.is-open) .floating-contact-toggle::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: rgba(var(--th-primary-rgb), .38);
  opacity: 0;
  animation: th-pulse 2.8s ease-out infinite;
  pointer-events: none;
}

@media (max-width: 720px) {
  html[data-motion="on"] .floating-socials:not(.is-open) .floating-contact-toggle::after {
    animation-name: th-pulse-round;
  }
}

/* LIVE label in the ticker: the same red glow breathing as before, made by
   cross-fading two shadow layers (no repaint every frame) */
html[data-motion="on"] .bubu-ticker-badge {
  position: relative;
  box-shadow: none;
  animation: th-live-bob 2.4s ease-in-out infinite;
}

html[data-motion="on"] .bubu-ticker-badge::before,
html[data-motion="on"] .bubu-ticker-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
}

html[data-motion="on"] .bubu-ticker-badge::before {
  box-shadow: 0 8px 18px rgba(239, 68, 68, .12);
  animation: th-live-out 2.4s ease-in-out infinite;
}

html[data-motion="on"] .bubu-ticker-badge::after {
  box-shadow: 0 8px 24px rgba(239, 68, 68, .2);
  opacity: 0;
  animation: th-live-in 2.4s ease-in-out infinite;
}

/* header shadow once the page is scrolled */
html.th-scrolled .bubu-top {
  box-shadow: 0 10px 30px rgba(15, 26, 20, .08);
}

/* cart badge pop + fly-to-cart image */
.th-bump {
  animation: th-bump .5s cubic-bezier(.2, .8, .2, 1.4);
}

.th-fly {
  position: fixed;
  z-index: 2147483000;
  margin: 0;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(15, 26, 20, .28);
  pointer-events: none;
}

/* toast */
.th-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 2147483001;
  max-width: min(92vw, 420px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(15, 26, 20, .92);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 0 18px 44px rgba(15, 26, 20, .3);
  backdrop-filter: blur(10px);
  transform: translate(-50%, 20px);
  opacity: 0;
  transition: opacity .3s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
}

.th-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 720px) {
  .th-toast {
    bottom: 92px;
  }
}

/* money that counts up (theme.js): the amount pops a little while it runs */
.th-count {
  display: inline-block;
  transform-origin: 100% 55%;
  font-variant-numeric: tabular-nums;
}

/* heart on the product page: small hearts and a ring around the button */
.th-fav-burst {
  position: fixed;
  z-index: 90;
  width: 0;
  height: 0;
  pointer-events: none;
}

.th-fav-burst i {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  opacity: 0;
}

.th-fav-ring {
  border: 2px solid #ef4444;
  border-radius: 50%;
}

.th-fav-bit.is-dot {
  border-radius: 50%;
  background: currentColor;
}

.th-fav-bit svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* product cards lean toward the mouse (theme.js sets html.th-tilt: mouse + effects on) */
@media (hover: hover) and (pointer: fine) {
  html.th-tilt[data-motion="on"] .product-card {
    position: relative;
  }

  html.th-tilt[data-motion="on"] .product-card:hover {
    transform: perspective(900px) translateY(-6px) rotateX(var(--th-rx, 0deg)) rotateY(var(--th-ry, 0deg));
    transition: transform .14s ease-out, box-shadow .28s ease, border-color .28s ease;
  }

  /* soft light that follows the mouse */
  html.th-tilt .th-glare {
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
    background: radial-gradient(circle at var(--th-gx, 50%) var(--th-gy, 30%), rgba(255, 255, 255, .7), transparent 60%);
    mix-blend-mode: soft-light;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease;
  }

  html.th-tilt[data-motion="on"] .product-card:hover .th-glare {
    opacity: 1;
  }
}

/* rank up: card in the middle of the screen, fireworks behind (theme.js) */
.th-rankup {
  position: fixed;
  inset: 0;
  z-index: 2147483003;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: rgba(2, 22, 10, .6);
}

.th-rankup canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.th-rankup-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  width: min(380px, 100%);
  padding: 26px 22px 22px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .3);
  text-align: center;
}

.th-rankup-badge {
  position: relative;
  width: 112px;
  height: 112px;
  margin-bottom: 4px;
  perspective: 600px;
}

.th-rankup-badge::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, .45), transparent 65%);
}

.th-rankup-badge img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  backface-visibility: hidden;
}

.th-rankup-badge .old {
  opacity: 0;
}

.th-rankup-kicker {
  color: #d97706;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.th-rankup-card h2 {
  margin: 0;
  color: var(--th-ink, #111a15);
  font-family: var(--th-title-font, inherit);
  font-size: 26px;
  line-height: 1.15;
}

.th-rankup-card p {
  margin: 0 0 10px;
  color: var(--muted, #64776c);
  font-size: 14px;
}

html[data-motion="on"] .th-rankup {
  animation: th-fade-in .25s ease both;
}

html[data-motion="on"] .th-rankup.is-out {
  animation: th-fade-out .25s ease both;
}

html[data-motion="on"] .th-rankup-card {
  animation: th-pop-in .45s cubic-bezier(.2, .9, .25, 1.15) both;
}

html[data-motion="on"] .th-rankup-badge::before {
  animation: th-glow 1.6s ease-in-out .5s infinite alternate;
}

html[data-motion="on"] .th-rankup-badge .old {
  animation: th-flip-out .35s ease-in .35s both;
}

html[data-motion="on"] .th-rankup-badge .new {
  animation: th-flip-in .45s cubic-bezier(.2, .9, .25, 1.25) .7s both;
}

/* pay buttons: spinner + "Đang xử lý…" after the first click */
.th-busy {
  opacity: .85;
  pointer-events: none;
}

.th-spin {
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: -4px;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: th-spin .75s linear infinite;
}

/* QR window: scan line, pulsing step, waiting time, check once paid */
.th-qr-frame {
  position: relative;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px;
  line-height: 0;
  vertical-align: top;
}

.th-qr-frame img {
  display: block;
  max-width: 100%;
}

.th-qr-scan {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 4%;
  height: 14%;
  border-bottom: 2px solid #17bb80;
  background: linear-gradient(180deg, rgba(23, 187, 128, 0), rgba(23, 187, 128, .28));
  pointer-events: none;
}

html[data-motion="on"] .th-qr-scan {
  animation: th-qr-scan 2.2s ease-in-out infinite alternate;
}

html:not([data-motion="on"]) .th-qr-scan,
.th-qr-frame.is-paid .th-qr-scan {
  display: none;
}

.th-qr-frame.is-paid img {
  opacity: .2;
  transition: opacity .3s ease;
}

.th-qr-ok {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  pointer-events: none;
}

.th-qr-frame.is-paid .th-qr-ok {
  display: grid;
}

.th-qr-ok > span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #16a34a;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(22, 163, 74, .35);
}

.th-qr-ok svg {
  width: 34px;
  height: 34px;
}

html[data-motion="on"] .th-qr-frame.is-paid .th-qr-ok > span {
  animation: th-pop-in .4s cubic-bezier(.2, .9, .25, 1.2) both;
}

html[data-motion="on"] .th-qr-frame.is-paid .th-qr-ok path {
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
  animation: th-check-draw .4s ease .2s forwards;
}

html[data-motion="on"] .topup-qr-step.is-active strong {
  animation: th-ping 1.4s ease-out infinite;
}

.th-qr-timer {
  margin: 8px 0 0;
  color: var(--muted, #64776c);
  font-size: 13px;
}

.th-qr-timer b {
  color: var(--th-ink, #111a15);
  font-variant-numeric: tabular-nums;
}

/* product picture flying back after the zoom viewer closed */
.th-lb-ghost {
  position: fixed;
  z-index: 10000;
  border-radius: 18px;
  object-fit: contain;
  pointer-events: none;
}

/* home banner: two soft wave layers at the bottom edge */
body.page-home .hero-slider-track {
  position: relative;
}

.th-waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 38px;
  overflow: hidden;
  pointer-events: none;
}

.th-waves i {
  position: absolute;
  left: 0;
  right: -600px; /* one wave longer than the banner: the layer slides, the mask stays (no repaint) */
  bottom: -1px;
  display: block;
  -webkit-mask: var(--th-wave-shape) repeat-x 0 100% / 600px 30px;
  mask: var(--th-wave-shape) repeat-x 0 100% / 600px 30px;
}

.th-waves .back {
  height: 38px;
  background: rgba(255, 255, 255, .22);
  -webkit-mask-size: 600px 38px;
  mask-size: 600px 38px;
}

.th-waves .front {
  height: 30px;
  background: rgba(255, 255, 255, .4);
}

html[data-motion="on"] .th-waves .back {
  animation: th-wave-x 18s linear infinite reverse;
}

html[data-motion="on"] .th-waves .front {
  animation: th-wave-x 12s linear infinite;
}

html:not([data-skin="ocean"]) .th-waves {
  display: none;
}

@media (max-width: 720px) {
  .th-waves,
  .th-waves .back {
    height: 26px;
  }

  .th-waves .front {
    height: 20px;
  }
}

/* header shortcut row: the line under the item the mouse is on */
.bubu-shortcuts.th-nav-ready {
  position: relative;
}

.th-nav-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--th-primary, #101311), var(--th-accent, #16a34a));
  opacity: 0;
  pointer-events: none;
  transition: left .35s cubic-bezier(.2, .8, .2, 1), width .35s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
}

.th-nav-line.is-on {
  opacity: 1;
}

/* contact: each app in its own colour, a green dot on the button */
.floating-social.fb .social-icon {
  background: #1877f2;
  color: #ffffff;
}

.floating-social.zalo .social-icon {
  background: #0068ff;
  color: #ffffff;
}

.floating-social.zalo .social-icon svg {
  width: 25px;
  height: 25px;
}

.floating-social.discord .social-icon {
  background: #5865f2;
  color: #ffffff;
}

.floating-social.tiktok .social-icon {
  background: #111111;
  color: #ffffff;
}

.floating-social .social-icon {
  transition: transform .2s cubic-bezier(.2, .8, .2, 1);
}

.floating-social:hover .social-icon {
  transform: scale(1.08) rotate(-6deg);
}

.floating-contact-toggle {
  position: relative;
}

.th-online {
  position: absolute;
  left: 34px;
  top: 7px;
  width: 11px;
  height: 11px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #22c55e;
  pointer-events: none;
}

/* "need advice?" bubble above the contact button (product pages) */
.th-ask {
  position: absolute;
  right: 0;
  display: grid;
  gap: 4px;
  width: min(260px, calc(100vw - 36px));
  padding: 14px 16px;
  border: 1px solid var(--line, #e0e9e4);
  border-radius: 18px 18px 6px 18px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(10, 82, 37, .18);
  color: var(--th-ink, #111a15);
  font-size: 13.5px;
  line-height: 1.45;
  text-align: left;
}

.th-ask strong {
  padding-right: 18px;
  font-size: 15px;
}

.th-ask > span {
  color: var(--muted, #64776c);
}

.th-ask-x {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted, #64776c);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.th-ask-go {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  background: #0068ff;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.th-ask-go:hover {
  color: #ffffff;
  text-decoration: none;
  filter: brightness(1.08);
}

.th-ask-go .social-icon {
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, .2);
}

.th-ask-go .social-icon svg {
  width: 16px;
  height: 16px;
}

html[data-motion="on"] .th-ask {
  transform-origin: 100% 100%;
  animation: th-bubble-in .4s cubic-bezier(.2, .9, .25, 1.2) both;
}

/* thin loading bar along the top edge while the next page loads (theme.js) */
.th-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2147483002;
  height: 3px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease .12s;
}

.th-progress.is-on {
  opacity: 1;
  transition-delay: 0s;
}

.th-progress i {
  display: block;
  height: 100%;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, #17bb80, #139951, #19cc5f);
  box-shadow: 0 0 10px rgba(25, 204, 95, .7);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* top-up done: gold coins falling over the page */
.th-coins {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  overflow: hidden;
  pointer-events: none;
}

.th-coins i {
  position: absolute;
  top: -44px;
}

.th-coins b {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fef3c7, #fbbf24 46%, #b45309 100%);
  box-shadow: inset 0 0 0 2px rgba(180, 83, 9, .5), inset 0 -3px 0 rgba(146, 64, 14, .3), 0 3px 6px rgba(120, 53, 15, .25);
  color: #92400e;
  font-family: var(--th-title-font, "Be Vietnam Pro", sans-serif);
  font-weight: 800;
  line-height: 1;
}

html[data-motion="on"] body.page-topup .topup-paid-banner {
  animation: th-paid-in .5s cubic-bezier(.2, .8, .2, 1) both;
}

/* rank bar close to the next rank: sparkles at its end + a small tag */
.th-rank-sparks {
  position: relative;
  display: block;
  height: 0;
  pointer-events: none;
}

.th-rank-sparks i {
  position: absolute;
  left: var(--th-at, 90%);
  top: -4px;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  background: #f59e0b;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: 0;
  animation: th-twinkle 1.4s ease-in-out 1.3s infinite;
}

.th-rank-sparks i:nth-child(1) {
  translate: -6px -11px;
}

.th-rank-sparks i:nth-child(2) {
  width: 9px;
  height: 9px;
  translate: 8px 7px;
  animation-delay: 1.75s;
}

.th-rank-sparks i:nth-child(3) {
  width: 7px;
  height: 7px;
  translate: -13px 8px;
  animation-delay: 2.2s;
}

.th-rank-soon {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 12px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 12.5px;
  font-weight: 800;
}

html[data-motion="on"] .th-rank-soon {
  animation: th-soon-in .4s cubic-bezier(.2, .8, .2, 1) 1.2s both;
}

/* Copy key: a check mark that draws itself, a light over the copied key */
.th-copy-check {
  display: inline-flex;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
}

.th-copy-check svg {
  display: block;
  width: 100%;
  height: 100%;
}

html[data-motion="on"] .th-copy-check path {
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
  animation: th-check-draw .35s ease .05s forwards;
}

.th-key-flash {
  position: relative;
  overflow: hidden;
}

.th-key-flash::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 25%, rgba(49, 229, 118, .5) 50%, transparent 75%) no-repeat;
  background-size: 60% 100%;
  background-position: 250% 0;
  pointer-events: none;
  animation: th-key-flash .6s ease;
}

/* cart reminder: first page of a return visit while the cart has items */
.th-cart-remind {
  position: fixed;
  right: 20px;
  z-index: 2147483000;
  width: min(390px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 42px 12px 12px;
  border: 1px solid var(--line-strong, #d8e7de);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 22px 48px rgba(10, 82, 37, .2);
  color: var(--th-ink, #111a15);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .3s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
}

.th-cart-remind.is-on {
  opacity: 1;
  transform: none;
}

.th-cart-remind-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--th-soft, #f0f5f2);
  color: var(--th-primary, #101311);
}

.th-cart-remind-icon svg {
  width: 24px;
  height: 24px;
}

.th-cart-remind-icon b {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--th-price, #dc2626);
  color: #ffffff;
  font-size: 11px;
  line-height: 20px;
  text-align: center;
}

.th-cart-remind-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.th-cart-remind-text strong {
  font-size: 14px;
  line-height: 1.3;
}

.th-cart-remind-text span {
  color: var(--muted, #64776c);
  font-size: 12.5px;
  line-height: 1.35;
}

.th-cart-remind-go {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--th-gradient, #111a15);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.th-cart-remind-go:hover {
  color: #ffffff;
  text-decoration: none;
  filter: brightness(1.08);
}

.th-cart-remind-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted, #64776c);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.th-cart-remind-close:hover {
  background: var(--th-soft, #f0f5f2);
  color: var(--th-ink, #111a15);
}

@media (max-width: 720px) {
  .th-cart-remind {
    left: 16px;
    right: 16px;
    width: auto;
  }
}

@media (max-width: 400px) {
  .th-cart-remind {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .th-cart-remind-go {
    grid-column: 2;
    justify-self: start;
  }
}

/* picture still loading: shimmer box, then the picture fades in */
html[data-motion="on"] .th-img-wait {
  background-color: #e4f0e9;
  background-image: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .75) 50%, rgba(255, 255, 255, 0) 70%);
  background-repeat: no-repeat;
  background-size: 220% 100%;
  animation: th-shimmer 1.3s ease-in-out infinite;
}

html[data-motion="on"] img.th-img-loading {
  opacity: 0;
}

img.th-img-in {
  animation: th-img-in .45s ease both;
}

/* back to the top (button added by theme.js) */
.th-totop {
  position: fixed;
  left: 20px;
  bottom: 24px;
  z-index: 85;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--th-gradient, #101311);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(var(--th-primary-rgb), .32);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px) scale(.9);
  pointer-events: none;
  transition: opacity .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
}

.th-totop svg {
  width: 20px;
  height: 20px;
}

.th-totop.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.th-totop:hover {
  transform: translateY(-3px);
}

@media (max-width: 900px) {
  .th-totop {
    left: 12px;
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    width: 42px;
    height: 42px;
  }
}

/* confetti on the order-placed page (pieces added by theme.js) */
.th-confetti {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  overflow: hidden;
  pointer-events: none;
}

.th-confetti i {
  position: absolute;
  display: block;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   11b) Smooth page change (Chrome, Edge, Safari 18.2+; other browsers change
        pages as before). The header, the phone bottom bar and the contact
        button stay still; the page fades out and the next one rises in.
   -------------------------------------------------------------------------- */
@view-transition {
  navigation: auto;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}

.bubu-top {
  view-transition-name: th-header;
}

.mobile-bottom-nav {
  view-transition-name: th-bottom-nav;
}

.floating-socials {
  view-transition-name: th-contact;
}

::view-transition-group(th-header),
::view-transition-group(th-bottom-nav),
::view-transition-group(th-contact),
::view-transition-new(th-header),
::view-transition-new(th-bottom-nav),
::view-transition-new(th-contact) {
  animation: none;
}

::view-transition-old(th-header),
::view-transition-old(th-bottom-nav),
::view-transition-old(th-contact) {
  display: none;
}

html[data-motion="on"]::view-transition-old(root) {
  animation: th-page-out .3s ease both;
}

html[data-motion="on"]::view-transition-new(root) {
  animation: th-page-in .3s ease both;
}

/* effects off, and Admin (sidebar layout): the next page appears at once */
html:not([data-motion="on"])::view-transition-old(root),
html:not([data-motion="on"])::view-transition-new(root) {
  animation: none;
}

html:has(> body.page-admin)::view-transition-old(root),
html:has(> body.page-admin)::view-transition-new(root) {
  animation: none;
}

/* --------------------------------------------------------------------------
   11c) Đợt 9: rank colours of the new medals, avatar ring by rank, review
        stars, reading line on news, "+1" at the cart, product cards (sold
        out, old price striking itself, HOT flame), greeting, delivery tips,
        order timeline, "typing…" bubble, banner bubbles, password help,
        "Xem thêm" cards, toast with a line of time  (theme.js)
   -------------------------------------------------------------------------- */

/* rank pills in the colours of the new medals (assets/badges/*.png) */
.customer-badge--member {
  --badge-bg: #f1fdf9;
  --badge-border: #66ebbf;
  --badge-text: #0f7851;
}

.customer-badge--vip {
  --badge-bg: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%);
  --badge-border: #e879f9;
  --badge-text: #86198f;
}

/* 7) the customer's own avatar wears a ring in the colour of their rank */
.th-ranked {
  position: relative;
}

.th-ranked::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: max(2.5px, 6%);
  border-radius: 50%;
  background: linear-gradient(135deg, #d9f8ef, #17bb80 55%, #0f7851);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.th-ranked[data-th-rank="bronze"]::after {
  background: linear-gradient(135deg, #fed7aa, #c2410c 55%, #7c2d12);
}

.th-ranked[data-th-rank="silver"]::after {
  background: linear-gradient(135deg, #f8fafc, #91a79a 50%, #47574e);
}

.th-ranked[data-th-rank="gold"]::after {
  background: conic-gradient(#eab308, #fef9c3, #a16207, #fde68a, #eab308);
}

.th-ranked[data-th-rank="diamond"]::after {
  background: conic-gradient(#139951, #dbf9eb, #107e43, #71eeb0, #139951);
}

.th-ranked[data-th-rank="vip"]::after {
  background: conic-gradient(#a21caf, #f5d0fe, #f59e0b, #fde68a, #581c87, #a21caf);
}

.th-ranked[data-th-rank="diamond"] {
  box-shadow: 0 0 0 2px rgba(113, 238, 176, .35);
}

.th-ranked[data-th-rank="vip"] {
  box-shadow: 0 0 8px 1px rgba(192, 38, 211, .35);
}

html[data-motion="on"] .th-ranked:is([data-th-rank="gold"], [data-th-rank="diamond"], [data-th-rank="vip"])::after {
  animation: th-ring-turn 4s linear infinite;
}

html[data-motion="on"] .th-ranked[data-th-rank="vip"] {
  animation: th-vip-glow 2.4s ease-in-out infinite;
}

/* 8) review form: five stars instead of the number list */
label select.th-stars-select,
select.th-stars-select {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(50%);
}

.th-stars-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
}

.th-stars {
  display: inline-flex;
  gap: 2px;
}

.th-stars > button[data-v] {
  width: 40px;
  height: 40px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 4px;
  border: 0;
  border-radius: 10px;
  background: none;
  box-shadow: none;
  color: #cad8d0;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .15s ease, color .15s ease;
}

.th-stars > button[data-v] svg {
  display: block;
  width: 100%;
  height: 100%;
}

.th-stars > button[data-v].is-lit {
  color: #f59e0b;
}

.th-stars > button[data-v]:focus-visible {
  outline: 2px solid #139951;
  outline-offset: 1px;
}

html[data-motion="on"] .th-stars > button[data-v].is-lit:hover {
  transform: scale(1.15);
}

.th-stars-say {
  min-width: 7ch;
  color: var(--th-ink, #0f1a14);
  font-size: 14px;
  font-weight: 800;
}

.th-star-spark {
  position: fixed;
  z-index: 2147483000;
  width: 10px;
  height: 10px;
  background: #f59e0b;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  pointer-events: none;
}

/* 9) news article: a thin line under the header grows as you read */
.th-read-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 3;
  height: 3px;
  background: linear-gradient(90deg, #17bb80, #139951, #19cc5f);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* 13) sold-out cards: grey picture and a diagonal band on its corner */
.product-card.th-out .product-thumb {
  filter: grayscale(.75);
  opacity: .72;
}

.th-out-band {
  position: absolute;
  top: 20px;
  right: -40px;
  z-index: 3;
  width: 150px;
  padding: 5px 0;
  background: #47574e;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(35deg);
  box-shadow: 0 4px 10px rgba(15, 26, 20, .25);
  pointer-events: none;
}

/* 14) the old price strikes itself out, then the "-15%" label pops */
html[data-motion="on"] .old-price.th-strike {
  position: relative;
  text-decoration: none;
}

html[data-motion="on"] .old-price.th-strike::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 52%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0 50%;
}

html[data-motion="on"] .old-price.th-strike.is-in::after {
  animation: th-strike .45s cubic-bezier(.4, 0, .2, 1) .35s forwards;
}

html[data-motion="on"] .discount-badge.th-pop:not(.is-in) {
  opacity: 0;
  transform: scale(.4);
}

html[data-motion="on"] .discount-badge.th-pop.is-in {
  animation: th-pop-badge .5s cubic-bezier(.2, .9, .25, 1.4) .75s both;
}

/* 15) HOT label with a small flame */
.sale-tag.th-hot {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.th-flame {
  flex: 0 0 auto;
  width: 11px;
  height: 13px;
  transform-origin: 50% 100%;
}

html[data-motion="on"] .th-flame {
  animation: th-flicker .9s ease-in-out infinite alternate;
}

/* 16) greeting by the hour above the name (account menu of the header,
   phone menu); the header bar itself stays as it was */
:is(.bubu-user-panel-head, .bubu-mobile-menu__account) .th-greet {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin: 0 0 3px;
  color: var(--muted, #64776c);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.th-greet span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.th-greet-ico {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
}

html[data-motion="on"] .th-greet {
  animation: th-fade-in .5s ease both;
}

/* 18) delivery labels explain themselves */
.th-tip-on {
  cursor: help;
}

.th-tip-on:focus-visible {
  outline: 2px solid rgba(19, 153, 81, .6);
  outline-offset: 2px;
  border-radius: 6px;
}

.th-tip-ico {
  display: inline-block;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-left: 4px;
  vertical-align: -2px;
  opacity: .7;
}

.th-tip {
  position: fixed;
  z-index: 2147483002;
  width: max-content;
  max-width: min(260px, calc(100vw - 16px));
  padding: 10px 12px;
  border-radius: 12px;
  background: #0f1a14;
  color: #f8fafc;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: 0 14px 34px rgba(15, 26, 20, .28);
  pointer-events: none;
}

.th-tip::after {
  content: "";
  position: absolute;
  left: var(--th-tip-x, 50%);
  top: 100%;
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: #0f1a14;
}

.th-tip.is-below::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: #0f1a14;
}

html[data-motion="on"] .th-tip {
  animation: th-tip-in .18s ease both;
}

/* 19) order timeline in Account → Orders */
.th-tl {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 6px 0 16px;
}

.th-tl-track,
.th-tl-fill {
  position: absolute;
  top: 17px;
  left: 16.66%;
  right: 16.66%;
  height: 4px;
  border-radius: 999px;
  background: #e0e9e4;
}

.th-tl-fill {
  right: auto;
  width: 0;
  background: linear-gradient(90deg, #139951, #17bb80);
  transition: width .6s cubic-bezier(.2, .8, .2, 1);
}

.th-tl-step {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 5px;
  color: #64776c;
  font-size: 12px;
  text-align: center;
}

.th-tl-dot {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 38px;
  height: 38px;
  border: 3px solid #e0e9e4;
  border-radius: 50%;
  background: #ffffff;
  color: #64776c;
  font-weight: 800;
}

.th-tl-dot svg {
  width: 18px;
  height: 18px;
}

.th-tl-step.is-done .th-tl-dot {
  border-color: transparent;
  background: linear-gradient(135deg, #139951, #17bb80);
  color: #ffffff;
}

.th-tl-step.is-now .th-tl-dot {
  border-color: #139951;
  color: #139951;
}

html[data-motion="on"] .th-tl-step.is-now .th-tl-dot {
  animation: th-tl-ring 1.4s ease-out infinite;
}

.th-tl-step.is-bad .th-tl-dot {
  border-color: #dc2626;
  background: #fef2f2;
  color: #dc2626;
}

.th-tl-step strong {
  color: var(--th-ink, #0f1a14);
  font-size: 12.5px;
  line-height: 1.25;
}

.th-tl-step.is-wait strong {
  color: #91a79a;
}

.th-tl-step small {
  color: #64776c;
  font-size: 11.5px;
  font-weight: 700;
}

.th-tl-step.is-bad small {
  color: #dc2626;
}

.th-tl-spin {
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  border: 2.5px solid #cad8d0;
  border-top-color: #139951;
  border-radius: 50%;
}

html[data-motion="on"] .th-tl-spin {
  animation: th-spin .75s linear infinite;
}

/* 21) the "need advice?" bubble types for a moment first */
.th-ask.is-typing {
  width: auto;
  padding: 12px 16px;
}

.th-ask-typing {
  display: inline-flex;
  gap: 5px;
  padding: 4px 2px;
}

.th-ask-typing i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #91a79a;
}

html[data-motion="on"] .th-ask-typing i {
  animation: th-dot 1.1s ease-in-out infinite;
}

.th-ask-typing i:nth-child(2) {
  animation-delay: .15s;
}

.th-ask-typing i:nth-child(3) {
  animation-delay: .3s;
}

html[data-motion="on"] .th-ask:not(.is-typing) > * {
  animation: th-fade-in .3s ease both;
}

/* 22) small bubbles rising by the home banner */
.th-bubbles {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.th-bubbles i {
  position: absolute;
  bottom: -30px;
  border: 1.5px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .55), rgba(255, 255, 255, .06) 60%);
  opacity: 0;
}

html[data-motion="on"] .th-bubbles i {
  animation: th-rise 8s linear infinite;
}

.th-bubbles.is-paused i {
  animation-play-state: paused;
}

html:not([data-motion="on"]) .th-bubbles {
  display: none;
}

/* 27) password: eye button, five-step bar and the rules ticked live */
.auth-input.th-pw-box {
  position: relative;
}

.auth-input.th-pw-box input {
  padding-right: 46px;
}

.th-pw-eye {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-height: 0;
  margin-top: -18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted, #64776c);
  cursor: pointer;
}

.th-pw-eye svg {
  width: 20px;
  height: 20px;
}

.th-pw-eye .slash {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset .25s ease;
}

.th-pw-eye[aria-pressed="true"] .slash {
  stroke-dashoffset: 0;
}

.th-pw-eye:focus-visible {
  outline: 2px solid #139951;
  outline-offset: 1px;
}

.th-pw-help {
  display: grid;
  gap: 8px;
}

.th-pw-meter {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.th-pw-meter i {
  height: 6px;
  border-radius: 999px;
  background-color: #e0e9e4;
  transition: background-color .25s ease;
}

.th-pw-say {
  color: #64776c;
  font-size: 13px;
  font-weight: 800;
}

.th-pw-rules {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.th-pw-rules li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64776c;
  transition: color .2s ease;
}

.th-pw-tick {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  border: 2px solid #cad8d0;
  border-radius: 50%;
  color: transparent;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.th-pw-tick svg {
  width: 10px;
  height: 10px;
}

.th-pw-rules li.ok {
  color: #15803d;
}

.th-pw-rules li.ok .th-pw-tick {
  border-color: #16a34a;
  background-color: #16a34a;
  color: #ffffff;
}

/* 29) "Xem thêm" on the home page: new cards rise one after another */
html[data-motion="on"] .product-card.th-rise {
  animation: th-card-rise .5s cubic-bezier(.2, .8, .2, 1) var(--th-rise-delay, 0ms) both;
}

/* 36) toast: a line that runs out, the mouse holds it, a click closes it */
.th-toast {
  overflow: hidden;
}

.th-toast.is-on {
  pointer-events: auto;
  cursor: pointer;
}

.th-toast-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #17bb80, #19cc5f);
  transform-origin: 0 50%;
}

.th-toast.no-line .th-toast-line {
  display: none;
}

.th-toast-ico {
  display: none;
  flex: 0 0 auto;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #16a34a;
  color: #ffffff;
}

.th-toast.is-ok .th-toast-ico {
  display: grid;
}

.th-toast-ico svg {
  width: 13px;
  height: 13px;
}

/* --------------------------------------------------------------------------
   11d) Đợt 11: what the whole-site check found (narrow phones, the header
        at 961–1180px, long numbers in Account) + looping effects that no
        longer repaint the page every frame
   -------------------------------------------------------------------------- */

/* small phones: logo, name and bolt stay whole on one line instead of being
   cut (a bit smaller); below 340px there is no room for the small grey line */
@media (max-width: 359px) {
  .bubu-top .bubu-brand {
    gap: 6px;
  }

  .bubu-top .bubu-brand img {
    width: 34px;
    height: 34px;
  }

  html[data-skin] .bubu-top .bubu-brand-copy strong {
    font-size: 14px;
    white-space: nowrap;
  }

  html[data-skin="ocean"] .bubu-top .bubu-brand-copy strong::after {
    margin-left: 3px;
  }

  .bubu-top .bubu-brand-copy small {
    font-size: 8px;
    letter-spacing: -.02em;
    white-space: nowrap;
  }
}

@media (max-width: 339px) {
  .bubu-top .bubu-brand {
    gap: 5px;
  }

  .bubu-top .bubu-brand img {
    width: 32px;
    height: 32px;
  }

  html[data-skin] .bubu-top .bubu-brand-copy strong {
    font-size: 13.5px;
  }

  .bubu-top .bubu-brand-copy small {
    display: none;
  }
}

/* only a price that would run out of its card ("đ 10.200.000" in a narrow
   card: phones, tablets) gets just small enough to fit; every other price
   keeps its size, 19px / 17px on phones (theme.js writes each price's length
   in --th-pchars) */
.product-card .product-body {
  container-type: inline-size;
}

html[data-skin="ocean"] .product-card :is(.price-line strong, .product-actions > div > strong:not(.stock-out)) {
  font-size: min(19px, calc((100cqi - 22px) / (var(--th-pchars, 12) * .57)));
}

@media (max-width: 720px) {
  html[data-skin="ocean"] .product-card :is(.price-line strong, .product-actions > div > strong:not(.stock-out)) {
    font-size: min(17px, calc((100cqi - 22px) / (var(--th-pchars, 12) * .57)));
  }
}

/* 961–1180px: the language button kept being squeezed, its ▼ stuck out */
@media (min-width: 961px) and (max-width: 1180px) {
  .bubu-nav > .bubu-lang {
    flex-shrink: 0;
  }
}

/* Account: a long order code or amount wraps inside its box */
.account-command-metrics > div {
  min-width: 0;
}

.account-command-metrics strong {
  overflow-wrap: anywhere;
}

/* Account → rank summary: the rank pill keeps its own pill look (the rule
   for the small grey titles of that box was making it a full-width block,
   its words sitting lower than the medal) */
body.page-account .account-rank-summary-grid > div > .customer-badge {
  display: inline-flex;
  max-width: 100%;
  color: var(--badge-text);
  font-size: 12px;
  font-weight: 900;
}

/* Admin overview: a long amount shrinks to fit its card instead of breaking
   inside the number (theme.js writes its length in --th-pchars) */
.admin-overview-kpi {
  container-type: inline-size;
}

.admin-overview-kpi strong {
  font-size: min(24px, calc(100cqi / (var(--th-pchars, 13) * .6)));
  white-space: nowrap;
}

/* ticker strip: the drifting dots move as one layer (the old drift
   repainted the whole strip every frame); same dots, same look */
.bubu-ticker-shell::after {
  right: auto;
  width: calc(100% + 276px);
  background-size: 92px 100%, 138px 100%;
  animation: none;
}

html[data-motion="on"] .bubu-ticker-shell::after {
  animation: th-ticker-snow 29s linear infinite;
}

/* decorations stop while they are off screen (theme.js adds .th-paused) */
.th-paused,
.th-paused i,
html[data-motion="on"] .th-waves.th-paused :is(.back, .front) {
  animation-play-state: paused;
}

/* --------------------------------------------------------------------------
   12) Keyframes + "reduce motion" setting of the phone / computer
   -------------------------------------------------------------------------- */
@keyframes th-ripple {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

@keyframes th-sheen {
  0%, 55% { transform: translateX(0) skewX(-18deg); }
  80%, 100% { transform: translateX(422%) skewX(-18deg); }
}

@keyframes th-pulse {
  0% { opacity: 1; transform: scale(1); }
  70% { opacity: 0; transform: scale(1.23, 1.54); }
  100% { opacity: 0; transform: scale(1); }
}

@keyframes th-pulse-round {
  0% { opacity: 1; transform: scale(1); }
  70% { opacity: 0; transform: scale(1.58); }
  100% { opacity: 0; transform: scale(1); }
}

@keyframes th-live-bob {
  0%, 100% { transform: translateZ(0); }
  50% { transform: translateY(-1px); }
}

@keyframes th-live-in {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

@keyframes th-live-out {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes th-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

@keyframes th-shimmer {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}

@keyframes th-img-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes th-suggest-in {
  from { opacity: 0; transform: translateY(-6px) scale(.985); }
  to { opacity: 1; transform: none; }
}

@keyframes th-fade-in {
  from { opacity: 0; }
}

@keyframes th-fade-out {
  to { opacity: 0; }
}

@keyframes th-pop-in {
  from { opacity: 0; transform: translateY(16px) scale(.9); }
}

@keyframes th-glow {
  from { opacity: .4; transform: scale(.9); }
  to { opacity: 1; transform: scale(1.08); }
}

@keyframes th-flip-out {
  from { opacity: 1; transform: rotateY(0); }
  to { opacity: 1; transform: rotateY(90deg); }
}

@keyframes th-flip-in {
  from { transform: rotateY(-90deg) scale(.7); }
}

@keyframes th-spin {
  to { transform: rotate(360deg); }
}

@keyframes th-qr-scan {
  to { top: 82%; }
}

@keyframes th-ping {
  0% { box-shadow: 0 0 0 0 rgba(19, 153, 81, .5); }
  80%, 100% { box-shadow: 0 0 0 10px rgba(19, 153, 81, 0); }
}

@keyframes th-wave-x {
  from { transform: translateX(0); }
  to { transform: translateX(-600px); }
}

@keyframes th-bubble-in {
  from { opacity: 0; transform: translateY(10px) scale(.85); }
}

@keyframes th-paid-in {
  from { opacity: 0; transform: translateY(-12px) scale(.97); }
}

@keyframes th-twinkle {
  0%, 100% { opacity: .15; scale: .5; }
  50% { opacity: 1; scale: 1.15; }
}

@keyframes th-soon-in {
  from { opacity: 0; transform: translateY(4px) scale(.9); }
}

@keyframes th-check-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes th-key-flash {
  from { background-position: -150% 0; }
  to { background-position: 250% 0; }
}

@keyframes th-page-out {
  to { opacity: 0; transform: translateY(-8px); }
}

@keyframes th-page-in {
  from { opacity: 0; transform: translateY(12px); }
}

@keyframes th-bob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-6px) rotate(6deg); }
}

@keyframes th-wave-drift {
  from { transform: translateX(-20px); }
  to { transform: translateX(20px); }
}

@keyframes th-zap {
  0%, 82%, 100% { transform: scale(1) rotate(0); filter: none; }
  86% { transform: scale(1.25) rotate(-10deg); filter: drop-shadow(0 0 6px rgba(19, 153, 81, .7)); }
  90% { transform: scale(.95) rotate(6deg); }
  94% { transform: scale(1.12) rotate(-4deg); filter: drop-shadow(0 0 4px rgba(19, 153, 81, .5)); }
}

/* the last 18% of th-zap (82% → 100%), stretched over its own 0.81 s */
@keyframes th-zap-once {
  0%, 100% { transform: scale(1) rotate(0); filter: none; }
  22% { transform: scale(1.25) rotate(-10deg); filter: drop-shadow(0 0 6px rgba(19, 153, 81, .7)); }
  44% { transform: scale(.95) rotate(6deg); }
  67% { transform: scale(1.12) rotate(-4deg); filter: drop-shadow(0 0 4px rgba(19, 153, 81, .5)); }
}

@keyframes th-ring-turn {
  to { transform: rotate(360deg); }
}

@keyframes th-vip-glow {
  0%, 100% { box-shadow: 0 0 6px 0 rgba(192, 38, 211, .25); }
  50% { box-shadow: 0 0 14px 3px rgba(192, 38, 211, .55); }
}

@keyframes th-strike {
  to { transform: scaleX(1); }
}

@keyframes th-pop-badge {
  0% { opacity: 0; transform: scale(.4); }
  70% { opacity: 1; transform: scale(1.18); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes th-flicker {
  0% { transform: scale(1, 1) skewX(0); }
  50% { transform: scale(.92, 1.08) skewX(-4deg); }
  100% { transform: scale(1.04, .94) skewX(3deg); }
}

@keyframes th-tip-in {
  from { opacity: 0; transform: translateY(4px); }
}

@keyframes th-tl-ring {
  0% { box-shadow: 0 0 0 0 rgba(19, 153, 81, .5); }
  80%, 100% { box-shadow: 0 0 0 9px rgba(19, 153, 81, 0); }
}

@keyframes th-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: .45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

@keyframes th-rise {
  0% { transform: translate(0, 0); opacity: 0; }
  12% { opacity: 1; }
  50% { transform: translate(var(--th-sway, 10px), -120px); }
  100% { transform: translate(0, -250px); opacity: 0; }
}

@keyframes th-card-rise {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
}

@keyframes th-ticker-snow {
  from { transform: translateX(-276px); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  html[data-motion] *,
  html[data-motion] *::before,
  html[data-motion] *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
