/* =========================================================
   THỰC ĐƠN ĂN THÔI - MENU STYLES
   Định hình phong cách ẩm thực Việt đương đại sang trọng & tinh tế
   ========================================================= */

/* --- 1. HERO THỰC ĐƠN ĐƯƠNG ĐẠI & SANG TRỌNG --- */
.menu-hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background-color: #0b110e;
  background-image: 
    radial-gradient(ellipse at 70% 30%, rgba(242, 183, 5, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 25% 40%, rgba(23, 63, 53, 0.7) 0%, rgba(11, 26, 21, 0.95) 70%, #0b110e 100%),
    url('../image/nenphoco.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  color: var(--ivory);
  padding: 110px 0 60px;
  box-sizing: border-box;
  overflow: hidden;
  border-bottom: 1px solid rgba(242, 183, 5, 0.18);
}

.menu-hero .wrap{
  width: 100%;
}

.menu-hero::before{
  content: "";
  position: absolute;
  inset: 0;
  opacity: .04;
  background-image: radial-gradient(#F2B705 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* Lưới 2 cột cân xứng giữa giới thiệu & visual */

.badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 99px;
  border: 1px solid rgba(242,183,5,.35);
  background: rgba(242,183,5,.1);
  color: var(--gold);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.menu-hero h1{
  font-size: clamp(2.8rem, 5.2vw, 4.6rem);
  line-height: 1.1;
  color: var(--ivory);
  margin-bottom: 20px;
  letter-spacing: -.02em;
  font-family: var(--f-head);
}
.menu-hero h1 em{
  color: var(--gold);
  font-style: italic;
  font-family: var(--f-head);
  text-shadow: 0 0 25px rgba(242, 183, 5, 0.35);
}

/* RESPONSIVE MEDIA QUERIES CHO HERO */
@media (max-width: 992px) {

  .menu-hero{
    min-height: auto;
    padding: 120px 0 60px;
  }
  
  
  

}

/* --- 7. COMBO & SET MENU ĐẲNG CẤP --- */

.combo-card{
  background: var(--ivory);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
  overflow: hidden;
}
.combo-card:hover{
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(23,63,53,.14);
  border-color: var(--gold);
}

.combo-card h3{
  font-size: 1.6rem;
  margin-bottom: 4px;
}

/* =========================================================
   12. CUỐN THỰC ĐƠN 3D LẬT SÁCH (3D FLIPBOOK - HEYZINE STYLE)
   ========================================================= */

.sec-flipbook{
  position: relative;
  background-color: #0b110e;
  color: var(--ivory);
  padding: clamp(36px, 5vw, 64px) 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(242, 183, 5, 0.2);
  scroll-margin-top: 80px;
}

/* Ảnh nền loingo4.webp mờ dịu, làm nền êm ái cho menu */
.sec-flipbook::before{
  content: "";
  position: absolute;
  inset: -12px;
  background: url("../image/loingo/loingo4.webp") center center / cover no-repeat;
  opacity: 0.36;
  filter: blur(2.5px);
  pointer-events: none;
  z-index: 0;
}

/* Lớp phủ chuyển sắc mềm mại giữ chiều sâu mà vẫn thấy rõ nét nền */
.sec-flipbook::after{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 35%, rgba(13, 19, 16, 0.3) 0%, rgba(9, 14, 11, 0.8) 100%);
  pointer-events: none;
  z-index: 0;
}

.sec-flipbook .wrap{
  position: relative;
  z-index: 1;
}

/* KHUNG SÂN KHẤU CHỨA SÁCH (STAGE WRAPPER) */
.flipbook-stage-wrap{
  position: relative;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Loading Spinner */
.flipbook-loader{
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--gold);
  font-family: var(--f-head);
  font-size: 1.05rem;
  z-index: 5;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
}

.flipbook-loader.is-hidden{
  opacity: 0;
  visibility: hidden;
}

.flipbook-spinner{
  width: 44px;
  height: 44px;
  border: 3px solid rgba(242, 183, 5, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: fbSpin 0.9s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}

@keyframes fbSpin {
  to { transform: rotate(360deg); }
}

/* KHUNG VIEWPORT & SÁCH */
.flipbook-viewport{
  position: relative;
  width: 100%;
  height: clamp(620px, 86vh, 960px);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 2600px;
  overflow: hidden;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 50%, rgba(242, 183, 5, 0.05) 0%, transparent 70%);
  transition: height 0.3s ease;
}

.flipbook-zoom-container{
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  transition: transform 0.2s cubic-bezier(0.1, 0.8, 0.2, 1);
  will-change: transform;
}

.flipbook-zoom-container.is-zoomed{
  cursor: grab;
}

.flipbook-zoom-container.is-dragging{
  cursor: grabbing !important;
  transition: none !important;
}

/* Wrapper PageFlip chiếm trọn kích thước sách được tính toán */
.stf__wrapper{
  width: 100% !important;
  height: 100% !important;
}

/* Element PageFlip: chuyển động mượt mà và tự canh giữa khi 1 trang / 2 trang */
.flipbook-book{
  position: relative;
  display: block;
  margin: 0 auto;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 4px;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* Tự canh giữa bìa trước (1 trang menu), bìa sau (1 trang) và các trang đôi (2 trang) */
.flipbook-book.is-cover-front{
  transform: translateX(-25%);
}

.flipbook-book.is-cover-back{
  transform: translateX(25%);
}

.flipbook-book.is-spread{
  transform: translateX(0);
}

@media (max-width: 768px) {

  .flipbook-book.is-cover-front,
  .flipbook-book.is-cover-back,
  .flipbook-book.is-spread{
    transform: none !important;
  }

}

/* TỪNG TRANG SÁCH */
.flipbook-page{
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #f7f4ee;
  overflow: hidden;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  border-radius: 3px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65), 0 4px 14px rgba(0, 0, 0, 0.4);
}

.flipbook-page__inner{
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #141c17;
}

.flipbook-page__inner img{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill; /* Khớp đúng 1080x1920 */
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* Hiệu ứng bóng gáy sách 3D (Spine Crease Shadow) */
.flipbook-page__spine{
  position: absolute;
  top: 0;
  bottom: 0;
  width: 45px;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: multiply;
  opacity: 0.85;
}

/* Trang bên trái (mép phải giáp gáy sách) */
.stf__item:nth-child(even) .flipbook-page__spine{
  right: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.18) 25%, rgba(0, 0, 0, 0.05) 60%, transparent 100%);
}

/* Trang bên phải (mép trái giáp gáy sách) */
.stf__item:nth-child(odd) .flipbook-page__spine{
  left: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.18) 25%, rgba(0, 0, 0, 0.05) 60%, transparent 100%);
}

/* Hiệu ứng ánh sáng bóng loáng mỏng trên mặt giấy (Paper Sheen) */
.flipbook-page__sheen{
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, transparent 50%, rgba(0, 0, 0, 0.06) 100%);
}

/* Bìa sách có viền nổi giả bìa da cứng */
.flipbook-page--cover{
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.35);
}

/* MŨI TÊN NỔI HAI BÊN SƯỜN SÁCH */
.flipbook-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(18, 26, 21, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(242, 183, 5, 0.35);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
}

.flipbook-arrow:hover:not(:disabled){
  background: rgba(242, 183, 5, 0.2);
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 12px 30px rgba(242, 183, 5, 0.25), 0 8px 20px rgba(0, 0, 0, 0.6);
}

.flipbook-arrow:active:not(:disabled){
  transform: translateY(-50%) scale(0.96);
}

.flipbook-arrow:disabled{
  opacity: 0.18;
  cursor: not-allowed;
  pointer-events: none;
}

.flipbook-arrow--prev{
  left: 12px;
}

.flipbook-arrow--next{
  right: 12px;
}

.flipbook-arrow svg{
  width: 26px;
  height: 26px;
}

