/* Ngoc Hien Pearl — dựng lại từ scaleupvn.com/ngoc-hien-pearl/ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: #000; font-family: "Marcellus", serif; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; font-weight: 300; }
.wrap { width: min(1280px, 100% - 40px); margin-inline: auto; }
.center { display: flex; justify-content: center; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; border-radius: 999px;
  font: 700 18px/1 "Marcellus", serif; letter-spacing: -.4px; color: #fff;
  transition: translate .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s;
}
.btn:hover { translate: 0 -2px; }
.btn--glass { background: rgba(255, 90, 110, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 6px 18px rgba(200, 40, 70, .25); backdrop-filter: blur(6px); }
.btn--black { background: radial-gradient(120% 140% at 50% 0%, #4a4a4a 0%, #000 55%); box-shadow: 0 0 0 2px #000, inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 14px rgba(0, 0, 0, .25); }

/* nav */
.nav { position: absolute; inset: 0 0 auto; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 26px 132px; color: #fff; }
.nav__brand { display: flex; align-items: center; gap: 6px; font-size: 22px; line-height: 1.1; letter-spacing: -1.2px; }
.nav__brand img { width: 37px; height: 37px; filter: brightness(0) invert(1); }
.nav__menu { display: flex; gap: 14px; font-size: 19px; letter-spacing: -1.2px; }
.nav__menu a:hover { opacity: .7; }
.nav__icons { display: flex; justify-content: flex-end; gap: 18px; }
.nav__icons svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.3; }

