/* ═══════════════════════════════════════════════════════════
   MIMI MEO — ARTICLE / BLOG STYLES
   Dùng chung cho bai-viet.html và tất cả bai-viet/*.html
════════════════════════════════════════════════════════════ */
:root {
  --rose:    #F25774;
  --blush:   #FCE4EC;
  --gold:    #C9A84C;
  --cream:   #FDF6EF;
  --charcoal:#2C2C2C;
  --mid:     #7A7A7A;
  --light:   #F0EBE8;
  --white:   #FFFFFF;
  --serif:   'Playfair Display', Georgia, serif;
  --sans:    'Be Vietnam Pro', system-ui, sans-serif;
  --radius:  12px;
  --shadow:  0 4px 20px rgba(0,0,0,.08);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--charcoal); background: #fff; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; -webkit-user-drag: none; }
a { text-decoration: none; color: inherit; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 2rem; background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--light);
}
.nav-logo img { height: 36px; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: 0.88rem; font-weight: 500; letter-spacing: .03em; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--rose); }
.nav-right { display: flex; align-items: center; gap: 1rem; }
#lang-toggle {
  background: none; border: 1.5px solid var(--charcoal); border-radius: 4px;
  font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.5rem; cursor: pointer;
  letter-spacing: .1em; transition: .2s;
}
#lang-toggle:hover { border-color: var(--rose); color: var(--rose); }

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 0.75rem 2rem; font-size: 0.8rem; color: var(--mid);
  background: var(--cream); border-bottom: 1px solid var(--light);
}
.breadcrumb a { color: var(--mid); }
.breadcrumb a:hover { color: var(--rose); }
.breadcrumb span { margin: 0 0.4rem; }

/* ── ARTICLE LAYOUT ── */
.article-wrap {
  max-width: 820px; margin: 0 auto; padding: 3rem 1.5rem 5rem;
}
.article-category {
  display: inline-block; background: var(--blush); color: var(--rose);
  font-size: 0.72rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; padding: 0.3rem 0.9rem; border-radius: 30px; margin-bottom: 1.25rem;
}
.article-title {
  font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.25; color: var(--charcoal); margin-bottom: 1rem;
}
.article-meta {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--mid); margin-bottom: 2rem; padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--light);
}
.article-meta-item { display: flex; align-items: center; gap: 0.35rem; }
.article-hero {
  border-radius: var(--radius); overflow: hidden; margin-bottom: 2.5rem; aspect-ratio: 16/9;
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }

