/* Respect reading preferences without changing the default Loving motion. */
@media (prefers-reduced-motion:reduce){
 html{scroll-behavior:auto!important}
 #main .lv-hero [data-lv-buoc],#main .lv-hero .lv-tu,#main [data-loving-home-entry-step]{
  animation:none!important;transition:none!important;opacity:1!important;transform:none!important
 }
}
#main .coffee-name-characteristics{font-size:clamp(1rem,1.6vw,1.35rem);line-height:1.4;font-weight:650;margin:.35rem 0 .75rem}
#main #product-discover{scroll-margin-top:110px}
#main #product-discover .pho-r03-main-image{object-fit:contain}
#main #product-discover .pho-r03-content{max-width:100%}
#main .noodle-standard-hero .lv-hero__chu h1{overflow-wrap:anywhere}
#main a:focus-visible,#main button:focus-visible{outline:2px solid #285e3c;outline-offset:3px}
#main .loving-identity-feature{display:block;color:#775322;font-weight:650;line-height:1.35;margin:.32rem 0 .5rem}
#main .loving-identity-lead{line-height:1.45;margin:.3rem 0 .55rem}
#main .lv-hero .loving-identity-feature{font-size:clamp(1rem,1.55vw,1.35rem);color:inherit}
#main .loving-brand-collections{grid-column:1/-1;min-width:0}
#main .loving-brand-section+.loving-brand-section{margin-top:clamp(1.8rem,5vw,3.5rem)}
#main .loving-brand-section:not(:has(.product-card:not([hidden]))){display:none}
#main .loving-brand-section__title{display:flex;align-items:center;gap:.9rem;margin:0 0 1.15rem;text-align:left;color:#174d34;font-size:clamp(1.25rem,2.3vw,1.85rem);line-height:1.2}
#main .loving-brand-section__title::after{content:"";height:1px;background:#abc3a0;flex:1}
#main .loving-brand-collections--home .loving-brand-section .grid{align-items:stretch}

/* Group card text as one compact reading block instead of a series of fixed slots. */
html body #main .loving-brand-collections .product-card .card-body{
 display:flex;flex-flow:column nowrap;align-items:flex-start;gap:.45rem;padding:clamp(.75rem,2vw,1.2rem)!important;min-height:0!important
}
html body #main .loving-brand-collections .product-card .card-body :is(.tag,h3,.loving-identity-feature,.loving-identity-lead,.product-caption,.price){
 margin:0!important;min-height:0!important;max-width:100%
}
html body #main .loving-brand-collections .product-card .card-body h3{font-size:clamp(1.02rem,1.6vw,1.38rem)!important;line-height:1.25!important;overflow-wrap:anywhere}
html body #main .loving-brand-collections .product-card .card-body :is(.loving-identity-feature,.loving-identity-lead,.price){font-size:.96rem;line-height:1.4}
html body #main .loving-brand-collections .product-card .card-body .button{display:inline-flex;align-items:center;align-self:flex-start;min-height:44px;max-width:100%;padding:.45rem .65rem!important;line-height:1.25;font-size:.94rem;letter-spacing:normal;margin: .12rem 0 0!important}
html body #main .loving-brand-collections--home .product-card .visual.tea-grid-visual img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
html body #main .loving-brand-collections--home .product-card .visual.tea-grid-visual{background:#f0e5d6}
@media (max-width:760px){
 html body #main .loving-brand-collections--home .loving-brand-section>.grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.65rem!important}
 html body #main .loving-brand-collections--home .product-card .card-body .button::after{display:none}
}
@media (max-width:340px){html body #main .loving-brand-collections--home .loving-brand-section>.grid{grid-template-columns:minmax(0,1fr)!important}}
@layer editorial-r07{
 @media(max-width:760px){
  html body[data-loving-story-spacing] #main article.n01-pab .n01-row{gap:14px!important;margin-bottom:26px!important}
  html body[data-loving-story-spacing] #main article.n01-pab .n01-dark{padding:14px!important}
  html body[data-loving-story-spacing] #main article.n01-pab .n01-figure figcaption{margin-top:6px!important}
  html body[data-loving-story-spacing] #main article.n01-pab .n01-copy h3{margin:6px 0 10px!important}
  html body[data-loving-story-spacing] #main article.n01-pab .n01-copy p{margin-bottom:12px!important}
  html body[data-loving-story-spacing] #main article.n01-pab .n01-copy p:last-child{margin-bottom:0!important}
 }
}
#san-pham-noi-bat{scroll-margin-top:100px}
html body #main .home-brand-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(.65rem,2vw,1.4rem);align-items:stretch}
@media(max-width:900px){
 html body #main .home-brand-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:340px){html body #main .home-brand-grid{grid-template-columns:minmax(0,1fr)}}

/* Use the full-width, approved cereal scene. The 4:3 window takes the
   right portion with the complete carton, sachet and cup. */
html body #main .product-card:is([href="/san-pham/ngu-coc-yen-mach-hat-sen"],[href="/en/san-pham/ngu-coc-yen-mach-hat-sen"])>.visual {
 position:relative!important;aspect-ratio:4/3!important;background:#c5c8b4!important
}

/* Keep the three featured products in one row and the two coffees side by side. */
html body #main .loving-brand-collections .loving-brand-section > .brand-priority-grid{
 grid-template-columns:repeat(3,minmax(0,1fr))!important
}
@media(max-width:900px){
 html body #main .loving-brand-collections .loving-brand-section > .brand-priority-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important
 }
 html body #main .brand-priority-grid:has(>[data-category="coffee"]:not([hidden]))>[data-category="pho"]{
  grid-column:1/-1
 }
}
@media(max-width:340px){
 html body #main .loving-brand-collections .loving-brand-section > .brand-priority-grid{
  grid-template-columns:minmax(0,1fr)!important
 }
}
@layer catalog-pa1 {
 html body #main .catalog-pa1 .ed-product-grid.brand-priority-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important
 }
 @media(max-width:900px){
  html body #main .catalog-pa1 .ed-product-grid.brand-priority-grid{
   grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:clamp(.65rem,2vw,1.4rem)!important
  }
 }
 @media(max-width:340px){
  html body #main .catalog-pa1 .ed-product-grid.brand-priority-grid{
   grid-template-columns:minmax(0,1fr)!important
  }
 }
}

/* Four TQB products together on desktop; a 2-by-2 group at phone widths. */
@media(min-width:1100px){
 html body #main .loving-brand-collections .loving-brand-section > .brand-priority-grid.brand-tqb-showcase{
  grid-template-columns:repeat(4,minmax(0,1fr))!important
 }
}
@layer catalog-pa1 {
 @media(min-width:1100px){
  html body #main .catalog-pa1 .ed-product-grid.brand-priority-grid.brand-tqb-showcase{
   grid-template-columns:repeat(4,minmax(0,1fr))!important
  }
 }
}
