/* =========================================================
 * Theme THP - CSS bổ sung
 * ======================================================= */
:root {
    --hc-primary-rgb: 237 27 36;
    --hc-secondary-rgb: 36 58 118;
    --hc-primary: rgb(var(--hc-primary-rgb));
    --hc-secondary: rgb(var(--hc-secondary-rgb));
    --hc-bg: #fff;
    --hc-text: #1d1d20;
    --hc-subscribe-bg: #202c43;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* Logo header */
#hc-main-header img[alt] { max-height: 70px; width: 210px !important; height: auto; object-fit: contain; }
.hc-header-right { margin-left: auto; }
.hc-mobile-logo { height: 42px !important; }
.hc-mobile-logo { background: #fff; border-radius: 8px; padding: 3px 6px; }

/* Bù các class không có trong CSS gốc */
.peer:hover ~ .peer-hover\:z-\[51\] { z-index: 51; }
.hc-contact__box { box-shadow: 0 8px 30px rgba(0, 0, 0, .12); }

/* Icon trong menu danh mục */
.hc-menu-icon img { width: 15px; height: 15px; object-fit: contain; display: inline-block; }
#menu-page-home li:hover .hc-menu-icon img { filter: brightness(0) invert(1); }
#menu-page-home li:hover .hc-menu-icon i { color: #fff; }

/* Mega menu tự sinh từ menu con */
.hc-mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 24px; align-content: start; height: 100%; overflow-y: auto; }
.hc-mega-col .hc-mega-title { display: block; font-size: 13px; font-weight: 700; color: var(--hc-primary); margin-bottom: 6px; text-transform: uppercase; }
.hc-mega-col ul { list-style: none; margin: 0; padding: 0; }
.hc-mega-col li a { display: block; font-size: 12.5px; line-height: 1.9; color: #333; }
.hc-mega-col li a:hover, .hc-mega-col .hc-mega-title:hover { color: var(--hc-primary); text-decoration: underline; }
.hc-mega-content { height: 100%; overflow-y: auto; font-size: 13px; }

/* Slider chính */
.hc-hero-swiper .swiper-slide img { height: 100%; }
.hc-hero-tabs button.is-active { border-color: var(--hc-primary) !important; color: var(--hc-primary) !important; }
.hc-bottom-swiper .swiper-slide { height: auto; }

/* Khối khách hàng */
.hc-customer-swiper, .hc-customer-swiper .swiper-wrapper, .hc-customer-swiper .swiper-slide { height: 100%; }

/* Hàng sản phẩm */
.hc-row-track { user-select: none; }
.hc-row-track img { -webkit-user-drag: none; }
.hc-cart-btn.loading { opacity: .6; }
.hc-cart-btn.added { background: #2cc067 !important; }
a.added_to_cart { display: none !important; }

/* Đăng ký email (Contact Form 7) */
.hc-subscribe { background: var(--hc-subscribe-bg) !important; }
.hc-subscribe-form form { display: flex; width: 600px; max-width: 100%; height: 40px; border-radius: 6px; overflow: hidden; }
.hc-subscribe-form p { margin: 0; display: contents; }
.hc-subscribe-form .wpcf7-form-control-wrap { flex: 1; }
.hc-subscribe-form input[type=email], .hc-subscribe-form input[type=text], .hc-subscribe-form input[type=tel] { width: 100%; height: 40px; border: 0; padding: 0 10px; font-size: 13px; outline: none; }
.hc-subscribe-form input[type=submit] { height: 40px; border: 0; background: var(--hc-primary); color: #fff; padding: 0 55px; font-weight: 600; cursor: pointer; }
.hc-subscribe-form .wpcf7-spinner { display: none; }
.hc-subscribe-form .wpcf7-response-output { color: #fff; border-color: #fff !important; margin: 10px 0 0 !important; font-size: 12px; }
.hc-subscribe-form .wpcf7-not-valid-tip { font-size: 11px; position: absolute; }

.hc-policy-icon { width: 34px; height: 34px; object-fit: contain; }
.hc-company p { margin: 0 0 4px; }

/* Liên hệ nổi */
.hc-zalo-badge { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hc-zalo-badge--sm { width: 30px; height: 30px; }
.hc-zalo-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.h-3\.5.hc-zalo-img { width: 14px; height: 14px; flex-shrink: 0; }
.hc-fb-badge { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #00b2ff, #a033ff 60%, #ff5c87); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.hc-contact__count { font-size: 10px; font-weight: 600; color: #0068ff; background: #e8f1ff; border-radius: 10px; padding: 1px 6px; margin-left: 4px; }
.hc-contact.zalo-closed .hc-contact__zalo-list { display: none; }
/* Thu gọn: chỉ còn cột icon Zalo / Messenger / Điện thoại (như thp) */
.hc-contact.is-collapsed .hc-contact__text,
.hc-contact.is-collapsed .hc-contact__zalo-list { display: none !important; }
.hc-contact.is-collapsed .hc-contact__box { padding: 10px 8px; gap: 6px; }
.hc-contact.is-collapsed .hc-contact__items { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hc-contact.is-collapsed .hc-contact__items > * { padding: 0 !important; }
.hc-contact.is-collapsed .hc-contact__zalo-head { padding: 0; }
.hc-contact.is-collapsed .hc-zalo-badge { width: 46px; height: 46px; }
.hc-contact.is-collapsed .hc-contact__collapse { top: 50%; transform: translateY(-50%); }
.hc-fb-dot { position: absolute; right: -2px; top: -2px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: #ff3b30; }
.hc-contact.is-collapsed .hc-contact__collapse i { transform: rotate(180deg); }
.hc-contact__collapse i { transition: transform .3s; }
.hc-chat-bar { position: fixed; right: 0; bottom: 0; z-index: 61; background: var(--hc-primary); color: #fff; font-size: 14px; font-weight: 600; padding: 7px 16px; border-radius: 10px 0 0 0; align-items: center; gap: 8px; }
.hc-chat-bar:hover { color: #fff; opacity: .95; }
.hc-back-top { position: fixed; right: 12px; bottom: 50px; z-index: 59; width: 40px; height: 40px; border-radius: 50%; background: #000; color: #fff; border: 0; opacity: 0; pointer-events: none; transition: opacity .3s; cursor: pointer; }
.hc-back-top.is-show { opacity: .7; pointer-events: auto; }
@media (min-width: 768px) { .hc-back-top { display: none; } }

/* Popup video */
.hc-video-modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .75); z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.hc-video-modal__inner { position: relative; width: 900px; max-width: 100%; aspect-ratio: 16 / 9; }
.hc-video-modal__inner iframe { width: 100%; height: 100%; border: 0; border-radius: 12px; }
.hc-video-modal__close { position: absolute; top: -40px; right: 0; color: #fff; background: none; border: 0; font-size: 32px; cursor: pointer; }
.hc-video-thumb { width: 100%; height: 100%; }

/* Menu mobile */
.hc-mobile-menu { position: fixed; inset: 0; z-index: 100001; visibility: hidden; }
.hc-mobile-menu__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .25s; }
.hc-mobile-menu__panel { position: absolute; left: 0; top: 0; bottom: 0; width: 86%; max-width: 340px; background: #fff; transform: translateX(-100%); transition: transform .25s; overflow-y: auto; }
.hc-mobile-menu.is-open { visibility: visible; }
.hc-mobile-menu.is-open .hc-mobile-menu__overlay { opacity: 1; }
.hc-mobile-menu.is-open .hc-mobile-menu__panel { transform: none; }
.hc-mobile-menu__head { display: flex; justify-content: space-between; align-items: center; background: var(--hc-primary); color: #fff; padding: 12px 16px; font-weight: 700; text-transform: uppercase; font-size: 14px; }
.hc-mobile-menu__head button { background: none; border: 0; color: #fff; font-size: 20px; }
.hc-mobile-menu__list, .hc-mobile-menu__sub { list-style: none; margin: 0; padding: 0; }
.hc-mobile-menu__row { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #f0f0f0; }
.hc-mobile-menu__row a { flex: 1; padding: 11px 16px; font-size: 14px; }
.hc-mobile-menu__toggle { background: none; border: 0; padding: 11px 16px; color: #888; }
.hc-mobile-menu__sub { display: none; background: #fafafa; }
.hc-mobile-menu li.is-open > .hc-mobile-menu__sub { display: block; }
.hc-mobile-menu li.is-open > .hc-mobile-menu__row .hc-mobile-menu__toggle i { transform: rotate(180deg); }
.hc-mobile-menu__sub a { display: block; padding: 9px 16px 9px 30px; font-size: 13px; border-bottom: 1px solid #f0f0f0; }

/* =========================================================
 * Trang con: breadcrumb, bài viết, trang
 * ======================================================= */
.thp-breadcrumb #breadcrumbs { margin: 6px 0; color: #666; }
.thp-breadcrumb a { color: #333; }
.thp-breadcrumb a:hover { color: var(--hc-primary); }
.hc-page-title { font-size: 24px; font-weight: 700; margin: 10px 0 16px; color: #1d1d20; line-height: 1.3; }
.hc-section-title { font-size: 18px; font-weight: 700; text-transform: uppercase; margin: 24px 0 12px; }
.hc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
@media (max-width: 1023px) { .hc-layout { grid-template-columns: 1fr; } }
.hc-post-list { display: grid; gap: 16px; }
.hc-post-item { display: grid; grid-template-columns: 260px 1fr; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid #eee; }
@media (max-width: 640px) { .hc-post-item { grid-template-columns: 1fr; } }
.hc-post-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; }
.hc-post-body h2 { font-size: 17px; font-weight: 600; margin: 0 0 6px; line-height: 1.4; }
.hc-post-body h2 a:hover { color: var(--hc-primary); }
.hc-post-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: #888; margin-bottom: 8px; }
.hc-post-body p { color: #555; font-size: 13.5px; line-height: 1.6; margin: 0; }
.hc-archive-desc { margin-bottom: 16px; color: #555; }
.hc-content { font-size: 15px; line-height: 1.75; }
.hc-content p { margin: 0 0 14px; }
.hc-content h2 { font-size: 21px; font-weight: 700; margin: 22px 0 10px; }
.hc-content h3 { font-size: 18px; font-weight: 700; margin: 18px 0 8px; }
.hc-content ul, .hc-content ol { padding-left: 22px; margin: 0 0 14px; list-style: revert; }
.hc-content img { height: auto; border-radius: 8px; }
.hc-content table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.hc-content table td, .hc-content table th { border: 1px solid #e5e5e5; padding: 6px 10px; }
.hc-content a { color: var(--hc-primary); }
.hc-tags { margin-top: 16px; font-size: 13px; }
.hc-widget { border: 1px solid #eee; border-radius: 14px; padding: 14px; margin-bottom: 16px; }
.hc-widget-title { font-size: 15px; font-weight: 700; text-transform: uppercase; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--hc-primary); }
.hc-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hc-recent li { display: grid; grid-template-columns: 80px 1fr; gap: 10px; align-items: start; }
.hc-recent-thumb img { width: 80px; height: 60px; object-fit: cover; border-radius: 8px; }
.hc-recent-title { font-size: 13px; line-height: 1.4; font-weight: 500; }
.hc-recent-title:hover { color: var(--hc-primary); }
.hc-news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; padding: 0 10px; }
.hc-news-item { background: #fff; border: 1px solid rgba(0, 0, 0, .06); border-radius: 16px; overflow: hidden; padding-bottom: 12px; }
.hc-news-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hc-news-item h3 { font-size: 14px; font-weight: 600; line-height: 1.4; margin: 10px 12px 6px; }
.hc-news-item h3 a:hover { color: var(--hc-primary); }
.hc-news-date { font-size: 12px; color: #888; margin: 0 12px; }
.hc-pagination, .navigation.pagination { margin: 24px 0; }
.nav-links { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.nav-links .page-numbers { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #ddd; border-radius: 8px; padding: 0 10px; font-size: 13px; }
.nav-links .page-numbers.current, .nav-links .page-numbers:hover { background: var(--hc-primary); border-color: var(--hc-primary); color: #fff; }
.hc-404 { text-align: center; }
.hc-404 h1 { font-size: 96px; font-weight: 800; color: var(--hc-primary); line-height: 1; }
.hc-btn { display: inline-block; background: var(--hc-primary); color: #fff; border-radius: 8px; padding: 10px 22px; font-weight: 600; margin-top: 14px; }
.hc-btn:hover { color: #fff; opacity: .9; }
.hc-searchform { display: flex; border: 1px solid #ddd; border-radius: 20px; overflow: hidden; }
.hc-searchform input[type=text] { flex: 1; border: 0; padding: 8px 14px; outline: none; }
.hc-searchform .button_search { position: relative; width: 44px; background: var(--hc-primary); color: #fff; display: flex; align-items: center; justify-content: center; }
.hc-searchform .button_search input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* =========================================================
 * WooCommerce
 * ======================================================= */
.hc-woo .woocommerce-products-header__title, .hc-woo h1.page-title { font-size: 24px; font-weight: 700; margin: 10px 0 12px; text-transform: uppercase; }
.hc-woo .term-description { color: #555; margin-bottom: 12px; }
.hc-woo .woocommerce-result-count { font-size: 13px; color: #666; margin: 8px 0; }
.hc-woo .woocommerce-ordering select { border: 1px solid #ddd; border-radius: 8px; padding: 6px 10px; font-size: 13px; }
.woocommerce ul.products, .hc-search-products { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin: 0 -6px !important; padding: 0; list-style: none; clear: both; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product.hc-loop-item, .hc-search-products li { width: auto !important; margin: 0 !important; float: none !important; padding: 0 !important; }
@media (max-width: 1279px) { .woocommerce ul.products, .hc-search-products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767px) { .woocommerce ul.products, .hc-search-products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.woocommerce nav.woocommerce-pagination ul { border: 0 !important; display: flex; gap: 6px; justify-content: center; }
.woocommerce nav.woocommerce-pagination ul li { border: 0 !important; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { min-width: 36px; height: 36px; display: inline-flex !important; align-items: center; justify-content: center; border: 1px solid #ddd !important; border-radius: 8px; }
.woocommerce nav.woocommerce-pagination ul li span.current, .woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--hc-primary) !important; color: #fff !important; border-color: var(--hc-primary) !important; }

/* Chi tiết sản phẩm */
.single-product .hc-woo div.product { display: grid; grid-template-columns: 45% 1fr; gap: 28px; }
.single-product .hc-woo div.product .woocommerce-product-gallery, .single-product .hc-woo div.product .summary { width: 100% !important; float: none !important; margin: 0 !important; }
.single-product .hc-woo div.product .woocommerce-tabs, .single-product .hc-woo div.product .related, .single-product .hc-woo div.product .up-sells { grid-column: 1 / -1; }
@media (max-width: 900px) { .single-product .hc-woo div.product { grid-template-columns: 1fr; } }
.single-product .product_title { font-size: 22px; font-weight: 700; line-height: 1.35; margin-bottom: 10px; }
.single-product .summary .price { color: var(--hc-primary) !important; font-size: 26px !important; font-weight: 700; margin: 10px 0 !important; }
.single-product .summary .price del { color: #999; font-size: 16px; font-weight: 400; }
.single-product .summary .price ins { text-decoration: none; }
.single-product .woocommerce-product-gallery { border: 1px solid #eee; border-radius: 16px; padding: 10px; }
.single-product .woocommerce-product-details__short-description { font-size: 14px; line-height: 1.7; border: 1px dashed #ddd; border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.single-product .woocommerce-product-details__short-description ul { list-style: disc; padding-left: 18px; }
.woocommerce .quantity .qty { height: 44px; border: 1px solid #ddd; border-radius: 8px; width: 70px; }
.woocommerce div.product form.cart .button, .woocommerce .single_add_to_cart_button { background: var(--hc-primary) !important; color: #fff !important; border-radius: 10px !important; height: 44px; padding: 0 30px !important; font-weight: 700; text-transform: uppercase; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0 !important; border-bottom: 2px solid #eee; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: none !important; border: 0 !important; border-radius: 0 !important; margin: 0 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom: 2px solid var(--hc-primary) !important; margin-bottom: -2px !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { font-weight: 700; text-transform: uppercase; font-size: 14px; }
.woocommerce div.product .woocommerce-tabs .panel { font-size: 14.5px; line-height: 1.75; }
.woocommerce div.product .woocommerce-tabs .panel img { height: auto; }
.woocommerce div.product .woocommerce-tabs .panel table td { border: 1px solid #eee; padding: 6px 10px; }
.related.products > h2, .up-sells > h2 { font-size: 20px; font-weight: 600; text-transform: uppercase; margin: 24px 0 10px; }
.woocommerce .button, .woocommerce button.button, .woocommerce a.button { background: var(--hc-primary); color: #fff; border-radius: 8px; }
.woocommerce .button:hover, .woocommerce button.button:hover, .woocommerce a.button:hover { background: var(--hc-secondary); color: #fff; }
.woocommerce .button.alt, .woocommerce button.button.alt { background: var(--hc-primary) !important; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--hc-primary) !important; }
.woocommerce span.onsale { background: var(--hc-primary); }

.hc-price-contact { color: var(--hc-primary); font-weight: 700; }
.hc-call-btn { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 14px; }
.hc-woo .woocommerce-breadcrumb { display: none; }
/* Reset CSS WooCommerce trong thẻ sản phẩm thp */
.woocommerce ul.products li.hc-loop-item h3 { padding: 0 !important; margin: 0 0 8px !important; font-size: 13px !important; line-height: 1.38 !important; height: 36px; }
.woocommerce ul.products li.hc-loop-item a img { margin: 0 !important; height: 100% !important; box-shadow: none !important; }
.woocommerce ul.products li.hc-loop-item .hc-cart-btn { padding: 0 !important; margin: 0 !important; }

/* Nút "Danh mục" trên header (trang con) */
/* Dropdown nằm sát ngay dưới nút (không còn khoảng hở), mở/đóng bằng JS có độ trễ */
.hc-menu-trigger .hc-menumega { display: none; position: absolute; left: 0; top: 100%; width: calc(min(100vw, 1485px) - 32px); max-width: 1200px; padding-top: 8px; height: 620px; z-index: 99; }
.hc-menu-trigger .hc-menumega::before { content: ""; position: absolute; left: 0; top: -6px; width: 260px; height: 16px; }
.hc-menu-trigger.is-open .hc-menumega { display: block; }
.hc-menu-trigger.is-open .btn-megamenu { border-color: var(--hc-primary); color: var(--hc-primary); }
@media (min-width: 1550px) { .hc-menu-trigger .hc-menumega { max-width: 1440px; } }
.hc-menumega ul { height: 100%; }

/* =========================================================
 * TRANG DANH MỤC SẢN PHẨM
 * ======================================================= */
.hc-cat-breadcrumb #breadcrumbs { margin: 0 0 8px; font-size: 14px; font-weight: 500; }
.hc-cat-breadcrumb #breadcrumbs a { color: #1250dc; }
.hc-cat-breadcrumb #breadcrumbs > span > span:first-child > a::before { content: "\f015"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free"; font-weight: 900; margin-right: 6px; }
.hc-cat-breadcrumb #breadcrumbs .breadcrumb_last { color: #000; }
.hc-cat-chips a.is-active, .hc-cat-mobilebar a.is-active { border-color: var(--hc-primary); color: var(--hc-primary); background: #fff5f5; }
.hc-cat-mobilebar { top: 92px; }
.hc-cat-banner .swiper-slide { height: 100%; }

/* Bộ lọc */
.hc-fsec.is-closed .hc-fsec-body { display: none; }
.hc-fsec.is-closed .hc-fsec-toggle i { transform: rotate(180deg); }
.hc-fsec-toggle i { transition: transform .2s; }
.hc-check .hc-check-box { border-color: #d1d5db; background: #fff; color: transparent; }
.hc-check:hover .hc-check-box { border-color: var(--hc-primary); }
.hc-check:hover { color: var(--hc-primary); }
.hc-check.is-checked .hc-check-box { border-color: var(--hc-primary); background: var(--hc-primary); color: #fff; box-shadow: 0 1px 2px rgba(237, 27, 36, .28); }
.hc-check.is-checked { color: var(--hc-primary); font-weight: 600; }
.hc-more-list.is-collapsed .hc-more-item.is-extra { display: none; }
.hc-more-btn { margin-top: 8px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: #86868b; background: none; border: 0; cursor: pointer; }
.hc-more-btn:hover { color: var(--hc-primary); }
.hc-price-input { width: 100%; min-width: 0; height: 30px; border: 1px solid #e5e7eb; border-radius: 6px; padding: 0 8px; font-size: 12px; text-align: center; outline: none; -moz-appearance: textfield; }
.hc-price-input:focus { border-color: var(--hc-primary); }
.hc-price-input::-webkit-outer-spin-button, .hc-price-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hc-switch.is-on { background: var(--hc-primary); }
.hc-switch span { transform: translateX(2px); }
.hc-switch.is-on span { transform: translateX(14px); }
.hc-filter-close { display: none; }

/* Mobile: sidebar thành ngăn kéo */
@media (max-width: 1023px) {
    .hc-filter.is-open { display: block !important; position: fixed; top: 0; left: 0; bottom: 0; width: 86%; max-width: 340px; z-index: 100002; }
    .hc-filter.is-open > div { max-height: 100vh; height: 100%; border-radius: 0; }
    .hc-filter.is-open .hc-filter-close { display: inline-flex; font-size: 18px; background: none; border: 0; }
    .hc-filter-overlay.is-open { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 100001; }
}

/* Nhóm sản phẩm theo danh mục con */
.hc-cat-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 4px 6px; }
.hc-cat-group-head h2 { font-size: 18px; font-weight: 600; text-transform: uppercase; margin: 0; }
.hc-cat-group-head h2 a:hover { color: var(--hc-primary); }
.hc-cat-group-head span { font-size: 12px; color: #86868b; }
.hc-cat-group .hc-row-track { cursor: grab; }

/* Lưới sản phẩm */
.hc-cat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 -6px; }
@media (max-width: 1279px) { .hc-cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .hc-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) { .hc-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hc-cat-empty { text-align: center; padding: 60px 16px; color: #666; border: 1px dashed #ddd; border-radius: 16px; }
.hc-cat-empty i { font-size: 46px; color: #ccc; margin-bottom: 10px; display: block; }

/* Mô tả danh mục */
.hc-desc-content { max-height: 180px; overflow: hidden; transition: max-height .3s; }
/* Lớp mờ cuối mô tả dùng :before của CSS gốc thp (tắt bằng class expanded / no-expand trên .static-html-group) */
.static-html-group .bg-content:before { height: 90px; pointer-events: none; z-index: 1; }
.static-html-group.expanded .hc-desc-content { max-height: none; }
.hc-desc-toggle:hover { background: var(--hc-primary); border-color: var(--hc-primary); color: #fff; }
@media (max-width: 767px) {
    main.mx-full { margin-top: 112px !important; }
    .hc-cat-mobilebar { top: 104px; }
}

/* Cây danh mục trong bộ lọc */
.hc-ctree { list-style: none; margin: 0; padding: 0; }
.hc-ctree .hc-ctree { display: none; margin-left: 10px; padding-left: 6px; border-left: 1px dashed #e5e7eb; }
.hc-ctree-item.is-open > .hc-ctree { display: block; }
.hc-ctree-row { display: flex; align-items: center; gap: 2px; }
.hc-ctree-link { flex: 1; min-width: 0; }
.hc-ctree-toggle { flex-shrink: 0; width: 22px; height: 22px; border: 0; background: none; color: #9ca3af; font-size: 9px; cursor: pointer; border-radius: 6px; }
.hc-ctree-toggle:hover { background: #f3f4f6; color: var(--hc-primary); }
.hc-ctree-toggle i { transition: transform .2s; }
.hc-ctree-item.is-open > .hc-ctree-row .hc-ctree-toggle i { transform: rotate(180deg); }

/* Nhánh chứa danh mục đang xem (khi đóng) */
.hc-ctree-item.has-current > .hc-ctree-row .hc-ctree-link { color: var(--hc-primary); font-weight: 600; }

/* Danh mục con phía trên banner */
.hc-subcats-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 1279px) { .hc-subcats-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .hc-subcats-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 767px) {
    .hc-subcats-grid { display: flex; overflow-x: auto; scrollbar-width: none; padding: 2px; }
    .hc-subcats-grid::-webkit-scrollbar { display: none; }
    .hc-subcat { flex: 0 0 104px; }
}
.hc-subcat { min-height: 92px; }
.hc-subcat img { width: 100px !important; height: 50px !important; max-width: 100%; object-fit: contain; }
.hc-subcats .hc-more-btn { display: flex; margin: 8px auto 0; }
@media (max-width: 767px) { .hc-subcats .hc-more-list.is-collapsed .hc-more-item.is-extra { display: flex; } .hc-subcats .hc-more-btn { display: none; } }

/* Thẻ sản phẩm: khung ảnh 4:3, ảnh căn giữa (ảnh THP chủ yếu nằm ngang) */
.hc-pcard-top { min-height: 0 !important; }
.hc-pcard-top > div:first-child { margin-bottom: 8px !important; }
.hc-pcard-top a.group\/item { margin-bottom: 0 !important; }
.hc-pcard-media { height: auto !important; aspect-ratio: 1 / 1; padding: 6px; background: #fff; }
.hc-pcard-media > div { height: 100% !important; width: 100% !important; display: flex; align-items: center; justify-content: center; }
img.hc-pcard-img { width: 100% !important; height: 100% !important; max-height: none; object-fit: contain; transform: scale(.96); transition: transform .3s; }
.group\/card:hover img.hc-pcard-img { transform: scale(1.04); }

/* =========================================================
 * TRANG CHI TIẾT SẢN PHẨM
 * ======================================================= */
.hc-single-bc #breadcrumbs { margin: 0; font-size: 14px; line-height: 40px; white-space: nowrap; color: #1f2937; }
.hc-single-bc #breadcrumbs a { color: #2563eb; font-weight: 500; }
.hc-single-bc #breadcrumbs a:hover { color: #1e40af; }
.hc-single-bc #breadcrumbs > span > span:first-child > a::before { content: "\f015"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free"; font-weight: 900; margin-right: 6px; }
.hc-single-bc #breadcrumbs .breadcrumb_last { font-weight: 500; color: #1f2937; }
.hc-bc-sep { margin: 0 10px; color: #9ca3af; }
.hc-single-bc { scrollbar-width: none; }

.hc-single-top { display: flex; gap: 16px; }
.hc-gallery-col { width: 50%; min-width: 0; }
.hc-info-col { width: 50%; }
@media (min-width: 768px) { .hc-gallery-col { position: sticky; top: 20px; align-self: flex-start; } }
@media (max-width: 767px) { .hc-single-top { flex-direction: column; } .hc-gallery-col, .hc-info-col { width: 100%; } }

/* Thư viện ảnh */
.hc-gallery { display: flex; gap: 10px; }
.hc-gallery-thumbs { width: 100px; flex: 0 0 100px; height: 480px; margin: 0 !important; }
.hc-gallery-thumbs .swiper-slide { height: 100px !important; cursor: pointer; }
.hc-gallery-thumb { width: 100px; height: 100px; object-fit: contain; border: 1px solid #e5e7eb; border-radius: 10px; padding: 4px; background: #fff; transition: border-color .2s; }
.hc-gallery-thumbs .swiper-slide-thumb-active .hc-gallery-thumb { border-color: var(--hc-primary); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.hc-gallery-main-wrap { flex: 1; min-width: 0; }
.hc-gallery-main { position: relative; width: 100%; aspect-ratio: 21 / 18; max-height: 480px; }
.hc-gallery-item { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.hc-gallery-item img { width: 100%; height: 100%; object-fit: contain; }
.hc-gallery-main .swiper-slide { height: auto; }
.hc-gallery-prev, .hc-gallery-next { position: absolute; top: 50%; z-index: 10; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 1px solid #e5e7eb; background: #fff; box-shadow: 0 4px 6px rgba(0, 0, 0, .1); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.hc-gallery-prev { left: 16px; } .hc-gallery-next { right: 16px; }
.hc-gallery-prev.swiper-button-disabled, .hc-gallery-next.swiper-button-disabled { opacity: .35; }
@media (max-width: 1023px) {
    /* Mobile/tablet: ảnh chính -> dải thumbnail -> ghi chú -> nút nhanh */
    .hc-gallery { flex-direction: column; }
    .hc-gallery-main-wrap { display: contents; }
    .hc-gallery-main { order: 1; }
    .hc-gallery-thumbs { order: 2; }
    .hc-gallery-main-wrap > p { order: 3; }
    .hc-quick-links { order: 4; }
    .hc-gallery-thumbs { width: 100%; flex-basis: auto; height: 80px; }
    .hc-gallery-thumbs .swiper-slide { width: 80px !important; height: 80px !important; }
    .hc-gallery-thumb { width: 80px; height: 80px; }
}

/* Nút nhanh dưới ảnh */
.hc-quick-links { display: flex; justify-content: center; gap: 15px; overflow-x: auto; margin-top: 10px; padding: 15px 10px 10px; background: #f4f4f4; border-radius: 20px; box-shadow: 0 0 15px rgba(0, 0, 0, .08); }
.hc-quick { display: flex; flex-direction: column; align-items: center; min-width: 80px; max-width: 91px; text-align: center; font-weight: 600; }
.hc-quick-icon { width: 55px; height: 55px; margin-bottom: 7px; border-radius: 20px; border: 1px solid transparent; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #1d1d20; transition: all .3s; }
.hc-quick-icon img { width: 100%; height: 100%; object-fit: cover; }
.hc-quick-text { font-size: 12px; line-height: 1.35; color: #1d1d20; transition: color .3s; }
.hc-quick:hover .hc-quick-icon { border-color: var(--hc-primary); color: var(--hc-primary); }
.hc-quick:hover .hc-quick-text { color: var(--hc-primary); }

/* Đánh giá dạng sao */
.hc-stars { position: relative; display: inline-block; font-size: 14px; letter-spacing: 1px; color: #e5e7eb; line-height: 1; }
.hc-stars span { position: relative; }
.hc-stars span::after { content: "★★★★★"; position: absolute; left: 0; top: 0; width: var(--hc-rate, 0%); overflow: hidden; color: #f59e0b; white-space: nowrap; }

/* Thông số nổi bật */
.hc-highlight-body { max-height: 125px; overflow: hidden; position: relative; transition: max-height .3s; }
.hc-highlight.is-open .hc-highlight-body { max-height: none; }
.hc-highlight.no-more .hc-highlight-toggle { display: none; }
.hc-short-desc ul { list-style: none; padding: 0; margin: 0; }
.hc-short-desc li { line-height: 1.8; }
.hc-short-desc li::before { content: "- "; }
.hc-short-desc p { margin: 0 0 4px; }
.hc-highlight-toggle:hover { background: #cfcfcf; }

/* Số lượng + mua */
.hc-qty { border: 1px solid #d8d8d8; border-radius: 12px; overflow: hidden; }
.hc-qty-btn { width: 32px; height: 32px; background: #fff; border: 0; font-size: 16px; cursor: pointer; }
.hc-qty-btn:hover { background: #f3f4f6; }
.hc-qty-input { width: 56px; height: 32px; border: 0; border-left: 1px solid #d8d8d8; border-right: 1px solid #d8d8d8; text-align: center; font-weight: 700; -moz-appearance: textfield; outline: none; }
.hc-qty-input::-webkit-outer-spin-button, .hc-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hc-add-cart:hover { background: repeating-linear-gradient(to right, #2d2b75 0%, red 100%); color: #fff; border-color: transparent; }
.hc-buy-now span { line-height: 1.4; }

/* Khuyến mãi */
.hc-promo-item { border-top: 1px solid #fff; }
.hc-promo-item summary { list-style: none; }
.hc-promo-item summary::-webkit-details-marker { display: none; }
.hc-promo-item[open] summary { background: #fff; }
.hc-promo-caret { transition: transform .3s; }
.hc-promo-item[open] .hc-promo-caret { transform: rotate(180deg); }
.promo-html-content ul { list-style: disc; padding-left: 18px; margin: 0; }
.promo-html-content li { margin-bottom: 6px; }
.promo-html-content strong { color: #ed1b24; }
.promo-html-content p { margin: 0 0 6px; }

/* Mô tả sản phẩm */
.hc-pdesc-content { max-height: 600px; overflow: hidden; }
.hc-pdesc-content img { max-width: 100%; height: auto; margin: 12px auto; display: block; border-radius: 8px; }
.hc-pdesc-content table { width: 100% !important; }
.hc-pdesc-content iframe { max-width: 100%; }
.hc-pdesc-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, #fff); pointer-events: none; }
.hc-pdesc.is-open .hc-pdesc-content { max-height: none; }
.hc-pdesc.is-open .hc-pdesc-fade, .hc-pdesc.no-more .hc-pdesc-fade { display: none; }
.hc-pdesc-toggle:hover { background: var(--hc-primary); border-color: var(--hc-primary); color: #fff; }

/* Thông số kỹ thuật */
.hc-specs { max-height: 683px; overflow: hidden; }
.hc-specs.is-open { max-height: none; }
.hc-spec-name { width: 38%; font-weight: 500; }
.hc-specs td p { margin: 0; }
.hc-specs-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(transparent, #fff); pointer-events: none; }
.hc-specs.is-open .hc-specs-fade, .hc-specs.no-more .hc-specs-fade { display: none; }
.hc-specs.no-more + .hc-specs-toggle { display: none; }
.hc-rp-img { max-height: 220px; object-fit: cover; }

/* Đánh giá */
.hc-rating-summary { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: center; padding: 10px 0 16px; }
@media (max-width: 640px) { .hc-rating-summary { grid-template-columns: 1fr; } }
.hc-rating-avg { text-align: center; }
.hc-rating-avg p { font-size: 28px; color: #fe302e; line-height: 40px; margin: 0; }
.hc-rating-avg > span { display: block; font-size: 14px; color: #6c727d; margin-bottom: 4px; }
.hc-review-btn { display: inline-block; margin-top: 8px; background: #2d88dc; color: #fff; border-radius: 6px; padding: 7px 26px; font-weight: 700; font-size: 13px; }
.hc-review-btn:hover { color: #fff; opacity: .9; }
.hc-rating-row { display: grid; grid-template-columns: 40px 1fr 80px; gap: 8px; align-items: center; font-size: 13px; }
.hc-rating-row i.fa-star { color: #d1d5db; font-size: 12px; }
.hc-rating-bar { height: 8px; background: #eee; border-radius: 10px; overflow: hidden; }
.hc-rating-bar i { display: block; height: 100%; background: #f59e0b; }
.hc-rating-row em { font-style: normal; color: #2d88dc; font-weight: 600; }
.hc-reviews .woocommerce-Reviews-title { font-size: 15px; font-weight: 600; margin: 10px 0; }
.hc-reviews #review_form_wrapper { background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; margin-top: 12px; }
.hc-reviews .comment-reply-title { font-size: 16px; font-weight: 600; display: block; margin-bottom: 10px; }
.hc-reviews textarea, .hc-reviews input[type=text], .hc-reviews input[type=email] { width: 100%; border: 1px solid #d1d5db; border-radius: 8px; padding: 8px 10px; }
.hc-reviews .form-submit input { background: #2563eb !important; color: #fff !important; border-radius: 10px !important; padding: 10px 24px !important; border: 0; }
.hc-reviews .commentlist { list-style: none; padding: 0; }
.hc-reviews .commentlist li { border-bottom: 1px solid #eee; padding: 10px 0; }
.hc-reviews .commentlist img.avatar { width: 40px; height: 40px; border-radius: 50%; float: left; margin-right: 10px; }
.hc-reviews .stars a { color: #f59e0b; }

/* Thanh mua nhanh dính dưới */
.hc-sticky-buy { position: fixed; left: 50%; bottom: 12px; z-index: 58; width: 95%; max-width: 900px; transform: translate(-50%, 140%); transition: transform .3s; }
.hc-sticky-buy.is-show { transform: translate(-50%, 0); }
.hc-sticky-buy__inner { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #fff; border-radius: 16px; box-shadow: 0 -4px 20px rgba(0, 0, 0, .18); border: 1px solid #eee; }
.hc-sticky-buy__inner img { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; flex-shrink: 0; }
.hc-sticky-buy__name { min-width: 0; flex: 1; }
.hc-sticky-buy__name h2 { font-size: 14px; font-weight: 700; color: #000; margin: 0; }
.hc-sticky-buy__name p { font-size: 11px; color: #6b7280; margin: 2px 0 0; }
.hc-sticky-buy__price { display: flex; flex-direction: column; text-align: right; flex-shrink: 0; }
.hc-sticky-buy__price strong { font-size: 18px; color: #000; }
.hc-sticky-buy__price span { font-size: 11px; color: #6b7280; }
.hc-sticky-buy__btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 10px; background: linear-gradient(to right, #cc181e, var(--hc-primary)); color: #fff; font-weight: 800; font-size: 13px; box-shadow: 0 6px 15px rgba(236, 28, 36, .45); }
.hc-sticky-buy__btn:hover { color: #fff; transform: scale(1.03); }
@media (max-width: 640px) { .hc-sticky-buy__name { display: none; } .hc-sticky-buy { bottom: 0; width: 100%; } .hc-sticky-buy__inner { border-radius: 16px 16px 0 0; } }
.hc-lightbox__inner { position: relative; width: 1000px; max-width: 100%; height: 80vh; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 16px; }
.hc-lightbox__inner img { max-width: 92%; max-height: 92%; object-fit: contain; }
.hc-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.hc-lightbox__nav.prev { left: 12px; } .hc-lightbox__nav.next { right: 12px; }

.hc-add-cart { white-space: nowrap; }
@media (max-width: 640px) { .hc-buy-form .hc-add-cart { flex: 1; margin-right: 0; padding: 0 12px; } .hc-buy-form > div:first-child { flex-wrap: wrap; } }

/* =========================================================
 * TIN TỨC
 * ======================================================= */
.hc-news-bc #breadcrumbs { margin: 0 0 8px; padding-left: 8px; font-size: 14px; }
.hc-news-bc #breadcrumbs a { font-weight: 600; color: rgb(34, 34, 34); }
.hc-news-bc #breadcrumbs a:hover { color: var(--hc-primary); }
.hc-news-bc #breadcrumbs .breadcrumb_last, .hc-news-bc #breadcrumbs > span > span:not(:first-child) a { font-weight: 600; color: rgb(36, 58, 118); }
.hc-news-bc .hc-bc-sep { margin: 0 4px; color: #4b5563; }
.hc-news-chips { scrollbar-width: none; }
.hc-news-chips::-webkit-scrollbar { display: none; }
.hc-more-line::before, .hc-more-line::after { content: ""; flex: 1; height: 2px; background: #e5e7eb; }
.hc-more-line a { margin: 0 12px; }
.hc-news-grid-title { min-height: 46px; }

/* Nội dung bài viết */
.hc-post-content #toc_container { display: none !important; }
.hc-post-content img { max-width: 100%; height: auto; }
.hc-post-content h2, .hc-post-content h3 { scroll-margin-top: 90px; }
.hc-post-content iframe { max-width: 100%; }
.hc-post-content table { width: 100% !important; }
.hc-toc-sub a { padding-left: 22px !important; }
.hc-toc.is-closed .hc-toc-body { display: none; }
.hc-toc.is-closed .hc-toc-toggle i { transform: rotate(180deg); }
.hc-toc a.is-active .hc-toc-num { background: var(--hc-primary); }
.hc-toc a.is-active span:last-child { color: var(--hc-primary); }
.hc-toc-mobile { border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; margin: 6px 0; }
.hc-toc-mobile summary { background: #243a76; color: #fff; font-weight: 700; padding: 10px 14px; cursor: pointer; list-style: none; }
.hc-toc-mobile summary::-webkit-details-marker { display: none; }
.hc-toc-mobile ol { padding: 10px 14px 10px 32px; margin: 0; list-style: decimal; }
.hc-toc-mobile li { padding: 3px 0; font-size: 14px; }
.hc-toc-mobile li.hc-toc-sub { list-style: circle; margin-left: 14px; }
.hc-toc-mobile a { color: #1f2937; }
.hc-post-comments .comment-reply-title { font-size: 18px; font-weight: 700; }
.hc-post-comments textarea, .hc-post-comments input[type=text], .hc-post-comments input[type=email], .hc-post-comments input[type=url] { width: 100%; border: 1px solid #d1d5db; border-radius: 8px; padding: 8px 10px; }
.hc-post-comments input[type=submit] { background: var(--hc-secondary); color: #fff; border: 0; border-radius: 8px; padding: 9px 22px; font-weight: 700; cursor: pointer; }

/* Dải danh mục nổi bật cuối bài */
.hc-pcat-strip { display: flex; align-items: stretch; gap: 10px; border-top: 4px solid #2d2b75; border-bottom: 4px solid #2d2b75; padding: 12px 0; }
.hc-pcat-strip__label { flex: 0 0 135px; display: flex; align-items: center; justify-content: center; text-align: center; background: #2d2b75; color: #fff; font-weight: 700; font-size: 14px; border-radius: 8px; }
.hc-pcat-item { flex: 0 0 135px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border: 1px solid #eee; border-radius: 10px; background: #fff; text-align: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .05); }
.hc-pcat-item img { width: 70px; height: 50px; object-fit: contain; }
.hc-pcat-item span { font-size: 12.5px; font-weight: 600; line-height: 1.3; color: #333; }
.hc-pcat-item:hover span { color: var(--hc-primary); }
.hc-pcat-strip__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 1px solid #ddd; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.hc-pcat-strip__nav.prev { left: -6px; } .hc-pcat-strip__nav.next { right: -6px; }
@media (max-width: 640px) { .hc-pcat-strip__label { display: none; } }
@media (min-width: 1024px) { .hc-toc-mobile { display: none !important; } }
.bg-\[\#eceff3\] { background-color: #eceff3; }
/* Thẻ bài liên quan trong bài viết: không chịu ảnh hưởng CSS nội dung bài */
.blog-ver-2020 .group h3 { font-size: 15px !important; line-height: 22px !important; margin: 8px 0 0 !important; font-weight: 600; }
.blog-ver-2020 .group p { font-size: 13px !important; line-height: 19px !important; margin: 8px 0 4px !important; }
.hc-post-comments label { font-weight: 600; font-size: 14px; }
.hc-post-comments .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; }
.hc-post-comments .comment-form-cookies-consent input { width: 16px !important; height: 16px; margin-top: 3px; flex-shrink: 0; }
.hc-post-comments .comment-form-cookies-consent label { font-weight: 400; }
.hc-post-comments input[type=submit] { background: var(--hc-secondary) !important; }

/* Chuyên mục tin tức cấp cuối */
.hc-leaf-card .hc-leaf-title { color: #1d1d20; }
.hc-leaf-card:hover .hc-leaf-title { color: rgb(36, 58, 118); }
.hc-leaf-card .hc-leaf-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; padding: 0; margin-bottom: 12px !important; line-height: 1.5; }
/* Chiều cao đúng 3 dòng để không lộ dòng thứ 4 */
.hc-leaf-card .hc-leaf-excerpt { min-height: 4.5em !important; max-height: 4.5em; }
@media (max-width: 639px) { .hc-leaf-card .hc-leaf-excerpt { font-size: 11px; } .hc-leaf-card .hc-leaf-title { font-size: 13px; } }
.hc-leaf-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 12px; background: #f4f4f5; color: #11181c; font-size: 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); transition: background .2s; }
.hc-leaf-pagination a.page-numbers:hover { background: #e4e4e7; }
.hc-leaf-pagination .page-numbers.current { background: #006fee; color: #fff; }
.hc-leaf-pagination .page-numbers.dots { background: #f4f4f5; }

/* Trang sản phẩm: phần dưới chia 6/4 (mô tả | thông số + bài viết liên quan) */
@media (min-width: 768px) {
    .hc-pd-left { width: 60%; }
    .hc-pd-right { width: 40%; }
}

/* =========================================================
 * TRANG THANH TOÁN
 * ======================================================= */
.hc-checkout-page { background: #f4f4f4; }
.hc-checkout-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 16px; padding: 16px 20px; background: #fff; border-radius: 20px; box-shadow: 0 1px 4px rgba(0, 0, 0, .04); }
.hc-checkout-head h1 { font-size: 22px; font-weight: 700; color: #1d1d20; display: flex; align-items: center; gap: 10px; margin: 0; }
.hc-checkout-head h1 i { color: var(--hc-primary); }
.hc-steps { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: 13px; font-weight: 600; color: #9ca3af; }
.hc-steps li { display: flex; align-items: center; gap: 8px; }
.hc-steps li + li::before { content: ""; width: 34px; height: 2px; background: #e5e7eb; border-radius: 2px; }
.hc-steps li span { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #e5e7eb; color: #6b7280; font-size: 12px; }
.hc-steps li a { display: flex; align-items: center; gap: 8px; color: inherit; }
.hc-steps li.is-done { color: var(--hc-secondary); }
.hc-steps li.is-done span { background: var(--hc-secondary); color: #fff; }
.hc-steps li.is-current { color: var(--hc-primary); }
.hc-steps li.is-current span { background: var(--hc-primary); color: #fff; box-shadow: 0 0 0 4px rgba(var(--hc-primary-rgb) / .15); }
@media (max-width: 640px) { .hc-steps { font-size: 11px; } .hc-steps li + li::before { width: 14px; } }

/* Thông báo WooCommerce */
.hc-checkout-page .woocommerce-notices-wrapper:empty { display: none; }
.hc-checkout-page .woocommerce-message, .hc-checkout-page .woocommerce-info, .hc-checkout-page .woocommerce-error { background: #fff; border: 0 !important; border-left: 4px solid var(--hc-primary) !important; border-radius: 14px; margin: 0 0 14px !important; padding: 14px 18px 14px 48px !important; box-shadow: 0 1px 4px rgba(0, 0, 0, .04); font-size: 14px; }
.hc-checkout-page .woocommerce-message::before, .hc-checkout-page .woocommerce-info::before { top: 14px !important; left: 18px !important; color: var(--hc-primary) !important; }
.hc-checkout-page .woocommerce-message .button { border-radius: 10px !important; padding: 7px 16px !important; font-size: 13px; }
.hc-checkout-page .woocommerce-form-coupon-toggle .woocommerce-info { border-left-color: var(--hc-secondary) !important; }
.hc-checkout-page .woocommerce-form-coupon-toggle .woocommerce-info::before { color: var(--hc-secondary) !important; }
.hc-checkout-page form.checkout_coupon { background: #fff; border: 1px dashed #d1d5db !important; border-radius: 14px; padding: 16px !important; margin: 0 0 14px !important; }

/* Bố cục 2 cột */
.hc-checkout__grid { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 16px; align-items: start; }
@media (max-width: 1023px) { .hc-checkout__grid { grid-template-columns: 1fr; } }
.hc-checkout__side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 1023px) { .hc-checkout__side { position: static; } }
.hc-checkout__customer { display: flex; flex-direction: column; gap: 16px; }
.hc-card { background: #fff; border-radius: 20px; padding: 20px; box-shadow: 0 1px 4px rgba(0, 0, 0, .04); }
.hc-checkout .col2-set, .hc-checkout .col-1, .hc-checkout .col-2 { width: 100% !important; float: none !important; }

/* Tiêu đề các khối */
.hc-checkout h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: #1d1d20; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid #eee; }
.hc-checkout .woocommerce-billing-fields > h3::before { content: "\f007"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free"; font-weight: 900; color: var(--hc-primary); }
.hc-checkout .woocommerce-additional-fields > h3::before { content: "\f249"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free"; font-weight: 900; color: var(--hc-primary); }
.hc-checkout #order_review_heading i { color: var(--hc-primary); }
.hc-checkout #ship-to-different-address { border: 0; margin: 0 0 4px; padding: 0; font-size: 15px; }
.hc-checkout #ship-to-different-address label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.hc-checkout #ship-to-different-address input { width: 18px; height: 18px; accent-color: var(--hc-primary); }
.hc-checkout .shipping_address { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #e5e7eb; }
.hc-checkout .woocommerce-additional-fields { margin-top: 16px; }

/* Ô nhập */
.hc-checkout .form-row { margin: 0 0 14px !important; padding: 0 !important; }
.hc-checkout .woocommerce-billing-fields__field-wrapper, .hc-checkout .woocommerce-shipping-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.hc-checkout .form-row-wide, .hc-checkout #billing_address_2_field, .hc-checkout #shipping_address_2_field { grid-column: 1 / -1; }
.hc-checkout .form-row-first, .hc-checkout .form-row-last { width: auto !important; float: none !important; }
@media (max-width: 640px) { .hc-checkout .woocommerce-billing-fields__field-wrapper, .hc-checkout .woocommerce-shipping-fields__field-wrapper { grid-template-columns: 1fr; } }
.hc-checkout .form-row label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; line-height: 1.4; }
.hc-checkout .form-row .required { color: var(--hc-primary); text-decoration: none; }
.hc-checkout .form-row .optional { font-weight: 400; color: #9ca3af; }
.hc-checkout .input-text, .hc-checkout select, .hc-checkout textarea, .hc-checkout .select2-container .select2-selection--single { width: 100%; height: 44px; border: 1px solid #e5e7eb !important; border-radius: 12px !important; background: #f9fafb; padding: 0 14px; font-size: 14px; color: #1d1d20; transition: border-color .2s, box-shadow .2s, background .2s; outline: none; }
.hc-checkout textarea { height: 96px; padding: 10px 14px; resize: vertical; }
.hc-checkout .input-text:focus, .hc-checkout select:focus, .hc-checkout textarea:focus { border-color: var(--hc-primary) !important; background: #fff; box-shadow: 0 0 0 3px rgba(var(--hc-primary-rgb) / .12); }
.hc-checkout .select2-container .select2-selection--single .select2-selection__rendered { line-height: 42px; padding: 0; }
.hc-checkout .select2-container .select2-selection--single .select2-selection__arrow { height: 42px; right: 8px; }
.hc-checkout .form-row.woocommerce-invalid .input-text { border-color: #ef4444 !important; }
.hc-checkout .woocommerce-account-fields .create-account label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.hc-checkout .woocommerce-account-fields input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--hc-primary); }
.hc-checkout #billing_country_field strong, .hc-checkout #shipping_country_field strong { display: block; height: 44px; line-height: 44px; padding: 0 14px; border-radius: 12px; background: #f3f4f6; font-weight: 600; }

/* Đơn hàng của bạn */
.hc-checkout table.shop_table { border: 0 !important; border-radius: 0 !important; margin: 0 0 14px !important; border-collapse: collapse; width: 100%; font-size: 14px; }
.hc-checkout table.shop_table th, .hc-checkout table.shop_table td { border: 0 !important; border-bottom: 1px solid #f0f0f0 !important; padding: 12px 0 !important; vertical-align: middle; background: none !important; }
.hc-checkout table.shop_table thead { display: none; }
.hc-checkout table.shop_table td.product-total, .hc-checkout table.shop_table tfoot td { text-align: right; font-weight: 600; white-space: nowrap; }
.hc-checkout table.shop_table tfoot th { font-weight: 500; color: #4b5563; }
.hc-checkout table.shop_table tr.order-total th { font-size: 15px; color: #1d1d20; font-weight: 700; border-bottom: 0 !important; }
.hc-checkout table.shop_table tr.order-total td { font-size: 22px; color: var(--hc-primary); font-weight: 800; border-bottom: 0 !important; }
.hc-checkout table.shop_table tr.order-total td strong { font-weight: 800; }
.hc-co-item { display: flex; align-items: center; gap: 10px; }
.hc-co-thumb { width: 56px !important; height: 56px !important; object-fit: contain; border: 1px solid #eee; border-radius: 10px; padding: 3px; background: #fff; flex-shrink: 0; }
.hc-co-name { line-height: 1.4; font-weight: 500; }
.hc-checkout .product-quantity { color: var(--hc-primary); font-weight: 700; }
.hc-checkout tr.woocommerce-shipping-totals td, .hc-checkout tr.woocommerce-shipping-totals th { vertical-align: top; }
.hc-checkout tr.woocommerce-shipping-totals { display: flex; flex-direction: column; }
.hc-checkout tr.woocommerce-shipping-totals th { padding-bottom: 6px !important; border-bottom: 0 !important; text-align: left; }
.hc-checkout tr.woocommerce-shipping-totals td { text-align: left !important; white-space: normal !important; font-weight: 400 !important; padding-top: 0 !important; }
.hc-checkout ul#shipping_method { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hc-checkout ul#shipping_method li { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 12px; font-size: 13px; line-height: 1.45; margin: 0 !important; }
.hc-checkout ul#shipping_method li input { margin: 2px 0 0 !important; accent-color: var(--hc-primary); flex-shrink: 0; }
.hc-checkout ul#shipping_method li:has(input:checked) { border-color: var(--hc-primary); background: #fff5f5; }

/* Thanh toán */
.hc-checkout #payment { background: none !important; border-radius: 0 !important; }
.hc-checkout #payment ul.payment_methods { padding: 0 !important; border: 0 !important; margin: 0 0 12px !important; display: flex; flex-direction: column; gap: 8px; }
.hc-checkout #payment ul.payment_methods li { list-style: none; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px 14px !important; margin: 0 !important; background: #fff; line-height: 1.4; }
.hc-checkout #payment ul.payment_methods li:has(input:checked) { border-color: var(--hc-primary); background: #fff5f5; }
.hc-checkout #payment ul.payment_methods li > input { accent-color: var(--hc-primary); margin-right: 6px; }
.hc-checkout #payment ul.payment_methods li label { font-weight: 600; font-size: 14px; cursor: pointer; }
.hc-checkout #payment div.payment_box { background: #f9fafb !important; border-radius: 10px; margin: 10px 0 0 !important; padding: 10px 12px !important; font-size: 13px; color: #4b5563; }
.hc-checkout #payment div.payment_box::before { display: none; }
.hc-checkout #payment div.form-row { padding: 0 !important; margin: 0 !important; }
.hc-checkout .woocommerce-privacy-policy-text { font-size: 12px; color: #6b7280; margin-bottom: 12px; }
.hc-checkout .woocommerce-privacy-policy-text a { color: var(--hc-secondary); }
.hc-checkout #place_order { width: 100%; float: none !important; height: 56px; border: 0; border-radius: 16px !important; background: var(--hc-primary) !important; color: #fff !important; font-size: 16px !important; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; box-shadow: 0 8px 20px rgba(var(--hc-primary-rgb) / .35); transition: filter .2s, transform .2s; }
.hc-checkout #place_order:hover { filter: brightness(1.08); transform: translateY(-1px); }
.hc-checkout__help { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: #fff; font-size: 13px; color: #4b5563; box-shadow: 0 1px 4px rgba(0, 0, 0, .04); }
.hc-checkout__help i { width: 38px; height: 38px; border-radius: 50%; background: #fff1f2; color: var(--hc-primary); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.hc-checkout__help a { color: var(--hc-primary); font-weight: 700; }
.hc-checkout .blockUI.blockOverlay { border-radius: 20px; }
/* Chỉnh thêm trang thanh toán */
.hc-checkout tr.woocommerce-shipping-totals td, .hc-checkout tr.woocommerce-shipping-totals th { width: 100%; }
.hc-checkout ul#shipping_method { width: 100%; }
.hc-checkout td.product-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hc-checkout td.product-name .hc-co-item { flex: 1; min-width: 0; }
.hc-checkout #shipping_country_field .woocommerce-input-wrapper, .hc-checkout #billing_country_field .woocommerce-input-wrapper { display: block; }
@media (max-width: 640px) {
    .hc-checkout-head { padding: 14px; }
    .hc-steps { width: 100%; justify-content: space-between; }
    .hc-steps li:not(.is-current) a, .hc-steps li:not(.is-current) { font-size: 0; gap: 0; }
    .hc-steps li span { font-size: 12px; }
    .hc-steps li + li::before { flex: 1; width: auto; min-width: 20px; }
    .hc-steps li.is-current { font-size: 12px; gap: 6px; }
}
/* Bảng đơn hàng dạng khối: mỗi dòng full chiều ngang */
.hc-checkout table.shop_table, .hc-checkout table.shop_table tbody, .hc-checkout table.shop_table tfoot { display: block; width: 100%; }
.hc-checkout table.shop_table tr { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #f0f0f0; }
.hc-checkout table.shop_table th, .hc-checkout table.shop_table td { border-bottom: 0 !important; }
.hc-checkout table.shop_table tr.order-total { border-bottom: 0; }
.hc-checkout table.shop_table td.product-name { flex: 1; }
.hc-checkout tr.woocommerce-shipping-totals { flex-direction: column; align-items: stretch; }

/* =======================================================
 * TRANG GIỎ HÀNG (dùng chung khung .hc-checkout-page)
 * ======================================================= */
.hc-cart__grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; align-items: start; }
@media (max-width: 1023px) { .hc-cart__grid { grid-template-columns: 1fr; } }
.hc-cart__side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 12px; width: 100% !important; float: none !important; }
@media (max-width: 1023px) { .hc-cart__side { position: static; } }
.hc-cart-page .woocommerce-message, .hc-cart-page .woocommerce-info, .hc-cart-page .woocommerce-error { background: #fff; border: 0 !important; border-left: 4px solid var(--hc-primary) !important; border-radius: 14px; margin: 0 0 14px !important; padding: 14px 18px 14px 48px !important; box-shadow: 0 1px 4px rgba(0, 0, 0, .04); font-size: 14px; }
.hc-cart-page .woocommerce-message::before, .hc-cart-page .woocommerce-info::before { top: 14px !important; left: 18px !important; color: var(--hc-primary) !important; }
.hc-cart-page .woocommerce-message a.restore-item { color: var(--hc-primary); font-weight: 600; margin-left: 6px; }

/* Danh sách sản phẩm */
.hc-cart-form { padding: 0 !important; overflow: hidden; }
.hc-cart-form__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid #eee; }
.hc-cart-form__head h2 { font-size: 17px; font-weight: 700; color: #1d1d20; display: flex; align-items: center; gap: 10px; margin: 0; }
.hc-cart-form__head h2 i { color: var(--hc-primary); }
.hc-cart-form__head h2 span { color: #6b7280; font-weight: 500; font-size: 14px; }
.hc-cart-form__continue { font-size: 13px; font-weight: 600; color: var(--hc-secondary); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.hc-cart-form__continue:hover { color: var(--hc-primary); }
.hc-cart-list { border: 0 !important; margin: 0 !important; border-radius: 0 !important; }
.hc-cart-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) 130px 150px 40px; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid #f0f0f0; transition: background .2s; }
.hc-cart-item:hover { background: #fcfcfd; }
.hc-cart-item__img a, .hc-cart-item__img > img { display: block; }
.hc-cart-item__img img { width: 96px !important; height: 96px !important; object-fit: contain; border: 1px solid #eee; border-radius: 14px; padding: 6px; background: #fff; }
.hc-cart-item__info { min-width: 0; font-size: 14px; line-height: 1.45; }
.hc-cart-item__info > a { font-weight: 600; color: #1d1d20; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hc-cart-item__info > a:hover { color: var(--hc-primary); }
.hc-cart-item__sku { font-size: 12px; color: #9ca3af; margin-top: 4px; }
.hc-cart-item__price { margin-top: 6px; font-size: 13px; color: #4b5563; }
.hc-cart-item__price .amount { font-weight: 600; }
.hc-cart-item__subtotal { text-align: right; font-size: 16px; font-weight: 800; color: var(--hc-primary); white-space: nowrap; }
.hc-cart-item__remove { text-align: center; }
.hc-cart-item__remove a.remove { display: inline-flex !important; align-items: center; justify-content: center; width: 36px !important; height: 36px !important; border-radius: 50% !important; font-size: 15px !important; color: #9ca3af !important; background: #f3f4f6; transition: background .2s, color .2s; }
.hc-cart-item__remove a.remove:hover { background: #fee2e2 !important; color: var(--hc-primary) !important; }

/* Ô số lượng +/- */
.hc-cart-item .quantity { display: inline-flex; align-items: center; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: #fff; }
.hc-cart-item .quantity .qty { width: 46px; height: 36px; border: 0 !important; text-align: center; font-weight: 700; font-size: 14px; background: transparent; -moz-appearance: textfield; outline: none; padding: 0; }
.hc-cart-item .quantity .qty::-webkit-inner-spin-button, .hc-cart-item .quantity .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.hc-cart-item .hc-q-btn { width: 34px; height: 36px; border: 0; background: #fff; color: #374151; font-size: 13px; cursor: pointer; transition: background .2s, color .2s; }
.hc-cart-item .hc-q-btn:hover { background: #f3f4f6; color: var(--hc-primary); }

/* Mã giảm giá + cập nhật */
.hc-cart-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: #fafafa; }
.hc-cart-actions .coupon { display: flex; align-items: center; gap: 8px; flex: 1; max-width: 460px; position: relative; }
.hc-cart-actions .coupon > i { position: absolute; left: 14px; color: var(--hc-secondary); pointer-events: none; }
.hc-cart-actions .coupon .input-text { flex: 1; min-width: 0; height: 42px; border: 1px dashed #cbd5e1 !important; border-radius: 12px; padding: 0 14px 0 40px; font-size: 14px; background: #fff; outline: none; }
.hc-cart-actions .coupon .input-text:focus { border-color: var(--hc-secondary) !important; border-style: solid !important; }
.hc-cart-actions .button { height: 42px; padding: 0 18px !important; border-radius: 12px !important; font-size: 14px !important; font-weight: 700 !important; border: 0; cursor: pointer; white-space: nowrap; }
.hc-cart-actions .coupon .button { background: var(--hc-secondary) !important; color: #fff !important; }
.hc-cart-actions .hc-cart-update { background: #fff !important; color: #374151 !important; border: 1px solid #e5e7eb !important; display: inline-flex; align-items: center; gap: 8px; }
.hc-cart-actions .hc-cart-update:not(:disabled):hover { border-color: var(--hc-primary) !important; color: var(--hc-primary) !important; }
.hc-cart-actions .hc-cart-update:disabled { opacity: .55 !important; cursor: default; }

/* Tổng tiền */
.hc-cart-page .cart_totals { width: 100% !important; float: none !important; background: #fff; border-radius: 20px; padding: 20px; box-shadow: 0 1px 4px rgba(0, 0, 0, .04); }
.hc-cart-page .cart_totals h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: #1d1d20; margin: 0 0 6px; padding-bottom: 12px; border-bottom: 1px solid #eee; }
.hc-cart-page .cart_totals h2::before { content: "\f543"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free"; font-weight: 900; color: var(--hc-primary); }
.hc-cart-page .cart_totals table.shop_table { border: 0 !important; margin: 0 0 16px !important; display: block; width: 100%; font-size: 14px; }
.hc-cart-page .cart_totals table.shop_table tbody { display: block; width: 100%; }
.hc-cart-page .cart_totals table.shop_table tr { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #f0f0f0; }
.hc-cart-page .cart_totals table.shop_table th, .hc-cart-page .cart_totals table.shop_table td { border: 0 !important; padding: 12px 0 !important; background: none !important; }
.hc-cart-page .cart_totals table.shop_table th { font-weight: 500; color: #4b5563; text-align: left; }
.hc-cart-page .cart_totals table.shop_table td { text-align: right; font-weight: 600; }
.hc-cart-page .cart_totals table.shop_table td::before { display: none !important; }
.hc-cart-page .cart_totals tr.order-total { border-bottom: 0 !important; }
.hc-cart-page .cart_totals tr.order-total th { font-size: 15px; font-weight: 700; color: #1d1d20; }
.hc-cart-page .cart_totals tr.order-total td { font-size: 22px; font-weight: 800; color: var(--hc-primary); }
.hc-cart-page .cart_totals tr.order-total td strong { font-weight: 800; }
.hc-cart-page .cart_totals tr.order-total td small { display: block; font-size: 12px; color: #6b7280; font-weight: 400; }
.hc-cart-page .cart_totals tr.woocommerce-shipping-totals { flex-direction: column; align-items: stretch; }
.hc-cart-page .cart_totals tr.woocommerce-shipping-totals th { padding-bottom: 6px !important; }
.hc-cart-page .cart_totals tr.woocommerce-shipping-totals td { text-align: left; font-weight: 400; padding-top: 0 !important; width: 100%; }
.hc-cart-page .cart_totals ul#shipping_method { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hc-cart-page .cart_totals ul#shipping_method li { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 12px; font-size: 13px; line-height: 1.45; margin: 0 !important; text-align: left; }
.hc-cart-page .cart_totals ul#shipping_method li input { margin: 2px 0 0 !important; accent-color: var(--hc-primary); flex-shrink: 0; }
.hc-cart-page .cart_totals ul#shipping_method li:has(input:checked) { border-color: var(--hc-primary); background: #fff5f5; }
.hc-cart-page .cart_totals .woocommerce-shipping-destination, .hc-cart-page .cart_totals .woocommerce-shipping-calculator { font-size: 12px; color: #6b7280; margin: 8px 0 0; text-align: left; }
.hc-cart-page .cart_totals .shipping-calculator-button { color: var(--hc-secondary); font-weight: 600; }
.hc-cart-page .wc-proceed-to-checkout { padding: 0 !important; }
.hc-cart-page .wc-proceed-to-checkout a.checkout-button { display: flex !important; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 56px; margin: 0 !important; padding: 0 !important; border-radius: 16px !important; background: var(--hc-primary) !important; color: #fff !important; font-size: 16px !important; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; box-shadow: 0 8px 20px rgba(var(--hc-primary-rgb) / .35); transition: filter .2s, transform .2s; }
.hc-cart-page .wc-proceed-to-checkout a.checkout-button::after { content: "\f061"; font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free"; font-weight: 900; font-size: 15px; }
.hc-cart-page .wc-proceed-to-checkout a.checkout-button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.hc-cart-page .blockUI.blockOverlay { border-radius: 20px; }

/* Bán kèm */
.hc-cart-page .cross-sells { margin-top: 20px; background: #fff; border-radius: 20px; padding: 20px; width: 100% !important; float: none !important; }
.hc-cart-page .cross-sells > h2 { font-size: 18px; font-weight: 700; margin: 0 0 14px; }

/* Giỏ trống */
.hc-cart-empty { text-align: center; padding: 48px 20px !important; max-width: 640px; margin: 0 auto; }
.hc-cart-empty__icon { width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 50%; background: #fff1f2; color: var(--hc-primary); display: flex; align-items: center; justify-content: center; font-size: 40px; }
.hc-cart-empty h2 { font-size: 20px; font-weight: 700; margin: 0 0 6px; color: #1d1d20; }
.hc-cart-empty > p { color: #6b7280; font-size: 14px; margin: 0 0 18px; }
.hc-cart-empty .return-to-shop a.button { display: inline-flex !important; align-items: center; gap: 8px; height: 48px; padding: 0 28px !important; border-radius: 14px !important; background: var(--hc-primary) !important; color: #fff !important; font-weight: 700; font-size: 15px; box-shadow: 0 8px 20px rgba(var(--hc-primary-rgb) / .3); }
.hc-cart-empty .hc-cart-empty__help { margin: 18px 0 0; font-size: 13px; }
.hc-cart-empty .hc-cart-empty__help a { color: var(--hc-primary); font-weight: 700; }

/* Mobile */
@media (max-width: 767px) {
    .hc-cart-form__head { padding: 14px; }
    .hc-cart-form__continue { font-size: 0; gap: 0; }
    .hc-cart-form__continue i { font-size: 14px; }
    .hc-cart-item { grid-template-columns: 76px auto minmax(0, 1fr) 32px; grid-template-areas: "img info info rm" "img qty sub sub"; gap: 8px 12px; padding: 14px; }
    .hc-cart-item__img { grid-area: img; align-self: start; }
    .hc-cart-item__img img { width: 76px !important; height: 76px !important; border-radius: 12px; }
    .hc-cart-item__info { grid-area: info; }
    .hc-cart-item__qty { grid-area: qty; }
    .hc-cart-item__subtotal { grid-area: sub; font-size: 15px; }
    .hc-cart-item__remove { grid-area: rm; align-self: start; }
    .hc-cart-item__remove a.remove { width: 32px !important; height: 32px !important; font-size: 13px !important; }
    .hc-cart-actions { padding: 14px; }
    .hc-cart-actions .coupon { max-width: none; flex-basis: 100%; }
    .hc-cart-actions .hc-cart-update { width: 100%; justify-content: center; }
}
/* Giỏ hàng – chỉnh thêm */
.hc-cart-page .cart_totals table.shop_table tr.woocommerce-shipping-totals th { text-align: left !important; }
.hc-cart-actions .hc-cart-update { margin-left: auto; }
@media (max-width: 768px) {
    .hc-cart-page .cart_totals table.shop_table_responsive tr th,
    .hc-cart-page .cart_totals table.shop_table_responsive tbody th { display: block !important; }
    .hc-cart-page .cart_totals table.shop_table_responsive tr td { display: block !important; }
    .hc-cart-page .cart_totals table.shop_table_responsive tr:nth-child(2n) td { background: none !important; }
}
