/* ==========================================================================
   1. FONTS & ROOT TOKENS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Content:wght@400;700&family=Moul&family=Noto+Serif+Khmer:wght@100..900&family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&family=Wix+Madefor+Display:wght@400..800&display=swap');

:root {
  /* Brand Core Master Colors */
  --primary: #fc6a03;
  --primary-dark: #b84b00;
  --accent: #ec9706;
  
  /* Brand Contrast Harmonizers */
  --sand-bg: #f5eede;      /* Premium subtle warm backdrop */
  --teal-light: #a8c1c1;   /* Elegant structural border / accent */
  --dark-slate: #84aaad;   /* Earthy dark accent for badges / layouts */
  --deep-navy: #132a2c;    /* High contrast premium dark slate replacing pure black */
  
  /* Standard Layout Elements */
  --soft: #fbfaf7;         /* Tinted soft paper white */
  --text-muted: #4e5d60;   /* Readable contrast slate */
  --border-light: rgba(132, 170, 173, 0.25);
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Font Setup */
h1, h2, h3, h4, h5, h6,
.navbar, .btn, .card, .form-control, .form-select, 
.dropdown-menu, table, p, span, div, a, li, html, body, button {
  font-family: 'Wix Madefor Display', 'Content', sans-serif;
}
.text-primary {
    --bs-text-opacity: 1;
    color: #fc6a03 !important;
}
/* Global Form Reset for iOS */
input, textarea, select {
  -webkit-appearance: none;
  appearance: none;
}

/* Utilities */
.bg-primary {
  background-color: #fc6a03 !important;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--dark-slate));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Links */
a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--accent);
}

/* ==========================================================================
   2. BUTTONS & BADGES
   ========================================================================== */
.btn-primary,
.btn.btn-primary,
button.btn-primary {
  font-weight: 600 !important;
  background: linear-gradient(135deg, #fc6a03, #ff8c3a) !important;
  border: none !important;
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(252, 106, 3, 0.2);
  transition: var(--transition-smooth) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: linear-gradient(135deg, #ff8c3a, #ec9706) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(252, 106, 3, 0.3);
}

.btn-outline-primary {
  color: var(--primary) !important;
  border: 1px solid var(--primary) !important;
  background: transparent !important;
  transition: var(--transition-smooth);
}

.btn-outline-primary:hover {
  background: linear-gradient(135deg, #ff8c3a, #ec9706) !important;
  border-color: transparent !important;
  color: #fff !important;
  transform: translateY(-2px);
}

.btn-modern {
  border-radius: 999px;
  padding: 12px 26px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(252, 106, 3, 0.2);
}

.pill-badge {
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(252, 106, 3, 0.08);
  color: var(--primary);
  font-weight: 700;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

/* ==========================================================================
   3. DESKTOP HEADER & GLOBAL BRANDING
   ========================================================================== */
.desktop-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 9999;
  box-shadow: 0 4px 25px rgba(19, 42, 44, 0.03);
}

.bank-topbar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
}

.top-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.city-brand {
  position: relative;
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 12px;
  filter: drop-shadow(0 4px 10px rgba(252, 106, 3, 0.05));
  transition: var(--transition-smooth);
}

.navbar-logo {
  height: 54px;
  width: auto;
  object-fit: contain;
}

.company-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.5; 
  padding-top: 4px;
  align-items: center;
}

.com-kh-name {
  font-family: 'Moul', 'Noto Serif Khmer', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
}

.com-kh-name small, 
.com-kh-name .kh-highlight {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 2px;
}

.com-en-name {
  font-family: 'Roboto', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.city-brand::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -120%;
  width: 80px;
  height: 220%;
  /*background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(25deg);
  transition: all 0.8s ease;*/
}

.city-brand:hover::before {
  left: 130%;
}

.city-brand:hover {
  filter: drop-shadow(0 8px 20px rgba(252, 106, 3, 0.15));
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.top-actions a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.top-actions a:hover {
  color: var(--primary);
}

.top-actions span {
  color: var(--teal-light);
  user-select: none;
}

/* ==========================================================================
   4. DESKTOP SEARCH PANEL (LEFT EXPANSION)
   ========================================================================== */
.search-wrapper {
  position: relative;
}

.search-btn {
  border: 0;
  background: none;
  font-size: 17px;
  color: var(--deep-navy);
  cursor: pointer;
  padding: 6px;
  transition: var(--transition-smooth);
}

.search-btn:hover {
  transform: scale(1.1);
  color: var(--primary);
}

.search-panel {
  position: absolute;
  right: 38px; 
  top: 0px;
  width: 290px;
  background: #ffffff;
  padding: 0px;
  border-radius: 25px;
  box-shadow: 0 12px 35px rgba(19, 42, 44, 0.08);
  border: 1px solid var(--border-light);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition-smooth);
}

.search-wrapper:hover .search-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-panel input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid var(--teal-light);
  background-color: var(--soft);
  border-radius: 20px;
  outline: none;
  box-sizing: border-box;
  transition: var(--transition-smooth);
}

