.header-search { display:flex; align-items:center; justify-content:flex-end; }

/* Compact header layout on mobile: enforce 3-column grid positions */
@media (max-width: 767.98px){
  .site-header.compact .header-container{
    display: grid !important;
    grid-template-columns: 48px minmax(120px, 1fr) 48px; /* giữ bố cục ổn định khi thu gọn */
    align-items: center;
    justify-items: center;
    padding: 6px 12px;
    gap: 8px;
    min-height: 52px;
  }
  /* ========== Mobile overlay: Social + Footer links (match desktop footer) ========== */
  .mobile-menu-overlay .mobile-social-icons{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 12px 0 4px;
  }
  .mobile-menu-overlay .mobile-social-icons .social-icon{
    color: #000;
    font-size: 20px;
    line-height: 1;
  }
  .mobile-menu-overlay .mobile-social-icons .social-icon:hover{ opacity: .8; }

  .mobile-menu-overlay .mobile-footer-links{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 6px 0 14px;
  }
  .mobile-menu-overlay .mobile-footer-links a{
    color: #000;
    text-decoration: none;
    font-size: 14px;
  }
  .mobile-menu-overlay .mobile-footer-links a:hover{ text-decoration: underline; }
  .mobile-menu-overlay .mobile-footer-links .separator{ color: #000; opacity: .6; }
  .site-header.compact .mobile-menu-toggle{ grid-column: 1; justify-self: start; }
  .site-header.compact .site-logo{ grid-column: 2; justify-self: center; display:inline-block; }
  .site-header.compact .header-search{ grid-column: 3; justify-self: end; min-width:36px; }
  /* Logo trong header compact: cao hơn chút nhưng vẫn giữ tỷ lệ */
  .site-header.compact .site-logo .header-logo.img-fluid{
    width: auto !important;
    height: auto;
    max-height: 56px;
    line-height: 0; /* zero line-height on logo container */
    max-width: 100vw; /* viewport-based max width for logo */
    box-sizing: border-box; /* explicit box-sizing */
    margin: 0 auto; /* explicit alignment */
  }
}
/* Final overrides to guarantee mobile hamburger visibility when header is compact */
@media (max-width: 767.98px){
  .site-header.compact { z-index: 3000; }
  .site-header.compact .mobile-menu-toggle{
    display: block !important;
    position: relative;
    z-index: 4000;
    margin-left: 4px;
  }
  .site-header.compact .main-nav{ display: none !important; }
}
.header-search .search-icon { 
  display:inline-flex; align-items:center; justify-content:center; 
  width:22px; height:22px; color:#000; cursor:pointer;
  transition: transform .2s cubic-bezier(.2,.7,0,1), color .2s ease;
}
.header-search .search-icon svg { width:22px; height:22px; display:block; }
.header-search .search-icon:hover { transform: scale(1.12); color:#000; }
.about-split:first-of-type .as-text { text-align: center; align-items: center; }
.about-split:first-of-type .as-title {
  margin: 0 auto 12px;
  max-width: 424px; /* theo thiết kế */
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600; /* SemiBold */
  font-size: 48px;
  line-height: 100%;
  letter-spacing: 0;
  color: #000;
}
.about-split:first-of-type .as-desc {
    margin: 0 auto;
    max-width: 463px; /* theo thiết kế */
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0;
    color: #000;
}
.about-split:first-of-type .as-desc strong,
.about-split:first-of-type .as-desc b{
    font-weight: 600; /* đậm hơn phần thường */
    color: #000;
}
/* existing styles above */

/* ===== Header compact white text on dark background for News/Product pages ===== */
.page-news .site-header.compact .main-nav .nav-link.active,
.page-product .site-header.compact .main-nav .nav-link.active{
  color: #fff !important;
}
.page-news .site-header.compact .header-search .search-icon,
.page-product .site-header.compact .header-search .search-icon{
  color: #000; /* keep unrelated icon text/line black */
}
.page-news .site-header.compact .header-search .search-icon svg,
.page-product .site-header.compact .header-search .search-icon svg{
  stroke: #000;
}
.page-news .site-header.compact .mobile-menu-toggle .bar,
.page-product .site-header.compact .mobile-menu-toggle .bar{
  background-color: #000;
}
/* JK Cosmetics */
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; margin: 0; }
.no-horizontal-scroll, html, body { overflow-x: hidden; }
.site-header { border-bottom: 1px solid #eee; position: relative; z-index: 3000; }
.site-header .header-logo { height: 110px; max-height: none; }

/* Header container layout */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    background-color: #000;
    transition: all 0.3s ease;
}

/* Site logo positioning */
.site-logo {
    display: block;
    text-align: center;
    position: relative;
    z-index: 1001;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 5000; /* Cao hơn cả header.compact (3000) để luôn hiển thị trên cùng */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile menu header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 2001; /* Cao hơn mobile-menu-overlay */
}

.mobile-logo {
    display: block;
    position: relative;
    z-index: 2001;
}

.mobile-logo img {
    height: 60px;
    max-width: 180px;
    object-fit: contain;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    position: relative;
    z-index: 2001;
}

/* Mobile navigation */
.mobile-nav {
    padding: 20px;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    margin-bottom: 15px;
}

.mobile-nav-link {
    display: block;
    font-size: 18px;
    color: #000;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.mobile-nav-link.active {
    font-weight: bold;
}

/* Mobile social icons */
.mobile-social-icons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background-color: #e0e0e0;
}
/* Mega Menu Styles */
.nav-item-dropdown {
    position: relative; /* Gốc định vị cho menu */
}

.mega-menu-wrapper {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px); /* Căn giữa và bắt đầu từ dưới */
    width: 90vw;
    max-width: 1140px;
    background-color: rgba(255,255,255,0.96);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    backdrop-filter: saturate(160%) blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Chặn tương tác khi ẩn */
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.nav-item-dropdown:hover > .mega-menu-wrapper {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); /* Di chuyển về vị trí cuối cùng */
    pointer-events: auto; /* Cho phép tương tác khi hiện */
    box-shadow: 0 14px 36px rgba(0,0,0,0.16), 0 3px 10px rgba(0,0,0,0.08);
}

.mega-menu-content {
    padding: 2.5rem 1.5rem;
    max-width: 1140px; /* Giới hạn chiều rộng nội dung */
    margin: 0 auto; /* Căn giữa nội dung */
}

.mega-menu-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #111;
}

/* Title accent dot */
.mega-menu-title::before { content: none !important; display: none !important; }

.mega-menu-list {
    padding-left: 0;
}

.mega-menu-list li a {
    display: block;
    padding: 0.4rem 0;
    color: #000;
    text-decoration: none;
    transition: color 0.2s;
}

.mega-menu-list li a {
    display: block;
    color: #000;
    padding: 8px 12px;
    border-radius: 10px;
    transition: color .45s cubic-bezier(.2,.7,0,1), background-color .45s cubic-bezier(.2,.7,0,1), box-shadow .45s cubic-bezier(.2,.7,0,1), transform .3s cubic-bezier(.2,.7,0,1);
    will-change: color, background-color, box-shadow, transform;
    transform-origin: left center;
}
.mega-menu-list li a:hover,
.mega-menu-list li a:focus {
    color: #fff !important;
    background-color: #000 !important;
    box-shadow: 0 6px 18px rgba(0,0,0,.16);
    text-decoration: none;
    transform: translateX(3px) scale(1.04);
}
.mega-menu-list li a.active,
.mega-menu-list li a[aria-current="page"] {
    color: #fff !important;
    background-color: #000 !important;
}

.mega-menu-image-col {
    display: flex;
    align-items: center;
    justify-content: center;
}
.mega-menu-image-col img { 
    display: block; 
    width: 100%; height: auto; 
    border-radius: 12px; 
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    transition: transform .35s cubic-bezier(.2,.7,0,1), box-shadow .35s cubic-bezier(.2,.7,0,1);
}
.mega-menu-image-col:hover img { 
    transform: scale(1.03); 
    box-shadow: 0 14px 32px rgba(0,0,0,.16);
}

