/* Membership Popup Styles */
.membership-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh; /* For mobile viewport */
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
  background-color: rgb(31 29 29 / 50%);
z-index: 9999;
}
.membership-popup .popup-slider {
  width: 100%;
  height: 100%;
  position: relative;
}
.membership-popup .popup-slider .slide {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0; left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.membership-popup .popup-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

}
.membership-popup .popup-slider .slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}
.membership-popup.show {
  display: flex;
  opacity: 1;
}

.popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.popup-content {
  position: relative;
  width: 697px;
  height: 697px;
  /* width: 90vw;
  max-width: 610px;
  height: 90vw; */
  max-height: 90vh;
  aspect-ratio: 1;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: popupSlideIn 0.4s ease-out;
}

@keyframes popupSlideIn {
  from {
    transform: scale(0.8) translateY(30px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Close Button */
.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.popup-close:hover {
  background: white;
  transform: scale(1.1);
  color: #8B1538;
}
@media (max-width: 768px) {
  .membership-popup .popup-content {
    width: 90vw;
    height: auto;
    max-width: 500px;
    aspect-ratio: 1;
  }
  .membership-popup .popup-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}


.salon{
  position: relative;
  padding: 0px 20px 20px;
   background-image: url('/assets/images/footer-bg.png');
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: cover;
}

.salon__wrap{
  max-width: var(--page-max, 1200px);
  margin: 0 auto;
}

/* Heading with lines */
.salon__heading{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 46px;
}

.salon__title{
  margin: 0;
  font-family: var(--font-title, "Lato", Helvetica, Arial, sans-serif);
  font-weight: 300;
  font-size: 30px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--color-primary);
  white-space: nowrap;
}

.salon__line{
  height: 1px;
  width: min(280px, 22vw);
  background: rgba(245, 145, 145, 0.55);
}

/* Grid images */
.salon__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* Square item */
.salon__item{
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1; 
  overflow: hidden;
  background: rgba(255,255,255,.04);
  border-radius: 2px;
  /* box-shadow: 0 18px 45px rgba(0,0,0,.35); */
  text-decoration: none;
  transform: translateZ(0);
}

.salon__item img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform .45s ease, filter .45s ease;
  /* filter: brightness(.88); */
}

/* Overlay tối nhẹ */
/* .salon__item::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.18);
  opacity: 1;
  transition: opacity .35s ease;
} */

/* icon + (tùy chọn) */
.salon__item::before{
  content: "+";
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 2px;
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.9);
  font-family: var(--font-title, "Lato", Helvetica, Arial, sans-serif);
  font-size: 22px;
  opacity: 0;
  transform: translateY(6px);
  transition: .25s ease;
}

/* Hover */
.salon__item:hover img{
  transform: scale(1.08);
  filter: brightness(1);
}
.salon__item:hover::after{ opacity: 0; }
.salon__item:hover::before{
  opacity: 1;
  transform: translateY(0);
}