/* BADGE BÁO TRẠNG THÁI ZOOM */
.flipbook-zoom-indicator{
  position: absolute;
  top: 18px;
  right: 24px;
  background: rgba(18, 26, 21, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(242, 183, 5, 0.4);
  border-radius: 99px;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  z-index: 15;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.flipbook-zoom-indicator.is-visible{
  opacity: 1;
  visibility: visible;
}

.flipbook-zoom-indicator button{
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s;
}

.flipbook-zoom-indicator button:hover{
  color: var(--gold);
}

/* THANH CÔNG CỤ ĐIỀU KHIỂN HEYZINE TOOLBAR NỔI (ĐÃ ẨN THEO YÊU CẦU) */
.flipbook-toolbar{
  display: none !important;
}

/* DẢI HÌNH ẢNH THU NHỎ (THUMBNAILS DRAWER - ĐÃ ẨN THEO YÊU CẦU) */
.flipbook-thumbs,
.flipbook-thumbs.is-open{
  display: none !important;
}

@keyframes fbFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.fb-thumb{
  flex: 0 0 72px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 3px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  outline: none;
}

.fb-thumb img{
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.fb-thumb span{
  font-size: 0.72rem;
  color: rgba(255, 253, 247, 0.75);
  white-space: nowrap;
}

.fb-thumb:hover{
  border-color: rgba(242, 183, 5, 0.5);
  transform: translateY(-3px);
}

.fb-thumb.is-active{
  border-color: var(--gold);
  background: rgba(242, 183, 5, 0.15);
  transform: translateY(-3px);
}

.fb-thumb.is-active span{
  color: var(--gold);
  font-weight: 700;
}

/* HƯỚNG DẪN CỬ CHỈ THÂN THIỆN */
.flipbook-hints{
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 18px;
  font-size: 0.83rem;
  color: rgba(255, 253, 247, 0.65);
}

.fb-hint-item{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fb-hint-item svg{
  color: var(--gold);
  opacity: 0.85;
}

.fb-hint-item--kbd kbd{
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: inherit;
  font-size: 0.78rem;
  color: var(--gold);
}

/* TOÀN MÀN HÌNH (FULLSCREEN MODE) */
:fullscreen .sec-flipbook,
:-webkit-full-screen .sec-flipbook,
.sec-flipbook.is-fullscreen{
  position: fixed;
  inset: 0;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  z-index: 999999;
  padding: 10px 0 !important;
  background: #0b100d !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

:fullscreen .flipbook-viewport,
:-webkit-full-screen .flipbook-viewport,
.sec-flipbook.is-fullscreen .flipbook-viewport{
  height: calc(100vh - 100px) !important;
  max-height: none !important;
}

:fullscreen .flipbook-toolbar,
:-webkit-full-screen .flipbook-toolbar,
.sec-flipbook.is-fullscreen .flipbook-toolbar{
  margin-top: 6px !important;
  margin-bottom: 6px !important;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 900px) {

  .flipbook-arrow{
    width: 44px;
    height: 44px;
  }
  .flipbook-arrow--prev{ left: 4px; }
  .flipbook-arrow--next{ right: 4px; }
  

}

@media (max-width: 768px) {

  .sec-flipbook{
    padding: 32px 0;
  }
  .flipbook-viewport{
    height: clamp(540px, 80vh, 760px);
  }
  .flipbook-arrow{
    display: none; /* Trên mobile vuốt cảm ứng trực quan */
  }
  .flipbook-toolbar{
    padding: 6px 12px;
    gap: 6px;
  }
  
  
  .fb-hint-item--kbd{
    display: none;
  }

}

@media (max-width: 480px) {

  .flipbook-viewport{
    height: clamp(490px, 76vh, 660px);
  }
  #fbBtnFirst, #fbBtnLast{
    display: none; /* Thu gọn các nút phụ trên màn hình nhỏ */
  }
  .flipbook-hints{
    font-size: 0.78rem;
    gap: 12px;
  }

}

/* --- 11. KHU VỰC BESTSELLER (PANORAMIC 3D CAROUSEL & COMPACT CARD) --- */
.sec--bestseller{
  position: relative;
  background-color: #081611;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(242, 183, 5, 0.08) 0%, transparent 48%),
    radial-gradient(circle at 85% 80%, rgba(242, 183, 5, 0.07) 0%, transparent 48%),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(28, 75, 64, 0.55) 0%, transparent 72%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(15, 43, 36, 0.72) 0%, transparent 72%),
    linear-gradient(180deg, #071510 0%, #0d261f 25%, #11342a 50%, #0d261f 75%, #06130e 100%);
  color: #fffdf7;
  padding-block: clamp(10px, 1.6vh, 18px) clamp(18px, 2.6vh, 28px);
  overflow: hidden;
  border-top: 1px solid rgba(242, 183, 5, 0.28);
  border-bottom: 1px solid rgba(242, 183, 5, 0.28);
}

.sec--bestseller::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(242, 183, 5, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  opacity: 0.6;
}

.bestseller-wrap{
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(16px, 3.5vw, 48px);
}

.bestseller-head{
  text-align: center;
  max-width: 820px;
  margin: -10px auto clamp(10px, 1.4vh, 16px);
  padding-inline: 20px;
}

.bestseller-head .eyebrow{
  display: none !important;
}

.bestseller-main-title{
  font-family: var(--f-head);
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 4px;
  text-align: center;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.65);
}

.bestseller-divider{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 4px;
}

.bestseller-divider__line{
  width: clamp(40px, 6vw, 80px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.bestseller-divider__icon{
  color: var(--gold);
  font-size: 0.95rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(242, 183, 5, 0.6));
  transition: transform 0.6s var(--ease);
}
.bestseller-head:hover .bestseller-divider__icon{
  transform: rotate(180deg);
}

.bestseller-head-desc{
  display: none !important;
}

/* Ẩn dial strip và ruler để tiết kiệm 100px chiều cao theo đúng hình mẫu */
.bestseller-dial-viewport,
.bestseller-ruler{
  display: none !important;
}

/* =========================================================
   SHOWCASE BESTSELLER (CHUẨN THEO HÌNH MẪU: ĐĨA TRÒN + CARD GỌN VỪA KHUNG)
   ========================================================= */
.bestseller-showcase{
  position: relative;
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  user-select: none;
}

/* 1. THANH TIÊU ĐỀ TRƯỢT PHÍA TRÊN (CINEMATIC DIAL STRIP) */
.bestseller-dial-viewport{
  display: none !important;
  position: relative;
  width: 100%;
  height: clamp(48px, 6vw, 68px);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
  margin-bottom: 2px;
}

.bestseller-dial-track{
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bestseller-dial-item{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0);
  font-family: var(--f-head);
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  border: none;
  background: transparent;
  padding: 0 14px;
  cursor: pointer;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease, color 0.4s ease;
  will-change: transform, opacity;
}

.bestseller-dial-item span{
  display: inline-block;
  line-height: 1;
}

/* Tiêu đề món ở tâm */
.bestseller-dial-item.is-active{
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  color: #ffffff;
  letter-spacing: 0.05em;
  opacity: 1;
  z-index: 10;
  text-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.8),
    0 0 28px rgba(242, 183, 5, 0.35);
  cursor: default;
}

/* Tiêu đề món hai bên */
.bestseller-dial-item.is-prev,
.bestseller-dial-item.is-next{
  font-size: clamp(1.2rem, 2.4vw, 1.85rem);
  color: rgba(255, 253, 247, 0.38);
  letter-spacing: 0.03em;
  z-index: 4;
}

.bestseller-dial-item.is-prev:hover,
.bestseller-dial-item.is-next:hover{
  color: var(--gold);
  opacity: 0.85 !important;
}

.bestseller-dial-item.is-hidden{
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

/* 2. THƯỚC ĐO / RULER SCALE VỚI KIM CHỈ TÂM (NEEDLE) */
.bestseller-ruler{
  position: relative;
  width: min(100%, 700px);
  height: 34px;
  margin: 0 auto clamp(18px, 2.8vw, 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.bestseller-ruler__track{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(7px, 1.1vw, 13px);
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.bestseller-ruler__tick{
  width: 1px;
  background: rgba(255, 253, 247, 0.22);
  border-radius: 1px;
  display: block;
  flex-shrink: 0;
}

.bestseller-ruler__tick--minor{
  height: 8px;
  opacity: 0.45;
}

.bestseller-ruler__tick--major{
  height: 14px;
  background: rgba(242, 183, 5, 0.6);
  opacity: 0.85;
}

.bestseller-ruler__tick--center{
  height: 20px;
  width: 1.5px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(242, 183, 5, 0.85);
  opacity: 0.95;
}

/* Kim chỉ tâm trắng sáng ánh vàng */
.bestseller-ruler__needle{
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
  z-index: 8;
}

.bestseller-ruler__needle-line{
  width: 2px;
  height: 24px;
  background: #ffffff;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.95), 0 0 16px var(--gold);
}

.bestseller-ruler__needle-pip{
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  border-radius: 1px;
  margin-top: 2px;
  box-shadow: 0 0 8px var(--gold);
}

/* 3. BĂNG CHUYỀN SHOWCASE (CHUẨN ĐĨA TRÒN THEO HÌNH MẪU, KÍCH THƯỚC VỪA VẶN 1 MÀN HÌNH) */
.bestseller-stage-wrap{
  position: relative;
  width: 100%;
  min-height: clamp(265px, 29vw, 320px);
  height: clamp(265px, 29vw, 320px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Nút điều hướng mũi tên tròn kính mờ hai bên */
.bestseller-nav-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: clamp(44px, 4.2vw, 52px);
  height: clamp(44px, 4.2vw, 52px);
  border-radius: 50%;
  background: rgba(11, 29, 23, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(242, 183, 5, 0.45);
  color: #fffdf7;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
  transition: transform 0.35s var(--ease), background 0.35s, border-color 0.35s, color 0.35s, box-shadow 0.35s;
}

.bestseller-nav-btn svg{
  width: 22px;
  height: 22px;
  stroke: currentColor;
  transition: transform 0.3s var(--ease);
}

.bestseller-nav-btn--prev{
  left: clamp(6px, 2.5vw, 36px);
}

.bestseller-nav-btn--next{
  right: clamp(6px, 2.5vw, 36px);
}

.bestseller-nav-btn:hover{
  transform: translateY(-50%) scale(1.08);
  background: var(--gold);
  color: #0b1d17;
  border-color: var(--gold);
  box-shadow: 0 10px 24px rgba(242, 183, 5, 0.5);
}

.bestseller-nav-btn--prev:hover svg{
  transform: translateX(-2px);
}

.bestseller-nav-btn--next:hover svg{
  transform: translateX(2px);
}

.bestseller-nav-btn:active{
  transform: translateY(-50%) scale(0.96);
}

/* Khung chiếu Cards */
.bestseller-cards-stage{
  position: relative;
  width: 100%;
  height: 100%;
  min-height: clamp(265px, 29vw, 320px);
  touch-action: pan-y;
}

/* Từng thẻ món ăn: Đĩa món tròn theo hình mẫu */
.bestseller-card{
  position: absolute;
  left: 50%;
  top: 0;
  width: min(78%, 290px);
  transform-origin: center top;
  will-change: transform, opacity;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Khung hình ảnh đĩa tròn 1:1 chuẩn theo hình mẫu */
.bestseller-card__photo-box{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* Chuẩn đĩa tròn */
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 45% 45%, #184438, #071711);
  border: 1.5px solid rgba(242, 183, 5, 0.35);
  box-shadow: 
    0 10px 26px rgba(0, 0, 0, 0.65),
    0 0 16px rgba(242, 183, 5, 0.12);
  transition: border-color 0.5s, box-shadow 0.5s;
}

.bestseller-card__photo-box > img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: contrast(1.03) saturate(1.06);
  image-rendering: auto;
  transition: filter 0.5s ease, transform 0.6s var(--ease);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Tên món nhỏ bên dưới đĩa hai bên (như hình mẫu: THỊT HEO XIÊN MOOPING, CHẢ LỤA PECO FOOD) */
.bestseller-card__mini-label{
  display: block;
  text-align: center;
  font-family: var(--f-body);
  font-size: clamp(0.78rem, 0.95vw, 0.88rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-top: 8px;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Thẻ ở giữa đã có thẻ chi tiết bên dưới nên ẩn nhãn mini */
.bestseller-card.is-active .bestseller-card__mini-label{
  opacity: 0;
  visibility: hidden;
  display: none;
}

/* Ẩn chỉ dẫn hover che đĩa */
.bestseller-card__hover-hint{
  display: none !important;
}

/* TRẠNG THÁI THẺ Ở GIỮA (ACTIVE) */
.bestseller-card.is-active{
  z-index: 10;
  cursor: default;
}

.bestseller-card.is-active .bestseller-card__photo-box{
  border-color: rgba(242, 183, 5, 0.85);
  box-shadow: 
    0 16px 38px rgba(0, 0, 0, 0.82),
    0 0 28px rgba(242, 183, 5, 0.35);
}

.bestseller-card.is-active:hover .bestseller-card__photo-box > img{
  transform: scale(1.04);
  filter: contrast(1.05) saturate(1.08) brightness(1.02);
}

/* TRẠNG THÁI THẺ HAI BÊN (PREV / NEXT) */
.bestseller-card.is-prev,
.bestseller-card.is-next{
  cursor: pointer;
}

.bestseller-card.is-prev .bestseller-card__photo-box,
.bestseller-card.is-next .bestseller-card__photo-box{
  filter: brightness(0.72);
  transition: filter 0.4s var(--ease), border-color 0.4s;
}

.bestseller-card.is-prev:hover .bestseller-card__photo-box,
.bestseller-card.is-next:hover .bestseller-card__photo-box{
  filter: brightness(0.95);
  border-color: rgba(242, 183, 5, 0.65);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.75), 0 0 20px rgba(242, 183, 5, 0.2);
}

/* Thẻ bị ẩn phía sau */
.bestseller-card.is-hidden{
  opacity: 0;
  pointer-events: none;
}

/* =========================================================
   THẺ NỘI DUNG MÓN ĂN BESTSELLER (GỌN GÀNG, VỪA TRỌN 1 MÀN HÌNH)
   ========================================================= */
.bestseller-info-card{
  position: relative;
  z-index: 15;
  max-width: 650px;
  width: min(92%, 650px);
  margin: clamp(10px, 1.4vh, 16px) auto 0;
  padding: clamp(14px, 1.8vh, 20px) clamp(22px, 3.2vw, 36px);
  background: rgba(13, 38, 31, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(242, 183, 5, 0.32);
  border-radius: 20px;
  box-shadow: 
    0 14px 34px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(242, 183, 5, 0.08);
  text-align: center;
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.bestseller-info-card.is-changing{
  opacity: 0.25;
  transform: translateY(4px);
}

.bestseller-info-card__tag{
  display: none !important;
}

.bestseller-info-card__title{
  font-family: var(--f-head);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fffdf7;
  line-height: 1.2;
  margin-bottom: 7px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.bestseller-info-card__desc{
  font-family: var(--f-body);
  font-size: clamp(0.88rem, 1.05vw, 0.98rem);
  line-height: 1.58;
  color: rgba(255, 253, 247, 0.88);
  max-width: 600px;
  margin: 0 auto;
  display: block;
  overflow: visible;
}

.bestseller-info-card__actions{
  display: none !important;
}

.bestseller-info-card__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #c93b3e 0%, #b82d30 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  padding: 9px 32px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(184, 45, 48, 0.45);
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s;
}

.bestseller-info-card__btn:hover{
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(135deg, #d84548 0%, #c53336 100%);
  box-shadow: 0 8px 20px rgba(216, 69, 72, 0.55);
}

.bestseller-info-card__btn:active{
  transform: translateY(0) scale(0.98);
}

/* 4. CHỈ SỐ TRANG & CHẤM ĐIỀU HƯỚNG (PAGINATION) */
.bestseller-pagination{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  padding-inline: 20px;
}

.bestseller-counter__total{
  opacity: 0.65;
  color: #fffdf7;
  font-size: 0.95rem;
}

.bestseller-dots{
  display: flex;
  align-items: center;
  gap: 10px;
}

.bestseller-dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.28);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s;
}

.bestseller-dot:hover{
  background: rgba(242, 183, 5, 0.7);
}

.bestseller-dot.is-active{
  width: 26px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(242, 183, 5, 0.65);
}

/* =========================================================
   CỬA SỔ GIAO DIỆN CHI TIẾT MÓN ĂN BESTSELLER (POPUP MODAL)
   ========================================================= */
.bestseller-modal{
  display: none !important;
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 32px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.35s;
}

.bestseller-modal.is-open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.bestseller-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(5, 14, 11, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: opacity 0.35s ease;
}

.bestseller-modal__dialog{
  position: relative;
  z-index: 2;
  width: min(100%, 780px);
  max-height: min(90vh, 600px);
  background: radial-gradient(circle at 20% 20%, #153c31 0%, #0b1f18 60%, #071510 100%);
  border: 1.5px solid rgba(242, 183, 5, 0.48);
  border-radius: 24px;
  box-shadow: 
    0 28px 70px rgba(0, 0, 0, 0.88),
    0 0 35px rgba(242, 183, 5, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.bestseller-modal.is-open .bestseller-modal__dialog{
  transform: scale(1) translateY(0);
}

.bestseller-modal__close{
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(9, 23, 18, 0.8);
  border: 1px solid rgba(242, 183, 5, 0.45);
  color: #fffdf7;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  backdrop-filter: blur(8px);
}

.bestseller-modal__close svg{
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.bestseller-modal__close:hover{
  background: var(--gold);
  color: #0b1d17;
  border-color: var(--gold);
  transform: rotate(90deg) scale(1.06);
}

.bestseller-modal__body{
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: stretch;
  height: 100%;
  max-height: inherit;
  overflow-y: auto;
}

.bestseller-modal__media{
  position: relative;
  background: #081611;
  min-height: 380px;
  overflow: hidden;
}

.bestseller-modal__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.bestseller-modal__content{
  padding: clamp(28px, 4vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: transparent;
}

.bestseller-modal__tag{
  font-family: var(--f-head);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 8px;
}

.bestseller-modal__title{
  font-family: var(--f-head);
  font-size: clamp(1.7rem, 2.5vw, 2.25rem);
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 14px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.bestseller-modal__divider{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  width: 100%;
  max-width: 200px;
}

.bestseller-modal__divider span{
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(242, 183, 5, 0.6), transparent);
}

.bestseller-modal__divider i{
  color: var(--gold);
  font-size: 0.75rem;
}

.bestseller-modal__desc{
  font-family: var(--f-body);
  font-size: 0.98rem;
  line-height: 1.75;
  color: rgba(255, 253, 247, 0.88);
  margin-bottom: 28px;
}

.bestseller-modal__book-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: #0b1d17;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 13px 26px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(242, 183, 5, 0.35);
  transition: all 0.3s var(--ease);
  align-self: flex-start;
  text-decoration: none;
}

.bestseller-modal__book-btn:hover{
  background: #ffffff;
  color: #0b1d17;
  box-shadow: 0 8px 26px rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.bestseller-modal__book-btn svg{
  width: 14px;
  height: 14px;
  stroke: currentColor;
  transition: transform 0.3s var(--ease);
}

.bestseller-modal__book-btn:hover svg{
  transform: translate(2px, -2px);
}

/* =========================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================= */
@media (max-width: 960px) {

  .bestseller-card{
    width: min(85%, 260px);
  }
  .bestseller-stage-wrap,
  .bestseller-cards-stage{
    min-height: clamp(240px, 32vw, 290px);
    height: clamp(240px, 32vw, 290px);
  }
  .bestseller-card__photo-box{
    border-radius: 50%;
  }

}

@media (max-width: 680px) {

  .bestseller-modal__dialog{
    max-height: 88vh;
    border-radius: 20px;
  }
  .bestseller-modal__body{
    grid-template-columns: 1fr;
  }
  .bestseller-modal__media{
    min-height: 240px;
    max-height: 260px;
  }
  .bestseller-modal__content{
    padding: 22px 20px;
  }
  .bestseller-modal__title{
    font-size: 1.45rem;
    margin-bottom: 10px;
  }
  .bestseller-modal__desc{
    font-size: 0.9rem;
    line-height: 1.62;
    margin-bottom: 20px;
  }
  .bestseller-modal__book-btn{
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }

}

@media (max-width: 640px) {

  .bestseller-card{
    width: 84%;
  }
  .bestseller-card__photo-box{
    border-radius: 16px;
  }
  
  .bestseller-nav-btn{
    width: 38px;
    height: 38px;
  }
  .bestseller-nav-btn svg{
    width: 16px;
    height: 16px;
  }
  .bestseller-nav-btn--prev{
    left: 4px;
  }
  .bestseller-nav-btn--next{
    right: 4px;
  }
  .bestseller-stage-wrap,
  .bestseller-cards-stage{
    min-height: 370px;
  }
  .bestseller-pagination{
    margin-top: 14px;
    gap: 16px;
  }

}

/* --- 12. PRINT STYLES FOR MENU --- */
@media print {

  .header, .footer, .drawer, .endcta, .flipbook-toolbar, .flipbook-arrow, .flipbook-hints, .flipbook-thumbs{
    display: none !important;
  }
  body{
    background: #fff !important;
    color: #000 !important;
  }
  .sec-flipbook{
    background: none !important;
    color: #000 !important;
    padding: 0 !important;
  }
  .flipbook-page img{
    page-break-inside: avoid;
    break-inside: avoid;
    max-width: 100% !important;
  }

}

/* =========================================================
   THIẾT KẾ ĐẶC BIỆT CHO MÓN ĂN TÁCH NỀN (KHÔNG KHUNG - TRỰC TIẾP TRÊN NỀN)
   - Loại bỏ hoàn toàn viền khung hộp (card box frame)
   - Đĩa món ăn đặt trực tiếp trên nền của website
   - Bệ ánh sáng ẩm thực ấm áp tỏa nhẹ phía sau
   - Đổ bóng tiếp xúc kép (dual-layer contact shadow) chân thực dưới đáy đĩa
   - Hiệu ứng khói nóng nghi ngút (cinematic food steam) bốc lên chân thật
   ========================================================= */
.bestseller-card--cutout,
.bestseller-card--cutout.is-active,
.bestseller-card--cutout.is-prev,
.bestseller-card--cutout.is-next{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.bestseller-card--cutout .bestseller-card__photo-box,
.bestseller-card__photo-box--cutout,
.bestseller-card__photo-box:has(img[src*=".png"]){
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  aspect-ratio: 1 / 1;
}

.bestseller-card--cutout.is-active .bestseller-card__photo-box,
.bestseller-card--cutout.is-prev .bestseller-card__photo-box,
.bestseller-card--cutout.is-next .bestseller-card__photo-box{
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Vầng hào quang ẩm thực vàng kim tỏa nhẹ trực tiếp lên nền của website */
.bestseller-card--cutout .bestseller-card__photo-box::before,
.bestseller-card__photo-box--cutout::before,
.bestseller-card__photo-box:has(img[src*=".png"])::before{
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 183, 5, 0.2) 0%, rgba(21, 60, 49, 0.22) 45%, transparent 70%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.6s ease, transform 0.6s var(--ease);
}

/* Đổ bóng tiếp xúc kép (Dual-layer Contact Shadow) ôm sát đáy đĩa và lan tỏa trên mặt sàn */
.bestseller-card--cutout .bestseller-card__photo-box::after,
.bestseller-card__photo-box--cutout::after,
.bestseller-card__photo-box:has(img[src*=".png"])::after{
  content: "";
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: 74%;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.65) 42%, transparent 75%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.85);
  filter: blur(6px);
  pointer-events: none;
  z-index: 1;
  transition: transform 0.6s var(--ease), opacity 0.5s ease;
}

/* Đĩa món ăn không nền trên background */
.bestseller-card--cutout .bestseller-card__photo-box > img,
.bestseller-card__photo-box--cutout > img{
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  max-width: 94%;
  max-height: 94%;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.85)) contrast(1.05) saturate(1.08);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
}

/* Trạng thái đĩa hai bên (prev/next) */
.bestseller-card--cutout.is-prev .bestseller-card__photo-box > img,
.bestseller-card--cutout.is-next .bestseller-card__photo-box > img{
  opacity: 0.65;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.75)) contrast(0.96) brightness(0.72);
}

.bestseller-card--cutout.is-prev:hover .bestseller-card__photo-box > img,
.bestseller-card--cutout.is-next:hover .bestseller-card__photo-box > img{
  opacity: 0.95;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.85)) contrast(1.02) brightness(0.96);
}

/* Trạng thái đĩa ở giữa (active) khi hover: nhấc nhẹ đĩa lên tạo cảm giác nổi 3D */
.bestseller-card.is-active:hover .bestseller-card__photo-box--cutout > img,
.bestseller-card.is-active:hover .bestseller-card--cutout .bestseller-card__photo-box > img{
  transform: scale(1.06) translateY(-8px);
  filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.92)) drop-shadow(0 0 24px rgba(242, 183, 5, 0.32)) contrast(1.08) saturate(1.12);
}

.bestseller-card.is-active:hover .bestseller-card__photo-box::after{
  transform: translateX(-50%) scale(1.1);
  opacity: 0.7;
}

.bestseller-card.is-active:hover .bestseller-card__photo-box::before{
  transform: translate(-50%, -50%) scale(1.08);
  background: radial-gradient(circle, rgba(242, 183, 5, 0.3) 0%, rgba(21, 60, 49, 0.28) 45%, transparent 72%);
}

/* Nút chỉ dẫn xem chi tiết dạng viên thuốc kính mờ nổi trên đĩa */
.bestseller-card--cutout .bestseller-card__hover-hint{
  position: absolute;
  inset: auto auto 2% 50%;
  transform: translateX(-50%) translateY(10px);
  width: auto;
  height: auto;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 999px;
  flex-direction: row;
  gap: 8px;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
  z-index: 10;
}

.bestseller-card--cutout.is-active:hover .bestseller-card__hover-hint{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.bestseller-card--cutout .bestseller-card__hover-hint svg{
  display: none;
}

.bestseller-card--cutout .bestseller-card__hover-hint span{
  font-family: var(--f-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(9, 23, 18, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(242, 183, 5, 0.75);
  padding: 8px 22px;
  border-radius: 999px;
  color: var(--gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), 0 0 16px rgba(242, 183, 5, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transform: none;
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s;
}

.bestseller-card--cutout.is-active:hover .bestseller-card__hover-hint span{
  transform: scale(1.05);
  background: rgba(14, 38, 30, 0.95);
  border-color: rgba(242, 183, 5, 1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75), 0 0 20px rgba(242, 183, 5, 0.45);
}

/* =========================================================
   HIỆU ỨNG KHÓI NÓNG ẨM THỰC CHÂN THẬT (CINEMATIC FOOD STEAM)
   ========================================================= */
.dish-steam{
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 440px;
  pointer-events: none;
  z-index: 6;
  overflow: visible;
  transition: opacity 0.5s ease;
}

/* Khói ở thẻ active rõ nét và sống động nhất, thẻ hai bên mờ nhẹ, thẻ ẩn tắt hoàn toàn */
/* Món Bánh xèo & Nem lụi: Không có đũa và muỗng, chỉ có đám mây nghệ thuật */
/* Món Sò điệp nướng mỡ hành: Bỏ đũa */
.bestseller-card[data-index="0"] .bs-prop-slot--muong,
.bestseller-card[data-index="0"] .bs-prop-slot--dua,
.bestseller-card[data-index="1"] .bs-prop-slot--muong,
.bestseller-card[data-index="1"] .bs-prop-slot--dua,
.bestseller-card[data-index="4"] .bs-prop-slot--dua {
  display: none !important;
}

/* Giảm độ khói của Nem lụi và Bánh xèo xuống vừa phải, nhẹ nhàng thoang thoảng */
.bestseller-card[data-index="0"].is-active .dish-steam,
.bestseller-card[data-index="1"].is-active .dish-steam {
  opacity: 0.42;
  transform: translateX(-50%) scale(0.85);
}

.bestseller-card[data-index="0"].is-prev .dish-steam,
.bestseller-card[data-index="0"].is-next .dish-steam,
.bestseller-card[data-index="1"].is-prev .dish-steam,
.bestseller-card[data-index="1"].is-next .dish-steam {
  opacity: 0.15;
}

.bestseller-card.is-active .dish-steam{
  opacity: 1;
}

.bestseller-card.is-prev .dish-steam,
.bestseller-card.is-next .dish-steam{
  opacity: 0.35;
}

.bestseller-card.is-hidden .dish-steam{
  display: none;
}

/* 1. Vầng hơi nóng bốc trực tiếp từ lòng đĩa/tô (Thermal Mist) */
.steam-thermal-mist{
  position: absolute;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.55) 0%, rgba(255, 250, 240, 0.3) 40%, rgba(255, 255, 255, 0.08) 60%, transparent 75%);
  filter: blur(14px);
  opacity: 0.75;
  animation: thermalBreathe 3.6s ease-in-out infinite alternate;
}

@keyframes thermalBreathe {
  0% { transform: translateX(-50%) scale(0.9); opacity: 0.5; }
  100% { transform: translateX(-50%) scale(1.15); opacity: 0.85; }
}

/* 2. Cột khói cuộn xoáy tự nhiên bay lên (Billowing Steam Columns) */
.steam-billow{
  position: absolute;
  bottom: 120px;
  left: 50%;
  border-radius: 50% 50% 40% 40% / 60% 60% 40% 40%;
  background: radial-gradient(ellipse at 50% 65%, 
    rgba(255, 255, 255, 0.72) 0%, 
    rgba(255, 252, 245, 0.42) 32%, 
    rgba(250, 250, 255, 0.16) 55%, 
    transparent 75%);
  filter: blur(8px) drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
  mix-blend-mode: screen;
  opacity: 0;
  will-change: transform, opacity;
}

.steam-billow--1{
  width: 62px;
  height: 155px;
  margin-left: -38px;
  animation: steamBillowRise1 3.9s cubic-bezier(0.25, 0.8, 0.4, 1) infinite;
  animation-delay: 0s;
}

.steam-billow--2{
  width: 70px;
  height: 170px;
  margin-left: -6px;
  animation: steamBillowRise2 4.7s cubic-bezier(0.25, 0.8, 0.4, 1) infinite;
  animation-delay: 1.2s;
}

.steam-billow--3{
  width: 55px;
  height: 140px;
  margin-left: -52px;
  animation: steamBillowRise3 3.5s cubic-bezier(0.25, 0.8, 0.4, 1) infinite;
  animation-delay: 2.3s;
}

.steam-billow--4{
  width: 68px;
  height: 165px;
  margin-left: 14px;
  animation: steamBillowRise4 5.1s cubic-bezier(0.25, 0.8, 0.4, 1) infinite;
  animation-delay: 1.8s;
}

.steam-billow--5{
  width: 58px;
  height: 145px;
  margin-left: 4px;
  animation: steamBillowRise5 4.2s cubic-bezier(0.25, 0.8, 0.4, 1) infinite;
  animation-delay: 0.6s;
}

@keyframes steamBillowRise1 {
  0% { opacity: 0; transform: translateY(15px) translateX(0) scaleX(0.4) scaleY(0.3) rotate(0deg); }
  15% { opacity: 0.85; }
  45% { opacity: 0.65; transform: translateY(-80px) translateX(-15px) scaleX(1.15) scaleY(1.08) rotate(7deg); }
  75% { opacity: 0.35; transform: translateY(-170px) translateX(18px) scaleX(1.8) scaleY(1.55) rotate(-8deg); }
  100% { opacity: 0; transform: translateY(-260px) translateX(-10px) scaleX(2.6) scaleY(2.2) rotate(11deg); }
}

@keyframes steamBillowRise2 {
  0% { opacity: 0; transform: translateY(15px) translateX(0) scaleX(0.4) scaleY(0.3) rotate(0deg); }
  15% { opacity: 0.85; }
  45% { opacity: 0.65; transform: translateY(-80px) translateX(18px) scaleX(1.15) scaleY(1.08) rotate(-8deg); }
  75% { opacity: 0.35; transform: translateY(-170px) translateX(-16px) scaleX(1.8) scaleY(1.55) rotate(9deg); }
  100% { opacity: 0; transform: translateY(-260px) translateX(12px) scaleX(2.6) scaleY(2.2) rotate(-7deg); }
}

@keyframes steamBillowRise3 {
  0% { opacity: 0; transform: translateY(15px) translateX(0) scaleX(0.4) scaleY(0.3) rotate(0deg); }
  15% { opacity: 0.85; }
  45% { opacity: 0.65; transform: translateY(-80px) translateX(-18px) scaleX(1.15) scaleY(1.08) rotate(9deg); }
  75% { opacity: 0.35; transform: translateY(-170px) translateX(14px) scaleX(1.8) scaleY(1.55) rotate(-7deg); }
  100% { opacity: 0; transform: translateY(-260px) translateX(-15px) scaleX(2.6) scaleY(2.2) rotate(8deg); }
}

@keyframes steamBillowRise4 {
  0% { opacity: 0; transform: translateY(15px) translateX(0) scaleX(0.4) scaleY(0.3) rotate(0deg); }
  15% { opacity: 0.85; }
  45% { opacity: 0.65; transform: translateY(-80px) translateX(16px) scaleX(1.15) scaleY(1.08) rotate(-7deg); }
  75% { opacity: 0.35; transform: translateY(-170px) translateX(-20px) scaleX(1.8) scaleY(1.55) rotate(8deg); }
  100% { opacity: 0; transform: translateY(-260px) translateX(16px) scaleX(2.6) scaleY(2.2) rotate(-10deg); }
}

@keyframes steamBillowRise5 {
  0% { opacity: 0; transform: translateY(15px) translateX(0) scaleX(0.4) scaleY(0.3) rotate(0deg); }
  15% { opacity: 0.85; }
  45% { opacity: 0.65; transform: translateY(-80px) translateX(-12px) scaleX(1.15) scaleY(1.08) rotate(6deg); }
  75% { opacity: 0.35; transform: translateY(-170px) translateX(16px) scaleX(1.8) scaleY(1.55) rotate(-7deg); }
  100% { opacity: 0; transform: translateY(-260px) translateX(-12px) scaleX(2.6) scaleY(2.2) rotate(9deg); }
}

/* 3. Sợi khói uốn lượn mảnh mai (Wispy Curling Tendrils) */
.steam-tendril{
  position: absolute;
  bottom: 130px;
  left: 50%;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  background: radial-gradient(ellipse at 50% 60%, 
    rgba(255, 255, 255, 0.65) 0%, 
    rgba(255, 255, 255, 0.35) 40%, 
    transparent 72%);
  filter: blur(5px);
  mix-blend-mode: screen;
  opacity: 0;
}

.steam-tendril--1{
  width: 30px;
  height: 135px;
  margin-left: -20px;
  animation: steamTendrilFlow1 3.6s ease-out infinite;
  animation-delay: 0.4s;
}

.steam-tendril--2{
  width: 34px;
  height: 150px;
  margin-left: 8px;
  animation: steamTendrilFlow2 4.4s ease-out infinite;
  animation-delay: 1.6s;
}

@keyframes steamTendrilFlow1 {
  0% { opacity: 0; transform: translateY(10px) translateX(0) scale(0.4) rotate(0deg); }
  20% { opacity: 0.75; }
  50% { opacity: 0.5; transform: translateY(-75px) translateX(15px) scale(1.1) rotate(-10deg); }
  80% { opacity: 0.2; transform: translateY(-160px) translateX(-16px) scale(1.6) rotate(12deg); }
  100% { opacity: 0; transform: translateY(-240px) translateX(12px) scale(2.2) rotate(-15deg); }
}

@keyframes steamTendrilFlow2 {
  0% { opacity: 0; transform: translateY(10px) translateX(0) scale(0.4) rotate(0deg); }
  20% { opacity: 0.75; }
  50% { opacity: 0.5; transform: translateY(-75px) translateX(-18px) scale(1.1) rotate(12deg); }
  80% { opacity: 0.2; transform: translateY(-160px) translateX(18px) scale(1.6) rotate(-11deg); }
  100% { opacity: 0; transform: translateY(-240px) translateX(-14px) scale(2.2) rotate(13deg); }
}

/* =========================================================
   HỆ THỐNG HÌNH ẢNH MINH HỌA BỔ TRỢ XUNG QUANH MÓN ĂN BESTSELLER
   - Tay cầm đũa (dua.avif)
   - Muỗng sứ hoa lam (muong.png)
   - Các đám mây truyền thống (may_1.png, may_2.png, may_3.avif)
   - Hiệu ứng: Bay từ nhiều phía vào vị trí cố định khi món active
   - Sau đó cố định vị trí và lắc lư nhẹ nhàng bồng bềnh
   ========================================================= */
.bs-dish-props{
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  overflow: visible;
}

/* Từng vị trí của phụ kiện minh họa (Props Slot) */
.bs-prop-slot{
  position: absolute;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
  transition: transform 0.4s ease-out, opacity 0.3s ease-out;
  transition-delay: 0s !important;
}

/* Wrapper lắc lư bên trong (Prop Sway) */
.bs-prop-sway{
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: center center;
  will-change: transform;
}

/* Ảnh minh họa bên trong */
.bs-prop-img{
  position: static !important;
  z-index: auto !important;
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block !important;
  user-select: none;
  -webkit-user-drag: none;
  transition: none !important;
}

/* Phong cách nét vẽ minh họa: Tỏa ánh vàng kim sang trọng đồng điệu với thương hiệu */
.bs-prop-img--sketch{
  filter: invert(0.9) sepia(0.28) saturate(1.8) hue-rotate(5deg) drop-shadow(0 4px 14px rgba(0, 0, 0, 0.75)) !important;
}

/* Muỗng sứ: Thân sứ trắng, nét hoa lam truyền thống, bóng đổ thực */
.bs-prop-img--muong{
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 10px rgba(242, 183, 5, 0.25)) !important;
}

/* 1. TAY CẦM ĐŨA (DUA.AVIF) - Bay từ góc trên phải đâm xéo vào gắp món ăn */
.bs-prop-slot--dua{
  top: -6%;
  right: -15%;
  width: clamp(190px, 23vw, 235px);
  z-index: 5; /* Đè lên viền đĩa thức ăn như đang gắp */
  transform: translate3d(140px, -90px, 0) rotate(18deg) scale(0.65);
}

/* 2. MUỖNG SỨ (MUONG.PNG) - Bay từ góc trên trái vào */
.bs-prop-slot--muong{
  top: -4%;
  left: -14%;
  width: clamp(105px, 12vw, 125px);
  z-index: 5;
  transform: translate3d(-120px, -70px, 0) rotate(-24deg) scale(0.65);
}

/* 3. ĐÁM MÂY 1 (MAY_1.PNG) - Nằm bên hông dưới trái đĩa, hoàn toàn không trùng muỗng sứ */
.bs-prop-slot--cloud-1{
  top: 48%;
  left: -15%;
  width: clamp(75px, 8.5vw, 95px);
  z-index: 1; /* Nằm sau đĩa thức ăn tạo chiều sâu */
  transform: translate3d(-50px, 0, 0) scale(0.5);
}

/* 4. ĐÁM MÂY 2 (MAY_2.PNG) - Nằm bên hông dưới phải đĩa, hoàn toàn không trùng đôi đũa */
.bs-prop-slot--cloud-2{
  top: 48%;
  right: -15%;
  width: clamp(75px, 8.5vw, 95px);
  z-index: 1;
  transform: translate3d(50px, 0, 0) scale(0.5);
}

/* 5. ĐÁM MÂY 3 (MAY_3.AVIF) - Bay nhẹ chính giữa phía dưới đĩa */
.bs-prop-slot--cloud-3{
  bottom: -6%;
  left: 50%;
  width: clamp(80px, 9.5vw, 105px);
  z-index: 1;
  transform: translate3d(-50%, 40px, 0) scale(0.5);
}

/* KHI MÓN Ở TRẠNG THÁI ACTIVE: CÁC PHỤ KIỆN BAY TỪ NHIỀU PHÍA VÀO VÀ CỐ ĐỊNH */
.bestseller-card.is-active .bs-prop-slot{
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.bestseller-card.is-active .bs-prop-slot--dua{
  transition-delay: 0.1s !important;
}

.bestseller-card.is-active .bs-prop-slot--muong{
  transition-delay: 0.16s !important;
}

.bestseller-card.is-active .bs-prop-slot--cloud-1{
  transition-delay: 0.22s !important;
}

.bestseller-card.is-active .bs-prop-slot--cloud-2{
  transition-delay: 0.28s !important;
}

.bestseller-card.is-active .bs-prop-slot--cloud-3{
  transform: translate3d(-50%, 0, 0) scale(1) !important;
  transition-delay: 0.32s !important;
}

/* SAU KHI VÀO VỊ TRÍ CỐ ĐỊNH: LẮC LƯ NHẸ NHÀNG BỒNG BỀNH TỰ NHIÊN */
.bestseller-card.is-active .bs-prop-sway--dua{
  animation: bsSwayDua 4.4s ease-in-out infinite alternate;
}

.bestseller-card.is-active .bs-prop-sway--muong{
  animation: bsSwayMuong 3.8s ease-in-out infinite alternate 0.5s;
}

.bestseller-card.is-active .bs-prop-sway--cloud-1{
  animation: bsSwayCloud1 5.2s ease-in-out infinite alternate 0.2s;
}

.bestseller-card.is-active .bs-prop-sway--cloud-2{
  animation: bsSwayCloud2 6s ease-in-out infinite alternate 0.7s;
}

.bestseller-card.is-active .bs-prop-sway--cloud-3{
  animation: bsSwayCloud3 4.6s ease-in-out infinite alternate 0.4s;
}

/* KEYFRAMES LẮC LƯ NHẸ (SWAY ANIMATIONS) */
@keyframes bsSwayDua {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(-3px, 4px, 0) rotate(-1deg);
  }
  100% {
    transform: translate3d(-5px, 6px, 0) rotate(-2deg);
  }
}

@keyframes bsSwayMuong {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(4px, -4px, 0) rotate(1.5deg);
  }
  100% {
    transform: translate3d(6px, -7px, 0) rotate(3deg);
  }
}

@keyframes bsSwayCloud1 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(8px, -5px, 0) scale(1.04);
  }
}

@keyframes bsSwayCloud2 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-7px, 5px, 0) scale(0.97);
  }
}

@keyframes bsSwayCloud3 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(6px, -4px, 0) scale(1.03);
  }
}

/* RESPONSIVE TABLET & MOBILE */
@media (max-width: 1024px) {

  .bs-prop-slot--dua{
    right: -14%;
    top: -8%;
    width: 175px;
  }
  .bs-prop-slot--muong{
    left: -12%;
    top: -6%;
    width: 95px;
  }
  .bs-prop-slot--cloud-1{
    left: -12%;
    top: 50%;
    width: 72px;
  }
  .bs-prop-slot--cloud-2{
    right: -12%;
    top: 50%;
    bottom: auto;
    width: 72px;
  }
  .bs-prop-slot--cloud-3{
    left: 50%;
    bottom: -5%;
    width: 80px;
  }

}

@media (max-width: 640px) {

  .bs-prop-slot--dua{
    right: -10%;
    top: -5%;
    width: 135px;
  }
  .bs-prop-slot--muong{
    left: -8%;
    top: -4%;
    width: 75px;
  }
  .bs-prop-slot--cloud-1{
    left: -8%;
    top: 52%;
    width: 55px;
  }
  .bs-prop-slot--cloud-2{
    right: -8%;
    top: 52%;
    bottom: auto;
    width: 55px;
  }
  .bs-prop-slot--cloud-3{
    left: 50%;
    bottom: -4%;
    width: 65px;
  }

}

@media (prefers-reduced-motion: reduce) {

  .bs-prop-slot{
    transition: none !important;
  }
  .bs-prop-sway{
    animation: none !important;
  }

}

/* MODAL CHI TIẾT MÓN ĂN TÁCH NỀN */
.bestseller-modal__media.has-cutout{
  background: radial-gradient(circle at 50% 50%, rgba(242, 183, 5, 0.22) 0%, rgba(21, 60, 49, 0.45) 45%, #081611 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  overflow: visible;
  position: relative;
}

.bestseller-modal__media.has-cutout::before{
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 183, 5, 0.3) 0%, rgba(242, 183, 5, 0.08) 55%, transparent 75%);
  filter: blur(20px);
  pointer-events: none;
}

