/* Đẹp Mỗi Ngày (tintuc11) — trang chủ theo mockup Astra 10-01 (mockup 778px -> x1.85 ở 1440) */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700&family=Noto+Serif:wght@400;500;600;700&display=swap');
:root { --dm-p: #e26081; --dm-p2: #ed8293; --dm-pl: #fdeef2; --dm-ink: #1f1a1c; --dm-mut: #6b6467; --dm-serif: 'Noto Serif', Georgia, serif; --dm-sans: 'Be Vietnam Pro', Arial, sans-serif; }
body, p, li, a, input, button, select, textarea, .nav > li > a { font-family: var(--dm-sans) !important; }
h1, h2, h3, h4, .dm-pt, .dm-h2 { font-family: var(--dm-serif) !important; }
h1 a, h2 a, h3 a, h4 a { font-family: inherit !important; }
body { color: var(--dm-ink); background: #fff; }
#wrapper, #main { background: #fff !important; }

/* ---------- header: chữ trái, logo giữa, tìm kiếm phải, thanh menu hồng ---------- */
#header .header-main { height: 130px; background: #fff; }
#header .header-main .header-inner { max-width: 1340px; }
#logo { width: auto !important; display: flex; flex-direction: column; align-items: center; }
#logo a { display: inline-flex !important; align-items: center; gap: 14px; font-family: var(--dm-serif) !important; font-size: 52px !important; font-weight: 600; color: var(--dm-p) !important; text-transform: none !important; letter-spacing: 0; line-height: 1.05; white-space: nowrap; }
#logo a::before { content: ''; flex: 0 0 82px; width: 82px; height: 82px; background: url(icons/logo.png) center/contain no-repeat; }
#logo::after { content: 'Hiểu làn da. Yêu chính mình.'; display: block; margin: 4px 0 0 96px; font: 400 17px/1.3 var(--dm-sans); color: #555; text-transform: none; letter-spacing: .2px; white-space: nowrap; }
#header .header-main .flex-left .html, #header .header-main .flex-left .html * { font: 400 19px/1.3 var(--dm-sans) !important; color: #444 !important; text-transform: none !important; }
#header .header-search-form { width: 310px; max-width: 310px; }
#header .header-search-form .search-field { height: 54px; border-radius: 30px 0 0 30px !important; border: 1px solid #d9d2d4 !important; border-right: 0 !important; box-shadow: none !important; padding-left: 24px; font-size: 16px; background: #fff; }
#header .header-search-form .ux-search-submit { height: 54px; border-radius: 0 30px 30px 0 !important; background: #fff !important; border: 1px solid #d9d2d4; border-left: 0; color: var(--dm-p) !important; width: 56px; }
#header .header-search-form .ux-search-submit i { color: var(--dm-p) !important; font-size: 18px; }
#header .header-bottom { background: var(--dm-p) !important; min-height: 56px; }
#header .header-bottom .header-nav { justify-content: center; }
#header .header-bottom-nav > li { margin: 0 34px !important; }
#header .header-bottom-nav > li > a { color: #fff !important; font-size: 19px !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: 0; white-space: nowrap; padding: 15px 0; }
#header .header-bottom-nav > li > a:hover, #header .header-bottom-nav > li.active > a { color: #fff !important; opacity: .85; }
#header .header-bottom-nav > li > a::before, #header .header-bottom-nav > li > a::after { display: none !important; }
.header-bottom-nav.nav-line-bottom > li > a:before { display: none; }
#header .mobile-nav .icon-menu, #header .mobile-nav i { color: var(--dm-p) !important; }
.absolute-footer { display: none !important; }

/* ---------- chung ---------- */
.dm-sec .col, .dm-footer .col { padding-bottom: 0 !important; }
.dm-sec a { color: inherit; }
.dm-pc img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dm-pi { display: block; overflow: hidden; background: #f3e9ec; border-radius: 2px; }
.dm-k { display: block; font: 600 15px/1.2 var(--dm-sans) !important; color: var(--dm-p) !important; text-transform: uppercase; letter-spacing: .3px; margin-bottom: 8px; }
.dm-pt { margin: 0; font-weight: 600; color: var(--dm-ink); letter-spacing: -.1px; }
.dm-pt a { color: var(--dm-ink) !important; }
.dm-pt a:hover { color: var(--dm-p) !important; }
.dm-e { color: var(--dm-mut); font-size: 16.5px; line-height: 1.5; margin-top: 8px; }
.dm-d { display: block; color: #8d8689; font-size: 14px; margin-top: 10px; }
.dm-head { display: flex; align-items: center; gap: 26px; margin-bottom: 30px; }
.dm-ht { flex: 0 0 auto; }
.dm-h2 { margin: 0 !important; font-size: 46px !important; line-height: 1.15 !important; font-weight: 600 !important; color: #111 !important; flex: 0 0 auto; width: fit-content; white-space: nowrap; }
.dm-sub { font-size: 19px; color: var(--dm-mut); margin-top: 6px; }
.dm-line { flex: 1 1 auto; min-width: 40px; height: 2px; background: var(--dm-p2); align-self: center; }
.dm-arrows { display: flex; gap: 14px; flex: 0 0 auto; }
.dm-arrows a { width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid var(--dm-p2); display: flex; align-items: center; justify-content: center; color: var(--dm-p) !important; font-size: 30px; line-height: 1; padding-bottom: 4px; }
.dm-all { flex: 0 0 auto; color: var(--dm-p) !important; font-size: 17px; font-weight: 500; }

/* ---------- 1. bài nổi bật ---------- */
.section.dm-top { padding: 22px 0 0 !important; }
.dm-feat { display: grid; grid-template-columns: minmax(0, 666fr) minmax(0, 646fr); gap: 0 26px; }
.dm-pc-lead .dm-pi { aspect-ratio: 666 / 390; }
.dm-pc-lead .dm-pb { padding-top: 22px; }
.dm-pc-lead .dm-pt { font-size: 38px; line-height: 1.22; }
.dm-pc-lead .dm-e { font-size: 18px; max-width: 620px; }
.dm-feat-r { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; align-content: start; }
.dm-pc-sm .dm-pi { aspect-ratio: 321 / 181; }
.dm-pc-sm .dm-pb { padding-top: 16px; }
.dm-pc-sm .dm-pt { font-size: 22px; line-height: 1.32; }
.dm-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 30px; }
.dm-cat { display: flex; align-items: center; gap: 22px; background: var(--dm-pl); height: 125px; padding: 0 30px 0 42px; }
.dm-cat img { width: 78px; height: 78px; flex: 0 0 78px; object-fit: contain; }
.dm-cat b { display: block; font: 600 26px/1.2 var(--dm-serif); color: var(--dm-p); }
.dm-cat span { display: block; font-size: 16px; color: #555; margin-top: 8px; white-space: nowrap; }

/* ---------- 2. xu hướng ---------- */
.section.dm-trend { padding: 52px 0 0 !important; }
.dm-trend-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 28px) / 4); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.dm-trend-track::-webkit-scrollbar { display: none; }
.dm-trend-track > .dm-pc { scroll-snap-align: start; min-width: 0; }
.dm-pc-tr .dm-pi { aspect-ratio: 324 / 264; }
.dm-pc-tr .dm-pb { padding-top: 18px; }
.dm-pc-tr .dm-pt { font-size: 24px; line-height: 1.32; }
.dm-pc-tr .dm-d { display: none; }

/* ---------- 3. bài viết mới + cột phải ---------- */
.section.dm-new { padding: 58px 0 60px !important; }
.dm-new-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0 34px; }
.dm-new-main { min-width: 0; }
.dm-head-tabs .dm-line { flex: 0 1 220px; }
.dm-tabs { display: flex; gap: 6px; margin-left: auto; border-bottom: 1px solid #e7e0e2; }
.dm-tabs a { padding: 6px 16px 12px; font-size: 17px; color: #555 !important; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.dm-tabs a.on { color: var(--dm-p) !important; border-color: var(--dm-p); font-weight: 600; }
.dm-new-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 24px; }
.dm-pc-nw .dm-pi { aspect-ratio: 305 / 190; }
.dm-pc-nw .dm-pb { padding-top: 16px; }
.dm-pc-nw .dm-pt { font-size: 23px; line-height: 1.32; }
.dm-pc-nw .dm-e { font-size: 16px; }
.dm-more-wrap { text-align: center; margin-top: 34px; }
.dm-more { display: inline-block; border: 1.5px solid var(--dm-p); color: var(--dm-p) !important; border-radius: 4px; padding: 14px 44px; font-size: 18px; font-weight: 500; }
.dm-more:hover { background: var(--dm-p); color: #fff !important; }
.dm-side { border-left: 1px solid #eadfe2; padding-left: 16px; align-self: stretch; }
.dm-side > div { position: relative; }
.dm-nl { background: var(--dm-pl); padding: 32px 20px 30px; }
.dm-nl h3, .dm-pop h3 { margin: 0 0 14px; font-size: 30px; line-height: 1.2; font-weight: 600; color: var(--dm-p); border-left: 3px solid var(--dm-p); padding-left: 14px; }
.dm-nl-p { font-size: 17px; line-height: 1.6; color: #555; margin-bottom: 22px; }
.dm-nl form { margin: 0; }
.dm-nl input[type=email] { width: 100%; height: 54px; border: 1px solid #e3d5da; border-radius: 4px; background: #fff; padding: 0 18px; font-size: 16px; box-shadow: none; margin: 0 0 16px; }
.dm-nl button { width: 100%; height: 54px; background: var(--dm-p); color: #fff; border: 0; border-radius: 4px; font-size: 18px; font-weight: 600; margin: 0; text-transform: none; letter-spacing: 0; }
.dm-nl-ok { display: none; color: var(--dm-p); font-size: 15px; margin-top: 10px; }
.dm-nl small { display: block; font-size: 15px; color: #666; margin-top: 18px; }
.dm-pop { margin-top: 36px; position: sticky; top: 20px; }
.dm-pop h3 { border-left: 3px solid var(--dm-p); padding-bottom: 14px; margin-bottom: 0; box-shadow: 0 2px 0 var(--dm-p2); }
.dm-rank { list-style: none; margin: 0; padding: 0; }
.dm-rank li { display: flex; align-items: center; gap: 22px; padding: 24px 0; border-bottom: 1px solid #ece4e6; margin: 0; }
.dm-rank b { flex: 0 0 auto; font: 500 34px/1 var(--dm-serif); color: var(--dm-p); }
.dm-rank a { font: 400 17.5px/1.45 var(--dm-serif) !important; color: #222 !important; }

/* ---------- 4. video ngắn ---------- */
.section.dm-video { padding: 50px 0 40px !important; }
.dm-vgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 30px; }
.dm-vc { display: block; min-width: 0; }
.dm-vi { position: relative; display: block; aspect-ratio: 324 / 250; background: #f1dfe4 center/cover no-repeat; border-radius: 3px; }
.dm-vi i { position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; border: 3px solid #fff; background: rgba(0, 0, 0, .18); }
.dm-vi i::after { content: ''; position: absolute; left: 26px; top: 19px; border-left: 24px solid #fff; border-top: 15px solid transparent; border-bottom: 15px solid transparent; }
.dm-vc b { display: block; margin-top: 16px; font: 600 20px/1.35 var(--dm-serif); color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 5. review ---------- */
.section.dm-review { padding: 52px 0 60px !important; }
.dm-rgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 30px; }
.dm-ri { display: block; aspect-ratio: 424 / 207; background: #f3ece6 center/cover no-repeat; border-radius: 3px; }
.dm-rc h3 { margin: 18px 0 6px; font-size: 23px; line-height: 1.3; font-weight: 600; }
.dm-rc h3 a { color: #222 !important; }
.dm-stars { color: var(--dm-p); font-size: 24px; letter-spacing: 3px; line-height: 1.3; }
.dm-rd { font-size: 17px; color: var(--dm-mut); margin: 8px 0 10px; }
.dm-rl { color: var(--dm-p) !important; font-size: 17px; }

/* ---------- footer ---------- */
.section.dm-footer { padding: 52px 0 0 !important; color: #fff; }
#footer .section.dm-footer, #footer > .section:first-child { border-top: 0 !important; }
.dm-ft { display: grid; grid-template-columns: 1.45fr .78fr .95fr 1.05fr; gap: 0 40px; padding-bottom: 40px; }
.dm-ft-logo { display: inline-flex; align-items: center; gap: 14px; color: #fff !important; }
.dm-ft-logo img { width: 76px; height: 76px; }
.dm-ft-logo span { font: 600 46px/1.1 var(--dm-serif); color: #fff; white-space: nowrap; }
.dm-ft-desc { margin-top: 18px; font-size: 18px; line-height: 1.6; color: #fff; }
.dm-ft-col h4 { margin: 4px 0 20px; font: 600 20px/1.2 var(--dm-sans) !important; color: #fff; }
.dm-ft-col a, .dm-ft-addr { display: flex; align-items: flex-start; gap: 18px; color: #fff !important; font-size: 17px; line-height: 1.5; margin-bottom: 12px; opacity: .95; }
.dm-ft-col img { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 2px; }
.dm-ft-bot { display: flex; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, .45); padding: 24px 0 30px; font-size: 15.5px; color: #fff; }
.dm-ft-bot a { color: #fff !important; }

/* ---------- mobile ---------- */
@media (max-width: 849px) {
  #header .header-main { height: 70px; }
  #logo a { font-size: 26px !important; gap: 8px; }
  #logo a::before { flex-basis: 40px; width: 40px; height: 40px; }
  #logo::after { display: none; }
  .section.dm-top { padding-top: 12px !important; }
  .dm-feat, .dm-new-wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .dm-pc-lead .dm-pt { font-size: 26px; }
  .dm-pc-lead .dm-e { font-size: 16px; }
  .dm-feat-r { gap: 20px 14px; }
  .dm-pc-sm .dm-pt { font-size: 17px; }
  .dm-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
  .dm-cat { height: auto; padding: 16px 12px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .dm-cat img { width: 48px; height: 48px; flex-basis: 48px; }
  .dm-cat b { font-size: 21px; } .dm-cat span { font-size: 14px; white-space: normal; }
  .dm-head { flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
  .dm-h2 { font-size: 32px !important; white-space: normal; }
  .dm-line { display: none; }
  .dm-sub { font-size: 16px; }
  .dm-arrows a { width: 40px; height: 40px; font-size: 24px; }
  .section.dm-trend { padding-top: 36px !important; }
  .dm-trend-track { grid-auto-columns: 72%; gap: 16px; }
  .dm-pc-tr .dm-pt, .dm-pc-nw .dm-pt { font-size: 20px; }
  .section.dm-new { padding: 40px 0 !important; }
  .dm-tabs { margin-left: 0; width: 100%; overflow-x: auto; }
  .dm-tabs a { padding: 6px 10px 10px; font-size: 15px; }
  .dm-new-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .dm-side { border-left: 0; padding-left: 0; }
  .dm-pop { position: static; }
  .dm-vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .dm-vc b { font-size: 17px; white-space: normal; }
  .dm-rgrid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .dm-ft { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .dm-ft-logo span { font-size: 34px; } .dm-ft-logo img { width: 56px; height: 56px; }
  .dm-ft-bot { flex-direction: column; gap: 8px; }
}
/* mid-fix */ @media (min-width: 850px) and (max-width: 1399px) {
  .dm-cat { padding: 0 16px 0 22px; gap: 14px; } .dm-cat img { width: 60px; height: 60px; flex-basis: 60px; }
  .dm-cat b { font-size: 22px; } .dm-cat span { font-size: 14px; }
  .dm-new-wrap { grid-template-columns: minmax(0, 1fr) 300px; gap: 0 28px; }
  .dm-head-tabs { flex-wrap: wrap; } .dm-head-tabs .dm-line { display: none; }
  #header .header-bottom-nav > li { margin: 0 20px !important; }
  .dm-ft-logo span { font-size: 36px; }
}
@media (min-width: 850px) and (max-width: 1199px) {
  #logo a { font-size: 40px !important; } #logo a::before { flex-basis: 60px; width: 60px; height: 60px; } #logo::after { margin-left: 70px; margin-top: -10px; }
  .dm-pc-lead .dm-pt { font-size: 30px; } .dm-pc-sm .dm-pt { font-size: 19px; }
  .dm-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dm-new-wrap { grid-template-columns: minmax(0, 1fr); } .dm-side { border: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; } .dm-pop { margin-top: 0; position: static; }
  .dm-new-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dm-ft { grid-template-columns: 1fr 1fr; gap: 30px; }
} /* /mid-fix */
/* _midwidth: header Flatsome ở 850-1399px (laptop nhỏ/tablet ngang) — menu dựng theo mockup 1440 tràn phải; dùng chung mọi site */
@media (min-width: 850px) and (max-width: 1399px) {
  #header .header-nav-main > li, #header .header-bottom-nav > li { margin-left: 6px !important; margin-right: 6px !important; }
  #header .header-nav-main > li > a, #header .header-bottom-nav > li > a { font-size: 14px !important; }
  #header .header-search-form { max-width: 300px !important; width: 300px !important; margin-left: 20px !important; }
}
@media (min-width: 850px) and (max-width: 1199px) {
  #logo { width: auto !important; max-width: 210px !important; } #logo a { font-size: 21px !important; }
  #header .header-main .flex-right .header-button-1, #header .header-main .flex-right li.html, #header .header-search-form, #top-bar .flex-right { display: none !important; }
  #header .header-nav-main > li, #header .header-bottom-nav > li { margin-left: 3px !important; margin-right: 3px !important; }
  #header .header-nav-main > li > a, #header .header-bottom-nav > li > a { font-size: 13px !important; }
  #header .flex-col { min-width: 0; } #header .header-inner, #header .header-bottom .container { overflow: hidden; }
}
.col-inner a[href^="mailto"], .col-inner a[href^="tel"] { overflow-wrap: anywhere; }
/* ruler:auto BEGIN — tools/astra-bridge/lab/ruler_fix.py, đừng sửa tay */
@media (min-width: 850px) {
  .dm-cat img { width: 100px !important; height: 100px !important; max-width: none !important; flex: 0 0 auto !important; object-fit: contain; }
}
@media (max-width: 849px) {
  .dm-cat img { width: 78px !important; height: 78px !important; }
}
/* ruler:auto END */
/* ruler:manual — đo 10-01: lipstick/hair mockup cao hơn lá/sao (ruler x1.28), lá/sao khớp (x1.04); logo mockup to hơn (x1.34) */
@media (min-width: 850px) {
  .dm-cat img[src*="/icons/leaf.png"], .dm-cat img[src*="/icons/star.png"] { width: 82px !important; height: 82px !important; }
  .dm-cat img[src*="/icons/lipstick.png"], .dm-cat img[src*="/icons/hair.png"] { width: 100px !important; height: 100px !important; }
  .dm-cat { gap: 18px; }
}
@media (min-width: 1200px) {
  #logo a { font-size: 57px !important; gap: 16px; }
  #logo a::before { flex-basis: 92px; width: 92px; height: 92px; }
  #logo::after { margin: -8px 0 0 108px; }
}
@media (min-width: 850px) and (max-width: 1399px) { .dm-cat img[src*="/icons/lipstick.png"], .dm-cat img[src*="/icons/hair.png"] { width: 72px !important; height: 72px !important; } .dm-cat img[src*="/icons/leaf.png"], .dm-cat img[src*="/icons/star.png"] { width: 60px !important; height: 60px !important; } }
@media (max-width: 849px) { .dm-cat img { width: 48px !important; height: 48px !important; } }
@media (min-width: 1200px) { .dm-pc-sm .dm-pt { font-size: 21px; letter-spacing: -.25px; } } /* mockup: tiêu đề thẻ nhỏ 2 dòng */
/* /ruler:manual */

