/* RVCC v1.3 – bố cục và màu theo web cũ ruouvangcaocap.com.vn.
   Biến màu lấy từ Customizer (inline :root): --rvcc-primary #6c070c, --rvcc-secondary #ddba70, --rvcc-dark #090d16. */
:root { --rvcc-cream: #f5f4ef; --rvcc-dark2: #12161f; --rvcc-gold-text: #e9ca5b; --rvcc-red: #c80a07; }
body { font-family: var(--rvcc-font-body); color: var(--rvcc-text); background: var(--rvcc-cream); }
h1, h2, h3, h4, .rvcc-heading { font-family: var(--rvcc-font-heading); color: #292929; }
a { color: var(--rvcc-primary); }
html.rvcc-gated { overflow: hidden; }
.rvcc-container { max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.rvcc-bg-gold { background: url(../img/bg-about.jpg) center / cover no-repeat, var(--rvcc-secondary); }
.site-content, .ast-separate-container { background: var(--rvcc-cream); }
.ast-separate-container .ast-article-single, .ast-separate-container .ast-article-post, .ast-separate-container .comments-area { background: #fff; }

/* ---------- Thanh trên cùng ---------- */
.rvcc-topbar { background: var(--rvcc-dark); color: #fff; font-size: 13px; }
.rvcc-topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 9px; padding-bottom: 9px; }
.rvcc-topbar p { margin: 0; }
.rvcc-topbar__item { margin-left: 28px; }
.rvcc-topbar a { color: #fff; }
.rvcc-topbar a.rvcc-hot { color: var(--rvcc-red); }
.rvcc-topbar__fb { color: #fff !important; font-size: 13px; white-space: nowrap; }
@media (max-width: 921px) { .rvcc-topbar { display: none; } }

/* ---------- Header Astra ---------- */
.ast-primary-header-bar, .main-header-bar, .ast-mobile-header-wrap .ast-primary-header-bar { background: url(../img/bg-menu.jpg) center / cover no-repeat; border-bottom: 0; }
.ast-builder-menu-1 .main-header-menu .menu-item > .menu-link { color: #12161f; font-weight: 600; text-transform: uppercase; font-size: 13px; }
@media (min-width: 922px) { .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link { padding-left: .7em; padding-right: .7em; } }
.ast-builder-menu-1 .main-header-menu .menu-item:hover > .menu-link,
.ast-builder-menu-1 .main-header-menu .current-menu-item > .menu-link,
.ast-builder-menu-1 .main-header-menu .current-menu-ancestor > .menu-link { color: var(--rvcc-primary); }
.ast-builder-menu-1 .main-header-menu .sub-menu { background: #fff; border-top: 3px solid var(--rvcc-secondary); }
.ast-builder-menu-1 .main-header-menu .sub-menu .menu-link { color: #292929; text-transform: none; font-weight: 400; }
.ast-header-search .astra-search-icon, .ast-header-search .ast-icon { color: #12161f; }
.ast-button-wrap .menu-toggle, .ast-button-wrap .menu-toggle:focus, .ast-button-wrap .menu-toggle:hover { color: var(--rvcc-dark) !important; background: transparent !important; }
.ast-button-wrap .menu-toggle svg { fill: var(--rvcc-dark) !important; }
.ast-mobile-popup-drawer .ast-mobile-popup-inner { background: #fff; }

/* ---------- Banner trang trong ---------- */
.rvcc-hero { position: relative; min-height: 230px; display: flex; align-items: center; text-align: center; background: url(../img/bkg-breadcrumbs.jpg) center / cover no-repeat, #f3f3f3; padding: 100px 0 68px; }
.rvcc-hero .rvcc-container { width: 100%; }
.rvcc-hero__title { font-size: 34px; font-weight: 500; margin: 0 0 12px; color: #292929; }
.rvcc-bc { font-size: 14px; color: #292929; }
.rvcc-bc a { color: #292929; } .rvcc-bc span { color: var(--rvcc-primary); }
.rvcc-bc i { font-style: normal; margin: 0 12px; color: #999; }
@media (max-width: 768px) { .rvcc-hero { min-height: 140px; } .rvcc-hero__title { font-size: 24px; } .rvcc-bc { font-size: 12px; padding: 0 10px; } }

/* ---------- Đầu khối + nút chuyển ---------- */
.rvcc-sec { padding-top: 35px; padding-bottom: 10px; }
.rvcc-sec__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin-bottom: 20px; }
.rvcc-sec__title { margin: 0; font-size: 24px; font-weight: 500; text-transform: uppercase; color: #292929; }
.rvcc-sec__desc { margin: 8px 0 0; font-size: 13px; color: #777; }
.rvcc-nav { display: flex; gap: 10px; flex: none; }
.rvcc-nav button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #e5e5e5; background: #fff; color: #555; font-size: 22px; line-height: 1; padding: 0; cursor: pointer; }
.rvcc-nav button:hover { background: var(--rvcc-primary); color: #fff; border-color: var(--rvcc-primary); }
.rvcc-track { display: flex; gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.rvcc-track::-webkit-scrollbar { display: none; }
.rvcc-track > * { scroll-snap-align: start; flex: none; }

/* ---------- Slide ---------- */
.rvcc-slider { position: relative; overflow: hidden; background: var(--rvcc-dark); }
.rvcc-slide { display: none; } .rvcc-slide.is-active { display: block; animation: rvcc-fade .6s ease; }
.rvcc-slide img { width: 100%; height: auto; display: block; }
.rvcc-slider__dots { position: absolute; left: 0; right: 0; bottom: 24px; text-align: center; line-height: 0; }
.rvcc-slider__dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; margin: 2px 7px; padding: 0; background: #fff; opacity: .8; cursor: pointer; vertical-align: middle; transition: all .2s; }
.rvcc-slider__dots button:hover, .rvcc-slider__dots button.is-active { width: 16px; height: 16px; margin: 0 7px; opacity: 1; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px var(--rvcc-primary); }
@keyframes rvcc-fade { from { opacity: .3; } to { opacity: 1; } }

/* ---------- 3 cam kết ---------- */
.rvcc-commits-wrap { padding: 40px 0 55px; }
.rvcc-commits__title { text-align: center; font-size: 32px; font-weight: 400; margin: 0 0 30px; color: #292929; }
.rvcc-commits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; text-align: center; }
.rvcc-commit__icon { width: 123px; height: 123px; margin: 0 auto 20px; background: #fff; display: flex; align-items: center; justify-content: center; }
.rvcc-commit__icon img { max-width: 80%; height: auto; }
.rvcc-commit h3 { font-size: 12px; font-weight: 600; text-transform: uppercase; margin: 0 0 18px; color: #292929; }
.rvcc-commit p { font-size: 14px; line-height: 1.5; margin: 0; color: #292929; }

/* ---------- Dải quốc gia ---------- */
.rvcc-origins { padding: 0; }
.rvcc-origins__bar { background: var(--rvcc-dark); padding: 16px 0; }
.rvcc-origins__bar .rvcc-sec__head { margin: 0; align-items: center; justify-content: center; position: relative; }
.rvcc-origins__bar .rvcc-sec__title { color: var(--rvcc-gold-text); font-size: 24px; font-weight: 600; text-align: center; }
.rvcc-origins__bar .rvcc-nav { position: absolute; right: -80px; }
@media (max-width: 1360px) { .rvcc-origins__bar .rvcc-nav { right: 0; } }
.rvcc-origins .rvcc-track { gap: 10px; padding: 15px 5px 12px; }
.rvcc-origin { flex: 0 0 calc((100% - 50px) / 6) !important; text-align: center; color: #292929; text-decoration: none; }
.rvcc-origin img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; border-radius: 4px; margin-bottom: 8px; }
.rvcc-origin span { font-size: 15px; }

/* ---------- 9 ô danh mục ---------- */
.rvcc-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-top: 40px; padding-bottom: 10px; }
.rvcc-tile { position: relative; display: block; overflow: hidden; }
.rvcc-tile img { width: 100%; height: auto; display: block; transition: transform .4s; }
.rvcc-tile:hover img { transform: scale(1.05); }
.rvcc-tile__txt { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: 82%; padding: 8px 10px; background: rgba(255,255,255,.88); color: var(--rvcc-primary); font-weight: 600; font-size: 14px; text-transform: uppercase; text-align: center; }

/* ---------- Thẻ sản phẩm ---------- */
.rvcc-card { background: #fff; display: flex; flex-direction: column; height: 100%; }
.rvcc-products .rvcc-card, .rvcc-products .rvcc-track > .rvcc-card { flex: 0 0 calc((100% - 90px) / 4); }
.rvcc-card__img { display: block; padding: 6px; }
.rvcc-card__img img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; display: block; }
.rvcc-card__body { padding: 8px 15px 20px; }
.rvcc-card__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #292929; font-size: 14px; line-height: 1.35; min-height: 38px; margin: 8px 0 6px; text-decoration: none; }
.rvcc-card__name:hover { color: var(--rvcc-primary); }
.rvcc-price, .woocommerce div.product p.price { color: var(--rvcc-primary) !important; font-weight: 700; }
.rvcc-price { font-size: 26px; line-height: 1.2; }
.rvcc-price del { color: #888; font-size: 12px; font-weight: 500; margin-left: 8px; order: 2; }
.rvcc-price ins { text-decoration: none; }
.rvcc-price .woocommerce-Price-amount + .screen-reader-text + ins, .rvcc-price del + ins { }
.rvcc-price { display: flex; align-items: baseline; flex-wrap: wrap; } .rvcc-price ins { order: 1; } .rvcc-price .screen-reader-text { order: 3; }
.rvcc-contact-price { color: var(--rvcc-primary); font-weight: 700; }
.rvcc-stars { position: relative; display: inline-block; width: 70px; height: 13px; background: linear-gradient(90deg, #ccc 0 100%); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 13'%3E%3Cg%3E%3Cpath d='M6.5 0l1.9 4.2 4.6.5-3.4 3.1 1 4.5-4.1-2.4-4.1 2.4 1-4.5L0 4.7l4.6-.5z'/%3E%3Cpath transform='translate(14)' d='M6.5 0l1.9 4.2 4.6.5-3.4 3.1 1 4.5-4.1-2.4-4.1 2.4 1-4.5L0 4.7l4.6-.5z'/%3E%3Cpath transform='translate(28)' d='M6.5 0l1.9 4.2 4.6.5-3.4 3.1 1 4.5-4.1-2.4-4.1 2.4 1-4.5L0 4.7l4.6-.5z'/%3E%3Cpath transform='translate(42)' d='M6.5 0l1.9 4.2 4.6.5-3.4 3.1 1 4.5-4.1-2.4-4.1 2.4 1-4.5L0 4.7l4.6-.5z'/%3E%3Cpath transform='translate(56)' d='M6.5 0l1.9 4.2 4.6.5-3.4 3.1 1 4.5-4.1-2.4-4.1 2.4 1-4.5L0 4.7l4.6-.5z'/%3E%3C/g%3E%3C/svg%3E") no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 13'%3E%3Cg%3E%3Cpath d='M6.5 0l1.9 4.2 4.6.5-3.4 3.1 1 4.5-4.1-2.4-4.1 2.4 1-4.5L0 4.7l4.6-.5z'/%3E%3Cpath transform='translate(14)' d='M6.5 0l1.9 4.2 4.6.5-3.4 3.1 1 4.5-4.1-2.4-4.1 2.4 1-4.5L0 4.7l4.6-.5z'/%3E%3Cpath transform='translate(28)' d='M6.5 0l1.9 4.2 4.6.5-3.4 3.1 1 4.5-4.1-2.4-4.1 2.4 1-4.5L0 4.7l4.6-.5z'/%3E%3Cpath transform='translate(42)' d='M6.5 0l1.9 4.2 4.6.5-3.4 3.1 1 4.5-4.1-2.4-4.1 2.4 1-4.5L0 4.7l4.6-.5z'/%3E%3Cpath transform='translate(56)' d='M6.5 0l1.9 4.2 4.6.5-3.4 3.1 1 4.5-4.1-2.4-4.1 2.4 1-4.5L0 4.7l4.6-.5z'/%3E%3C/g%3E%3C/svg%3E") no-repeat; }
.rvcc-stars span { position: absolute; inset: 0 auto 0 0; background: #f6c522; }

/* ---------- 3 cột Yêu thích / Bán chạy / Khuyến mãi ---------- */
.rvcc-pcols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; padding-bottom: 20px; }
.rvcc-pcol { padding-top: 30px; min-width: 0; }
.rvcc-pcol .rvcc-sec__head { align-items: center; }
.rvcc-pcol .rvcc-sec__title { font-size: 15px; font-weight: 600; }
.rvcc-pcol .rvcc-nav button { width: 30px; height: 30px; font-size: 18px; }
.rvcc-pcol .rvcc-track { gap: 0; }
.rvcc-pcol__page { flex: 0 0 100% !important; display: flex; flex-direction: column; gap: 20px; }
.rvcc-prow { display: flex; gap: 15px; align-items: center; background: #fff; padding: 10px; text-decoration: none; }
.rvcc-prow__img { flex: none; } .rvcc-prow__img img { width: 85px; height: 110px; object-fit: contain; display: block; }
.rvcc-prow__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #292929; font-size: 13px; line-height: 1.4; margin: 6px 0; }
.rvcc-prow .rvcc-price { font-size: 20px; }

/* ---------- Bài viết ---------- */
.rvcc-blog { padding-bottom: 50px; }
.rvcc-post { display: flex; flex-direction: column; }
.rvcc-blog .rvcc-post, .rvcc-related-posts .rvcc-post { flex: 0 0 calc((100% - 60px) / 3); }
.rvcc-post__img img { width: 240px; max-width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.rvcc-post__body { padding: 18px 0 10px; display: flex; flex-direction: column; flex: 1; }
.rvcc-post h3 { font-size: 16px; font-weight: 500; line-height: 1.4; margin: 0 0 16px; }
.rvcc-post h3 a { color: #292929; }
.rvcc-post p { font-size: 14px; line-height: 1.6; color: #555; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rvcc-post__meta { font-size: 12px; margin-bottom: 20px; }
.rvcc-post__cat { color: var(--rvcc-primary); font-weight: 700; margin-right: 12px; }
.rvcc-post__meta time { color: #999; }
.rvcc-btn-outline { align-self: flex-start; margin-top: auto; border: 2px solid #292929; color: #292929; padding: 9px 20px; font-size: 14px; font-weight: 500; text-decoration: none; }
.rvcc-btn-outline:hover { background: #292929; color: #fff; }
.rvcc-blog-archive { width: 100%; }
.rvcc-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 30px; padding: 30px 0; }
.rvcc-post-grid .rvcc-post__img img { width: 100%; max-width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.rvcc-count { text-align: right; font-size: 13px; color: #555; margin-top: -40px; }

/* ---------- Footer ---------- */
.rvcc-footer__top { background: var(--rvcc-dark2); text-align: center; padding: 45px 0 60px; border-top: 1px solid #ddd; }
.rvcc-footer__top h3 { color: var(--rvcc-gold-text); margin: 0 0 8px; font-size: 24px; font-weight: 500; }
.rvcc-footer__top h3 a { color: var(--rvcc-red); font-weight: 600; }
.rvcc-footer__note { color: var(--rvcc-gold-text); font-size: 13px; font-weight: 600; margin: 0 0 35px; }
.rvcc-callback { max-width: 620px; margin: 0 auto; }
.rvcc-callback form { display: flex; background: #fff; border: 2px solid #fff; }
.rvcc-callback .wpcf7-form-control-wrap { flex: 1; }
.rvcc-callback input[type=tel] { width: 100%; border: 0; height: 50px; padding: 0 30px; font-size: 13px; }
.rvcc-callback input[type=submit] { border: 0; border-left: 1px solid #ddd; background: #fff !important; color: #12161f !important; font-weight: 700; font-size: 12px; text-transform: uppercase; padding: 0 50px; height: 50px; }
.rvcc-callback .wpcf7-response-output { color: #fff; border-color: var(--rvcc-gold-text) !important; margin: 10px 0 0 !important; }
.rvcc-callback .wpcf7-spinner { position: absolute; }
.rvcc-footer__links { background: url(../img/bg-footer.jpg) center / cover no-repeat, var(--rvcc-secondary); color: #292929; padding: 70px 0 30px; }
.rvcc-footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 2fr) minmax(0, 2fr); gap: 30px; }
.rvcc-footer h4 { color: #292929; font-size: 16px; font-weight: 600; margin: 0 0 22px; }
.rvcc-footer p { font-size: 13px; line-height: 1.6; color: #292929; }
.rvcc-footer__col--about > p { color: #6b5a32; line-height: 1.9; margin: 25px 0 35px; }
.rvcc-footer ul { list-style: none; margin: 0; padding: 0; }
.rvcc-footer li { margin-bottom: 10px; font-size: 13px; }
.rvcc-footer li a { color: #5b4a20; }
.rvcc-footer li a:hover { color: var(--rvcc-primary); }
.rvcc-footer__time li { color: #fff; font-weight: 600; }
.rvcc-footer__logo { max-width: 165px; height: auto; }
.rvcc-footer__bct { max-width: 190px; height: auto; margin: 4px 0 12px; }
.rvcc-social { display: flex; gap: 10px; }
.rvcc-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.7); color: #999; display: flex; align-items: center; justify-content: center; font-size: 15px; text-decoration: none; }
.rvcc-social a:hover { background: var(--rvcc-primary); color: #fff; }
.rvcc-footer__copy { background: #000; color: #fff; font-size: 14px; text-align: center; padding: 14px 0; }

/* ---------- Danh mục sản phẩm ---------- */
.rvcc-inner .site-content > .ast-container { background: transparent; }
.woocommerce.archive #primary, .tax-product_cat #primary, .tax-pa_xuat-xu #primary, .tax-product_brand #primary, .tax-product_tag #primary, .post-type-archive-product #primary { background: #fff; padding: 25px 30px 40px; margin-top: -60px; position: relative; z-index: 2; }
.woocommerce.archive #secondary, .post-type-archive-product #secondary, .tax-product_cat #secondary { background: #fff; padding: 25px 25px 40px; margin-top: -60px; position: relative; z-index: 2; }
.woocommerce-products-header__title.page-title { font-size: 34px; font-weight: 500; margin-bottom: 12px; }
.term-description { font-size: 14px; line-height: 1.6; color: #292929; margin-bottom: 20px; }
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin: 0 0 30px !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product.rvcc-li { width: auto !important; margin: 0 !important; padding: 0 !important; float: none !important; text-align: left; }
.woocommerce ul.products li.product.rvcc-li .rvcc-price { font-size: 24px; }
.woocommerce-result-count { font-size: 13px; color: #555; }
.woocommerce-ordering select { font-size: 13px; border-radius: 20px; padding: 4px 30px 4px 12px; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span, .pagination .page-numbers { border-radius: 50% !important; width: 34px; height: 34px; line-height: 34px; padding: 0 !important; border: 0 !important; background: transparent; color: #292929; }
.woocommerce nav.woocommerce-pagination ul, .woocommerce nav.woocommerce-pagination ul li { border: 0 !important; }
.woocommerce nav.woocommerce-pagination ul li span.current, .pagination .page-numbers.current { background: var(--rvcc-primary) !important; color: #fff !important; }
.rvcc-filter { margin-bottom: 35px; }
.rvcc-filter h3 { font-size: 20px; font-weight: 500; margin: 0 0 15px; }
.rvcc-filter ul { list-style: none; margin: 0; padding: 0; }
.rvcc-filter li { margin: 0 0 6px; font-size: 13px; }
.rvcc-filter li a { color: #292929; display: inline-flex; align-items: center; gap: 6px; }
.rvcc-filter li.is-active > a { color: var(--rvcc-primary); font-weight: 600; }
.rvcc-filter small { color: #777; }
.rvcc-check { width: 12px; height: 12px; border: 1px solid #555; display: inline-block; flex: none; }
.rvcc-filter li.is-active .rvcc-check { background: var(--rvcc-primary); border-color: var(--rvcc-primary); }
.rvcc-tagcloud { display: flex; flex-wrap: wrap; gap: 10px; }
.rvcc-tagcloud a { border: 1px solid #e5e5e5; border-radius: 20px; padding: 6px 14px; font-size: 13px; color: #292929; }

/* ---------- Chi tiết sản phẩm ---------- */
.single-product #primary { background: transparent; }
.single-product div.product { background: transparent; }
.single-product .product_title { font-size: 20px; font-weight: 500; margin-bottom: 10px; }
.rvcc-rating-line { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #555; margin-bottom: 14px; }
.single-product div.product p.price { font-size: 26px; margin-bottom: 25px; }
.rvcc-specs { list-style: none; margin: 0 0 25px; padding: 0; font-size: 13px; }
.rvcc-specs li { margin-bottom: 10px; } .rvcc-specs strong { color: #292929; margin-right: 6px; }
.rvcc-specs a { color: var(--rvcc-primary); }
.rvcc-tags { border-top: 1px solid #eee; padding-top: 18px; margin-top: 10px; font-size: 13px; line-height: 1.8; }
.rvcc-tags a { color: var(--rvcc-primary); }
.woocommerce div.product .woocommerce-tabs ul.tabs { text-align: center; border: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: transparent; border: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { font-size: 17px; font-weight: 500; color: #999; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #292929; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.single-product .related > h2 { font-size: 24px; font-weight: 500; margin-bottom: 4px; }
.rvcc-related-sub { display: none; }
.single-product .related > h2 + * { margin-top: 20px; }
.woocommerce-product-gallery .flex-control-thumbs li { width: 22%; margin: 10px 3% 0 0; }

/* ---------- Bài viết ---------- */
.single-post .entry-title { font-size: 34px; font-weight: 500; }
.single-post .entry-meta time { color: #999; font-size: 12px; }
.single-post .entry-content { font-size: 14px; line-height: 1.7; }
.rvcc-hot h3 { font-size: 26px; font-weight: 500; margin: 0 0 20px; }
.rvcc-hot ul { list-style: none; margin: 0; padding: 0; }
.rvcc-hot li { margin-bottom: 22px; }
.rvcc-hot a { display: flex; gap: 14px; color: #292929; }
.rvcc-hot img { width: 55px; height: 55px; object-fit: cover; flex: none; }
.rvcc-hot strong { display: block; font-weight: 400; font-size: 15px; line-height: 1.35; }
.rvcc-hot time { display: block; font-size: 12px; color: #999; margin-top: 8px; }
.single-post #secondary .widget { display: none; }
.rvcc-related-posts { margin-top: 40px; }

/* ---------- Liên hệ ---------- */
.rvcc-contact h2 { font-size: 24px; font-weight: 400; margin: 10px 0 15px; }
.rvcc-contact__box { background: #fff; border: 1px solid #e5e5e5; padding: 20px 15px; margin-bottom: 30px; }
.rvcc-contact__info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 35px; font-size: 14px; }
.rvcc-contact__info strong { display: block; margin-bottom: 4px; }
.rvcc-contact__info a { color: #292929; }
.rvcc-contact__map iframe { width: 100%; max-width: 600px; height: 450px; border: 0; }
.rvcc-contact__form .rvcc-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 14px; }
.rvcc-contact__form label { text-align: right; font-size: 13px; padding-top: 8px; }
.rvcc-contact__form label::before { content: "* "; color: var(--rvcc-red); }
.rvcc-contact__form input:not([type=submit]), .rvcc-contact__form textarea { width: 100%; border: 1px solid #ccc; border-radius: 4px; padding: 8px 12px; background: #fff; }
.rvcc-contact__form textarea { height: 180px; }
.rvcc-contact__form .rvcc-submit { text-align: right; }
.rvcc-contact__form input[type=submit] { background: #292929 !important; color: #fff !important; border-radius: 25px; padding: 12px 30px; font-weight: 700; text-transform: uppercase; border: 0; }
@media (max-width: 768px) { .rvcc-contact__info { grid-template-columns: 1fr; } .rvcc-contact__form .rvcc-row { grid-template-columns: 1fr; gap: 4px; } .rvcc-contact__form label { text-align: left; } .rvcc-contact__map iframe { height: 300px; } }

/* ---------- Trang tĩnh ---------- */
.page.rvcc-inner:not(.home) .ast-article-single, .page.rvcc-inner .site-main > article { background: #fff; padding: 30px; }

/* ---------- Nút WooCommerce chung ---------- */
.woocommerce a.button, .woocommerce button.button, .woocommerce .button { background: var(--rvcc-primary) !important; color: #fff !important; border-radius: 4px; border: 0; }
.woocommerce span.onsale, .ast-onsale-card { display: none; }

/* ---------- Nút liên hệ trang sản phẩm, nút nổi, thanh pháp lý ---------- */
.rvcc-btn { display: inline-block; padding: 12px 22px; border-radius: 6px; font-weight: 600; text-decoration: none; margin: 6px 8px 6px 0; }
.rvcc-btn-primary { background: var(--rvcc-primary); color: #fff; }
.rvcc-btn-secondary { background: #fff; color: var(--rvcc-primary); border: 2px solid var(--rvcc-primary); }
.rvcc-buy-actions { margin: 10px 0 20px; }
.rvcc-legal-inline { font-size: 12px; color: #777; margin-top: 8px; }
.rvcc-float { position: fixed; right: 14px; bottom: 60px; display: flex; flex-direction: column; gap: 10px; z-index: 9999; }
.rvcc-float-btn { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.rvcc-float-call { background: var(--rvcc-primary); animation: rvcc-pulse 2s infinite; }
.rvcc-float-zalo { background: #0068ff; } .rvcc-float-messenger { background: #a033ff; }
@keyframes rvcc-pulse { 0% { box-shadow: 0 0 0 0 rgba(108,7,12,.5); } 70% { box-shadow: 0 0 0 14px rgba(108,7,12,0); } 100% { box-shadow: 0 0 0 0 rgba(108,7,12,0); } }
.rvcc-legal-bar { display: none; }

/* ---------- Cổng 18+ ---------- */
.rvcc-gate { position: fixed; inset: 0; z-index: 100000; background: rgba(9,13,22,.55); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 15px; }
.rvcc-gate[hidden] { display: none; }
.rvcc-gate__box { width: 100%; max-width: 500px; min-height: 92vh; display: flex; align-items: center; justify-content: center; background: url(../img/bg-about.jpg) center / cover no-repeat, var(--rvcc-secondary); box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.rvcc-gate__inner { text-align: center; padding: 30px 25px; width: 100%; }
.rvcc-gate__logo { max-width: 160px; height: auto; margin: 0 auto 8px; display: block; }
.rvcc-gate__inner p { margin: 0 0 8px; font-size: 13px; color: #292929; }
.rvcc-gate h3 { color: #e00; font-size: 22px; font-weight: 700; margin: 6px 0 16px; }
.rvcc-gate__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 16px; }
.rvcc-gate__btns button { background: #292929; color: #fff; border: 0; border-radius: 25px; padding: 12px 10px; font-weight: 700; font-size: 12px; text-transform: uppercase; cursor: pointer; }
.rvcc-gate__btns button:hover { background: var(--rvcc-primary); }
.rvcc-gate__note, .rvcc-gate__no { color: #e00 !important; font-style: italic; }

/* ---------- Trang chủ Elementor ---------- */
.home .site-content > .ast-container { max-width: 100%; padding: 0; }
.e-con, .e-con-inner, .elementor-widget-shortcode, .elementor-shortcode { min-width: 0; max-width: 100%; }
.elementor-widget-shortcode { width: 100%; }
html, body { overflow-x: hidden; }

/* ---------- Tablet ---------- */
@media (max-width: 921px) {
  .rvcc-products .rvcc-card { flex-basis: calc((100% - 60px) / 3); }
  .rvcc-origin { flex-basis: calc((100% - 30px) / 4) !important; }
  .rvcc-pcols { grid-template-columns: minmax(0, 1fr); }
  .rvcc-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
  .rvcc-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .woocommerce.archive #primary, .woocommerce.archive #secondary, .tax-product_cat #primary, .tax-product_cat #secondary, .post-type-archive-product #primary { margin-top: 0; padding: 15px; }
}

/* ---------- Mobile (như web cũ: danh mục 1 cột, sản phẩm lưới 2 cột) ---------- */
@media (max-width: 544px) {
  .rvcc-sec { padding-top: 25px; }
  .rvcc-sec__title { font-size: 18px; }
  .rvcc-commits-wrap { padding: 25px 0 30px; }
  .rvcc-commits__title { font-size: 24px; margin-bottom: 20px; }
  .rvcc-commits { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .rvcc-origins__bar .rvcc-sec__title { font-size: 18px; }
  .rvcc-origins__bar .rvcc-nav { display: none; }
  .rvcc-origin { flex-basis: calc((100% - 10px) / 2) !important; }
  .rvcc-tiles { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 25px; }
  .rvcc-products .rvcc-nav { display: none; }
  .rvcc-products .rvcc-track { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; overflow: visible; }
  .rvcc-card__body { padding: 6px 8px 12px; }
  .rvcc-price, .woocommerce ul.products li.product.rvcc-li .rvcc-price { font-size: 17px; }
  .rvcc-price del { margin-left: 0; width: 100%; }
  .rvcc-blog .rvcc-post, .rvcc-related-posts .rvcc-post { flex-basis: 85%; }
  .rvcc-post-grid { grid-template-columns: minmax(0, 1fr); }
  .rvcc-footer__top h3 { font-size: 17px; }
  .rvcc-callback input[type=submit] { padding: 0 14px; }
  .rvcc-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .rvcc-gate__box { min-height: 70vh; }
  .rvcc-gate__btns { gap: 10px; }
  .rvcc-float { bottom: 16px; right: 10px; }
}
.single-product .summary .woocommerce-breadcrumb, .single-product .ast-woocommerce-breadcrumb, .single-product .summary .ast-breadcrumbs-wrapper { display: none !important; }
.rvcc-footer .rvcc-footer__note { color: var(--rvcc-gold-text); }
.single-post .ast-article-single, .single-post .site-main > article, .ast-separate-container.single-post .ast-article-single { background: #fff !important; }
.ast-plain-container.single-post .site-main > article { background: transparent; }
.rvcc-gate__box { position: relative; background-size: cover; background-position: center; }
.rvcc-gate__box::before { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .72); }
.rvcc-gate__inner { position: relative; }
/* Phân trang danh sách bài */
.navigation.pagination { margin: 10px 0 0; }
.navigation.pagination .nav-links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.navigation.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; border-radius: 50%; color: #292929; font-size: 14px; text-decoration: none; }
.navigation.pagination .page-numbers.current { background: var(--rvcc-primary); color: #fff; }
.navigation.pagination .page-numbers.dots { min-width: auto; }
.rvcc-count { margin-top: -30px; }

/* Nút nổi: biểu tượng chuẩn + nhãn khi rê chuột */
.rvcc-float-btn { position: relative; width: 52px; height: 52px; font-size: 0; }
.rvcc-float-btn svg { width: 26px; height: 26px; display: block; }
.rvcc-float-zalo svg { width: 34px; height: 34px; }
.rvcc-float-call { color: #fff; background: #e31b23; }
.rvcc-float-zalo { background: #0068ff; }
.rvcc-float-messenger { background: linear-gradient(45deg, #0099ff 0%, #a033ff 60%, #ff5280 100%); }
.rvcc-float-btn::before { content: attr(data-tip); position: absolute; right: 62px; top: 50%; transform: translateY(-50%); background: #292929; color: #fff; font-size: 12px; font-weight: 600; line-height: 1.2; white-space: nowrap; padding: 6px 10px; border-radius: 4px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.rvcc-float-btn:hover::before { opacity: 1; }
@keyframes rvcc-ring { 0%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-18deg); } 20%, 40% { transform: rotate(18deg); } 50% { transform: rotate(0); } }
.rvcc-float-call svg { animation: rvcc-ring 1.6s infinite; transform-origin: 50% 50%; }
@media (max-width: 544px), (hover: none) { .rvcc-float-btn { width: 46px; height: 46px; } .rvcc-float-btn::before { display: none; } }

/* ===== Hiệu ứng ảnh theo web cũ ===== */
/* Thẻ sản phẩm: ảnh thứ hai hiện khi rê chuột, nhóm nút trượt lên */
.rvcc-card__media { position: relative; overflow: hidden; }
.rvcc-card__img { position: relative; }
.rvcc-card__img .rvcc-card__img2 { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; background: #fff; opacity: 0; transition: opacity .5s ease-in-out; }
.rvcc-card:hover .rvcc-card__img.has-2 .rvcc-card__img2 { opacity: 1; }
.rvcc-card__img { overflow: hidden; }
.rvcc-card__img img { transition: transform .3s ease-in-out, opacity .5s ease-in-out; }
.rvcc-products .rvcc-card:hover .rvcc-card__img img, .rvcc-pcol .rvcc-card:hover .rvcc-card__img img { transform: scale(1.035) rotate(.05deg); }
/* Ảnh danh mục, bài viết, quốc gia: phóng nhẹ 3,5% trong 300 ms */
.rvcc-tile img, .rvcc-post__img img, .rvcc-origin img, .rvcc-commit__icon img { transition: transform 300ms ease-in-out; }
.rvcc-tile:hover img, .rvcc-post:hover .rvcc-post__img img, .rvcc-origin:hover img { transform: scale(1.035) rotate(0.05deg); }
.rvcc-post__img, .rvcc-origin { overflow: hidden; display: block; }
.rvcc-origin:hover span { color: var(--rvcc-primary); }
/* Slide: hiệu ứng ngẫu nhiên kiểu Nivo */
.rvcc-slider__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 46px; height: 46px; border-radius: 50%; border: 0; padding: 0; background: #fff; color: #888; font-size: 0; cursor: pointer; opacity: 0; visibility: hidden; transition: all .3s; display: flex; align-items: center; justify-content: center; }
.rvcc-slider__arrow::before { content: ''; width: 10px; height: 10px; border: solid currentColor; border-width: 0 0 1.5px 1.5px; transform: rotate(45deg); margin-left: 4px; }
.rvcc-slider__arrow.next::before { transform: rotate(-135deg); margin: 0 4px 0 0; }
.rvcc-slider__arrow:hover { background: var(--rvcc-primary); color: #fff; }
.rvcc-slider:hover .rvcc-slider__arrow { opacity: 1; visibility: visible; }
.rvcc-slider__arrow.prev { left: 10px; } .rvcc-slider__arrow.next { right: 10px; }
.rvcc-slider__dots { z-index: 4; }
.rvcc-fx { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.rvcc-fx > i { position: absolute; display: block; background-repeat: no-repeat; opacity: 0; }
.rvcc-slide.is-active { animation: none; }
@media (max-width: 544px) { .rvcc-slider__arrow { display: none; } }

/* Khối Danh Mục như web cũ: danh mục đang xem + nhánh con (quốc gia) */
.rvcc-filter--cats li.is-open { position: relative; }
.rvcc-filter__toggle { position: absolute; right: 0; top: 2px; width: 22px; height: 22px; border: 0; padding: 0; background: none; cursor: pointer; }
.rvcc-filter__toggle::before { content: ''; display: block; width: 7px; height: 7px; margin: 5px auto 0; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.rvcc-filter--cats li:not(.is-open) > .rvcc-filter__toggle::before { transform: rotate(-45deg); margin-top: 7px; }
.rvcc-filter--cats li:not(.is-open) > .rvcc-filter__sub { display: none; }
.rvcc-filter__sub { margin: 6px 0 0 15px; }
.rvcc-filter__sub li { padding: 4px 0; }
.rvcc-filter__sub li.is-active > a { color: var(--rvcc-primary); font-weight: 600; }

/* ===== Mobile như web cũ ===== */
@media (max-width: 921px) {
  /* Khối cam kết chỉ hiện trên máy tính */
  .rvcc-commits-wrap { display: none; }
  /* Bộ lọc: ẩn vào ngăn kéo bên trái, mở bằng nút phễu */
  body.rvcc-has-filters.rvcc-has-filters #secondary { position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); max-width: none; margin: 0; padding: 20px 18px 40px; background: #fff; z-index: 10001; overflow-y: auto; transform: translateX(-105%); transition: transform .3s ease; box-shadow: 2px 0 16px rgba(0,0,0,.2); }
  body.rvcc-has-filters.rvcc-filters-open #secondary { transform: none; }
  .rvcc-filter-btn { position: fixed; left: 0; top: 50%; z-index: 9998; width: 46px; height: 46px; border: 0; border-radius: 0 50% 50% 0; background: #fff; color: #292929; box-shadow: 0 2px 10px rgba(0,0,0,.2); display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
  .rvcc-filter-btn svg { width: 22px; height: 22px; }
  .rvcc-filter-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 10000; opacity: 0; visibility: hidden; transition: opacity .3s; }
  .rvcc-filters-open .rvcc-filter-mask { opacity: 1; visibility: visible; }
  .rvcc-filter-close { position: absolute; top: 8px; right: 10px; width: 32px; height: 32px; border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: #292929; }
}
@media (max-width: 768px) {
  /* Footer: gập 2 cột liên kết */
  .rvcc-footer__col--fold h4 { position: relative; cursor: pointer; margin-bottom: 0; padding: 10px 0; }
  .rvcc-footer__col--fold h4::after { content: ''; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
  .rvcc-footer__col--fold.is-open h4::after { transform: rotate(-135deg); margin-top: -2px; }
  .rvcc-footer__col--fold > ul { display: none; padding-bottom: 8px; }
  .rvcc-footer__col--fold.is-open > ul { display: block; }
}
.rvcc-filter-close { display: none; }
@media (max-width: 921px) { body .rvcc-filter-close { display: block; } }
body .rvcc-filter-close, body .rvcc-filter-btn, .rvcc-filter .rvcc-filter__toggle { background: transparent; border: 0; box-shadow: none; color: #292929; padding: 0; min-height: 0; }
body .rvcc-filter-btn { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.rvcc-filter .rvcc-filter__toggle:hover, .rvcc-filter .rvcc-filter__toggle:focus, body .rvcc-filter-close:hover { background: transparent; color: var(--rvcc-primary); }
.rvcc-filter ul.rvcc-filter__sub { margin: 4px 0 4px 15px; padding: 0; }
.rvcc-filter ul.rvcc-filter__sub li { padding: 3px 0; margin: 0; }

/* Trang sản phẩm như web cũ: tên → sao → giá; ảnh nhỏ nằm một hàng */
.single-product div.product .summary.entry-summary { display: flex; flex-direction: column; }
.single-product div.product .summary .product_title { order: -2; }
.single-product div.product .summary .rvcc-rating-line { order: -1; margin: 6px 0 10px; }
.single-product div.product .flex-control-thumbs { display: flex; flex-wrap: nowrap; gap: 8px; }
.single-product div.product .flex-control-thumbs li { flex: 1 1 0; min-width: 0; width: auto !important; float: none !important; margin: 0 !important; }
/* Breadcrumb trên mobile: căn giữa, chừa chỗ cho ảnh trang trí hai bên */
@media (max-width: 768px) { .rvcc-hero .rvcc-bc { padding: 0 64px; line-height: 1.6; } }
@media (max-width: 480px) { .rvcc-hero .rvcc-bc { padding: 0 92px; } .rvcc-hero { background-size: auto 100%; background-position: center; } }

/* Khối xuất xứ ít ô (vd. Bia ngon nhập khẩu): căn giữa, ô lớn, cân đối */
.rvcc-origins--few .rvcc-track { justify-content: center; gap: 30px; padding: 15px 0 12px; overflow: visible; }
.rvcc-origins--few .rvcc-origin { flex: 0 1 calc((100% - 72px) / 4) !important; max-width: 300px; }
.rvcc-origins--n3 .rvcc-origin, .rvcc-origins--n2 .rvcc-origin { flex-basis: calc((100% - 48px) / 3) !important; max-width: 280px; }
.rvcc-origins--few .rvcc-origin img { border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.12); margin-bottom: 10px; }
.rvcc-origins--few .rvcc-origin span { font-size: 16px; font-weight: 500; }
@media (max-width: 768px) {
  .rvcc-origins--few .rvcc-track { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px 0; }
  .rvcc-origins--few .rvcc-origin { max-width: none; width: auto; }
  .rvcc-origins--few .rvcc-origin:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); }
  .rvcc-origins--few .rvcc-origin span { font-size: 15px; }
}
