/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.5.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* =========================================================================
   DR.ECA – ORGANIC GREEN REDESIGN (2026-11)
   Bảng màu dùng chung. Muốn đổi màu toàn site chỉ cần sửa các biến dưới đây.
   ========================================================================= */
:root {
	--dr-primary: #6fae32;        /* xanh lá chủ đạo (nút, link, nhấn) */
	--dr-primary-dark: #5a9426;   /* hover */
	--dr-light: #8ac249;          /* chữ xanh sáng trên nền tối */
	--dr-green-900: #2c4a1f;      /* xanh rêu đậm (hero, CTA) */
	--dr-green-700: #3b5a29;
	--dr-green-500: #5b8238;
	--dr-mint: #eef5e2;           /* nền xanh nhạt (menu active, ảnh) */
	--dr-cream: #f7f6ef;          /* nền kem các section */
	--dr-heading: #2c3627;        /* màu tiêu đề */
	--dr-text: #5b6553;           /* màu chữ thường */
	--dr-muted: #8a9182;
	--dr-border: #e8e8df;
	--dr-price: #2fa58f;          /* màu giá */
	--dr-sale: #d9475a;           /* badge giảm giá */
	--dr-star: #f5a623;
	--dr-dark: #1c2217;           /* nền footer */
	--dr-dark-2: #232a20;         /* nền top bar / newsletter */
	--dr-radius: 16px;
	--dr-font: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- 1. Font Nunito cho toàn bộ website ---------- */
html, body, button, input, select, textarea, optgroup,
h1, h2, h3, h4, h5, h6, .heading-font, .alt-font, .nav > li > a, .nav-dropdown, .button,
.product-title, .price, .woocommerce, .tooltipster-content, .mfp-content, .off-canvas,
.wpcf7, .pum-container, .tabs, .breadcrumbs, .widget, #logo, .logo-tagline {
	font-family: var(--dr-font) !important;
}
body { color: var(--dr-text); background-color: #fff; }
h1, h2, h3, h4, h5, h6 { color: var(--dr-heading); }
a { color: #4f8a24; }
a:hover { color: var(--dr-primary); }
::selection { background: var(--dr-primary); color: #fff; }

/* ---------- 2. Nút bấm ---------- */
.button, button, input[type='submit'], input[type='button'] { font-weight: 800; letter-spacing: .03em; }
.button.primary:not(.is-outline), .button.alt, .button.checkout, input[type='submit'].button,
.single_add_to_cart_button, .woocommerce-checkout-payment button[type=submit],
.wc-proceed-to-checkout a, .return-to-shop a, .tra-cuu-don-hang button[type=submit],
.woocommerce-mini-cart__buttons a, .shop_table tr td button[aria-disabled=false],
.button-dangky-thanh-daily, #popmake-426 input[type=submit], .tiep-tuc-mua-sam-done button,
.button-danhmucsanpham, .quick-view.quick-view-added {
	background-color: var(--dr-primary) !important;
	border-color: var(--dr-primary) !important;
	color: #fff !important;
	border-radius: 99px !important;
}
.button.primary:not(.is-outline):hover, .single_add_to_cart_button:hover,
.woocommerce-checkout-payment button[type=submit]:hover, .wc-proceed-to-checkout a:hover {
	background-color: var(--dr-primary-dark) !important;
	box-shadow: 0 8px 20px rgba(111, 174, 50, .25);
}
.button.is-outline.primary, .button.primary.is-outline { color: var(--dr-primary); border-color: var(--dr-primary); border-width: 2px; }
.button.is-outline.primary:hover { background-color: var(--dr-primary); color: #fff; }
.product-page-customize-mota .add-to-cart-container button[type=submit],
.product-lightbox-inner button[type=submit] {
	background: var(--dr-green-700) !important;
	border-radius: 99px !important;
}
.product-page-customize-mota #buy_now_button, .product-lightbox-inner #buy_now_button { background: var(--dr-primary) !important; border-radius: 99px !important; }
.shop_table tr td button[type=submit] { background-color: rgba(111, 174, 50, .5) !important; border-radius: 99px; }
.icon-shopping-cart:after { color: var(--dr-primary); }

/* ---------- 3. Ghi đè màu xanh dương cũ (đồng bộ các trang khác) ---------- */
.woocommerce-Price-amount, .price .amount { color: var(--dr-price) !important; }
del .woocommerce-Price-amount, del .amount { color: var(--dr-muted) !important; }
.product-title a { color: var(--dr-heading) !important; }
.product-title a:hover,
.breadcrumbs a:last-child,
.row-button-camnang .col-inner a:hover,
.section-header-tungdanhmucsanpham .col-inner a:hover,
.woocommerce-checkout .large-7.col > p,
.product-page-customize-mota .product-page-price ins .amount { color: var(--dr-primary) !important; }
.title-rangdong:before, .product-section-title-related:before, .woocommerce-billing-fields h3:before { background-color: var(--dr-primary) !important; border-radius: 4px; }
.sidebar-danhmucsanpham .widget.widget_nav_menu .widget-title,
#main-menu.mobile-sidebar .header-contact-wrapper a { background: var(--dr-green-700) !important; }
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] { background-color: var(--dr-primary) !important; }
.section-lydo .col:first-child .col-inner > .row { background-color: var(--dr-green-700) !important; }
.icon-circle { background-color: var(--dr-primary) !important; }
.header-main .header-search-form button[type=submit] { background-color: var(--dr-primary) !important; }
.floating-chatbot-button,
#floating-chatbot-default .chatbot-top-bar, #floating-chatbot-default .chat-mode-indicator, #floating-chatbot-default .bot-message { background: var(--dr-primary) !important; }
.flickity-page-dots .dot.is-selected { background-color: var(--dr-primary); }
.message-container.container.success-color { color: var(--dr-primary-dark) !important; }
#thongbaofinish { border-color: var(--dr-primary) !important; color: var(--dr-primary-dark) !important; }
.wpcf7-response-output { border-color: var(--dr-primary) !important; }
.page-title, .page-header-wrapper .page-title-inner { background-color: var(--dr-cream); }
[style*="color: #37479d"], [style*="color: #143b86"], [style*="color:#37479d"], [style*="color:#143b86"] { color: var(--dr-primary) !important; }
.product-page-customize-hotro .col-inner > p { background: var(--dr-green-700) !important; border-radius: 12px 12px 0 0 !important; }
.product-page-customize-hotro .col-inner .icon-box { border-color: var(--dr-border) !important; }
.is-divider { background-color: var(--dr-primary); }
.badge-inner, .bubble { background-color: var(--dr-primary); }
.widget-title { color: var(--dr-heading); }
.blogpost-tintuc .col.post-item .col-inner { border-color: var(--dr-border) !important; border-radius: var(--dr-radius); }
.section-danhgia .col-inner .icon-box { border-radius: var(--dr-radius); }
.nav-pagination > li > .current, .page-numbers.current { background-color: var(--dr-primary) !important; border-color: var(--dr-primary) !important; }
.tabbed-content .nav-line > li.active > a:before, .nav-line > li.active > a:before { background-color: var(--dr-primary); }
input[type='email']:focus, input[type='search']:focus, input[type='number']:focus, input[type='tel']:focus,
input[type='text']:focus, input[type='password']:focus, textarea:focus, select:focus { border-color: var(--dr-primary); box-shadow: 0 0 0 3px rgba(111, 174, 50, .15); }

/* ---------- 4. Header ---------- */
/* Top bar */
#top-bar, .header-top { background-color: var(--dr-dark-2) !important; }
#top-bar .nav > li > a, .header-top a, .topbar-hotline a, .topbar-mailto a, .topbar-social-item a, .topbar-social p {
	color: rgba(255, 255, 255, .85) !important; font-size: 13px; font-weight: 500;
}
#top-bar a:hover, .header-top a:hover { color: var(--dr-light) !important; }
.topbar-hotline svg path, .topbar-mailto svg path { fill: var(--dr-light); }
.topbar-social-item a svg { display: none; }
.topbar-social p { margin: 0 16px 0 0; opacity: .6; }

/* Main header */
#header .header-main { background-color: #fff !important; }
#header .header-wrapper:not(.stuck) .header-main { box-shadow: 0 1px 0 var(--dr-border); }
#header .header-bottom { display: none; } /* menu đã chuyển lên header chính */

/* Logo chữ "Dr.Eca" + tagline */
#logo { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; width: auto !important; margin-right: 24px; }
#logo > a { font-size: 32px; font-weight: 900; color: var(--dr-primary) !important; letter-spacing: -.02em; line-height: 1; text-transform: none !important; white-space: nowrap; }
#logo .logo-tagline { margin: 4px 0 0 2px; font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--dr-muted); line-height: 1.3; white-space: nowrap; font-weight: 600; }

/* Menu */
#header .header-main .flex-left { flex: 1 1 auto; }
#header .header-nav-main.nav { flex-wrap: nowrap; }
#header .header-nav-main.nav > li { margin: 0 1px; }
#header .header-nav-main.nav > li > a {
	color: var(--dr-text) !important; font-weight: 700; font-size: 14.5px; white-space: nowrap;
	padding: 9px 13px; border-radius: 99px; transition: background-color .2s, color .2s;
}
@media (max-width: 1279px) {
	#header .header-nav-main.nav > li > a { font-size: 13.5px; padding: 8px 9px; }
}
#header .header-nav-main.nav > li > a:hover,
#header .header-nav-main.nav > li.active > a,
#header .header-nav-main.nav > li.current-menu-item > a,
#header .header-nav-main.nav > li.current_page_item > a { background-color: var(--dr-mint); color: var(--dr-primary) !important; }
html #header a:hover, html header#header a:hover { color: var(--dr-primary) !important; }
html #header .button.primary:hover, html #header .header-button a:hover { color: #fff !important; }
header#header .flex-row.container .flex-col > ul > li .sub-menu li a { color: var(--dr-heading); }
header#header .flex-row.container .flex-col > ul > li .sub-menu li a:hover { color: var(--dr-primary) !important; }
.nav-dropdown { border-radius: 14px; border: 0; box-shadow: 0 14px 40px rgba(0, 0, 0, .12); }

/* Icon tìm kiếm + giỏ hàng dạng tròn */
#header .header-main .header-search .header-button > a,
#header .header-main .header-search > a,
#header .header-main .cart-item > a.header-cart-link {
	border: 0 !important; box-shadow: none !important; min-height: 0; line-height: 1;
	width: 40px; height: 40px; border-radius: 50%; background: #f1f3ea;
	display: inline-flex !important; align-items: center; justify-content: center;
	color: var(--dr-heading) !important; margin: 0 !important; padding: 0;
}
.header-nav .cart-item a { margin-left: 0 !important; }
#header .header-main .icon-search, #header .header-main .icon-shopping-cart,
#header .header-main .icon-shopping-cart:before, #header .header-main .icon-menu:before { color: var(--dr-heading) !important; font-size: 16px; }
#header .header-main .header-search .header-button > a:hover, #header .header-main .cart-item > a:hover { background: var(--dr-mint) !important; }
#header .header-main .header-nav-main.nav-right > li { margin: 0 4px; }
#header .header-main .icon-shopping-cart:after {
	background-color: var(--dr-primary) !important; color: #fff !important;
	top: -8px; right: -12px; min-width: 18px; height: 18px; line-height: 18px; font-size: 10px; font-weight: 800;
}
#header .header-button-1 .button { padding: 0 26px; line-height: 2.8em; font-size: 14px; text-transform: uppercase; white-space: nowrap; margin: 0; }
#header .header-search-form input[type=search] { border-radius: 99px 0 0 99px; }
.icon-menu:before { color: var(--dr-heading) !important; }