.header-primary-nav .nav-link { 
  letter-spacing: .06em; 
  font-weight: 600; 
  color: #000; 
  display:inline-block; 
  padding:8px 14px; 
  border-radius:999px; 
  transition: color .5s cubic-bezier(.2,.7,0,1), background-color .5s cubic-bezier(.2,.7,0,1), box-shadow .5s cubic-bezier(.2,.7,0,1), transform .35s cubic-bezier(.2,.7,0,1);
  will-change: color, background-color, box-shadow, transform;
  transform-origin: center;
}
/* Force white text on hover with higher specificity */
.header-primary-nav .nav-link:hover,
.header-primary-nav .nav-link:focus,
.header-primary-nav .nav-link:active,
.site-header .header-primary-nav .nav-link:hover,
.site-header.over-hero .header-primary-nav .nav-link:hover,
.site-header.compact .header-primary-nav .nav-link:hover,
.site-header.compact .header-primary-nav .nav-link:focus,
.site-header.compact .header-primary-nav .nav-link:active {
  color: #fff !important;
  background-color: #000 !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.16);
  text-decoration: none;
  transform: translateY(-1px) scale(1.06);
}
/* Active & Show (dropdown open) states */
.header-primary-nav .nav-link.active,
.header-primary-nav .nav-link[aria-current="page"],
.header-primary-nav .nav-link.show,
.header-primary-nav .nav-link[aria-expanded="true"],
.site-header .header-primary-nav .nav-link.active,
.site-header.over-hero .header-primary-nav .nav-link.active {
  color: #fff !important;
  background-color: #000 !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.16);
}
.site-header { background: var(--header-bg, #fff); transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease; }
.site-header.over-hero { border-bottom: 0; position: fixed !important; top: 0; left: 0; right: 0; width: 100%; background: var(--header-bg, transparent); z-index: 3200; transition: background .3s ease, backdrop-filter .3s ease, box-shadow .3s ease; }
.site-header.over-hero .header-logo { height: 140px; max-height: none; }
.site-header.compact { --header-bg: rgba(255,255,255,.96); background: var(--header-bg) !important; backdrop-filter: saturate(160%) blur(10px); box-shadow: 0 4px 20px rgba(0,0,0,.08); border-bottom: 1px solid rgba(0,0,0,.06); }
.site-header.compact .header-logo { height: 80px; }
.site-footer { border-top: 1px solid #222; }
.section-title { border-left: 4px solid #0d6efd; padding-left: 10px; }
.category-card { position: relative; overflow: hidden; border-radius: 6px; }
.category-card .category-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(0,0,0,0.35); color: #fff; opacity: 0; transition: opacity .2s ease; }
.category-card:hover .category-overlay { opacity: 1; }
.product-card img { object-fit: cover; height: 200px; }
.carousel-caption { background: rgba(0,0,0,0.45); border-radius: 8px; padding: 1rem; }

/* Hero landing */
.hero-landing {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh; /* Full màn hình */
  height: 100vh; /* Đảm bảo chiều cao đúng 100vh */
  align-items: center;
  background: #ffffff;
  overflow: hidden;
  transition: background .6s ease;
  margin: 0; /* Loại bỏ margin */
  padding: 0; /* Loại bỏ padding */
}

/* Hero navigation buttons */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: transparent;
  border: none;
  color: rgba(0,0,0,0.6);
  width: 50px;
  height: 94px;
  cursor: pointer;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.hero-prev { left: 40px; }
.hero-next { right: 40px; }
.hero-nav:hover { color: rgba(0,0,0,0.9); }
/* Full-bleed background layers for crossfade */
.hero-landing .hero-bg-layer { position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity .7s ease, transform .8s ease; will-change: transform, opacity; pointer-events: none; }
.hero-landing .hero-bg-layer.is-show { opacity: 1; }

/* Slide 1: Pixel-perfect overrides */
.hero-landing { position: relative; padding-left: 0; -ms-touch-action: pan-y; touch-action: pan-y; }
.hero-landing .hero-container { position: static; }
.hero-landing .slide-1 .hero-content { position: static; display: block; padding-top: 0; }
.hero-landing .slide-2 .hero-content { position: static; display: block; padding-top: 0; }
/* Make absolute children use section as containing block */
.hero-landing .hero-slides { position: static !important; }
.hero-landing .hero-slide { position: static !important; }

/* Allow vertical scroll but let JS handle horizontal swipes on mobile */
.hero-landing .hero-slide, .hero-landing .hero-content, .hero-landing .hero-bg-layer { -ms-touch-action: pan-y; touch-action: pan-y; }
.hero-landing .slide-1 .hero-left { position: absolute; top: 314px; left: 204px; max-width: 520px; text-align: left; color: #000; z-index: 10; }
.hero-landing .slide-2 .hero-left { position: absolute; top: 314px; left: 204px; max-width: 520px; text-align: left; color: #000; z-index: 10; }
.hero-slide .hero-left { transform: translateY(0) translateX(0); }
.hero-landing .slide-1 .hero-kicker, .hero-landing .slide-2 .hero-kicker { font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; font-weight: 300; font-size: 24px; line-height: 1.42; color: #000; letter-spacing: 0; margin-bottom: 12px; }
.product-title { 
  margin: 12px 2px 6px; 
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600; /* SemiBold */
  font-size: 24px;
  line-height: 1; /* 100% */
  letter-spacing: 0;
  text-transform: uppercase; 
  color:#000; 
}
.hero-landing .slide-1 .hero-title, .hero-landing .slide-2 .hero-title { font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; font-weight: 800; font-size: 40px; line-height: 1.42; color: #000; margin: 12px 0 12px; letter-spacing: 0; }
.hero-landing .slide-1 .hero-subtitle, .hero-landing .slide-2 .hero-subtitle { margin: 8px 0; color: #111; }
.hero-landing .slide-1 .hero-desc, .hero-landing .slide-2 .hero-desc { margin: 10px 0 0; color: #333; }

/* Slide 1 texts fine-tuning per design */
.hero-landing .slide-1 .hero-subtitle, 
.hero-landing .slide-1 .hero-desc,
.hero-landing .slide-2 .hero-subtitle,
.hero-landing .slide-2 .hero-desc {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.42;
  color: #000;
}
.hero-landing .slide-1 .hero-subtitle, .hero-landing .slide-2 .hero-subtitle { position: static; width: auto; margin: 8px 0 10px; }
.hero-landing .slide-1 .hero-desc, .hero-landing .slide-2 .hero-desc { position: static; width: auto; margin: 10px 0 0; }
/* Mirror typography & spacing of slide 1 to slide 2 explicitly */
.hero-landing .slide-2 .hero-kicker { font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; font-weight: 300; font-size: 24px; line-height: 1.42; color: #000; letter-spacing: 0; margin-bottom: 12px; }
.hero-landing .slide-2 .hero-title { font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; font-weight: 800; font-size: 40px; line-height: 1.42; color: #000; margin: 12px 0 12px; letter-spacing: 0; }
.hero-landing .slide-2 .hero-subtitle, .hero-landing .slide-2 .hero-desc { font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; font-weight: 400; font-size: 24px; line-height: 1.42; color: #000; }

/* Ensure hero-right of slide 2 does not shift text block order/z-index */
.hero-landing .slide-2 .hero-right { z-index: 1; }
.hero-landing .slide-2 .hero-left { z-index: 2; }

/* Slide 1 CTA button */
.hero-landing .slide-1 .slide-1-cta, .hero-landing .slide-2 .slide-1-cta {
  display: inline-flex; align-items:center; justify-content:center; height:50px; width:134px; 
  border:2px solid #fff; background: transparent; color:#000; border-radius:2px;
  font-family:'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; font-weight:600; font-size:14px; text-decoration:none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.hero-landing .slide-1 .slide-1-cta:hover, .hero-landing .slide-2 .slide-1-cta:hover { background: #ffffff; color:#000; border-color:#ffffff; }
.hero-landing .slide-1 .mt-4 { position: static; margin-top: 18px; }
.hero-landing .slide-2 .mt-4 { position: static; margin-top: 18px; }

/* Optional: progress bar approximate placement */
.hero-landing .hero-progress { position: absolute; left: 204px; right: 40%; bottom: 80px; }

/* Keep responsiveness: fallback stack on small screens */
@media (max-width: 991.98px){
  .hero-landing { min-height: 100vh; height: 100vh; margin-top: 0; margin-bottom: 0; }
  .hero-landing .slide-1 .hero-left { position: absolute; top: 40%; max-width: none; padding: 28px 24px; left: 0; right: auto; text-align: left; transform: translateY(0); width: 80%; }
  .hero-landing .slide-1 .hero-content { padding-top: 0; }
  .hero-landing .slide-1 .hero-subtitle,
  .hero-landing .slide-1 .hero-desc { position: static; width: auto; }
  .hero-landing .slide-1 .mt-4 { position: static; margin-top: 16px; text-align: left; }
  /* Apply same mobile stack for slide 2 */
  .hero-landing .slide-2 .hero-left { position: absolute; top: 40%; max-width: none; padding: 28px 24px; left: 0; right: auto; text-align: left; transform: translateY(0); width: 80%; }
  .hero-landing .slide-2 .hero-content { padding-top: 0; }
  .hero-landing .slide-2 .hero-subtitle,
  .hero-landing .slide-2 .hero-desc { position: static; width: auto; }
  .hero-landing .slide-2 .mt-4 { position: static; margin-top: 16px; text-align: left; }
  
  /* Adjust navigation buttons on mobile */
  .hero-nav { top: 50%; }
  .hero-prev { left: 10px; }
  .hero-next { right: 10px; }
}

/* ===================== */
/* Brand Intro (below hero)
/* ===================== */
.brand-intro { position: relative; padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 9vw, 112px); background: #fff; }
.brand-title { 
  font-weight: 900; 
  font-size: clamp(22px, 4.6vw, 44px); 
  line-height: 1.2; 
  letter-spacing: .01em; 
}
/* Underline accent removed per request */
.brand-title::after { content: none; display: none; }
.brand-title.is-visible::after { width: 0; }
/* Stronger scroll reveal for title */
.brand-title.scroll-animate { 
  opacity: 0; 
  transform: translateY(36px); 
  transition: opacity 1.6s cubic-bezier(.2,.7,0,1), transform 1.6s cubic-bezier(.2,.7,0,1); 
  will-change: opacity, transform; 
}
.brand-title.scroll-animate.is-visible { opacity: 1; transform: translateY(0); }
.brand-title.typing-caret { position: relative; }
.brand-title.typing-caret::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  background: #111;
  margin-left: 4px;
  vertical-align: -2px;
  animation: caretBlink 1s step-end infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }
.brand-intro .container { position: relative; z-index: 1; }
/* Brand CTA per spec: 260x37, radius 7, border 1 black, font 24 regular */
a.btn.brand-cta { 
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 18px; 
  border: 1px solid #9aa0a6; border-radius: 4px; 
  background: #fff; color: #333;
  font-size: 16px; font-weight: 400; line-height: 1.5; 
  font-family: 'Nanum Gothic', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: 0; text-transform: none; text-decoration: none;
  white-space: nowrap; text-align: center; box-sizing: border-box;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
a.btn.brand-cta:hover { background: #000; color: #fff; border-color: #000; transform: translateY(-1px); }
a.btn.brand-cta:active { transform: translateY(0); }
.brand-decor { position: absolute; left: clamp(16px, 6vw, 80px); top: 8px; width: clamp(36px, 4vw, 56px); height: clamp(36px, 4vw, 56px); z-index: 0; }
.brand-decor { 
  background:
    radial-gradient(circle at 30% 30%, #ff87bd 62%, rgba(255,135,189,0) 63%) 0 0/50% 50% no-repeat,
    radial-gradient(circle at 70% 30%, #ff87bd 62%, rgba(255,135,189,0) 63%) 100% 0/50% 50% no-repeat,
    radial-gradient(circle at 30% 70%, #ff87bd 62%, rgba(255,135,189,0) 63%) 0 100%/50% 50% no-repeat,
    radial-gradient(circle at 70% 70%, #ff87bd 62%, rgba(255,135,189,0) 63%) 100% 100%/50% 50% no-repeat;
}
@media (max-width: 576px){
  a.btn.brand-cta { font-size: 15px; padding: 6px 16px; }
}

/* ===================== */
/* Brand Film - Full-bleed Video
/* ===================== */
.brand-film { position: relative; width: 100%; overflow: hidden; background: #fff; }
.brand-film .film-frame { position: relative; width: 100%; }
/* Responsive 16:9 ratio using aspect-ratio if supported; fallback with padding-top */
.brand-film .film-frame { aspect-ratio: 16 / 9; }
@supports not (aspect-ratio: 16 / 9) {
  .brand-film .film-frame { height: 0; padding-top: 56.25%; }
}
.brand-film .film-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Đảm bảo video lấp đầy khung mà không bị méo */
    z-index: 1;
}

.brand-film .film-placeholder {
    display: none; /* Ẩn placeholder đi */
}

/* Mute/Unmute Overlay Button in Corner */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-end; /* Align to the right */
    align-items: center; /* Align to the middle */
    z-index: 9;
    cursor: pointer;
    transition: opacity 0.3s ease, padding-left 1.6s cubic-bezier(.2,.7,0,1), padding-right 1.6s cubic-bezier(.2,.7,0,1);
    /* White side bands when not full, transparent center for video */
    background: linear-gradient(
      to right,
      #fff 0 calc(var(--vo-pad)),
      rgba(255,255,255,0) calc(var(--vo-pad)) calc(100% - var(--vo-pad)),
      #fff calc(100% - var(--vo-pad)) 100%
    );
    /* Scroll-controlled horizontal padding */
    --vo-pad: clamp(120px, 18vw, 360px);
    padding-left: var(--vo-pad);
    padding-right: var(--vo-pad);
}

/* Apply same inset visually to the video itself so padding hiệu ứng thấy rõ */
#brandVideo {
  --vo-pad: clamp(120px, 18vw, 360px);
  clip-path: inset(0 var(--vo-pad) 0 var(--vo-pad));
  -webkit-clip-path: inset(0 var(--vo-pad) 0 var(--vo-pad));
  will-change: clip-path;
  transition: clip-path 1.8s cubic-bezier(.2,.7,0,1), -webkit-clip-path 1.8s cubic-bezier(.2,.7,0,1);
  background: #fff; /* tránh nền đen của video */
  object-fit: cover; /* lấp đầy khung, tránh viền đen */
}

.unmute-button-overlay {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 24px; /* Increased size */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px; /* Spacing from the corner */
}

/* Class to hide the overlay/button */
.video-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.volume-toggle {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    transition: background-color 0.2s;
}

.volume-toggle:hover {
    background: rgba(0, 0, 0, 0.8);
}

.film-note { background: rgba(255,255,255,.8); padding: 8px 12px; border-radius: 4px; font-size: 13px; letter-spacing: .02em; }

/* ===================== */
/* Collection Banner - Full-bleed hero
/* ===================== */
.collection-banner { position: relative; min-height: 120vh; display: flex; align-items: center; justify-content: center; color: #fff; text-align: center; overflow: hidden; background: #fff; }
.collection-banner .container { position: relative; z-index: 2; }
.collection-banner .collection-bg { position: absolute; inset: 0; z-index: 0; background: none; background-size: 80% auto; background-repeat: no-repeat; background-position: center top; }
/* Force banner image to fit full section */
.collection-banner .collection-bg {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  /* Zoom animation base */
  transform-origin: center center;
  transform: scale(0.74);
  will-change: transform;
  transition: transform 3.2s cubic-bezier(.15,.7,0,1);
}
.collection-banner.is-inview .collection-bg { transform: scale(1.06); }
.collection-banner::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 100%); }
.collection-title { font-weight: 800; font-size: clamp(28px, 5vw, 56px); letter-spacing: .02em; margin-bottom: 10px; text-transform: uppercase; text-shadow: 0 2px 12px rgba(0,0,0,.28); }
.collection-sub { font-size: clamp(14px, 2.2vw, 18px); opacity: .95; text-shadow: 0 1px 8px rgba(0,0,0,.24); }
.collection-cta { display: inline-block; margin-top: 10px; border: 1px solid rgba(255,255,255,.7); color: #fff; background: rgba(255,255,255,.12); padding: 10px 20px; border-radius: 4px; transition: background .25s ease, border-color .25s ease; }
.collection-cta:hover { background: rgba(255,255,255,.22); border-color: #fff; color: #fff; }

/* ===================== */
/* Skin Picks - 4 product teasers
/* ===================== */
.skin-picks { padding: clamp(56px, 7vw, 84px) 0; background: #fff; }
.skin-picks .section-heading {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600; /* SemiBold */
  font-size: clamp(28px, 4.6vw, 64px);
  line-height: 1; /* 100% */
  letter-spacing: 0; /* 0% */
  color: #000;
  margin-bottom: clamp(24px, 3.2vw, 36px);
}
.skin-grid { display: grid; grid-template-columns: repeat(3, 333px); gap: 36px; align-items: start; justify-content: center; }
.product-card { display: block; color: inherit; text-decoration: none; }
.product-media { position: relative; width: 100%; aspect-ratio: 333 / 501; border-radius: 4px; overflow: hidden; background: #f6f6f6; }
.product-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform .6s cubic-bezier(.2,.7,0,1);
  will-change: transform;
  backface-visibility: hidden;
  transform-origin: center center;
}
.product-card:hover .product-media img,
.product-card:focus-visible .product-media img {
  transform: scale(1.18);
}
@media (prefers-reduced-motion: reduce) {
  .product-media img { transition: none; }
}
.product-title {
  margin: 12px 2px 6px;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600; /* SemiBold */
  font-size: 24px;
  line-height: 1; /* 100% */
  letter-spacing: 0;
  text-transform: uppercase;
  color:#000;
  min-height: 48px; /* 2 dòng x 24px để các card cân đều */
}
.product-desc { margin: 0 2px; color: #5a5a5a; font-size: 13px; }
.product-card:hover .product-title { text-decoration: none; }
/* soft colorful gradients as fallback when no image */
.product-media.gradient-a { background: linear-gradient(135deg, #b3d0ff 0%, #ffc0d9 100%); }
.product-media.gradient-b { background: linear-gradient(135deg, #c7fff0 0%, #bcd7ff 100%); }
.product-media.gradient-c { background: linear-gradient(135deg, #b8c7ff 0%, #ffd0e6 100%); }
.product-media.gradient-d { background: linear-gradient(135deg, #d1ffef 0%, #e7c6ff 100%); }
@media (max-width: 1199.98px){
  .skin-grid { grid-template-columns: repeat(3, minmax(220px, 1fr)); }
}
@media (max-width: 991.98px){
  .skin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 575.98px){
  /* Hiển thị 3 sản phẩm/1 dòng trên điện thoại */
  .skin-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .product-media { aspect-ratio: 3 / 4; }
  .product-title { font-size: 12px; line-height: 1.1; min-height: 26px; margin: 8px 2px 4px; }
  .product-desc { font-size: 12px; }
}

/* Collection banner responsive height */
@media (max-width: 991.98px){
  .collection-banner { min-height: 100vh; }
}

/* ===================== */
/* Product Detail Page Styles
/* ===================== */
/* Gallery swiper styles */
.product-gallery .product-swiper-main { 
  width: 100%; 
  height: 500px; /* chiều cao cố định */
}
.product-swiper-main .swiper-wrapper { align-items: stretch; }
.product-swiper-main .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  height: 100%; /* chiều cao 100% của wrapper */
}

@media (max-width: 575.98px){
  .product-gallery .product-swiper-main { height: 350px; }
}

@media (max-width: 767.98px){
  .product-gallery .product-swiper-main { height: 400px; }
}

.product-swiper-main .swiper-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
}

.product-swiper-thumbs .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Post images styles */
.post-images-container img {
  max-width: 100%;
  height: auto;
  width: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  max-height: none !important;
}

.post-image-item {
  text-align: center;
  max-width: 800px;
  margin: 0 !important;
  padding: 0 !important;
  margin-left: auto;
  margin-right: auto;
}

/* Không để khoảng cách giữa các ảnh */
.post-images-container {
  display: flex;
  flex-direction: column;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: center; /* căn giữa theo trục ngang */
  width: 100%;
}

.post-images-container .post-image-item + .post-image-item {
  margin-top: 0 !important;
}

/* Mobile: ảnh bài viết fit 100% chiều ngang màn hình */
@media (max-width: 575.98px){
  .post-images-container { align-items: stretch; }
  .post-image-item { max-width: 100%; }
  .post-images-container img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    object-fit: contain;
  }
}

/* Detail title typography */
.post-detail-title {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1; /* 100% */
  letter-spacing: 0;
  color: #000;
  width: 100%; /* full theo bề rộng container */
  margin-left: auto;
  margin-right: auto;
}

.post-detail-title::after {
  content: "";
  display: block;
  width: 100%; /* kéo full theo khung */
  height: 1px;
  background: #000;
  margin: 8px auto 0; /* cách chữ 8px, canh giữa */
}

/* ===================== */
/* Category Strip - Shop by Category
/* ===================== */
.category-strip { padding: clamp(40px, 5vw, 64px) 0; background: #fff; }
.category-strip .section-heading { font-weight: 800; font-size: clamp(20px, 3vw, 26px); margin-bottom: clamp(18px, 2.4vw, 24px); }
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(12px, 1.6vw, 18px); }
.cat-card { display: block; text-decoration: none; color: inherit; }
.cat-media { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: #f4f6f9; }
.cat-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-card:hover .cat-media img { transform: scale(1.04); }
.cat-label { display: block; text-align: center; margin-top: 8px; font-weight: 700; font-size: 14px; }
/* gradient fallbacks when no image */
.cat-media.cat-a { background: linear-gradient(135deg, #b8dcff 0%, #ffd1e7 100%); }
.cat-media.cat-b { background: linear-gradient(135deg, #cdf9ff 0%, #c6d1ff 100%); }
.cat-media.cat-c { background: linear-gradient(135deg, #ffd2ef 0%, #c8d9ff 100%); }
.cat-media.cat-d { background: linear-gradient(135deg, #e4ffd9 0%, #ffe0f0 100%); }
.cat-media.cat-e { background: linear-gradient(135deg, #ffe8cc 0%, #d7e3ff 100%); }
@media (max-width: 1199.98px){ .cat-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 991.98px){ .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767.98px){ .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479.98px){ .cat-grid { grid-template-columns: 1fr; } }

/* ===================== */
/* Editorial Feature - split block
/* ===================== */
.editorial-feature { position: relative; padding: clamp(48px, 6vw, 80px) 0; background: #fff; overflow: hidden; }
.editorial-feature .ed-bg { position: absolute; inset: 0; background: radial-gradient(60% 40% at 80% 20%, rgba(255,180,214,.25) 0%, rgba(255,180,214,0) 70%), radial-gradient(50% 40% at 10% 90%, rgba(170,198,255,.25) 0%, rgba(170,198,255,0) 70%); z-index: 0; }
.ed-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); align-items: center; min-height: 100vh; }
.ed-text { padding: clamp(8px, 1.5vw, 12px); }
.ed-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: #666; margin: 0 0 6px; }
.ed-title { font-size: clamp(24px, 4.2vw, 40px); font-weight: 800; margin: 0 0 10px; }
.ed-desc { font-size: 15px; color: #444; margin-bottom: 14px; }
.ed-cta { display: inline-block; border: 1px solid #111; padding: 10px 18px; border-radius: 4px; font-size: 13px; color: #111; transition: background .25s ease, color .25s ease; }
.ed-cta:hover { background: #111; color: #fff; }
.ed-media { position: relative; border-radius: 8px; overflow: hidden; }
.ed-media img { width: 100%; height: auto; display: block; }
@media (max-width: 991.98px){ 
  .ed-grid { grid-template-columns: 1fr; } 
  .ed-media { order: -1; } 
}

/* Mobile header responsive styles */
@media (max-width: 991.98px) {
  .header-container {
    padding: 10px 15px;
  }
  
  /* Đồng bộ kích thước logo trên mobile + tablet để tránh méo */
  .site-header .header-logo {
    height: auto;
    max-height: 56px;
    width: auto;
  }
  /* Ensure hamburger visible on mobile+tablet, and hide desktop nav */
  .mobile-menu-toggle { 
    display: block; 
    position: relative; 
    z-index: 4200; 
    pointer-events: auto; 
  }
  .main-nav { display: none !important; }
}

@media (max-width: 767.98px) {
  .header-container {
    display: grid !important;
    grid-template-columns: 48px minmax(120px, 1fr) 48px; /* ổn định 2 cột biên và cột giữa */
    align-items: center;
    justify-items: center;
    padding: 8px 12px;
    gap: 8px;
    min-height: 56px; /* chiều cao tối thiểu cho header chưa cuộn */
    grid-auto-rows: minmax(0, auto);
    box-sizing: border-box;
  }
  .mobile-menu-toggle {
    display: block;
    order: 1;
    position: relative;
    z-index: 4200; /* cao hơn tất cả nội dung trang */
    pointer-events: auto;
    justify-self: start;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    width: 36px; height: 36px; /* vùng click cố định tránh co kéo layout */
    align-self: center;
  }
  
  .site-logo {
    order: 2;
    margin: 0 auto;
    justify-self: center;
    grid-column: 2;
    max-width: min(160px, 60vw);
    display: inline-block; /* tránh bị kéo giãn theo cột 1fr */
    line-height: 0; /* loại bỏ khoảng trắng baseline gây lệch */
    align-self: center;
    overflow: hidden; /* tránh tràn khi ảnh lớn */
  }
  /* Ngăn img-fluid kéo giãn logo trong header trên mobile */
  .site-logo .header-logo.img-fluid{
    max-width: 100% !important; /* luôn vừa khung */
    height: auto;
    max-height: 48px; /* kích thước ổn định trước khi cuộn */
    display: block; /* loại bỏ khoảng trắng baseline */
    object-fit: contain; /* không méo ảnh */
  }
  
  /* Logo nhỏ hơn trên header ban đầu (trước khi cuộn) */
  .site-header:not(.compact) .header-logo {
    height: auto;
    max-height: 50px;
    width: auto;
  }
  
  .header-search {
    order: 3;
    justify-self: end;
    grid-column: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    max-width: 100%;
    z-index: 4200;
    min-width: 36px; /* cân đối với toggle bên trái */
    justify-self: end;
    align-self: center;
  }
  .main-nav { display: none !important; }
  
  .site-header .header-logo {
    height: auto;
    max-height: 60px;
    width: auto;
  }
  
  .header-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  
  .header-search {
    justify-content: flex-end;
  }

  /* Ensure compact state does not hide hamburger on mobile */
  .site-header.compact .header-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 6px 12px;
  }
  .site-header.compact .mobile-menu-toggle { display: block; z-index: 1300; }
  .site-header.compact .site-logo { justify-self: center; order: 2; }
  .site-header.compact .header-search { justify-self: end; order: 3; }
  .site-header.compact .main-nav { display: none !important; }
}

/* ===================== */
/* Best New - Horizontal Carousel
/* ===================== */
.trending-products { padding: clamp(40px, 5vw, 64px) 0; background: #fff; }
.tp-wrap { position: relative; }
.tp-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 24%); gap: clamp(12px, 1.6vw, 18px); overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 0 clamp(36px, 5vw, 56px); }
.tp-item { scroll-snap-align: start; }
.tp-media { position: relative; width: 100%; aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; background: #f2f4f7; }
.tp-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.tp-item:hover .tp-media img { transform: scale(1.04); }
.tp-title { margin: 8px 2px 0; font-size: 15px; font-weight: 700; }
.tp-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #ddd; background: rgba(255,255,255,.9); display: grid; place-items: center; cursor: pointer; transition: background .2s ease; }
.tp-prev { left: 8px; }
.tp-next { right: 8px; }
.tp-nav:hover { background: #fff; }
.tp-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.tp-dots button { width: 6px; height: 6px; border-radius: 50%; background: #d0d0d0; border: 0; padding: 0; }
.tp-dots button.is-active { background: #111; }
@media (max-width: 991.98px){ .tp-track { grid-auto-columns: minmax(220px, 40%); } }
@media (max-width: 575.98px){ .tp-track { grid-auto-columns: 82%; padding-left: 44px; padding-right: 44px; } }

.hero-container { position: static; min-height: 78vh; }
.hero-slides { position: static; width: 100%; min-height: 78vh; }
/* Stack slides to allow overlay cross-fade */
.hero-landing .hero-slides { position: relative; }
.hero-slide { position: relative; width: 100%; min-height: 78vh; display: none; }
.hero-slide.is-active { display: block; }

/* ===================== */
/* About Page */
/* ===================== */
/* Use block display on hero, as media child will handle layout */
.about-hero { position: relative; min-height: 100vh; display: block; color: #fff; overflow: hidden; }
/* Use grid to layer image and content */
.about-hero-media { position: relative; height: 100vh; display: grid; align-items: center; justify-items: center; }
.about-hero-media > * { grid-area: 1 / 1; } /* All children in same cell */
.about-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(1.05); }
.about-hero-bg {
  position: absolute;
  inset: 0;
  /* Trắng ở phía trên (hòa vào header), mờ dần ở giữa, tối nhẹ ở dưới để nổi chữ */
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.95) 0%,
    rgba(255,255,255,0.0) 18%,
    rgba(0,0,0,0.28) 68%,
    rgba(0,0,0,0.56) 100%
  );
  pointer-events: none;
}
.about-hero-title { font-weight: 800; font-size: clamp(28px, 5.2vw, 56px); line-height: 1.1; margin: 0 0 8px; text-shadow: 0 0 5px rgba(255,255,255,.18), 0 0 10px rgba(255,255,255,.10), 0 2px 6px rgba(0,0,0,.26); animation: glowPulse 6s ease-in-out infinite; }
.about-hero-sub { font-size: clamp(14px, 2.2vw, 20px); opacity: .98; text-shadow: 0 0 4px rgba(255,255,255,.14), 0 0 8px rgba(255,255,255,.08), 0 2px 6px rgba(0,0,0,.22); margin: 0; animation: glowPulse 6.4s ease-in-out infinite .2s; }
/* Align content within the grid, and nudge left for visual centering */
.about-hero-content {
  position: relative; /* for z-index */
  z-index: 1;
  text-align: center;
  width: min(92%, 1100px);
  filter: drop-shadow(0 6px 24px rgba(0,0,0,.28));
  transform: translateX(-10.2vw); /* Nudge left using vw for responsive scaling */
  isolation: isolate; /* create stacking context for pseudo-element */
}
/* removed: about-story block no longer used */

/* Subtle glowing background around hero text */
.about-hero-content::before {
  content: "";
  position: absolute;
  inset: -6px -8px; /* extend slightly beyond text */
  border-radius: 20px;
  background:
    radial-gradient(60% 60% at 50% 45%, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 40%, rgba(255,255,255,0.00) 72%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  backdrop-filter: blur(0.5px) brightness(1.0);
  -webkit-backdrop-filter: blur(0.5px) brightness(1.0);
  box-shadow:
    0 4px 12px rgba(0,0,0,0.14), /* outer soft shadow */
    inset 0 0 18px rgba(255,255,255,0.06); /* inner soft glow */
  z-index: 0; /* stay behind the text within the isolated context */
}

/* Scroll indicator (3 arrows) */
.scroll-indicator { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2; border: 0; background: none; padding: 0; cursor: pointer; opacity: .9; }
.scroll-indicator .chev { display: block; width: 18px; height: 18px; border-bottom: 3px solid rgba(255,255,255,.95); border-right: 3px solid rgba(255,255,255,.95); transform: rotate(45deg); margin: 6px auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); animation: chevDown 1.8s infinite; }
.scroll-indicator .chev:nth-child(2){ animation-delay: .15s; }
.scroll-indicator .chev:nth-child(3){ animation-delay: .3s; }
.scroll-indicator:hover{ opacity: 1; }
@keyframes chevDown { 0%{ opacity: 0; transform: translateY(-6px) rotate(45deg);} 40%{ opacity: 1; transform: translateY(0) rotate(45deg);} 100%{ opacity: 0; transform: translateY(8px) rotate(45deg);} }

/* Soft pulsing glow for hero texts (further toned down) */
@keyframes glowPulse {
  0% { text-shadow: 0 0 3px rgba(255,255,255,.12), 0 0 7px rgba(255,255,255,.06), 0 2px 5px rgba(0,0,0,.22); }
  50% { text-shadow: 0 0 6px rgba(255,255,255,.20), 0 0 12px rgba(255,255,255,.10), 0 2px 6px rgba(0,0,0,.24); }
  100% { text-shadow: 0 0 3px rgba(255,255,255,.12), 0 0 7px rgba(255,255,255,.06), 0 2px 5px rgba(0,0,0,.22); }
}

/* About split (text left, video right) */
.about-image-block { position: relative; background: #fff; padding: 0 0 16px 0; margin-bottom: 24px; }
.about-image-block:after { content: ""; display: block; height: 16px; }
.about-image-block .container { max-width: 100%; padding-left: 0; padding-right: 0; }
.about-image-frame { position: relative; width: 100%; min-height: calc(100vh - 72px); height: min(88vh, 100dvh - 72px); border-radius: 0; overflow: hidden; box-shadow: none; }
.about-image-frame { -ms-touch-action: pan-y; touch-action: pan-y; }
.about-image-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-image-frame img { pointer-events: none; }
.about-image-caption { position: absolute; inset: 0; display: grid; align-items: center; justify-items: center; padding-inline: clamp(16px, 6vw, 72px); padding-block: 0; pointer-events: none; }
.about-image-frame.scroll-scale .about-image-caption { /* ensure caption doesn't scale with image */
  transform: none !important;
  opacity: 1 !important;
}
.about-image-caption { /* independent fade-up animation */
  animation: captionFadeUp 820ms cubic-bezier(.2,.7,.2,1) 120ms both;
  will-change: transform, opacity;
}
.about-image-caption .caption-box { max-width: min(900px, 86%); color: #ffffff; line-height: 1.42; font-weight: 800; font-size: clamp(22px, 2.8vw, 32px); letter-spacing: 0.2px; text-shadow: none; padding: 0; border-radius: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; pointer-events: auto; text-align: center; }
.about-image-caption .caption-line { margin: 0; }
@media (max-width: 768px){
  .about-image-caption { justify-items: center; padding-inline: 16px; }
  .about-image-caption .caption-box { max-width: 96%; font-size: clamp(18px, 4.4vw, 22px); border-radius: 14px; }
}
.about-image-bg { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(60% 40% at 50% 0%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 70%),
  linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(0,0,0,0.02) 100%);
}

.about-image-block + .about-split { margin-top: 28px; }
.about-split { position: relative; min-height: 100vh; padding: 0; background: #fff; display: block; }
.about-split .as-bg { position: absolute; inset: 0; background: radial-gradient(60% 40% at 12% 18%, rgba(255,180,214,.15) 0%, rgba(255,180,214,0) 70%), radial-gradient(50% 40% at 100% 100%, rgba(170,198,255,.18) 0%, rgba(170,198,255,0) 70%); pointer-events: none; }
.as-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: center; min-height: calc(100vh - 24px); }

/* Caption fade-up keyframes */
@keyframes captionFadeUp {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}
.about-split .container { max-width: 100%; padding-left: 0; padding-right: 0; }
.as-text { padding: clamp(24px, 5vw, 56px); text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; }
.as-eyebrow { display: inline-block; font-weight: 800; letter-spacing: .06em; font-size: 14px; background: #ffe6f1; color: #222; padding: 6px 10px; border-radius: 999px; margin-bottom: 10px; }
.as-title { font-size: clamp(22px, 3.6vw, 34px); font-weight: 800; margin: 6px 0 10px; }
.as-desc { margin: 0 auto; max-width: 520px; color: #444; line-height: 1.7; }
.as-media { position: relative; height: 100%; display: grid; place-items: center; }
.video-frame { position: relative; width: 100%; height: 100%; border-radius: 0; overflow: hidden; background: #e9edf3; }
.about-video { width: 100%; height: 100%; display: block; object-fit: cover; }
.video-placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.25) 100%); color: #fff; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; overflow: hidden; }
.video-placeholder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-placeholder span { position: relative; z-index: 1; text-align: center; }
@media (max-width: 991.98px){ .as-grid { grid-template-columns: 1fr; } .as-text { order: -1; text-align: center; } .video-frame { height: 56vh; } }

/* About full-bleed banner */
.about-banner { position: relative; min-height: calc(100vh - 24px); display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; }
.about-banner .ab-media { position: absolute; inset: 0; }
.about-banner .ab-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-banner .ab-overlay { position: absolute; inset: 0; background: none !important; }
.about-banner .ab-content { position: relative; z-index: 1; display: inline-block; margin: 0 auto; padding: clamp(2px, 0.6vw, 6px) clamp(4px, 0.8vw, 10px); border-radius: 14px; width: max-content; max-width: calc(100% - 8px); text-align: center; }
.about-banner .ab-content.container { padding-left: clamp(4px, 0.8vw, 10px) !important; padding-right: clamp(4px, 0.8vw, 10px) !important; }
.about-banner .ab-content.container { width: max-content !important; max-width: calc(100% - 8px) !important; }
.about-banner .ab-content::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(0,0,0,.18); backdrop-filter: blur(6px) saturate(1.05); -webkit-backdrop-filter: blur(6px) saturate(1.05); box-shadow: 0 10px 30px rgba(0,0,0,.22), inset 0 0 0 1px rgba(255,255,255,.26); pointer-events: none; z-index: -1; opacity: .5; transition: opacity .8s ease, transform .8s ease, backdrop-filter .8s ease; }

/* Scroll reveal for the frame itself */
.about-banner .ab-content.scroll-animate-stagger { opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .8s cubic-bezier(.2,.7,0,1), transform .8s cubic-bezier(.2,.7,0,1); }
.about-banner .ab-content.scroll-animate-stagger.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.about-banner .ab-content.scroll-animate-stagger.is-visible::before { opacity: .6; }
.about-banner .ab-title { font-weight: 800; font-size: clamp(26px, 6vw, 48px); line-height: 1.22; margin: 0 0 10px; text-shadow: 0 0 10px rgba(255,255,255,.5), 0 0 22px rgba(255,255,255,.5); }
.about-banner .ab-sub { margin: 0 auto; max-width: 720px; color: #fff; font-size: clamp(16px, 2.6vw, 20px); text-shadow: 0 0 8px rgba(255,255,255,.5); }

/* Variant spacing for next split */
.symbol-split .as-title { margin-top: 8px; }
.symbol-split .as-accent { display: inline-block; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #c5ffcf 0%, #aef7bc 50%, rgba(174,247,188,0) 70%); margin-top: 22px; }

/* ===================== */
/* About Fullpage Snap   */
/* ===================== */
.about-scroll.is-snap { height: 100vh; overflow-y: auto; scroll-snap-type: y mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.about-scroll.is-snap > section { scroll-snap-align: start; min-height: 100vh; display: grid; align-content: center; }
/* Default: use window scroll (no inner scrolling) */
.about-scroll { height: auto; overflow: visible; scroll-snap-type: none; }
.about-scroll { padding-bottom: 1px; }
/* keep hero custom layout */
.about-scroll .about-hero { align-content: end; }
/* ===================== */
/* Best New - Horizontal Carousel
/* ===================== */
.trending-products { padding: clamp(40px, 5vw, 64px) 0; background: #fff; }
.tp-wrap { position: relative; }
.tp-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 24%); gap: clamp(12px, 1.6vw, 18px); overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 0 clamp(36px, 5vw, 56px); }
.tp-item { scroll-snap-align: start; }
.tp-media { position: relative; width: 100%; aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; background: #f2f4f7; }
.tp-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.tp-item:hover .tp-media img { transform: scale(1.04); }
.tp-title { margin: 8px 2px 0; font-size: 15px; font-weight: 700; }
.tp-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #ddd; background: rgba(255,255,255,.9); display: grid; place-items: center; cursor: pointer; transition: background .2s ease; }
.tp-prev { left: 8px; }
.tp-next { right: 8px; }
.tp-nav:hover { background: #fff; }
.tp-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.tp-dots button { width: 6px; height: 6px; border-radius: 50%; background: #d0d0d0; border: 0; padding: 0; }
.tp-dots button.is-active { background: #111; }
@media (max-width: 991.98px){ .tp-track { grid-auto-columns: minmax(220px, 40%); } }
@media (max-width: 575.98px){ .tp-track { grid-auto-columns: 82%; padding-left: 44px; padding-right: 44px; } }

.hero-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .7s ease; will-change: opacity; z-index: 1; }
.hero-slide.is-active { opacity: 1; pointer-events: auto; z-index: 2; }
/* Per-slide background layer for smooth crossfade */
.hero-slide .hero-bg { position: absolute; inset: 0; z-index: 0; background: transparent; transition: inherit; }
/* Ensure content sits above background and animates gently */
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 1140px; margin: 0 auto; padding-top: clamp(64px, 18vh, 220px); }
.hero-slide .hero-left, .hero-slide .hero-right { transform: translateY(8px); opacity: .001; transition: opacity .6s ease, transform .7s ease; will-change: opacity, transform; }
.hero-slide.is-active .hero-left, .hero-slide.is-active .hero-right { transform: translateY(0); opacity: 1; }
.hero-content { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; justify-content: center; }
.hero-left { color: #0b2a55; }
.hero-kicker { letter-spacing: .2em; font-size: .8rem; opacity: .8; }
.hero-title { font-size: clamp(32px, 5vw, 56px); font-weight: 800; margin: 10px 0; }
.hero-subtitle { font-size: clamp(14px, 1.8vw, 16px); font-weight: 400; line-height: 1.5; margin-bottom: 0; opacity: 0.95; color: #153b6d; max-width: 520px; }
.hero-desc { font-size: clamp(12px, 1.4vw, 14px); font-weight: 300; line-height: 1.4; margin-top: 8px; opacity: 0.8; }
.hero-right { position: relative; display: flex; justify-content: center; }
.hero-bottle { width: min(460px, 90%); filter: drop-shadow(0 24px 48px rgba(13, 50, 120, .35)); transform: rotate(-8deg); }
.hero-decor { position: absolute; left: 12%; top: 18%; width: 36px; height: 36px; background: #ff73a9; border-radius: 12px 50% 12px 50%; opacity:.8; }
.hero-progress { width: 180px; height: 3px; border-radius: 4px; position: relative; overflow: hidden; 
  /* Track + center ticks per segment */
  --slide-count: 1;
  background-image: 
    linear-gradient(to right, rgba(0,0,0,.18), rgba(0,0,0,.18)),
    linear-gradient(to right, transparent calc(50% - 1px), rgba(0,0,0,.28) 50%, transparent calc(50% + 1px));
  background-size: 100% 100%, calc(100% / var(--slide-count, 1)) 100%;
  background-repeat: no-repeat, repeat-x;
}
.hero-progress span { position:absolute; left:0; top:0; bottom:0; width:0; background:#111; border-radius:4px; transition: left .45s ease, width .45s ease; }
.hero-nav { position:absolute; width:49.5px; height:93.5px; background: transparent; border:0; border-radius:0; display:flex; align-items:center; justify-content:center; color:#000; z-index:3; top:388px; transform:none; box-shadow:none; backdrop-filter:none; cursor:pointer; }
.hero-nav .hero-chevron { width:49.5px; height:93.5px; display:block; }
.hero-prev { left: 51px; }
.hero-next { right: 51px; }
.hero-nav:hover { opacity: .8; }
.hero-next { right: 12px; }

/* Dots */
.hero-dots { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(0,0,0,.5); background: rgba(255,255,255,.6); cursor: pointer; padding: 0; }
.hero-dot.is-active { background: #111; border-color: #111; }

@media (max-width: 992px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; padding-top: 28px; }
  .hero-left { order: 2; }
  .hero-right { order: 1; }
  .hero-bottle { transform: none; }
}
/* Between md and lg screens */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-content { padding-top: 12vh; }
}

/* Large desktop: push content lower like reference */
@media (min-width: 1200px) {
  .hero-content { padding-top: 22vh; }
}
@media (min-width: 1400px) {
  .hero-content { padding-top: 26vh; }
}

/* Header overlay on hero */
.site-header.transparent { background: transparent; box-shadow: none; }
.site-header.over-hero .nav-link { color: #000; font-weight: 600; }
.site-header.over-hero .site-logo img { max-height: none; }

/* --- Unified Header Layout --- */
.header-container { 
    position: relative; 
    display: grid;
    grid-template-areas: ". logo ." "nav nav nav";
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 8px 20px;
    transition: padding .4s ease;
}
.site-logo { 
    grid-area: logo; 
    justify-self: center;
    position: relative;
    transition: transform .4s ease, left .4s ease;
}
.header-logo { 
    height: 110px; 
    transition: height .4s ease; 
}
.site-header.over-hero .header-logo { height: 140px; }

.main-nav { 
    grid-area: nav; 
    transition: transform .4s ease;
}
.header-search { 
    grid-area: logo; 
    justify-self: end;
    opacity: 0;
    transition: opacity .4s ease;
}

/* --- Compact Header State --- */
.site-header.compact { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    background: rgba(255,255,255,0.95) !important; 
    backdrop-filter: blur(10px); 
    box-shadow: 0 2px 20px rgba(0,0,0,0.08); 
    z-index: 2000; /* luôn nổi trên hero/sections khi thu gọn */
}
.site-header.compact .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 20px;
}
.site-header.compact .site-logo {
    transform: translateX(0); /* Moves from center to left */
}
.site-header.compact .header-logo { 
    height: 40px; /* Shrink logo */
}
.site-header.compact .main-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.site-header.compact .main-nav .nav-link {
    padding: 4px 12px; 
    font-size: 12px; 
    color: #333 !important; 
    font-weight: 600;
    letter-spacing: 0.08em;
}
.site-header.compact .header-search {
    position: relative;
    opacity: 1;
    justify-self: flex-end;
}
.site-header.compact .search-icon {
    font-size: 16px; 
    color: #666; 
    cursor: pointer; 
    transition: color 0.2s ease;
}
.site-header.compact .search-icon:hover { color: #333; }

/* --- Product Detail Page --- */
.product-gallery .swiper {
    width: 100%;
}

/* ===================== */
/* Product Listing Page  */
/* ===================== */
.product-listing-page .product-filters {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
    text-align: left;
}

.product-listing-page .filter-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.product-grid {
    width: 100%;
}

.product-item {
    display: block;
    color: inherit;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
    margin-bottom: 1.5rem; /* Add space between rows */
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.product-item-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Square aspect ratio */
    background-color: #f8f9fa;
}

.product-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image covers the area */
    transition: transform .4s ease;
}

.product-item:hover .product-image {
    transform: scale(1.05);
}

.product-name {
    padding: 1rem;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    color: #343a40;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-gallery .product-swiper-main {
    position: relative;
    width: 100%;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden; /* ẩn các slide bên cạnh, tránh tràn ra ngoài */
}

.product-gallery .product-swiper-main .swiper-wrapper {
    position: relative;
    height: 100%; /* chiều cao 100% của container */
    width: 100%;
}

.product-gallery .product-swiper-main .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery .product-swiper-main .swiper-slide img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-gallery .product-swiper-thumbs {
    height: 80px; /* Giảm chiều cao thumbnail */
    box-sizing: border-box;
    padding-top: 10px; /* Chỉ thêm padding ở trên */
}

.product-gallery .product-swiper-thumbs .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.5;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.product-gallery .product-swiper-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #000;
}

.product-gallery .product-swiper-thumbs .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details .row {
    border-bottom: 1px solid #f0f0f0;
    padding: 0.75rem 0;
}

.product-details .row:last-child {
    border-bottom: none;
}

/* ===================== */
/* Scroll Animations
/* ===================== */
.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation for child elements */
.scroll-animate-stagger > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-animate-stagger.is-visible > *:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.scroll-animate-stagger.is-visible > *:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.scroll-animate-stagger.is-visible > *:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.scroll-animate-stagger.is-visible > *:nth-child(4) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.7s;
}

.scroll-animate-stagger.is-visible > *:nth-child(5) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.9s;
}

/* Slide in from left */
.scroll-slide-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-slide-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide in from right */
.scroll-slide-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-slide-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale animation */
.scroll-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* New Site Footer Styling */
.site-footer {
    padding: 40px 0;
    background-color: #fff;
    border-top: 1px solid #e7e7e7;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align content to the left */
    gap: 20px;
}

.social-icons {
    display: flex;
    gap: 24px; /* Space between icons */
}

.social-icons a {
    color: #000;
    font-size: 20px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #555;
}

.footer-links {
    font-size: 15px; /* Made text bigger */
    display: flex;
    align-items: center;
    gap: 12px; /* Space between items */
}

.footer-links a {
    color: #000;
    text-decoration: none;
    font-weight: 600; /* Made text bolder */
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-links .separator {
    color: #ccc;
}


/* ===================== */
/* News Page (Magazine)  */
/* ===================== */
.news-hero { position: relative; min-height: 38vh; display: grid; place-items: center; text-align: center; color: #0f172a; overflow: hidden; }
.news-hero-media { position: absolute; inset: 0; }
.news-hero-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 35%, rgba(255,255,255,.85) 0%, rgba(255,255,255,.75) 35%, rgba(255,255,255,.55) 60%, rgba(255,255,255,.25) 100%); }
.news-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(2px) saturate(1.05); transform: scale(1.02); }
.news-hero-inner { position: relative; z-index: 1; width: min(1100px, 92%); margin: 0 auto; }
.news-hero-title { font-weight: 900; letter-spacing: .2px; font-size: clamp(28px, 6vw, 54px); margin: 0 0 8px; color: #0b1220; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.news-hero-sub { margin: 0 0 18px; font-size: clamp(14px, 2.2vw, 18px); color: #334155; }
.news-search { display: flex; gap: 10px; justify-content: center; margin: 18px auto 14px; }
.news-search input[type="search"] { width: min(540px, 80%); padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(0,0,0,.08); background: rgba(255,255,255,.85); backdrop-filter: blur(4px); outline: none; transition: box-shadow .2s ease, border-color .2s ease; }
.news-search input[type="search"]:focus { border-color: rgba(74,144,226,.5); box-shadow: 0 6px 18px rgba(2,132,199,.15); }
.news-search .btn-search { padding: 12px 16px; border-radius: 10px; background: linear-gradient(180deg,#111827,#0b1220); color: #fff; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 8px 24px rgba(0,0,0,.22); cursor: pointer; }
.news-cats { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.news-cats .pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: rgba(15,23,42,.06); color: #0f172a; text-decoration: none; border: 1px solid rgba(15,23,42,.08); transition: background .2s ease, transform .15s ease; }
.news-cats .pill:hover { background: rgba(15,23,42,.10); transform: translateY(-1px); }
.news-cats .pill.is-active { background: #0f172a; color: #fff; border-color: transparent; }

.news-body { padding: 36px 0 64px; background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%); }
.news-grid { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }

.news-main { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.news-card { grid-column: span 4; /* 3 cột trên desktop */ display: grid; grid-template-columns: 1fr; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 28px rgba(2,6,23,.06); border: 1px solid rgba(15,23,42,.06); transition: transform .25s ease, box-shadow .25s ease; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(2,6,23,.10); }
.news-card .card-media { position: relative; display: block; overflow: hidden; aspect-ratio: 16/9; background: #e2e8f0; }
.news-card .card-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform .35s ease; }
.news-card:hover .card-media img { transform: scale(1.06); }
.news-card .card-content { padding: 16px 18px 18px; text-align: left; }
.card-tag { display: inline-block; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .2px; background: #e0f2fe; color: #075985; text-decoration: none; border: 1px solid rgba(7,89,133,.2); }
.card-tag.tag-b { background: #fee2e2; color: #991b1b; border-color: rgba(153,27,27,.2); }
.card-tag.tag-c { background: #dcfce7; color: #166534; border-color: rgba(22,101,52,.2); }
.card-title { margin: 10px 0 6px; font-size: clamp(18px, 2.6vw, 22px); line-height: 1.35; font-weight: 800; color: #0b1220; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-excerpt { margin: 0 0 10px; color: #475569; font-size: 15px; }
.card-meta { display: flex; gap: 8px; align-items: center; color: #64748b; font-size: 13px; }

.news-pagination { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 18px; }
.news-pagination .page { display: inline-flex; align-items: center; justify-content: center; height: 36px; min-width: 36px; padding: 0 12px; border-radius: 10px; background: #fff; color: #0f172a; border: 1px solid rgba(15,23,42,.08); text-decoration: none; }
.news-pagination .page.is-active { background: #0f172a; color: #fff; border-color: transparent; }
.news-pagination .page.disabled { opacity: .45; pointer-events: none; }

.news-aside { position: sticky; top: 92px; display: grid; gap: 18px; }
.aside-box { background: #fff; border-radius: 16px; border: 1px solid rgba(15,23,42,.06); box-shadow: 0 10px 28px rgba(2,6,23,.06); padding: 16px; }
.aside-title { margin: 0 0 10px; font-weight: 800; color: #0b1220; }
.trend-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.trend-list li a { color: #0f172a; text-decoration: none; }
.trend-list li a:hover { text-decoration: underline; }
.t-meta { display: block; color: #94a3b8; font-size: 12px; margin-top: 2px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { text-decoration: none; padding: 6px 10px; border-radius: 999px; background: #f1f5f9; color: #0f172a; border: 1px solid rgba(15,23,42,.06); font-size: 13px; }

@media (max-width: 991.98px){
  .news-grid { grid-template-columns: 1fr; }
  .news-aside { position: static; }
}

@media (max-width: 575.98px){
  .news-hero { min-height: 46vh; }
  .news-card .card-content { padding: 14px; }
}

/* ===================== */
/* Article Detail Page   */
/* ===================== */
.article-hero { position: relative; min-height: auto; display: grid; align-items: end; color: #0f172a; overflow: hidden; background: #fff; }
.article-hero-media { position: absolute; inset: 0; background: #eef2f7; }
.article-hero-media::before { content: ""; position: absolute; inset: 0; background-image: var(--bg); background-size: cover; background-position: center; filter: blur(3px) saturate(1.06); transform: scale(1.04); }
.article-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.86) 32%, rgba(255,255,255,.65) 60%, rgba(255,255,255,.24) 100%); }
.article-hero .container { position: relative; z-index: 1; width: min(1100px, 92%); margin: 0 auto; }
.article-hero-inner { padding: 12px 0; }
.article-back { display: inline-block; margin-bottom: 6px; color: #334155; text-decoration: none; font-weight: 600; }
.article-back:hover { text-decoration: underline; }
.article-title { font-weight: 900; letter-spacing: .2px; font-size: clamp(26px, 5.4vw, 48px); margin: 0 0 6px; color: #0b1220; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: #475569; }
.article-meta .meta-dot { opacity: .5; }
.article-meta .meta-tags { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.article-meta .tag { display: inline-block; padding: 6px 10px; border-radius: 999px; background: #edf2f7; color: #0f172a; border: 1px solid rgba(15,23,42,.06); font-size: 12px; text-decoration: none; }
.article-meta .tag:hover { background: #e2e8f0; }
.article-excerpt { margin: 8px 0 0; color: #334155; font-size: 16px; }

.article-body { background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); padding: 28px 0 56px; }
.article-main-grid { display: grid; grid-template-columns: 340px 1fr; gap: 22px; align-items: start; }
.article-media { position: sticky; top: 92px; }
.thumb-elevated { margin: 0; border-radius: 16px; overflow: hidden; background: #e2e8f0; box-shadow: 0 16px 40px rgba(2,6,23,.10), 0 2px 6px rgba(2,6,23,.04); }
.thumb-elevated img { display: block; width: 100%; height: auto; }
.article-main { min-width: 0; }
.article-thumb { margin: 0 0 18px; border-radius: 16px; overflow: hidden; background: #e2e8f0; box-shadow: 0 10px 28px rgba(2,6,23,.06); }
.article-thumb img { display: block; width: 100%; height: auto; }

.article-content { color: #111827; font-size: 1.05rem; line-height: 1.85; }
.article-content h2, .article-content h3, .article-content h4 { margin-top: 1.6em; margin-bottom: .6em; font-weight: 800; color: #0b1220; }
.article-content p { margin: 0 0 1em; }
.article-content img { max-width: 100%; height: auto; border-radius: 12px; box-shadow: 0 6px 22px rgba(0,0,0,.06); }
.article-content blockquote { margin: 1.2em 0; padding: .8em 1em; border-left: 4px solid #0f172a; background: #f1f5f9; border-radius: 8px; color: #334155; }

/* khung bao nội dung */
.content-box { padding: 18px 20px; border: 1px solid rgba(15,23,42,.08); border-radius: 16px; background: #ffffff; box-shadow: 0 10px 28px rgba(2,6,23,.05); }
.content-box > :first-child { margin-top: 0; }
.content-box > :last-child { margin-bottom: 0; }

.article-share { display: flex; gap: 10px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.article-share .share-label { color: #475569; font-weight: 600; margin-right: 4px; }
.btn-share { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(15,23,42,.08); text-decoration: none; cursor: pointer; font-size: 13px; font-weight: 700; letter-spacing: .2px; transition: .2s ease; }
.btn-share .icon { flex: 0 0 auto; }
.btn-share--fb { background: #1877F2; color: #fff; border-color: rgba(24,119,242,.6); }
.btn-share--fb:hover { filter: brightness(0.95); }
.btn-share--x { background: #0f172a; color: #fff; }
.btn-share--x:hover { background: #111827; }
.btn-share--copy { background: #ffffff; color: #0f172a; }
.btn-share--copy:hover { background: #f8fafc; }
.btn-share.copied { background: #16a34a; color: #fff; border-color: rgba(22,163,74,.6); }

.article-aside { position: sticky; top: 92px; background: #fff; border: 1px solid rgba(15,23,42,.06); border-radius: 16px; box-shadow: 0 10px 28px rgba(2,6,23,.06); padding: 16px; }
.aside-title { margin: 0 0 10px; font-weight: 800; color: #0b1220; font-size: 18px; }
.related-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.related-item .rel-link { display: grid; grid-template-columns: 72px 1fr; gap: 10px; text-decoration: none; color: inherit; }
.related-item .rel-media { width: 72px; aspect-ratio: 1/1; border-radius: 8px; overflow: hidden; background: #eef2f7; }
.related-item .rel-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.related-item .rel-title { font-weight: 700; font-size: 14px; line-height: 1.35; align-self: center; }
.article-back-bottom { margin-top: 18px; }

/* Aside boxes: Xu hướng & Tag phổ biến */
.aside-box { background: #fff; border: 1px solid rgba(15,23,42,.06); border-radius: 16px; padding: 14px; box-shadow: 0 4px 18px rgba(2,6,23,.06); margin-top: 14px; }
.trend-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.trend-list li a { display: block; color: #0b1220; text-decoration: none; font-weight: 700; line-height: 1.35; }
.trend-list li a:hover { text-decoration: underline; }
.trend-list .t-meta { display: block; font-size: 12px; color: #64748b; margin-top: 2px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { display: inline-block; padding: 6px 10px; border-radius: 999px; background: #edf2f7; color: #0f172a; border: 1px solid rgba(15,23,42,.06); font-size: 12px; text-decoration: none; font-weight: 700; }
.tag-cloud a:hover { background: #e2e8f0; }

/* News search suggest dropdown */
.news-hero .news-search { position: relative; }
.news-hero .news-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid rgba(15,23,42,.08); border-radius: 12px; box-shadow: 0 16px 40px rgba(2,6,23,.12), 0 2px 8px rgba(2,6,23,.06); padding: 8px; z-index: 30; max-height: 340px; overflow: auto; }
.news-hero .news-suggest .sg-item { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; text-decoration: none; color: #0b1220; }
.news-hero .news-suggest .sg-item:hover, .news-hero .news-suggest .sg-item.is-active { background: #f1f5f9; }
.news-hero .news-suggest .sg-item img { width: 56px; height: 40px; object-fit: cover; border-radius: 8px; background: #eef2f7; }
.news-hero .news-suggest .sg-item .sg-title { font-weight: 700; line-height: 1.35; }
.news-hero .news-suggest .sg-item .sg-meta { font-size: 12px; color: #64748b; }

@media (max-width: 991.98px){
  .news-grid { grid-template-columns: 1fr; }
  .news-main { grid-template-columns: repeat(12, 1fr); }
  .news-card { grid-column: span 12; }
  .news-hero { min-height: 28vh; }
  .article-hero { min-height: auto; }
  .article-aside { position: static; margin-top: 18px; }
}

/* Tablet: thu gọn hero một chút */
@media (max-width: 1199.98px){
  .news-hero { min-height: 32vh; }
}

@media (max-width: 575.98px){
  .news-hero { min-height: 24vh; }
}

/* Medium screens: 2 cột */
@media (max-width: 1199.98px){
  .news-card { grid-column: span 6; }
}

/* ==========================
   Mobile Optimizations
   ========================== */
@media (max-width: 767.98px){
  /* Global spacing & typography */
  body { font-size: 15.5px; }
  .container { padding-left: 16px; padding-right: 16px; }

  /* Header over hero: ensure readability */
  .site-header { padding: 10px 0; }
  .site-header.compact { padding: 8px 0; }

  /* Hero slider controls on mobile */
  .hero-nav { width: 36px; height: 60px; top: auto; bottom: 22px; background: rgba(255,255,255,.7); border: 1px solid rgba(0,0,0,.08); border-radius: 8px; }
  .hero-nav .hero-chevron { width: 24px; height: 24px; }
  .hero-prev { left: 10px; }
  .hero-next { right: 10px; }
  .hero-dots { bottom: 10px; gap: 6px; }
  .hero-dot { width: 8px; height: 8px; }
  .hero-content { padding-top: 18vh; }
  .hero-landing .slide-1 .hero-left, .hero-landing .slide-2 .hero-left { padding: 22px 14px 0; }
  .hero-landing .slide-1 .hero-content, .hero-landing .slide-2 .hero-content { padding-top: 16vh; }
  .hero-landing .slide-1 .hero-title, .hero-landing .slide-2 .hero-title { font-size: 28px; line-height: 1.15; }
  .hero-landing .slide-1 .hero-kicker, .hero-landing .slide-2 .hero-kicker { font-size: 14px; }
  .hero-landing .slide-1 .hero-subtitle, .hero-landing .slide-2 .hero-subtitle { font-size: 15px; line-height: 1.4; }
  .hero-landing .slide-1 .hero-desc, .hero-landing .slide-2 .hero-desc { font-size: 13px; line-height: 1.45; }
  .hero-landing .slide-1 .slide-1-cta, .hero-landing .slide-2 .slide-1-cta { height: 44px; min-width: 128px; width: auto; padding: 0 14px; }

  /* Index hero (generic landing) */
  .hero-landing .hero-title { font-size: clamp(28px, 8vw, 36px); line-height: 1.12; }
  .hero-landing .hero-sub { font-size: 14px; }
  .hero-landing .hero-cta { gap: 10px; flex-wrap: wrap; }

  /* News page */
  .news-hero .news-hero-title { font-size: clamp(28px, 8vw, 40px); }
  .news-hero .news-hero-sub { font-size: 14px; }
  .news-hero .news-hero-inner { padding: 48px 16px; }
  .news-hero .news-search { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .news-hero .news-search input[type="search"]{ height: 44px; font-size: 15px; }
  .news-hero .news-search .btn { height: 44px; font-size: 15px; }
  .news-hero .news-cats { gap: 8px; }
  .news-hero .news-cats .pill { padding: 8px 12px; font-size: 12.5px; }
  .news-body .news-grid { display: block; }
  .news-body .news-main { margin-bottom: 20px; }
  .news-body .news-card { border-radius: 14px; overflow: hidden; }
  .news-body .news-card .card-content { padding: 12px; }
  .news-body .news-card .card-title { font-size: 18px; line-height: 1.25; }
  .news-aside .aside-box { margin-top: 12px; }
  .news-hero .news-suggest { top: calc(100% + 6px); }

  /* Post detail (page.php type=post) */
  .article-hero { padding: 36px 0 20px; }
  .article-title { font-size: clamp(22px, 7vw, 32px); }
  .article-meta { gap: 6px; }
  .article-meta .tag { padding: 5px 9px; font-size: 11.5px; }
  .article-body { padding: 18px 0 36px; }
  .content-box { padding: 14px; border-radius: 14px; }
  .article-main-grid { grid-template-columns: 1fr !important; gap: 14px; }
  .article-media { position: static; }

  /* Products listing */
  .product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card { border-radius: 14px; overflow: hidden; }
  .product-card .pc-title { font-size: 14px; line-height: 1.3; }
  .product-card .pc-price { font-size: 14px; }

  /* Product detail */
  .product-gallery { --thumb-size: 60px; }
  .product-swiper-thumbs { margin-top: 8px; }
  .product-info { padding: 12px 0; }
  .product-info h1 { font-size: 22px; }

  /* About page */
  .brand-intro .brand-title { font-size: clamp(22px, 6.8vw, 30px); }
  .about-image-block { margin: 16px -8px; }
}
