/*
Theme Name: Selu Child
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" ở WAT Theme > Công cụ.
 */

/* =========================================================================
 * cuahangxelan.com — giữ giao diện giống bản Flatsome cũ
 * ====================================================================== */

/* Header: menu chữ nhỏ, đậm, xuống 2 dòng như bản cũ; logo không bị đè */
.chxl-header .cs-theme-wat-hb__area--left { flex: none; }
.chxl-header .cs-theme-wat-header__logo { flex: none; margin: 0; }
.chxl-header .cs-theme-wat-hb__area--center { flex: 1 1 auto; justify-content: flex-start; }
.chxl-header .cs-theme-wat-header__nav .cs-theme-wat-menu { justify-content: flex-start; margin-left: 0; row-gap: 0; }
.chxl-header .cs-theme-wat-menu > li > a { font-size: 13px; font-weight: 700; padding: .45rem .55rem; color: #fff; letter-spacing: 0; }
.chxl-header .cs-theme-wat-menu > li > a:hover,
.chxl-header .cs-theme-wat-menu > li.current-menu-item > a { color: #fff; opacity: .8; }
.chxl-header .cs-theme-wat-hb__area--right { flex: none; }
.chxl-header .cs-theme-wat-menu .sub-menu a { font-size: 14px; }

/* Tiêu đề khối sản phẩm trang chủ: gạch đỏ bên trái + đường kẻ dưới */
.chxl-cat-block .cs-theme-wat-section-header { border-bottom: 1px solid #ececec; padding-bottom: .5rem; margin-bottom: 1.25rem; text-align: left; }
.chxl-cat-block .cs-theme-wat-heading { font-size: 15px; font-weight: 700; text-transform: uppercase; border-left: 3px solid #e8505b; padding-left: .6rem; line-height: 1.2; margin: 0; color: #002947; }
.chxl-cat-block .cs-theme-wat-header-link { font-size: 12px; font-weight: 700; color: #002947; }

/* Thẻ sản phẩm */
.cs-theme-wat-card__title { font-size: 14px; font-weight: 400; }
.cs-theme-wat-card__price { font-weight: 700; color: #111; }
.cs-theme-wat-card__price del { color: #e8505b; font-weight: 400; opacity: .7; }
.cs-theme-wat-badge--sale { border-radius: 50%; min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }

/* Banner đầu trang: theo đúng tỉ lệ ảnh 1920x611, không cắt */
.chxl-hero .cs-theme-wat-slideshow__slide,
.chxl-hero .cs-theme-wat-slideshow--small { min-height: 0; }
.chxl-hero .cs-theme-wat-slideshow__slide { aspect-ratio: 1920 / 611; }

/* Ảnh 3 hạng mục: hover nhẹ */
.chxl-hover img { transition: transform .3s; }
.chxl-hover:hover img { transform: translateY(-4px); }

/* Khách hàng nói gì */
.chxl-reviews { --csw-page-width: 900px; }
.chxl-reviews .cs-theme-wat-testimonial__quote,
.chxl-reviews .cs-theme-wat-testimonial blockquote,
.chxl-reviews .cs-theme-wat-testimonial blockquote p { font-size: 16px; font-weight: 400; line-height: 1.6; }

/* Bạn cần hỗ trợ */
.chxl-support .cs-theme-wat-heading { color: #273986; }
.chxl-support .cs-theme-wat-icon-box h3,
.chxl-support [class*="icon-box__title"] { color: #273986; font-size: 17px; }

/* Footer: tiêu đề có gạch trắng bên dưới như bản cũ */
.chxl-footer h2, .chxl-footer h3, .chxl-footer [class*="footer__heading"] { color: #fff; font-size: 17px; font-weight: 700; text-transform: uppercase; }
.chxl-footer [class*="footer__heading"]::after { content: ""; display: block; width: 50px; height: 2px; background: #fff; margin-top: .6rem; }
.chxl-footer a { color: #fff; }

/* Trang sản phẩm: khung chính sách + nút gọi */
.chxl-policy { margin-top: 1.25rem; border: 1px solid #e5e7eb; border-radius: 8px; padding: 1rem 1.15rem; background: #fafbfc; }
.chxl-policy h3 { font-size: 16px; margin: 0 0 .5rem; color: #002947; text-transform: uppercase; }
.chxl-policy ul { margin: 0 0 .75rem 1.1rem; padding: 0; font-size: 14px; line-height: 1.6; }
.chxl-policy .chxl-hotline { color: #d83131; font-weight: 700; font-size: 1.15em; }
.chxl-policy__btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.chxl-policy__btns a { flex: 1 1 140px; text-align: center; border-radius: 99px; padding: .6rem 1rem; font-weight: 700; font-size: 14px; color: #fff; background: #002947; text-decoration: none; }
.chxl-call { display: block; margin-top: .75rem; text-align: center; padding: .85rem 1rem; border-radius: 6px; font-weight: 700; color: #fff !important; text-decoration: none; background: linear-gradient(90deg, #ff9a1f, #f26a1b); text-transform: uppercase; }

/* Shortcode Flatsome cũ trong bài viết */
.chxl-block { margin: 1.5rem 0; }
.chxl-grid { margin: 1rem 0; }
.chxl-btn { margin: .25rem .35rem .25rem 0; }
.chxl-fbox { display: flex; gap: 1rem; align-items: flex-start; }
.chxl-fbox__img { flex: none; }
.chxl-divider { width: 60px; border: 0; border-top: 2px solid currentColor; margin: .5rem 0 1rem; }

/* Ảnh có chú thích ([caption width="1920"]) không được tràn khung */
.wp-caption { max-width: 100% !important; }
.wp-caption img, .cs-theme-wat-rte img { max-width: 100%; height: auto; }
.wp-caption-text { font-size: 13px; font-style: italic; text-align: center; background: #f3f3f3; padding: .4rem .6rem; margin: 0; }
.cs-theme-wat-rte ul.chxl-grid { padding: 0; margin: 1rem 0; list-style: none; }
.cs-theme-wat-rte ul.chxl-grid > li { margin: 0; padding: 0; }
.cs-theme-wat-rte ul.chxl-grid > li::before { display: none; }
.cs-theme-wat-rte .chxl-grid .cs-theme-wat-card__title { font-size: 14px; line-height: 1.4; margin: .5rem 0 .25rem; }
.cs-theme-wat-rte .chxl-grid .cs-theme-wat-card__title a { text-decoration: none; }
.cs-theme-wat-rte .chxl-grid .cs-theme-wat-card__price { font-size: 14px; }