/* ===== iPad ===== */
@media (max-width: 1024px){
  .salon{ padding: 64px 18px; }
  .salon__grid{ grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .salon__title{ font-size: 26px; }
  .salon__heading{ margin-bottom: 34px; gap: 18px; }
  .salon__line{ width: min(220px, 20vw); }
}

/* ===== Mobile ===== */
@media (max-width: 768px){
  .salon{ padding: 52px 16px; }
  .salon__grid{ grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .salon__title{
    font-size: 20px;
    letter-spacing: .22em;
  }

  .salon__line{ width: 18vw; }
}

@media (max-width: 420px){
  .salon__grid{ grid-template-columns: 1fr; }
  .salon__line{ display: none; }
}


.booking-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  min-height: calc(100vh - 100px);
  background-image: url('/assets/images/footer-bg.png');
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: cover;
  margin-top: 100px;
}

.call-book-card{
  width: min(100%, 760px);
  padding: 42px 36px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(245, 145, 145, 0.2);
  box-shadow: 0 24px 64px rgba(71, 41, 41, 0.1);
  text-align: center;
}

.call-book-card__eyebrow{
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
}

.call-book-card__title{
  margin: 0 0 16px;
  font-family: var(--font-title);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  color: #2f2623;
}

.call-book-card__text{
  margin: 0 auto 16px;
  max-width: 580px;
  font-size: 17px;
  line-height: 1.8;
  color: #685652;
}

.call-book-card__phone{
  display: inline-block;
  margin: 8px 0 18px;
  font-family: var(--font-title);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  color: var(--color-primary);
}

.call-book-card .nail-hero__btn{
  margin-top: 8px;
}

.iframe-wrapper {
  width: 100%;
  max-width: 1200px;
  height: 90vh; /* Chiều cao bằng 90% chiều cao màn hình */
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .booking-section {
    padding: 20px 10px;
  }

  .call-book-card{
    padding: 28px 18px;
    border-radius: 22px;
  }

  .call-book-card__text{
    font-size: 15px;
    line-height: 1.7;
  }

  .call-book-card__phone{
    font-size: 32px;
  }

  .iframe-wrapper {
    height: 80vh; /* thấp hơn chút cho mobile */
    border-radius: 6px;
  }
}

/* ====== SERVICES PAGE LIST ====== */
.svc{
  background:
    radial-gradient(circle at top, rgba(248, 200, 192, 0.28), transparent 28%),
    linear-gradient(180deg, #fffdfc 0%, #ffffff 100%);
  padding: 40px 20px 70px;
}

.svc-group{
  max-width: var(--page-max);
  margin: 0 auto 18px;
  padding: 34px 34px 30px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(245, 145, 145, 0.18);
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(80, 48, 48, 0.08);
}

.svc-title{
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(30px, 4.2vw, 44px);
  text-align: center;
  margin: 0 0 28px;
  color: #3f332f;
  letter-spacing: .08em;
  text-transform: uppercase;
  position: relative;
}
.svc-title::after{
  content: "";
  display: block;
  width: 108px;
  height: 2px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(245, 145, 145, 0.12), var(--color-primary), rgba(245, 145, 145, 0.12));
}
.svc-sub-title{
  font-family: var(--font-title);
  font-weight: 500;
  font-size: clamp(20px, 3vw, 28px);
  text-align: left;
  color: #000;
}
/* 2-column grid */
.svc-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 34px;
}
.svc-grid--single{
  grid-template-columns: 1fr;
  max-width: 860px;
  margin: 0 auto;
}
.svc-col{
  display: grid;
  gap: 16px;
  align-content: start;
}

/* Item with dotted leader */
.svc-item{
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(250, 241, 239, 0.78));
  border: 1px solid rgba(245, 145, 145, 0.14);
  box-shadow: 0 10px 26px rgba(73, 40, 40, 0.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.svc-item .row{
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.svc-item .title{
  font-weight: 600;
  font-size: 21px;
  margin: 0;
  color: #2f2623;
  line-height: 1.2;
}
.svc-note{
  text-align:center;
  font-size:15px;
  color:#6f5b4f;
  margin-top:-10px;
  margin-bottom:40px;
  letter-spacing:.5px;
}
.svc-item .leader{
  flex: 1 1 auto;
  height: 0;
  border-bottom: 2px dotted rgba(88, 67, 62, 0.55);
  transform: translateY(-3px);
}
.svc-item .price{
  font-size: 22px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--color-primary);
}
.svc-item .desc{
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(245, 145, 145, 0.12);
  line-height: 1.7;
  font-size: 15px;
  color: #655550;
}
.svc-item .desc p{
  margin: 0;
}
.svc-item .desc p + p{
  margin-top: 2px;
}
.svc-group--addons .svc-grid{
  max-width: 980px;
  margin: 0 auto;
}

/* subtle hover lift */
.svc-item:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(73, 40, 40, 0.09);
  border-color: rgba(245, 145, 145, 0.28);
}

/* spacing between groups */
.svc-group + .svc-group{ margin-top: 28px; }

/* Responsive */
@media (max-width: 980px){
  .svc-grid{ grid-template-columns: 1fr; gap: 24px; }
  .svc-group{
    padding: 28px 22px 24px;
    border-radius: 20px;
  }
}
@media (max-width: 560px){
  .svc{
    padding: 34px 12px 56px;
  }
  .svc-group{
    padding: 22px 16px 18px;
  }
  .svc-title{
    margin-bottom: 22px;
    letter-spacing: .06em;
  }
  .svc-item{
    padding: 14px 14px;
    border-radius: 16px;
  }
  .svc-item .row{
    gap: 8px;
  }
  .svc-item .title,
  .svc-item .price{
    font-size: 18px;
  }
  .svc-item .desc{
    font-size: 14px;
    line-height: 1.65;
  }
}

/* =========================
   BLOG LIST PAGE
========================= */
.blog-list-page{
  padding: 72px 0 92px;
  background: #fff;
}

.blog-list-head{
  text-align: center;
  margin-bottom: 44px;
}

.blog-list-title{
  margin: 0 0 10px;
  font-size: 42px;
  font-weight: 500;
  font-family: var(--font-title);
}

.blog-list-sub{
  margin: 0;
  font-size: 16px;
  color: rgba(0,0,0,.55);
  line-height: 1.8;
}

/* Grid 3 cột */
.blog-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

/* Card */
.blog-card{
  display:flex;
  flex-direction: column;
}