/* hero */
.hero { position: relative; height: max(640px, 100vh); max-height: 1000px; background: url(img/hero.jpg) center/cover no-repeat; color: #fff; text-align: center; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 24px; background: #fff; clip-path: ellipse(70% 100% at 50% 100%); }
.hero__video { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; background: #000; }
.hero__video.is-playing { opacity: 1; }
.hero.is-video-done .hero__video { opacity: 0; }
.hero__video iframe { position: absolute; top: 50%; left: 50%; translate: -50% -50%; border: 0; }
.hero__content { position: relative; z-index: 2; padding-top: 152px; display: flex; flex-direction: column; align-items: center; }
.hero__title { font-size: clamp(40px, 4.75vw, 68px); line-height: 1.2; letter-spacing: -.9px; text-shadow: 0 2px 20px rgba(120, 60, 90, .25); }
.hero__title em { font-weight: 600; font-style: italic; letter-spacing: -2px; }
.hero__sub { margin-top: 20px; font-size: 20px; line-height: 1.6; font-weight: 500; }
.hero__content .btn { margin-top: 18px; }

/* intro */
.intro { position: relative; padding: 210px 20px 200px; overflow: hidden; text-align: center; }
.intro__shell { position: absolute; pointer-events: none; }
.intro__shell--top { width: 218px; top: 0; right: 42px; }
.intro__shell--blur { width: 367px; left: 95px; bottom: 30px; filter: blur(5px); mix-blend-mode: multiply; }
.intro__inner { position: relative; max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.intro__title { font-size: clamp(36px, 4.75vw, 68px); line-height: .95; letter-spacing: -.9px; }
.intro__title em { font-style: italic; }
.intro__ring { display: inline-block; vertical-align: middle; width: 77px; height: 77px; border-radius: 50%; object-fit: cover; margin: 0 4px; }
.intro__text { max-width: 640px; margin-top: 24px; font-size: 20px; line-height: 1.6; font-weight: 500; }
.intro__inner .btn { margin-top: 18px; }

/* categories */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); }
.cat { position: relative; aspect-ratio: 480 / 500; background-size: cover; background-position: center; overflow: hidden; }
.cat__label {
  position: absolute; left: 50%; bottom: 30px; translate: -50% 0; width: 230px; height: 66px; padding: 0 16px 0 20px; border-radius: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(255, 255, 255, .22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); color: #fff; font-size: 22px; letter-spacing: -1.2px; line-height: 1.1;
}
.cat__label i { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .85); background: no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4'%3E%3Cpath d='M4 12h16m-6-6 6 6-6 6'/%3E%3C/svg%3E"); }
.cat { transition: filter .4s; }
.cat:hover { filter: brightness(1.05); }

/* products */
.sec-title { text-align: center; font-size: 30px; letter-spacing: -1.2px; line-height: 1.1; }
.products { padding: 150px 0 92px; }
.products__grid { margin-top: 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 52px 10px; }
.prod { display: flex; flex-direction: column; }
.prod__img { display: block; aspect-ratio: 1; background: #f6f6f6; overflow: hidden; }
.prod__img img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s; }
.prod:hover .prod__img img { scale: 1.04; }
.prod__name { margin-top: 6px; font-size: 17px; letter-spacing: -1.2px; line-height: 1.1; }
.prod__price { margin-top: 6px; font-family: "Poppins", sans-serif; font-size: 16px; font-weight: 300; letter-spacing: -1.2px; color: #6e6e6e; }
.products .center { margin-top: 32px; }

/* cosmetics */
.cosm { padding: 80px 0 80px; background: url(img/cos-bg.jpg) center/cover no-repeat; }
.cosm__card {
  width: min(1280px, 100% - 40px); margin: 0 auto; min-height: 630px; border-radius: 40px; padding: 60px 76px;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px;
  background: rgba(255, 255, 255, .2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), 0 20px 60px rgba(40, 60, 90, .08);
}
.cosm__img { width: 100%; max-width: 560px; }
.cosm__body { max-width: 490px; }
.cosm__title { font-size: 25px; letter-spacing: -1.2px; line-height: 1.1; margin-bottom: 14px; }
.cosm__label { margin-top: 18px; font-size: 17px; letter-spacing: -1.2px; }
.cosm__text { margin-top: 6px; font-family: "Poppins", sans-serif; font-size: 16px; font-weight: 300; letter-spacing: -1.2px; line-height: 1.1; color: #3e3e3e; }
.cosm__body .btn { margin-top: 16px; }

/* blog */
.blog { padding: 64px 0 90px; }
.blog__grid { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post { position: relative; aspect-ratio: 413 / 500; background-size: cover; background-position: center; overflow: hidden; }
.post__meta {
  position: absolute; inset: auto 0 0; padding: 16px 25px 18px; display: flex; flex-direction: column; gap: 4px;
  background: linear-gradient(180deg, rgba(40, 40, 40, .35), rgba(20, 20, 20, .7)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #fff; font-size: 17px; letter-spacing: -1.2px; line-height: 1.1;
}
.post__meta small { font-family: "Poppins", sans-serif; font-size: 13px; font-weight: 300; color: #dedede; letter-spacing: -.6px; }
.blog .center { margin-top: 24px; }

/* footer */
.footer { position: relative; padding: 60px 0 40px; background: url(img/footer-bg.jpg) center/cover no-repeat; color: #fff; }
.footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 52px; padding-inline: 24px; }
.footer h4 { font-size: 25px; letter-spacing: -1.2px; line-height: 1.1; font-weight: 300; margin: 0 0 6px; }
.footer li { font-family: "Poppins", sans-serif; font-size: 16px; font-weight: 300; line-height: 1.6; }
.footer__social { display: flex; gap: 14px; margin: 4px 0 6px; }
.footer__social svg { width: 22px; height: 22px; fill: #fff; }
.footer__copy { margin-top: 120px; text-align: center; font-family: "Poppins", sans-serif; font-size: 16px; font-weight: 300; }

/* responsive */
@media (max-width: 1100px) {
  .nav { padding: 22px 32px; }
  .nav__menu { display: none; }
  .intro__shell--blur { left: -40px; width: 260px; }
}
@media (max-width: 760px) {
  .nav { padding: 18px 20px; grid-template-columns: 1fr auto; }
  .nav__icons svg { width: 24px; height: 24px; }
  .hero { height: 640px; }
  .hero__content { padding-top: 140px; padding-inline: 16px; }
  .hero__sub { font-size: 15px; }
  .intro { padding: 150px 16px 160px; }
  .intro__shell--top { width: 130px; right: 0; }
  .intro__shell--blur { width: 200px; left: -40px; bottom: 0; }
  .intro__ring { width: 52px; height: 52px; }
  .intro__text { font-size: 16px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .cat__label { width: calc(100% - 24px); height: 52px; bottom: 12px; font-size: 16px; padding: 0 10px 0 14px; }
  .products { padding-top: 90px; }
  .products__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 10px; }
  .prod__name { font-size: 15px; }
  .prod__price { font-size: 14px; }
  .cosm { padding: 40px 0; }
  .cosm__card { grid-template-columns: 1fr; padding: 32px 22px; border-radius: 28px; }
  .blog__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-inline: 0; }
  .footer h4 { font-size: 20px; }
  .footer li { font-size: 14px; }
  .footer__copy { margin-top: 60px; font-size: 14px; }
}
