/* =====================================================================
   CareHome – giao diện cho sản phẩm chăm sóc người cao tuổi
   Nguyên tắc: chữ to (≥19px), tương phản ≥ 7:1 cho chữ chính,
   vùng bấm ≥ 52px, ít lựa chọn trên mỗi màn, nhãn chữ đi kèm icon.
   ===================================================================== */

/* ---------- 1. Token ---------- */
:root {
	--ch-bg: #f6f8f6;
	--ch-surface: #ffffff;
	--ch-sunken: #eef2ef;
	--ch-ink: #1b2a2c;
	--ch-ink-2: #3f4f51;
	--ch-line: #dde3df;
	--ch-line-strong: #bcc7c1;

	--ch-brand: #0a4c8f;
	--ch-brand-hover: #083a6e;
	--ch-brand-soft: #e5eef8;
	--ch-brand-ink: #ffffff;

	--ch-warm: #f6c46a;
	--ch-warm-soft: #edf6e5;
	--ch-green: #3f8f1a;
	--ch-green-soft: #ecf6e4;
	--ch-sale: #b42318;
	--ch-ok: #2f7d18;

	--ch-radius: 14px;
	--ch-radius-lg: 22px;
	--ch-shadow: 0 1px 2px rgba(27, 42, 44, .06), 0 4px 16px rgba(27, 42, 44, .06);
	--ch-shadow-lg: 0 2px 6px rgba(27, 42, 44, .08), 0 18px 40px rgba(27, 42, 44, .10);
	--ch-focus: 0 0 0 3px #fff, 0 0 0 6px #e09b16;

	--ch-font: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
	--ch-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--ch-tap: 3.25rem; /* ~52px */
	--ch-wrap: 78rem;
}

/* Cỡ chữ gốc (điện thoại: 18px, xem phần responsive) */
html:root { font-size: 118.75%; } /* 19px – cỡ chữ cố định */

