/*
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" ở Selu > Công cụ.
 */


/* ===== giuongytedanang.vn ===== */
:root { --gyt-blue: #1387d2; --gyt-navy: #273986; --gyt-yellow: #fc0; --gyt-orange: #f7712e; }

/* Shortcode cũ của Flatsome trong bài viết */
.gyt-block { margin: 1.5em 0; }
.gyt-block > p:empty { display: none; }
.gyt-grid { margin: 1.25em 0; }
.gyt-grid--slide { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--csw-cols) - 1) * var(--csw-grid-gap, 16px)) / var(--csw-cols)); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 6px; scrollbar-width: thin; }
.gyt-grid--slide > li { scroll-snap-align: start; }
@media (max-width: 749px) { .gyt-grid--slide { grid-auto-columns: calc((100% - var(--csw-grid-gap, 12px)) / 2); } }
.gyt-btn { margin: .25em .4em .25em 0; }
.gyt-btn--call, .gyt-btn--zalo { min-width: 200px; }
.gyt-btn--pill { border-radius: 99px; }
.gyt-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #e5e5e5; margin: 1.5em 0 1em; }
.gyt-title__text { margin: 0; padding: 4px 0 6px 10px; border-left: 4px solid var(--gyt-yellow); font-size: 18px; text-transform: uppercase; }
.gyt-title__more { font-weight: 700; font-size: 14px; color: inherit; text-decoration: none; white-space: nowrap; }
.gyt-title__more::after { content: " \203A"; }
.gyt-divider { width: 70px; margin: .75em 0; border: 0; border-top: 3px solid currentColor; }
.gyt-video iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; }