/* Mobile header */
@media (max-width: 849px) {
	#logo > a { font-size: 26px; }
	#logo .logo-tagline { display: none; }
	#header .header-main .cart-item > a.header-cart-link { width: 36px; height: 36px; }
}

/* ---------- 5. Tiêu đề section dùng chung ---------- */
.dr-eyebrow {
	font-size: 19px; font-style: italic; font-weight: 600; color: var(--dr-primary);
	margin-bottom: 6px !important; letter-spacing: .01em;
}
.dr-title {
	font-size: 40px; font-weight: 800; line-height: 1.15; color: var(--dr-heading);
	letter-spacing: -.01em; margin-bottom: 16px;
}
.dr-head .is-divider {
	position: relative; height: 2px; max-width: 110px !important; margin: 4px auto 18px;
	background: linear-gradient(to right, var(--dr-primary) 0 34%, transparent 34% 66%, var(--dr-primary) 66% 100%);
}
.dr-head .is-divider:after {
	content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; transform: translate(-50%, -50%);
	background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%236fae32' d='M20.5 3.5S12 3 7.6 7.4C4.4 10.6 4.9 15 6.2 17.2L3.3 20.1l1.1 1.1 2.9-2.9c2.2 1.4 6.6 1.8 9.8-1.4C21.5 12.5 20.5 3.5 20.5 3.5zM9.4 16.2l-1.1-1.1 6.4-6.4 1.1 1.1-6.4 6.4z'/%3E%3C/svg%3E");
}
.dr-lead { color: var(--dr-muted); font-size: 16px; }
.dr-head .col-inner > *:last-child { margin-bottom: 0; }