/* ---------- 2. Nền tảng ---------- */
body.carehome {
	background: var(--ch-bg);
	color: var(--ch-ink);
	font-family: var(--ch-font);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body.carehome h1, body.carehome h2, body.carehome h3, body.carehome h4,
body.carehome .product_title, body.carehome .page-title, body.carehome .entry-title {
	font-family: var(--ch-serif);
	color: var(--ch-ink);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.2;
}
body.carehome a { color: var(--ch-brand); text-decoration-thickness: 2px; text-underline-offset: .18em; }
body.carehome a:hover { color: var(--ch-brand-hover); }
body.carehome :focus { outline: none; }
body.carehome :focus-visible { outline: none; box-shadow: var(--ch-focus); border-radius: 8px; }
body.carehome p { margin: 0 0 1em; }
.ch-icon { flex: none; display: inline-block; vertical-align: middle; }
.ch-wrap { max-width: var(--ch-wrap); margin: 0 auto; padding: 0 1.25rem; }
body.carehome .col-full { max-width: var(--ch-wrap); padding: 0 1.25rem; margin: 0 auto; }
body.carehome .col-full::before, body.carehome .col-full::after { display: none; }
.ch-visually-hidden, .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.ch-skip { position: absolute; left: -999px; top: .5rem; z-index: 999; background: var(--ch-ink); color: #fff !important; padding: .75rem 1rem; border-radius: 10px; }
.ch-skip:focus { left: .75rem; }
body.carehome #content { padding-top: 1.5rem; padding-bottom: 3rem; min-height: 40vh; }

/* ---------- 3. Nút ---------- */
.ch-btn,
body.carehome .button,
body.carehome button.button,
body.carehome input[type="submit"],
body.carehome .wp-element-button,
body.carehome .wc-block-components-button:not(.is-link) {
	display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
	min-height: var(--ch-tap);
	padding: .7rem 1.4rem;
	border-radius: 999px;
	border: 2px solid var(--ch-brand);
	background: var(--ch-brand);
	color: var(--ch-brand-ink) !important;
	font: 700 1rem/1.2 var(--ch-font);
	text-decoration: none;
	cursor: pointer;
	transition: background .15s, border-color .15s, transform .05s;
	box-shadow: none;
	text-align: center;
}
.ch-btn:hover, body.carehome .button:hover, body.carehome input[type="submit"]:hover,
body.carehome .wc-block-components-button:not(.is-link):hover {
	background: var(--ch-brand-hover); border-color: var(--ch-brand-hover); color: #fff !important;
}
.ch-btn:active, body.carehome .button:active { transform: translateY(1px); }
.ch-btn--lg { min-height: 3.6rem; padding: .85rem 1.75rem; font-size: 1.08rem; }
.ch-btn--ghost { background: transparent; color: var(--ch-brand) !important; }
.ch-btn--ghost:hover { background: var(--ch-brand-soft); color: var(--ch-brand-hover) !important; border-color: var(--ch-brand-hover); }
.ch-btn--light { background: #fff; color: var(--ch-brand) !important; border-color: #fff; }
.ch-btn--light:hover { background: var(--ch-warm-soft); border-color: var(--ch-warm-soft); color: var(--ch-brand-hover) !important; }
body.carehome .button.disabled, body.carehome .button:disabled, body.carehome .button[disabled] {
	background: #b9c4c3; border-color: #b9c4c3; color: #fff !important; cursor: not-allowed; opacity: 1;
}
.ch-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; text-decoration: none; }
.ch-link:hover { text-decoration: underline; }

/* ---------- 4. Ô nhập ---------- */
body.carehome input[type="text"], body.carehome input[type="email"], body.carehome input[type="tel"],
body.carehome input[type="password"], body.carehome input[type="number"], body.carehome input[type="search"],
body.carehome textarea, body.carehome select {
	min-height: var(--ch-tap);
	padding: .65rem .9rem;
	font: 400 1rem/1.4 var(--ch-font);
	color: var(--ch-ink);
	background: #fff;
	border: 2px solid var(--ch-line-strong);
	border-radius: 12px;
	box-shadow: none;
}
body.carehome input:focus, body.carehome textarea:focus, body.carehome select:focus {
	border-color: var(--ch-brand); box-shadow: 0 0 0 3px rgba(10, 76, 143, .18); outline: none;
}
body.carehome label { font-weight: 700; color: var(--ch-ink); }

/* ---------- 5. Thanh trên cùng ---------- */
.ch-topbar { background: var(--ch-brand); color: #fff; font-size: .9rem; }
.ch-topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.9rem; }
.ch-topbar__msg { margin: 0 !important; display: flex; align-items: center; gap: .5rem; }
.ch-topbar__right { display: flex; align-items: center; gap: 1.5rem; }
.ch-topbar__phone { display: inline-flex; align-items: center; gap: .45rem; color: #fff !important; text-decoration: none; }
.ch-topbar__phone:hover strong { text-decoration: underline; }

/* ---------- 6. Header ---------- */
.ch-header { background: var(--ch-surface); border-bottom: 1px solid var(--ch-line); position: relative; z-index: 50; }
.ch-header__in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.ch-menu-btn { display: none; }
.ch-logo { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none !important; color: var(--ch-brand); }
.ch-logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.ch-logo__name { font: 700 1.45rem/1.1 var(--ch-serif); color: var(--ch-ink); letter-spacing: -.01em; }
.ch-logo__tag { font-size: .8rem; color: var(--ch-ink-2); margin-top: .2rem; }
.ch-logo__tag:empty { display: none; }

.ch-search {
	position: relative; display: flex; align-items: center;
	background: var(--ch-sunken); border: 2px solid var(--ch-line-strong); border-radius: 999px;
	padding: .3rem .3rem .3rem 1.1rem; max-width: 40rem; width: 100%; justify-self: center;
	transition: border-color .15s, background .15s;
}
.ch-search:focus-within { border-color: var(--ch-brand); background: #fff; box-shadow: 0 0 0 4px rgba(10, 76, 143, .14); }
.ch-search > .ch-icon { color: var(--ch-ink-2); }
body.carehome .ch-search input[type="search"] {
	flex: 1; min-width: 0; border: 0; background: transparent; box-shadow: none !important;
	padding: .55rem .75rem; min-height: 2.9rem; font-size: 1.02rem;
}
.ch-search button {
	min-height: 2.9rem; padding: 0 1.4rem; border-radius: 999px; border: 0;
	background: var(--ch-brand); color: #fff; font: 700 1rem/1 var(--ch-font); cursor: pointer;
}
.ch-search button:hover { background: var(--ch-brand-hover); }

.ch-actions { display: flex; align-items: center; gap: .5rem; }
.ch-action {
	display: inline-flex; flex-direction: column; align-items: center; gap: .15rem;
	min-width: 4.4rem; padding: .45rem .6rem; border-radius: 12px;
	color: var(--ch-ink) !important; text-decoration: none !important; font-size: .85rem; font-weight: 700;
}
.ch-action:hover { background: var(--ch-brand-soft); color: var(--ch-brand) !important; }
.ch-action__icon { position: relative; display: inline-flex; }
.ch-cart-count {
	position: absolute; top: -.45rem; right: -.75rem; min-width: 1.45rem; height: 1.45rem; padding: 0 .35rem;
	border-radius: 999px; background: var(--ch-warm); color: var(--ch-ink);
	font: 700 .78rem/1.45rem var(--ch-font); text-align: center; border: 2px solid #fff;
}
.ch-cart-count[data-count="0"] { background: var(--ch-sunken); color: var(--ch-ink-2); }

/* Menu danh mục */
.ch-nav { border-top: 1px solid var(--ch-line); background: var(--ch-surface); }
.ch-nav .ch-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ch-nav__list { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem; list-style: none; margin: 0; padding: .45rem 0; width: 100%; }
.ch-nav__list a {
	display: inline-flex; align-items: center; gap: .45rem; min-height: var(--ch-tap); padding: 0 .75rem; white-space: nowrap;
	border-radius: 12px; color: var(--ch-ink) !important; text-decoration: none !important; font-weight: 700; font-size: .98rem;
}
.ch-nav__list a .ch-icon { color: var(--ch-brand); }
.ch-nav__list a:hover { background: var(--ch-brand-soft); }
.ch-nav__list a[aria-current="page"] { background: var(--ch-brand); color: #fff !important; }
.ch-nav__list a[aria-current="page"] .ch-icon { color: #fff; }
.ch-nav__phone { display: none; }

/* Breadcrumb */
body.carehome .storefront-breadcrumb { margin: 0; padding: 1rem 0 0; background: transparent; }
body.carehome .woocommerce-breadcrumb { font-size: .92rem; color: var(--ch-ink-2); padding: 0; margin: 0; }
body.carehome .woocommerce-breadcrumb a { color: var(--ch-ink-2); font-weight: 700; }
body.carehome .woocommerce-breadcrumb .breadcrumb-separator { padding: 0 .5em; }
body.carehome .woocommerce-breadcrumb a:first-of-type::before { display: none; }

/* ---------- 7. Trang chủ ---------- */
.ch-hero {
	display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center;
	background: linear-gradient(135deg, #fff 0%, var(--ch-warm-soft) 100%);
	border: 1px solid var(--ch-line); border-radius: var(--ch-radius-lg);
	padding: 3.5rem 3.25rem; margin: .5rem 0 3.5rem; overflow: hidden; position: relative;
}
.ch-eyebrow { display: inline-block; font-weight: 700; color: var(--ch-brand); background: var(--ch-brand-soft); padding: .3rem .85rem; border-radius: 999px; font-size: .9rem; margin-bottom: 1rem !important; }
.ch-hero h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem); margin: 0 0 1rem; max-width: 16ch; }
.ch-hero__lead { font-size: 1.15rem; color: var(--ch-ink-2); max-width: 34rem; }
.ch-hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin: 1.75rem 0 1.5rem; }
.ch-hero__ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-weight: 700; }
.ch-hero__ticks li { display: inline-flex; align-items: center; gap: .4rem; }
.ch-hero__ticks .ch-icon { color: var(--ch-ok); }
.ch-hero__art { position: relative; min-height: 24rem; }
.ch-hero__tile { position: absolute; background: #fff; border-radius: var(--ch-radius-lg); box-shadow: var(--ch-shadow-lg); padding: 1rem; display: flex; align-items: center; justify-content: center; }
.ch-hero__tile img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.ch-hero__tile--1 { width: 58%; aspect-ratio: 1; left: 4%; top: 2%; z-index: 2; }
.ch-hero__tile--2 { width: 44%; aspect-ratio: 1; right: 0; top: 0; transform: rotate(3deg); }
.ch-hero__tile--3 { width: 44%; aspect-ratio: 1; right: 6%; bottom: 0; transform: rotate(-2deg); z-index: 1; }
.ch-hero__badge {
	position: absolute; left: 0; bottom: 4%; z-index: 3; display: flex; align-items: center; gap: .75rem;
	background: var(--ch-brand); color: #fff; padding: .9rem 1.2rem; border-radius: 16px; box-shadow: var(--ch-shadow-lg);
}
.ch-hero__badge p { margin: 0 !important; display: flex; flex-direction: column; line-height: 1.25; }
.ch-hero__badge span { font-size: 1.15rem; font-weight: 700; }

.ch-section { margin: 0 0 3.5rem; }
.ch-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.ch-section__head h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 0; }

.ch-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ch-cat {
	position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 1rem;
	align-items: center; padding: 1.25rem 1.25rem; background: var(--ch-surface); border: 2px solid var(--ch-line);
	border-radius: var(--ch-radius); text-decoration: none !important; color: var(--ch-ink) !important;
	transition: border-color .15s, box-shadow .15s, transform .15s; min-height: 6rem;
}
.ch-cat:hover { border-color: var(--ch-brand); box-shadow: var(--ch-shadow); transform: translateY(-2px); }
.ch-cat__icon { grid-row: 1 / 3; width: 3.75rem; height: 3.75rem; border-radius: 14px; background: var(--ch-brand-soft); color: var(--ch-brand); display: flex; align-items: center; justify-content: center; }
.ch-cat__name { font-weight: 700; font-size: 1.12rem; line-height: 1.25; }
.ch-cat__count { grid-column: 2; color: var(--ch-ink-2); font-size: .9rem; }
.ch-cat__go { grid-row: 1 / 3; grid-column: 3; color: var(--ch-brand); }

.ch-reorder {
	display: grid; grid-template-columns: auto 1fr auto; gap: 1.75rem; align-items: center;
	background: var(--ch-brand); color: #fff; border-radius: var(--ch-radius-lg); padding: 2.25rem 2.5rem; margin: 0 0 3.5rem;
}
body.carehome .ch-reorder h2 { color: #fff; margin: 0 0 .4rem; font-size: 1.6rem; }
.ch-reorder p { margin: 0 !important; color: #dce8f5; max-width: 44rem; }
.ch-reorder__icon { width: 4.5rem; height: 4.5rem; border-radius: 18px; background: rgba(255, 255, 255, .12); display: flex; align-items: center; justify-content: center; }

.ch-brands { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem; }
.ch-brands a {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; min-height: 5.5rem; padding: .75rem;
	background: #fff; border: 2px solid var(--ch-line); border-radius: var(--ch-radius); text-decoration: none !important; text-align: center;
}
.ch-brands a span { font: 700 1.15rem/1.2 var(--ch-serif); color: var(--ch-ink); }
.ch-brands a small { color: var(--ch-ink-2); font-size: .85rem; }
.ch-brands a:hover { border-color: var(--ch-brand); }

/* ---------- 8. Lưới sản phẩm ---------- */
body.carehome ul.products {
	display: grid !important; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1.25rem;
	margin: 0 0 2rem !important; padding: 0; list-style: none;
}
body.carehome .columns-4 ul.products, body.carehome ul.products.columns-4 { grid-template-columns: repeat(4, 1fr); }
body.carehome .columns-3 ul.products, body.carehome ul.products.columns-3 { grid-template-columns: repeat(3, 1fr); }
body.carehome ul.products::before, body.carehome ul.products::after { display: none !important; }
body.carehome ul.products li.product {
	width: auto !important; float: none !important; margin: 0 !important; clear: none !important;
	display: flex; flex-direction: column; text-align: left;
	background: var(--ch-surface); border: 1px solid var(--ch-line); border-radius: var(--ch-radius);
	padding: 1rem 1rem 1.15rem; transition: box-shadow .15s, border-color .15s;
}
body.carehome ul.products li.product:hover { box-shadow: var(--ch-shadow-lg); border-color: var(--ch-line-strong); }
body.carehome ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: var(--ch-ink); }
body.carehome ul.products li.product img {
	width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 10px; margin: 0 0 .9rem !important;
}
.ch-card-brand { display: block; font-size: .82rem; font-weight: 700; color: var(--ch-brand); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .2rem; }
body.carehome ul.products li.product .woocommerce-loop-product__title {
	font: 700 1.05rem/1.3 var(--ch-font) !important; color: var(--ch-ink); margin: 0 0 .6rem; padding: 0;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
body.carehome ul.products li.product .price { display: block; margin: auto 0 .15rem; font-size: 1.2rem; font-weight: 700; color: var(--ch-ink); }
body.carehome ul.products li.product .price del { color: var(--ch-ink-2); font-weight: 400; font-size: .9em; }
body.carehome ul.products li.product .price ins { text-decoration: none; color: var(--ch-sale); }
.ch-from { font-size: .8em; font-weight: 400; color: var(--ch-ink-2); }
.ch-card-variants { display: block; font-size: .88rem; color: var(--ch-ink-2); margin-bottom: .9rem; }
body.carehome ul.products li.product .button { width: 100%; margin: .4rem 0 0; }
body.carehome ul.products li.product .added_to_cart { display: block; text-align: center; font-weight: 700; padding-top: .6rem; }
body.carehome ul.products li.product .onsale,
body.carehome .single-product .onsale, body.carehome span.onsale {
	position: absolute; background: var(--ch-sale); color: #fff; border: 0; border-radius: 999px;
	padding: .25rem .75rem; font-weight: 700; font-size: .85rem; min-height: 0; line-height: 1.4; margin: .5rem;
}
body.carehome ul.products li.product { position: relative; }
body.carehome .star-rating { color: #b7791f; }

/* Trang danh mục */
body.carehome .woocommerce-products-header { padding: 1rem 0 .5rem; }
body.carehome .woocommerce-products-header__title.page-title { font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem); margin: 0 0 .5rem; }
body.carehome .term-description { color: var(--ch-ink-2); max-width: 48rem; }
body.carehome .storefront-sorting {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
	padding: .9rem 1.1rem; margin: 0 0 1.5rem; background: var(--ch-surface); border: 1px solid var(--ch-line); border-radius: var(--ch-radius);
}
body.carehome .storefront-sorting::before, body.carehome .storefront-sorting::after { display: none; }
body.carehome .woocommerce-ordering, body.carehome .woocommerce-result-count { float: none; margin: 0; font-size: .98rem; }
body.carehome .woocommerce-products-header { text-align: left; }
body.carehome .storefront-sorting .woocommerce-notices-wrapper:empty { display: none; }
body.carehome .storefront-sorting .woocommerce-result-count { order: 1; font-weight: 700; }
body.carehome .storefront-sorting .woocommerce-ordering { order: 2; }
body.carehome .woocommerce-ordering select { min-width: 16rem; }
body.carehome .storefront-sorting .woocommerce-pagination { display: none; }
body.carehome .woocommerce-pagination { padding: 0; border: 0; text-align: center; }
body.carehome .woocommerce-pagination .page-numbers { display: inline-flex; gap: .4rem; border: 0; flex-wrap: wrap; justify-content: center; }
body.carehome .woocommerce-pagination .page-numbers li { border: 0; }
body.carehome .woocommerce-pagination .page-numbers li .page-numbers {
	min-width: var(--ch-tap); min-height: var(--ch-tap); display: inline-flex; align-items: center; justify-content: center;
	border-radius: 12px; border: 2px solid var(--ch-line-strong); background: #fff; color: var(--ch-ink); font-weight: 700; padding: 0 .9rem;
}
body.carehome .woocommerce-pagination .page-numbers li .page-numbers.current { background: var(--ch-brand); border-color: var(--ch-brand); color: #fff; }
body.carehome .woocommerce-pagination .page-numbers li a.page-numbers:hover { border-color: var(--ch-brand); }

/* ---------- 9. Trang sản phẩm ---------- */
body.carehome.single-product div.product {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; padding-top: 1rem;
}
body.carehome.single-product div.product::before, body.carehome.single-product div.product::after { display: none; }
body.carehome.single-product div.product .woocommerce-product-gallery {
	width: auto !important; float: none !important; margin: 0 !important;
	background: #fff; border: 1px solid var(--ch-line); border-radius: var(--ch-radius-lg); padding: 1.5rem; position: sticky; top: 1rem;
}
body.carehome.single-product div.product .woocommerce-product-gallery img { border-radius: 10px; }
body.carehome.single-product .flex-control-thumbs { display: flex; gap: .6rem; margin-top: 1rem !important; }
body.carehome.single-product .flex-control-thumbs li { width: 5rem !important; margin: 0 !important; }
body.carehome.single-product .flex-control-thumbs li img { border: 2px solid var(--ch-line); border-radius: 10px; opacity: 1; }
body.carehome.single-product .flex-control-thumbs li img.flex-active { border-color: var(--ch-brand); }
body.carehome.single-product .woocommerce-product-gallery__trigger { border-radius: 50%; }

body.carehome.single-product div.product .summary { width: auto !important; float: none !important; margin: 0 !important; }
.ch-pdp-brand { display: inline-block; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; text-decoration: none; margin-bottom: .4rem; }
body.carehome .product_title { font-size: clamp(1.8rem, 1.4rem + 1.3vw, 2.5rem); margin: 0 0 .75rem; }
body.carehome.single-product div.product .summary > p.price {
	font-size: 1.9rem; font-weight: 700; color: var(--ch-ink); margin: 0 0 1rem;
}
body.carehome.single-product .summary .woocommerce-product-details__short-description { font-size: 1.05rem; color: var(--ch-ink-2); margin-bottom: 1.5rem; }

/* Biến thể dạng nút */
body.carehome form.variations_form table.variations { border: 0; margin: 0 0 1rem; width: 100%; }
body.carehome form.variations_form table.variations tr { display: block; margin-bottom: 1.1rem; }
body.carehome form.variations_form table.variations th, body.carehome form.variations_form table.variations td { display: block; padding: 0; background: none; border: 0; text-align: left; }
body.carehome form.variations_form table.variations th label { font-size: 1.05rem; display: block; margin-bottom: .55rem; }
body.carehome form.variations_form table.variations th label::after { content: " — choose one"; font-weight: 400; color: var(--ch-ink-2); font-size: .9em; }
.ch-swatches { display: flex; flex-wrap: wrap; gap: .6rem; }
.ch-swatch {
	min-height: var(--ch-tap); min-width: 6rem; padding: .55rem 1.15rem; border-radius: 12px;
	border: 2px solid var(--ch-line-strong); background: #fff; color: var(--ch-ink);
	font: 700 1rem/1.2 var(--ch-font); cursor: pointer; transition: border-color .12s, background .12s;
}
.ch-swatch:hover:not(:disabled) { border-color: var(--ch-brand); }
.ch-swatch.is-on { background: var(--ch-brand-soft); border-color: var(--ch-brand); color: var(--ch-brand-hover); box-shadow: inset 0 0 0 1px var(--ch-brand); }
.ch-swatch.is-on::before { content: "✓ "; }
.ch-swatch:disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
body.carehome .reset_variations { display: inline-block; margin-top: .6rem; font-weight: 700; font-size: .95rem; }
body.carehome .reset_variations[style*="hidden"] { display: none; }
body.carehome form.variations_form table.variations tr:last-child { margin-bottom: 0; }
body.carehome .single_variation_wrap .woocommerce-variation-price { display: none; } /* giá đã cập nhật ở trên */
body.carehome .woocommerce-variation-availability p.stock { margin: 0 0 .75rem; font-weight: 700; }
body.carehome p.stock.in-stock { color: var(--ch-ok); }
body.carehome p.stock.out-of-stock { color: var(--ch-sale); }

/* Số lượng + nút giỏ */
body.carehome.single-product form.cart { display: flex; flex-wrap: wrap; gap: .85rem; align-items: stretch; margin-bottom: 1.5rem; }
body.carehome.single-product form.variations_form.cart { display: block; }
body.carehome .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: .85rem; align-items: stretch; }
body.carehome .quantity { margin: 0 !important; }
body.carehome .quantity.ch-qty {
	display: inline-flex; align-items: stretch; border: 2px solid var(--ch-line-strong); border-radius: 999px; background: #fff; overflow: hidden;
}
body.carehome .quantity.ch-qty .qty {
	width: 3.5rem; border: 0 !important; text-align: center; font-weight: 700; font-size: 1.15rem; background: transparent;
	-moz-appearance: textfield; box-shadow: none !important; min-height: 3.6rem; padding: 0;
}
body.carehome .quantity.ch-qty .qty::-webkit-outer-spin-button, body.carehome .quantity.ch-qty .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
body.carehome .ch-qty__btn {
	width: 3.4rem; min-height: 0; padding: 0 !important; border: 0 !important; border-radius: 0;
	background: transparent !important; color: var(--ch-brand) !important; cursor: pointer;
	display: flex; align-items: center; justify-content: center; box-shadow: none;
}
body.carehome .ch-qty__btn svg { display: block; width: 1.5rem; height: 1.5rem; }
body.carehome .ch-qty__btn:hover { background: var(--ch-brand-soft) !important; }
body.carehome.single-product .woocommerce-product-gallery__image img { margin: 0 auto; }
body.carehome.single-product .single_add_to_cart_button { flex: 1 1 14rem; min-height: 3.6rem; font-size: 1.12rem; }
body.carehome.single-product .woocommerce-variation-add-to-cart::before,
body.carehome.single-product form.cart:not(.variations_form)::before,
body.carehome.single-product form.cart:not(.variations_form)::after { display: none !important; }
body.carehome.single-product .woocommerce-variation-add-to-cart::after { display: none !important; }
body.carehome.single-product .woocommerce-variation-add-to-cart.woocommerce-variation-add-to-cart-disabled::after {
	display: block !important; content: "↑ Please choose an option above first" !important; flex-basis: 100%; order: -1;
	color: var(--ch-ink-2); font-weight: 700; font-size: .95rem;
}
body.carehome .single_variation_wrap .woocommerce-variation:empty, body.carehome .single_variation_wrap .woocommerce-variation[style*="display: none"] { margin: 0; }

.ch-assure { list-style: none; margin: 0 0 1.25rem; padding: 1rem 1.15rem; display: grid; gap: .6rem; background: var(--ch-surface); border: 1px solid var(--ch-line); border-radius: var(--ch-radius); }
.ch-assure li { display: flex; align-items: center; gap: .75rem; font-weight: 700; }
.ch-assure .ch-icon { color: var(--ch-brand); }
.ch-helpbox { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.15rem; background: var(--ch-warm-soft); border-radius: var(--ch-radius); margin-bottom: 1.5rem; }
.ch-helpbox .ch-icon { color: var(--ch-brand); margin-top: .1rem; }
.ch-helpbox strong { display: block; font-size: 1.05rem; }
.ch-helpbox span { color: var(--ch-ink-2); }
.ch-helpbox a { font-weight: 700; }
body.carehome .product_meta { font-size: .92rem; color: var(--ch-ink-2); border-top: 1px solid var(--ch-line); padding-top: 1rem; }
body.carehome .product_meta > span { display: block; margin-bottom: .25rem; }

/* Tab mô tả */
body.carehome.single-product .woocommerce-tabs { grid-column: 1 / -1; padding: 0; margin-top: 1rem; border: 0; display: block; }
body.carehome.single-product .woocommerce-tabs ul.tabs { width: auto; float: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; padding: 0; border: 0; }
body.carehome.single-product .woocommerce-tabs ul.tabs::before { display: none; }
body.carehome.single-product .woocommerce-tabs ul.tabs li { border: 0; margin: 0; }
body.carehome.single-product .woocommerce-tabs ul.tabs li a {
	display: inline-flex; align-items: center; min-height: var(--ch-tap); padding: 0 1.25rem; border-radius: 999px;
	border: 2px solid var(--ch-line-strong); background: #fff; color: var(--ch-ink); font-weight: 700; text-decoration: none;
}
body.carehome.single-product .woocommerce-tabs ul.tabs li.active a { background: var(--ch-ink); border-color: var(--ch-ink); color: #fff; }
body.carehome.single-product .woocommerce-tabs ul.tabs li.active::after { display: none; }
body.carehome.single-product .woocommerce-tabs .panel {
	width: auto; float: none; margin: 0; padding: 2rem 2.25rem; background: #fff; border: 1px solid var(--ch-line); border-radius: var(--ch-radius-lg);
	font-size: 1.05rem; max-width: none;
}
body.carehome.single-product .woocommerce-tabs .panel ul { margin: .5rem 0 1rem 1.25rem; }
body.carehome.single-product .woocommerce-tabs .panel li { margin-bottom: .4rem; }
body.carehome.single-product .related, body.carehome.single-product .upsells { grid-column: 1 / -1; margin-top: 2rem; }
body.carehome.single-product .related > h2, body.carehome.single-product .upsells > h2 { font-size: 1.7rem; margin-bottom: 1.25rem; }

/* ---------- 10. Giỏ hàng & thanh toán (block) ---------- */
body.carehome .entry-header .entry-title, body.carehome h1.entry-title { font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem); margin: .5rem 0 1.5rem; }
body.carehome .hentry { margin-bottom: 0; }
body.carehome .wp-block-woocommerce-cart, body.carehome .wp-block-woocommerce-checkout { font-size: 1rem; }
body.carehome .wc-block-cart, body.carehome .wc-block-checkout { font-size: 1rem; }
body.carehome .wc-block-components-sidebar-layout .wc-block-components-main,
body.carehome .wc-block-components-sidebar { font-size: 1rem; }
body.carehome .wc-block-cart-items, body.carehome .wc-block-components-sidebar .wc-block-components-panel,
body.carehome .wc-block-components-totals-wrapper { font-size: 1rem; }
body.carehome .wc-block-cart .wc-block-cart__totals-title, body.carehome .wc-block-components-title { font-family: var(--ch-serif); font-size: 1.35rem !important; text-transform: none; }
body.carehome .wc-block-components-product-name { font-size: 1.05rem !important; font-weight: 700; color: var(--ch-ink) !important; }
body.carehome .wc-block-cart-item__image img { border-radius: 10px; border: 1px solid var(--ch-line); background: #fff; }
body.carehome .wc-block-components-quantity-selector { min-height: var(--ch-tap); border-radius: 999px !important; border: 2px solid var(--ch-line-strong) !important; overflow: hidden; }
body.carehome .wc-block-components-quantity-selector::after { display: none; }
body.carehome .wc-block-components-quantity-selector input { font-size: 1.05rem !important; font-weight: 700; }
body.carehome .wc-block-components-quantity-selector button { min-width: 2.8rem !important; font-size: 1.3rem !important; color: var(--ch-brand) !important; }
body.carehome .wc-block-cart-item__remove-link {
	display: inline-flex !important; align-items: center; gap: .3rem; min-height: 2.75rem; padding: 0 .6rem !important;
	width: auto !important; height: auto !important; overflow: visible !important; background: transparent !important; border: 0 !important; margin-left: .5rem !important;
	font-size: .95rem !important; font-weight: 700; color: var(--ch-sale) !important; text-decoration: none !important; border-radius: 10px;
}
body.carehome .wc-block-cart-item__remove-link::after { content: "Remove"; display: inline !important; }
body.carehome .wc-block-cart-item__remove-link:hover { background: #fdecea; }
body.carehome .wc-block-cart:not(.is-mobile):not(.is-small) .wc-block-cart-item__image { width: 7rem; }
body.carehome .wc-block-cart-items .wc-block-cart-item__image img { width: 100%; max-width: none; }
body.carehome .wc-block-cart-item__prices, body.carehome .wc-block-cart-item__prices .wc-block-components-product-price,
body.carehome .wc-block-components-product-metadata, body.carehome .wc-block-components-product-details { font-size: .98rem !important; color: var(--ch-ink-2); }
body.carehome .wc-block-components-product-details__name { font-weight: 700; }
body.carehome .wc-block-cart-item__total .wc-block-components-product-price { font-size: 1.15rem !important; font-weight: 700; color: var(--ch-ink); }
body.carehome .wc-block-cart-items__header { font-size: .85rem !important; letter-spacing: .08em; color: var(--ch-ink-2); }
body.carehome.woocommerce-cart .entry-header, body.carehome.woocommerce-checkout .entry-header { text-align: left; }
@media (min-width: 901px) {
	body.carehome .wc-block-components-sidebar { background: #fff; border: 1px solid var(--ch-line); border-radius: var(--ch-radius-lg); padding: 1.5rem !important; align-self: flex-start; }
}
body.carehome .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
body.carehome .wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-size: 1.3rem !important; }
body.carehome .wc-block-cart__submit-button, body.carehome .wc-block-components-checkout-place-order-button { min-height: 3.75rem !important; font-size: 1.15rem !important; width: 100%; }
body.carehome .wc-block-components-text-input input, body.carehome .wc-block-components-text-input input[type],
body.carehome .wc-blocks-components-select .wc-blocks-components-select__select, body.carehome .wc-block-components-combobox .components-combobox-control input {
	min-height: 3.6rem !important; font-size: 1.05rem !important; border: 2px solid var(--ch-line-strong) !important; border-radius: 12px !important; background: #fff !important;
}
body.carehome .wc-block-components-text-input label, body.carehome .wc-blocks-components-select label { font-size: 1rem !important; }
body.carehome .wc-block-components-checkout-step__title { font-family: var(--ch-serif); font-size: 1.4rem !important; }
body.carehome .wc-block-components-radio-control__option { padding-top: 1rem; padding-bottom: 1rem; }
body.carehome .wc-block-components-sidebar-layout .wc-block-components-main { padding-right: 2.5rem; }
body.carehome .wp-block-woocommerce-empty-cart-block h2 { font-size: 1.8rem; }

/* Thông báo */
body.carehome .woocommerce-message, body.carehome .woocommerce-info, body.carehome .woocommerce-error,
body.carehome .wc-block-components-notice-banner {
	border-radius: var(--ch-radius); font-size: 1rem; padding: 1rem 1.25rem; border: 0; border-left: 6px solid var(--ch-brand);
	background: var(--ch-brand-soft); color: var(--ch-ink);
}
body.carehome .woocommerce-message, body.carehome .woocommerce-info, body.carehome .woocommerce-error {
	position: relative; padding-left: 3.4rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem;
}
body.carehome .woocommerce-message::before, body.carehome .woocommerce-info::before, body.carehome .woocommerce-error::before {
	position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%);
	width: 1.6rem; height: 1.6rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	font: 700 .95rem/1 var(--ch-font); color: #fff; background: var(--ch-brand); content: "✓";
}
body.carehome .woocommerce-info::before { content: "i"; }
body.carehome .woocommerce-error::before { content: "!"; background: var(--ch-sale); }
body.carehome .woocommerce-message .button { order: 2; }
body.carehome .woocommerce-message a, body.carehome .woocommerce-info a { color: var(--ch-brand-hover); font-weight: 700; }
body.carehome .woocommerce-message .button { margin-left: 1rem; min-height: 2.75rem; }
body.carehome .woocommerce-error { border-left-color: var(--ch-sale); background: #fdecea; }

/* Tài khoản */
body.carehome .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
body.carehome .woocommerce-MyAccount-navigation ul li a { display: block; padding: .8rem 1rem; border-radius: 12px; font-weight: 700; text-decoration: none; }
body.carehome .woocommerce-MyAccount-navigation ul li.is-active a { background: var(--ch-brand); color: #fff; }
body.carehome .woocommerce-form-login, body.carehome .woocommerce-form-register { background: #fff; border: 1px solid var(--ch-line); border-radius: var(--ch-radius-lg); padding: 2rem; }

/* ---------- 11. Cam kết + Footer ---------- */
.ch-promise { background: var(--ch-surface); border-top: 1px solid var(--ch-line); border-bottom: 1px solid var(--ch-line); }
.ch-promise__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-top: 1.75rem; padding-bottom: 1.75rem; }
.ch-promise__in > div { display: flex; gap: .9rem; align-items: center; }
.ch-promise .ch-icon { color: var(--ch-brand); }
.ch-promise p { margin: 0 !important; display: flex; flex-direction: column; line-height: 1.3; }
.ch-promise span { color: var(--ch-ink-2); font-size: .92rem; }

.ch-footer { background: #0b2a4a; color: #d5e2f0; padding: 3.25rem 0 0; }
body.carehome .ch-footer a { color: #fff; }
body.carehome .ch-footer h2 { font: 700 1.1rem/1.3 var(--ch-font); color: #fff; margin: 0 0 .75rem; letter-spacing: .02em; }
body.carehome .ch-footer li a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.ch-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.ch-footer ul { list-style: none; margin: 0; padding: 0; }
.ch-footer li { margin-bottom: 0; }
.ch-footer li a { text-decoration: none; }
.ch-footer li a:hover { text-decoration: underline; }
.ch-logo--light .ch-logo__name { color: #fff; }
.ch-footer__about p { margin-top: 1rem; max-width: 26rem; }
.ch-footer__phone { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.35rem; font-weight: 700; text-decoration: none; margin-bottom: .75rem; }
.ch-footer__contact p { display: flex; align-items: center; gap: .5rem; margin: 0 0 .5rem !important; }
.ch-footer__base { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 2.5rem; padding-top: 1.25rem; padding-bottom: 1.5rem; font-size: .9rem; }
.ch-footer__base p { margin: 0 !important; }

.ch-tabbar { display: none; }

/* ---------- 12. Responsive ---------- */
@media (max-width: 1280px) and (min-width: 901px) {
	.ch-nav__list { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: thin; }
}
@media (max-width: 1100px) {
	.ch-header__in { gap: 1.25rem; }
	.ch-hero { padding: 2.5rem 2rem; gap: 2rem; }
	.ch-brands { grid-template-columns: repeat(4, 1fr); }
	body.carehome .columns-4 ul.products, body.carehome ul.products.columns-4 { grid-template-columns: repeat(3, 1fr); }
	.ch-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
	.ch-topbar__msg { display: none; }
	.ch-topbar__in { justify-content: center; }
	.ch-topbar__phone { display: none; }

	.ch-header__in { grid-template-columns: auto 1fr auto; grid-template-areas: "menu logo actions" "search search search"; gap: .75rem 1rem; padding-top: .8rem; padding-bottom: .9rem; }
	.ch-menu-btn {
		grid-area: menu; display: inline-flex; flex-direction: column; align-items: center; gap: .1rem; min-width: 3.6rem; padding: .35rem .5rem;
		border: 0; background: transparent; color: var(--ch-ink); font: 700 .78rem/1 var(--ch-font); border-radius: 12px; cursor: pointer;
	}
	.ch-menu-btn[aria-expanded="true"] { background: var(--ch-brand-soft); color: var(--ch-brand); }
	.ch-logo { grid-area: logo; justify-self: center; }
	.ch-logo__tag { display: none; }
	.ch-logo__name { font-size: 1.25rem; }
	.ch-search { grid-area: search; max-width: none; }
	.ch-actions { grid-area: actions; }
	.ch-actions .ch-action:not(.ch-action--cart) { display: none; }

	.ch-nav { display: none; border-top: 1px solid var(--ch-line); }
	.ch-nav.is-open { display: block; }
	.ch-nav .ch-wrap { flex-direction: column; align-items: stretch; padding-bottom: 1rem; }
	.ch-nav__list { flex-direction: column; gap: .25rem; }
	.ch-nav__list a { width: 100%; min-height: 3.6rem; font-size: 1.1rem; border-bottom: 1px solid var(--ch-line); border-radius: 0; }
	.ch-nav__phone { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.6rem; border-radius: 999px; background: var(--ch-brand); color: #fff !important; font-weight: 700; text-decoration: none; margin-top: .75rem; }

	.ch-hero { grid-template-columns: 1fr; padding: 2rem 1.5rem; }
	.ch-hero__art { min-height: 17rem; max-width: 30rem; width: 100%; justify-self: center; }
	.ch-cats { grid-template-columns: repeat(2, 1fr); }
	.ch-reorder { grid-template-columns: 1fr; text-align: left; padding: 2rem 1.5rem; gap: 1.25rem; }
	.ch-brands { grid-template-columns: repeat(3, 1fr); }
	.ch-promise__in { grid-template-columns: 1fr 1fr; }

	body.carehome.single-product div.product { grid-template-columns: 1fr; gap: 1.5rem; }
	body.carehome.single-product div.product .woocommerce-product-gallery { position: static; }
	body.carehome .columns-3 ul.products, body.carehome ul.products.columns-3,
	body.carehome .columns-4 ul.products, body.carehome ul.products.columns-4 { grid-template-columns: repeat(2, 1fr); }
	body.carehome .wc-block-components-sidebar-layout .wc-block-components-main { padding-right: 0; }

	/* Thanh điều hướng dưới cùng */
	.ch-tabbar {
		display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
		background: #fff; border-top: 1px solid var(--ch-line-strong); box-shadow: 0 -4px 18px rgba(27, 42, 44, .08);
		padding-bottom: env(safe-area-inset-bottom);
	}
	.ch-tabbar a {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-height: 4.2rem;
		color: var(--ch-ink-2); text-decoration: none; font-size: .8rem; font-weight: 700;
	}
	.ch-tabbar a[aria-current="page"] { color: var(--ch-brand); }
	.ch-tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 2.5rem; height: 3px; border-radius: 0 0 3px 3px; background: var(--ch-brand); }
	.ch-tabbar a { position: relative; }
	body.carehome { padding-bottom: 4.6rem; }
}

@media (max-width: 600px) {
	html:root { font-size: 112.5%; }                 /* 18px trên điện thoại */
	.ch-wrap, body.carehome .col-full { padding: 0 1rem; }
	.ch-topbar__in { min-height: 2.75rem; }
	.ch-search button { padding: 0 1rem; }
	.ch-hero { border-radius: var(--ch-radius); margin-bottom: 2.5rem; }
	.ch-hero__cta .ch-btn { width: 100%; }
	.ch-cats { grid-template-columns: 1fr; }
	.ch-brands { grid-template-columns: repeat(2, 1fr); }
	.ch-promise__in { grid-template-columns: 1fr; gap: 1rem; }
	.ch-footer__grid { grid-template-columns: 1fr; gap: 1.75rem; }
	body.carehome ul.products, body.carehome .columns-3 ul.products, body.carehome ul.products.columns-3,
	body.carehome .columns-4 ul.products, body.carehome ul.products.columns-4 { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
	body.carehome ul.products li.product { padding: .75rem; }
	body.carehome ul.products li.product .woocommerce-loop-product__title { font-size: .98rem !important; }
	body.carehome ul.products li.product .button { padding: .6rem .5rem; font-size: .92rem; }
	body.carehome .woocommerce-ordering select { min-width: 0; width: 100%; }
	body.carehome .woocommerce-ordering { width: 100%; }
	body.carehome.single-product .woocommerce-tabs .panel { padding: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   13. Audit mobile – sửa lệch / chuẩn senior
   ===================================================================== */

/* Ảnh SP hiện ngay, không chờ script */
body.carehome .woocommerce-product-gallery { opacity: 1 !important; }

/* Thanh mua hàng cố định – chỉ trên điện thoại */
.ch-buybar { display: none; }

/* Link chữ đủ lớn để bấm */
.ch-link { min-height: 2.75rem; }
body.carehome .woocommerce-breadcrumb a { display: inline-flex; align-items: center; min-height: 2.75rem; }
body.carehome .product_meta a { display: inline-flex; align-items: center; min-height: 2.75rem; }
body.carehome .ch-helpbox a { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* Ô tick / radio to hơn */
body.carehome input[type="checkbox"], body.carehome input[type="radio"],
body.carehome .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
	width: 1.5rem !important; height: 1.5rem !important; min-width: 1.5rem; accent-color: var(--ch-brand);
}
body.carehome .woocommerce-form__label-for-checkbox { display: inline-flex !important; align-items: center; gap: .6rem; min-height: 2.75rem; }

/* Đăng nhập / tài khoản */
body.carehome.woocommerce-account:not(.logged-in) .woocommerce > h2 { display: none; }
body.carehome .woocommerce-form-login .woocommerce-form-login__submit,
body.carehome .woocommerce-form-register .woocommerce-form-register__submit { width: 100%; margin-top: .5rem; float: none; }
body.carehome .woocommerce-form-login .form-row { margin-bottom: 1rem; }
body.carehome .password-input { display: flex; position: relative; width: 100%; }
body.carehome .password-input input { flex: 1; padding-right: 3.5rem; }
body.carehome .show-password-input {
	position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); width: 2.75rem; height: 2.75rem;
	background: transparent !important; color: var(--ch-ink-2) !important; border: 0; border-radius: 10px; padding: 0;
}
body.carehome .show-password-input:hover { background: var(--ch-sunken) !important; }
body.carehome .lost_password a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; }

/* Chữ nhỏ trong giỏ / thanh toán */
body.carehome .wc-block-checkout__guest-checkout-notice,
body.carehome .wc-block-components-address-form__address_2-toggle,
body.carehome .wc-block-components-checkbox__label,
body.carehome .wc-block-components-order-summary-item__description,
body.carehome .wc-block-components-order-summary-item__individual-prices,
body.carehome .wc-block-components-panel__button .wc-block-formatted-money-amount,
body.carehome .wc-block-components-totals-item__description { font-size: 1rem !important; }
body.carehome .wc-block-components-order-summary .wc-block-components-panel__button { font-size: 1.1rem !important; }
body.carehome .wc-block-checkout__terms { font-size: .95rem; }

@media (max-width: 900px) {
	/* ---- Header gọn: 1 dòng logo ---- */
	.ch-topbar__in { min-height: 2.6rem; }
	.ch-header__in { padding-top: .55rem; padding-bottom: .7rem; gap: .55rem .75rem; }
	.ch-logo { gap: .5rem; min-width: 0; }
	.ch-logo__name { font-size: 1.15rem; white-space: nowrap; }
	.ch-menu-btn, .ch-action { min-width: 3.2rem; font-size: .875rem; }
	.ch-menu-btn span, .ch-action span { font-size: .875rem; }
	.ch-search { padding: .25rem .25rem .25rem .9rem; }
	body.carehome .ch-search input[type="search"] { min-height: 2.6rem; padding: .4rem .6rem; }
	.ch-search button { min-height: 2.75rem; padding: 0 1.1rem; }

	/* ---- Thanh điều hướng dưới: chữ ≥ 15px ---- */
	.ch-tabbar a { font-size: .875rem; }
	body.carehome.single-product .ch-tabbar,
	body.carehome.woocommerce-checkout .ch-tabbar { display: none; }
	body.carehome.woocommerce-checkout { padding-bottom: 0; }

	/* ---- Breadcrumb 1 dòng ---- */
	body.carehome .woocommerce-breadcrumb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	body.carehome .storefront-breadcrumb { padding-top: .25rem; }

	/* ---- Tiêu đề khu vực: link nằm cùng hàng ---- */
	.ch-section { margin-bottom: 2.5rem; }
	.ch-section__head { flex-wrap: nowrap; align-items: center; margin-bottom: 1rem; }
	.ch-section__head h2 { font-size: 1.45rem; }
	.ch-section__head .ch-link { flex: none; font-size: .95rem; white-space: nowrap; }

	/* ---- Hero: ảnh xếp hàng ngang gọn gàng ---- */
	.ch-hero { padding: 1.75rem 1.25rem; gap: 1.5rem; margin-bottom: 2.5rem; }
	.ch-hero__cta { margin: 1.25rem 0 1rem; }
	.ch-hero__art { min-height: 0; max-width: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
	.ch-hero__tile { position: static; width: auto !important; transform: none !important; padding: .5rem; box-shadow: var(--ch-shadow); border-radius: var(--ch-radius); }
	.ch-hero__badge { position: static; grid-column: 1 / -1; justify-content: center; border-radius: var(--ch-radius); }

	/* ---- Danh mục: lưới 2 cột ---- */
	.ch-cats { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
	.ch-cat { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: .35rem; padding: 1rem; min-height: 0; align-content: start; }
	.ch-cat__icon { grid-row: auto; width: 3rem; height: 3rem; margin-bottom: .35rem; }
	.ch-cat__icon .ch-icon { width: 28px; height: 28px; }
	.ch-cat__name { font-size: 1.02rem; }
	.ch-cat__count { grid-column: 1; font-size: .9rem; }
	.ch-cat__go { display: none; }

	/* ---- Khối mua lại ---- */
	.ch-reorder { padding: 1.5rem 1.25rem; gap: 1rem; }
	.ch-reorder__icon { width: 3.25rem; height: 3.25rem; }
	body.carehome .ch-reorder h2 { font-size: 1.35rem; }
	.ch-reorder .ch-btn { width: 100%; }

	/* ---- Thẻ sản phẩm 2 cột ---- */
	.ch-card-brand { font-size: .85rem; }
	body.carehome ul.products li.product .woocommerce-loop-product__title { -webkit-line-clamp: 3; min-height: calc(1.3em * 3); }
	body.carehome ul.products li.product .price { font-size: 1.12rem; }
	.ch-card-variants { margin-bottom: .6rem; }
	body.carehome ul.products li.product .button { white-space: nowrap; padding: .6rem .5rem; min-height: 3rem; font-size: .95rem; }

	/* ---- Thanh sắp xếp gọn ---- */
	body.carehome .woocommerce-products-header { padding-top: .25rem; }
	body.carehome .woocommerce-products-header__title.page-title { font-size: 1.75rem; margin-bottom: .25rem; }
	body.carehome .storefront-sorting { background: none; border: 0; padding: 0; margin-bottom: 1rem; gap: .5rem; }
	body.carehome .storefront-sorting .woocommerce-result-count { font-weight: 400; color: var(--ch-ink-2); font-size: .95rem; }
	body.carehome .woocommerce-ordering, body.carehome .woocommerce-ordering select { width: 100%; min-width: 0; }

	/* ---- Trang sản phẩm ---- */
	body.carehome.single-product div.product { gap: 1.25rem; padding-top: .25rem; }
	body.carehome.single-product div.product .woocommerce-product-gallery { padding: .75rem; border-radius: var(--ch-radius); }
	body.carehome.single-product .flex-control-thumbs { margin-top: .6rem !important; }
	body.carehome.single-product .flex-control-thumbs li { width: 3.75rem !important; }
	body.carehome .product_title { font-size: 1.65rem; }
	body.carehome.single-product div.product .summary > p.price { font-size: 1.6rem; }
	.ch-swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ch-swatch { min-width: 0; width: 100%; }
	body.carehome .woocommerce-variation-add-to-cart { flex-wrap: nowrap; }
	body.carehome.single-product .single_add_to_cart_button { flex: 1 1 auto; min-width: 0; }
	body.carehome .quantity.ch-qty .qty { width: 2.6rem; }
	body.carehome .ch-qty__btn { width: 2.9rem; }
	body.carehome.single-product .woocommerce-tabs ul.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
	body.carehome.single-product .woocommerce-tabs ul.tabs li a { width: 100%; justify-content: center; padding: 0 .4rem; font-size: .95rem; }
	body.carehome.single-product .woocommerce-tabs .panel { padding: 1.25rem; border-radius: var(--ch-radius); }
	body.carehome .product_meta { font-size: .95rem; }

	/* Thanh mua hàng cố định */
	.ch-buybar {
		display: flex; align-items: center; gap: .75rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
		background: #fff; border-top: 1px solid var(--ch-line-strong); box-shadow: 0 -6px 20px rgba(27, 42, 44, .1);
		padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); transition: transform .2s ease;
	}
	.ch-buybar.is-hidden { transform: translateY(110%); }
	.ch-buybar__price { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
	.ch-buybar__label { font-size: .9rem; color: var(--ch-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.ch-buybar__amount { font-size: 1.2rem; font-weight: 700; color: var(--ch-ink); }
	.ch-buybar__amount del { font-size: .8em; font-weight: 400; color: var(--ch-ink-2); }
	.ch-buybar__amount ins { text-decoration: none; }
	.ch-buybar__btn { flex: none; min-height: 3.25rem; padding: .6rem 1.25rem; }
	body.carehome.single-product { padding-bottom: 5.5rem; }

	/* ---- Giỏ hàng (block, bố cục mobile) ---- */
	body.carehome .wc-block-cart.is-mobile .wc-block-cart-items,
	body.carehome .wc-block-cart.is-mobile .wc-block-cart-items tbody { display: block; width: 100%; }
	body.carehome .wc-block-cart.is-mobile .wc-block-cart-items__row {
		display: grid !important; grid-template-columns: 5.25rem minmax(0, 1fr); column-gap: .9rem; row-gap: .4rem;
		padding: 1.1rem 0 !important; width: 100%;
	}
	body.carehome .wc-block-cart.is-mobile .wc-block-cart-item__image { grid-column: 1; grid-row: 1 / span 2; width: auto !important; padding: 0 !important; }
	body.carehome .wc-block-cart.is-mobile .wc-block-cart-item__product { grid-column: 2; grid-row: 1; padding: 0 !important; min-width: 0; }
	body.carehome .wc-block-cart.is-mobile .wc-block-cart-item__total { grid-column: 2; grid-row: 2; padding: 0 !important; text-align: left; }
	body.carehome .wc-block-cart.is-mobile .wc-block-cart-item__total:has(.wc-block-components-product-price)::before { content: "Item total:"; color: var(--ch-ink-2); font-weight: 400; }
	body.carehome .wc-block-cart.is-mobile .wc-block-cart-item__total-price-and-sale-badge-wrapper { display: inline-flex; }
	body.carehome .wc-block-cart.is-mobile .wc-block-cart-item__quantity { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; margin-top: .5rem; }
	body.carehome .wc-block-cart.is-mobile .wc-block-cart-item__remove-link { margin-left: 0 !important; }
	body.carehome .wc-block-cart.is-mobile .wc-block-components-product-name { display: block; }
	body.carehome .wc-block-components-sidebar { padding: 0 !important; }
	body.carehome .wc-block-cart__submit-container--sticky { bottom: calc(4.2rem + env(safe-area-inset-bottom)) !important; padding: .75rem 1rem !important; }
	body.carehome h1.entry-title, body.carehome .entry-header .entry-title { font-size: 1.75rem; margin: .25rem 0 1rem; }

	/* ---- Tài khoản ---- */
	body.carehome .woocommerce-form-login, body.carehome .woocommerce-form-register { padding: 1.25rem; border-radius: var(--ch-radius); }

	/* ---- Footer ---- */
	.ch-footer { padding-top: 2.25rem; }
	.ch-footer__grid { gap: 1.25rem 1.5rem; }
}

@media (max-width: 600px) {
	.ch-footer__grid { grid-template-columns: 1fr 1fr; }
	.ch-footer__about, .ch-footer__contact { grid-column: 1 / -1; }
}

@media (max-width: 370px) {
	.ch-logo__name { font-size: 1.02rem; }
	.ch-search button { padding: 0 .85rem; }
	.ch-cats { gap: .5rem; }
	.ch-cat { padding: .85rem; }
	body.carehome ul.products li.product .button { font-size: .88rem; }
}

/* Audit – vùng bấm & chữ còn sót */
.ch-logo { min-height: 2.75rem; }
.ch-pdp-brand { display: inline-flex; align-items: center; min-height: 2.75rem; margin-bottom: 0; }
.ch-footer__phone { min-height: 2.75rem; }
.ch-footer__contact p a { display: inline-flex; align-items: center; min-height: 2.75rem; }
body.carehome .woocommerce-product-gallery__trigger { width: 2.75rem !important; height: 2.75rem !important; }
body.carehome .wc-block-checkout bdi, body.carehome .wc-block-cart bdi { font-size: inherit !important; }
body.carehome .wc-block-components-checkout-order-summary__title-price,
body.carehome .wc-block-components-checkout-order-summary__title-text { font-size: 1.1rem !important; }

/* Audit – cột lưới không được giãn theo nội dung (màn 360px) */
body.carehome ul.products > li.product { min-width: 0; }
@media (max-width: 900px) {
	body.carehome.single-product div.product { grid-template-columns: minmax(0, 1fr); }
	body.carehome.single-product div.product > * { min-width: 0; }
	body.carehome .columns-3 ul.products, body.carehome ul.products.columns-3,
	body.carehome .columns-4 ul.products, body.carehome ul.products.columns-4,
	body.carehome ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body.carehome.single-product .single_add_to_cart_button { padding: .7rem 1rem; }
}
@media (max-width: 370px) {
	body.carehome ul.products li.product .button { white-space: normal; line-height: 1.15; }
	body.carehome .quantity.ch-qty .qty { width: 2.2rem; }
	body.carehome .ch-qty__btn { width: 2.6rem; }
}
body.carehome .ch-search { margin: 0; }

/* Nút "xem tất cả" rộng dưới mỗi khu vực – chỉ trên điện thoại */
.ch-section__more { display: none; }
@media (max-width: 900px) {
	.ch-section__head .ch-link { display: none; }
	.ch-section__more { display: flex; width: 100%; margin-top: .25rem; }
	.ch-cats + .ch-section__more { margin-top: .9rem; }
	body.carehome .ch-section ul.products { margin-bottom: 1rem !important; }
}
.ch-cats > li { display: flex; }
.ch-cats > li > .ch-cat { width: 100%; }
@media (max-width: 900px) {
	body.carehome .woocommerce-variation-add-to-cart { flex-wrap: wrap; }
	body.carehome.single-product .woocommerce-variation-add-to-cart .single_add_to_cart_button { flex: 1 1 0; }
}
body.carehome .ch-helpbox a { display: inline; min-height: 0; padding: .7rem 0; }
@media (max-width: 900px) {
	body.carehome .wc-block-cart.is-mobile .wc-block-cart-item__total { display: flex !important; align-items: baseline; justify-content: flex-start !important; gap: .4rem; }
	body.carehome .wc-block-cart.is-mobile .wc-block-cart-item__total::before { font-size: 1rem; }
	body.carehome .wc-block-cart.is-mobile .wc-block-cart-item__total-price-and-sale-badge-wrapper { align-items: baseline; }
}

/* =====================================================================
   14. Bộ đếm số lượng (−  1  +) – dùng chung giỏ hàng & trang sản phẩm
   Một khung viền duy nhất, nút có nền nhạt, icon đậm, số to ở giữa.
   ===================================================================== */
:root {
	--ch-icon-minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E");
	--ch-icon-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E");
	--ch-step-h: 3.25rem;
}

/* Khung */
body.carehome .quantity.ch-qty,
body.carehome .wc-block-components-quantity-selector {
	display: inline-flex !important; align-items: stretch; flex-wrap: nowrap;
	height: var(--ch-step-h); min-height: 0 !important; width: auto !important;
	border: 2px solid var(--ch-line-strong) !important; border-radius: 14px !important;
	background: #fff !important; overflow: hidden; box-shadow: none !important; margin: 0;
	transition: border-color .15s, box-shadow .15s;
}
body.carehome .quantity.ch-qty:focus-within,
body.carehome .wc-block-components-quantity-selector:focus-within {
	border-color: var(--ch-brand) !important; box-shadow: 0 0 0 3px rgba(10, 76, 143, .16) !important;
}
body.carehome .wc-block-components-quantity-selector::after { display: none !important; }

/* Ô số ở giữa */
body.carehome .quantity.ch-qty .qty,
body.carehome .wc-block-components-quantity-selector .wc-block-components-quantity-selector__input {
	order: 2; flex: none; width: 3.4rem !important; height: auto !important; min-height: 0 !important;
	margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
	background: transparent !important; box-shadow: none !important; outline: none;
	font: 700 1.2rem/1 var(--ch-font) !important; color: var(--ch-ink) !important; text-align: center;
	-moz-appearance: textfield; appearance: textfield;
}
body.carehome .wc-block-components-quantity-selector__input::-webkit-outer-spin-button,
body.carehome .wc-block-components-quantity-selector__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Nút − / + */
body.carehome .ch-qty__btn,
body.carehome .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
	flex: none; width: var(--ch-step-h) !important; min-width: 0 !important; height: auto !important; min-height: 0 !important;
	margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
	background: var(--ch-brand-soft) !important; color: var(--ch-brand) !important;
	display: flex !important; align-items: center; justify-content: center; cursor: pointer;
	font-size: 0 !important; line-height: 0; opacity: 1 !important; box-shadow: none !important;
	transition: background .12s, color .12s;
}
body.carehome .ch-qty__btn:first-child,
body.carehome .wc-block-components-quantity-selector__button--minus { order: 1; border-right: 2px solid var(--ch-line) !important; }
body.carehome .ch-qty__btn:last-child,
body.carehome .wc-block-components-quantity-selector__button--plus { order: 3; border-left: 2px solid var(--ch-line) !important; }

/* Icon: SVG của theme (trang SP) & icon mask (giỏ hàng block) */
body.carehome .ch-qty__btn svg { width: 1.35rem; height: 1.35rem; stroke-width: 2.6; }
body.carehome .wc-block-components-quantity-selector__button::before {
	content: ""; width: 1.35rem; height: 1.35rem; background: currentColor;
	-webkit-mask: var(--ch-icon-plus) center / contain no-repeat; mask: var(--ch-icon-plus) center / contain no-repeat;
}
body.carehome .wc-block-components-quantity-selector__button--minus::before {
	-webkit-mask-image: var(--ch-icon-minus); mask-image: var(--ch-icon-minus);
}

/* Trạng thái */
body.carehome .ch-qty__btn:hover,
body.carehome .wc-block-components-quantity-selector__button:hover:not(:disabled) {
	background: var(--ch-brand) !important; color: #fff !important;
}
body.carehome .ch-qty__btn:active,
body.carehome .wc-block-components-quantity-selector__button:active:not(:disabled) { background: var(--ch-brand-hover) !important; }
body.carehome .ch-qty__btn:focus-visible,
body.carehome .wc-block-components-quantity-selector__button:focus-visible {
	box-shadow: inset 0 0 0 3px #e09b16 !important; border-radius: 0 !important;
}
body.carehome .ch-qty__btn:disabled,
body.carehome .wc-block-components-quantity-selector__button:disabled {
	background: var(--ch-sunken) !important; color: #a3aead !important; cursor: not-allowed;
}

/* Trang sản phẩm: cao bằng nút "Add to cart" */
body.carehome.single-product .quantity.ch-qty { --ch-step-h: 3.6rem; }

/* Giỏ hàng: căn hàng bộ đếm + nút Remove */
body.carehome .wc-block-cart-item__quantity { display: flex !important; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }

/* Thanh trên cùng: trên điện thoại không còn nội dung -> ẩn */
@media (max-width: 900px) { .ch-topbar { display: none; } }

/* =====================================================================
   15. Thương hiệu Resilience Care – logo ảnh + màu nhấn xanh lá
   ===================================================================== */
.ch-logo__img { display: block; width: 4.75rem; height: auto; flex: none; margin: -.35rem 0; }
.ch-logo__name { color: var(--ch-brand-hover); }
.ch-logo__tile { display: inline-flex; background: #fff; border-radius: 16px; padding: .3rem; }
.ch-logo__tile .ch-logo__img { width: 3.6rem; margin: 0; }
.ch-logo--light .ch-logo__name { color: #fff; }

/* Điểm nhấn xanh lá */
.ch-eyebrow { background: var(--ch-green-soft); color: #2c6a10; }
.ch-hero__ticks .ch-icon, .ch-assure .ch-icon, .ch-promise .ch-icon { color: var(--ch-green); }
.ch-cats > li:nth-child(even) .ch-cat__icon { background: var(--ch-green-soft); color: #2c6a10; }
.ch-swatch.is-on::before { color: var(--ch-green); }
body.carehome .woocommerce-message::before { background: var(--ch-green); }
.ch-hero { background: linear-gradient(135deg, #fff 0%, #f0f6fb 55%, var(--ch-green-soft) 100%); }

@media (max-width: 900px) {
	.ch-logo__img { width: 3.1rem; margin: -.2rem 0; }
	.ch-logo__name { font-size: 1.12rem; }
}
@media (max-width: 370px) {
	.ch-logo__img { width: 2.7rem; }
	.ch-logo__name { font-size: 1rem; }
}

/* =====================================================================
   16. Khuyến mãi (giá gạch, nhãn % OFF, thông báo khai trương)
   ===================================================================== */
:root { --ch-sale: #c0261a; --ch-sale-soft: #fdecea; }
.ch-topbar__tag {
	display: inline-flex; align-items: center; background: var(--ch-warm); color: var(--ch-ink);
	font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em;
	padding: .15rem .55rem; border-radius: 999px; margin-right: .4rem;
}
.ch-eyebrow--sale { background: var(--ch-sale-soft) !important; color: var(--ch-sale) !important; }

/* Giá: gốc gạch (xám) + giá sale (đỏ, đậm) */
body.carehome .price del, body.carehome .ch-buybar__amount del {
	color: var(--ch-ink-2); font-weight: 400; font-size: .82em; text-decoration-thickness: 2px; opacity: 1; margin-right: .3rem;
}
body.carehome .price ins, body.carehome .ch-buybar__amount ins { text-decoration: none; color: var(--ch-sale); font-weight: 700; }
body.carehome.single-product div.product .summary > p.price ins { font-size: 1em; }

/* Nhãn "30% OFF" */
body.carehome span.onsale, body.carehome ul.products li.product .onsale, body.carehome.single-product .onsale {
	position: absolute; top: .75rem; left: .75rem; z-index: 4; margin: 0; min-height: 0; min-width: 0;
	background: var(--ch-sale); color: #fff; border: 0; border-radius: 999px;
	padding: .3rem .75rem; font: 700 .9rem/1.2 var(--ch-font); letter-spacing: .02em; box-shadow: 0 2px 6px rgba(192, 38, 26, .25);
}
body.carehome.single-product div.product { position: relative; }
body.carehome.single-product div.product > .onsale { top: 2.1rem; left: 1.9rem; font-size: 1rem; padding: .4rem .95rem; }

@media (max-width: 900px) {
	.ch-topbar:has(.ch-topbar__msg--sale) { display: block; }
	.ch-topbar__msg--sale { display: flex !important; justify-content: center; text-align: center; font-size: .9rem; }
	.ch-topbar:has(.ch-topbar__msg--sale) .ch-topbar__right { display: none; }
	body.carehome.single-product div.product > .onsale { top: 1.1rem; left: 1.1rem; }
}
.ch-topbar__tag { white-space: nowrap; }
body.carehome .wc-block-components-sale-badge {
	background: var(--ch-green-soft) !important; color: #2c6a10 !important; border: 0 !important;
	font-weight: 700; font-size: .9rem !important; border-radius: 999px !important; padding: .15rem .6rem !important;
}
@media (max-width: 600px) { .ch-hide-sm { display: none; } }

/* =====================================================================
   17. Nút "Add to cart" có trạng thái (Adding… → ✓ Added · View cart)
   ===================================================================== */
/* Bỏ link "View cart" WooCommerce chèn thêm bên dưới */
body.carehome ul.products li.product a.added_to_cart { display: none !important; }
/* Bỏ icon tick / spinner FontAwesome của Storefront */
body.carehome .button.loading::after, body.carehome .button.added::after,
body.carehome ul.products li.product .button.loading::after,
body.carehome ul.products li.product .button.added::after { display: none !important; content: none !important; }
body.carehome .button.loading { opacity: 1; padding-right: 1.4rem; }

/* Đang thêm */
body.carehome .button[aria-busy="true"] { pointer-events: none; background: var(--ch-brand-hover); border-color: var(--ch-brand-hover); }
.ch-spin {
	width: 1.05rem; height: 1.05rem; border-radius: 50%; flex: none;
	border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: ch-spin .7s linear infinite;
}
@keyframes ch-spin { to { transform: rotate(360deg); } }

/* Đã thêm */
body.carehome .button.ch-added,
body.carehome ul.products li.product .button.ch-added {
	background: #2f7d18; border-color: #2f7d18; color: #fff !important; gap: .4rem;
	animation: ch-pop .25s ease-out;
}
body.carehome .button.ch-added:hover { background: #256613; border-color: #256613; }
body.carehome .button.ch-added svg { flex: none; }
@keyframes ch-pop { 0% { transform: scale(.96); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) { .ch-spin, body.carehome .button.ch-added { animation: none; } }
@media (max-width: 600px) {
	body.carehome ul.products li.product .button.ch-added span { white-space: nowrap; }
}

/* Giá sale trên thẻ SP (điện thoại): giá sale trước, giá gạch sau – xuống dòng gọn */
@media (max-width: 600px) {
	body.carehome ul.products li.product .price { display: flex !important; flex-wrap: wrap; align-items: baseline; column-gap: .4rem; row-gap: 0; }
	body.carehome ul.products li.product .price .ch-from { order: 0; }
	body.carehome ul.products li.product .price ins { order: 1; }
	body.carehome ul.products li.product .price del { order: 2; margin-right: 0; font-size: .85em; }
	body.carehome ul.products li.product .price .screen-reader-text { order: 3; }
}

/* =====================================================================
   18. Ảnh sản phẩm: khung vuông cố định, ảnh nhỏ tự phóng vừa khung
   ===================================================================== */
body.carehome.single-product .woocommerce-product-gallery__image {
	aspect-ratio: 1 / 1; display: flex !important; align-items: center; justify-content: center; background: #fff;
}
body.carehome.single-product .woocommerce-product-gallery__image > a {
	display: flex; width: 100%; height: 100%; align-items: center; justify-content: center;
}
body.carehome.single-product .woocommerce-product-gallery__image img,
body.carehome.single-product .woocommerce-product-gallery__image img.wp-post-image {
	width: 100% !important; height: 100% !important; max-width: none; object-fit: contain; margin: 0 !important;
}
/* Ảnh thu nhỏ bên dưới: ô vuông đều nhau */
body.carehome.single-product .flex-control-thumbs li img {
	aspect-ratio: 1 / 1; width: 100%; height: auto; object-fit: contain; background: #fff; padding: .2rem;
}
/* Ảnh ở giỏ hàng, sản phẩm liên quan: cũng vuông, phóng vừa khung */
body.carehome ul.products li.product img { height: auto; }
body.carehome .wc-block-cart-item__image img { aspect-ratio: 1 / 1; object-fit: contain; background: #fff; }

/* =====================================================================
   19. Hover: chặn quy tắc Storefront "button:hover { color: #fff }"
   cho mọi nút nền sáng (ô chọn size, Menu, Add coupons, …)
   ===================================================================== */
body.carehome button:not(.button):not(.ch-btn):not([type="submit"]):not(.wc-block-components-button):not(.ch-qty__btn):not(.wc-block-components-quantity-selector__button):hover {
	color: inherit;
}

/* Ô chọn size / gói */
body.carehome .ch-swatch:hover:not(:disabled) {
	color: var(--ch-ink) !important; background: #f2f7fd; border-color: var(--ch-brand);
}
body.carehome .ch-swatch.is-on,
body.carehome .ch-swatch.is-on:hover {
	color: var(--ch-brand-hover) !important; background: var(--ch-brand-soft); border-color: var(--ch-brand);
}
body.carehome .ch-swatch:focus-visible { color: var(--ch-ink); }

/* Nút Menu (điện thoại) */
body.carehome .ch-menu-btn:hover { color: var(--ch-brand); background: var(--ch-brand-soft); }

/* Link "Clear" */
body.carehome .reset_variations:hover { color: var(--ch-brand-hover); text-decoration: underline; }

/* =====================================================================
   20. TÀI KHOẢN (My account)
   ===================================================================== */
body.carehome.woocommerce-account .entry-header { text-align: left; }
body.carehome.woocommerce-account.logged-in .entry-content > .woocommerce {
	display: grid; grid-template-columns: 18rem minmax(0, 1fr); gap: 2.5rem; align-items: start;
}
body.carehome.woocommerce-account .entry-content > .woocommerce::before,
body.carehome.woocommerce-account .entry-content > .woocommerce::after { content: none; display: none; }
body.carehome .woocommerce-MyAccount-navigation,
body.carehome .woocommerce-MyAccount-content { float: none !important; width: auto !important; margin: 0 !important; min-width: 0; }

/* Cột trái */
.ch-acct-side { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 1.25rem; }
.ch-acct-user { display: flex; align-items: center; gap: .9rem; background: var(--ch-surface); border: 1px solid var(--ch-line); border-radius: var(--ch-radius-lg); padding: 1rem 1.1rem; box-shadow: var(--ch-shadow); }
.ch-acct-user__av { flex: none; width: 3.25rem; height: 3.25rem; border-radius: 50%; display: grid; place-items: center; background: var(--ch-brand); color: #fff; font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; }
.ch-acct-user__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ch-acct-user__txt strong { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-acct-user__txt span { color: var(--ch-ink-2); font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

body.carehome .ch-acct-nav { background: var(--ch-surface); border: 1px solid var(--ch-line); border-radius: var(--ch-radius-lg); padding: .5rem; box-shadow: var(--ch-shadow); }
body.carehome .ch-acct-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
body.carehome .ch-acct-nav ul li { border: 0 !important; margin: 0; padding: 0; }
body.carehome .ch-acct-nav ul li a {
	display: flex !important; align-items: center; gap: .85rem; min-height: var(--ch-tap); padding: .7rem 1rem !important;
	border-radius: 12px; color: var(--ch-ink) !important; font-weight: 700; font-size: 1.02rem; text-decoration: none; background: transparent;
}
body.carehome .ch-acct-nav ul li a::before, body.carehome .ch-acct-nav ul li a::after { content: none !important; display: none !important; }
body.carehome .ch-acct-nav ul li a .ch-icon { flex: none; color: var(--ch-brand); }
body.carehome .ch-acct-nav ul li a:hover { background: var(--ch-brand-soft); color: var(--ch-brand-hover) !important; }
body.carehome .ch-acct-nav ul li.is-active a { background: var(--ch-brand); color: #fff !important; }
body.carehome .ch-acct-nav ul li.is-active a .ch-icon { color: #fff; }
body.carehome .ch-acct-nav ul li.woocommerce-MyAccount-navigation-link--customer-logout { margin-top: .35rem; padding-top: .35rem; border-top: 1px solid var(--ch-line) !important; }
body.carehome .ch-acct-nav ul li.woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--ch-ink-2) !important; }
body.carehome .ch-acct-nav ul li.woocommerce-MyAccount-navigation-link--customer-logout a .ch-icon { color: var(--ch-ink-2); }

.ch-acct-help { background: var(--ch-green-soft); border-radius: var(--ch-radius-lg); padding: 1.1rem 1.2rem; display: grid; grid-template-columns: auto 1fr; gap: .4rem .8rem; align-items: start; }
.ch-acct-help > .ch-icon { color: var(--ch-green); margin-top: .1rem; }
.ch-acct-help p { margin: 0; font-size: .98rem; line-height: 1.45; }
.ch-acct-help p strong { display: block; }
.ch-acct-help .ch-btn { grid-column: 1 / -1; margin-top: .5rem; width: 100%; background: #fff; }

/* Nội dung */
body.carehome .woocommerce-MyAccount-content > :first-child { margin-top: 0; }
.ch-acct-hello h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin: 0 0 .35rem; }
.ch-acct-hello p { margin: 0 0 1.5rem; color: var(--ch-ink-2); }

.ch-acct-tiles { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ch-acct-tile {
	position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 1rem; align-items: center;
	background: var(--ch-surface); border: 1px solid var(--ch-line); border-radius: var(--ch-radius-lg); padding: 1.15rem 1.25rem; min-height: 6rem;
	text-decoration: none !important; color: var(--ch-ink) !important; box-shadow: var(--ch-shadow); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ch-acct-tile:hover { border-color: var(--ch-brand); box-shadow: var(--ch-shadow-lg); transform: translateY(-1px); }
.ch-acct-tile__icon { grid-row: 1 / 3; width: 3.5rem; height: 3.5rem; border-radius: 16px; display: grid; place-items: center; background: var(--ch-brand-soft); color: var(--ch-brand); }
.ch-acct-tile__name { font-weight: 700; font-size: 1.12rem; align-self: end; }
.ch-acct-tile__meta { color: var(--ch-ink-2); font-size: .95rem; align-self: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-acct-tile__go { grid-row: 1 / 3; grid-column: 3; color: var(--ch-brand); }

.ch-acct-card { background: var(--ch-surface); border: 1px solid var(--ch-line); border-radius: var(--ch-radius-lg); padding: 1.25rem 1.5rem; box-shadow: var(--ch-shadow); }
.ch-acct-card__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.ch-acct-card__head h3 { margin: 0; font-size: 1.3rem; }
.ch-acct-orders { list-style: none; margin: 0; padding: 0; }
.ch-acct-orders li + li { border-top: 1px solid var(--ch-line); }
.ch-acct-orders a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "no status total" "date status total"; gap: .15rem 1.25rem; align-items: center; padding: .9rem .25rem; text-decoration: none !important; color: var(--ch-ink) !important; }
.ch-acct-orders a:hover .ch-acct-orders__no { color: var(--ch-brand); text-decoration: underline; }
.ch-acct-orders__no { grid-area: no; font-weight: 700; }
.ch-acct-orders__date { grid-area: date; color: var(--ch-ink-2); font-size: .95rem; }
.ch-acct-orders .ch-status { grid-area: status; }
.ch-acct-orders__total { grid-area: total; font-weight: 700; text-align: right; }
.ch-acct-empty { text-align: center; padding: 1.5rem 1rem 1rem; color: var(--ch-ink-2); }
.ch-acct-empty > .ch-icon { color: var(--ch-line-strong); }
.ch-acct-empty p { margin: .5rem 0 1rem; font-size: 1.05rem; }

/* Nhãn trạng thái đơn */
.ch-status, body.carehome .woocommerce-orders-table__cell-order-status { font-weight: 700; }
.ch-status { display: inline-flex; align-items: center; padding: .25rem .75rem; border-radius: 999px; font-size: .92rem; background: var(--ch-sunken); color: var(--ch-ink-2); white-space: nowrap; }
.ch-status--processing, .ch-status--on-hold { background: #fff4dc; color: #7a4b00; }
.ch-status--completed { background: var(--ch-green-soft); color: var(--ch-ok); }
.ch-status--cancelled, .ch-status--failed, .ch-status--refunded { background: #fdecea; color: var(--ch-sale); }

/* Bảng đơn hàng */
body.carehome .woocommerce-MyAccount-content table.shop_table { background: var(--ch-surface); border: 1px solid var(--ch-line); border-radius: var(--ch-radius-lg); border-collapse: separate; border-spacing: 0; overflow: hidden; box-shadow: var(--ch-shadow); width: 100%; }
body.carehome .woocommerce-MyAccount-content table.shop_table th { background: var(--ch-sunken); font-size: .95rem; padding: .85rem 1rem; text-align: left; }
body.carehome .woocommerce-MyAccount-content table.shop_table td { padding: .9rem 1rem; border-top: 1px solid var(--ch-line); background: transparent; vertical-align: middle; }
body.carehome .woocommerce-MyAccount-content table.shop_table tbody tr:nth-child(2n) td { background: transparent; }
body.carehome .woocommerce-orders-table .button { min-height: 2.75rem; padding: .45rem 1rem; font-size: .95rem; margin: .15rem .25rem .15rem 0; }

/* Tiêu đề trong nội dung + form */
body.carehome .woocommerce-MyAccount-content h2, body.carehome .woocommerce-MyAccount-content h3, body.carehome .woocommerce-MyAccount-content legend { font-family: var(--ch-serif); }
body.carehome .woocommerce-MyAccount-content > p:first-child { color: var(--ch-ink-2); }
body.carehome .woocommerce-Addresses { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
body.carehome .woocommerce-Addresses::before, body.carehome .woocommerce-Addresses::after { content: none !important; display: none !important; }
body.carehome .woocommerce-Addresses .woocommerce-Address { float: none !important; width: auto !important; margin: 0 !important; background: var(--ch-surface); border: 1px solid var(--ch-line); border-radius: var(--ch-radius-lg); padding: 1.25rem 1.4rem; box-shadow: var(--ch-shadow); }
body.carehome .woocommerce-Address-title { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: .5rem; }
body.carehome .woocommerce-Address-title::before, body.carehome .woocommerce-Address-title::after { content: none !important; display: none !important; }
body.carehome .woocommerce-Address-title h2 { margin: 0; font-size: 1.3rem; }
body.carehome .woocommerce-Address-title a.edit { float: none !important; display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; border: 2px solid var(--ch-brand); border-radius: 12px; font-weight: 700; text-decoration: none; }
body.carehome .woocommerce-Address-title a.edit:hover { background: var(--ch-brand-soft); }
body.carehome .woocommerce-Address address { font-style: normal; line-height: 1.6; color: var(--ch-ink-2); }

body.carehome .woocommerce-EditAccountForm, body.carehome .woocommerce-MyAccount-content form.edit-address-form,
body.carehome .woocommerce-MyAccount-content > form:not(.ch-skip-card) {
	background: var(--ch-surface); border: 1px solid var(--ch-line); border-radius: var(--ch-radius-lg); padding: 1.5rem; box-shadow: var(--ch-shadow);
}
body.carehome .woocommerce-MyAccount-content .form-row { float: none !important; width: auto !important; margin: 0 0 1rem; padding: 0; }
body.carehome .woocommerce-MyAccount-content .form-row-first, body.carehome .woocommerce-MyAccount-content .form-row-last { width: calc(50% - .5rem) !important; }
body.carehome .woocommerce-MyAccount-content .form-row-first { float: left !important; }
body.carehome .woocommerce-MyAccount-content .form-row-last { float: right !important; }
body.carehome .woocommerce-MyAccount-content .form-row-wide, body.carehome .woocommerce-MyAccount-content .clear, body.carehome .woocommerce-MyAccount-content fieldset { clear: both; }
body.carehome .woocommerce-MyAccount-content .form-row input.input-text, body.carehome .woocommerce-MyAccount-content .form-row select { width: 100%; }
body.carehome .woocommerce-MyAccount-content .form-row label { display: block; font-weight: 700; margin-bottom: .35rem; }
body.carehome .woocommerce-MyAccount-content .form-row em, body.carehome .woocommerce-MyAccount-content .form-row .description { display: block; margin-top: .35rem; font-size: .95rem; color: var(--ch-ink-2); font-style: normal; }
body.carehome .woocommerce-MyAccount-content .woocommerce-input-wrapper { display: block; }
body.carehome .woocommerce-MyAccount-content fieldset { border: 1px solid var(--ch-line); border-radius: var(--ch-radius); padding: 1rem 1.25rem .25rem; margin: 1.25rem 0; }
body.carehome .woocommerce-MyAccount-content fieldset legend { padding: 0 .5rem; font-weight: 700; font-size: 1.15rem; }
body.carehome .woocommerce-MyAccount-content form .button { min-width: 12rem; }
body.carehome .woocommerce-MyAccount-content .woocommerce-info, body.carehome .woocommerce-MyAccount-content .woocommerce-message { margin-bottom: 1.25rem; }

@media (max-width: 900px) {
	body.carehome.woocommerce-account.logged-in .entry-content > .woocommerce { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
	.ch-acct-side { position: static; }
	.ch-acct-help { display: none; }
	/* menu thành hàng nút cuộn ngang */
	body.carehome .ch-acct-nav { padding: .4rem; overflow-x: auto; scrollbar-width: none; }
	body.carehome .ch-acct-nav::-webkit-scrollbar { display: none; }
	body.carehome .ch-acct-nav ul { flex-direction: row; gap: .35rem; }
	body.carehome .ch-acct-nav ul li a { white-space: nowrap; padding: .6rem .9rem !important; font-size: .98rem; gap: .5rem; }
	body.carehome .ch-acct-nav ul li.woocommerce-MyAccount-navigation-link--customer-logout { margin: 0 0 0 .2rem; padding: 0 0 0 .4rem; border-top: 0 !important; border-left: 1px solid var(--ch-line) !important; }
	.ch-acct-user { box-shadow: none; }
}
@media (max-width: 600px) {
	.ch-acct-tiles { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
	.ch-acct-tile { min-height: 5rem; padding: .9rem 1rem; }
	.ch-acct-tile__icon { width: 3rem; height: 3rem; border-radius: 14px; }
	.ch-acct-card { padding: 1rem; }
	.ch-acct-orders a { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "no total" "date date" "status status"; }
	.ch-acct-orders .ch-status { justify-self: start; margin-top: .35rem; }
	body.carehome .woocommerce-Addresses { grid-template-columns: minmax(0, 1fr); }
	body.carehome .woocommerce-MyAccount-content .form-row-first, body.carehome .woocommerce-MyAccount-content .form-row-last { float: none !important; width: auto !important; }
	body.carehome .woocommerce-EditAccountForm, body.carehome .woocommerce-MyAccount-content > form { padding: 1.1rem; }
	body.carehome .woocommerce-MyAccount-content form .button { width: 100%; }
}
/* Bỏ khoảng trống lớn dưới tiêu đề trang (Storefront) */
body.carehome.page .hentry .entry-header { padding-bottom: 0; margin-bottom: 0; border: 0; }
body.carehome.page .hentry { margin-bottom: 2rem; padding-bottom: 0; border: 0; }
body.carehome.page .hentry .entry-header .entry-title { margin: .25rem 0 1.5rem; }
/* Menu danh mục: giữ 1 hàng ở màn 1281–1440px */
@media (max-width: 1440px) and (min-width: 1281px) {
	.ch-nav__list { flex-wrap: nowrap; }
	.ch-nav__list a { padding: 0 .55rem; font-size: .95rem; }
}
.ch-acct-help .ch-btn { text-decoration: none !important; }
body.carehome .woocommerce-info .button { order: 2; min-height: 2.75rem; padding: .45rem 1.1rem; font-size: .98rem; }
/* Bảng đơn: cột số đơn + trạng thái */
body.carehome .woocommerce-orders-table tbody th { background: transparent !important; border-top: 1px solid var(--ch-line); padding: .9rem 1rem; font-weight: 700; text-align: left; }
body.carehome .woocommerce-orders-table__cell-order-number a { font-weight: 700; text-decoration: none; font-size: 1.05rem; }
body.carehome .woocommerce-orders-table__cell-order-number a:hover { text-decoration: underline; }
body.carehome .woocommerce-orders-table__cell-order-status { white-space: nowrap; }
body.carehome .woocommerce-orders-table td.woocommerce-orders-table__cell-order-status {
	padding-left: 2.1rem !important;
	background: radial-gradient(circle, var(--dot) 48%, transparent 52%) no-repeat 1rem center / .75rem .75rem !important;
}
body.carehome .woocommerce-orders-table__row--status-processing, body.carehome .woocommerce-orders-table__row--status-on-hold { --dot: #e09b16; }
body.carehome .woocommerce-orders-table__row--status-completed { --dot: var(--ch-ok); }
body.carehome .woocommerce-orders-table__row--status-cancelled, body.carehome .woocommerce-orders-table__row--status-failed { --dot: var(--ch-sale); }
:where(.woocommerce-orders-table tbody tr) { --dot: var(--ch-line-strong); }
body.carehome .woocommerce-orders-table .button::after { display: none !important; }
body.carehome .woocommerce-orders-table tbody th, body.carehome .woocommerce-orders-table td { vertical-align: middle !important; font-size: 1rem; }
/* Chi tiết đơn hàng */
body.carehome .woocommerce-MyAccount-content table.shop_table tfoot th,
body.carehome .woocommerce-MyAccount-content table.shop_table tfoot td { background: transparent !important; border-top: 1px solid var(--ch-line); padding: .8rem 1rem; vertical-align: middle; font-weight: 700; }
body.carehome .woocommerce-MyAccount-content table.shop_table tfoot tr:last-child th,
body.carehome .woocommerce-MyAccount-content table.shop_table tfoot tr:last-child td { background: var(--ch-sunken) !important; font-size: 1.1rem; }
body.carehome .woocommerce-MyAccount-content table.shop_table .product-total,
body.carehome .woocommerce-MyAccount-content table.shop_table tfoot td,
body.carehome .woocommerce-table--order-details thead th:last-child { text-align: right; }
body.carehome .woocommerce-table--order-details .product-name a { font-weight: 700; text-decoration: none; }
body.carehome .woocommerce-table--order-details .product-name a:hover { text-decoration: underline; }
body.carehome .woocommerce-MyAccount-content > p:first-of-type mark { background: transparent; color: var(--ch-ink); font-weight: 700; }
body.carehome .woocommerce-MyAccount-content > p mark.order-status { display: inline-flex; padding: .15rem .7rem; border-radius: 999px; background: #fff4dc; color: #7a4b00; }
body.carehome .woocommerce-order-details, body.carehome .woocommerce-customer-details { margin-top: 1.75rem; }
body.carehome .woocommerce-customer-details .woocommerce-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
body.carehome .woocommerce-customer-details .woocommerce-columns::before, body.carehome .woocommerce-customer-details .woocommerce-columns::after { content: none; display: none; }
body.carehome .woocommerce-customer-details .woocommerce-column { float: none !important; width: auto !important; margin: 0 !important; background: var(--ch-surface); border: 1px solid var(--ch-line); border-radius: var(--ch-radius-lg); padding: 1.25rem 1.4rem; box-shadow: var(--ch-shadow); }
body.carehome .woocommerce-customer-details address { border: 0; padding: 0; font-style: normal; line-height: 1.6; color: var(--ch-ink-2); }
body.carehome .woocommerce-customer-details .woocommerce-column__title { font-size: 1.25rem; margin: 0 0 .5rem; }
body.carehome .woocommerce-customer-details--phone, body.carehome .woocommerce-customer-details--email { margin: .35rem 0 0; }
body.carehome .woocommerce-customer-details--phone::before, body.carehome .woocommerce-customer-details--email::before { display: none !important; }
@media (max-width: 600px) { body.carehome .woocommerce-customer-details .woocommerce-columns { grid-template-columns: minmax(0, 1fr); } }
body.carehome .woocommerce-customer-details:not(:has(.woocommerce-columns)) { background: var(--ch-surface); border: 1px solid var(--ch-line); border-radius: var(--ch-radius-lg); padding: 1.25rem 1.4rem; box-shadow: var(--ch-shadow); }
body.carehome .woocommerce-customer-details h2 { font-size: 1.25rem; margin: 0 0 .5rem; }
body.carehome .woocommerce-Address-title a.edit { text-indent: 0 !important; width: auto !important; height: auto !important; overflow: visible; gap: .4rem; font-size: 1rem; }
body.carehome .woocommerce-Address-title a.edit::before, body.carehome .woocommerce-Address-title a.edit::after { content: none !important; display: none !important; }
/* Ô chọn Country/State (selectWoo) cùng cỡ với ô nhập */
body.carehome .select2-container { width: 100% !important; }
body.carehome .select2-container .select2-selection--single { height: 3.25rem; border: 2px solid var(--ch-line-strong); border-radius: 12px; background: #fff; display: flex; align-items: center; }
body.carehome .select2-container .select2-selection--single .select2-selection__rendered { line-height: 1.3; padding: 0 3rem 0 .9rem; font-size: 1rem; color: var(--ch-ink); }
body.carehome .select2-container .select2-selection--single .select2-selection__arrow { height: 100%; width: 2.75rem; right: .25rem; }
body.carehome .select2-container .select2-selection--single .select2-selection__arrow b { border-width: 7px 6px 0; border-top-color: var(--ch-ink-2); margin-left: -6px; margin-top: -3px; }
body.carehome .select2-container--focus .select2-selection--single, body.carehome .select2-container--open .select2-selection--single { border-color: var(--ch-brand); box-shadow: var(--ch-focus); }
body.carehome .select2-dropdown { border: 2px solid var(--ch-brand); border-radius: 12px; overflow: hidden; font-size: 1rem; }
body.carehome .select2-results__option { padding: .7rem .9rem; }
body.carehome .select2-container--default .select2-results__option--highlighted[aria-selected], body.carehome .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--ch-brand); }
body.carehome .select2-search--dropdown .select2-search__field { min-height: 2.75rem; border: 2px solid var(--ch-line-strong); border-radius: 10px; padding: .4rem .7rem; }
/* Điện thoại: menu tài khoản dạng lưới 2 cột, thấy hết mục, không cuộn ngang */
@media (max-width: 900px) {
	body.carehome .ch-acct-nav { overflow: visible; padding: .5rem; }
	body.carehome .ch-acct-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; }
	body.carehome .ch-acct-nav ul li a { white-space: normal; padding: .55rem .75rem !important; min-height: 3rem; font-size: .98rem; line-height: 1.2; }
	body.carehome .ch-acct-nav ul li.woocommerce-MyAccount-navigation-link--customer-logout { margin: 0; padding: 0; border: 0 !important; }
	body.carehome .ch-acct-nav ul li.woocommerce-MyAccount-navigation-link--customer-logout a { background: var(--ch-sunken); }
	.ch-acct-user { padding: .8rem 1rem; border-radius: var(--ch-radius); }
	.ch-acct-user__av { width: 2.75rem; height: 2.75rem; font-size: 1rem; }
	.ch-acct-side { gap: .6rem; }
}
/* Điện thoại: mỗi đơn hàng là 1 thẻ riêng */
@media (max-width: 767px) {
	body.carehome .woocommerce-MyAccount-content table.woocommerce-orders-table { background: transparent; border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
	body.carehome .woocommerce-orders-table thead { display: none; }
	body.carehome .woocommerce-orders-table tbody tr { display: block; background: var(--ch-surface); border: 1px solid var(--ch-line); border-radius: var(--ch-radius-lg); box-shadow: var(--ch-shadow); margin-bottom: 1rem; overflow: hidden; }
	body.carehome .woocommerce-orders-table tbody th.woocommerce-orders-table__cell-order-number { display: block !important; background: var(--ch-sunken) !important; border-top: 0; padding: .8rem 1rem; text-align: left !important; }
	body.carehome .woocommerce-orders-table tbody th.woocommerce-orders-table__cell-order-number::before { content: "Order " !important; display: inline !important; font-weight: 700; float: none !important; }
	body.carehome .woocommerce-orders-table tbody th.woocommerce-orders-table__cell-order-number a { font-size: 1.1rem; }
	body.carehome .woocommerce-orders-table tbody td { display: block !important; text-align: right !important; padding: .75rem 1rem; }
	body.carehome .woocommerce-orders-table tbody td::before { float: left !important; font-weight: 700; }
	body.carehome .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions { display: flex !important; }
	body.carehome .woocommerce-orders-table tbody tr td:first-of-type { border-top: 0; }
	body.carehome .woocommerce-orders-table td.woocommerce-orders-table__cell-order-status { background-position: right 1rem center !important; padding-left: 1rem !important; padding-right: 2.1rem !important; }
	body.carehome .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions::before { display: none !important; }
	body.carehome .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions .button { flex: 1; margin: 0; }
}
body.carehome.woocommerce-account:not(.logged-in) .entry-content > .woocommerce > form.woocommerce-form-login { max-width: 34rem; }

/* =====================================================================
   21. CHECKOUT / CART – cột tóm tắt đơn bên phải
   ===================================================================== */
@media (min-width: 901px) {
	body.carehome .wc-block-components-sidebar-layout { flex-wrap: nowrap; gap: 2.5rem; }
	body.carehome .wc-block-components-sidebar-layout .wc-block-components-main { width: auto !important; flex: 1 1 auto; min-width: 0; padding-right: 0 !important; }
	body.carehome .wc-block-components-sidebar-layout .wc-block-components-sidebar { width: 27rem !important; flex: 0 0 27rem; max-width: 40%; }
}
/* Bỏ khung lồng bên trong (đã có khung ngoài) */
body.carehome .wp-block-woocommerce-checkout-order-summary-block { border: 0 !important; border-radius: 0; }
body.carehome .wc-block-components-checkout-order-summary__title { padding: 0 0 .75rem !important; border-bottom: 1px solid var(--ch-line); margin: 0 0 .25rem; }
body.carehome .wc-block-components-checkout-order-summary__title-text { font-family: var(--ch-serif); font-weight: 700; font-size: 1.35rem !important; }
body.carehome .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-wrapper,
body.carehome .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary,
body.carehome .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-panel { padding-left: 0 !important; padding-right: 0 !important; }

/* Mỗi sản phẩm: ảnh | tên + size + giá (giá nằm dưới, không chiếm cột riêng) */
body.carehome .wc-block-components-order-summary-item {
	display: grid !important; grid-template-columns: 4rem minmax(0, 1fr); column-gap: 1rem; align-items: start; padding: 1rem 0 !important;
}
body.carehome .wc-block-components-order-summary-item + .wc-block-components-order-summary-item { border-top: 1px solid var(--ch-line); }
body.carehome .wc-block-components-order-summary-item__image { width: 4rem !important; grid-row: 1 / 3; padding: 0 !important; }
body.carehome .wc-block-components-order-summary-item__image img { width: 4rem !important; height: 4rem !important; object-fit: contain; background: #fff; border: 1px solid var(--ch-line); border-radius: 10px; padding: 2px; }
body.carehome .wc-block-components-order-summary-item__quantity { min-width: 1.6rem; height: 1.6rem; font-size: .9rem !important; background: var(--ch-brand) !important; color: #fff !important; border: 2px solid #fff !important; box-shadow: none !important; }
body.carehome .wc-block-components-order-summary-item__description { grid-column: 2; padding: 0 !important; min-width: 0; }
body.carehome .wc-block-components-order-summary-item__description .wc-block-components-product-name { font-weight: 700; font-size: 1rem !important; line-height: 1.35; word-break: normal; overflow-wrap: break-word; hyphens: none; display: block; margin-bottom: .25rem; }
body.carehome .wc-block-components-order-summary-item__individual-prices { display: none !important; }
body.carehome .wc-block-components-order-summary-item .wc-block-components-product-metadata { font-size: .95rem !important; color: var(--ch-ink-2); margin: .15rem 0 0; }
body.carehome .wc-block-components-order-summary-item .wc-block-components-product-details { margin: 0 !important; padding: 0; list-style: none; }
body.carehome .wc-block-components-order-summary-item .wc-block-components-product-details li { display: inline; margin: 0 !important; }
body.carehome .wc-block-components-order-summary-item .wc-block-components-product-details li + li::before { content: " · "; }
body.carehome .wc-block-components-order-summary-item .wc-block-components-product-details__name { font-weight: 400; }
body.carehome .wc-block-components-order-summary-item__total-price {
	grid-column: 2; display: flex !important; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; margin-top: .5rem; padding: 0 !important; text-align: left !important;
	font-weight: 700; font-size: 1.05rem !important; width: auto !important;
}
body.carehome .wc-block-components-order-summary-item__total-price .wc-block-components-product-price { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; }
body.carehome .wc-block-components-order-summary-item__total-price .wc-block-components-sale-badge { margin: 0 !important; font-size: .85rem !important; }
body.carehome .wc-block-components-order-summary-item .wc-block-components-product-metadata__description { display: none !important; }
body.carehome .wc-block-components-order-summary-item__total-price { justify-content: flex-start !important; }
body.carehome .wc-block-components-order-summary-item__total-price .wc-block-components-product-price { flex-direction: row !important; justify-content: flex-start; }
body.carehome .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-item,
body.carehome .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-panel__button { padding-left: 0 !important; padding-right: 0 !important; }
/* Ảnh đủ to, chấm số lượng gọn ở góc ảnh */
body.carehome .wc-block-components-order-summary-item__image > img { max-width: none !important; width: 4rem !important; height: 4rem !important; }
body.carehome .wc-block-components-order-summary-item__quantity { top: -.55rem !important; right: -.55rem !important; left: auto !important; transform: none !important; }
/* Bỏ mô tả dài dưới tên sản phẩm */
body.carehome .wc-block-components-order-summary-item .wc-block-components-product-metadata__description { display: none !important; }
/* Giá + nhãn "Save" trên cùng 1 hàng, căn trái */
body.carehome .wc-block-components-order-summary-item .wc-block-cart-item__total-price-and-sale-badge-wrapper {
	display: flex !important; flex-direction: row !important; flex-wrap: wrap; align-items: center !important; justify-content: flex-start !important; gap: .35rem .6rem; width: auto;
}
body.carehome .wc-block-components-order-summary-item .wc-block-cart-item__total-price-and-sale-badge-wrapper .wc-block-components-product-price { order: 1; font-size: 1.1rem !important; }
body.carehome .wc-block-components-order-summary-item .wc-block-cart-item__total-price-and-sale-badge-wrapper .wc-block-components-sale-badge { order: 2; }
body.carehome .wc-block-components-order-summary-item__total-price { justify-self: start !important; margin-left: 0 !important; }
body.carehome .wc-block-components-checkout-order-summary__title,
body.carehome .wc-block-components-checkout-order-summary__title-text { padding-left: 0 !important; margin-left: 0 !important; }
body.carehome .wc-block-cart-item__product .wc-block-components-product-metadata__description { display: none !important; }

/* =====================================================================
   22. TRANG CHÍNH SÁCH (Shipping / Returns / Privacy / Contact)
   ===================================================================== */
body.ch-policy-page .entry-content { max-width: 48rem; font-size: 1.05rem; line-height: 1.7; }
body.ch-policy-page .entry-content h2 { font-size: 1.45rem; margin: 2.25rem 0 .6rem; }
body.ch-policy-page .entry-content p { margin: 0 0 1rem; }
body.ch-policy-page .entry-content ul, body.ch-policy-page .entry-content ol { margin: 0 0 1.25rem 1.4rem; padding: 0; }
body.ch-policy-page .entry-content li { margin: 0 0 .45rem; padding-left: .2rem; }
body.ch-policy-page .entry-content a { font-weight: 700; }
.ch-policy-updated { color: var(--ch-ink-2); font-size: .95rem; margin-top: -.75rem !important; }
.ch-policy-lead { font-size: 1.15rem; color: var(--ch-ink); }
.ch-policy-summary { background: var(--ch-green-soft); border-left: 6px solid var(--ch-green); border-radius: var(--ch-radius); padding: 1.1rem 1.4rem .4rem; margin: 1.25rem 0 1.5rem; }
.ch-policy-summary ul { list-style: none; margin: 0 !important; }
.ch-policy-summary li { position: relative; padding-left: 2rem !important; }
.ch-policy-summary li::before { content: "✓"; position: absolute; left: 0; top: .05rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--ch-green); color: #fff; font-size: .85rem; font-weight: 700; display: grid; place-items: center; }
body.ch-policy-page .entry-content table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--ch-line); border-radius: var(--ch-radius); overflow: hidden; margin: .5rem 0 1rem; background: #fff; }
body.ch-policy-page .entry-content th, body.ch-policy-page .entry-content td { padding: .8rem 1rem; text-align: left; border-top: 1px solid var(--ch-line); background: transparent; }
body.ch-policy-page .entry-content thead th { background: var(--ch-sunken); border-top: 0; }
.ch-contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0 .5rem; }
.ch-contact-card { background: #fff; border: 1px solid var(--ch-line); border-radius: var(--ch-radius-lg); padding: 1.25rem 1.4rem .4rem; box-shadow: var(--ch-shadow); }
body.ch-policy-page .ch-contact-card h2 { margin: 0 0 .25rem; font-size: 1.2rem; }
.ch-contact-big { font-size: 1.3rem; font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 600px) {
	.ch-contact-cards { grid-template-columns: minmax(0, 1fr); }
	body.ch-policy-page .entry-content h2 { font-size: 1.3rem; }
}
/* Link pháp lý ở chân trang */
.ch-footer__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; }
.ch-footer__legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.ch-footer__legal a { display: inline-flex; align-items: center; min-height: 2.75rem; color: inherit !important; font-size: .95rem; }
.ch-contact-cards--one { grid-template-columns: minmax(0, 1fr); max-width: 34rem; }
.ch-hero__badge span { overflow-wrap: anywhere; }
.ch-footer__phone { max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 600px) { .ch-footer__phone { font-size: 1.1rem; } }