/* [blog_posts] */
.gyt-posts { margin: 1.5em 0; }
.gyt-posts--grid { display: grid; grid-template-columns: repeat(var(--gyt-cols, 3), minmax(0, 1fr)); gap: 20px; }
.gyt-posts--slide { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - (var(--gyt-cols, 3) - 1) * 20px) / var(--gyt-cols, 3)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.gyt-posts--slide > .gyt-post { scroll-snap-align: start; }
.gyt-post__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #f3f3f3; }
.gyt-post__media img { width: 100%; height: 100%; object-fit: cover; margin: 0; }
.gyt-post__body { padding-top: 10px; text-align: center; }
.gyt-post__cat { margin: 0 0 4px; font-size: 11px; text-transform: uppercase; opacity: .7; }
.gyt-post__title { margin: 0; font-size: 15px; line-height: 1.35; }
.gyt-post__title a { color: inherit; text-decoration: none; }
.gyt-post__excerpt { margin: 6px 0 0; font-size: 13px; opacity: .8; }
.gyt-posts--list { display: grid; gap: 0; border: 1px solid #e0e0e0; border-top: 0; border-radius: 0 0 5px 5px; }
.gyt-posts--list .gyt-post { display: grid; grid-template-columns: 80px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-bottom: 1px dashed #e0e0e0; }
.gyt-posts--list .gyt-post__media { aspect-ratio: 1; border-radius: 4px; }
.gyt-posts--list .gyt-post__body { padding: 0; text-align: left; }
.gyt-posts--list .gyt-post__title { font-size: 14px; }
@media (max-width: 749px) {
	.gyt-posts--grid { grid-template-columns: minmax(0, 1fr); }
	.gyt-posts--slide { grid-template-columns: none; grid-auto-columns: 82%; }
}

/* Cột bên: sản phẩm */
.gyt-plist { list-style: none; margin: 0; padding: 0; }
.gyt-plist li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eee; align-items: start; margin: 0; }
.gyt-plist__img img { width: 56px; height: 56px; object-fit: contain; margin: 0; }
.gyt-plist__title { display: block; color: inherit; text-decoration: none; font-size: 14px; line-height: 1.35; }
.gyt-plist__price { display: block; margin-top: 4px; font-size: 14px; }
.gyt-plist__price del { opacity: .55; font-weight: 400; }

/* Trang sản phẩm: GỌI NGAY */
/* Cùng rộng / cao / bo góc với nút MUA NGAY ngay trên (cột thông tin là khung flex có khoảng cách 24px → kéo lên còn 10px). */
.gyt-call { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 46px; margin: -14px 0 0; padding: 0 16px; border-radius: var(--csw-btn-radius, 4px); background: linear-gradient(180deg, #f79429, var(--gyt-orange)); color: #fff !important; font-size: .95rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; box-sizing: border-box; }
.gyt-call:hover { filter: brightness(1.05); }

/* Header xanh: menu chữ in hoa đậm như Flatsome cũ */
.gyt-header .cs-theme-wat-menu > li > a { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0; }
.gyt-header .cs-theme-wat-menu > li { margin: 0; }
.gyt-header .cs-theme-wat-header__nav { margin-left: 12px; }

/* Tiêu đề khối trang chủ: vạch vàng bên trái + đường kẻ dưới */
.gyt-fc .cs-theme-wat-section-header, .gyt-cats .cs-theme-wat-section-header { align-items: center; border-bottom: 1px solid #e5e5e5; margin-bottom: 24px; padding-bottom: 0; }
.gyt-fc .cs-theme-wat-heading, .gyt-cats .cs-theme-wat-heading, .gyt-brands .cs-theme-wat-heading { position: relative; margin: 0; padding: 6px 0 8px 10px; border-left: 4px solid var(--gyt-yellow); font-size: 18px; font-weight: 700; text-transform: uppercase; }
.gyt-brands .cs-theme-wat-section-header { text-align: left; }
.gyt-fc .cs-theme-wat-header-link, .gyt-cats .cs-theme-wat-header-link { font-weight: 700; font-size: 14px; color: #111; }

/* Danh mục sản phẩm: ảnh vuông, tên in hoa căn giữa */
.gyt-cats .cs-theme-wat-collection-card { text-align: center; }
.gyt-cats .cs-theme-wat-collection-card__title { justify-content: center; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; line-height: 1.4; }
.gyt-cats .cs-theme-wat-collection-card__title svg, .gyt-cats .cs-theme-wat-collection-card__arrow { display: none; }

/* Tin tức + Danh bạ bác sĩ */
.gyt-news-title { color: var(--gyt-navy); border-bottom: 2px solid var(--gyt-navy); padding-bottom: 10px; margin-bottom: 14px; }
.gyt-pl .cs-theme-wat-pl__item { text-align: center; }
.gyt-pl .cs-theme-wat-pl__title { font-size: 15px; }
.gyt-pl .cs-theme-wat-pl__title a { color: #111; }
.gyt-pl .cs-theme-wat-pl__excerpt { font-size: 13px; text-transform: uppercase; opacity: .75; }
.gyt-pl + .gyt-pl { margin-top: 24px; }
.gyt-doctors-title { margin: 0; padding: 12px; background: var(--gyt-blue); color: #fff; text-align: center; border-radius: 5px 5px 0 0; font-size: 18px; }
.gyt-doctors { border: 1px solid #e0e0e0; border-top: 0; border-radius: 0 0 5px 5px; padding: 0 12px; }
.gyt-doctors .cs-theme-wat-pl__item { padding: 10px 0; border-bottom: 1px dashed #e0e0e0; margin: 0; }
.gyt-doctors .cs-theme-wat-pl__item:last-child { border-bottom: 0; }
.gyt-doctors .cs-theme-wat-pl__title { font-size: 14px; }
.gyt-doctors .cs-theme-wat-pl__title a { color: #111; }

/* Khách hàng nói gì: nền ảnh tối, chữ trắng như cũ */
.gyt-reviews { background: #2b2b2b url(/wp-content/uploads/2024/03/img-bg-say-about.jpg) center / cover no-repeat; color: #fff; }
.gyt-reviews .cs-theme-wat-heading { color: #fff; }
.gyt-reviews .cs-theme-wat-testimonial { background: rgba(0, 0, 0, .35); border-color: rgba(255, 255, 255, .15); color: #fff; }
.gyt-reviews .cs-theme-wat-testimonial * { color: inherit; }

/* Bạn cần hỗ trợ */
.gyt-support-title { color: var(--gyt-navy); }
.gyt-fbox { display: flex; align-items: center; gap: 16px; height: 100%; padding: 13px; border: 1px solid #f4821f; border-radius: 5px; color: inherit; text-decoration: none; }
.gyt-fbox__img { flex: none; width: 46px; height: 46px; object-fit: contain; margin: 0; }
.gyt-fbox__body { display: grid; gap: 4px; }
.gyt-fbox__body strong { color: var(--gyt-navy); font-size: 18px; }
.gyt-fbox:hover { border-color: #e06d0c; }

/* Footer xanh */
.gyt-footer-top a, .gyt-footer a { color: #fff; text-decoration: none; }
.gyt-footer-top .cs-theme-wat-heading { color: #fff; font-size: 17px; margin-bottom: 0; }
.gyt-footer-top .cs-theme-wat-divider, .gyt-fdiv { width: 70px; border-color: #fff; border-top-width: 3px; margin: 12px 0 18px; opacity: 1; }
.gyt-footer-top p { font-size: 14px; }

/* Trang Liên hệ / Giới thiệu: ảnh nền đầu trang */
.gyt-page-hero .cs-theme-wat-col { background-size: cover; background-position: center; }
.gyt-page-hero .cs-theme-wat-heading { color: #fff; margin: 0; }

/* Trang sản phẩm: ẩn "Thêm vào giỏ" như cũ (giữ MUA NGAY + GỌI NGAY) */
.single-cs_wat_product .cs-theme-wat-btn--secondary[data-cs-wat-add] { display: none; }

/* Ảnh nền đầu trang Liên hệ / Giới thiệu */
.gyt-page-hero .cs-theme-wat-col { min-height: 260px; display: flex; flex-direction: column; justify-content: center; }

/* Lưới sản phẩm chèn trong bài viết: chữ như thẻ sản phẩm thường (không theo cỡ tiêu đề của bài) */
.cs-theme-wat-rte .gyt-grid { padding-left: 0; list-style: none; }
.cs-theme-wat-rte .gyt-grid > li { margin: 0; padding: 0; }
.cs-theme-wat-rte .gyt-grid li::before { content: none; }
.cs-theme-wat-rte .gyt-grid h2, .cs-theme-wat-rte .gyt-grid h3, .cs-theme-wat-rte .gyt-grid h4 { margin: 0; font-size: 14px; font-weight: 400; line-height: 1.4; }
.cs-theme-wat-rte .gyt-grid a { text-decoration: none; }
.cs-theme-wat-rte .gyt-grid img { margin: 0; }
.cs-theme-wat-rte .gyt-posts h3 { margin: 0; font-size: 15px; }

/* Cột bên sản phẩm: nút Zalo / Facebook nền xanh chữ trắng */
.cs-theme-wat-widget .chat-product-sb-wat { color: #fff !important; background: var(--gyt-blue); border-color: var(--gyt-blue); min-width: 0; padding: 8px 22px; }
.cs-theme-wat-widget a { overflow-wrap: anywhere; }