.bestseller-modal__media.has-cutout::after{
  content: "";
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.4) 48%, transparent 75%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 1;
}

.bestseller-modal__media.has-cutout img{
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  max-width: 90%;
  max-height: 420px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 20px rgba(242, 183, 5, 0.25)) contrast(1.05) saturate(1.08);
  transition: transform 0.5s var(--ease);
}

/* =========================================================
   HỆ THỐNG NỀN NÂNG CẤP KHU VỰC BESTSELLER (AMBIENT BACKGROUND SYSTEM)
   - Đổi tông nền và quầng sáng dynamic theo 7 món ăn
   - Họa tiết gốm Việt / hoa sen lặp lại mờ ảo (4% - 6%)
   - Grain/noise micro vi mô (5%) chống bệt màu
   - Vignette tối dần 4 góc tập trung thị giác vào trung tâm
   - Chữ lớn chìm "ĂN THÔI" làm nền có Parallax theo chuột
   - Quầng sáng ẩm thực (Atmospheric Glow) mượt mà đổi màu
   - Hạt đốm sáng bay (Embers / Bokeh) chuyển động 60fps
   - Sửa mép cắt cứng đĩa món hai bên bằng mask-image mềm mại
   - Đồng bộ nền & glow trong Modal
   ========================================================= */

