/* --- 1. VARIABLES & RESET --- */
.bkvn-phs {
  --primary-color: #c91818;
  --text-dark: #1e293b;
  --text-gray: #64748b;
  --text-light: #cbd5e1;
  --bg-page: #f8fafc;
  --item-height: 60px; 
  --item-width-mobile: 220px; 
  --anim-speed: 0.5s;
}

.bkvn-phs {
  font-family: 'Be Vietnam Pro', sans-serif;
  width: 100%;
  max-width: 100%;
  background: transparent;
  overflow: hidden;
}

.bkvn-phs *, 
.bkvn-phs *::before, 
.bkvn-phs *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  margin: 0; 
  padding: 0; 
}

/* --- 2. LAYOUT (DESKTOP DEFAULT) --- */
.bkvn-phs .hero-wrapper {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0px;
}

.bkvn-phs .slider-main {
  width: 100%;
  max-width: 1440px;
  height: 100%;
  max-height: 800px;
  background: #fff url('https://bkvietnam.vn/wp-content/uploads/2025/12/Background_01.jpg') no-repeat center center / cover;
  border-radius: 32px;
  box-shadow: none;
  position: relative;
  display: flex;
  overflow: hidden;
  padding: 28px;
}

/* --- LEFT PANEL --- */
.bkvn-phs .left-panel {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 80px;
  z-index: 5;
  padding-bottom: 60px;
}

.bkvn-phs .branding-section { margin-bottom: 40px; }
.bkvn-phs .logo-large { font-size: 8rem; font-weight: 900; line-height: 0.8; letter-spacing: -4px; margin-bottom: 10px; color: var(--text-dark); }
.bkvn-phs .logo-large span { color: var(--primary-color); }
.bkvn-phs .brand-subtext { font-size: 1.2rem; font-weight: 700; text-transform: uppercase; letter-spacing: 8px; color: #757575; margin-top: 5px; padding-left: 8px; }

/* --- MENU SECTION --- */
.bkvn-phs .menu-section {
  height: calc(var(--item-height) * 4); 
  overflow: hidden; 
  position: relative;
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  margin-left: 40px; 
}

.bkvn-phs .menu-list {
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--anim-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.bkvn-phs .menu-item {
  height: var(--item-height);
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  padding-left: 0;
  transition: all var(--anim-speed) ease;
  transform-origin: left center;
  white-space: nowrap;
}

.bkvn-phs .menu-title {
  font-weight: 600;
  transition: all var(--anim-speed);
  white-space: nowrap;
}

/* Level Styles (Desktop) */
.bkvn-phs .menu-item.level-0 .menu-title { font-size: 2rem; color: var(--text-dark); font-weight: 900; opacity: 1; }
.bkvn-phs .menu-item.level-1 .menu-title { font-size: 1.5rem; color: var(--text-gray); font-weight: 600; opacity: 0.6; }
.bkvn-phs .menu-item.level-2 .menu-title { font-size: 1.2rem; color: var(--text-gray); opacity: 0.4; }
.bkvn-phs .menu-item.level-3 .menu-title { font-size: 1rem; color: var(--text-gray); opacity: 0.2; }

/* --- CENTER CONTROLS --- */
.bkvn-phs .center-controls {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  z-index: 20;
}

.bkvn-phs .nav-v-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  background: #fff;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  box-shadow: none;
}

.bkvn-phs .nav-v-btn:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  transform: scale(1.1);
  box-shadow: none; 
}

.bkvn-phs .nav-v-btn:active { transform: scale(0.95); }

/* --- RIGHT SIDE --- */
.bkvn-phs .image-section {
  flex: 1; 
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 40px;
  padding-bottom: 60px; 
}

.bkvn-phs .product-display {
  width: 100%;
  height: 90%;
  position: relative;
  perspective: 1000px;
}

.bkvn-phs .product-img-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(100px) scale(0.8);
  transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.bkvn-phs .product-img-wrapper.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.bkvn-phs .product-img-wrapper img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.3s;
}
.bkvn-phs .product-img-wrapper.active:hover img { transform: scale(1.05); }

/* --- BOTTOM BAR --- */
.bkvn-phs .bottom-bar {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 100%;
  padding: 0 80px; 
  display: flex;
  align-items: center;
  justify-content: space-between; 
  z-index: 20;
}

/* DOTS - FIX TRÒN & KHÔNG DÃN */
.bkvn-phs .pagination-dots { 
  display: flex; 
  gap: 12px; 
  align-items: center; 
}

.bkvn-phs .dot { 
  width: 12px; 
  height: 12px; 
  background-color: var(--text-light); 
  border-radius: 50%; 
  cursor: pointer; 
  transition: all 0.3s ease; 
  flex-shrink: 0; /* Chống méo hình */
}

.bkvn-phs .dot:hover { 
  background-color: var(--text-gray); 
}

.bkvn-phs .dot.active { 
  background-color: var(--primary-color); 
  transform: scale(1.3); /* Phóng to nhẹ thay vì đổi width */
}

