/* ==========================================================================
   HMshop – giao diện kiểu ruoutot.net (header, menu, trang chủ)
   Nạp sau style.css + woo.css
   ========================================================================== */
:root { --rt-red: var(--primary, #b30000); --rt-bg: #f8f9fa; --rt-head: #eaeaea; --rt-text: #1f2937; --rt-muted: #374151; }
body { background: var(--rt-bg); color: var(--rt-text); }

/* ---------- Header ---------- */
.rt-header { background: var(--rt-head); box-shadow: 0 1px 2px rgba(0, 0, 0, .05); position: relative; z-index: 1031; }
.rt-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; min-height: 85px; }
.rt-top-links { display: flex; align-items: center; gap: 22px; }
.rt-top-links a { display: inline-flex; align-items: center; gap: 7px; color: var(--rt-text); font-size: 13px; font-weight: 700; white-space: nowrap; }
.rt-top-links a i { width: 27px; height: 27px; border-radius: 50%; border: 1.5px solid var(--rt-red); color: var(--rt-red); display: inline-grid; place-items: center; font-size: 13px; }
.rt-top-links a:hover { color: var(--rt-red); }
.rt-logo { text-align: center; }
.rt-logo .logo img, .rt-logo img { height: 62px; width: auto; display: inline-block; }
.rt-top-right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.rt-search { position: relative; width: 338px; max-width: 100%; flex: 0 1 338px; }
.rt-search input[type=search] { width: 100%; height: 38px; border: 0; border-radius: 30px; background: #fff; padding: 0 46px 0 20px; font-size: 13px; color: var(--rt-text); outline: none; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.rt-search input[type=search]::placeholder { color: #9ca3af; }
.rt-search input[type=search]:focus { box-shadow: 0 0 0 2px rgba(179, 0, 0, .25); }
.rt-search button[type=submit] { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--rt-red); font-size: 18px; width: 34px; height: 34px; display: grid; place-items: center; }
.rt-search .search-suggest { top: calc(100% + 8px); }
.rt-icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 0; color: var(--rt-text); font-size: 18px; flex: none; }
.rt-icon-btn:hover { color: var(--rt-red); }
.rt-icon-btn .badge-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 10px; font-size: 11px; font-weight: 700; background: var(--rt-red); color: #fff; display: grid; place-items: center; }
.rt-burger { display: none; }