.search-panel input:focus {
  background-color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(252, 106, 3, 0.12);
}

/* ==========================================================================
   5. DESKTOP MAIN NAVIGATION BAR
   ========================================================================== */
.bank-menu {
  background: linear-gradient(45deg, var(--sand-bg) 0%, var(--teal-light) 100%);
  padding: 0;
}

.menu-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
}

.main-menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  height: 100%;
  align-items: center;
}

.main-menu > li {
  position: relative;
  height: 100%;
}

.main-menu > li > a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 24px;
  color: var(--primary)/*rgba(255, 255, 255, 0.9)*/;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.main-menu > li > a:hover,
.main-menu > li > a.active-link {
  color: var(--accent);
  background-color: rgba(255, 255, 255, 0.08);
}

.dropdown-toggle::after {
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
  content: "";
  border-top: 4px solid;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  transition: transform 0.2s ease;
}

.main-menu > li:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

/* ==========================================================================
   6. MEGA MENU SYSTEM (PRODUCTS)
   ========================================================================== */
.main-menu > li.dropdown:hover .mega-menu-panel {
  display: grid !important; 
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-panel {
  display: none; 
  position: absolute;
  top: 100%;
  left: 0;
  width: 760px;
  background: #ffffff;
  border: 1px solid var(--teal-light);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 20px 45px rgba(19, 42, 44, 0.08);
  padding: 28px;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  z-index: 1050;
}

.mega-menu-column {
  display: flex;
  flex-direction: column;
}

.mega-menu-column h6 {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--dark-slate);
  font-weight: 700;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
  margin-top: 0;
  border-bottom: 2px solid var(--sand-bg);
  padding-bottom: 6px;
}

.mega-menu-column a {
  display: block !important;
  text-decoration: none;
  color: var(--deep-navy) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 7px 0 !important;
  background: none !important;
  transition: var(--transition-smooth) !important;
}

.mega-menu-column a:hover {
  color: var(--primary) !important;
  padding-left: 4px !important;
}

/* ==========================================================================
   7. MOBILE NAVIGATION & OVERLAY PANEL
   ========================================================================== */
.site-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border-light);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(252, 106, 3, 0.25);
}

.nav-link-custom {
  color: var(--deep-navy);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  transition: var(--transition-smooth);
}

.nav-link-custom:hover,
.nav-link-custom.active-link {
  color: var(--primary);
  background: rgba(252, 106, 3, 0.08);
}