/* ---------- 6. Trang chủ ---------- */
body.home .section .section-content > .row { align-items: stretch; }
body.home #main, body.home #content { background: #fff; }

/* 6.1 Hero */
.dr-hero .overlay {
	background: linear-gradient(100deg, rgba(42, 70, 28, .97) 0%, rgba(60, 96, 38, .9) 38%, rgba(98, 140, 58, .55) 70%, rgba(170, 200, 130, .2) 100%) !important;
}
.dr-hero-text .dr-eyebrow { color: #e9f1dc; font-size: 22px; margin-bottom: 10px !important; }
.banner .dr-hero-title {
	color: #fff !important; font-size: 58px; font-weight: 900; line-height: 1.12; letter-spacing: -.015em; margin-bottom: 18px;
}
.dr-hero-title .dr-hl { display: block; color: var(--dr-light); }
.dr-hero-desc { color: rgba(255, 255, 255, .9); font-size: 17px; line-height: 1.65; max-width: 460px; margin-bottom: 26px !important; }
.dr-hero .button { margin: 0 12px 10px 0; font-size: 14px; min-height: 48px; line-height: 36px; }
.dr-hero .button.white.is-outline { border-width: 2px; color: #fff; }
.dr-hero .button.white.is-outline:hover { background: #fff; color: var(--dr-green-700) !important; }

/* 6.2 Lưới danh mục */
.dr-cats .banner-grid-wrapper .banner, .dr-cats .dr-cat {
	border-radius: 20px; overflow: hidden; -webkit-mask-image: -webkit-radial-gradient(white, black); /* bo góc khi zoom ảnh */
	box-shadow: 0 10px 30px rgba(44, 54, 39, .08); transition: box-shadow .35s ease, transform .35s ease;
}
/* Hover: chỉ zoom nhẹ ảnh nền (tuỳ chọn Hover = Zoom của Banner) */
.dr-cats .dr-cat.bg-zoom:hover .bg { transform: scale(1.06) !important; }
.dr-cats .banner .bg { filter: saturate(.85); transition: transform .8s cubic-bezier(.2, .7, .2, 1) !important; }
.dr-cat .overlay { opacity: 1 !important; }
/* lớp tối dần phía dưới để chữ luôn rõ */
.dr-cat .overlay:after {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .28) 100%);
}
.dr-cat--main .overlay:after { background: linear-gradient(90deg, rgba(30, 50, 20, .45) 0%, rgba(30, 50, 20, 0) 75%); }
.dr-cat .text-box .text-inner > *:last-child { margin-bottom: 0 !important; }
.dr-cat--main .dr-eyebrow { color: #e3f0cf; font-size: 21px; margin-bottom: 10px !important; }
.banner .dr-cat-title-lg { color: #fff !important; font-size: 38px; font-weight: 900; line-height: 1.18; letter-spacing: -.01em; margin: 0 0 22px; }
.banner .dr-cat-title { color: #fff !important; font-size: 24px; font-weight: 900; line-height: 1.2; margin: 0 0 6px; letter-spacing: -.01em; }
.banner .dr-cat-link {
	display: inline-flex; align-items: center; gap: 6px; margin: 0;
	color: rgba(255, 255, 255, .9); font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
/* Nút "Mua sắm ngay" trong ô lớn (element Button) */
.dr-cats .dr-cat-btn.button {
	background: #fff !important; border-color: #fff !important; color: var(--dr-green-700) !important;
	font-size: 13px !important; font-weight: 800; letter-spacing: .05em; min-height: 46px; line-height: 38px; margin: 0;
	box-shadow: 0 8px 20px rgba(0, 0, 0, .15); position: relative; z-index: 3;
}
.dr-cats .dr-cat-btn.button:hover { background: var(--dr-primary) !important; border-color: var(--dr-primary) !important; color: #fff !important; }

/* 6.3 Sản phẩm + Tabs */
.dr-tabs > .nav { margin-bottom: 26px; gap: 10px; flex-wrap: wrap; }
.dr-tabs > .nav > li { margin: 0 !important; }
.dr-tabs > .nav > li > a {
	font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--dr-text);
	padding: 7px 18px !important; border-radius: 99px !important; background: transparent; border: 0;
}
.dr-tabs > .nav > li > a:hover { color: var(--dr-primary); }
.dr-tabs > .nav > li.active > a { background-color: var(--dr-primary) !important; color: #fff !important; }
.dr-tabs .tab-panels { padding-top: 0; }
.dr-btn-center { display: table; margin: 18px auto 0 !important; }
.dr-btn, .dr-tabs > .nav > li > a, .product-small .add-to-cart-button a, .product-small .add-to-cart-button .button { text-transform: uppercase !important; }

/* Thẻ sản phẩm (áp dụng toàn site cho đồng bộ) */
.product-small.col .product-small.box,
.dr-product-grid .product-small.box {
	background: #fff; border: 1px solid var(--dr-border) !important; border-radius: var(--dr-radius);
	padding: 0 !important; overflow: hidden; height: 100%; transition: box-shadow .25s, transform .25s;
}
.product-small.box:hover { box-shadow: 0 16px 36px rgba(44, 54, 39, .1); transform: translateY(-3px); }
/* Các thẻ cao bằng nhau, nút Mua ngay luôn nằm đáy thẻ */
.product-small.col > .col-inner, .product-small.col > .col-inner > [data-animate] { height: 100%; }
.product-small.box { display: flex; flex-direction: column; }
.product-small .box-text-products { flex: 1 1 auto; display: flex; flex-direction: column; }
.product-small .add-to-cart-button { margin-top: auto !important; padding-top: 12px; }
.product-small .box-image { background: var(--dr-cream); }
.product-small .box-image img { mix-blend-mode: multiply; }
.product-small .box-text-products {
	padding: 16px 14px 20px !important; text-align: center;
}
.product-small .box-text-products .title-wrapper { display: block !important; }
.product-small .box-text .category {
	color: var(--dr-primary) !important; opacity: 1 !important; font-size: 11px; font-weight: 800; letter-spacing: .08em; margin-bottom: 6px;
}
.product-small .product-title { font-size: 15px; font-weight: 700; line-height: 1.35; }
.product-small .star-rating { margin: 6px auto !important; font-size: 13px; }
.star-rating span:before, .star-rating:before { color: var(--dr-star) !important; }
.star-rating:before { opacity: .35; }
.product-small .price-wrapper .price { display: block; margin-top: 6px; }
.product-small .price .amount { font-size: 17px; font-weight: 800; }
.product-small .price del .amount { font-size: 13px; font-weight: 500; }
.product-small .add-to-cart-button { margin-top: 12px; }
.product-small .add-to-cart-button .button,
.product-small .add-to-cart-button a {
	border: 2px solid var(--dr-primary) !important; color: var(--dr-primary) !important; background: transparent !important;
	border-radius: 99px !important; font-size: 12px; font-weight: 800; padding: 0 18px; min-height: 36px; line-height: 32px;
}
.product-small .add-to-cart-button .button:hover,
.product-small .add-to-cart-button a:hover { background: var(--dr-primary) !important; color: #fff !important; }
/* Badge giảm giá / hot */
.product-small .badge-container { position: absolute !important; top: 12px; left: 12px; margin: 0 !important; z-index: 2; }
.product-small .badge { height: auto; width: auto; }
.product-small .badge-inner, .woocommerce span.onsale, .product-small span.onsale {
	position: static !important; width: auto !important; height: auto !important;
	background: var(--dr-sale) !important; color: #fff !important; border: 0 !important;
	border-radius: 99px !important; font-size: 11px !important; font-weight: 800; padding: 4px 10px !important; line-height: 1.2;
}
.product-small .badge-frame .badge-inner, .product-small .badge-outline .badge-inner { border: 0; }

/* 6.4 Câu chuyện */
.dr-story-media { border-radius: 22px; overflow: hidden; box-shadow: 0 24px 50px rgba(44, 54, 39, .12); }
.dr-story-media .bg { background-size: contain !important; background-repeat: no-repeat; }
.dr-badge-safe .text-inner {
	width: 96px; height: 96px; border-radius: 50%; background: var(--dr-heading); border: 3px solid var(--dr-light);
	display: flex; align-items: center; justify-content: center; margin-left: auto;
}
.dr-badge-safe p { margin: 0; font-size: 10px; font-weight: 800; color: #fff; text-transform: uppercase; line-height: 1.5; text-align: center; }
.dr-badge-safe strong { font-size: 18px; color: var(--dr-light); }
.dr-story-text .dr-title { margin-bottom: 26px; }
.dr-step { position: relative; padding-left: 72px; color: var(--dr-primary); font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.dr-step-num {
	position: absolute; left: 0; top: -4px; font-size: 34px; font-weight: 900; color: var(--dr-light); line-height: 1;
}
.dr-step-desc { padding-left: 72px; color: var(--dr-muted); font-size: 14.5px; line-height: 1.65; margin-bottom: 22px !important; }

/* 6.5 CTA */
.dr-cta .section-bg-overlay {
	background: linear-gradient(120deg, rgba(48, 80, 32, .96) 0%, rgba(80, 120, 50, .9) 60%, rgba(120, 160, 70, .85) 100%) !important;
}
.dr-cta .dr-eyebrow { color: #e9f1dc; font-size: 20px; }
.dr-cta-title { color: #fff !important; font-size: 40px; font-weight: 900; text-transform: uppercase; line-height: 1.2; letter-spacing: .01em; margin: 0; }

/* 6.6 Testimonial */
.dr-testi-row > .col > .col-inner { height: 100%; }
.dr-testi.testimonial-box {
	display: grid !important; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: center;
	height: 100%; background: #fff; border: 1px solid var(--dr-border); border-radius: var(--dr-radius);
	padding: 52px 24px 24px; position: relative; text-align: left;
}
.dr-testi.testimonial-box:before {
	content: '\201D'; position: absolute; top: 14px; left: 24px; font-size: 54px; line-height: 1; font-weight: 900; color: var(--dr-light);
}
.dr-testi .icon-box-text { display: contents; }
.dr-testi .testimonial-text {
	grid-column: 1 / -1; order: 1; font-style: normal !important; color: var(--dr-text); font-size: 15px; line-height: 1.7;
	padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--dr-border);
}
.dr-testi .testimonial-image { order: 2; margin: 0 !important; width: 44px !important; }
.dr-testi .testimonial-image img { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 3px var(--dr-mint); }
.dr-testi .testimonial-meta { order: 3; padding: 0 !important; display: flex; flex-direction: column; }
.dr-testi .testimonial-name { color: var(--dr-heading); font-size: 15px; font-weight: 800; text-transform: none; }
.dr-testi .testimonial-name-divider { display: none; }
.dr-testi .testimonial-company { color: var(--dr-primary); font-size: 12.5px; }

/* 6.7 Blog */
.dr-blog-grid .col-inner, .dr-blog-grid .col-inner > a, .dr-blog-grid .col-inner > a.plain { height: 100%; display: block; }
.dr-blog-grid .box-blog-post {
	background: #fff; border: 1px solid var(--dr-border); border-radius: var(--dr-radius); overflow: hidden; height: 100%;
	transition: box-shadow .25s, transform .25s;
}
.dr-blog-grid .box-blog-post:hover { box-shadow: 0 16px 36px rgba(44, 54, 39, .1); transform: translateY(-3px); }
.dr-blog-grid .box-blog-post { display: block !important; padding: 0 !important; }
.dr-blog-grid .box-image { background: var(--dr-mint); width: 100% !important; }
.dr-blog-grid .box-text.text-left { margin-left: 0 !important; }
.dr-blog-grid .box-text { padding: 18px 20px 20px !important; }
.dr-blog-grid .post-title { font-size: 16px; font-weight: 800; color: var(--dr-heading); line-height: 1.4; }
.dr-blog-grid .is-divider { display: none; }
.dr-blog-grid .button.is-link { color: var(--dr-primary); font-size: 13px; font-weight: 800; padding: 0; margin-top: 8px; text-transform: none; letter-spacing: 0; }
.dr-blog-grid .post-date { top: 0; left: 14px; margin-top: calc(62% - 42px); }
.dr-blog-grid .post-date .badge-inner {
	background: var(--dr-primary) !important; color: #fff; border: 0; border-radius: 99px; padding: 5px 12px; height: auto; font-weight: 800;
}
.dr-blog-grid .post-date br { display: none; }
.dr-blog-grid .post-date .post-date-day, .dr-blog-grid .post-date .post-date-month { font-size: 12px; line-height: 1.3; }
.dr-blog-grid .badge.post-date { width: auto; height: auto; }

/* ---------- 7. Footer ---------- */
#footer .section-content > .row > .col:not(:last-child)::after { display: none !important; }
.dr-newsletter { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.dr-newsletter .dr-eyebrow { color: var(--dr-light); font-size: 20px; margin-bottom: 4px !important; }
.dr-news-title { color: #fff !important; font-size: 24px; font-weight: 800; margin: 0; }
.dr-news-form .wpcf7-form { margin: 0; padding: 0; }
.dr-news-form .wpcf7-form > p { display: flex !important; gap: 10px; align-items: stretch; flex-wrap: nowrap; margin: 0 !important; padding: 0 !important; }
.dr-news-form .wpcf7-form-control-wrap { flex: 1 1 auto; width: auto !important; margin: 0; }
.dr-news-form .wpcf7-form-control-wrap input { width: 100%; }
.dr-news-form .wpcf7-form > p br { display: none; }
.dr-news-form input[type=text], .dr-news-form input[type=email] {
	height: 48px; margin: 0 !important; border: 0 !important; border-radius: 99px !important; padding: 0 22px; background: #fff; color: var(--dr-heading); box-shadow: none;
}
.dr-news-form input[type=submit] {
	height: 48px; margin: 0 !important; width: auto !important; padding: 0 28px !important; border-radius: 99px !important;
	background: var(--dr-primary) !important; color: #fff !important; font-weight: 800; text-transform: uppercase; font-size: 13px !important;
	display: inline-block !important;
}
.dr-news-form .wpcf7-spinner { display: none; }
.dr-news-form .wpcf7-response-output { color: #fff; margin: 10px 0 0 !important; border-radius: 10px; }

.dr-footer { color: rgba(255, 255, 255, .62); }
.dr-footer p { font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, .62); margin-bottom: 10px; }
.dr-footer-logo { color: var(--dr-light) !important; font-size: 30px; font-weight: 900; margin-bottom: 12px; }
.dr-footer-title { color: #fff !important; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.dr-footer-links { list-style: none; margin: 0; padding: 0; }
.dr-footer-links li { margin: 0 0 12px !important; padding: 0; list-style: none; }
.dr-footer-links a { color: rgba(255, 255, 255, .7) !important; font-size: 14px; }
.dr-footer-links a:hover { color: var(--dr-light) !important; }
.dr-footer .social-icons { margin-top: 8px; }
.dr-footer .social-icons .button.icon {
	background: rgba(255, 255, 255, .08) !important; border: 0 !important; color: #fff !important; width: 38px; height: 38px; line-height: 38px; margin-right: 6px;
}
.dr-footer .social-icons .button.icon:hover { background: var(--dr-primary) !important; }
.absolute-footer {
	background-color: var(--dr-dark) !important; color: rgba(255, 255, 255, .5) !important; font-size: 13px;
	border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0;
}
.absolute-footer a { color: rgba(255, 255, 255, .6); }
.back-to-top.button { background: var(--dr-primary) !important; border-color: var(--dr-primary) !important; color: #fff !important; }

/* ---------- 8. Hiệu ứng trang chủ ---------- */
@keyframes drFadeUp { from { opacity: 0; transform: translate3d(0, 28px, 0); } to { opacity: 1; transform: none; } }
@keyframes drKenBurns { from { transform: scale(1); } to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
@keyframes drFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes drSpin { to { transform: rotate(360deg); } }
@keyframes drSway { 0%, 100% { transform: translate(-50%, -50%) rotate(-12deg); } 50% { transform: translate(-50%, -50%) rotate(12deg); } }
@keyframes drShine { 0% { left: -60%; } 60%, 100% { left: 130%; } }
@keyframes drPulse { 0% { box-shadow: 0 0 0 0 rgba(138, 194, 73, .55); } 70% { box-shadow: 0 0 0 14px rgba(138, 194, 73, 0); } 100% { box-shadow: 0 0 0 0 rgba(138, 194, 73, 0); } }
@keyframes drLeafFall { 0% { transform: translate3d(0, -40px, 0) rotate(0); opacity: 0; } 10% { opacity: .6; } 90% { opacity: .45; } 100% { transform: translate3d(-90px, 560px, 0) rotate(260deg); opacity: 0; } }
@keyframes drGradient { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Hero: ảnh nền zoom chậm + chữ hiện lần lượt + lá rơi */
.dr-hero { overflow: hidden; }
.dr-hero .bg { animation: drKenBurns 20s ease-in-out infinite alternate; transform-origin: 70% 50%; }
.dr-hero-text .text-inner > * { animation: drFadeUp .9s cubic-bezier(.2, .7, .2, 1) both; }
.dr-hero-text .text-inner > *:nth-child(1) { animation-delay: .15s; }
.dr-hero-text .text-inner > *:nth-child(2) { animation-delay: .3s; }
.dr-hero-text .text-inner > *:nth-child(3) { animation-delay: .45s; }
.dr-hero-text .text-inner > *:nth-child(4) { animation-delay: .6s; }
.dr-hero-text .text-inner > *:nth-child(5) { animation-delay: .7s; }
.dr-hero-text .text-inner > *:nth-child(6) { animation-delay: .8s; }
.dr-hero .banner-bg:before, .dr-hero .banner-bg:after {
	content: ''; position: absolute; z-index: 2; width: 34px; height: 34px; pointer-events: none;
	background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23b9dc8c' d='M20.5 3.5S12 3 7.6 7.4C4.4 10.6 4.9 15 6.2 17.2L3.3 20.1l1.1 1.1 2.9-2.9c2.2 1.4 6.6 1.8 9.8-1.4C21.5 12.5 20.5 3.5 20.5 3.5z'/%3E%3C/svg%3E");
	animation: drLeafFall 14s linear infinite;
}
.dr-hero .banner-bg:before { top: 0; right: 22%; }
.dr-hero .banner-bg:after { top: 0; right: 8%; width: 24px; height: 24px; animation-duration: 18s; animation-delay: 6s; }

/* Nút: nhấc nhẹ khi hover + vệt sáng chạy qua */
.dr-btn.button { transition: transform .25s ease, box-shadow .25s ease, background-color .25s, color .25s !important; }
.dr-btn.button:hover { transform: translateY(-2px); }
.dr-btn-shine { position: relative; overflow: hidden; }
.dr-btn-shine:after {
	content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; pointer-events: none;
	background: linear-gradient(110deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .45) 50%, rgba(255, 255, 255, 0) 100%);
	animation: drShine 3.2s ease-in-out infinite 1.5s;
}
#header .header-button-1 .button { animation: drPulse 2.6s infinite 2s; }

/* Tiêu đề: lá ở giữa đường kẻ đung đưa */
.dr-head .is-divider:after { animation: drSway 3.2s ease-in-out infinite; }

/* Xuất hiện lần lượt khi cuộn (dùng tuỳ chọn Animate có sẵn của Flatsome) */
.dr-cats .grid-col:nth-child(2)[data-animate], .dr-cats .grid-col:nth-child(2) [data-animate] { transition-delay: .1s; }
.dr-cats .grid-col:nth-child(3)[data-animate], .dr-cats .grid-col:nth-child(3) [data-animate] { transition-delay: .2s; }
.dr-cats .grid-col:nth-child(4)[data-animate], .dr-cats .grid-col:nth-child(4) [data-animate] { transition-delay: .3s; }
.dr-cats .grid-col:nth-child(5)[data-animate], .dr-cats .grid-col:nth-child(5) [data-animate] { transition-delay: .4s; }
.dr-product-grid > .col:nth-child(4n+2) [data-animate], .dr-product-grid > .col:nth-child(4n+2)[data-animate],
.dr-blog-grid > .col:nth-child(2) [data-animate], .dr-blog-grid > .col:nth-child(2)[data-animate],
.dr-testi-row > .col:nth-child(2)[data-animate], .dr-testi-row > .col:nth-child(2) [data-animate] { transition-delay: .12s; }
.dr-product-grid > .col:nth-child(4n+3) [data-animate], .dr-product-grid > .col:nth-child(4n+3)[data-animate],
.dr-blog-grid > .col:nth-child(3) [data-animate], .dr-blog-grid > .col:nth-child(3)[data-animate],
.dr-testi-row > .col:nth-child(3)[data-animate], .dr-testi-row > .col:nth-child(3) [data-animate] { transition-delay: .24s; }
.dr-product-grid > .col:nth-child(4n+4) [data-animate], .dr-product-grid > .col:nth-child(4n+4)[data-animate] { transition-delay: .36s; }

/* Thẻ sản phẩm: ảnh phóng nhẹ khi hover */
.product-small .box-image img { transition: transform .6s cubic-bezier(.2, .7, .2, 1) !important; }
.product-small .box:hover .box-image img { transform: scale(1.07); }

/* Câu chuyện: huy hiệu 100% lơ lửng + viền xoay */
.dr-badge-safe .text-inner { position: relative; animation: drFloat 4s ease-in-out infinite; }
.dr-badge-safe .text-inner:before {
	content: ''; position: absolute; top: -9px; right: -9px; bottom: -9px; left: -9px; border-radius: 50%;
	border: 2px dashed rgba(138, 194, 73, .8); animation: drSpin 14s linear infinite;
}
.dr-story-media .bg { transition: transform .8s ease; }
.dr-story-media:hover .bg { transform: scale(1.04); }
.dr-step { transition: transform .3s ease; }
.dr-step-num { transition: color .3s ease, transform .3s ease; }
.dr-step:hover { transform: translateX(4px); }
.dr-step:hover .dr-step-num { color: var(--dr-primary); transform: scale(1.1); }

/* CTA: nền chuyển màu chậm */
.dr-cta .section-bg-overlay {
	background: linear-gradient(120deg, rgba(48, 80, 32, .96), rgba(86, 128, 52, .88), rgba(48, 80, 32, .94), rgba(110, 152, 62, .86)) !important;
	background-size: 300% 300% !important; animation: drGradient 12s ease infinite;
}

/* Testimonial + blog: nhấc nhẹ khi hover */
.dr-testi.testimonial-box { transition: transform .3s ease, box-shadow .3s ease, border-color .3s; }
.dr-testi.testimonial-box:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(44, 54, 39, .1); border-color: #d6e8c0; }
.dr-blog-grid .box-image img { transition: transform .7s cubic-bezier(.2, .7, .2, 1) !important; }

/* Tắt hiệu ứng nếu người dùng bật chế độ giảm chuyển động */
@media (prefers-reduced-motion: reduce) {
	.dr-hero .bg, .dr-hero-text .text-inner > *, .dr-hero .banner-bg:before, .dr-hero .banner-bg:after, .dr-btn-shine:after,
	#header .header-button-1 .button, .dr-head .is-divider:after, .dr-badge-safe .text-inner, .dr-badge-safe .text-inner:before, .dr-cta .section-bg-overlay {
		animation: none !important;
	}
}

/* ---------- 9. Responsive ---------- */

/* Laptop 1024–1279px */
@media (max-width: 1279px) {
	.banner .dr-hero-title { font-size: 50px; }
	.banner .dr-cat-title-lg { font-size: 32px; }
	.banner .dr-cat-title { font-size: 21px; }
	.dr-title { font-size: 36px; }
	.dr-cta-title { font-size: 36px; }
	#logo .logo-tagline { letter-spacing: .2em; }
	#header .header-button-1 .button { padding: 0 18px; }
	.dr-hero .text-box .text-inner { padding-left: 30px !important; padding-right: 30px !important; }
	.dr-cats .section-content { padding-left: 12px; padding-right: 12px; }
}

/* Laptop nhỏ / tablet ngang 850–1199px: menu 8 mục không đủ chỗ nên dùng menu hamburger như mobile */
@media (min-width: 850px) and (max-width: 1199px) {
	#header .header-main .hide-for-medium { display: none !important; }
	#header .header-main .show-for-medium { display: flex !important; }
	#header .header-main .show-for-medium.flex-left { order: -1; margin-right: 14px; }
	#header .header-main #logo { flex: 1 1 auto; }
	.banner .dr-hero-title { font-size: 44px; }
	.banner .dr-cat-title-lg { font-size: 28px; }
	.banner .dr-cat-title { font-size: 18px; }
	.dr-cat-link { font-size: 11.5px; }
	.dr-cats .dr-cat-btn.button { font-size: 12.5px !important; }
	.dr-step, .dr-step-desc { padding-left: 60px; }
	.dr-testi.testimonial-box { padding: 48px 18px 20px; }
}

/* Tablet dọc 550–849px */
@media (max-width: 849px) {
	.banner .dr-hero-title { font-size: 42px; }
	.dr-hero .overlay { background: linear-gradient(180deg, rgba(42, 70, 28, .9) 0%, rgba(60, 96, 38, .82) 100%) !important; }
	.dr-hero .text-box .text-inner { padding-left: 24px !important; padding-right: 24px !important; }
	.dr-title { font-size: 32px; }
	.dr-cta-title { font-size: 30px; }
	.dr-eyebrow { font-size: 17px; }
	.banner .dr-cat-title-lg { font-size: 26px; margin-bottom: 16px; }
	.dr-cat--main .dr-eyebrow { font-size: 17px; }
	.banner .dr-cat-title { font-size: 17px; }
	.dr-cat-link { font-size: 11px; }
	.dr-cats .dr-cat-btn.button { font-size: 12px !important; min-height: 42px; }
	.dr-story-media { margin-bottom: 10px; }
	.dr-testi.testimonial-box { padding: 46px 16px 18px; grid-template-columns: 40px 1fr; column-gap: 10px; }
	.dr-testi .testimonial-text { font-size: 14px; }
	.dr-blog-grid .post-title { font-size: 15px; }
	.dr-news-title { margin-bottom: 18px; }
	.dr-footer .col { padding-bottom: 20px; }
	.absolute-footer .footer-primary, .absolute-footer .footer-secondary { float: none; text-align: center; width: 100%; }
	.absolute-footer .footer-secondary { margin-top: 6px; }
}

/* Mobile < 550px */
@media only screen and (max-width: 549px) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
	.banner .dr-hero-title { font-size: 34px; }
	.dr-hero .text-box .text-inner { padding-left: 18px !important; padding-right: 18px !important; }
	.dr-hero .button { margin-right: 8px; font-size: 13px; }
	.dr-hero-text .dr-eyebrow { font-size: 18px; }
	.dr-hero-desc { font-size: 15px; }
	.dr-hero .banner-bg:before, .dr-hero .banner-bg:after { display: none; }
	.dr-title { font-size: 27px; }
	.dr-cta-title { font-size: 23px; }
	.banner .dr-cat-title-lg { font-size: 24px; }
	.banner .dr-cat-title { font-size: 17px; }
	.dr-cats .dr-cat-btn.button { font-size: 12px !important; min-height: 40px; line-height: 32px; }
	.dr-step, .dr-step-desc { padding-left: 56px; }
	.dr-step-num { font-size: 28px; }
	.dr-badge-safe .text-inner { width: 80px; height: 80px; }
	.dr-badge-safe strong { font-size: 15px; }
	.dr-badge-safe p { font-size: 9px; }
	.dr-news-title { font-size: 20px; margin-bottom: 16px; }
	.dr-news-form .wpcf7-form > p { flex-wrap: wrap; }
	.dr-news-form .wpcf7-form-control-wrap, .dr-news-form input[type=submit] { width: 100% !important; flex: 1 1 100%; }
	.product-small .box-text-products { padding: 12px 8px 14px !important; }
	.product-small .product-title { font-size: 13.5px; }
	.product-small .price .amount { font-size: 15px; }
	.product-small .add-to-cart-button .button, .product-small .add-to-cart-button a { padding: 0 10px; font-size: 11px; min-height: 32px; line-height: 28px; }
	.dr-tabs > .nav { gap: 6px; }
	.dr-tabs > .nav > li > a { padding: 6px 12px !important; font-size: 11.5px; }
	.dr-testi.testimonial-box { padding: 46px 20px 20px; }
	.dr-footer-logo { font-size: 26px; }
}

/* Điện thoại nhỏ < 380px */
@media only screen and (max-width: 379px) {
	.banner .dr-hero-title { font-size: 29px; }
	.dr-hero .button { padding-left: 18px !important; padding-right: 18px !important; }
	.dr-title { font-size: 24px; }
	.banner .dr-cat-title-lg { font-size: 21px; }
	.banner .dr-cat-title { font-size: 15px; }
	.dr-cat-link { font-size: 10px; }
	.dr-tabs > .nav > li > a { padding: 5px 9px !important; font-size: 10.5px; }
	.product-small .add-to-cart-button .button, .product-small .add-to-cart-button a { padding: 0 6px; font-size: 10px; }
}

/* ---------- 10. Nội dung nhập từ evdtech.vn ---------- */
/* Video YouTube trong bài: tự co giãn 16:9 */
.dr-video { position: relative; width: 100%; max-width: 860px; margin: 0 auto 24px; padding-top: 56.25%; border-radius: var(--dr-radius); overflow: hidden; background: #000; }
.dr-video iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
/* Ảnh trong bài viết / trang */
.entry-content img, .page-wrapper .col-inner img.aligncenter { max-width: 100%; height: auto; border-radius: 12px; }
.entry-content .dr-img, p.dr-img { text-align: center; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--dr-heading); margin-top: 1.2em; }
.entry-content ul li, .entry-content ol li { margin-bottom: .4em; }
.title-page { color: var(--dr-heading); font-weight: 800; margin-bottom: 20px; }
/* Trang chủ: đoạn giới thiệu Dr.ECA + nút xem video */
.dr-story-lead { color: var(--dr-text); font-size: 15.5px; line-height: 1.75; margin-bottom: 24px !important; }
.dr-cta .video-button-wrapper { margin-bottom: 18px; }
.dr-cta .video-button-wrapper .button { color: #fff !important; border-color: rgba(255, 255, 255, .85) !important; animation: drPulse 2.6s infinite; }
.dr-cta .video-button-wrapper .button:hover { background: var(--dr-primary) !important; border-color: var(--dr-primary) !important; }
/* Dòng lưu ý cuối footer */
.dr-footer-note { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 10px; padding-top: 18px; }
.dr-footer-note p { font-size: 12.5px !important; font-style: italic; color: rgba(255, 255, 255, .45) !important; margin: 0; }
/* Ảnh trong các trang (Giới thiệu, chính sách…) không quá to */
.page-wrapper .col-inner img.aligncenter { max-width: min(100%, 760px); }
.page-wrapper .col-inner img[width="200"] { width: 200px; }
