/*
Theme Name: Alolamdep Child (Flatsome)
Theme URI: https://alolamdep.com
Description: Child theme cho Flatsome — bảng màu hồng đất #DE7386, layout biên tập cho website mỹ phẩm/affiliate Alolamdep.
Author: Alolamdep
Template: flatsome
Version: 1.0.0
Text Domain: alolamdep-child
*/

:root{
  --ink:#2b2220;
  --ink-soft:#6b5d59;
  --paper:#fbf6f4;
  --rose:#DE7386;
  --rose-deep:#c05a6e;
  --rose-pale:#f9e6e9;
  --sage:#8fa888;
  --sage-pale:#eaf0e6;
  --line:rgba(43,34,32,.1);
}

/* ===== Font & màu nền chung ===== */
body{font-family:'Inter', -apple-system, sans-serif;color:var(--ink);background:var(--paper)}
h1,h2,h3,h4,h5,h6{font-family:'Plus Jakarta Sans', sans-serif;font-weight:800}
a{color:var(--ink)}
a:hover{color:var(--rose-deep)}

/* ===== Utility bar (tagline + social) — chèn qua hook flatsome_before_header ===== */
.alo-utilitybar{background:var(--ink);color:#e9dcd7}
.alo-utilitybar-inner{display:flex;align-items:center;justify-content:space-between;padding:8px 24px;font-size:11.5px;max-width:1360px;margin:0 auto}
.alo-utilitybar-tagline{opacity:.85}
.alo-utilitybar-social{display:flex;gap:16px}
.alo-utilitybar-social a{color:#e9dcd7 !important;font-weight:600}
.alo-utilitybar-social a:hover{color:var(--rose) !important}

/* ===== Header / nav Flatsome ===== */
#header, .header-wrapper{border-bottom:1px solid var(--line);background:#fffdfc}
.nav > li > a{font-family:'Plus Jakarta Sans', sans-serif;font-weight:600}
.nav > li.current > a, .nav > li:hover > a{color:var(--rose) !important}
.alo-menu-cta{display:inline-flex}

/* ===== Nút / CTA ===== */
.button, button[type="submit"], input[type="submit"]{
  background:var(--rose) !important;border-color:var(--rose) !important;color:#fff !important;
  font-family:'Plus Jakarta Sans', sans-serif;font-weight:700;border-radius:8px !important;
}
.button:hover{background:var(--rose-deep) !important}

/* ===== Widget ===== */
.widget{background:#fff;border-radius:16px;box-shadow:0 3px 14px rgba(43,34,32,.06)}
.widget-title{font-family:'Plus Jakarta Sans', sans-serif;font-weight:800;color:var(--ink)}

/* ===== Footer ===== */
#footer, .footer-wrapper{background:var(--ink) !important;color:#e9dcd7 !important}
#footer a{color:#e9dcd7 !important}
#footer a:hover{color:var(--rose) !important}

/* ===== Rating sao ===== */
.star-rating{color:var(--rose) !important}

/* ===== Tag mỹ phẩm ===== */
.alolamdep-ingredient-tag{display:inline-block;background:var(--sage-pale);color:#4d6b48;font-family:'Plus Jakarta Sans', sans-serif;font-weight:700;font-size:11.5px;padding:8px 14px;border-radius:999px}

/* ===== Disclosure affiliate ===== */
.alolamdep-disclosure{background:var(--rose-pale);color:var(--rose-deep);border-radius:14px;padding:16px 20px;font-size:13px}

/* ==========================================================================
   Custom markup — front-page.php / category.php / single.php
   (giống hệt bản JNews — các class .alo-* độc lập với theme cha)
   ========================================================================== */
.alo-page{max-width:1360px;width:100%;margin:0 auto;padding:0 24px;box-sizing:border-box;font-family:'Inter',sans-serif;color:var(--ink)}
.alo-page a{color:inherit;text-decoration:none}
.alo-page a:hover{color:var(--rose-deep)}
.alo-page h1,.alo-page h2,.alo-page h3,.alo-page h4{font-family:'Plus Jakarta Sans',sans-serif;margin:0}
.alo-ph{background:repeating-linear-gradient(135deg,#f0dee1,#f0dee1 8px,#f7e9eb 8px,#f7e9eb 16px);display:flex;align-items:center;justify-content:center;color:#a97e87;font:600 11px ui-monospace,monospace;text-align:center;box-sizing:border-box}
.alo-stars{color:var(--rose);font-size:13px;letter-spacing:1px}
.alo-rating-num{font:700 12px 'Plus Jakarta Sans',sans-serif;color:var(--ink-soft);margin-left:4px}
.alo-cta{display:inline-flex;align-items:center;gap:6px;background:var(--rose);color:#fff !important;font:700 13px 'Plus Jakarta Sans',sans-serif;padding:10px 18px;border-radius:8px;white-space:nowrap}
.alo-cta:hover{background:var(--rose-deep);color:#fff !important}
.alo-price{font:700 14px 'Plus Jakarta Sans',sans-serif;color:var(--rose-deep)}
.alo-eyebrow{display:inline-block;font:700 11px 'Plus Jakarta Sans',sans-serif;text-transform:uppercase;letter-spacing:.08em;color:var(--rose)}
.alo-breadcrumb{padding:20px 0 0;font-size:12px;color:var(--ink-soft)}
.alo-breadcrumb a{color:var(--ink-soft)}

/* hero (front-page) */
.alo-hero{position:relative;height:380px;margin:20px 0}
.alo-hero .alo-ph{position:absolute;inset:0;border-radius:16px}
.alo-ov{position:absolute;inset:0;background:linear-gradient(0deg,rgba(43,20,25,.82),rgba(43,20,25,.05) 60%);display:flex;flex-direction:column;justify-content:flex-end;padding:40px;border-radius:16px}
.alo-hero .alo-eyebrow{color:#f3c9d1}
.alo-hero h1{color:#fff;font-size:34px;max-width:640px;line-height:1.2;margin:10px 0}
.alo-hero h1 a{color:#fff !important}

/* featured cards grid */
.alo-cards{display:grid;grid-template-columns:2fr 1fr 1fr;gap:20px;padding:20px 0 36px}
.alo-art{border-radius:14px;overflow:hidden;box-shadow:0 3px 14px rgba(43,34,32,.08);background:#fff}
.alo-art .alo-ph{height:190px;position:relative;display:flex}
.alo-art.big .alo-ph{height:280px}
.alo-rating-badge{position:absolute;top:10px;right:10px;background:#fff;border-radius:8px;padding:4px 8px;font:700 11px 'Plus Jakarta Sans',sans-serif;box-shadow:0 2px 6px rgba(0,0,0,.15)}
.alo-art .alo-body{padding:16px}
.alo-art h3{font-size:15px;font-weight:700;line-height:1.35;margin:6px 0}

/* section blocks */
.alo-block{padding:8px 0 40px}
.alo-blockhd{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:18px;border-bottom:2px solid var(--ink);padding-bottom:10px}
.alo-blockhd h2{font-size:22px;font-weight:800}
.alo-ranklist{display:flex;flex-direction:column;gap:12px}
.alo-rank{display:grid;grid-template-columns:44px 90px 1fr auto auto auto;align-items:center;gap:18px;background:#fff;border-radius:14px;padding:14px 18px;box-shadow:0 2px 10px rgba(43,34,32,.06)}
.alo-rnum{width:32px;height:32px;border-radius:50%;background:var(--rose);color:#fff;font:800 13px 'Plus Jakarta Sans',sans-serif;display:flex;align-items:center;justify-content:center}
.alo-rank .alo-ph{width:90px;height:64px;border-radius:8px;display:flex}
.alo-rank h4{font-size:14px;font-weight:700}
.alo-glossary{display:flex;flex-wrap:wrap;gap:10px}
.alo-gtag{background:var(--sage-pale);color:#4d6b48;font:700 11.5px 'Plus Jakarta Sans',sans-serif;padding:8px 14px;border-radius:999px}
.alo-disclosure{background:var(--rose-pale);border-radius:14px;padding:16px 20px;font-size:12px;color:var(--rose-deep);margin:0 0 36px}

/* category / article layout */
.alo-chero{padding:18px 0 30px;border-bottom:1px solid var(--line)}
.alo-chero h1{font-size:32px;font-weight:800;margin:8px 0 10px}
.alo-chero p{color:var(--ink-soft);font-size:14px;max-width:720px;line-height:1.6}
.alo-count{font-size:12px;color:var(--ink-soft)}
.alo-layout{display:grid;grid-template-columns:2.2fr 1fr;gap:32px;padding:32px 0}
.alo-artgrid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.alo-artgrid .alo-art .alo-ph{height:170px;position:relative;display:flex}
.alo-artgrid .alo-body{padding:16px}
.alo-excerpt{font-size:12.5px;color:var(--ink-soft);line-height:1.5}
.alo-meta{font-size:11px;color:var(--ink-soft);margin-top:8px}
.alo-pagination{display:flex;justify-content:center;gap:8px;margin-top:30px}
.alo-pagination .page-numbers{display:flex;align-items:center;justify-content:center;min-width:34px;height:34px;padding:0 8px;border-radius:8px;border:1px solid var(--line);font:600 12.5px 'Plus Jakarta Sans',sans-serif}
.alo-pagination .page-numbers.current{background:var(--rose);border-color:var(--rose);color:#fff}

.alo-side{display:flex;flex-direction:column;gap:24px}
.alo-widget{background:#fff;border-radius:16px;padding:18px;box-shadow:0 3px 14px rgba(43,34,32,.06)}
.alo-widget h4{font:700 12px 'Plus Jakarta Sans',sans-serif;text-transform:uppercase;letter-spacing:.06em;color:var(--ink);margin-bottom:14px}
.alo-wrank{display:flex;gap:12px;align-items:center;padding:9px 0;border-bottom:1px solid var(--line)}
.alo-wrank:last-child{border-bottom:none}
.alo-wrank .alo-ph{width:52px;height:52px;flex:none;border-radius:8px;display:flex}
.alo-wrank h5{font-size:12.5px;font-weight:700;line-height:1.3;margin:0}
.alo-catlist a{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--line);font-size:12.5px}
.alo-catlist a:last-child{border-bottom:none}
.alo-catlist span{color:var(--ink-soft)}
.alo-promo{background:var(--rose-pale);text-align:center}
.alo-promo h4{font-size:14px;font-weight:800;margin-bottom:8px}
.alo-promo p{font-size:12px;color:var(--ink-soft);margin-bottom:12px}

/* article */
.alo-ahead{padding:22px 0 0;max-width:880px}
.alo-ahead h1{font-size:34px;font-weight:800;line-height:1.2;margin:10px 0 14px}
.alo-byline{display:flex;align-items:center;gap:12px;font-size:12.5px;color:var(--ink-soft);margin-bottom:22px}
.alo-av{border-radius:50%}
.alo-herofig{padding:0 0 30px}
.alo-toc{background:var(--rose-pale);border-radius:16px;padding:20px 24px;margin-bottom:28px}
.alo-toc h4{font:800 13px 'Plus Jakarta Sans',sans-serif;text-transform:uppercase;letter-spacing:.05em;margin-bottom:12px;color:var(--rose-deep)}
.alo-toc ol{margin:0;padding-left:18px;font-size:13px;line-height:2}
.alo-body-copy{font-size:15.5px;line-height:1.8;color:#3a2f2c;max-width:760px}
.alo-body-copy h2{font-size:22px;font-weight:800;margin:34px 0 14px}
.alo-body-copy h3{font-size:17px;font-weight:700;margin:26px 0 10px}
.alo-body-copy p{margin:0 0 16px}
.alo-body-copy img{max-width:100%;height:auto;border-radius:14px;margin:22px 0}
.alo-recobox{display:grid;grid-template-columns:120px 1fr auto;gap:18px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;margin:26px 0;box-shadow:0 3px 14px rgba(43,34,32,.06)}
.alo-recobox .alo-ph{height:100px;margin:0;border-radius:10px;display:flex}
.alo-recobox h4{font-size:14.5px;font-weight:700;margin-bottom:6px}
.alo-share{display:flex;gap:10px;margin:30px 0}
.alo-share a{width:38px;height:38px;border-radius:50%;background:var(--rose-pale);color:var(--rose-deep) !important;display:flex;align-items:center;justify-content:center;font:700 12px 'Plus Jakarta Sans',sans-serif}
.alo-authorbox{display:flex;gap:18px;background:var(--sage-pale);border-radius:16px;padding:22px;margin:36px 0;align-items:flex-start}
.alo-authorbox h4{font-size:15px;font-weight:800;margin-bottom:6px}
.alo-authorbox p{font-size:13px;color:#4d6b48;line-height:1.6;margin:0}
.alo-related h2{font-size:20px;font-weight:800;margin-bottom:18px}
.alo-relgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.alo-relgrid .alo-art .alo-ph{height:140px;margin:0;border-radius:0;display:flex}
.alo-relgrid .alo-body{padding:14px}
.alo-relgrid h3{font-size:13.5px;font-weight:700;line-height:1.35;margin:0}
.alo-comments{margin-top:40px;border-top:1px solid var(--line);padding-top:26px}

/* ==========================================================================
   Trang chủ — chrome tự viết hoàn toàn (không dùng get_header/get_footer của
   Flatsome) để khớp 1:1 với Homepage.dc.html (logo tròn, nav dạng pill, toplist
   2 cột, khối "Bài viết mới nhất" dạng tab). Namespace dưới .alo-home.
   ========================================================================== */
.alo-home{margin:0;background:#efe9e5;font-family:'Inter',sans-serif;color:var(--ink)}
body.alo-home{margin:0;padding:0;width:100%;overflow-x:hidden}
.alo-home .page{width:100%;max-width:1360px;margin:0 auto;background:var(--paper);box-sizing:border-box}
.alo-home,html.alo-home{width:100%;overflow-x:hidden}
.alo-home .cards,.alo-home .top-cols{padding:0}
.alo-home header.top{display:flex;align-items:center;justify-content:space-between;padding:20px 36px;background:#fffdfc;border-bottom:1px solid var(--line);gap:16px}
.alo-home .logo{display:flex;align-items:center;gap:10px;font:800 22px 'Plus Jakarta Sans',sans-serif;flex:none}
.alo-home .logo .dot{width:32px;height:32px;border-radius:50%;background:var(--rose);display:flex;align-items:center;justify-content:center;color:#fff;font-size:15px}
.alo-home nav{display:flex;gap:4px;background:var(--rose-pale);border-radius:999px;padding:6px;flex:none}
.alo-home nav a{padding:8px 13px;border-radius:999px;font:600 12px 'Plus Jakarta Sans',sans-serif;white-space:nowrap;color:var(--ink)}
.alo-home nav a.on{background:var(--rose);color:#fff}
.alo-home .right{display:flex;align-items:center;gap:14px;flex:none}
.alo-home .search{width:36px;height:36px;border-radius:50%;background:var(--rose-pale);display:flex;align-items:center;justify-content:center;font-size:14px;color:var(--rose-deep)}
.alo-home .hero-c{display:grid;grid-template-columns:1.6fr 1fr;gap:0;background:#fff}
.alo-home .hero-c .main{position:relative;height:400px}
.alo-home .hero-c .main .alo-ph{position:absolute;inset:0;border-radius:0}
.alo-home .hero-c .main .ov{position:absolute;inset:0;background:linear-gradient(0deg,rgba(43,20,25,.82),rgba(43,20,25,.05) 60%);display:flex;flex-direction:column;justify-content:flex-end;padding:32px}
.alo-home .hero-c .main .alo-eyebrow{color:#f3c9d1}
.alo-home .hero-c .main h1{color:#fff;font-size:26px;line-height:1.25;margin:8px 0}
.alo-home .hero-c .main .alo-meta{color:#f3d9dd;font-size:11.5px}
.alo-home .hero-c .side{display:flex;flex-direction:column;height:100%;border-left:1px solid var(--line)}
.alo-home .hero-c .pick{display:flex;gap:12px;align-items:center;flex:1;padding:0 20px;border-top:1px solid var(--line)}
.alo-home .hero-c .pick:first-child{border-top:none}
.alo-home .hero-c .pick .alo-ph{width:88px;height:70px;border-radius:8px;flex:none}
.alo-home .hero-c .pick h4{font-size:14.5px;font-weight:700;line-height:1.4;margin:0}
.alo-home .top-cols{display:grid;grid-template-columns:1fr 1fr;gap:28px;padding:8px 40px 40px}
.alo-home .top-cols .alo-rank{grid-template-columns:36px 64px 1fr auto auto;gap:12px;padding:12px 14px}
.alo-home .top-cols .alo-rank .alo-ph{width:64px;height:48px}
.alo-home .top-cols .alo-rank .alo-rnum{width:28px;height:28px;font-size:11px}
.alo-home .top-cols .alo-rank h4{font-size:13px}
.alo-home .top-cols .alo-rank .alo-price{font-size:12.5px}
.alo-home .top-cols .alo-rank .alo-cta{padding:8px 12px;font-size:12px}
.alo-home .cat-block{display:grid;grid-template-columns:200px 1fr;gap:32px;padding:8px 40px 40px}
.alo-home .cat-list{display:flex;flex-direction:column;gap:2px}
.alo-home .cat-list a{padding:10px 12px;border-radius:8px;font:600 13px 'Plus Jakarta Sans',sans-serif;color:var(--ink-soft)}
.alo-home .cat-list a.on{background:var(--rose-pale);color:var(--rose-deep)}
.alo-home .cat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.alo-home .cat-card{border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 2px 10px rgba(43,34,32,.06)}
.alo-home .cat-card .alo-ph{height:110px}
.alo-home .cat-card .body{padding:12px 14px}
.alo-home .cat-card h4{font-size:13px;font-weight:700;line-height:1.35;margin:0}
.alo-home section.alo-block{padding:8px 40px 40px}
.alo-home .alo-blockhd h2{font-size:22px;font-weight:800}
.alo-home .alo-disclosure{margin:0 40px 36px}
.alo-home footer{background:var(--ink);color:#e9dcd7;padding:34px 40px;display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:24px;font-size:12px}
.alo-home footer h5{font:700 11px 'Plus Jakarta Sans',sans-serif;text-transform:uppercase;letter-spacing:.06em;color:#fff;margin-bottom:10px}
.alo-home footer a{color:#e9dcd7}
.alo-home footer .logo{font-size:20px}
@media (max-width:1100px){
  .alo-home .page{width:100%}
  .alo-home .hero-c{grid-template-columns:1fr}
  .alo-home .top-cols{grid-template-columns:1fr}
  .alo-home .cat-block{grid-template-columns:1fr}
  .alo-home .cat-grid{grid-template-columns:1fr 1fr}
  .alo-home nav{display:none}
}

@media (max-width: 1000px){
  .alo-cards{grid-template-columns:1fr}
  .alo-layout{grid-template-columns:1fr}
  .alo-artgrid{grid-template-columns:1fr}
  .alo-relgrid{grid-template-columns:1fr}
  .alo-rank{grid-template-columns:32px 70px 1fr;row-gap:8px}
  .alo-rank .alo-price,.alo-rank .alo-cta{grid-column:2/4}
}