@media (max-width: 991px) {
  .navbar-collapse {
    margin-top: 15px;
    padding: 24px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(19, 42, 44, 0.06);
  }

  .nav-link-custom {
    display: block;
    padding: 12px 16px;
    margin-bottom: 6px;
    border-radius: 10px;
  }

  .navbar-nav {
    align-items: start !important;
  }

  .mobile-panel {
    position: absolute;
    top: 85px;
    left: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 25px 55px rgba(19, 42, 44, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    z-index: 9999;
    transition: var(--transition-smooth);
  }

  .nav-divider {
    margin: 16px 0;
    border-top: 1px solid var(--teal-light);
  }

  .mobile-login { margin-bottom: 12px; }
  .mobile-language { margin-top: 6px; }
  .desktop-right { display: none !important; }
}

@media (min-width: 992px) {
  .mobile-login,
  .mobile-language,
  .nav-divider {
    display: none !important;
  }
}

/* ==========================================================================
   8. HERO LAYER & GLASSMORPHISM CARDS
   ========================================================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.hero-banner {
  position: relative;
  min-height: 680px;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(252, 106, 3, 0.03) 0%, rgba(19, 42, 44, 0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  min-height: 680px;
  display: flex;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 850;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 24px 70px rgba(19, 42, 44, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 28px;
}

.soft-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  box-shadow: 0 16px 45px rgba(19, 42, 44, 0.04);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.soft-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(252, 106, 3, 0.14);
}

/* ==========================================================================
   9. INDIVIDUAL PAGES (PRODUCTS, CALCULATOR & DETAIL LAYOUTS)
   ========================================================================== */
.category-heading h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.heading-line {
  width: 70px;
  height: 4px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.product-hero {
  padding: 100px 0 70px;
  background: linear-gradient(rgba(252, 106, 3, 0.04), rgba(132, 170, 173, 0.08));
}

.product-badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 50px;
  background: rgba(252, 106, 3, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--primary);
  border: 1px solid rgba(252, 106, 3, 0.3);
  font-weight: 600;
}

.hero-description {
  max-width: 650px;
  margin-top: 20px;
  font-size: 1.05rem;
  opacity: .95;
  color: var(--soft);
}

.product-card {
  background: #ffffff;
  border-radius: 16px;
  height: 100%;
  border: 1px solid var(--teal-light);
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(19, 42, 44, 0.03);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(252, 106, 3, 0.12);
}

.product-icon {
  width: 65px;
  height: 65px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  margin-bottom: 20px;
}

.product-detail-hero {
  min-height: 450px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}

.product-detail-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
}

.hero-content .col-lg-8p, .col-lg-9p, .col-lg-10p, .col-lg-11p, .col-lg-12p {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 40px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 50px rgba(19, 42, 44, 0.15);
}

.product-content-card,
.sidebar-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 12px 40px rgba(19, 42, 44, 0.04);
  border: 1px solid var(--border-light);
}

.sidebar-sticky, .sticky-sidebar {
  position: sticky;
  top: 100px;
  z-index: 10;
}

.apply-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 20px;
  padding: 30px;
}

.related-product {
  display: flex;
  gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid var(--sand-bg);
}

.related-product:last-child {
  border-bottom: none;
}

.related-product img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 12px;
}

.fact-card {
  background: #ffffff;
  padding: 24px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 35px rgba(19, 42, 44, 0.04);
  border: 1px solid var(--border-light);
}

.fact-card i {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 12px;
}

/* Tabs UI Customizing */
.product-tabs .nav-link {
  border-radius: 50px;
  padding: 10px 24px;
  margin-right: 8px;
  color: var(--text-muted);
  background: var(--sand-bg);
  font-weight: 600;
  border: none;
  transition: var(--transition-smooth);
}

.product-tabs .nav-link.active {
  background: var(--primary);
  color: #ffffff;
}

.tab-content {
  background: var(--soft);
  padding: 28px;
  border-radius: 20px;
  line-height: 1.75;
  border: 1px solid var(--border-light);
}

/* Form Systems for Calculators & Inquiries */
.calculator-card,
.inquiry-card,
.faq-card {
  background: #ffffff;
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 20px 45px rgba(19, 42, 44, 0.04);
  border: 1px solid var(--border-light);
}

.filter-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 12px 40px rgba(19, 42, 44, 0.04);
  border: 1px solid var(--border-light);
}

.filter-card .form-control,
.inquiry-card input,
.inquiry-card textarea {
  border-radius: 10px;
  padding: 12px 16px;
  border: 1px solid var(--teal-light);
  background-color: var(--soft);
}

.filter-card .form-control:focus,
.inquiry-card input:focus,
.inquiry-card textarea:focus {
  background-color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(252, 106, 3, 0.1);
  outline: none;
}

/* ==========================================================================
   10. NEWS SECTION & CAROUSEL MODULES
   ========================================================================== */