/* CONTACT INFO */
.bkvn-phs .contact-info-group { display: flex; align-items: center; gap: 15px; }
.bkvn-phs .contact-label-text { font-weight: 700; color: var(--text-dark); margin-right: 5px; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }
.bkvn-phs .contact-pill { background: rgba(255,255,255,0.6); border: 1px solid rgba(0,0,0,0.05); padding: 8px 16px; border-radius: 12px; font-size: 0.85rem; display: flex; align-items: center; gap: 8px; transition: transform 0.3s; box-shadow: none; }
.bkvn-phs .contact-pill:hover { transform: translateY(-2px); background: #fff; }
.bkvn-phs .pill-label { background: var(--text-dark); color: white; font-size: 0.65rem; font-weight: 800; padding: 2px 6px; border-radius: 4px; }
.bkvn-phs .pill-value { font-weight: 700; color: var(--text-dark); }
.bkvn-phs .contact-pill.highlight { border-color: var(--primary-color); background: rgba(201, 24, 24, 0.05); }
.bkvn-phs .contact-pill.highlight .pill-label { background: var(--primary-color); }


/* --- RESPONSIVE MOBILE (FIXED CENTER) --- */
@media (max-width: 1024px) {
  .bkvn-phs .hero-wrapper {
    height: auto;
    min-height: auto;
    padding: 0;
    display: block;
  }
  .bkvn-phs .slider-main {
    border-radius: 0;
    flex-direction: column;
    height: auto;
    min-height: auto;
    max-height: none;
    max-width: 100%;
    padding-bottom: 20px;
  }

  /* Ẩn hiện các thành phần */
  .bkvn-phs .left-panel { display: contents; }

  /* 1. LOGO */
  .bkvn-phs .branding-section { 
    order: 1;
    width: 100%;
    text-align: center;
    margin: 30px 0 0px; 
    padding: 0 20px;
  }
  .bkvn-phs .logo-large {font-size: 4.5rem;margin-bottom: 0;letter-spacing: 1px;}
  .bkvn-phs .brand-subtext {font-size: 1rem;padding-left: 0;letter-spacing: 2px;}

  /* 2. IMAGE */
  .bkvn-phs .image-section {
    order: 2;
    flex: none;
    width: 100%;
    height: 420px;
    padding: 0 10px;
    margin: 10px 0;
    position: relative;
    z-index: 1;
  }
  .bkvn-phs .product-img-wrapper { transform: translateX(30px) scale(0.9); }
  .bkvn-phs .product-img-wrapper.active { transform: translateX(0) scale(1); }
  .bkvn-phs .product-img-wrapper img { max-width: 100%; max-height: 100%; }

  /* 3. CONTROLS */
  .bkvn-phs .center-controls {
    order: 3;
    position: absolute;
    top: 365px; 
    left: 0;
    width: 100%;
    padding: 0 10px;
    flex-direction: row; 
    justify-content: space-between; 
    gap: 0;
    pointer-events: none; 
    z-index: 10;
  }
  .bkvn-phs .nav-v-btn {
    pointer-events: auto; 
    width: 40px;
    height: 40px;
    font-size: 1rem;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(4px);
  }
  .bkvn-phs .nav-v-btn:first-child i { transform: rotate(-90deg); }
  .bkvn-phs .nav-v-btn:last-child i { transform: rotate(-90deg); }

  /* 4. MENU LIST (FIX CENTER TEXT) */
  .bkvn-phs .menu-section { 
    order: 4;
    height: 80px; 
    margin-left: 0;
    width: 100%;
    display: flex;
    /* Mask mờ 2 bên */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    margin-top: 10px;
  }
  
  .bkvn-phs .menu-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    /* Căn item đầu tiên vào giữa màn hình */
    margin: 0;
    width: max-content;
    padding-left: (50vw - (var(--item-width-mobile)/2));
  }
  
  .bkvn-phs .menu-item { 
    width: var(--item-width-mobile); 
    height: 100%;
    /* Bắt buộc Flex center để căn chữ */
    display: flex !important;
    justify-content: center !important; 
    align-items: center !important;
    padding: 0 !important; 
    margin: 0;
    transform-origin: center center;
    text-align: center;
  }
  
  .bkvn-phs .menu-item .menu-title {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0 auto;
  }
  
  .bkvn-phs .menu-item.level-0 .menu-title { font-size: 1.5rem; opacity: 1; transform: scale(1.1); font-weight: 800; }
  .bkvn-phs .menu-item.level-1 .menu-title { font-size: 1.1rem; opacity: 0.5; }
  .bkvn-phs .menu-item.level-2 .menu-title { font-size: 1.1rem; opacity: 0.3; }
  .bkvn-phs .menu-item.level-3 .menu-title { font-size: 0.9rem; opacity: 0; }

  /* 5. BOTTOM BAR */
  .bkvn-phs .bottom-bar { 
    order: 5;
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    flex-direction: column;
    gap: 15px;
    padding: 10px 20px 20px;
  }
  
  .bkvn-phs .pagination-dots { display: none; }
  
  .bkvn-phs .contact-info-group { 
    width: 100%;
    justify-content: center;
    flex-direction: row; 
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .bkvn-phs .contact-label-text { display: block; font-size: 0.8rem; text-align: center; }
  .bkvn-phs .contact-pill { display: none; } 
  .bkvn-phs .contact-pill.highlight { display: flex; margin: 0; }
}