/*
Theme Name: Selu Child – Khăn lạnh Omi
Theme URI: https://selutheme.com
Author: selutheme.com
Author URI: https://selutheme.com
Description: Child theme for Selu. Put your own CSS, code and template changes here so they are kept when Selu updates.
Template: selu
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cs-theme-wat-child
*/

/*
 * CSS riêng của bạn viết bên dưới. File này nạp SAU CSS của theme mẹ nên ghi đè được.
 * Có thể dùng biến màu / chữ của theme, ví dụ:
 *   color: var(--csw-text);          màu chữ
 *   background: var(--csw-bg);       màu nền
 *   background: var(--csw-btn-bg);   màu nút
 *   font-family: var(--csw-font-heading);
 *
 * Sửa xong mà trình duyệt vẫn hiện bản cũ: tăng CS_THEME_WAT_CHILD_REV trong functions.php,
 * hoặc bấm "Làm mới cache CSS/JS" ở Selu > Công cụ.
 */

/* ==========================================================================
   Khăn lạnh Omi — màu thương hiệu: cam #f07a12, đỏ đô #6a1010
   ========================================================================== */

/* Chữ nhỏ trên tiêu đề khối: màu cam thương hiệu. */
.cs-theme-wat-cb--caption, .cs-theme-wat-section-header .cs-theme-wat-caption { color: #f07a12; letter-spacing: .14em; font-weight: 600; }
.cs-wat-kl-hero .cs-theme-wat-cb--caption { color: #f7a35a; }

/* Phần đầu trang: 2 nút nằm cạnh nhau, ảnh có bóng đổ. */
.cs-wat-kl-hero .cs-theme-wat-col:first-child { flex-flow: row wrap; align-items: center; column-gap: 12px; }
.cs-wat-kl-hero .cs-theme-wat-col:first-child > * { flex: 0 0 100%; }
.cs-wat-kl-hero .cs-theme-wat-col:first-child > .cs-wat-kl-btn-inline { flex: 0 0 auto; }
.cs-wat-kl-hero-img img { box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
@media (max-width: 749px) {
	.cs-wat-kl-hero .cs-theme-wat-col:first-child > .cs-wat-kl-btn-inline { flex: 1 1 100%; }
	.cs-wat-kl-hero .cs-wat-kl-btn-inline .cs-theme-wat-btn { width: 100%; }
}

/* Dải kêu gọi màu cam trước footer: nút viền trắng. */
.cs-wat-kl-cta .cs-theme-wat-btn--secondary { border-color: #fff; color: #fff; }

/* Trang sản phẩm: nút "Liên hệ qua Zalo" rộng hết khung mua. */
.cs-theme-wat-product__contact .cs-wat-kl-zalo { display: flex; width: 100%; gap: 8px; }
.cs-theme-wat-product__contact .cs-wat-kl-zalo svg { width: 22px; height: 22px; }

/* "Vì sao chọn Omi": các ô cao bằng nhau; hover chỉ đổi màu viền, không nhấc lên. */
.cs-wat-kl-why .cs-theme-wat-col > .cs-theme-wat-cb--icon_box { flex: 1 1 auto; }
.cs-wat-kl-why .cs-theme-wat-ibox { transition: border-color .2s ease; }
.cs-wat-kl-why .cs-theme-wat-ibox:hover { border-color: #f07a12; }

/* Footer: bỏ đường kẻ ngang phía trên hàng mạng xã hội. */
.cs-theme-wat-footer__middle { border-top: 0; }

/* Header: ô tìm kiếm ở giữa giãn rộng (cột giữa lấy hết chỗ trống), tối đa 560px. */
@media (min-width: 990px) {
	.cs-wat-kl-header .cs-theme-wat-hb__row:has(.cs-theme-wat-hb__search) { grid-template-columns: max-content minmax(0, 1fr) max-content; column-gap: 2.5rem; }
	.cs-wat-kl-header .cs-theme-wat-hb__area--center .cs-theme-wat-hb__search { width: 100%; max-width: 560px; }
}

/* Header máy tính: hàng trên trắng (logo – tìm kiếm – hotline – nút), hàng menu là thanh đỏ đô chạy hết bề ngang. */
.cs-wat-kl-header .cs-theme-wat-hb__search { border: 1.5px solid #f07a12; border-radius: 8px; background: #fff; overflow: hidden; }
.cs-wat-kl-header .cs-theme-wat-hb__search:focus-within { border-color: #f07a12; }
.cs-wat-kl-header .cs-theme-wat-hb__search input[type="search"] { background: transparent; }
.cs-theme-wat .cs-wat-kl-header .cs-theme-wat-hb__search button { width: 54px; border-left: 0; background: #f07a12; color: #fff; transition: background-color .2s ease; }
.cs-theme-wat .cs-wat-kl-header .cs-theme-wat-hb__search button:hover { background: #d96a08; }
.cs-wat-kl-header .cs-theme-wat-hb__hotline svg { color: #f07a12; }
@media (min-width: 990px) {
	.cs-wat-kl-header { --csw-pb: 0px; overflow-x: clip; }
	.cs-wat-kl-header .cs-theme-wat-hb__row--main { padding-top: 4px; padding-bottom: 14px; }
	.cs-wat-kl-header .cs-theme-wat-hb__row--bottom { position: relative; padding-top: 0; }
	.cs-wat-kl-header .cs-theme-wat-hb__row--bottom::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: #6a1010; }
	.cs-wat-kl-header .cs-theme-wat-hb__row--bottom > * { position: relative; }
	.cs-wat-kl-header .cs-theme-wat-hb__row--bottom .cs-theme-wat-menu > li > a { display: inline-flex; align-items: center; padding: 13px 18px; color: #fff; font-weight: 600; text-decoration: none; border: 0; transition: color .2s ease; }
	.cs-wat-kl-header .cs-theme-wat-hb__row--bottom .cs-theme-wat-menu > li:first-child > a { padding-left: 14.4px; }
	.cs-wat-kl-header .cs-theme-wat-hb__row--bottom .cs-theme-wat-menu > li > a:hover,
	.cs-wat-kl-header .cs-theme-wat-hb__row--bottom .cs-theme-wat-menu > li.current-menu-item > a,
	.cs-wat-kl-header .cs-theme-wat-hb__row--bottom .cs-theme-wat-menu > li.current-menu-ancestor > a { color: #ffb066; text-decoration: none; }
	.cs-wat-kl-header .cs-theme-wat-hb__row--bottom .cs-theme-wat-menu > li > a::after { border-color: currentColor; }
}
@media (min-width: 990px) {
	/* Thanh menu sát phần dưới: bỏ đệm dưới + viền dưới của khối header; chữ menu thẳng hàng với logo. */
	.cs-theme-wat-section.cs-wat-kl-header { padding-bottom: 0; border-bottom: 0; }
	.cs-wat-kl-header .cs-theme-wat-hb__row--bottom .cs-theme-wat-menu { margin-left: 0; }
}

/* Chữ & nút kiểu doanh nghiệp truyền thống: tiêu đề đậm gọn, không giãn chữ; nút gọn. */
.cs-theme-wat h1, .cs-theme-wat h2, .cs-theme-wat h3, .cs-theme-wat-heading, .cs-theme-wat-section-header__title { font-weight: 700; letter-spacing: -.01em; }
.cs-theme-wat-btn { letter-spacing: 0; font-weight: 600; }
.cs-theme-wat-hb__hotline b { letter-spacing: 0; }
/* Số thứ tự trong "Quy trình đặt in". */
.cs-wat-kl-num { display: block; margin-bottom: 6px; color: #f07a12; font-size: 2rem; font-weight: 700; line-height: 1; }

/* "Quy trình đặt in": thẻ nền trắng trên nền kem, cao bằng nhau; hover chỉ đổi màu viền. */
.cs-wat-kl-steps .cs-theme-wat-col > .cs-theme-wat-cb--icon_box { flex: 1 1 auto; }
.cs-wat-kl-steps .cs-theme-wat-ibox { background: #fff; transition: border-color .2s ease; }
.cs-wat-kl-steps .cs-theme-wat-ibox:hover { border-color: #f07a12; }

/* Thẻ bài viết (trang Tin tức, khối tin ở trang chủ): tiêu đề tối đa 2 dòng, mô tả tối đa 3 dòng "…",
   các thẻ cao bằng nhau, "Đọc tiếp" nằm sát đáy. */
.cs-theme-wat-post-card { display: flex; flex-direction: column; height: 100%; }
.cs-theme-wat-post-card__body { display: flex; flex-direction: column; flex: 1 1 auto; }
.cs-theme-wat-post-card__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cs-theme-wat-post-card__excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cs-theme-wat-post-card__excerpt p { display: inline; margin: 0; }
.cs-theme-wat-post-card__excerpt br { display: none; }
.cs-theme-wat-post-card__body > .cs-theme-wat-link { margin-top: auto; padding-top: 12px; align-self: flex-start; }

/* ---------- Footer ---------- */
.cs-theme-wat-footer a { text-decoration: none; border-bottom: 0; background-image: none; transition: color .2s ease; }
.cs-theme-wat-footer a:hover { color: #f7a35a; }
.cs-theme-wat-footer__heading { margin-bottom: 14px; font-size: 1.05rem; font-weight: 700; color: #fff; }
.cs-theme-wat-footer__menu li { margin: 0 0 9px; }
.cs-theme-wat-footer__menu a { color: rgba(255, 255, 255, .72); }
.cs-theme-wat-footer__menu a:hover { color: #f7a35a; }
/* Thông tin công ty: mỗi dòng có icon nhỏ màu cam, nhãn mờ, nội dung trắng. */
.cs-wat-kl-info { margin: 0; padding: 0; list-style: none; }
.cs-wat-kl-info li { position: relative; margin: 0 0 12px; padding-left: 28px; line-height: 1.5; color: #fff; }
.cs-wat-kl-info li span { display: block; font-size: .82rem; color: rgba(255, 255, 255, .55); }
.cs-wat-kl-info li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; background: #f07a12; -webkit-mask: var(--kl-ico) center / contain no-repeat; mask: var(--kl-ico) center / contain no-repeat; }
.cs-wat-kl-info .is-map { --kl-ico: 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'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
.cs-wat-kl-info .is-phone { --kl-ico: 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'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E"); }
.cs-wat-kl-info .is-mail { --kl-ico: 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'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.cs-wat-kl-info a { color: #fff; }
.cs-theme-wat-footer .cs-wat-kl-info { margin-left: 0; padding-left: 0; }
.cs-theme-wat-footer .cs-wat-kl-info li { list-style: none; }

/* ---------- Trang Liên hệ ---------- */
.cs-wat-kl-info--light li { margin: 0; padding: 14px 0 14px 32px; border-bottom: 1px solid #ece4dc; color: #2a1a14; font-weight: 500; }
.cs-wat-kl-info--light li:first-child { border-top: 1px solid #ece4dc; }
.cs-wat-kl-info--light li span { color: #8a7a70; font-weight: 400; }
.cs-wat-kl-info--light li::before { top: 17px; }
.cs-wat-kl-info--light a { color: #2a1a14; text-decoration: none; transition: color .2s ease; }
.cs-wat-kl-info--light a:hover { color: #f07a12; }
.cs-theme-wat .cs-wat-kl-info--light { margin-left: 0; padding-left: 0; }
.cs-wat-kl-contact .cs-theme-wat-col:first-child { flex-flow: row wrap; align-content: flex-start; column-gap: 12px; }
.cs-wat-kl-contact .cs-theme-wat-col:first-child > * { flex: 0 0 100%; }
.cs-wat-kl-contact .cs-theme-wat-col:first-child > .cs-wat-kl-btn-inline { flex: 0 0 auto; margin-top: 8px; }
.cs-wat-kl-map iframe, .cs-wat-kl-map { border-radius: 8px; overflow: hidden; }

/* Rê chuột vào thẻ sản phẩm / bài viết: tên đổi màu cam, không gạch chân. */
.cs-theme-wat-card__title a, .cs-theme-wat-post-card__title a { transition: color .2s ease; }
.cs-theme-wat-card:hover .cs-theme-wat-card__title a, .cs-theme-wat-post-card__title a:hover { text-decoration: none; color: #f07a12; }