.news-card {
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(19, 42, 44, 0.03);
  transition: var(--transition-smooth);
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border-light);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(252, 106, 3, 0.12) !important;
}

.news-image {
  height: 230px;
  width: 100%;
  object-fit: cover;
}

.news-date {
  font-size: 13.5px;
  color: var(--text-muted);
}

.news-title {
  min-height: 52px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 700;
  color: var(--deep-navy);
}

.news-description {
  min-height: 66px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-muted);
}

/* Sliders Control Points Custom Styling */
.carousel-control-prev,
.carousel-control-next {
  width: 44px;
  height: 44px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.9;
  transition: var(--transition-smooth);
}

.carousel-control-prev { left: -22px; }
.carousel-control-next { right: -22px; }

.carousel-control-next:focus, 
.carousel-control-next:hover, 
.carousel-control-prev:focus, 
.carousel-control-prev:hover {
  background: var(--accent);
  opacity: 1;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  transition: var(--transition-smooth);
}

.swiper-pagination-bullet-active {
  background: var(--primary) !important;
  width: 24px;
  border-radius: 6px;
}

.swiper-button-next, .swiper-button-prev {    
  color: var(--primary);
  transition: var(--transition-smooth);
}

.swiper-button-next:hover, .swiper-button-prev:hover {    
  color: var(--accent);
}

/* ==========================================================================
   11. FOOTER & GLOBAL ANIMATIONS
   ========================================================================== */
footer {
  background: var(--deep-navy);
  color: var(--sand-bg);
  padding: 60px 0;
  margin-top: 80px;
  border-top: 4px solid var(--primary);
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   12. MOBILE VIEWPORTS MEDIA QUERIES (PATCHED BREAKPOINTS)
   ========================================================================== */
@media (max-width: 991px) {
  .sidebar-sticky {
    position: relative; 
    top: auto;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 0px 0;
  }
  
  .hero-banner, .hero-content {
    height: 380px;
    min-height: 380px;
  }

  .hero-content {
    padding: 0 16px;
    text-align: center;
    justify-content: center;
  }

  .hero-title {
    font-size: 2.1rem;
    color: #ffffff;
    line-height: 1.2;
  }

  .news-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 16px;
  }
  
  .carousel-control-prev { left: 4px; }
  .carousel-control-next { right: 4px; }
}

@media (max-width: 576px) {
  .hero-banner, .hero-content {
    height: 300px;
  }

  .hero-title {
    font-size: 1.7rem;
  }
}

/* ==========================================================================
   13. CUSTOM MOBILE HEADER SYSTEM (.mobile-header)
   ========================================================================== */
@media (max-width: 991px) {
  .mobile-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 9999;
    padding: 0 16px;
    box-shadow: 0 4px 20px rgba(19, 42, 44, 0.02);
  }

  .mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .mobile-header .navbar-logo {
    height: 44px !important;
    width: auto;
    object-fit: contain;
  }

  .mobile-header .com-kh-name {
    font-family: 'Moul', 'Noto Serif Khmer', sans-serif;
    font-size: 11px !important;
    color: var(--primary);
    line-height: 1.4;
  }
  
  .mobile-header .com-kh-name small {
    font-size: 15px !important;
    font-weight: 700;
    color: var(--primary);
  }

  .mobile-header .com-en-name {
    font-family: 'Roboto', sans-serif;
    font-size: 9px !important;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.2px;
  }

  .mobile-toggle {
    border: 1px solid var(--border-light);
    background-color: var(--soft);
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
  }

  .mobile-toggle:active, 
  .mobile-toggle:focus {
    outline: none;
    background-color: rgba(252, 106, 3, 0.08);
    color: var(--primary);
  }

  #mobileMenu {
    background: #ffffff;
    margin-top: 10px;
    border-top: 1px solid var(--border-light);
    padding-top: 15px;
  }

  .mobile-search {
    margin-bottom: 16px;
  }

  .mobile-search input {
    width: 100%;
    padding: 11px 16px;
    font-size: 14px;
    border: 1px solid var(--teal-light);
    background-color: var(--soft);
    border-radius: 10px;
    outline: none;
    box-sizing: border-box;
    transition: var(--transition-smooth);
  }

  .mobile-search input:focus {
    background-color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(252, 106, 3, 0.1);
  }

  .mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .mobile-menu > li > a {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    color: var(--deep-navy);
    font-weight: 600;
    font-size: 15px;
    border-radius: 10px;
    transition: var(--transition-smooth);
  }

  .mobile-menu > li > a:hover {
    color: var(--primary);
    background: rgba(252, 106, 3, 0.05);
  }

  .mobile-menu [data-bs-toggle="collapse"]:not(.collapsed) .sub-arrow {
    transform: rotate(180deg);
    color: var(--primary);
  }

  .sub-arrow {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
  }

  .product-dropdown {
    background: var(--soft);
    border-radius: 12px;
    padding: 16px;
    margin: 6px 0 12px 0;
    border: 1px solid var(--border-light);
  }

  .product-category-group {
    margin-bottom: 16px;
  }

  .product-category-group:last-child {
    margin-bottom: 0;
  }

  .category-title {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dark-slate);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    padding-left: 8px;
  }

  .product-sub-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .product-sub-menu a {
    display: block;
    padding: 8px 12px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: var(--transition-smooth);
  }

  .product-sub-menu a:hover {
    color: var(--primary);
    background: rgba(252, 106, 3, 0.08);
    padding-left: 16px;
  }
}