:root{
  /* Màu sắc biến thiên theo món ăn (JS cập nhật động) */
  --glow-color: #e8c547;
  --dish-tint: #222a14;

  /* Các biến tinh chỉnh độ đậm nhạt từng lớp nền */
  --bg-pattern-opacity: 0.05;   /* Họa tiết gốm Việt / hoa sen (0.04 - 0.06) */
  --bg-noise-opacity: 0.045;    /* Hạt nhiễu vi mô chống bệt màu (~0.05) */
  --bg-vignette-opacity: 0.85;  /* Độ tối 4 góc tập trung thị giác */
  --bg-watermark-opacity: 0.045;/* Chữ chìm ĂN THÔI làm nền (0.04 - 0.06) */
  --bg-glow-opacity: 0.45;      /* Quầng sáng lớn phía sau món active */
  --bg-tint-opacity: 0.75;      /* Độ pha màu của gradient nền theo món */
  --bg-embers-opacity: 0.75;    /* Độ sáng các hạt tàn than/bokeh */
}

/* Khung bọc section Bestseller */
.sec--bestseller{
  position: relative;
  background-color: #081611;
  background-image: 
    linear-gradient(180deg, #071510 0%, #0d261f 25%, #11342a 50%, #0d261f 75%, #06130e 100%);
  color: #fffdf7;
  padding-block: clamp(72px, 8.5vw, 130px);
  overflow: hidden;
  border-top: 1px solid rgba(242, 183, 5, 0.28);
  border-bottom: 1px solid rgba(242, 183, 5, 0.28);
}

/* Hệ thống các lớp nền (Container) */
.bestseller-bg-system{
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Lớp 1: Nền chuyển sắc pha màu theo món active (Dynamic Section Tint) */
.bestseller-bg-tint{
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 65% at 50% 55%, var(--dish-tint, #222a14) 0%, transparent 75%);
  opacity: var(--bg-tint-opacity, 0.75);
  transition: background 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
  z-index: 1;
}

/* Lớp 2: Họa tiết gốm Việt / hoa sen lặp lại mờ ảo (Vietnamese Motif Pattern) */
.bestseller-bg-pattern{
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 0 C42 12, 50 20, 62 22 C50 24, 42 32, 40 44 C38 32, 30 24, 18 22 C30 20, 38 12, 40 0 Z M0 40 C2 52, 10 60, 22 62 C10 64, 2 72, 0 84 M80 40 C78 52, 70 60, 58 62 C70 64, 78 72, 80 84' fill='none' stroke='%23f5b921' stroke-width='0.8' stroke-opacity='0.8'/%3E%3Ccircle cx='40' cy='40' r='5' fill='none' stroke='%23f5b921' stroke-width='0.6' stroke-opacity='0.6'/%3E%3Ccircle cx='0' cy='0' r='12' fill='none' stroke='%23f5b921' stroke-width='0.5' stroke-opacity='0.5'/%3E%3Ccircle cx='80' cy='0' r='12' fill='none' stroke='%23f5b921' stroke-width='0.5' stroke-opacity='0.5'/%3E%3Ccircle cx='0' cy='80' r='12' fill='none' stroke='%23f5b921' stroke-width='0.5' stroke-opacity='0.5'/%3E%3Ccircle cx='80' cy='80' r='12' fill='none' stroke='%23f5b921' stroke-width='0.5' stroke-opacity='0.5'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  background-repeat: repeat;
  opacity: var(--bg-pattern-opacity, 0.05);
  z-index: 2;
}

/* Lớp 3: Hạt nhiễu vi mô chống bệt màu (Subtle Noise Grain) */
.bestseller-bg-noise{
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: overlay;
  opacity: var(--bg-noise-opacity, 0.045);
  z-index: 3;
}

/* Lớp 4: Tối 4 góc tập trung thị giác vào trung tâm (Vignette Shadow) */
.bestseller-bg-vignette{
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 35%, rgba(6, 19, 14, 0.45) 70%, rgba(3, 10, 8, 0.88) 100%);
  opacity: var(--bg-vignette-opacity, 0.85);
  z-index: 4;
}

/* Lớp 5: Chữ lớn chìm làm nền (Đã ẩn theo yêu cầu) */
.bestseller-bg-watermark{
  display: none !important;
}

/* Lớp 6: Quầng sáng lớn phía sau món ăn active (Atmospheric Glow) */
.bestseller-bg-glow{
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 560px);
  height: min(92vw, 560px);
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-color, #e8c547) 0%, transparent 68%);
  filter: blur(55px);
  opacity: var(--bg-glow-opacity, 0.45);
  transition: background 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
  z-index: 6;
}

/* Lớp 7: Hạt đốm sáng / tàn than bay bổng lơ lửng (Floating Embers / Bokeh) */
.bestseller-bg-embers{
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 14; /* Nổi lơ lửng ngay trước món ăn */
  overflow: hidden;
  opacity: var(--bg-embers-opacity, 0.75);
  transition: opacity 0.5s ease;
}

.bestseller-ember{
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--glow-color, #f5b921) 45%, rgba(245, 185, 33, 0.2) 75%, transparent 100%);
  filter: blur(1px) drop-shadow(0 0 6px var(--glow-color, #f5b921));
  will-change: transform, opacity;
  animation: emberRise var(--ember-dur, 8s) cubic-bezier(0.25, 0.8, 0.4, 1) infinite;
  animation-delay: var(--ember-delay, 0s);
  opacity: 0;
}

@keyframes emberRise {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0) scale(0.6);
  }
  15% {
    opacity: var(--ember-op, 0.85);
  }
  50% {
    transform: translateY(-40vh) translateX(var(--ember-sway1, -25px)) scale(1.1);
  }
  80% {
    opacity: calc(var(--ember-op, 0.85) * 0.5);
    transform: translateY(-80vh) translateX(var(--ember-sway2, 20px)) scale(0.9);
  }
  100% {
    opacity: 0;
    transform: translateY(-115vh) translateX(var(--ember-sway3, -15px)) scale(0.4);
  }
}

/* Tạm dừng animation khi modal mở hoặc tab ẩn */
.bestseller-bg-embers.is-paused .bestseller-ember,
.bestseller-bg-embers.is-paused{
  animation-play-state: paused !important;
}

/* Tôn trọng người dùng không thích chuyển động mạnh */
@media (prefers-reduced-motion: reduce) {

  .bestseller-ember{
    animation: none !important;
    display: none !important;
  }
  .bestseller-bg-watermark{
    transform: translate(-50%, -50%) !important;
  }

}

/* SỬA MÉP CẮT CỨNG CỦA CÁC MÓN HAI BÊN (Edge Fade Mask) */
.bestseller-card.is-prev .bestseller-card__photo-box,
.bestseller-card.is-next .bestseller-card__photo-box{
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 18%, black 82%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 18%, black 82%, transparent 100%);
}

