/*
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ụ.
 */


/* ===== dinhduongplus.com ===== */
:root { --ddp-teal: #00a9b9; --ddp-dark: #0b4f57; --ddp-soft: #f1f8f9; --ddp-line: #dfeced; }

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

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

/* Cột bên: sản phẩm */
.ddp-plist { list-style: none; margin: 0; padding: 0; }
.ddp-plist li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eee; align-items: start; margin: 0; }
.ddp-plist__img img { width: 56px; height: 56px; object-fit: contain; margin: 0; }
.ddp-plist__title { display: block; color: inherit; text-decoration: none; font-size: 14px; line-height: 1.35; }
.ddp-plist__price { display: block; margin-top: 4px; font-size: 14px; }
.ddp-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). */
.ddp-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: #f47b20; color: #fff !important; font-size: .95rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; box-sizing: border-box; }
.ddp-call:hover { filter: brightness(1.05); }

/* 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 .ddp-grid { padding-left: 0; list-style: none; }
.cs-theme-wat-rte .ddp-grid > li { margin: 0; padding: 0; }
.cs-theme-wat-rte .ddp-grid li::before { content: none; }
.cs-theme-wat-rte .ddp-grid h2, .cs-theme-wat-rte .ddp-grid h3, .cs-theme-wat-rte .ddp-grid h4 { margin: 0; font-size: 14px; font-weight: 400; line-height: 1.4; }
.cs-theme-wat-rte .ddp-grid a { text-decoration: none; }
.cs-theme-wat-rte .ddp-grid img { margin: 0; }
.cs-theme-wat-rte .ddp-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(--ddp-teal); border-color: var(--ddp-teal); min-width: 0; padding: 8px 22px; }
.cs-theme-wat-widget a { overflow-wrap: anywhere; }

/* Nút mua ở sàn TMĐT (Shopee / Lazada) trong mô tả sản phẩm */
.ddp-shop-btn { min-width: 180px; margin: .25em .5em .25em 0; }
.ddp-video iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.ddp-inline-icon { width: 1.1em; height: 1.1em; vertical-align: -.15em; margin-right: .35em; }

/* GỌI NGAY: màu phẳng, không chuyển sắc */
.ddp-call { background: #f47b20; }
.ddp-call:hover { filter: none; background: #e06a12; }

/* Header xanh ngọc */
.ddp-header .cs-theme-wat-menu > li > a { font-size: 14.5px; font-weight: 600; }

/* Tiêu đề các khối trang chủ */
.ddp-fc .cs-theme-wat-section-header, .ddp-cats .cs-theme-wat-section-header { margin-bottom: 22px; }
.ddp-fc .cs-theme-wat-heading, .ddp-cats .cs-theme-wat-heading, .ddp-news .cs-theme-wat-heading { font-size: 24px; }
.ddp-fc .cs-theme-wat-header-link { color: var(--ddp-teal); font-weight: 600; }
.ddp-cats .cs-theme-wat-section-header { text-align: center; }

/* Dải cam kết dưới slide */
.ddp-perks { border-bottom: 1px solid var(--ddp-line); }
.ddp-perks .cs-theme-wat-multicolumn__item { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 4px; align-items: start; text-align: left; }
.ddp-perks .cs-theme-wat-multicolumn__icon { grid-column: 1; grid-row: 1 / span 2; width: auto; height: auto; min-width: 0; margin: 0; padding: 0; justify-content: flex-start; align-items: flex-start; background: none; }
.ddp-perks .cs-theme-wat-multicolumn__icon svg { width: 40px; height: 40px; color: var(--ddp-teal); }
.ddp-perks .cs-theme-wat-multicolumn__title { grid-column: 2; margin: 0; font-size: 16px; }
.ddp-perks .cs-theme-wat-multicolumn__text { grid-column: 2; margin: 0; }
.ddp-perks .cs-theme-wat-multicolumn__text p { margin: 0; font-size: 14px; opacity: .8; }
@media (max-width: 749px) { .ddp-perks .cs-theme-wat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; } .ddp-perks .cs-theme-wat-multicolumn__item { grid-template-columns: 34px 1fr; column-gap: 10px; } .ddp-perks .cs-theme-wat-multicolumn__icon svg { width: 30px; height: 30px; } .ddp-perks .cs-theme-wat-multicolumn__title { font-size: 14px; } .ddp-perks .cs-theme-wat-multicolumn__text p { font-size: 12.5px; } }

/* Danh mục tròn */
.ddp-cats .cs-theme-wat-collection-card__title { justify-content: center; font-size: 14px; font-weight: 600; text-align: center; }
.ddp-cats .cs-theme-wat-collection-card__title svg { display: none; }

@media (max-width: 749px) {
	.ddp-cats .cs-theme-wat-clist__list { grid-template-columns: repeat(4, minmax(0, 1fr)); --cl-size: 66px; gap: 14px 8px; }
	.ddp-cats .cs-theme-wat-collection-card__title { font-size: 12px; line-height: 1.3; }
}

/* Giới thiệu */
.ddp-about .cs-theme-wat-col { max-width: 860px; margin: 0 auto; }
.ddp-about-text { font-size: 16px; line-height: 1.75; }
.ddp-about-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.ddp-about-btns .cs-theme-wat-btn { margin: 0; }

/* Footer */
.ddp-footer-top a, .ddp-footer a { color: #fff; text-decoration: none; }
.ddp-footer-top a:hover { text-decoration: underline; }
.ddp-footer-top .cs-theme-wat-heading { color: #fff; font-size: 17px; margin-bottom: 14px; }
.ddp-footer-top p { font-size: 14.5px; line-height: 1.7; opacity: .92; }
.ddp-flinks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.ddp-footer-top .cs-theme-wat-rte .ddp-flinks { margin: 0; padding: 0; list-style: none; }
.ddp-footer-top .cs-theme-wat-rte .ddp-flinks li { margin: 0; padding: 0; }
.ddp-footer-top .cs-theme-wat-rte .ddp-flinks li::before, .ddp-footer-top .cs-theme-wat-rte .ddp-flinks li::marker { content: none; }
.ddp-flogo { margin-bottom: 12px; }
.ddp-fphone a { font-weight: 700; font-size: 16px; }
.ddp-footer { border-top: 1px solid rgba(255, 255, 255, .15); }

/* Trang Liên hệ / Giới thiệu */
.ddp-page-hero .cs-theme-wat-heading { margin: 0; color: var(--ddp-dark); }
.ddp-gt .cs-theme-wat-col { max-width: 860px; margin: 0 auto; font-size: 16px; line-height: 1.75; }

/* Bài viết blog: ẩn các nút liên hệ nổi (Gọi, Messenger, Zalo, WhatsApp, KakaoTalk), giữ nút lên đầu trang. */
body.single-post .cs-theme-wat-float__list,
body.single-post .cs-theme-wat-float__wrap,
body.single-post .cs-theme-wat-float__main,
body.single-post .cs-theme-wat-float__panel { display: none !important; }