/* ==========================================================================
   FIX: MOBILE HEADER RECOVERY PATCH
   ========================================================================== */
@media (max-width: 991px) {
  .bank-topbar {
    display: none !important;
  }

  .site-navbar .container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }

  .site-navbar .city-brand {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .site-navbar .com-kh-name {
    font-size: 11px !important;
    line-height: 1.3 !important;
  }
  
  .site-navbar .com-kh-name small, 
  .site-navbar .com-kh-name .kh-highlight {
    font-size: 15px !important;
  }

  .site-navbar .com-en-name {
    font-size: 9px !important;
    letter-spacing: 0.2px !important;
  }

  .site-navbar .navbar-logo {
    height: 42px !important;
    width: auto;
  }

  .navbar-toggler {
    padding: 6px 10px !important;
    font-size: 1.1rem !important;
    border: 1px solid var(--border-light) !important;
    background-color: var(--soft) !important;
    border-radius: 8px !important;
  }
}

/* ==========================================================================
   MOBILE UTILITY INTEGRATION EXTENSION
   ========================================================================== */
@media (max-width: 991px) {
  .mobile-utility-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--soft);
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 14px;
    border: 1px solid var(--border-light);
  }

  .mobile-lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-lang-switch .lang-btn {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 2px 6px;
    transition: var(--transition-smooth);
  }

  .mobile-lang-switch .lang-btn.active {
    color: var(--primary);
  }

  .mobile-lang-switch .lang-divider {
    color: var(--teal-light);
    font-size: 12px;
  }

  .mobile-login-action {
    font-size: 13px;
    font-weight: 700;
    color: #fff !important;
    background: linear-gradient(135deg, var(--deep-navy), var(--primary-dark));
    padding: 6px 14px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(19, 42, 44, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .mobile-menu .menu-divider {
    height: 1px;
    background-color: var(--border-light);
    margin: 10px 4px;
  }

  .mobile-menu li a.utility-link {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
  }

  .mobile-menu li a.utility-link i {
    color: var(--dark-slate);
    width: 16px;
    text-align: center;
    font-size: 15px;
  }

  .mobile-menu li a.utility-link:hover i {
    color: var(--primary);
  }
}

/* ==========================================================================
   PRODUCT DETAIL PAGE BRANDING UPGRADE
   ========================================================================== */
.product-hero-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 0 120px 0;
  color: #ffffff;
  overflow: hidden;
}

.product-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(19, 42, 44, 0.95) 0%, rgba(78, 93, 96, 0.85) 60%, rgba(132, 170, 173, 0.7) 100%);
  z-index: 1;
}

.product-hero-banner .hero-content {
  position: relative;
  z-index: 2;
}