.bestseller-card.is-active .bestseller-card__photo-box{
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

/* Cập nhật màu vạch kim chỉ trên thước đo theo món */
.bestseller-ruler__needle-pip{
  background: var(--glow-color, var(--gold));
  box-shadow: 0 0 10px var(--glow-color, var(--gold));
  transition: background 0.8s ease, box-shadow 0.8s ease;
}

/* MODAL: ĐỒNG BỘ NỀN & GLOW VỚI MÓN ĐANG XEM */
.bestseller-modal__backdrop{
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  background: rgba(4, 12, 9, 0.78) !important;
  transition: backdrop-filter 0.5s ease, background 0.5s ease;
}

.bestseller-modal__media.has-cutout{
  background: radial-gradient(circle at 50% 50%, var(--glow-color, rgba(242, 183, 5, 0.25)) 0%, var(--dish-tint, #153c31) 50%, #081611 82%) !important;
  transition: background 0.8s ease;
}

.bestseller-modal__media.has-cutout::before{
  background: radial-gradient(circle, var(--glow-color, #e8c547) 0%, transparent 68%) !important;
  opacity: 0.35;
  transition: background 0.8s ease;
}

/* Hạt sáng nhỏ bên trong Modal */
.bestseller-modal-embers{
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}

.bestseller-modal-ember{
  position: absolute;
  bottom: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--glow-color, #f5b921) 50%, transparent 100%);
  filter: blur(1px) drop-shadow(0 0 4px var(--glow-color, #f5b921));
  animation: modalEmberRise var(--mdur, 6s) ease-out infinite;
  animation-delay: var(--mdel, 0s);
  opacity: 0;
}

@keyframes modalEmberRise {
  0% { opacity: 0; transform: translateY(0) scale(0.6); }
  20% { opacity: 0.8; }
  80% { opacity: 0.3; transform: translateY(-200px) translateX(var(--msway, 15px)) scale(1); }
  100% { opacity: 0; transform: translateY(-300px) translateX(var(--msway2, -10px)) scale(0.4); }
}

/* =========================================================
   TỐI ƯU HÓA HIỆU NĂNG CHO THIẾT BỊ DI ĐỘNG (MOBILE PERFORMANCE 60FPS)
   - Tắt các bộ lọc phức tạp (SVG feTurbulence, backdrop-filter, drop-shadow đa tầng)
   - Chỉ giữ hiệu ứng khói và chuyển động nhẹ ở đĩa trung tâm active
   - Giải phóng tài nguyên GPU, triệt tiêu 100% tình trạng giật lag trên điện thoại
   ========================================================= */
@media (max-width: 768px) {

  /* 1. Tắt lớp hạt nhiễu vi mô SVG ngốn GPU lớn nhất */
  .bestseller-bg-noise {
    display: none !important;
  }

  /* 2. Tối ưu thẻ thông tin món ăn: Dùng nền sẫm phẳng thay cho backdrop-filter blur */
  .bestseller-info-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(11, 33, 27, 0.95) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
  }

  /* 3. Tắt hoàn toàn khói ở các đĩa phụ (is-prev, is-next, is-hidden) */
  .bestseller-card:not(.is-active) .dish-steam {
    display: none !important;
  }

  /* 4. Tinh giản khói ở đĩa chính: Bỏ bớt các cột khói phụ và drop-shadow nặng */
  .steam-billow--3,
  .steam-billow--4,
  .steam-billow--5,
  .steam-tendril--2 {
    display: none !important;
  }

  .steam-billow {
    filter: blur(5px) !important;
  }

  .steam-thermal-mist {
    filter: blur(10px) !important;
  }

  /* 5. Tắt animation lắc lư (sway) ở các đĩa phụ hai bên */
  .bestseller-card:not(.is-active) .bs-prop-sway {
    animation: none !important;
  }

  /* 6. Tối ưu hạt đốm sáng bay (Embers) */
  .bestseller-ember {
    box-shadow: 0 0 5px var(--glow-color, #f5b921) !important;
  }

  /* 7. Giảm tải blur quầng sáng nền */
  .bestseller-bg-glow {
    filter: blur(35px) !important;
  }

  /* 8. Tăng tốc phần cứng cho các thẻ đang trượt */
  .bestseller-card {
    will-change: transform, opacity;
  }

}
