/* theme munchie - CSS bo sung cua theme (khoi nen tang khong co trong mau). CSS cua mau: theme-base.css (giu nguyen). */

/* header: logo slot h1/div, keyword links, language box, cart link */
.shop-header__logo { margin: 0; font-size: inherit; line-height: 1; }
.wordmark__text { font-family: "Baloo 2", "Nunito", sans-serif; font-size: 34px; font-weight: 700; color: var(--orange-ink); line-height: 1; }
.wordmark:hover { text-decoration: none; }
.top-strip a:hover { color: var(--white); }
a.shop-header__action--cart { color: var(--text); }
.shop-header__actions .language-select .btn { min-height: 42px; border-color: var(--line); color: var(--text); background: var(--white); }
.language-select .dropdown-item { display: flex; align-items: center; gap: 6px; }
.language-select .flag-icon { width: 20px; height: auto; }
.store-nav__link, .store-nav__link:hover { text-decoration: none; }
@media (max-width: 575.98px) {
  .shop-header__actions .language-select { display: none; }
  .wordmark__text { font-size: 26px; }
}

/* platform alert of cart.add() (common.js) shown above the page -> floating toast like .shop-notice */
body > .container > .alert-success { position: fixed; z-index: 12; right: 16px; bottom: 16px; max-width: min(360px, calc(100% - 32px)); margin: 0; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); background: var(--white); color: var(--text); font-weight: 700; }

/* breadcrumb + pagination */
.page-breadcrumb .breadcrumb { margin: 0 0 12px; padding: 0; background: none; font-size: 14px; }
.page-breadcrumb .breadcrumb-item a { color: var(--orange-ink); font-weight: 700; }
.page-breadcrumb .breadcrumb-item.active { color: var(--muted); }
.route-pagination { margin-top: 20px; }
.route-pagination ul.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0; margin: 0; list-style: none; }
.route-pagination ul.pagination li > a, .route-pagination ul.pagination li > span { min-width: 38px; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--orange-ink); font-weight: 700; text-decoration: none; }
.route-pagination ul.pagination li > a:hover { border-color: var(--orange-ink); }
.route-pagination ul.pagination li.active > span { background: var(--orange-ink); border-color: var(--orange-ink); color: var(--white); }