.blog-thumb{
  display:block;
  overflow:hidden;
  border-radius: 0; /* giống mẫu: ảnh vuông */
  box-shadow: 0 16px 44px rgba(0,0,0,.10);
  transition: transform .25s ease, box-shadow .25s ease;
}

.blog-thumb img{
  width:100%;
  height: 360px;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .45s ease;
  will-change: transform;
}

.blog-card:hover .blog-thumb{
  transform: translateY(-6px);
  box-shadow: 0 26px 64px rgba(0,0,0,.14);
}
.blog-card:hover .blog-thumb img{
  transform: scale(1.08);
}

.blog-body{
  padding-top: 18px;
}

.blog-title{
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 700;
}

.blog-title a{
  color: rgba(0,0,0,.85);
  text-decoration: none;
  transition: color .2s ease;
}
.blog-title a:hover{
  color: rgba(0,0,0,1);
}

.blog-excerpt{
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(0,0,0,.55);
}

.blog-meta{
  font-size: 14px;
  line-height: 1.6;
  display:flex;
  gap: 6px;
  align-items:center;
  flex-wrap: wrap;
}
.blog-date{
  color: rgba(231,76,60,.95);
}
.blog-dot{
  color: rgba(0,0,0,.35);
}
.blog-comment{
  color: rgba(0,0,0,.45);
  text-decoration:none;
}
.blog-comment:hover{
  color: rgba(0,0,0,.75);
}

/* Pagination */
.blog-pagination{
  margin-top: 54px;
  display:flex;
  justify-content:center;
  gap: 10px;
  align-items:center;
}

.pg-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(0,0,0,.04);
  color: rgba(0,0,0,.75);
  text-decoration:none;
  transition: transform .2s ease, background .2s ease;
}
.pg-btn:hover{
  transform: translateY(-2px);
  background: rgba(0,0,0,.07);
}
.pg-btn.is-active{
  background: rgba(231,76,60,.95);
  color:#fff;
}
.pg-ellipsis{
  color: rgba(0,0,0,.45);
}

/* =========================
   Responsive
========================= */
@media (max-width: 1023px){
  .blog-list-page{ padding: 60px 0 76px; }
  .blog-list-title{ font-size: 34px; }

  .blog-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
  }

  .blog-thumb img{ height: 320px; }
}

@media (max-width: 767px){
  .blog-list-page{ padding: 52px 0 64px; }
  .blog-list-title{ font-size: 28px; }

  .blog-grid{
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .blog-thumb img{ height: 260px; }
}

/* =========================
   BLOG DETAIL - layout with left order
========================= */
.post{
  padding: 72px 0 92px;
  background: #fff;
}

.post-layout{
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 44px;
  align-items: start;
}

/* LEFT: blogs order */
.post-left{
  position: sticky;
  top: calc(var(--header-h) + 18px);
  align-self: start;
  padding: 18px 16px;
  border-radius: 12px;
  background: rgba(0,0,0,.02);
  border: 1px solid rgba(0,0,0,.06);
}

.post-left__title{
  margin: 6px 0 14px;
  font-size: 16px;
  letter-spacing: .6px;
  color: rgba(0,0,0,.80);
}


.post-order{
  list-style: none;
  padding: 0;
  counter-reset: postorder;
}

.post-order li{
  counter-increment: postorder;
  position: relative;
  padding-left: 15px;
  margin-bottom: 10px;
}

.post-order li::before{
  content: counter(postorder) ".";
  position: absolute;
  left: 0;
  top: 0;              /* luôn nằm cùng dòng đầu */
  font-weight: 700;
  color: rgba(0,0,0,.75);
}
.post-order a{
  color: rgba(0,0,0,.62);
  text-decoration: none;
  line-height: 1.6;
  transition: color .2s ease, transform .2s ease;
  display: inline-block;
}
.post-order a:hover{
  color: rgba(0,0,0,.85);
  transform: translateX(2px);
}

/* RIGHT: content width */
.post-article{
  width: 100%;
}

/* Featured image */
.post-cover{
  margin: 0 0 18px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.10);
}
.post-cover img{
  width: 100%;
  /* height: 360px; */
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .5s ease;
}
.post-cover:hover img{
  transform: scale(1.06);
}

/* Keep your existing post typography (from before) */
.post-head{
  display:flex;
  gap: 18px;
  align-items:flex-start;
  margin-bottom: 22px;
}

.post-date{
  min-width: 64px;
  text-align:center;
  color: rgba(0,0,0,.35);
}
.post-day{ display:block; font-size: 34px; line-height: 1; }
.post-mon{ display:block; font-size: 18px; margin-top: 4px; }

.post-title{
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.25;
  font-weight: 600;
  color: rgba(0,0,0,.85);
  font-family: var(--font-title);
}