/* ── ARTICLE BODY ── */
.article-body { font-size: 1rem; line-height: 1.85; color: #333; }
.article-body h2 {
  font-family: var(--serif); font-size: 1.5rem; color: var(--charcoal);
  margin: 2.5rem 0 0.9rem; padding-top: 2rem; border-top: 1px solid var(--light);
}
.article-body h2:first-child { border-top: none; padding-top: 0; }
.article-body h3 { font-size: 1.15rem; color: var(--charcoal); margin: 1.75rem 0 0.6rem; }
.article-body p { margin-bottom: 1.1rem; }
.article-body ul, .article-body ol { margin: 0.75rem 0 1.25rem 1.5rem; }
.article-body li { margin-bottom: 0.45rem; }
.article-body strong { color: var(--charcoal); font-weight: 600; }
.article-body em { color: var(--rose); font-style: italic; }

/* ── HIGHLIGHT BOX ── */
.tip-box {
  background: var(--blush); border-left: 4px solid var(--rose);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem; margin: 2rem 0; font-size: 0.95rem;
}
.tip-box strong { display: block; margin-bottom: 0.4rem; color: var(--rose); }

/* ── SIZE TABLE ── */
.size-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.88rem; }
.size-table th { background: var(--rose); color: #fff; padding: 0.6rem 1rem; text-align: left; }
.size-table td { padding: 0.55rem 1rem; border-bottom: 1px solid var(--light); }
.size-table tr:hover td { background: var(--cream); }

/* ── PRODUCT CARD IN ARTICLE ── */
.product-card-article {
  border: 1px solid var(--light); border-radius: var(--radius);
  overflow: hidden; margin: 2rem 0; display: flex; gap: 1.5rem; align-items: flex-start;
  background: var(--cream); transition: box-shadow .2s;
}
.product-card-article:hover { box-shadow: var(--shadow); }
.product-card-article img {
  width: 220px; height: 220px; object-fit: cover; flex-shrink: 0;
}
.product-card-info { padding: 1.25rem 1.25rem 1.25rem 0; flex: 1; }
.product-card-info .pcat {
  font-size: 0.72rem; color: var(--mid); text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: 0.4rem;
}
.product-card-info h4 { font-family: var(--serif); font-size: 1.1rem; margin-bottom: 0.5rem; }
.product-card-info p { font-size: 0.9rem; color: #555; margin-bottom: 1rem; line-height: 1.6; }
.btn-shopee {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--rose); color: #fff; padding: 0.65rem 1.4rem;
  border-radius: 30px; font-size: 0.85rem; font-weight: 600;
  transition: background .2s, transform .15s; white-space: nowrap;
}
.btn-shopee:hover { background: #d94565; transform: translateY(-1px); }
.btn-shopee svg { flex-shrink: 0; }

/* ── PRODUCT GRID (3 cols) in article ── */
.product-grid-article {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0;
}
.product-mini-card {
  border: 1px solid var(--light); border-radius: var(--radius); overflow: hidden;
  background: #fff; transition: box-shadow .2s;
}
.product-mini-card:hover { box-shadow: var(--shadow); }
.product-mini-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-mini-info { padding: 0.85rem; }
.product-mini-info h5 { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; line-height: 1.4; }
.product-mini-info .btn-shopee { font-size: 0.78rem; padding: 0.5rem 1rem; width: 100%; justify-content: center; }

/* ── TABLE OF CONTENTS ── */
.toc {
  background: var(--cream); border-radius: var(--radius); padding: 1.5rem;
  margin: 0 0 2.5rem; border: 1px solid var(--light);
}
.toc h4 { font-family: var(--serif); font-size: 1rem; margin-bottom: 0.9rem; }
.toc ol { margin-left: 1.25rem; }
.toc li { font-size: 0.88rem; margin-bottom: 0.4rem; }
.toc a { color: var(--rose); }
.toc a:hover { text-decoration: underline; }

/* ── BLOG LISTING ── */
.blog-hero {
  background: linear-gradient(135deg, #fff5f7 0%, #fff9f5 100%);
  padding: 4rem 2rem; text-align: center; border-bottom: 1px solid var(--light);
}
.blog-hero h1 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.75rem; }
.blog-hero p { color: var(--mid); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem; max-width: 1200px; margin: 3rem auto; padding: 0 2rem;
}
.blog-card {
  border: 1px solid var(--light); border-radius: var(--radius);
  overflow: hidden; background: #fff; transition: box-shadow .25s, transform .2s;
}
.blog-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.1); transform: translateY(-3px); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 1.25rem; }
.blog-card-cat {
  font-size: 0.7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--rose); margin-bottom: 0.6rem;
}
.blog-card-title { font-family: var(--serif); font-size: 1.05rem; line-height: 1.4; margin-bottom: 0.6rem; }
.blog-card-title a { color: inherit; transition: color .2s; }
.blog-card-title a:hover { color: var(--rose); }
.blog-card-img a { display: block; width: 100%; height: 100%; }
.blog-card-excerpt { font-size: 0.83rem; color: var(--mid); line-height: 1.6; margin-bottom: 1rem; }
.blog-card-meta { font-size: 0.76rem; color: var(--mid); display: flex; gap: 1rem; }
.blog-card-link {
  display: block; margin-top: 1rem;
  color: var(--rose); font-size: 0.85rem; font-weight: 600;
}
.blog-card-link:hover { text-decoration: underline; }

/* ── FOOTER ── */
footer {
  background: var(--charcoal); color: rgba(255,255,255,.75);
  padding: 3rem 2rem 1.5rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem; max-width: 1100px; margin: 0 auto 2rem;
}
.footer-logo img { height: 38px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-tagline { font-size: 0.85rem; line-height: 1.6; margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: 0.75rem; }
.social-btn {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.social-btn:hover { background: var(--rose); }
.footer-col h5 {
  color: #fff; font-size: 0.8rem; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.65rem; }
.footer-col ul li a { font-size: 0.85rem; color: rgba(255,255,255,.65); transition: color .2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  max-width: 1100px; margin: 0 auto; font-size: 0.78rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-grid-article { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  nav { padding: 0.8rem 1.25rem; }
  .nav-links { display: none; }
  .blog-grid { grid-template-columns: 1fr; padding: 0 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-wrap { padding: 2rem 1.25rem 4rem; }
  .product-card-article { flex-direction: column; }
  .product-card-article img { width: 100%; height: 240px; }
  .product-card-info { padding: 1rem; }
  .product-grid-article { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }
}