/* product list (category, search, special, all) */
.catalog-page { padding-block: 24px 6px; }
.catalog-page__head { row-gap: 8px; }
.catalog-page__count { margin: 4px 0 0; color: var(--muted); }
.catalog-page__sort select { min-height: 40px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--text); font-weight: 700; }
.catalog-page__tabs { margin: 14px 0 6px; }
.catalog-page__tabs .store-tabs__button { color: var(--text); text-decoration: none; }
.catalog-page__tabs .store-tabs__button:hover { border-color: var(--orange); }
.catalog-page__list { padding-top: 20px; }
.catalog-page__side { margin-bottom: 15px; }
.catalog-page__empty { padding: 24px; text-align: center; color: var(--muted); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.product-card__name a { color: var(--text); }
.product-card__name a:hover { color: var(--orange-ink); text-decoration: none; }
a.product-card__image { display: block; }
.product-card__actions a.store-button { text-decoration: none; }

/* filter module of the kit (catalog-filter) */
.catalog-filter { padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.catalog-filter h2, .catalog-filter h3 { font-size: 20px; font-weight: 700; }
.catalog-filter__group + .catalog-filter__group { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.catalog-filter .custom-control-input:checked ~ .custom-control-label::before { background: var(--orange-ink); border-color: var(--orange-ink); }
.catalog-filter .btn-text { padding: 0; background: none; border: 0; color: var(--orange-ink); font-weight: 700; }

/* product page */
.product-page { padding-block: 24px 10px; }
.product-page__main { row-gap: 18px; }
.product-page__image { position: relative; border: 1px solid var(--line); aspect-ratio: 1; }
.product-page__image img { width: 100%; height: 100%; object-fit: cover; }
.product-page__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.product-page__thumbs button { padding: 0; width: 72px; height: 72px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.product-page__thumbs button[aria-current="true"] { border-color: var(--orange-ink); }
.product-page__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-page__title { margin-bottom: 10px; }
.product-page__prices .product-card__price { font-size: 30px; }
.product-page__prices .product-card__price--old { font-size: 17px; }
.product-page__short { margin-bottom: 12px; }
.product-page__options { margin-bottom: 10px; }
.product-page__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 18px; }
.product-page__buy .store-button { min-height: 44px; padding-inline: 18px; }
.product-page__qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.product-page__qty button { width: 40px; border: 0; background: var(--surface); color: var(--orange-ink); font-weight: 700; font-size: 18px; }
.product-page__qty input { width: 52px; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.product-page__qty input::-webkit-outer-spin-button, .product-page__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.product-page__promises { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.product-page__promise-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.product-page__promises .store-promises__item { flex-direction: column; align-items: flex-start; gap: 8px; }
.product-page__promises i, .product-page__promises .icon-image { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: var(--surface); color: var(--orange-ink); font-size: 18px; }
.product-page__note { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.product-page__note a { font-weight: 700; color: var(--orange-ink); }
.product-page__promises p { margin: 0; color: var(--muted); font-size: 14px; }
.product-page__desc { margin-top: 28px; }
.product-page__related { margin-top: 14px; background: var(--surface); }

/* news + content pages */
.news-page__related { margin-top: 30px; }
.route-prose img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* contact form card (platform form, the sample has none) */
.contact-input { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--text); }
.contact-input:focus { outline: 2px solid var(--orange); outline-offset: 0; }
textarea.contact-input { display: block; }
.contact-error { margin: 4px 0 0; color: var(--error); font-size: 14px; }
.contact-card--form a { text-decoration: none; }

/* ---------- UX review r1 (2026-11-25): one heading style, product column layout, cart in theme style, 44px touch targets ---------- */
/* headings: every block = left, sentence case, 25px (flash keeps its red), e.g. "Top san pham ban chay" no longer centered */
.flash-sale .section-title { font-size: 25px; }
.bestsellers .store-tabs--catalog { justify-content: flex-start; }
/* product page: gallery sticks while the right column (buy box + promises + description) scrolls */
.product-page__desc { margin-top: 22px; }
.product-page__desc .route-prose { margin-top: 10px; }
@media (min-width: 992px) { .product-page__gallery { position: sticky; top: 16px; } }
/* article body: 17px / 1.7 for long reading */
.news-page .route-prose { font-size: 17px; line-height: 1.7; }
/* cart (default checkout/cart view): breadcrumb, heading, buttons, qty in the theme language */
#layout-cart .bread_crumb { padding: 16px 0 0 !important; }
#layout-cart .breadcrumb { margin: 0; padding: 0; background: none; font-size: 14px; }
#layout-cart .breadcrumb a { color: var(--orange-ink); font-weight: 700; text-decoration: none; }
#layout-cart .breadcrumb li:last-child strong { color: var(--muted); font-weight: 400; }
#layout-cart .breadcrumb .fa-home { display: none; }
#layout-cart .heading-page { margin: 8px 0 20px; text-align: left; }
#layout-cart .heading-page:after { display: none; }
#layout-cart .heading-page h1 { margin: 0; font-size: clamp(25px, 3vw, 38px); font-weight: 700; color: var(--orange-ink); text-transform: none; }
#layout-cart .count-cart { margin: 4px 0 0; color: var(--muted); }
#layout-cart .sidebox-order { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
#layout-cart .sidebox-order_title h3 { font-size: 22px; color: var(--text); }
#layout-cart .sidebox-order_total .total-price { color: var(--red); }
#layout-cart .button.dark { display: flex; align-items: center; justify-content: center; min-height: 46px; border: 0; border-radius: var(--radius-sm); background: var(--orange-ink); color: var(--white); font-weight: 700; text-transform: none; letter-spacing: 0; }
#layout-cart .button.dark:hover { color: var(--white); filter: brightness(.92); }
#layout-cart .btncart-checkout:before { display: none; }
#layout-cart .bread_crumb .row > [class*="col"] { padding-inline: 15px; }
#layout-cart .link-continue a { color: var(--orange-ink); font-weight: 700; }
#layout-cart .table-cart h3 a { color: var(--text); }
#layout-cart .qty-click { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
#layout-cart .qty-click button.qty-btn, #layout-cart .qty-click input.item-quantity { float: none; height: 40px; border: 0; background: var(--white); color: var(--orange-ink); font-size: 16px; font-weight: 700; }
#layout-cart .qty-click button.qty-btn { width: 40px; background: var(--surface); }
#layout-cart .qty-click input.item-quantity { width: 46px; color: var(--text); }
#layout-cart .cart-empty { color: var(--muted); }
/* touch targets >= 44px on phones (WCAG 2.5.5 / Apple HIG) */
@media (max-width: 767.98px) {
  .shop-header__icon, .shop-header__action--cart { min-width: 44px; min-height: 44px; }
  .store-slider__dot, .store-slider__play { width: 44px; height: 44px; }
  .home-collection__head .store-button, .voucher-card__action .store-button, .mini-cart__line button { min-height: 44px; }
  .mini-cart__line button { min-width: 44px; }
  .store-tabs__button, .store-button { min-height: 44px; }
  .product-card__actions .store-button { min-height: 44px; min-width: 44px; }
  .product-page__qty button { width: 44px; min-height: 44px; }
  .product-page__qty input { min-height: 44px; }
  .shop-footer__social-icon { width: 44px; height: 44px; }
  .shop-footer__grid > div > a { padding-block: 8px; margin-bottom: 0; }
  #layout-cart .qty-click button.qty-btn, #layout-cart .qty-click input.item-quantity { height: 44px; }
  .catalog-filter summary { padding-block: 10px; }
  .catalog-filter .btn { min-height: 44px; }
  .route-pagination ul.pagination li > a, .route-pagination ul.pagination li > span { min-width: 44px; min-height: 44px; }
}

/* ---------- UX review r2 (2026-11-26, rules of ui-ux-pro-max quick-reference) ---------- */
/* skip-links: first Tab stop jumps over header + menu to <main id="noi-dung"> */
.skip-link { position: absolute; z-index: 1001; top: 8px; left: 8px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--text); color: var(--white); font-weight: 700; transform: translateY(-160%); }
.skip-link:focus, .skip-link:focus-visible { transform: none; color: var(--white); text-decoration: none; outline: 2px solid var(--orange); outline-offset: 2px; }
main:focus { outline: none; }
/* focus-states: same visible ring on every control (base rule only covered button/a/input) */
select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:not([tabindex="-1"]):focus-visible, .form-control--customize:focus { outline: 2px solid var(--text); outline-offset: 2px; box-shadow: none; }
/* account pages: default login_v2.css (loaded later) resets outline with .account-box-shadow input[type] -> win by specificity */
.account-box-shadow .form-control--customize:focus, .account-box-shadow .btn-register-login:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
/* cursor-pointer on clickable labels / custom checkboxes */
label[for], .custom-control-label, summary, select { cursor: pointer; }
/* number-tabular: prices + counts keep their width when values change */
.product-card__price, .product-card__price--old, .mini-cart__total, #layout-cart .total-price, .shop-header__action--cart b { font-variant-numeric: tabular-nums; }
/* heading-line-balance: short headings wrap evenly */
h1, h2, h3, .section-title { text-wrap: balance; }
/* line-length: long copy capped near 70 characters */
.news-page__lead { max-width: 70ch; }
/* password-toggle (login/register, button added by theme.js) */
.mc-pass { position: relative; display: block; }
.mc-pass input { padding-right: 48px; }
.mc-pass__toggle { position: absolute; top: 50%; right: 2px; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--muted); }
.mc-pass__toggle:hover { color: var(--orange-ink); }
@media (max-width: 767.98px) {
  /* touch-friendly-input: controls >= 44px; 16px text stops iOS zoom on focus */
  .catalog-page__sort select, .contact-input:not(textarea), .mini-cart__voucher input { min-height: 44px; }
  input, select, textarea { font-size: 16px; }
}
@media (max-width: 575.98px) {
  /* touch-spacing: >= 8px between the menu button and the logo link */
  .shop-header__brand { gap: 8px; }
}

/* ---------- round ST (RULES 14-18): separators by CSS, icon image, product page strip / buy row / tabs ---------- */
.meta-parts { display: flex; flex-wrap: wrap; align-items: baseline; margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.meta-parts span + span::before { content: "\00B7"; margin: 0 8px; }
.label-colon::after { content: ":"; }
.icon-image { display: inline-block; width: 26px; height: 26px; object-fit: contain; flex: 0 0 26px; }
.hero__slider { min-width: 0; }
.product-page__strip { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.product-page__strip .product-page__thumbs { flex: 1 1 auto; flex-wrap: nowrap; margin-top: 0; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; padding-bottom: 2px; }
.product-page__strip .product-page__thumbs button { flex: 0 0 72px; scroll-snap-align: start; }
.product-page__arrow { flex: 0 0 36px; width: 36px; height: 72px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--orange-ink); }
.product-page__arrow:hover { border-color: var(--orange-ink); }
.product-page__buy { display: block; }
.product-page__buy-row { display: flex; align-items: stretch; gap: 10px; margin-bottom: 10px; }
.product-page__add { flex: 1 1 auto; }
.product-page__now { width: 100%; }
.product-page__qty button i { font-size: 13px; }
.product-page__detail { margin-top: 28px; }
.product-page__tabs { margin-bottom: 14px; }
.product-page__tabs .store-tabs__button[aria-selected="true"] { color: var(--text); background: var(--orange); border-color: var(--orange); }
.product-page__spec { width: 100%; max-width: 70ch; border-collapse: collapse; }
.product-page__spec th, .product-page__spec td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.product-page__spec th { width: 38%; font-weight: 700; }
.route-prose h2, .route-prose h3 { margin: 1.2em 0 .5em; font-weight: 700; }
.route-prose ul, .route-prose ol { padding-left: 1.3em; }
.route-prose li + li { margin-top: 4px; }
.route-prose table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.route-prose th, .route-prose td { padding: 8px 10px; border: 1px solid var(--line); }
.shop-footer__social-icon img { width: 24px; height: 24px; }
@media (max-width: 767.98px) {
  .product-page__arrow { display: none; }
  .product-page__add, .product-page__now { min-height: 44px; }
}

/* product main image (KT-4): tap = zoom in a full screen layer, tap again / Esc = close */
.product-page__image img[data-zoom] { cursor: zoom-in; }
.product-page__image--zoom { position: fixed; inset: 0; z-index: 1050; display: grid; place-items: center; aspect-ratio: auto; border: 0; border-radius: 0; background: rgba(0, 0, 0, .85); }
.product-page__image--zoom img[data-zoom] { width: auto; height: auto; max-width: 96vw; max-height: 92vh; object-fit: contain; cursor: zoom-out; }
.product-page__image--zoom .product-card__discount { display: none; }
@media (max-width: 575.98px) {
  .product-page__promise-list { grid-template-columns: 1fr; }
  .product-page__promises .store-promises__item { flex-direction: row; align-items: center; }
}