.post-meta{
  font-size: 14px;
  color: rgba(0,0,0,.35);
  line-height: 1.7;
}

.post-content{
  font-size: 16px;
  color: rgba(0,0,0,.58);
  line-height: 1.95;
}
.post-content p{ margin: 0 0 16px; }

.post-content h2{
  margin: 30px 0 12px;
  font-size: 34px;
  line-height: 1.25;
  color: rgba(0,0,0,.85);
  font-weight: 500;
  font-family: Georgia, "Times New Roman", serif;
}
.post-content h3{
  margin: 18px 0 6px;
  font-size: 18px;
  color: rgba(0,0,0,.80);
  font-weight: 700;
}
.post-content ul{
  margin: 10px 0 18px 18px;
  padding: 0;
}
.post-content ul li{ margin: 6px 0; }

.post-ol{
  margin: 10px 0 18px 18px;
  padding: 0;
}
.post-ol > li{ margin: 10px 0 14px; }

/* ===== POST CTA FIX ===== */

.post-cta{
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,.08);
}

.post-cta__rows{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.post-cta__row{
  display: flex;              
  align-items: center;        
  gap: 10px;                  
  flex-wrap: nowrap;          
}

.post-cta__icon{
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;             
}

.post-cta__label{
  font-size: 16px;            
  line-height: 1.6;
}

.post-cta__label a{
  color: inherit;
  text-decoration: none;
}

.post-cta__label a:hover{
  text-decoration: underline;
}

.post-cta__note{
  margin-top: 20px;
  font-size: 16px;
  opacity: .75;
}

/* =========================
   Responsive (3 devices)
========================= */
@media (max-width: 1023px){
  .post{ padding: 60px 0 76px; }

  .post-layout{
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .post-left{
    position: relative;
    top: auto;
    order: -1;
  }

  .post-title{ font-size: 30px; }
  .post-content h2{ font-size: 30px; }
}

@media (max-width: 767px){
  .post{ padding: 52px 0 64px; }


  .post-head{
    flex-direction: column;
    gap: 10px;
  }

  .post-date{
    display:flex;
    gap: 10px;
    align-items: baseline;
    min-width: 0;
  }
  .post-day{ font-size: 28px; }
  .post-mon{ font-size: 16px; margin:0; }

  .post-title{ font-size: 26px; }
  .post-content h2{ font-size: 26px; }
}

/* floating-icons */
.floating-icons {
  position: fixed;
  top: 30%;
  right: 0px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.floating-icons a {
  background: var(--color-primary);
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s;
}

.floating-icons a:hover {
  background: var(--color-primary-hover);
}

.floating-icons img {
  width: 22px;
  height: 22px;
  transition: transform 0.3s;
}

.floating-icons a:hover img {
  transform: scale(1.1);
}

.nail-hero__list {
  max-width: 640px;
  margin: -10px 0 34px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.nail-hero__list li {
  position: relative;
  padding-left: 28px;
  color: #454545;
  line-height: 1.75;
}

.nail-hero__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(239, 130, 88, 0.14);
}

@media (max-width: 767.98px) {
  .nail-hero__list {
    margin-bottom: 28px;
    gap: 12px;
  }

  .nail-hero__list li {
    padding-left: 24px;
  }
}


    .booking-section {
        padding: 80px 20px;
        background: #f8f4ef;
    }

    .booking-layout {
        max-width: 1280px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
        gap: 32px;
        align-items: start;
    }

    .booking-panel,
    .booking-frame-wrap {
        background: #fff;
        border-radius: 24px;
        box-shadow: 0 18px 40px rgba(34, 24, 18, 0.08);
    }

    .booking-panel {
        padding: 32px;
    }

    .booking-frame-wrap {
        padding: 16px;
    }

    .booking-frame {
        width: 100%;
        min-height: 900px;
        border: 0;
        border-radius: 18px;
        background: #fff;
    }

    .booking-panel .call-book-card__phone {
        display: inline-block;
        margin: 12px 0 16px;
    }

    .booking-panel .nail-hero__btn {
        display: inline-flex;
        margin-top: 12px;
    }

    @media (max-width: 991px) {
        .booking-layout {
            grid-template-columns: 1fr;
        }

        .booking-frame {
            min-height: 780px;
        }
    }

    @media (max-width: 575px) {
        .booking-section {
            padding: 56px 16px;
        }

        .booking-panel,
        .booking-frame-wrap {
            border-radius: 18px;
        }

        .booking-panel {
            padding: 24px;
        }

        .booking-frame-wrap {
            padding: 10px;
        }

        .booking-frame {
            min-height: 680px;
            border-radius: 12px;
        }
    }