/* ==========================================================================
   TVHK Shop 2.12 – đồng bộ trang chủ theo bản bàn giao 27/11 (market-home.css)
   Thứ tự: Banner → Danh mục → Mã giảm giá → Flash Sale → Chương trình tháng → Mùa quà tặng
   → Bán chạy (lọc + dải xếp hạng) → Hẹn chị món mới → Hàng mới về (lưới 6) → Top trend
   → Thương hiệu → Dưỡng da, điểm tô → Combo gợi ý cho chị → 3 banner hãng → Cẩm nang → Cam kết.
   Nạp sau boutique.css. Lớp Vivid (vivid.css) chỉ đổi màu, không đổi bố cục.
   ========================================================================== */

.tvb-home { --ocean: #1674b8; --category-gap: 12px; --shelf-inset: 12px; }

/* Banner chính 196px, ảnh tĩnh vật bên phải */
.tvb-home .hero-wrap { margin-top: 10px; }
.tvb-home .hero-slide { min-height: clamp(162px, 14.1vw, 196px); }
.tvb-home .hero-type { padding: 10px 6% 15px; }
.tvb-home .hero-type h1, .tvb-home .hero-type h2 { font-size: clamp(34px, 3.4vw, 46px); }
.tvb-home .hero-type .primary { margin-top: 8px; min-height: 34px; padding: 6px 15px; }
.tvb-home .hero-type .kicker { margin-bottom: 5px; }
.tvb-home .main-hero { overflow: hidden; isolation: isolate; background: linear-gradient(106deg, #e3f2f9 0%, #f4fafc 23%, #dfedf5 49%, #cbdce9 76%); }
.hero-still-life { position: absolute; z-index: 0; inset: 0 0 0 auto; height: 100%; aspect-ratio: 3 / 1; max-width: 100%; pointer-events: none; -webkit-mask-image: linear-gradient(to right, transparent, #000 32%); mask-image: linear-gradient(to right, transparent, #000 32%); }
.hero-still-life img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.tvb-home .main-hero .hero-type { z-index: 1; padding: 12px 5.6% 20px; }
.main-hero .hero-signature { margin: 0 0 8px; color: #123d56; font-size: clamp(14px, 1.3vw, 18px); font-weight: 750; letter-spacing: -.045em; line-height: 1.15; }
.hero-signature span { color: #19698d; }
.tvb-home .main-hero .hero-type h1 { color: #143e54; font-size: clamp(36px, 4.2vw, 55px); line-height: 1.1; font-weight: 550; letter-spacing: -.055em; }
.tvb-home .main-hero h1 em { color: #155272; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-style: italic; letter-spacing: -.045em; }
.hero-product { margin: 7px 0 0; color: #28495b; font-size: clamp(12px, 1.05vw, 14px); line-height: 1.3; }
.hero-link { position: absolute; inset: 0; z-index: 2; }
.hero-link:focus-visible { outline: 3px solid #1674b8; outline-offset: -3px; }

/* Danh mục: không tiêu đề, vòng tròn 110px */
.tvb-home > #danh-muc { margin-top: calc(var(--category-gap) + var(--shelf-inset)); }
.tvb-home .departments .departments-track { min-width: 0; padding-block: 2px 4px; }
.tvb-home .departments .department .dept-photo { width: min(100%, 110px); }
.tvb-home .departments .department > span:last-child { padding: 4px 8px; }

/* Mã giảm giá gọn */
.tvb-home > #vouchers { margin-top: calc(var(--category-gap) + 2 * var(--shelf-inset)); }
.tvb-home #vouchers .s-head { margin-bottom: 6px; }
.tvb-home #vouchers .s-head h2 { font-size: clamp(16px, 1.45vw, 19px); }
.tvb-home #vouchers .rail-controls button { height: 28px; width: 28px; }
.tvb-home #coupon-row { padding-block: 1px 3px; }
.tvb-home #coupon-row .vt-copy { padding: 6px 7px 6px 12px; gap: 1px; }
.tvb-home #coupon-row .vt-copy b { font-size: clamp(14px, 1.28vw, 17px); line-height: 1.16; }
.tvb-home #coupon-row .vt-copy span, .tvb-home #coupon-row .vt-copy small { margin: 0; line-height: 1.15; font-size: 11px; }

/* Tiêu đề mục: xanh, 18–22px */
.tvb-home .shop-section:not(.flash-section) > .s-head h2 { color: var(--ocean); font-size: clamp(18px, 1.65vw, 22px); line-height: 1.22; letter-spacing: -.035em; }
.tvb-home .shop-section:not(.flash-section) > .s-head { margin-bottom: 10px; }

/* Sản phẩm bán chạy: chip lọc + dải xếp hạng theo danh mục */
#bestseller-section { display: grid; grid-template-columns: minmax(0, 1fr); position: relative; margin-top: 18px; }
#hot-section { position: absolute; top: 0; }
.best-filters { display: flex; flex-wrap: nowrap; gap: 7px; width: 100%; max-width: 29rem; min-width: 0; margin: 2px 0 12px; padding-bottom: 4px; overflow-x: auto; scroll-snap-type: x; scrollbar-width: thin; scrollbar-color: #a9c8d9 transparent; }
.best-filters button { flex: 0 0 auto; white-space: nowrap; border: 1px solid #d3e2eb; background: #fff; color: #284d60; cursor: pointer; border-radius: 20px; font: 600 13px/1.35 Inter, Arial, sans-serif; padding: 7px 13px; }
.best-label-short { display: none; }
.best-filters button[aria-pressed="true"] { color: #fff; background: #1674b8; border-color: #1674b8; }
#best-theme-shelves { display: grid; grid-auto-flow: row; grid-auto-columns: auto; gap: 12px; min-width: 0; overflow: visible; scroll-snap-type: none; padding: 0; }
#best-theme-shelves [hidden], #more-best-rows[hidden] { display: none; }
#best-theme-shelves .family-shelf { border: 0; border-radius: 0; overflow: visible; background: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; min-width: 0; }
#best-theme-shelves .family-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
#best-theme-shelves .family-head h3 { min-width: 0; margin: 0; font: 700 clamp(15px, 1.35vw, 18px)/1.3 Inter, Arial, sans-serif; color: #a1365e; }
#bestseller-section .family-more { display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto; min-height: 32px; padding-inline: 5px; color: #1674b8; font-size: 12px; font-weight: 650; text-decoration: none; }
.family-more .tvb-i { width: 12px; height: 12px; }
#best-theme-shelves .family-items { flex: none; grid-template-columns: none; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(141px, 14.2vw, 173px); grid-template-rows: 1fr; gap: 7px; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x; scrollbar-width: thin; scrollbar-color: #a9c8d9 transparent; padding: 1px 1px 5px; }
.family-items > .best-card { position: relative; scroll-snap-align: start; display: block; flex: none; min-width: 0; border: 1px solid #e3ebef; border-radius: 8px; overflow: hidden; background: #fff; }
.best-card .fd-detail { display: block; height: 100%; color: inherit; text-decoration: none; }
.best-card .fd-photo { display: block; position: relative; height: clamp(96px, 9.5vw, 124px); aspect-ratio: auto; background: #fff; border-bottom: 1px solid #edf3f5; }
.best-card .fd-photo img { width: 100%; height: 100%; display: block; object-fit: contain; box-sizing: border-box; padding: 4px 11px; mix-blend-mode: normal; }
.best-card .fd-body { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 5px; padding: 6px 8px 8px; }
.best-card .fd-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; flex: 0 0 100%; white-space: normal; font-size: 13px; line-height: 1.35; min-height: 2.7em; color: #2a404d; }
.best-card .fd-price { font-size: 15px; white-space: nowrap; letter-spacing: -.035em; color: #b84a6d; font-weight: 750; }
.best-card .fd-body del { font-size: 10px; color: #77818a; }
.best-card .rc-heart { position: absolute; right: 2px; top: 2px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: #53616a; cursor: pointer; }
.best-card .rc-heart .tvb-i { width: 15px; height: 15px; }
.family-rank { position: absolute; left: 5px; top: 5px; display: grid; place-items: center; min-width: 18px; height: 18px; padding-inline: 3px; border-radius: 5px; background: #e0f2fa; color: #145e8f; font: 700 11px/1 Inter, Arial, sans-serif; }
.family-items .best-card:first-child .family-rank { background: #1674b8; color: #fff; }
.family-rank .rank-prefix { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
:is(#new-section, #bestseller-section) .arrivals-more { display: inline-flex; justify-content: center; align-items: center; min-height: 40px; width: min(240px, 80%); padding: 8px 20px; border: 1px solid #bfdfee; border-radius: 24px; background: #e1f3fb; color: #1169a4; font: 700 14px/1.3 Inter, Arial, sans-serif; text-decoration: none; cursor: pointer; }
:is(#new-section, #bestseller-section) .arrivals-more[hidden] { display: none; }
:is(#new-section, #bestseller-section) .arrivals-more:hover { background: #cfebf8; }
#bestseller-section #more-best-rows { justify-self: center; margin: 12px 0 0; }

/* Hàng mới về: lưới 6 cột */
.arrival-grid { --arrival-columns: 6; display: grid; grid-template-columns: repeat(var(--arrival-columns), minmax(0, 1fr)); gap: 10px; }
.arrival-grid > .retail-card[hidden] { display: none; }
.arrivals-footer { display: flex; justify-content: center; margin-top: 16px; }

/* Top trend: dạng mục thường, tiêu đề trái */
.tvb-home .trend-edit { margin-top: clamp(34px, 3.8vw, 55px); }

/* Combo gợi ý cho chị: 3 chế độ */
#routine-section { --combo-label-width: clamp(62px, 5.4vw, 72px); }
#routine-section .s-head { margin-bottom: 5px; }
.combo-modes { display: flex; align-items: stretch; gap: 16px; border-bottom: 1px solid #dce8ee; margin: 0 0 13px; }
.combo-modes button { position: relative; border: 0; background: transparent; color: #465d70; cursor: pointer; font: 650 15px/1.25 Inter, Arial, sans-serif; padding: 8px 5px 12px; white-space: nowrap; }
.combo-modes button[aria-selected="true"] { color: #115f95; }
.combo-modes button[aria-selected="true"]::after { content: ""; position: absolute; inset: auto 0 -1px; height: 3px; background: #1674b8; border-radius: 3px; }
.marketplace-combos [role="tabpanel"][hidden] { display: none; }
#routine-section .selection-tabs { display: flex; gap: 7px; margin-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.need-panel .collection-row, #routine-section .routine-panel { display: grid; grid-template-columns: var(--combo-label-width) minmax(0, 1fr); gap: 8px; align-items: stretch; }
#routine-section .combo-label { --label-bg: #e4f4fa; --label-ink: #205572; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; align-self: stretch; justify-content: space-between; border-radius: 8px; padding: 10px 7px; background: var(--label-bg); color: var(--label-ink); min-width: 0; line-height: 1.25; text-decoration: none; }
#routine-section .combo-label:is([data-tone="makeup5"], [data-tone="makeup"], [data-tone="dry"]) { --label-bg: #fae9ec; --label-ink: #703f50; }
#routine-section .combo-label:is([data-tone="hairduo"], [data-tone="hair"], [data-tone="body"]) { --label-bg: #e1f3ec; --label-ink: #255d50; }
#routine-section .combo-label strong { font-size: 13px; font-weight: 700; text-wrap: balance; }
#routine-section .combo-label-action { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; }
.combo-label-action .tvb-i { width: 12px; height: 12px; }
#routine-section .group-items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; min-width: 0; }
#routine-section .group-items > .retail-card { width: 100%; min-width: 0; }
#routine-section .group-items .rc-info { padding: 8px; }
#routine-section .group-items .rc-name { font-size: 13px; }
@media (min-width: 801px) { #routine-section .group-items :is(.rc-gift, .rc-progress) { display: none; } }
.need-guide { margin-top: 12px; }
#routine-section .need-guide h3 { margin: 0 0 8px; font-size: 16px; color: var(--ocean); line-height: 1.25; }
.need-steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin: 0; padding: 2px 2px 5px; list-style: none; }
.need-steps li { min-width: 0; }
.need-steps a { display: flex; align-items: center; gap: 8px; min-height: 82px; height: 100%; padding: 8px; background: #f5fbfe; border: 1px solid #dcebf4; border-radius: 10px; color: #182a3b; text-decoration: none; }
.need-steps a:hover, .need-steps a:focus-visible { border-color: #1674b8; }
.need-steps img { flex: 0 0 auto; width: 48px; height: 56px; object-fit: contain; background: #fff; border-radius: 6px; }
.need-steps a > span { min-width: 0; }
.need-steps small { display: block; color: #11669c; font-size: .75rem; font-weight: 700; line-height: 1.35; }
.need-steps strong { display: block; margin: 2px 0; font-size: .9rem; line-height: 1.25; }
.guide-product-name { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #465d70; font-size: .8rem; line-height: 1.35; }
#routine-section .combo-line { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); grid-template-columns: var(--combo-label-width); gap: 8px; overflow-x: auto; }
#routine-section .routine-scan-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; color: #165c84; background: #ecf6fa; border-radius: 18px; margin-top: 10px; font-size: 12px; font-weight: 650; }

/* Ba banner thương hiệu (chữ ký thương hiệu, không logo) */
.tvb-home > .brand-campaigns { margin-top: clamp(30px, 3.5vw, 48px); }
.brand-campaign { --shadow-rgb: 111 54 79; --campaign-deep: #f0c0ce; --campaign-mid: #f8dce4; --campaign-light: #fff9fa; --campaign-ink: #61394a; }
.campaign-murad { --shadow-rgb: 113 69 45; --campaign-deep: #eec7ac; --campaign-mid: #f8e3d3; --campaign-light: #fffaf5; --campaign-ink: #5a3728; }
.campaign-codeage { --shadow-rgb: 33 74 100; --campaign-deep: #b2d8e9; --campaign-mid: #daeff6; --campaign-light: #f4fbfd; --campaign-ink: #173e54; }
.campaign-cle-de-peau-beaute { --shadow-rgb: 102 76 39; --campaign-deep: #e7d2a6; --campaign-mid: #f6ebd6; --campaign-light: #fffaf2; --campaign-ink: #50402b; }
.campaign-signature { font: 600 clamp(16px, 1.65vw, 23px)/1.15 Inter, Arial, sans-serif; letter-spacing: -.055em; }
.campaign-cle-de-peau-beaute .campaign-signature { font-family: Georgia, serif; font-weight: 500; }
.campaign-message strong { font: 680 clamp(14px, 1.35vw, 20px)/1.17 Inter, Arial, sans-serif; letter-spacing: -.035em; }

/* Cam kết: dải xanh + hotline */
.service-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 20px 24px; background: var(--ocean); color: #fff; border-radius: 14px; }
.service-band .service-benefits { padding: 0; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); background: none; border-radius: 0; }
.service-band .service-benefits li { gap: 10px; }
.service-band .sb-ico { width: 46px; height: 46px; border: 2px solid #9cd5ef; box-shadow: #fff 0 0 0 2px inset; color: #10577f; background: #e5f6fc; }
.service-band .sb-ico .tvb-i { width: 25px; height: 25px; }
.service-band .service-benefits b { font-size: 14px; line-height: 1.25; color: #fff; }
.service-hotline { padding-left: 20px; border-left: 1px solid #70a9c6; display: grid; justify-items: center; gap: 5px; }
.service-hotline > span { font-size: 12px; font-weight: 700; letter-spacing: .065em; text-transform: uppercase; }
.service-hotline a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 6px 14px; border-radius: 30px; background: #fff; color: #10577f; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; text-decoration: none; }
.service-hotline a .tvb-i { width: 20px; height: 20px; }
.service-hotline a:hover { background: #d8eff9; }
.tvb-home > .service-footer { padding: 16px; border: 1px solid #e3ebef; }

@media (max-width: 1099px) { .arrival-grid { --arrival-columns: 4; } }
@media (max-width: 1060px) { .service-band .service-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) {
	.tvb-home { --category-gap: 8px; }
	.tvb-home .hero-slide { min-height: 150px; }
	.tvb-home .main-hero .hero-type { padding: 9px 4% 17px; }
	.tvb-home .main-hero .hero-type h1 { font-size: clamp(31px, 5vw, 40px); }
	.arrival-grid { --arrival-columns: 3; gap: 8px; }
	.need-panel .collection-row, #routine-section .routine-panel { grid-template-columns: minmax(0, 1fr); }
	#routine-section .combo-label { justify-self: start; flex-direction: row; justify-content: flex-start; align-items: center; gap: 10px; min-height: 40px; padding: 6px 10px; }
	#routine-section .group-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.need-steps { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
	.need-steps a { min-height: 62px; padding: 5px; gap: 5px; }
	.need-steps img { width: 32px; height: 40px; }
}
@media (max-width: 640px) {
	.service-band { grid-template-columns: minmax(0, 1fr); gap: 13px; padding: 16px 12px; }
	.service-band .sb-ico { width: 34px; height: 34px; }
	.service-band .sb-ico .tvb-i { width: 20px; height: 20px; }
	.service-band .service-benefits b { font-size: 13px; }
	.service-hotline { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0 0; border-left: 0; border-top: 1px solid #70a9c6; }
}
@media (max-width: 580px) {
	.tvb-home { --category-gap: 6px; --shelf-inset: 7px; }
	.tvb-home .hero-wrap { margin-top: 6px; }
	.tvb-home .hero-slide { min-height: clamp(108px, 30vw, 134px); }
	.tvb-home .hero-type { padding: 7px 4.2% 12px; }
	.tvb-home .hero-type h1, .tvb-home .hero-type h2 { font-size: clamp(23px, 6.6vw, 34px); line-height: 1.05; }
	.tvb-home .main-hero .hero-type { padding: 7px 0 12px 4%; width: 49%; }
	.main-hero .hero-signature { margin: 0 0 4px; font-size: clamp(10px, 2.9vw, 14px); }
	.tvb-home .main-hero .hero-type h1 { font-size: clamp(23px, 6.4vw, 35px); line-height: 1.02; }
	.tvb-home .main-hero h1 em { display: block; }
	.hero-product { margin-top: 5px; font-size: clamp(10px, 2.6vw, 13px); }
	.tvb-home .departments .department .dept-photo { width: min(100%, 58px); }
	.tvb-home .departments .department > span:last-child { padding: 0 1px; }
	.best-filters { gap: 5px; margin: 0 0 10px; }
	.best-filters button { min-width: calc(25% - 3.75px); font-size: 12px; padding: 7px clamp(6px, 1.75vw, 10px); }
	.best-label-short { display: inline; }
	.best-label-full { display: none; }
	#best-theme-shelves .family-items { grid-auto-columns: min(122px, 33.3333% - 3.33333px); gap: 5px; }
	.best-card .fd-photo { height: clamp(70px, 20vw, 90px); }
	.best-card .fd-name { font-size: 12px; }
	.best-card .fd-price { font-size: 13px; }
	.family-rank { min-width: 16px; height: 16px; font-size: 10px; }
	.arrival-grid { --arrival-columns: 2; gap: 6px; }
	.arrivals-footer { margin-top: 10px; }
	:is(#new-section, #bestseller-section) .arrivals-more { min-height: 44px; width: 65%; }
	.combo-modes { justify-content: space-between; gap: 4px; margin-bottom: 6px; }
	.combo-modes button { font-size: 13px; padding: 6px 3px 8px; }
	#need-tabs button { min-height: 29px; padding: 4px 7px; font-size: clamp(10.5px, 2.75vw, 12px); white-space: nowrap; }
	#routine-section .group-items { gap: 5px; }
	#routine-section .group-items .retail-card .rc-info { gap: 2px; padding: 4px 5px 6px; }
	#routine-section .group-items .rc-name { font-size: 11px; line-height: 1.23; min-height: 2.46em; }
	#routine-section .group-items :is(.rc-meta, .rc-gift, .rc-progress, .rc-inquire small, .rc-badges) { display: none; }
}

.tvb-home .service-hotline a { color: #10577f; }

/* Chương trình tháng: thẻ gần vuông (1:1,02), nhỏ hơn */
.tvb-home .month-section { --poster: clamp(160px, 17.1vw, 212px); --poster-ratio: 1.02; --space: clamp(8px, 1.15vw, 16px); }
.tvb-home .month-track { --above: 18px; --below: 32px; height: calc(var(--poster) * var(--poster-ratio) + var(--above) + var(--below)); }
.tvb-home .month-slot { aspect-ratio: 1 / var(--poster-ratio); container-type: inline-size; }
.tvb-home .month-poster .poster-art { object-position: 50% 72%; }
.tvb-home .poster-type strong { font-size: clamp(21px, 13.4cqi, 29px); }
.tvb-home .poster-express .poster-type strong { font-size: clamp(18px, 11.5cqi, 25px); }
.tvb-home .month-arrow.prev { left: calc(50% - var(--poster) * .62); }
.tvb-home .month-arrow.next { left: calc(50% + var(--poster) * .62); }
@media (max-width: 640px) { .tvb-home .month-section { --poster: clamp(128px, 36vw, 160px); } }
@media (max-width: 800px) {
	#routine-section .need-panel .quick-makeup { grid-template-columns: min-content minmax(0, 1fr); gap: 4px; }
	#routine-section .need-panel .quick-makeup .combo-label { justify-self: stretch; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 8px 5px; gap: 6px; }
	#routine-section .need-panel .quick-makeup .combo-label strong { width: min-content; font-size: clamp(11px, 2.9vw, 13px); line-height: 1.28; text-wrap: wrap; }
	.need-panel .quick-makeup .combo-label-action { white-space: nowrap; }
	#routine-section .need-panel .quick-makeup .group-items { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
}
@media (max-width: 640px) {
	.need-panel .quick-makeup .retail-card { position: relative; border-radius: 7px; }
	.need-panel .quick-makeup :is(.promo-band, .promo-label, .promo-offers, .rc-heart, .rc-brand, .rc-meta, .rc-progress, .rc-gift, .rc-prices del, .rc-inquire small, .rc-badges) { display: none !important; }
	.need-panel .quick-makeup .promo-shot { left: 5%; top: 8%; width: 90%; height: 80%; }
	.need-panel .quick-makeup .rc-info { padding: 4px 3px; gap: 2px; }
	.need-panel .quick-makeup .rc-name { font-size: clamp(11px, 2.8vw, 13px); line-height: 1.2; font-weight: 650; min-height: 2.4em; }
	.need-panel .quick-makeup .rc-prices strong { font-size: clamp(11px, 2.75vw, 13px); white-space: nowrap; }
	.need-panel .quick-makeup .rc-actions { display: block; padding: 0 2px 3px; }
	.need-panel .quick-makeup .rc-now { width: 100%; min-height: 30px !important; padding: 2px !important; font-size: 11px !important; }
	.need-panel .quick-makeup .rc-add { position: absolute; left: 2px; top: 2px; width: 24px !important; height: 24px; min-height: 0 !important; padding: 3px !important; z-index: 3; }
	.need-panel .quick-makeup .rc-add .tvb-i { width: 14px; height: 14px; }
}
.rail-controls.rail-silent { display: none !important; }
/* Đo theo bản mẫu 390px: banner tràn mép, thẻ bán chạy, tên ngắn ở combo */
.rc-short-name { display: none; }
@media (max-width: 800px) {
	.tvb-home > .hero-wrap { margin-inline: calc((100% - 100vw) / 2); border-radius: 0; }
	.tvb-home > .hero-wrap .hero-track { border-radius: 0; }
}
@media (max-width: 580px) {
	.best-card .fd-body { padding: 4px 5px 6px; }
	#best-theme-shelves .family-shelf { gap: 3px; }
}
@media (max-width: 640px) {
	.need-panel .quick-makeup .rc-info:has(.rc-short-name) .rc-name { display: none; }
	.need-panel .quick-makeup .rc-short-name { display: block; font-size: clamp(11px, 2.8vw, 13px); line-height: 1.2; font-weight: 650; color: #183b52; }
	.need-panel .quick-makeup .rc-prices { margin-top: auto; gap: 0 2px; }
}
/* Cỡ chữ gốc của bản mẫu (15px) cho các khối trang chủ */
.tvb-home { font-size: 15px; }
/* Hàng mới về: hiện đúng 2 hàng theo số cột (mẫu: điện thoại 4, máy tính 12); “Xem thêm” mở phần còn lại */
.arrival-grid:not(.is-expanded) > .retail-card:nth-child(n+13) { display: none; }
@media (max-width: 1099px) { .arrival-grid:not(.is-expanded) > .retail-card:nth-child(n+9) { display: none; } }
@media (max-width: 800px) { .arrival-grid:not(.is-expanded) > .retail-card:nth-child(n+7) { display: none; } }
@media (max-width: 580px) { .arrival-grid:not(.is-expanded) > .retail-card:nth-child(n+5) { display: none; } }
@media (max-width: 640px) { .need-steps[data-routine="makeup"] .guide-product-name { display: block; overflow: visible; overflow-wrap: anywhere; } }
@media (max-width: 580px) {
	.tvb-home .hero-type .kicker { margin-bottom: 4px; }
	.tvb-home .hero-type .primary { padding: 5px 10px; font-size: 11px; margin-top: 4px; }
}