.product-badge-tag {
  display: inline-block;
  background-color: rgba(252, 106, 3, 0.12);
  color: var(--primary);
  border: 1px solid rgba(252, 106, 3, 0.3);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.product-hero-banner .hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 16px;
}

.product-hero-banner .hero-description {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 720px;
  margin-bottom: 32px;
}

.hero-buttons-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #fc6a03, #de5600);
  color: #ffffff !important;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  box-shadow: 0 4px 20px rgba(252, 106, 3, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(252, 106, 3, 0.4); }
.btn-hero-secondary:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.5); }

.product-main-image-frame {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(19, 42, 44, 0.05);
  border: 1px solid var(--teal-light);
}

.product-main-image-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.financial-fact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--teal-light);
  box-shadow: 0 4px 12px rgba(19, 42, 44, 0.01);
}

.financial-fact-card .icon-box {
  background: rgba(252, 106, 3, 0.08);
  color: var(--primary);
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.financial-fact-card .fact-info small {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 2px;
}
/* ==========================================================================
   5. Persistent Sidebar Element Component Rules
   ========================================================================== */
.sidebar-sticky-rail {
  position: sticky;
  top: 24px;
}

.sidebar-premium-card {
  background: #ffffff;
  border: 1px solid var(--teal-light);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(19, 42, 44, 0.02);
}

.sidebar-premium-card.conversion-apply-box {
  background: linear-gradient(135deg, var(--deep-navy) 0%, #1c3d40 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 16px 35px rgba(19, 42, 44, 0.12);
}

.conversion-apply-box h4 { 
  font-size: 20px; 
  font-weight: 700; 
  margin-bottom: 10px; 
  color: #ffffff;
}

.conversion-apply-box p { 
  font-size: 13px; 
  line-height: 1.5; 
  color: rgba(245, 238, 222, 0.85); /* Smooth warm sand contrast tint */
  margin-bottom: 20px; 
}

.btn-sidebar-action-apply {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(135deg, #fc6a03, #ff8c3a);
  color: #ffffff !important;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(252, 106, 3, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-sidebar-action-apply:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 10px 22px rgba(252, 106, 3, 0.45);
}

.sidebar-card-heading-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--deep-navy);
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sand-bg);
}

/* Related Items Loop Row Styles */
.related-products-feed-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feed-item-row-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px;
  border-radius: 10px;
  transition: var(--transition-smooth);
}

.feed-item-row-card:hover { 
  background-color: var(--soft); 
}

.feed-thumbnail {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--teal-light);
  flex-shrink: 0;
}

.feed-content-info h6 {
  margin: 0 0 4px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--deep-navy);
  line-height: 1.4;
}

.feed-detail-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--dark-slate);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.feed-detail-link:hover { 
  color: var(--primary); 
}

/* Social Icons Layout Section */
.social-share-flex-wrap {
  display: flex;
  gap: 10px;
}

.share-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.share-icon-btn:hover { 
  transform: translateY(-2px); 
  opacity: 0.95; 
}

.facebook-color { background-color: #1877f2; }
.telegram-color { background-color: #26a5e4; }

/* ==========================================================================
   RESPONSIVE LAYOUT RESPONSIVENESS OVERRIDES
   ========================================================================== */
@media (max-width: 991px) {
  .product-hero-banner { padding: 60px 0; text-align: center; }
  .product-hero-banner .hero-description { margin-left: auto; margin-right: auto; }
  .hero-buttons-group { justify-content: center; }
  .product-hero-banner .hero-title { font-size: 32px; }
  .product-details-content-card { padding: 20px; }
  .sidebar-sticky-rail { position: relative; top: 0; }
}

@media (max-width: 575px) {
  .product-hero-banner .hero-title { font-size: 26px; }
  .hero-buttons-group a { width: 100%; justify-content: center; }
  .custom-product-tabs .nav-link { font-size: 12px; padding: 10px 8px; }
}
/* ==========================================================================
   Mobile Right-Slide Panel Variables & Layout System
   ========================================================================== */
#mobileMenuPanel, #mobileMenuOverlay {
    --neutral-dark: #1e293b;     /* Match Charcoal Blueprint Theme */
    --brand-primary: #065f46;    /* Deep Corporate Green Token */
    --brand-accent: #10b981;     /* Active Mint Accent Highlight */
    /*--drawer-w: 320px;*/
}

/* 1. Base Header Adjustments */
.mobile-header .mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}
.mobile-toggle {
    background: none;
    border: none;
    font-size: 1.35rem;
    color: var(--neutral-dark);
    padding: 0.5rem;
    cursor: pointer;
}

