/* Music KeyBanQuyen - ghi de WordPress/WooCommerce (tren CSS goc Blogger).
 * CSS goc (assets/css/hd4pro-base.css) da dinh nghia toan bo class cua
 * template (hero, promo, news, product-grid 4 cot, showroom, footer...).
 * File nay chi them phan WordPress can: reset ul.products cua WooCommerce,
 * nut bam, live search, cart drawer, back-to-top, responsive bo sung. */
:root { --font-luxury: 'Cinzel', 'Playfair Display', serif; --font-body: 'Nunito', sans-serif; }
body { font-family: var(--font-body); background: var(--bg-body, #f8f7f4); color: var(--text-main, #181c24); }
body.admin-bar .main-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .main-header { top: 46px; } }
.main-content { padding: 0 0 40px; }

/* Header: o tim kiem can position relative cho dropdown live search */
.header-search { position: relative; }
.search-form { display: flex; position: relative; }
.search-form .search-input { flex: 1; min-width: 0; }
.nav-toggle { display: none; background: none; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 20px; padding: 6px 12px; cursor: pointer; }

/* Live search */
.live-search-dropdown { position: absolute; top: 46px; left: 0; right: 0; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; box-shadow: 0 12px 32px rgba(0,0,0,.15); z-index: 60; overflow: hidden; }
.live-search-item { display: flex; gap: 10px; align-items: center; padding: 8px 12px; text-decoration: none; color: #181c24; }
.live-search-item:hover { background: #fefbf3; }
.live-search-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.live-search-item .ls-price { color: #c59b27; font-weight: 800; font-size: 13px; }

/* WooCommerce loop: reset ul mac dinh, dung grid cua template */
ul.products, ul.products.product-grid { list-style: none; margin: 0; padding: 0; }
ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }
ul.products.product-grid::before, ul.products.product-grid::after { display: none; }
li.product-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
li.product-card .product-thumb { display: block; position: relative; aspect-ratio: 1; overflow: hidden; background: #f8fafc; }
li.product-card .product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
li.product-card .product-info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
li.product-card .product-title { font-size: 14.5px; font-weight: 700; margin: 0; line-height: 1.4; }
li.product-card .product-title a { color: #11141e; text-decoration: none; }
li.product-card .product-specs { font-size: 12.5px; color: #64748b; }
li.product-card .product-rating { font-size: 13px; color: #c59b27; min-height: 18px; }
li.product-card .product-rating .star-rating { color: #c59b27; }
.product-price-box .woocommerce-Price-amount, .prod-price-now .woocommerce-Price-amount { color: #c59b27; font-weight: 800; font-size: 17px; }
.product-actions { display: flex; gap: 8px; margin-top: auto; }
.product-actions .button { flex: 1; text-align: center; padding: 9px 6px; font-size: 12.5px; border-radius: 8px; }
.product-actions .btn-buy-now { background: #c59b27; color: #fff; font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.product-actions .btn-add-cart { flex: 0 0 40px; background: #fef9ee; color: #c59b27; border: 1.5px solid #c59b27; font-size: 16px; }
.msk-sale-badge { position: absolute; top: 10px; left: 10px; background: #b91c1c; color: #fff; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
.msk-no-price { color: #64748b; font-weight: 700; }

/* WooCommerce buttons */
.woocommerce .button, .woocommerce button.button, .woocommerce a.button { background: #c59b27; color: #fff; border-radius: 8px; font-weight: 700; }
.woocommerce .button:hover, .woocommerce button.button:hover, .woocommerce a.button:hover { background: #b38728; color: #fff; }
.woocommerce a.button.msk-view-btn { background: #fff; color: #11141e; border: 1px solid #e2e8f0; }
.woocommerce a.button.msk-view-btn:hover { border-color: #c59b27; color: #c59b27; }
.woocommerce span.onsale { background: #b91c1c; }
.woocommerce .price, .woocommerce .price .woocommerce-Price-amount { color: #c59b27; font-weight: 800; }
.woocommerce .price del { color: #94a3b8; }
.woocommerce .price del .woocommerce-Price-amount { color: #94a3b8; font-weight: 600; }

/* Single product */
.product-detail-top { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 16px; }
.product-buy-box .product-detail-title { font-size: 24px; }
.product-price-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px 18px; }
.product-price-card .price { font-size: 24px; margin: 0; }
.product-buy-actions .cart { display: flex; gap: 10px; align-items: center; margin: 14px 0; }
.product-buy-actions .single_add_to_cart_button { height: 42px; padding: 0 22px; font-size: 15px; }
.msk-commit-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; border-top: 1px solid #f1f5f9; padding-top: 14px; }
.commit-item { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; }
.commit-icon { color: #c59b27; font-size: 16px; }
.commit-text strong { display: block; color: #0f172a; }
.commit-text span { color: #64748b; }
.product-detail-tabs { margin-top: 28px; }
.woocommerce-tabs .tabs { border-bottom: 2px solid #c59b27; }
.woocommerce-tabs ul.tabs li.active { background: #fefbf3; }
.msk-mota { background: #fefbf3; border: 1px solid #f3e5ab; border-radius: 10px; padding: 14px 18px; margin: 14px 0; }
.msk-vietqr-box { background: #fefbf3; border: 1px solid #f3e5ab; border-radius: 12px; padding: 18px; margin: 18px 0; text-align: center; }

/* Shop head + pills */
.shop-page-head { margin: 8px 0 16px; }
.shop-page-head h1 { font-size: 26px; font-family: var(--font-luxury); margin: 0 0 6px; }
.msk-filter-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.msk-pill { display: inline-block; padding: 8px 16px; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; color: #11141e; font-size: 13px; font-weight: 700; text-decoration: none; }
.msk-pill.active, .msk-pill:hover { background: #c59b27; border-color: #c59b27; color: #fff; }

/* News layout 2/3 + 1/3 (bo sung cho class cua template) */
.news-page-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; margin-top: 8px; }
.news-page-header { border-bottom: 2px solid #c59b27; padding-bottom: 12px; margin-bottom: 18px; }
.news-page-title { font-size: 24px; font-weight: 800; font-family: var(--font-luxury); margin: 0; }
.post-body { font-size: 15px; line-height: 1.8; }
.post-body img { max-width: 100%; height: auto; }
.post-featured-img img { width: 100%; height: auto; border-radius: 12px; margin: 12px 0; }
.blog-pager { margin-top: 24px; text-align: center; }
.blog-pager .nav-links { display: inline-flex; gap: 6px; }
.blog-pager a, .blog-pager span { display: inline-block; padding: 8px 14px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; color: #11141e; text-decoration: none; font-weight: 700; }
.blog-pager .current { background: #c59b27; border-color: #c59b27; color: #fff; }

/* Sidebar */
.sidebar-widget { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 18px; overflow: hidden; }
.sidebar-widget-header { background: #11141e; padding: 12px 16px; }
.sidebar-widget-header h3 { margin: 0; color: #fff; font-size: 15px; font-weight: 800; }
.sidebar-widget-body { padding: 12px 14px; }
.msk-cat-list { list-style: none; margin: 0; padding: 0; }
.msk-cat-list li { border-bottom: 1px solid #f1f5f9; }
.msk-cat-list li:last-child { border-bottom: none; }
.msk-cat-list a { display: flex; justify-content: space-between; padding: 9px 2px; color: #11141e; text-decoration: none; font-weight: 600; font-size: 13.5px; }
.msk-cat-list a:hover { color: #c59b27; }
.cat-count { color: #94a3b8; }
.sidebar-product-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; text-decoration: none; color: #181c24; }
.sidebar-product-item:last-child { border-bottom: none; }
.sidebar-prod-thumb { width: 64px; height: 64px; flex-shrink: 0; border-radius: 8px; overflow: hidden; }
.sidebar-prod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-prod-title { font-size: 13px; font-weight: 700; line-height: 1.35; }
.sidebar-prod-specs { font-size: 11.5px; color: #64748b; }
.sidebar-prod-price .woocommerce-Price-amount { font-size: 13.5px; }
.sidebar-news-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; text-decoration: none; color: #181c24; }
.sidebar-news-item:last-child { border-bottom: none; }
.sidebar-news-thumb { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; }
.sidebar-news-title { font-size: 13px; font-weight: 700; line-height: 1.35; }
.sidebar-news-date { font-size: 11.5px; color: #64748b; }

/* Footer (bo sung) */
.footer { margin-top: 40px; }
.footer h4 { color: #fff; }
.footer a { color: #cbd5e1; text-decoration: none; }
.footer a:hover { color: #c59b27; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { padding: 5px 0; font-size: 13px; }
.footer-hotline { color: #c59b27; font-weight: 800; font-size: 16px; margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; text-align: center; font-size: 12.5px; color: #94a3b8; }

/* Cart drawer */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 90; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 92vw); background: #fff; z-index: 95; box-shadow: -8px 0 32px rgba(0,0,0,.2); transition: transform .3s ease; display: flex; flex-direction: column; }
.cart-drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #e2e8f0; }
.cart-drawer-header h3 { margin: 0; font-size: 17px; }
.close-cart-btn { background: none; border: none; font-size: 26px; cursor: pointer; }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 12px 20px; }
.cart-drawer-footer { padding: 16px 20px; border-top: 1px solid #e2e8f0; display: flex; gap: 10px; }
.cart-drawer-footer .button { flex: 1; text-align: center; }
.msk-btn-checkout { background: #b91c1c !important; }

/* Misc */
.msk-breadcrumb { font-size: 13px; color: #64748b; padding: 14px 0 0; }
.msk-breadcrumb a { color: #64748b; text-decoration: none; }
.msk-breadcrumb a:hover { color: #c59b27; }
.msk-back-top { position: fixed; right: 18px; bottom: 18px; z-index: 80; width: 44px; height: 44px; border-radius: 50%; border: none; background: #c59b27; color: #fff; font-size: 20px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.woocommerce-page-wrap { padding: 16px 0 32px; }
.woocommerce-message, .woocommerce-info { border-top-color: #c59b27; }
.woocommerce-message::before, .woocommerce-info::before { color: #c59b27; }

/* Hero slider: base CSS dung opacity/visibility + position absolute
 * cho .slide-item (khong dung display:none de khong pha hieu ung mo). */

/* Responsive bo sung */
@media (max-width: 1024px) {
  .news-page-layout { grid-template-columns: 1fr; }
  .product-detail-top { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav .nav-menu { flex-direction: column; }
  .main-nav .nav-menu .sub-menu { position: static; box-shadow: none; background: #1e2230; }
  .main-nav .nav-menu .sub-menu a { color: #fff; }
}

/* ==========================================================================
 * v1.0.1 — Trang chi tiet san pham giong template Blogger
 * ========================================================================== */

/* Gallery: khung de gan huy hieu + an flash sale mac dinh cua WooCommerce
 * (huy hieu -% / TRA GOP / CHINH HANG cua theme thay the no). */
.product-gallery-wrap { position: relative; }
.product-gallery-wrap .woocommerce-product-gallery { margin-bottom: 0; }
.product-gallery-wrap .onsale { display: none !important; }
.product-gallery .woocommerce-product-gallery__wrapper { margin: 0; }

/* Ma SP trong dong meta (theo template) */
.product-sku-tag { background: #f1f5f9; color: #475569; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 6px; }
.product-sku-tag strong { color: #0f172a; margin-left: 4px; }

/* Ma giam gia (coupon): template khong co CSS cho chip con, them moi */
.coupons-box-title { font-size: 13px; font-weight: 800; color: #92400e; margin-bottom: 8px; }
.coupons-list { display: flex; flex-wrap: wrap; gap: 8px; }
.coupon-chip { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px dashed #c59b27; border-radius: 8px; padding: 7px 12px; cursor: pointer; transition: all .2s; }
.coupon-chip:hover { background: #fefbf3; border-style: solid; }
.coupon-chip.copied { border-style: solid; border-color: #16a34a; background: #f0fdf4; }
.coupon-code { font-weight: 900; color: #b91c1c; font-size: 13px; letter-spacing: .5px; }
.coupon-desc { font-size: 12px; color: #475569; font-weight: 600; }
.coupon-copy-hint { font-size: 11px; color: #c59b27; font-weight: 700; margin-left: auto; }

/* Nut MUA NGAY / TRA GOP: chu trong nut xuong dong nhu template */
.btn-buy-instant .btn-main-txt, .btn-installment-instant .btn-main-txt { display: block; font-weight: 800; font-size: 14px; }
.btn-buy-instant .btn-sub-txt, .btn-installment-instant .btn-sub-txt { display: block; font-size: 11.5px; opacity: .85; margin-top: 2px; }
.product-secondary-actions .product-buy-actions .cart { margin: 0; }
.product-secondary-actions .single_add_to_cart_button { background: #fff !important; color: #0f172a !important; border: 1.5px solid #e2e8f0; flex: 1; height: 42px; }
.product-secondary-actions .single_add_to_cart_button:hover { border-color: #c59b27; color: #c59b27 !important; }

/* Sidebar san pham: header co link "Xem them" */
.sp-widget-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sp-widget-header h3 { display: flex; align-items: center; gap: 6px; }
.sp-more-link { font-size: 11.5px; color: #c59b27; text-decoration: none; font-weight: 700; white-space: nowrap; }
.sp-more-link:hover { text-decoration: underline; }
.sp-commit-row { display: flex; align-items: flex-start; gap: 8px; padding: 5px 0; }
.sp-commit-check { color: #c59b27; font-size: 14px; font-weight: 800; flex-shrink: 0; }
.sp-hotline-box { margin-top: 8px; padding: 12px; background: #fefbf3; border-radius: 8px; border: 1px solid #f3e5ab; text-align: center; }
.sp-hotline-title { font-size: 11px; color: #854d0e; font-weight: 700; }
.sp-hotline-number { font-size: 16px; font-weight: 900; color: #c59b27; text-decoration: none; display: block; margin-top: 2px; }
.sp-hotline-hours { font-size: 10.5px; color: #64748b; margin-top: 2px; }

/* Tabs WooCommerce tao dang kieu Blogger (the trang trang, nav xam) */
.product-detail-tabs .woocommerce-tabs { background: #fff; border-radius: 14px; border: 1px solid #e2e8f0; box-shadow: 0 2px 10px rgba(0,0,0,.03); overflow: hidden; margin-bottom: 24px; }
.product-detail-tabs .woocommerce-tabs ul.tabs { display: flex; border-bottom: 2px solid #f1f5f9; background: #f8fafc; overflow-x: auto; margin: 0; padding: 0; list-style: none; }
.product-detail-tabs .woocommerce-tabs ul.tabs::before, .product-detail-tabs .woocommerce-tabs ul.tabs::after { display: none; }
.product-detail-tabs .woocommerce-tabs ul.tabs li { background: transparent; border: none; border-radius: 0; margin: 0; padding: 0; }
.product-detail-tabs .woocommerce-tabs ul.tabs li::before, .product-detail-tabs .woocommerce-tabs ul.tabs li::after { display: none; }
.product-detail-tabs .woocommerce-tabs ul.tabs li a { display: block; padding: 14px 20px; font-size: 13.5px; font-weight: 700; color: #64748b; border: none; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; text-decoration: none; box-shadow: none; }
.product-detail-tabs .woocommerce-tabs ul.tabs li a:hover { color: #c59b27; }
.product-detail-tabs .woocommerce-tabs ul.tabs li.active { background: #fff; }
.product-detail-tabs .woocommerce-tabs ul.tabs li.active a { color: #c59b27; border-bottom-color: #c59b27; }
.product-detail-tabs .woocommerce-Tabs-panel { padding: 24px; margin: 0 !important; }
.product-detail-tabs .woocommerce-Tabs-panel > h2:first-child { margin-top: 0; }

/* Related products: luoi 4 cot (WooCommerce mac dinh bi vo do reset width) */
.related.products { margin-top: 8px; }
.related.products > h2 { font-size: 20px; font-weight: 800; margin: 0 0 16px; font-family: var(--font-luxury); }
.related.products ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.related.products ul.products::before, .related.products ul.products::after { display: none; }
.related.products ul.products li.product { width: auto !important; margin: 0 !important; }

/* Modal tra gop 0% */
.msk-install-modal { display: none; position: fixed; inset: 0; z-index: 120; align-items: center; justify-content: center; padding: 16px; }
.msk-install-modal.open { display: flex; }
.msk-install-overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, .6); }
.msk-install-box { position: relative; background: #fff; border-radius: 14px; max-width: 460px; width: 100%; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.msk-install-close { position: absolute; top: 10px; right: 14px; background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer; color: #64748b; }
.msk-install-box h3 { margin: 0 0 10px; font-size: 18px; }
.msk-install-price { font-size: 14px; color: #475569; }
.msk-install-price strong { color: #e11d48; font-size: 18px; }
.msk-install-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.msk-install-plan { border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 12px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.msk-install-plan span { font-size: 12.5px; color: #64748b; }
.msk-install-plan strong { font-size: 17px; color: #0f172a; }
.msk-install-note { font-size: 12.5px; color: #64748b; margin: 0; }

/* Responsive bo sung v1.0.1 */
@media (max-width: 1100px) {
  .related.products ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .related.products ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-secondary-actions { grid-template-columns: 1fr; }
  .product-detail-tabs .woocommerce-Tabs-panel { padding: 16px; }
}

/* ==========================================================================
 * v1.0.2 — Cung hoa trang chi tiet khi template mac dinh cua WooCommerce
 * bi dung (nut tim, flash Sale!, gallery tran, mo ta ngan tho).
 * Cac quy tac nay chi tac dong trang san pham (body.single-product).
 * ========================================================================== */

/* Nut "Them vao gio" mac dinh: WooCommerce dat mau tim (rule .button.alt
 * co do uu tien cao hon rule nut chung cua theme) — ep ve vang gold HD4Pro.
 * v1.0.8: bo to tien .woocommerce — class nay nam tren chinh the <body>
 * (body.single-product .woocommerce khong bao gio trung vi khong co element
 * con nao mang class .woocommerce) nen rule cu la dead code. */
body.single-product div.product form.cart .button.single_add_to_cart_button,
body.single-product div.product form.cart button.single_add_to_cart_button {
  background: #c59b27 !important;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  height: 44px;
  padding: 0 24px;
  font-size: 15px;
}
body.single-product div.product form.cart .button.single_add_to_cart_button:hover,
body.single-product div.product form.cart button.single_add_to_cart_button:hover {
  background: #b38728 !important;
  color: #fff !important;
}

/* An flash sale mac dinh "Sale!" cua WooCommerce tren trang chi tiet
 * (theme da co huy hieu -% / TRA GOP / CHINH HANG rieng). */
body.single-product span.onsale { display: none !important; }

/* Khong che gallery mac dinh: khong de anh chiem ca trang, anh luon vua khung. */
body.single-product .woocommerce-product-gallery { max-width: 100%; }
body.single-product .woocommerce-product-gallery__wrapper { margin: 0; }
body.single-product .woocommerce-product-gallery__image img { width: 100%; height: auto; display: block; }
body.single-product div.product div.images { margin-bottom: 16px; }
body.single-product div.product div.images img { max-width: 100%; height: auto; }

/* Mo ta ngan (phong khi filter khong chan duoc): chu nho gon, khong de tho. */
.woocommerce-product-details__short-description { font-size: 14px; line-height: 1.7; color: #475569; }
.woocommerce-product-details__short-description p { margin: 0 0 10px; }

/* ==========================================================================
 * v1.0.3 — Gallery tu dung: anh chinh + dai thumbnail duoi anh (theo template goc).
 * CSS khung (.product-gallery-main, .product-gallery-thumbs, .gallery-thumb-item
 * + trang thai .active/hover vien vang) da co san trong hd4pro-base.css
 * (trich tu template Blogger); day chi them khoang cach giua anh chinh,
 * dai thumbnail va hop cam ket 4 muc ben duoi.
 * ========================================================================== */
.product-gallery-main { margin-bottom: 2px; }
.product-gallery-thumbs { margin-top: 8px; }

/* ==========================================================================
 * v1.0.4 — Luoi san pham trang shop/danh muc (giong template Blogger goc).
 * Trang archive dung woocommerce_product_loop_start() -> <ul class="products
 * columns-4">; reset o dau file chi bo float/width cua WooCommerce ma khong
 * gan display:grid, nen ul tro thanh danh sach block 1 cot. Gan luoi o day
 * theo so cot THUC TE cua template goc: dinh nghia dau tien cua .product-grid
 * (5 cot, >=1600px 6 cot, 1100-1399px 4 cot, 768-1099px 3 cot) da bi muc
 * "20. ROBUST RESPONSIVE BREAKPOINTS" o sau ghi de (dung !important) thanh
 * 4 cot tu >=992px tro len va 2 cot duoi 992px — do la so cot site goc va
 * trang chu WordPress dang hien thi that. Nen archive dung: >=1200px 4 cot
 * (gap 16px), 992-1199px 4 cot (gap 14px), 768-991px 2 cot (gap 14px),
 * <=767px 2 cot (gap 10px). Selector .shop-archive (class tren container
 * cua archive-product.php) de chi tac dong trang shop/archive: khong anh
 * huong <div class="product-grid"> trang chu, va rule .related.products
 * 4 cot (cu the hon) van thang o trang chi tiet.
 * ========================================================================== */
.shop-archive ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.shop-archive ul.products::before, .shop-archive ul.products::after { display: none; }
@media (max-width: 1199px) and (min-width: 992px) {
  .shop-archive ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 991px) and (min-width: 768px) {
  .shop-archive ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 767px) {
  .shop-archive ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* Dau trang danh muc giong goc: gach vang duoi tieu de (template goc:
 * .category-header-wrap { border-bottom: 2px solid #c59b27; }). */
.shop-archive .shop-page-head { border-bottom: 2px solid #c59b27; padding-bottom: 10px; margin-bottom: 18px; }

/* Hang "Showing 1-12 of 20 results" + o sap xep (WooCommerce them vao,
 * template goc khong co): giu lai cho tien dung, chi gon ve phong cach
 * theme (chu nho xam, o chon co vien bo goc). */
.shop-archive .woocommerce-result-count { font-size: 13px; color: #64748b; margin: 0 0 16px; }
.shop-archive .woocommerce-ordering { margin: 0 0 16px; }
.shop-archive .woocommerce-ordering select { border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; color: #11141e; font-size: 13px; font-weight: 600; padding: 8px 10px; cursor: pointer; }

/* ==========================================================================
 * v1.0.5 — Nut "Them vao gio" dung mau goc + ngan gio hang giong template.
 * ========================================================================== */

/* --- 1. Nut "Them Vao Gio Hang" o trang chi tiet: dung kieu goc
 * .btn-cart-add-sec (nen trang, vien vang 1.5px #c59b27, chu vang, bo 8px).
 * v1.0.8: rule v1.0.5 dung selector body.single-product .woocommerce ...
 * la DEAD CODE — class .woocommerce nam tren chinh the <body> nen khong
 * co element con nao trung; nut thuc te van an rule dong 196 (nen trang,
 * chu #0f172a, vien xam nhat) nen user thay nut mo nhat, khong tuong phan.
 * Selector moi bo to tien .woocommerce gia, chi can .product-secondary-actions
 * (nut nam trong form.cart > .product-buy-actions > .product-secondary-actions
 * > div.product — xem woocommerce/single-product.php). Do uu tien (0,3,1)
 * thang rule dong 196 (0,2,0) nen mau/vien/chieu cao moi deu ap dung.
 * Rule ep vang v1.0.2 giu lai lam fallback khi template mac dinh cua
 * WooCommerce bi dung (luc do khong co .product-secondary-actions). Nut icon
 * gio hang tren the SP (.btn-add-cart) da khop goc nen khong doi. */
body.single-product .product-secondary-actions .single_add_to_cart_button {
  background: #fff !important;
  color: #c59b27 !important;
  border: 1.5px solid #c59b27 !important;
  border-radius: 8px;
  font-weight: 800;
  height: 44px;
  padding: 0 24px;
  font-size: 15px;
}
body.single-product .product-secondary-actions .single_add_to_cart_button:hover {
  background: #fefbf3 !important;
  color: #c59b27 !important;
  border-color: #c59b27 !important;
}

/* --- 2. z-index ngan gio: phai cao hon nut noi "TU VAN 24/7 LIEN HE"
 * (.floating-contact-wrapper z-index 99990 trong base CSS) — truoc day
 * ngan chi o 10025 nen bi nut noi de len (thay trong anh chup cua user).
 * Dong thoi an nut noi khi gio mo (theo y do muc 32 cua template goc:
 * body.cart-open ... display:none — main.js gio gan class nay). */
.cart-overlay { z-index: 100000 !important; }
.cart-drawer { z-index: 100005 !important; }
body.cart-open .floating-contact-wrapper { display: none !important; }

/* --- 3. Mini-cart trong .cart-drawer (override woocommerce/cart/mini-cart.php) ---
 * v1.0.8: markup item gio do CHINH THEME render phia server (khong con nho
 * JS mskEnhanceMiniCart() gom lai sau khi load — cach do mong manh, phu
 * thuoc thoi diem fragment refresh nen co luc item van hien dang mac dinh
 * "N x gia" nhu anh chup cua user). Moi item: a.remove (x) + link SP
 * (.msk-ci-link: anh 60x60 + .msk-ci-body gom tieu de clamp 2 dong, gia do
 * #e11d48, bo tang/giam so luong) + hang tong tien + nut footer cua theme.
 * Khong con span.quantity nen cac rule .quantity fallback cua v1.0.5 da bo. */
.cart-drawer ul.woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
.cart-drawer li.woocommerce-mini-cart-item { display: flex; flex-wrap: wrap; position: relative; padding: 0 22px 12px 0; margin: 0 0 12px; border-bottom: 1px solid #f1f5f9; }
.cart-drawer li.woocommerce-mini-cart-item:last-child { margin-bottom: 0; }
.cart-drawer li.woocommerce-mini-cart-item a.remove { position: absolute; top: 0; right: 0; width: 20px; height: 20px; line-height: 20px; text-align: center; font-size: 18px; color: #94a3b8; text-decoration: none; }
.cart-drawer li.woocommerce-mini-cart-item a.remove:hover { color: #ef4444; }
.cart-drawer .woocommerce-mini-cart-item > a:not(.remove),
.cart-drawer .woocommerce-mini-cart-item > .msk-ci-link { display: flex; gap: 12px; flex: 1; min-width: 0; align-items: flex-start; text-decoration: none; }
.cart-drawer .woocommerce-mini-cart-item > a:not(.remove) img,
.cart-drawer .woocommerce-mini-cart-item > .msk-ci-link img,
.cart-drawer .woocommerce-mini-cart-item > img { width: 60px; height: 60px; object-fit: contain; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 2px; flex-shrink: 0; }
.cart-drawer .msk-ci-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cart-drawer .msk-ci-title { font-size: 12.5px; font-weight: 600; color: #1e293b; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-drawer .msk-ci-price { font-size: 13.5px; font-weight: 800; color: #e11d48; }
.cart-drawer .msk-ci-price .woocommerce-Price-amount { color: #e11d48; }
/* v1.0.8: bo rule .quantity — override mini-cart.php khong con render span.quantity. */
.cart-drawer .msk-ci-body dl.variation { margin: 2px 0 0; font-size: 11.5px; color: #64748b; }
.cart-drawer .msk-ci-body dl.variation dt, .cart-drawer .msk-ci-body dl.variation dd { display: inline; margin: 0; padding: 0; }
.cart-drawer .msk-ci-body dl.variation dd p { margin: 0; display: inline; }

/* Bo tang/giam so luong (+/-) nhu template goc (.qty-btn 24x24). */
.cart-drawer .msk-ci-qty { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.cart-drawer .msk-qty-btn { width: 24px; height: 24px; border: 1px solid #cbd5e1; background: #fff; border-radius: 4px; cursor: pointer; font-weight: 700; font-size: 14px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; color: #0f172a; padding: 0; }
.cart-drawer .msk-qty-btn:hover { background: #f1f5f9; }
.cart-drawer .msk-qty-val { min-width: 32px; height: 24px; text-align: center; border: 1px solid #e2e8f0; border-radius: 4px; font-size: 12px; font-weight: 700; line-height: 22px; color: #0f172a; }
.cart-drawer li.woocommerce-mini-cart-item.msk-updating { opacity: .55; }
.cart-drawer li.woocommerce-mini-cart-item.msk-updating .msk-qty-btn { pointer-events: none; }

/* Hang tong tien + an nut mac dinh cua mini-cart (footer cua theme da co
 * 2 nut Xem gio hang / Thanh toan rieng — tranh trung lap) + gio trong. */
.cart-drawer .woocommerce-mini-cart__total { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 800; color: #0f172a; margin: 4px 0 0; padding-top: 12px; border-top: 1px dashed #cbd5e1; }
.cart-drawer .woocommerce-mini-cart__total strong { font-weight: 800; color: #0f172a; }
.cart-drawer .woocommerce-mini-cart__total .woocommerce-Price-amount { color: #e11d48; font-size: 18px; font-weight: 800; }
.cart-drawer .woocommerce-mini-cart__buttons { display: none; }
.cart-drawer .woocommerce-mini-cart__empty-message { text-align: center; color: #64748b; font-size: 14px; padding: 32px 8px; margin: 0; }

/* Nut footer ngan gio: "Thanh toan" gradient vang nhu .checkout-btn goc
 * (thay mau do #b91c1c cu — rule .msk-btn-checkout cu bi rule nay thang
 * nho cu the hon), "Xem gio hang" nut phu nen trang vien xam. */
.cart-drawer-footer .msk-btn-view-cart { background: #fff !important; border: 1.5px solid #e2e8f0 !important; color: #0f172a !important; border-radius: 8px; font-weight: 800; }
.cart-drawer-footer .msk-btn-view-cart:hover { border-color: #c59b27 !important; color: #c59b27 !important; }
.cart-drawer-footer .msk-btn-checkout { background: linear-gradient(135deg, #dfb76c 0%, #c59b27 100%) !important; color: #fff !important; border: none !important; border-radius: 8px; font-weight: 800; text-transform: uppercase; box-shadow: 0 4px 12px rgba(197, 155, 39, .3); }
.cart-drawer-footer .msk-btn-checkout:hover { background: linear-gradient(135deg, #e5c158 0%, #b38728 100%) !important; box-shadow: 0 6px 16px rgba(197, 155, 39, .45); }

/* ==========================================================================
 * v1.0.6 — Luoi archive DU PHONG (safety net).
 * v1.0.4 gan luoi vao .shop-archive ul.products, nhung user cai v1.0.5 van
 * thay danh muc xep 1 cot: file woocommerce.php (duoc WC_Template_Loader
 * uu tien) goi woocommerce_content() ve thang vong lap mac dinh, bo qua
 * archive-product.php nen khong co container .shop-archive. v1.0.6 sua
 * goc bang cach re archive sang archive-product.php trong woocommerce.php;
 * day la luoi du phong, gan thang vao ul.products tren body archive de
 * luoi van hien ngay ca khi vong lap mac dinh render ma khong qua
 * archive-product.php. Cung so cot nhu v1.0.4 (4 cot desktop / 2 cot
 * tablet-mobile) nen khong xung dot voi rule .shop-archive. Khong anh
 * huong trang chi tiet (body o do khong co class .archive — rule
 * .related.products 4 cot van thang), khong anh huong gio hang/thanh
 * toan/tai khoan (body khong co .archive) va khong cham div.product-grid
 * trang chu (chi tac dong ul.products).
 * ========================================================================== */
body.archive.woocommerce-page ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
body.archive.woocommerce-page ul.products::before, body.archive.woocommerce-page ul.products::after { display: none; }
@media (max-width: 1199px) and (min-width: 992px) {
  body.archive.woocommerce-page ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 991px) and (min-width: 768px) {
  body.archive.woocommerce-page ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 767px) {
  body.archive.woocommerce-page ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* ==========================================================================
 * v1.0.7 — Tieu de the san pham 2 dong bi che + clamp 2 dong cho specs.
 * Tieu de: goc (hd4pro-base.css) dat 13px/1.45, height:38px — 2 dong vua
 * du 37.7px. Nhung wp.css tang co chu the len 14.5px/1.4 (2 dong can
 * 40.6px) ma khong doi chieu cao nen dong 2 bi cat boi overflow:hidden.
 * Sua: height:41px o desktop; mobile (base dung !important, height:32px
 * cho 12px/1.35 = 32.4px, van cat mot chut) doi thanh 33px. Giu
 * line-clamp:2 + chieu cao co dinh de cac the van deu nhau (khong dung
 * height:auto vi se lam lech luoi).
 * Specs: doi tu 1 dong ellipsis sang clamp 2 dong de text dai do user
 * nhap khong pha vo the — desktop 35px (2x12.5x1.4), mobile 27px
 * (2x10x1.35). Chi tac dong the san pham (li.product-card).
 * ========================================================================== */
li.product-card .product-title,
li.product-card .prod-title { height: 41px; }
li.product-card .product-specs { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; overflow: hidden; height: 35px; line-height: 1.4; }
@media (max-width: 768px) {
  .product-title,
  .prod-title,
  .flash-card-title,
  .card-title { height: 33px !important; }
  li.product-card .product-specs { display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; white-space: normal !important; height: 27px !important; line-height: 1.35 !important; }
}

/* ==========================================================================
 * v1.0.8 — Sua DUT DIEM 2 loi user bao lai (anh chup 10:23 ngay 03/12).
 * (1) Nut "Them Vao Gio Hang" van mo nhat: rule v1.0.2 + v1.0.5 dung
 * selector body.single-product .woocommerce ... — DEAD CODE vi class
 * .woocommerce nam tren chinh the <body>, khong co element con nao trung.
 * Da sua: bo to tien .woocommerce gia (rule ep vang v1.0.2), rule nut
 * chinh doi thanh body.single-product .product-secondary-actions
 * .single_add_to_cart_button (trung DOM that, (0,3,1) thang rule dong 196).
 * (2) Ngan gio van loan: JS mskEnhanceMiniCart() gom lai markup sau khi
 * load la mong manh (phu thuoc fragment refresh) nen co luc item van hien
 * dang mac dinh "N x gia", tieu de bop thanh cot hep. Da chuyen sang
 * override woocommerce/cart/mini-cart.php render phia server: moi item
 * co san anh 60x60 + .msk-ci-body (tieu de clamp 2 dong, gia do, stepper
 * +/-); ham JS enhance da xoa, chi con handler nut +/- goi AJAX
 * msk_update_cart_qty (HTML tra ve da dung layout).
 * ========================================================================== */

/* ==========================================================================
 * v1.0.9 — Hang gia tren the san pham (trang chu + category dung chung
 * woocommerce/content-product.php). Chi tac dong the SP li.product-card,
 * KHONG dong vao khoi gia trang chi tiet .product-detail-hero.
 * (1) Gia bi day xuong sat nut: base CSS (hd4pro-base.css dong 246) dat
 * .product-price-box { margin-top:auto } nen no hut het khoang trong cua
 * .product-info; .product-actions cung margin-top:auto (wp.css dong 39)
 * nen khoang trong chia thanh 2 khoang (tren gia + duoi gia) — gia nam
 * lo lung giua. Sua: bo margin-top:auto o price-box (gia nhich len sat
 * dong specs), GIU margin-top:auto o .product-actions de nut van neo day.
 * (2) 2 muc gia sat nhau, cung mau vang: get_price_html() tra ve
 * <del>gia goc</del> <ins>gia sale</ins> nam trong 1 span .prod-price-now
 * duy nhat nen space-between cua price-box vo dung (chi co 1 flex child);
 * wp.css dong 38 ep ca 2 amount span thanh vang gold (0,2,0); <ins> con
 * bi gach chan mac dinh cua trinh duyet. Sua: bien span .prod-price-now
 * thanh flex row, dung order dao vi tri (ins trai, del phai), mau rieng
 * cho tung amount span voi do uu tien (0,4,1)/(0,4,2) thang rule vang.
 * (3) Khong giam gia (chi 1 amount span truc tiep, khong del/ins): gia
 * do #e11d48, 17px, can trai.
 * ========================================================================== */
li.product-card .product-price-box { margin-top: 0; }
li.product-card .product-price-box .prod-price-now {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  gap: 8px;
}
li.product-card .product-price-box .prod-price-now ins { order: 1; text-decoration: none; }
li.product-card .product-price-box .prod-price-now del { order: 2; text-decoration: line-through; }
li.product-card .product-price-box .prod-price-now ins .woocommerce-Price-amount,
li.product-card .product-price-box .prod-price-now ins .woocommerce-Price-amount .woocommerce-Price-currencySymbol {
  color: #e11d48; font-size: 17px; font-weight: 800; text-decoration: none;
}
li.product-card .product-price-box .prod-price-now del .woocommerce-Price-amount {
  color: #94a3b8; font-size: 13px; font-weight: 400;
}
li.product-card .product-price-box .prod-price-now > .woocommerce-Price-amount {
  color: #e11d48; font-size: 17px; font-weight: 800;
}

/* ==========================================================================
 * v1.0.10 — Lam sat khoang trong giua dong mo ta (specs) va hang gia tren
 * the san pham (trang chu + category dung chung content-product.php).
 * Khoang ~48px truoc day gom 2 phan vo hinh:
 * (a) .product-specs co margin-bottom:8px (base CSS dong 244) — thua vi
 * column gap 8px cua .product-info da co san. Bo margin nay (can
 * !important de thang rule tablet cua base, dong 1283, cung !important).
 * (b) .product-rating RONG van chiem cho: san pham demo chua co danh gia
 * nen wc_get_rating_html(0) tra ve chuoi rong, nhung base CSS dong 245
 * dat height:16px + margin-bottom:8px co dinh -> div rong van chiem
 * 16+8+8(gap)=32px. An div khi rong; san pham CO danh gia van hien binh
 * thuong (div khong rong thi :empty khong khop). Da kiem chung
 * content-product.php render div dang
 * <div class="product-rating"><?php echo wc_get_rating_html(...); ?></div>
 * khong co khoang trang thua ben trong nen :empty khop khi rating = 0.
 * Sau sua, khoang specs->gia khi khong co danh gia chi con dung 8px
 * (column gap). Giu nguyen chieu cao specs 35px (v1.0.7), hang gia v1.0.9,
 * nut neo day (.product-actions margin-top:auto), khong dong trang chi tiet.
 * ========================================================================== */
li.product-card .product-specs { margin-bottom: 0 !important; }
li.product-card .product-rating:empty { display: none; }
/* ==========================================================================
 * v1.0.11 — Trang chi tiet chi con 2 nut mua hang (MUA NGAY + Them vao gio).
 * Bo nut TRA GOP 0% (#msk-installment-btn) va hang Zalo (.msk-zalo-row)
 * khoi ca 2 file single-product.php; markup modal tra gop (msk-install-modal)
 * va JS cua no (muc 4 trong main.js + loi goi mskUpdateInstallment() trong
 * mskApplyVariant) cung da duoc xoa. Ham msk_zalo_order_button() trong
 * functions.php duoc de lai (dead code vo hai, de khoi phuc neu can).
 * Bo cuc sau khi bo: grid mua hang ve 1 cot de nut MUA NGAY full width
 * (base CSS dong 663 dang 2 cot); grid phu ve 1 cot de form them-gio
 * (o so luong + nut Them Vao Gio Hang) full width. Can !important vi base
 * CSS dong 1296 ep .product-secondary-actions 2 cot !important o <=768px.
 * Huy hieu TRA GOP 0% tren anh gallery + dong goi y tra gop duoi gia la
 * chu thong tin, khong phai nut — GIU NGUYEN theo yeu cau. Kieu dang va
 * hanh vi 2 nut con lai khong doi (MUA NGAY do gradient, Them Vao Gio
 * Hang nen trang vien vang theo v1.0.8; MUA NGAY van them gio -> checkout).
 * ========================================================================== */
body.single-product .product-secondary-actions { grid-template-columns: 1fr !important; }

/* ==========================================================================
 * v1.0.12 — Khu vuc mua hang 1 hang: [stepper so luong] [MUA NGAY] [Them vao gio].
 * Nut MUA NGAY chuyen vao trong form.cart (override simple.php) nen div
 * .product-action-grid da bi xoa khoi ca 2 file single-product.php; rule
 * grid 1 cot cua v1.0.11 o tren chi con lai .product-secondary-actions.
 * Stepper do server render (khong dung JS tao markup — bai hoc tu ngan gio
 * v1.0.5): nut − an san khi qty = min (class is-hidden, visibility de giu
 * nguyen chieu rong), nut + khoa khi cham max (class is-disabled). Ca 3
 * phan cao bang nhau 44px, gap 8px, khong wrap o desktop/tablet.
 * Mobile rat hep (<=480px): cho xuong 2 hang — hang 1 [stepper + MUA NGAY],
 * hang 2 nut Them Vao Gio Hang full width (chu khong ep 1 hang bi bop chu).
 * ========================================================================== */
body.single-product .product-buy-actions form.cart {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}
body.single-product .product-buy-actions .msk-qty-stepper {
  flex: 0 0 110px;
  display: flex;
  align-items: center;
  height: 44px;
  background: #fff;
  border: 1.5px solid #c59b27;
  border-radius: 8px;
  overflow: hidden;
}
body.single-product .product-buy-actions .msk-qty-btn {
  flex: 0 0 36px;
  height: 100%;
  border: 0;
  background: #fff;
  color: #0f172a;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
body.single-product .product-buy-actions .msk-qty-btn:hover { background: #fefbf3; color: #c59b27; }
body.single-product .product-buy-actions .msk-qty-btn.is-hidden { visibility: hidden; }
body.single-product .product-buy-actions .msk-qty-btn.is-disabled { opacity: .35; cursor: not-allowed; pointer-events: none; }
body.single-product .product-buy-actions .msk-qty-val {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}
body.single-product .product-buy-actions .btn-buy-instant {
  flex: 1 1 0;
  min-width: 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  white-space: nowrap;
}
body.single-product .product-buy-actions .single_add_to_cart_button {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 12px;
  font-size: 14px;
  white-space: nowrap;
}
@media (max-width: 480px) {
  body.single-product .product-buy-actions form.cart { flex-wrap: wrap; }
  body.single-product .product-buy-actions .single_add_to_cart_button { flex: 1 1 100%; }
}

/* ==========================================================================
 * v1.0.13 — Trang checkout giong trang mua-hang goc.
 * Layout + card + danh sach don + the ngan hang dung san class cua
 * hd4pro-base.css (checkout-page-container/layout/card, checkout-prods-list,
 * checkout-prod-item/thumb/price/meta, checkout-qty-control/btn/input,
 * checkout-item-remove-btn, checkout-summary-box/row, qr-banks-grid,
 * qr-note-box, checkout-page-form, checkout-security-notice, btn-submit-order).
 * Chi them rule o day de nan form checkout cua WooCommerce ve dang do:
 * - An tieu de "Billing details", field tai khoan, khoi ship-to-different
 *   va tieu de "Additional information" (field da gon bang filter o
 *   functions.php; day chi an phan thua cua form mac dinh).
 * - Moi field thanh 1 hang full-width (nhu form goc), input giong
 *   .checkout-page-form input cua ban goc (padding 10px 12px, vien
 *   1.5px #cbd5e1, bo 8px, focus vang).
 * - Danh sach phuong thuc thanh toan + nut #place_order tao dang nhu
 *   .btn-submit-order cua ban goc (gradient vang -> xanh la, chu trang).
 * - .payment_box an (COD/BACS chi co dong mo ta, da co the VietQR o
 *   cot trai; neu sau nay them gateway the thi can xem lai rule nay).
 * - Nut -/+ bi khoa (disabled) mo di; dang cap nhat (msk-updating) mo.
 * ========================================================================== */
form.woocommerce-checkout .woocommerce-billing-fields > h3,
form.woocommerce-checkout .woocommerce-account-fields,
form.woocommerce-checkout .woocommerce-shipping-fields,
form.woocommerce-checkout .woocommerce-additional-fields > h3 {
  display: none !important;
}
form.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row,
form.woocommerce-checkout .woocommerce-additional-fields__field-wrapper .form-row {
  float: none !important;
  width: 100% !important;
  margin: 0 0 14px;
}
form.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row:last-child,
form.woocommerce-checkout .woocommerce-additional-fields__field-wrapper .form-row:last-child {
  margin-bottom: 0;
}
form.woocommerce-checkout .woocommerce-billing-fields__field-wrapper label,
form.woocommerce-checkout .woocommerce-additional-fields__field-wrapper label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 5px;
}
form.woocommerce-checkout .woocommerce-billing-fields__field-wrapper label .required,
form.woocommerce-checkout .woocommerce-additional-fields__field-wrapper label .required {
  color: #e11d48;
}
form.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .input-text,
form.woocommerce-checkout .woocommerce-additional-fields__field-wrapper .input-text {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  box-sizing: border-box;
  background: #fff;
  color: #0f172a;
}
form.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .input-text:focus,
form.woocommerce-checkout .woocommerce-additional-fields__field-wrapper .input-text:focus {
  outline: none;
  border-color: #c59b27;
  box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.12);
}
form.woocommerce-checkout .woocommerce-billing-fields__field-wrapper textarea.input-text {
  min-height: 74px;
  resize: vertical;
}
form.woocommerce-checkout .checkout-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
}
form.woocommerce-checkout .checkout-steps p { margin: 0; }
form.woocommerce-checkout .checkout-prod-item .checkout-prod-thumb { flex: 0 0 58px; }
form.woocommerce-checkout .checkout-prod-item .checkout-prod-info { flex: 1 1 0; min-width: 0; }
form.woocommerce-checkout .checkout-prod-item .checkout-prod-title a { color: #0f172a; text-decoration: none; }
form.woocommerce-checkout .checkout-prod-item .checkout-prod-title a:hover { color: #c59b27; }
form.woocommerce-checkout .checkout-qty-btn:disabled { opacity: .35; cursor: not-allowed; }
form.woocommerce-checkout .checkout-qty-control.msk-updating,
form.woocommerce-checkout .checkout-prod-item.msk-updating { opacity: .55; }
form.woocommerce-checkout #payment { background: transparent; border-radius: 0; }
form.woocommerce-checkout #payment ul.wc_payment_methods {
  padding: 0;
  margin: 0;
  border: 0;
  list-style: none;
}
form.woocommerce-checkout #payment ul.wc_payment_methods li.wc_payment_method {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 8px;
  background: #fff;
}
form.woocommerce-checkout #payment ul.wc_payment_methods li.wc_payment_method > label {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
}
form.woocommerce-checkout #payment div.payment_box {
  display: none !important;
}
form.woocommerce-checkout #payment div.form-row.place-order {
  padding: 0;
  margin: 8px 0 0;
}
form.woocommerce-checkout #place_order {
  width: 100%;
  background: linear-gradient(135deg, #c59b27 0%, #067e3d 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 18px rgba(197, 155, 39, 0.35);
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: .5px;
}
form.woocommerce-checkout #place_order:hover {
  background: #067e3d;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(197, 155, 39, 0.45);
}

/* ==========================================================================
 * v1.0.22 — Dropdown menu con (submenu) desktop
 * --------------------------------------------------------------------------
 * Ly do: walker render menu con thanh <ul class="sub-menu"> long trong <li>
 * nhung theme chua co CSS dropdown desktop (chi co 2 rule mobile static),
 * nen menu con hien in-flow ngay duoi link cha, de len thanh nav; dong
 * thoi .nav-item a / .nav-item.hot a (selector con-chau) nhuom luon link
 * menu con theo mau cua muc cha.
 * .nav-menu co overflow-x: auto nen KHONG dung position: absolute (se bi
 * cat o mep duoi thanh nav) — menu con dung position: fixed, toa do
 * left/top do JS dat theo getBoundingClientRect() cua <li> cha.
 * Chi ap dung desktop (>= 769px); mobile <= 768px giu nguyen hanh vi cu
 * (submenu static, luon mo rong trong menu doc).
 * ========================================================================== */
@media (min-width: 769px) {
  /* Hop dropdown: an mac dinh, hien khi muc cha co class sub-open (JS dat)
   * hoac khi focus nam trong muc cha (ban phim). */
  .main-nav .nav-menu .sub-menu {
    position: fixed;
    display: none;
    min-width: 220px;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #11141e;
    border: 1px solid rgba(197, 155, 39, 0.4);
    border-top: 2px solid #c59b27;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
    z-index: 1000;
  }
  .main-nav .nav-menu .nav-item.sub-open > .sub-menu,
  .main-nav .nav-menu .nav-item:focus-within > .sub-menu,
  .main-nav .nav-menu .sub-menu-item.sub-open > .sub-menu,
  .main-nav .nav-menu .sub-menu-item:focus-within > .sub-menu {
    display: block;
  }
  /* Link trong menu con: specificity (0,3,1) thang .nav-item a va
   * .nav-item.hot a (0,2,1) — chu KHONG con vang/do/xanh theo muc cha. */
  .main-nav .nav-menu .sub-menu a {
    display: flex;
    align-items: center;
    height: auto;
    min-height: 0;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    white-space: normal;
    line-height: 1.4;
  }
  .main-nav .nav-menu .sub-menu a:hover {
    background: rgba(197, 155, 39, 0.16);
    color: #dfb76c;
  }
  /* Mui ten chi muc cha co con (link cha la inline-flex co gap 5px). */
  .main-nav .nav-menu .nav-item.has-children > a::after {
    content: '▾';
    font-size: 9px;
    color: #dfb76c;
  }
  .main-nav .nav-menu .sub-menu-item.has-children > a::after {
    content: '▸';
    font-size: 9px;
    color: #dfb76c;
    margin-left: auto;
    padding-left: 12px;
  }
  /* Menu con cap 2: bay sang phai muc con (toa do do JS dat). */
  .main-nav .nav-menu .sub-menu .sub-menu-item {
    position: relative;
  }
  .main-nav .nav-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    border-top: 1px solid rgba(197, 155, 39, 0.4);
    border-radius: 8px;
  }
}

/* ==========================================================================
 * v1.0.25 — Sua giao dien mobile (user gui anh chup dien thoai 21:29 04/12:
 * menu ngang hien chu trang mo tren nen trang, cat o mep phai, khong bam
 * duoc hamburger, khong thay nut gio hang).
 * NGUYEN NHAN (da xac minh trong assets/css/hd4pro-base.css, KHONG sua file
 * goc — moi rule duoi day nam trong wp.css, load SAU base CSS nen cung
 * specificity thi thang nho thu tu load):
 * (a) Khoi @media (max-width: 768px) base ~1256: .main-nav nen toi #11141e
 *     + .nav-menu display:none — y dinh dung.
 * (b) Khoi @media (max-width: 767px) base ~1341 ("USER REQUEST UPDATES"):
 *     .main-nav background: transparent !important; .nav-menu display: flex
 *     !important; overflow-x: auto — cung specificity (0,1,0) nhu (a) nhung
 *     nam SAU nen thang: thanh nav trong suot + menu ngang cuon, link trang
 *     (#ffffff, base dong 71) tren nen trang -> mo/khong doc duoc.
 * (c) .header-actions { display: none !important; } (base ~1340) an luon
 *     #nav-toggle (nam trong .header-actions) -> khong co cach nao mo menu.
 * (d) .hero-sidebar { display: none !important; } (base ~884, <=767px) an
 *     luon <aside> trong .nav-cat-dropdown -> bam DANH MUC chi thay hop
 *     rong. (e) .nav-cat-dropdown rong 340px co dinh + .mega-menu bay ngang
 *     740px (base dong 103) -> tran mep phai dien thoai.
 * CHUNG MINH RULE MOI THANG (specificity tinh theo (id, class, element)):
 * - nav.main-nav (0,1,1) thang (a)+(b) (0,1,0) ve nen/vien/padding.
 * - .main-nav .nav-menu (0,2,0) thang (b) (0,1,0) -> an menu mac dinh.
 * - .main-nav.open .nav-menu (0,3,0) thang ca hai -> hien menu doc khi mo.
 * - .main-nav .nav-cat-dropdown .hero-sidebar (0,3,0) thang (d) (0,1,0).
 * - .main-nav .nav-cat-wrapper .cat-item > .mega-menu (0,4,0) thang
 *   .cat-item:hover > .mega-menu (0,3,0) (base dong 104) -> an mega bay.
 * - .main-nav .nav-cat-dropdown (0,2,0) thang (e) (0,1,0) ve rong.
 * Nut ☰ + nut gio mobile da chuyen vao .main-nav .container (header.php);
 * main.js giu nguyen handler toggle #main-nav.open; submenu mobile van
 * static mo rong nhu rule <=768px o dong 160-161.
 * ========================================================================== */
@media (max-width: 767px) {
  /* (1) Thanh nav LUON hien, nen toi, vien duoi vang — khong bao gio trong suot. */
  nav.main-nav {
    display: block !important;
    background: #11141e !important;
    border-bottom: 2px solid #c59b27 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  nav.main-nav > .container {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 10px !important;
  }
  /* Hang 1: [DANH MUC chiem phan con lai] [nut gio] [nut ☰]. */
  .main-nav .nav-cat-wrapper {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  /* Nut ☰: cung chieu cao 42px voi nut DANH MUC + nut gio. */
  .main-nav .nav-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    font-size: 20px !important;
    line-height: 1 !important;
    color: #dfb76c !important;
    background: #1e2230 !important;
    border: 1.5px solid #c59b27 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  .main-nav .nav-toggle:active {
    background: #c59b27 !important;
    color: #11141e !important;
  }
  /* (2) Menu ngang AN mac dinh; bam ☰ (.main-nav.open) thi xo xuong doc. */
  .main-nav .nav-menu {
    display: none !important;
    width: 100% !important;
    flex: 1 1 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
    overflow: visible !important;
    white-space: normal !important;
    padding: 4px 0 2px !important;
    margin: 0 !important;
    border-top: 1px solid rgba(197, 155, 39, 0.35) !important;
  }
  .main-nav.open .nav-menu {
    display: flex !important;
  }
  .main-nav .nav-menu .nav-item {
    flex: 0 0 auto !important;
    width: 100% !important;
  }
  /* Link doc full-width, de bam; KHONG ep mau chu (trang/do/xanh/vang cua
   * base CSS deu doc duoc tren nen toi #11141e). */
  .main-nav .nav-menu .nav-item > a {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
    white-space: normal !important;
  }
  .main-nav .nav-menu .sub-menu-item > a {
    padding: 9px 12px 9px 24px !important;
    font-size: 12.5px !important;
    white-space: normal !important;
  }
  /* (3) Dropdown DANH MUC: hien lai noi dung + chong tran mep phai. */
  .main-nav .nav-cat-dropdown {
    width: min(340px, calc(100vw - 20px)) !important;
    min-width: 0 !important;
  }
  .main-nav .nav-cat-dropdown .hero-sidebar {
    display: flex !important;
  }
  /* Mega menu bay ngang 740px: AN han tren mobile. Cac link trong do deu
   * tro ve dung category cua hang cha nen bam hang danh muc la du. */
  .main-nav .nav-cat-wrapper .cat-item > .mega-menu {
    display: none !important;
  }
}
/* (4) Checkout: 2 the ngan hang xep doc khi man hinh rat hep (<=480px);
 * o 360px moi the chi ~147px, so tai khoan dai se vo. */
@media (max-width: 480px) {
  .qr-banks-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
 * v1.0.26 — Sua 2 viec user bao sau khi test v1.0.25 tren dien thoai that
 * (anh chup 09:57 04/12): (1) co 2 nut ☰ tren mobile; (2) the san pham
 * hien thi xau: gia bi cat, nut XEM CHI TIET gay 2 dong, danh gia hien
 * chu "Rated 5.00 out of 5" thay vi sao.
 *
 * NGUYEN NHAN (da xac minh):
 * (1a) 2 nut ☰: (i) icon ☰ SVG trang tri trong nut DANH MUC (header.php
 *      dong 80, trong .nav-cat-btn) + (ii) nut #nav-toggle that (v1.0.25).
 *      Hang nav bi rot xuong 2 hang vi container flex-wrap:wrap, rong
 *      trong 340px tren man 360px ma DANH MUC (chu dai + icon + mui ten)
 *      + Gio (~120px) + ☰ 42px + gap da vuot 340px.
 * (1b) (2a) Gia bi cat: hang gia flex-wrap: nowrap !important (base
 *      1285) + gia sale 17px / gia gach 13px (wp.css v1.0.9, khong co
 *      ban mobile) trong khi the rong trong chi ~126px tren man 360px
 *      (container 96% padding 16px + section padding 8px + gap 8px +
 *      card padding 8px). 90px (sale) + 68px (gach) + gap 8px = ~166px
 *      > 126px -> cat o mep phai the.
 * (2b) Nut XEM CHI TIET gay dong: rong nut ~93px, chu 10.5px bold
 *      ~82px + padding 8px = ~90px, sat nut nen khoang trang goc lam
 *      gay dong; thieu white-space:nowrap.
 * (2c) Danh gia hien chu thay vi sao: CSS sao cua WooCommerce 11.3.1
 *      (.woocommerce .star-rating ...) chi khop khi co to tien mang
 *      class `woocommerce`. Trang chu co body class
 *      `... woocommerce-no-js` (KHONG co token `woocommerce`) va luoi
 *      san pham nam trong section.cat-product-section > ul.products
 *      (khong co to tien .woocommerce) — da kiem chung bang HTML live
 *      thucpham.pro (parse ancestor chain cua .star-rating dau tien:
 *      html > body > main > div.container > section > div >
 *      ul.products > li.product-card > div.product-info >
 *      div.product-rating > div.star-rating, 0 to tien .woocommerce)
 *      -> 12 rule sao cua WC khong khop, chu trong <span>
 *      ("Rated 5.00 out of 5") hien ra dang text mau vang. Sua: tu
 *      viet lai bo rule sao trong wp.css, khong phu thuoc to tien
 *      .woocommerce (chu "sssss"/"SSSSS" trong font WooCommerce:
 *      s thuong = sao rong, S hoa = sao dac).
 * (2d) Anh the hang dau trong anh chup: KHONG tim thay loi trong code.
 *      .product-thumb co aspect-ratio 1/1 + nen #f8fafc + img co
 *      width/height/srcset day du (kiem chung 20 thumb trong HTML live,
 *      URL uploads hop le); header position:sticky (base dong 32) nen
 *      anh chup khi cuon xuong giua trang: hang the dau bi an anh sau
 *      header sticky dung bang chieu cao thumb. Khong sua gi them.
 * ========================================================================== */
/* --- (A) Mobile <=767px: nav 1 hang, chi con 1 nut ☰; the rong hon --- */
@media (max-width: 767px) {
  /* Toan man hinh: giam padding le container 16px -> 10px (the rong
   * trong tang ~126px -> ~135px). Nav container giu padding rieng
   * 8px 10px cua v1.0.25 (rule nav.main-nav > .container (0,2,1)
   * thang rule nay (0,1,0)). */
  .container {
    padding: 0 10px !important;
  }
  /* (1) An icon ☰ SVG trang tri trong nut DANH MUC (chi tren mobile);
   * giu chu + mui ten chevron. Chi con nut #nav-toggle la ☰ duy nhat. */
  .main-nav .nav-cat-btn > span:first-child svg {
    display: none !important;
  }
  /* (1) Ep hang nav ve 1 hang: wrapper chiem phan con lai (flex-basis
   * 0), chu co lai duoc (ellipsis); Gio + ☰ co dinh khong co. */
  nav.main-nav > .container {
    gap: 6px !important;
  }
  .main-nav .nav-cat-wrapper {
    flex: 1 1 0 !important;
  }
  .main-nav .nav-cat-btn > span:first-child {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    min-width: 0 !important;
  }
  .main-nav .nav-mobile-cart-btn {
    flex: 0 0 auto !important;
  }
  /* (2a) Hang gia: cho phep xuong dong + chu nho lai (sale 13px,
   * gach 10px). Specificity (0,4,2) + !important thang v1.0.9 (0,4,2)
   * khong !important; flex-wrap dat tren .prod-price-now (flex con),
   * khong dong toi flex-wrap: nowrap cua .product-price-box (base
   * 1285). Neu van chat, gia gach tu xuong dong 2, can phai nho
   * margin-left:auto. */
  li.product-card .product-price-box .prod-price-now {
    flex-wrap: wrap !important;
    gap: 2px 6px !important;
  }
  li.product-card .product-price-box .prod-price-now ins .woocommerce-Price-amount,
  li.product-card .product-price-box .prod-price-now ins .woocommerce-Price-amount .woocommerce-Price-currencySymbol {
    font-size: 13px !important;
  }
  li.product-card .product-price-box .prod-price-now del .woocommerce-Price-amount {
    font-size: 10px !important;
    margin-left: auto !important;
  }
  li.product-card .product-price-box .prod-price-now > .woocommerce-Price-amount {
    font-size: 13px !important;
  }
  /* (2b) Nut XEM CHI TIET: khong gay dong, chu 10px. Specificity
   * (0,3,1) thang base 1466 (0,1,0). */
  li.product-card .product-actions .btn-buy-now {
    white-space: nowrap !important;
    font-size: 10px !important;
    padding: 0 6px !important;
  }
}
/* (2c) Sao danh gia: tu viet lai bo rule sao cua WooCommerce, KHONG can
 * to tien .woocommerce (xem giai thich o dau muc). Ap dung cho the san
 * pham o moi noi (trang chu, category, lien quan, tim kiem). Font
 * 'WooCommerce' do chinh WooCommerce 11.3.1 khai bao (@font-face) va
 * dung trong rule .woocommerce .star-rating cua no; chu "sssss" = 5
 * sao rong (xam), "SSSSS" = 5 sao dac (vang, bi cat theo width%). */
li.product-card .product-rating .star-rating {
  float: none !important;
  overflow: hidden !important;
  position: relative !important;
  height: 1em !important;
  line-height: 1 !important;
  font-size: 1em !important;
  width: 5.4em !important;
  font-family: WooCommerce !important;
  display: block !important;
  letter-spacing: 0 !important;
}
li.product-card .product-rating .star-rating::before {
  content: "sssss" !important;
  color: #d3ced2 !important;
  float: left !important;
  top: 0 !important;
  left: 0 !important;
  position: absolute !important;
}
li.product-card .product-rating .star-rating span {
  overflow: hidden !important;
  float: left !important;
  top: 0 !important;
  left: 0 !important;
  position: absolute !important;
  padding-top: 1.5em !important;
}
li.product-card .product-rating .star-rating span::before {
  content: "SSSSS" !important;
  top: 0 !important;
  position: absolute !important;
  left: 0 !important;
  color: #c59b27 !important;
}
/* (1) Man rat hep <=380px: giam padding nav de hang nav co them cho. */
@media (max-width: 380px) {
  nav.main-nav > .container {
    padding: 8px !important;
  }
}