/* ---------- Menu đỏ ---------- */
.rt-mainnav { background: var(--rt-red); position: sticky; top: 0; z-index: 1030; }
.admin-bar .rt-mainnav { top: 32px; }
.rt-mainnav > .container { position: static; }
.rt-nav { display: flex; justify-content: center; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; gap: 0 24px; }
.rt-nav > li { position: static; }
.rt-nav > li.has-drop { position: relative; }
.rt-nav > li > a { display: block; padding: 14px 0; color: #dfdfdf; font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; white-space: nowrap; line-height: 18px; position: relative; }
.rt-nav > li > a { transition: color .15s, transform .15s; }
.rt-nav > li:hover > a { color: #fff; transform: translateY(-2px); }
.rt-nav > li.active > a { color: #fff; }
.rt-nav > li.nav-sale > a { color: #ffd76a; }

/* Mega menu xám full ngang */
.rt-mega { position: absolute; left: 0; right: 0; top: 100%; background: #f3f3f3; box-shadow: 0 14px 30px rgba(0, 0, 0, .12); padding: 30px 0 34px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; max-height: calc(100vh - 140px); overflow-y: auto; }
.rt-nav > li:hover > .rt-mega, .rt-nav > li:focus-within > .rt-mega { opacity: 1; visibility: visible; transform: none; }
.rt-mega-grid { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 0 40px; text-align: left; }
.rt-mega-grid.has-left { grid-template-columns: minmax(var(--lw, 0px), 1fr) repeat(var(--n, 3), minmax(0, 1fr)); }
.rt-mega-subs { display: grid; gap: 0 40px; }
.rt-svg { width: 22px; height: 22px; fill: var(--rt-red); flex: none; }
.rt-mega-left { list-style: none; margin: 0; padding: 0; }
.rt-mega-left li + li { margin-top: 24px; }
.rt-mega-left a { display: flex; align-items: center; gap: 14px; color: var(--rt-text); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.rt-mega-left a i { color: var(--rt-red); font-size: 19px; width: 22px; text-align: center; }
.rt-mega-left a:hover, .rt-mega-left a.is-current { color: var(--rt-red); }
.rt-mega-col h6 { font-family: var(--font-body); font-size: 14px; font-weight: 600; text-transform: uppercase; color: #374151; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid #d1d5db; letter-spacing: .2px; }
.rt-mega-col h6 a { color: inherit; }
.rt-mega-col ul { list-style: none; margin: 0; padding: 0; }
.rt-mega-col li a { display: block; color: var(--rt-text); font-size: 13px; font-weight: 600; padding: 6px 0; line-height: 1.45; }
.rt-mega-col li.sub a { padding-left: 16px; }
.rt-mega-col h6 { white-space: nowrap; }
.rt-mega-col li a:hover, .rt-mega-col li a.is-current { color: var(--rt-red); }
.rt-view-all { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; color: var(--rt-red); font-size: 13px; font-weight: 700; }
.rt-view-all i { font-size: 11px; transition: transform .2s; }
.rt-view-all:hover i { transform: translateX(3px); }

/* Dropdown nhỏ */
.rt-drop { position: absolute; left: -16px; top: 100%; min-width: 210px; background: #fff; border-radius: 4px; box-shadow: 0 10px 28px rgba(0, 0, 0, .14); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s; text-align: left; }
.rt-nav > li:hover > .rt-drop, .rt-nav > li:focus-within > .rt-drop { opacity: 1; visibility: visible; transform: none; }
.rt-drop ul { list-style: none; margin: 0; padding: 0; }
.rt-drop a { display: block; padding: 8px 16px; color: var(--rt-text); font-size: 13px; font-weight: 500; white-space: nowrap; }
.rt-drop a:hover { color: var(--rt-red); background: #f8f8f8; }

/* Thanh chính sách */
.rt-policy { background: #f0f0f0; border-bottom: 1px solid #d1d5db; }
.rt-policy-links { display: flex; justify-content: center; align-items: center; gap: 10px 54px; min-height: 45px; flex-wrap: wrap; }
.rt-policy-links a { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; color: var(--rt-text); white-space: nowrap; }
.rt-policy-links a i { font-size: 13px; color: var(--rt-text); }
.rt-policy-links a:hover, .rt-policy-links a:hover i { color: var(--rt-red); }

/* Menu mobile nhiều cấp */
.rt-m-menu ul { list-style: none; margin: 0; padding: 0; background: #fafafa; }
.rt-m-menu .m-row > a { padding: 12px 18px; }
.rt-m-menu li.d0 > .m-row > a { text-transform: uppercase; font-size: 13.5px; font-weight: 600; }
.rt-m-menu li.d1 > .m-row > a { padding: 10px 18px 10px 30px; font-weight: 500; font-size: 14px; color: var(--rt-text); }
.rt-m-menu li.d2 > .m-row > a { padding: 9px 18px 9px 46px; font-weight: 400; font-size: 13.5px; color: var(--rt-text); }
.rt-m-menu li.d3 > .m-row > a { padding: 8px 18px 8px 62px; font-weight: 400; font-size: 13px; color: #555; }
.rt-m-menu li.d1, .rt-m-menu li.d2, .rt-m-menu li.d3 { border-top: 1px solid #eee; }
.rt-m-menu ul ul { background: #f3f3f3; }
.rt-m-menu .m-toggle { height: auto; align-self: stretch; min-height: 42px; }
.offcanvas-menu .offcanvas-header { background: var(--rt-head); color: var(--rt-text); border-bottom: 3px solid var(--rt-red); }
.offcanvas-menu .offcanvas-header img { filter: none !important; height: 40px; }
.offcanvas-menu .offcanvas-header .btn-close { filter: none; }
.icon-btn .badge-count, .bottom-bar .badge-count { background: var(--rt-red); }
.back-top { background: var(--rt-red); }

/* ---------- Nút liên hệ nổi (cột đỏ bên phải) ---------- */
@media (min-width: 992px) {
  .rt-float { right: 0; top: 50%; bottom: auto; transform: translateY(-50%); gap: 0; background: var(--rt-red); border-radius: 10px 0 0 10px; overflow: hidden; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
  .rt-float a { width: 64px; height: auto; border-radius: 0; background: transparent !important; box-shadow: none; animation: none !important; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 11px 4px 9px; font-size: 20px; }
  .rt-float a + a { border-top: 1px solid rgba(255, 255, 255, .22); }
  .rt-float a span { position: static; opacity: 1; visibility: visible; background: none; padding: 0; font-size: 10px; font-weight: 600; color: #fff; white-space: nowrap; max-width: 60px; overflow: hidden; text-overflow: ellipsis; }
  .rt-float a b { font-size: 13px; line-height: 20px; }
  .rt-float a:hover { background: rgba(0, 0, 0, .15) !important; }
  .back-top { background: var(--rt-red); width: 44px; height: 44px; right: 22px; }
}
@media (max-width: 991.98px) {
  .rt-float .fc-home, .rt-float .fc-store, .rt-float .fc-fb { display: none !important; }
  .rt-float a span { position: absolute; right: 56px; background: var(--dark); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 4px; white-space: nowrap; opacity: 0; visibility: hidden; }
  .rt-float a b { font-size: 12px; }
}

/* ---------- Thành phần chung trang chủ ---------- */
.rt-sec { padding: 52px 0; }
.rt-sec-sm { padding: 8px 0; }
.rt-bg-gray { background: #f3f4f6; }
.rt-head { text-align: center; max-width: 920px; margin: 0 auto 32px; }
.rt-head h2 { font-family: var(--font-head); font-size: 30px; font-weight: 600; color: #111827; margin: 0 0 8px; }
.rt-head h2 a { color: inherit; text-decoration: none; transition: color .2s; }
.rt-head h2 a:hover { color: var(--rt-red); }
.rt-head p { font-size: 14px; color: var(--rt-muted); margin: 0; line-height: 1.6; }
.rt-pill { display: inline-flex; align-items: center; justify-content: center; background: var(--rt-red); color: #fff !important; font-size: 13px; font-weight: 700; padding: 0 30px; height: 38px; border-radius: 30px; transition: background .2s, transform .2s; border: 0; }
.rt-pill:hover { background: var(--primary-dark, #8a0000); transform: translateY(-1px); }

/* Slider */
.rt-hero { padding: 0 !important; }
.rt-hero-slider { position: relative; overflow: hidden; }
.rt-hero-slide { display: block; position: relative; height: var(--h, 550px); background: #2a1a12; overflow: hidden; color: #fff; }
.rt-hero-slide picture, .rt-hero-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rt-hero-cap { position: absolute; inset: 0; display: flex; align-items: center; background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .15) 55%, transparent); }
.rt-hero-cap .container { display: block; }
.rt-hero-box { display: flex; flex-direction: column; align-items: flex-start; max-width: 520px; gap: 12px; }
.rt-hero-box .eyebrow { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: #ffd9a0; font-weight: 600; }
.rt-hero-box .ttl { font-family: var(--font-head); font-size: 48px; line-height: 1.15; font-weight: 600; color: #fff; }
.rt-hero-box .txt { font-size: 16px; opacity: .9; }
.rt-hero-box .rt-pill { margin-top: 8px; height: 44px; padding: 0 34px; }
.rt-hero-slider .slick-arrow-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .28); color: #fff; font-size: 20px; opacity: 0; transition: opacity .2s, background .2s; }
.rt-hero-slider:hover .slick-arrow-btn { opacity: 1; }
.rt-hero-slider .slick-arrow-btn:hover { background: rgba(0, 0, 0, .5); }
.rt-hero-slider .slick-arrow-btn.prev { left: 16px; }
.rt-hero-slider .slick-arrow-btn.next { right: 16px; }
.rt-hero-slider .slick-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex !important; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.rt-hero-slider .slick-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; font-size: 0; background: rgba(255, 255, 255, .55); }
.rt-hero-slider .slick-dots .slick-active button { background: #fff; }
.rt-hero-slider:not(.slick-initialized) .rt-hero-item + .rt-hero-item { display: none; }

/* Ảnh tròn */
.rt-circle-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px 42px; }
.rt-circle { display: flex; flex-direction: column; align-items: center; gap: 18px; width: 128px; color: var(--rt-text); }
.rt-circle .img { width: 128px; height: 128px; border-radius: 50%; overflow: hidden; background: #e5e7eb; display: grid; place-items: center; font-size: 36px; color: var(--rt-red); }
.rt-circle .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.rt-circle:hover .img img { transform: scale(1.08); }
.rt-circle .lbl { font-size: 14px; font-weight: 700; text-transform: uppercase; text-align: center; letter-spacing: .2px; }
.rt-circle:hover .lbl { color: var(--rt-red); }

/* Lưới banner */
.rt-banner-grid { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 16px; }
.rt-banners + .rt-banners .rt-banner-grid, .rt-banner-grid.font-md { gap: 24px; }
.rt-banner { position: relative; display: block; height: var(--h, 300px); border-radius: 16px; overflow: hidden; background: #3a2418; }
.rt-banner.is-wide { grid-column: 1 / -1; }
.rt-banner img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.rt-banner:hover img { transform: scale(1.05); }
.rt-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .45)); }
.rt-banner .ttl { position: absolute; left: 12px; right: 12px; bottom: 26px; z-index: 2; text-align: center; color: #fff; font-family: var(--font-head); font-size: 25px; font-weight: 700; text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.rt-banner-grid.font-md .rt-banner .ttl { font-size: 21px; font-weight: 500; }

/* Nút danh mục */
.rt-buttons { padding-top: 40px !important; padding-bottom: 40px !important; }
.rt-btn-grid { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 16px; }
.rt-cat-btn { display: flex; align-items: center; justify-content: center; height: 52px; border-radius: 4px; background: var(--rt-red); color: #fff !important; font-size: 14px; font-weight: 700; text-align: center; padding: 0 10px; transition: background .2s, transform .2s; }
.rt-cat-btn:hover { background: var(--primary-dark, #8a0000); transform: translateY(-2px); }

/* Lưới sản phẩm */
.rt-product-grid { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 24px; }
.rt-card { display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden; color: var(--rt-text); transition: box-shadow .25s, transform .25s; }
.rt-card:hover { box-shadow: 0 10px 28px rgba(0, 0, 0, .08); transform: translateY(-3px); color: var(--rt-text); }
.rt-card-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.rt-card-link:hover { color: inherit; }
.rt-card-foot { padding: 0 16px 16px; }
.rt-card-cart { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 38px; border: 1px solid var(--rt-red); border-radius: 30px; background: #fff; color: var(--rt-red); font-size: 13px; font-weight: 600; text-decoration: none; transition: background .2s, color .2s; cursor: pointer; }
.rt-card-cart:hover, .rt-card-cart.added { background: var(--rt-red); color: #fff; }
.rt-card-cart:disabled { opacity: .6; cursor: wait; }
.rt-card-cart.is-out { border-color: #d1d5db; color: #9ca3af; cursor: default; background: #f9fafb; }
.rt-card-img { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1.2; padding: 10px; border-bottom: 1px solid #f1f1f1; }
.rt-card-img img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); max-width: none; object-fit: contain; transition: transform .4s; }
.rt-card:hover .rt-card-img img { transform: scale(1.04); }
.rt-card-sale { position: absolute; top: 10px; left: 10px; background: var(--rt-red); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.rt-card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 18px; flex: 1; }
.rt-card-name { font-family: var(--font-head); font-size: 16px; font-weight: 600; line-height: 24px; color: var(--rt-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 48px; }
.rt-card:hover .rt-card-name { color: var(--rt-red); }
.rt-card-abv { font-size: 12px; color: #6b7280; }
.rt-card-price { margin-top: auto; padding-top: 6px; font-size: 16px; font-weight: 700; color: var(--rt-red); }
.rt-card-price del { font-size: 12px; font-weight: 400; color: #9ca3af; margin-left: 4px; }

/* Tin tức */
.rt-news-img { display: block; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 20px rgba(0, 0, 0, .08); background: #fff; aspect-ratio: 16 / 12; }
.rt-news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.rt-news-img:hover img { transform: scale(1.04); }
.rt-news-img .ph { display: grid; place-items: center; height: 100%; font-size: 48px; color: #d1d5db; }
.rt-news-text { text-align: center; max-width: 560px; margin: 0 auto; }
.rt-news-text h3 { font-family: var(--font-body); font-size: 20px; font-weight: 600; margin: 0 0 14px; }
.rt-news-text h3 a { color: #111827; }
.rt-news-text h3 a:hover { color: var(--rt-red); }
.rt-news-text p { font-size: 14px; color: #6b7280; line-height: 1.7; margin-bottom: 18px; }
.rt-know { margin-top: 40px; text-align: center; }
.rt-know h4 { font-family: var(--font-body); font-size: 20px; font-weight: 600; margin: 0 0 24px; }
.rt-know-grid { display: grid; grid-template-columns: 1fr 1fr; max-width: 470px; margin: 0 auto; }
.rt-know-grid a { display: flex; align-items: center; gap: 16px; padding: 18px 20px; color: var(--rt-text); font-size: 13px; font-weight: 600; text-transform: uppercase; text-align: left; line-height: 1.5; }
.rt-know-grid a:nth-child(odd) { border-right: 1px solid #e5e7eb; }
.rt-know-grid a i { font-size: 32px; color: var(--rt-red); flex: none; width: 40px; text-align: center; }
.rt-know-grid a:hover { color: var(--rt-red); }

/* Video */
.rt-video { display: block; color: var(--rt-text); text-align: center; }
.rt-video .thumb { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10.5; background: #111; }
.rt-video .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.rt-video:hover .thumb img { transform: scale(1.05); }
.rt-video .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(179, 0, 0, .75); border: 2px solid #fff; color: #fff; display: grid; place-items: center; font-size: 26px; transition: background .2s; }
.rt-video:hover .play { background: var(--rt-red); }
.rt-video .ttl { display: block; margin-top: 14px; font-size: 14px; font-weight: 700; text-transform: uppercase; line-height: 1.5; }
.rt-video:hover .ttl { color: var(--rt-red); }

/* Cửa hàng */
.rt-store-list { max-width: 1160px; margin: 0 auto; }
.rt-store h3 { font-family: var(--font-head); color: var(--rt-red); font-size: 20px; font-weight: 700; margin: 0 0 16px; }
.rt-store p { display: flex; gap: 12px; margin: 0 0 12px; font-family: var(--font-head); font-size: 14.5px; color: #374151; line-height: 1.55; }
.rt-store p i { color: var(--rt-text); font-size: 14px; margin-top: 3px; flex: none; width: 16px; }
.rt-store p a { color: var(--rt-text); }
.rt-store p a:hover { color: var(--rt-red); }
.rt-ship { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 34px; }
.rt-ship .rt-pill { height: 40px; font-size: 13px; padding: 0 26px; }
.rt-ship i { font-size: 40px; color: var(--rt-red); }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .rt-nav { gap: 0 16px; }
  .rt-top-links { gap: 14px; }
  .rt-top-links a span { display: none; }
  .rt-search { flex-basis: 280px; }
}
@media (max-width: 991.98px) {
  .rt-header { position: sticky; top: 0; z-index: 1035; }
  .admin-bar .rt-header { top: 46px; }
  .rt-top { grid-template-columns: auto 1fr auto; min-height: 0; padding-top: 10px; padding-bottom: 10px; gap: 10px 12px; }
  .rt-burger { display: inline-flex; background: none; font-size: 26px; }
  .rt-top-links { display: none; }
  .rt-logo { text-align: center; }
  .rt-logo .logo img, .rt-logo img { height: 44px; }
  .rt-top-right { display: contents; }
  .rt-top-right > .rt-icon-btn { grid-column: 3; grid-row: 1; }
  .rt-search { grid-column: 1 / -1; grid-row: 2; flex: none; width: 100%; }
  .rt-mainnav { display: none; }
  .rt-policy-links { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; gap: 24px; padding: 0 2px; scrollbar-width: none; }
  .rt-policy-links::-webkit-scrollbar { display: none; }
  .rt-sec { padding: 36px 0; }
  .rt-head { margin-bottom: 22px; }
  .rt-head h2 { font-size: 25px; }
  .rt-hero-slide { height: min(var(--h, 550px), 56vw); }
  .rt-hero-box .ttl { font-size: 30px; }
  .rt-hero-box .txt { font-size: 14px; }
  .rt-circle-row { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; gap: 18px; padding-bottom: 6px; scrollbar-width: none; }
  .rt-circle-row::-webkit-scrollbar { display: none; }
  .rt-circle { width: 96px; flex: none; gap: 10px; }
  .rt-circle .img { width: 96px; height: 96px; }
  .rt-circle .lbl { font-size: 12px; }
  .rt-banner-grid { gap: 12px !important; }
  .rt-banner { height: min(var(--h, 300px), 46vw); }
  .rt-banner-grid[style*="--cols:3"], .rt-banner-grid[style*="--cols:4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rt-banner .ttl { font-size: 20px; bottom: 16px; }
  .rt-btn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .rt-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .rt-know-grid a { padding: 14px 10px; gap: 10px; font-size: 12px; }
  .rt-know-grid a i { font-size: 26px; width: 30px; }
}
@media (max-width: 575.98px) {
  .rt-hero-slide { height: 62vw; }
  .rt-hero-box { gap: 6px; max-width: 78%; }
  .rt-hero-box .eyebrow { font-size: 10px; letter-spacing: 2px; }
  .rt-hero-box .ttl { font-size: 21px; }
  .rt-hero-box .txt { display: none; }
  .rt-hero-box .rt-pill { height: 32px; padding: 0 18px; font-size: 12px; margin-top: 2px; }
  .rt-banner-grid { grid-template-columns: 1fr 1fr !important; }
  .rt-banner .ttl { font-size: 16px; bottom: 12px; }
  .rt-banner-grid.font-md .rt-banner .ttl { font-size: 14px; }
  .rt-btn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rt-cat-btn { height: 44px; font-size: 13px; }
  .rt-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rt-card-body { padding: 10px 10px 12px; }
  .rt-card-name { font-size: 14px; line-height: 20px; min-height: 40px; }
  .rt-card-price { font-size: 14px; }
  .rt-card-foot { padding: 0 10px 12px; }
  .rt-card-cart { height: 34px; font-size: 12px; }
  .rt-ship { flex-wrap: wrap; }
  .rt-ship .rt-pill { font-size: 12px; padding: 0 16px; height: auto; min-height: 36px; text-align: center; }
}
@media (max-width: 782px) { .admin-bar .rt-mainnav, .admin-bar .rt-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .rt-mainnav, .admin-bar .rt-header { top: 0; } }

/* ---------- Footer kiểu ruoutot.net ---------- */
.rt-footer { position: relative; overflow: hidden; background: #dfdfdf; padding: 40px 0 32px; color: var(--rt-text); font-size: 13px; }
.rt-footer::before { content: attr(data-mark); position: absolute; left: -40px; top: 60px; font-family: var(--font-head); font-size: 760px; line-height: .8; font-weight: 700; color: rgba(0, 0, 0, .045); pointer-events: none; text-transform: uppercase; }
.rt-footer .container { position: relative; }
.rt-foot-grid { display: grid; grid-template-columns: 2.25fr 1fr 1fr 1fr; }
.rt-foot-col { padding: 0 16px; border-left: 1px dashed #a3a3a3; min-width: 0; }
.rt-foot-col:first-child { border-left: 0; padding-left: 0; }
.rt-foot-info { padding-right: 28px; }
.rt-foot-col:last-child { padding-right: 0; }
.rt-foot-block + .rt-foot-block { margin-top: 30px; }
.rt-footer h6 { font-family: var(--font-body); font-size: 12px; font-weight: 400; color: var(--rt-red); text-transform: uppercase; margin: 0 0 16px; letter-spacing: .2px; }
.rt-footer h6 button { display: none; }
.rt-foot-links.collapse:not(.show) { display: block; }
.rt-footer ul.menu, .rt-foot-links ul { list-style: none; margin: 0; padding: 0; }
.rt-footer ul.menu li + li { margin-top: 12px; }
.rt-footer ul.menu a { color: var(--rt-text); font-size: 13px; font-weight: 500; line-height: 19.5px; }
.rt-footer ul.menu a:hover { color: var(--rt-red); }
.rt-flogo { margin-bottom: 14px; }
.rt-flogo img { height: 78px !important; max-height: none !important; width: auto; filter: none !important; }
.rt-foot-info p { margin: 0 0 8px; line-height: 1.6; }
.rt-foot-info p a { color: var(--rt-text); }
.rt-foot-info .rt-red, .rt-foot-info p a.rt-red { color: var(--rt-red); }
.rt-foot-info h6 { margin: 22px 0 12px; }
.rt-warn { display: flex; gap: 12px; margin-bottom: 18px; }
.rt-warn img { width: 40px; height: 40px; }
.rt-social { display: flex; gap: 10px; flex-wrap: wrap; }
.rt-social a { width: 28px; height: 28px; border-radius: 3px; background: #fff; display: grid; place-items: center; font-size: 17px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.rt-social a.zalo { background: #0068ff; color: #fff; font-size: 9px; font-weight: 700; }
.rt-social a:hover { transform: translateY(-2px); }
.rt-pay { display: flex; gap: 8px; flex-wrap: wrap; }
.rt-pay span { min-width: 37px; height: 31px; padding: 0 7px; border-radius: 3px; background: #fff; display: grid; place-items: center; font-size: 9.5px; font-weight: 800; color: #1a1f71; letter-spacing: .2px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.rt-pay .pm-visa { color: #fff; background: #1a1f71; font-style: italic; }
.rt-pay .pm-master, .rt-pay .pm-mastercard { color: #eb001b; }
.rt-pay .pm-amex { color: #fff; background: #2e77bc; }
.rt-pay .pm-paypal { color: #003087; font-style: italic; }
.rt-pay .pm-momo { color: #fff; background: #a50064; }
.rt-pay .pm-vnpay { color: #005baa; }
.rt-pay .pm-cod { color: #1f2937; }
.rt-badges { display: flex; gap: 12px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.rt-badges .bct, .rt-badges .dmca { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 9px 0 6px; border-radius: 4px; font-size: 10px; font-weight: 800; line-height: 1.05; }
.rt-badges .bct { background: #fff; color: #1d6fb8; border: 1px solid #b9d4ee; }
.rt-badges .bct i { font-size: 22px; color: #1d6fb8; }
.rt-badges .dmca { background: #7cb342; color: #fff; }
.rt-badges .dmca i { font-size: 18px; }
.rt-badges small { display: block; font-size: 7px; font-weight: 700; opacity: .9; }
.rt-foot-warning { margin: 30px 0 0; padding-top: 16px; border-top: 1px dashed #a3a3a3; font-size: 12px; color: #4b5563; text-align: center; }
.rt-foot-copy { margin: 6px 0 0; font-size: 12px; color: #6b7280; text-align: center; }
.rt-footer + * { margin-top: 0; }
@media (max-width: 1199.98px) {
  .rt-foot-grid { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .rt-foot-info { grid-column: 1 / -1; border-left: 0; padding: 0; }
  .rt-foot-col:nth-child(2) { border-left: 0; padding-left: 0; }
  .rt-foot-col:last-child { grid-column: auto; }
}
@media (max-width: 767.98px) {
  .rt-footer { padding: 28px 0 90px; }
  .rt-footer::before { font-size: 420px; top: 20px; }
  .rt-foot-grid { grid-template-columns: 1fr; row-gap: 0; }
  .rt-foot-col { border-left: 0; padding: 0; }
  .rt-foot-info { padding-bottom: 18px; }
  .rt-foot-block { border-top: 1px dashed #a3a3a3; margin: 0 !important; }
  .rt-footer .rt-foot-block h6 { margin: 0; }
  .rt-footer .rt-foot-block h6 > span { display: none; }
  .rt-footer .rt-foot-block h6 button { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 13px 0; background: none; border: 0; color: var(--rt-red); font-size: 12px; text-transform: uppercase; }
  .rt-footer .rt-foot-block h6 button i { transition: transform .2s; color: var(--rt-text); }
  .rt-footer .rt-foot-block h6 button[aria-expanded="true"] i { transform: rotate(180deg); }
  .rt-foot-links.collapse:not(.show) { display: none; }
  .rt-foot-links ul.menu { padding-bottom: 14px; }
}

/* ---------- Trang chi tiết sản phẩm kiểu ruoutot.net ---------- */
.single-product #main { background: #fff; }
.single-product #main > .section { padding-top: 6px !important; }
.breadcrumb-wrap { background: transparent; border: 0; padding: 18px 0 6px; }
.breadcrumb-wrap .breadcrumb { margin: 0; font-size: 15px; background: none; padding: 0; }
.breadcrumb-wrap .breadcrumb-item, .breadcrumb-wrap .breadcrumb-item a { color: #6b7280; }
.breadcrumb-wrap .breadcrumb-item:last-child, .breadcrumb-wrap .breadcrumb-item.active { color: var(--rt-text); }
.breadcrumb-wrap .breadcrumb-item + .breadcrumb-item::before { content: "›"; color: #6b7280; padding: 0 10px 0 6px; float: none; font-size: 18px; line-height: 1; }
.breadcrumb-wrap .breadcrumb-item:first-child a::before { content: "\F425"; font-family: "bootstrap-icons"; margin-right: 6px; font-size: 16px; vertical-align: -1px; color: #4b5563; }
.breadcrumb-wrap .breadcrumb-item a:hover { color: var(--rt-red); }

.rt-pd-top { padding-top: 14px; }
.rt-pd-gallery { position: sticky; top: 70px; }
.rt-pd-main { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1.05; overflow: hidden; cursor: zoom-in; }
.rt-pd-main img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; transition: transform .3s; }
.rt-pd-main.zoom img { transform: scale(1.7); }
.rt-pd-main .rt-card-sale { z-index: 2; font-size: 13px; }
.rt-pd-thumbs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.rt-pd-thumbs button { width: 70px; height: 70px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; padding: 4px; }
.rt-pd-thumbs button.active, .rt-pd-thumbs button:hover { border-color: var(--rt-red); }
.rt-pd-thumbs img { width: 100%; height: 100%; object-fit: contain; }

.rt-pd-title { font-family: var(--font-body); font-size: 20px; font-weight: 600; color: #a4000b; margin: 0 0 30px; line-height: 1.4; }
.rt-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 8px; }
.rt-spec { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 19.5px; color: #111827; min-width: 0; }
.rt-spec .rt-svg { width: 17px; height: 17px; margin-top: 1px; fill: #a4000b; }
.rt-spec b { font-weight: 700; }
.rt-spec a { color: #111827; }
.rt-spec a:hover { color: #a4000b; text-decoration: underline; }
.rt-spec.is-multi { grid-column: 1 / -1; flex-direction: column; gap: 0; }
.rt-spec-head { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 0 0 12px; text-align: left; color: inherit; font-size: inherit; border-bottom: 1px solid #f1f1f1; }
.rt-spec-head .rt-svg { margin-top: 0; }
.rt-spec-head .rt-spec-txt { flex: 1; }
.rt-spec-head > i { color: #9ca3af; font-size: 14px; transition: transform .2s; }
.rt-spec-head[aria-expanded="true"] > i { transform: rotate(180deg); }
.rt-spec-count { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 10px; background: #fde8e8; color: #a4000b; font-size: 11px; font-weight: 700; line-height: 18px; }
.rt-spec-list { list-style: none; margin: 10px 0 0; padding: 0 0 0 27px; display: grid; gap: 10px; }
.rt-spec-list li { position: relative; padding-left: 14px; }
.rt-spec-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: #a4000b; }
.rt-pd-warning { display: flex; gap: 10px; margin: 40px 0 0; font-size: 12px; font-weight: 500; color: #111827; line-height: 1.6; }
.rt-pd-warning i { color: #a4000b; font-size: 16px; line-height: 1.2; }
.rt-pd-short { margin-top: 20px; font-size: 14px; color: #4b5563; }

.rt-pd-side { border-left: 1px solid #e5e7eb; padding-left: 24px; height: 100%; }
.rt-pd-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; color: #a4000b; font-weight: 700; font-size: 18px; margin-bottom: 10px; }
.rt-pd-price .now { font-size: 20px; }
.rt-pd-price del { color: #9ca3af; font-size: 13px; font-weight: 400; }
.rt-pd-side form.cart { margin-bottom: 0; }
.rt-pd-buybox { padding: 16px; border-radius: 12px; background: #f2f2f2; margin-bottom: 14px; }
.rt-pd-buybox .rt-pd-buy { margin-bottom: 0; }
.rt-pd-buybox .rt-pd-note:last-child { margin-bottom: 0; }
.rt-pd-buybox .quantity { background: #fff !important; }
.rt-pd-note { font-size: 12px; color: #4b5563; line-height: 1.6; margin: 0 0 18px; }
.rt-pd-btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 42px; border-radius: 30px; color: #fff !important; font-size: 15px; font-weight: 700; margin-bottom: 12px; transition: filter .2s, transform .2s; }
.rt-pd-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.rt-pd-btn.zalo { background: #007cb0; }
.rt-pd-btn.hotline { background: #a4000b; }
.rt-pd-btn .zl { width: 20px; height: 20px; border-radius: 4px; background: #fff; color: #007cb0; font-size: 13px; font-weight: 800; display: grid; place-items: center; transform: skewX(-6deg); }
.rt-pd-buy { margin-bottom: 14px; }
.rt-pd-buy form.cart { display: flex; flex-wrap: wrap; gap: 8px; }
/* Hàng 1: [ − 1 + ] [icon giỏ hàng]   Hàng 2: [ Mua ngay ] */
.rt-pd-buy form.cart { align-items: stretch; margin: 0; }
.rt-pd-buy form.cart .quantity { flex: 1 1 auto; height: 46px; border-radius: 10px; }
.rt-pd-buy form.cart .quantity button { flex: 1; height: 44px; width: auto; min-width: 40px; }
.rt-pd-buy form.cart .quantity input.qty { flex: 1; height: 44px; width: 48px; min-width: 0; }
.rt-pd-buy .single_add_to_cart_button { flex: 0 0 56px !important; width: 56px; min-width: 0 !important; height: 46px !important; padding: 0 !important; border-radius: 10px !important; font-size: 0 !important; display: flex !important; align-items: center; justify-content: center; line-height: 1 !important; background: #fff !important; border: 1px solid #a4000b !important; color: #a4000b !important; }
.rt-pd-buy .single_add_to_cart_button::before { content: "" !important; display: block; margin: 0 !important; width: 26px; height: 26px; line-height: 0; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-0.75 0.5 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 3.5h2.4l2.3 11.1a1.6 1.6 0 0 0 1.6 1.3h9.4a1.6 1.6 0 0 0 1.6-1.2L21 7H5.2'/%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='17.8' cy='20' r='1.5'/%3E%3Cpath d='M13 8.8v5.4M10.3 11.5h5.4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-0.75 0.5 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 3.5h2.4l2.3 11.1a1.6 1.6 0 0 0 1.6 1.3h9.4a1.6 1.6 0 0 0 1.6-1.2L21 7H5.2'/%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='17.8' cy='20' r='1.5'/%3E%3Cpath d='M13 8.8v5.4M10.3 11.5h5.4'/%3E%3C/svg%3E") center / contain no-repeat; }
.rt-pd-buy .single_add_to_cart_button:hover { background: #a4000b !important; color: #fff !important; }
.rt-pd-buy .vl-buy-now { flex: 1 1 100% !important; height: 44px !important; border-radius: 30px !important; background: #7d1e2c !important; background: var(--primary, #7d1e2c) !important; border: 0 !important; color: #fff !important; font-weight: 600; box-shadow: none !important; }
.rt-pd-buy .vl-buy-now:hover { filter: brightness(1.12); }
.rt-pd-right { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr); column-gap: 24px; row-gap: 28px; align-items: start; }
.rt-pd-mid, .rt-pd-aside { min-width: 0; }
.rt-pd-aside { align-self: stretch; }
.rt-pd-commits { list-style: none; margin: 18px 0 0; padding: 16px; border-radius: 12px; background: #f2f2f2; display: grid; gap: 16px; }
.rt-pd-commits li { display: flex; gap: 12px; }
.rt-pd-commits .rt-svg { width: 28px; height: 28px; flex: none; fill: #a4000b; margin-top: 2px; }
.rt-pd-commits b { display: block; color: #a4000b; font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.rt-pd-commits span { display: block; font-size: 13px; color: #1f2937; line-height: 1.6; }

.rt-pd-info { margin-top: 50px; padding-top: 34px; border-top: 1px solid #e5e7eb; }
.rt-pd-info > h2 { font-family: var(--font-body); font-size: 24px; font-weight: 700; text-transform: uppercase; color: #111827; margin: 0 0 24px; letter-spacing: .3px; }
.rt-pd-desc { position: relative; }
.rt-pd-desc.is-collapsed { max-height: var(--h, 420px); overflow: hidden; }
.rt-pd-desc.is-collapsed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.rt-pd-desc-in { font-size: 15px; line-height: 1.7; color: #1f2937; }
.rt-pd-desc-in img, .rt-pd-desc-in iframe { max-width: 100%; height: auto; display: block; margin: 12px auto; }
.rt-pd-desc-in iframe { aspect-ratio: 16 / 9; width: 640px; }
.rt-pd-desc-in table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.rt-pd-desc-in td, .rt-pd-desc-in th { border: 1px solid #e5e7eb; padding: 8px 12px; }
.rt-more-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; height: 44px; padding: 0 40px; border: 2px solid #a4000b; border-radius: 30px; background: #fff; color: #a4000b; font-weight: 700; font-size: 15px; }
.rt-more-btn:hover { background: #a4000b; color: #fff; }
.rt-pd-meta { margin: 18px 0 0; font-size: 11px; color: #4b5563; }
.rt-pd-meta b { color: var(--rt-red); }
.rt-pd-related { margin-top: 30px; padding-top: 30px; border-top: 1px solid #e5e7eb; }
.rt-pd-related .vl-related { margin-top: 0 !important; }
.rt-related-slider .slick-slide > div { padding: 0 10px; }
.rt-related-slider .rt-card { border: 1px solid #f0f0f0; margin-bottom: 20px; }
.rt-related-slider .slick-list { margin: 0 -10px; }

@media (max-width: 991.98px) {
  .rt-pd-gallery { position: static; }
  .rt-pd-main { aspect-ratio: 1; max-height: 420px; margin: 0 auto; }
  .rt-pd-side { border-left: 0; padding-left: 0; border-top: 1px solid #e5e7eb; padding-top: 20px; }
  .rt-pd-title { margin-bottom: 20px; }
  .rt-pd-warning { margin-top: 24px; }
  .rt-pd-info { margin-top: 30px; padding-top: 24px; }
  .rt-pd-info > h2 { font-size: 19px; }
}
@media (max-width: 575.98px) {
  .rt-specs { gap: 16px 8px; }
}
.rt-pd-btn.hotline i { width: auto; height: auto; background: none; border-radius: 0; color: #fff; font-size: 17px; display: inline; }
.rt-related-slider .slick-track { margin-left: 0; }
.rt-related-slider .rt-card { height: auto; }

/* ---------- Xác nhận 18+ toàn màn hình ---------- */
html.ag-lock, html.ag-lock body { overflow: hidden !important; height: 100%; }
html.ag-ok #ageWall { display: none !important; }
.ag-wall { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 24px 16px; overflow-y: auto; background-color: #0a0a0a; background-size: cover; background-position: center; color: #fff; font-family: var(--font-body, "Be Vietnam Pro", system-ui, sans-serif); opacity: 1; transition: opacity .4s ease, visibility .4s; }
.ag-wall.is-leaving { opacity: 0; visibility: hidden; }
.ag-wall.is-leaving .ag-inner { transform: scale(.98); }
.ag-inner { width: 100%; max-width: 925px; display: flex; flex-direction: column; align-items: center; gap: clamp(28px, 7vh, 76px); transition: transform .4s ease; animation: agIn .6s ease both; }
@keyframes agIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.ag-logo img { display: block; max-width: min(420px, 78vw); max-height: 180px; width: auto; height: auto; }
.ag-logo.is-auto img { max-height: 110px; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .5)); }
.ag-logo a { pointer-events: none; }
.ag-box { width: 100%; min-height: 300px; border: 2px solid #fff; border-radius: 18px; padding: 34px clamp(18px, 4vw, 36px) 44px; text-align: center; background: rgba(0, 0, 0, .28); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; }
.ag-step { width: 100%; }
.ag-step[hidden] { display: none !important; }
.ag-legal { margin: 0 auto 4px; max-width: 860px; font-size: 14.5px; line-height: 1.65; color: #b9b9b9; }
.ag-ask { margin: 0 0 4px; font-size: 16px; font-weight: 500; color: #fff; }
.ag-title { margin: 0; font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: #fff; line-height: 1.35; }
.ag-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 50px; margin: 30px 0 34px; }
.ag-btn { min-width: 146px; height: 48px; padding: 0 18px; border-radius: 4px; font-size: 19px; font-weight: 500; letter-spacing: .2px; cursor: pointer; transition: background .2s, color .2s, transform .15s, box-shadow .2s; }
.ag-btn:active { transform: scale(.97); }
.ag-btn:focus-visible, .ag-back:focus-visible { outline: 3px solid #e0be7a; outline-offset: 3px; }
.ag-yes { background: #b30000; border: 1px solid #b30000; color: #fff; box-shadow: 0 6px 20px rgba(179, 0, 0, .35); }
.ag-yes:hover { background: #d10000; border-color: #d10000; }
.ag-no { background: transparent; border: 1px solid #fff; color: #fff; }
.ag-no:hover { background: #fff; color: #111; }
.ag-note { margin: 0; font-size: 17px; font-weight: 500; color: #fff; line-height: 1.6; }
.ag-denied-ico { width: 74px; height: 74px; margin: 0 auto 16px; border-radius: 50%; border: 4px solid #b30000; display: grid; place-items: center; font-size: 22px; font-weight: 800; color: #fff; position: relative; }
.ag-denied-ico::after { content: ""; position: absolute; width: 4px; height: 78px; background: #b30000; transform: rotate(-45deg); }
.is-denied .ag-title { margin-bottom: 10px; }
.is-denied .ag-note { font-size: 15px; color: #d4d4d4; max-width: 520px; margin: 0 auto; }
.ag-back { margin-top: 26px; background: none; border: 1px solid rgba(255, 255, 255, .6); color: #fff; border-radius: 30px; padding: 9px 26px; font-size: 14px; cursor: pointer; }
.ag-back:hover { background: rgba(255, 255, 255, .12); }
@media (max-width: 575.98px) {
  .ag-wall { align-items: flex-start; padding-top: 9vh; }
  .ag-box { min-height: 0; padding: 26px 16px 30px; border-radius: 14px; }
  .ag-legal { font-size: 12.5px; }
  .ag-ask { font-size: 14px; }
  .ag-btns { gap: 12px; margin: 22px 0 24px; }
  .ag-btn { flex: 1 1 130px; min-width: 0; height: 46px; font-size: 16px; }
  .ag-note { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .ag-inner, .ag-wall { animation: none; transition: none; } }

/* Trang danh sách sản phẩm dùng chung thẻ với trang chủ */
.product-grid .rt-card { height: 100%; border: 1px solid #f0f0f0; }
.product-grid.list-view .rt-card { flex-direction: row; align-items: stretch; }
.product-grid.list-view .rt-card-link { flex-direction: row; }
.product-grid.list-view .rt-card-img { width: 180px; flex: none; border-bottom: 0; border-right: 1px solid #f1f1f1; }
.product-grid.list-view .rt-card-foot { display: flex; align-items: center; padding: 16px; width: 200px; flex: none; }
@media (max-width: 767.98px) {
  .product-grid.list-view .rt-card, .product-grid.list-view .rt-card-link { flex-direction: column; }
  .product-grid.list-view .rt-card-img { width: auto; border-right: 0; border-bottom: 1px solid #f1f1f1; }
  .product-grid.list-view .rt-card-foot { width: auto; padding: 0 10px 12px; }
}

@media (max-width: 991.98px) {
  .rt-pd-right { grid-template-columns: 1fr; row-gap: 20px; }
}

/* ===== Trang danh mục: cây danh mục bên trái ===== */
.filter-box .fb-body.fb-cats { max-height: 340px; }
.cat-tree .ct-item { margin-bottom: 2px; }
.cat-tree .ct-row { display: flex; align-items: center; gap: 4px; }
.cat-tree .ct-link { flex: 1; display: block; padding: 5px 8px; border-radius: 6px; color: #1f2937; text-decoration: none; }
.cat-tree .ct-link small { color: #9ca3af; }
.cat-tree .ct-link:hover { background: #f6f6f6; color: var(--primary); }
.cat-tree .is-branch > .ct-row .ct-link { font-weight: 600; color: var(--primary); }
.cat-tree .is-current > .ct-row .ct-link { background: rgba(125, 30, 44, .08); }
.cat-tree .ct-toggle { width: 28px; height: 28px; flex: none; border: 0; border-radius: 6px; background: transparent; color: #6b7280; display: grid; place-items: center; }
.cat-tree .ct-toggle:hover { background: #f3f4f6; }
.cat-tree .ct-toggle i { transition: transform .2s; }
.cat-tree .ct-toggle.collapsed i { transform: rotate(-90deg); }
.cat-tree .ct-kids { margin: 2px 0 6px 10px; padding-left: 10px; border-left: 2px solid #f0e6e7; }
.cat-tree .ct-kids a { display: block; padding: 4px 8px; border-radius: 6px; color: #6b7280; text-decoration: none; }
.cat-tree .ct-kids a:hover { color: var(--primary); background: #f9f9f9; }
.cat-tree .ct-kids .is-current a { color: var(--primary); font-weight: 600; background: rgba(125, 30, 44, .08); }

/* ===== Danh mục con phía trên danh sách sản phẩm ===== */
.sub-cats-wrap { position: relative; margin-bottom: 22px; }
.sub-cats-wrap .sub-cats { margin-bottom: 0; }
.sub-cats.no-img a { padding: 7px 16px; }
.sub-cats-wrap.is-collapse .sub-cats.is-clamped { max-height: 98px; overflow: hidden; }
.sub-cats-wrap.is-collapse .sub-cats.is-clamped + .sc-more::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 28px; background: linear-gradient(rgba(255,255,255,0), var(--rt-bg, #f8f9fa)); pointer-events: none; }
.sc-more { position: relative; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 16px; border: 1px solid #e5e7eb; border-radius: 30px; background: #fff; color: var(--primary); font-size: 13px; font-weight: 600; }
.sc-more:hover { border-color: var(--primary); }
.sc-more i { transition: transform .2s; }
.sc-more[aria-expanded="true"] i { transform: rotate(180deg); }
.sc-more[aria-expanded="true"]::before { display: none; }
.sub-cats-wrap.is-scroll { display: flex; align-items: center; gap: 8px; }
.sub-cats-wrap.is-scroll .sub-cats { flex: 1; flex-wrap: nowrap; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 2px 0; }
.sub-cats-wrap.is-scroll .sub-cats::-webkit-scrollbar { display: none; }
.sub-cats-wrap.is-scroll .sub-cats a { flex-shrink: 0; }
.sc-nav { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid #e5e7eb; background: #fff; color: #374151; display: grid; place-items: center; }
.sc-nav:hover { border-color: var(--primary); color: var(--primary); }
.sc-nav:disabled { opacity: .35; }
@media (max-width: 767.98px) {
  .sub-cats-wrap.is-collapse .sub-cats.is-clamped { max-height: none; }
  .sub-cats-wrap.is-collapse .sc-more { display: none; }
  .sc-nav { display: none; }
}

/* ===== Thanh công cụ danh sách sản phẩm (Bộ lọc / Sắp xếp / Kiểu xem) ===== */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; padding: 10px 12px; background: #fff; border: 1px solid #eee; border-radius: 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, .03); margin-bottom: 18px; }
.toolbar .result-count { flex: 1; min-width: 0; color: #6b7280; }
.toolbar .woocommerce-result-count { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toolbar .tb-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.tb-filter { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--primary); border-radius: 10px; background: #fff; color: var(--primary); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .2s, color .2s; }
.tb-filter:hover, .tb-filter:focus-visible { background: var(--primary); color: #fff; }
.tb-filter i { font-size: 16px; }
.tb-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--primary); color: #fff; font-size: 11px; line-height: 20px; text-align: center; }
.tb-filter:hover .tb-badge { background: #fff; color: var(--primary); }
.toolbar .woocommerce-ordering { margin: 0; }
.toolbar select.orderby { height: 40px; min-width: 190px; padding: 0 36px 0 14px; border: 1px solid #e5e7eb; border-radius: 10px; background-color: #f9fafb; background-position: right 12px center; font-size: 14px; color: #1f2937; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.toolbar select.orderby:hover { border-color: #d1d5db; }
.toolbar select.orderby:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(125, 30, 44, .12); background-color: #fff; }
.toolbar .view-toggle { padding: 3px; border-radius: 10px; background: #f3f4f6; }
.toolbar .view-toggle button { width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: #6b7280; display: grid; place-items: center; }
.toolbar .view-toggle button.active { background: #fff; color: var(--primary); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
@media (max-width: 991.98px) {
  .toolbar .result-count { display: none; }
  .toolbar .tb-right { flex: 1; }
  .toolbar .woocommerce-ordering, .toolbar select.orderby { flex: 1; width: 100%; min-width: 0; }
}
@media (max-width: 575.98px) {
  .toolbar { padding: 8px; gap: 8px; }
  .tb-filter { padding: 0 12px; }
}