/* 2. Slider Frame Panel Layer Rules */
.mobile-right-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: var(--drawer-w);
    height: 100vh;
    background-color: #ffffff;
    z-index: 1100; /* Overrides floating navbar frameworks safely */
    box-shadow: -6px 0 30px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    
    /* Hardware-Accelerated Animation Pipeline Settings */
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-right-drawer.is-open {
    transform: translateX(0);
}

/* Scroll area constraint safely enclosing active drop lists */
.drawer-scroll-body {
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 3rem;
}

/* 3. Panel Functional Interface Layout Blocks */
.drawer-header-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background-color: #ffffff;
    color: #ffffff;
}
.drawer-branding-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.075em;
}
.drawer-close-btn {
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.2s;
}
.drawer-close-btn:hover { color: #ffffff; }

/* 4. Menu Item Components Styles Integration mapping your layout */
.mobile-utility-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f8fafc;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}
.mobile-lang-switch .lang-btn {
    text-decoration: none;
    color: #64748b;
    font-weight: 700;
    font-size: 0.85rem;
}
.mobile-lang-switch .lang-btn.active { color: var(--brand-primary); }
.mobile-lang-switch .lang-divider { margin: 0 0.4rem; color: #cbd5e1; }
.mobile-login-action {
    text-decoration: none;
    color: var(--neutral-dark);
    font-size: 0.85rem;
    font-weight: 700;
}

.mobile-search { padding: 1.25rem 1.5rem 0.5rem 1.5rem; }
.mobile-search input {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background-color: #f8fafc;
    font-size: 0.9rem;
}

.mobile-menu {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}
.mobile-menu li a {
    display: block;
    padding: 0.85rem 1.5rem;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.mobile-menu li a:hover, .mobile-menu li a.dropdown-toggle-link[aria-expanded="true"] {
    background-color: #f8fafc;
    color: var(--brand-primary);
}

/* Custom Category Dropdown Inner Formatting */
.product-dropdown { background-color: #f8fafc; padding: 0.5rem 0; }
.product-category-group { padding: 0.5rem 1.5rem; }
.category-title {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}
.product-sub-menu a {
    padding: 0.45rem 0.5rem !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: #475569 !important;
}
.product-sub-menu a:hover { color: var(--brand-accent) !important; background: none !important; }

.menu-divider { height: 1px; background-color: #e2e8f0; margin: 0.75rem 1.5rem; }
.utility-link { color: #64748b !important; font-size: 0.9rem !important; }

/* 5. Mask Overlay Background Component Dimmer Elements */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    z-index: 1090;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mobile-drawer-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Body context scroll suspension token flag toggler template rules */
body.drawer-open-lock {
    overflow: hidden !important;
}
/* Update these definitions inside your <style> block */

.mobile-right-drawer {
    position: fixed !important;
    top: 0 !important;             /* Pulls it directly to the absolute top of the screen */
    right: 0 !important;
    width: 100% !important;
    max-width: var(--drawer-w) !important;
    height: 100vh !important;       /* Forces complete top-to-bottom coverage */
    background-color: #ffffff !important;
    z-index: 99999 !important;      /* Forces it completely above the branding header */
    box-shadow: -6px 0 30px rgba(15, 23, 42, 0.15) !important;
    display: flex !important;
    flex-direction: column !important;
    
    /* Animation Curve Pipeline */
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.mobile-right-drawer.is-open {
    transform: translateX(0) !important;
}

.mobile-drawer-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(15, 23, 42, 0.5) !important;
    backdrop-filter: blur(2px) !important;
    z-index: 99998 !important;     /* Sits exactly underneath the open panel */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease !important;
}

.mobile-drawer-overlay.is-visible {
    opacity: 1 !important;
    pointer-events: auto !important;
}