/**
 * COMPONENT CSS - VILEGE FORKLIFTS THEME (TẦNG 2)
 * Nơi lưu trữ:
 * 1. Quan hệ selector cha-con (.parent .child, .card > .title, .space-y-* > *)
 * 2. Ghép nhiều class (.className1.className2, .btn.btn-primary)
 * 3. Hover cha tác động con (.parent:hover .child, .group:hover .group-hover:*)
 * 4. Background Gradient phức tạp, Glassmorphism, Box-shadow đa tầng
 * 5. Multi-line Clamp (.line-clamp-1, .line-clamp-2)
 * 6. Menu Dropdown đa cấp & Mobile Navigation Drawer
 * 7. Bảng thông số kỹ thuật xe nâng (Forklift Spec Table)
 * 8. Form nhận tư vấn báo giá nhanh (Quotation & Contact Forms)
 * 9. Tabs chi tiết sản phẩm (Product Spec Tabs)
 * 10. Swiper navigation arrows, pagination bullets custom
 * 11. WooCommerce Custom Overrides (Cart, Checkout, Single Product, Badges)
 */

/* ==========================================================================
   1. QUAN HỆ CON SPACE-Y & GROUP HOVER
   ========================================================================== */
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.625rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }

/* Group Hover (Hover Cha tác động Con) */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

.group:hover .group-hover\:text-primary {
  color: var(--color-primary);
}

.group:hover .group-hover\:underline {
  text-decoration: underline;
}

/* Multi-line Truncation (Line Clamp) */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   SEMANTIC CONTAINERS & ACCESSIBILITY
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
}

.header-inner {
  height: 5rem;
}

.site-branding {
  display: flex;
  align-items: center;
}

.site-title {
  text-decoration: none;
  letter-spacing: -0.025em;
}

.cart-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-count-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.25rem;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-slate-600);
}

.breadcrumb a {
  color: var(--color-slate-600);
  transition: color 0.15s ease;
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 250ms;
}

/* ==========================================================================
   2. BACKGROUND GRADIENTS & SPECIAL INDUSTRIAL STYLES
   ========================================================================== */
.bg-gradient-hero {
  background: linear-gradient(135deg, rgba(12, 33, 86, 0.94) 0%, rgba(15, 23, 42, 0.90) 55%, rgba(15, 23, 42, 0.78) 100%),
              radial-gradient(circle at 80% 25%, rgba(216, 35, 42, 0.28) 0%, transparent 60%),
              url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

/* Hero Slider & Banner Custom Styles */
.hero-slider-section {
  position: relative;
  background-color: #07132b;
}

.hero-slide {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

@media (min-width: 640px) {
  .hero-slide {
    min-height: 580px;
  }
}

@media (min-width: 1024px) {
  .hero-slide {
    min-height: 640px;
  }
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  transition: transform 6s ease-out;
}

.swiper-slide-active .hero-slide-bg img {
  transform: scale(1);
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 20, 52, 0.96) 0%, rgba(12, 33, 86, 0.88) 50%, rgba(15, 23, 42, 0.65) 100%);
}

.hero-slide-overlay-radial {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(216, 35, 42, 0.22) 0%, transparent 60%);
}

.hero-slide-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
}

@media (min-width: 1024px) {
  .hero-slide-content {
    padding-top: 4.5rem;
    padding-bottom: 5.5rem;
  }
}

.hero-badge-floating {
  position: absolute;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  z-index: 2;
  white-space: nowrap;
}

.hero-swiper .swiper-pagination {
  bottom: 1.5rem !important;
  z-index: 20;
}

.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  z-index: 20;
}

.bg-gradient-pine,
.bg-gradient-secondary {
  background: linear-gradient(145deg, #1B3F93 0%, #0C2156 100%);
}

.hero-forklift-showcase img {
  filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.75));
}

.bg-gradient-pine-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.bg-gradient-pine-card:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-4px);
}

.glass-header {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid #f1f5f9;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Site Logo Image */
.site-logo-img,
.custom-logo {
  max-height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

@media (min-width: 640px) {
  .site-logo-img,
  .custom-logo {
    max-height: 64px;
  }
}

.site-logo-footer {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
  background-color: #ffffff;
  padding: 4px 8px;
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   3. NÚT BẤM VÀ MULTI-CLASS SELECTORS (.className1.className2)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.25rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn.btn-primary:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 4px 14px rgba(217, 35, 45, 0.35);
  transform: translateY(-1px);
}

.btn.btn-secondary {
  background-color: var(--color-secondary);
  color: #ffffff;
}

.btn.btn-secondary:hover {
  background-color: var(--color-secondary-hover);
  box-shadow: 0 4px 14px rgba(13, 64, 46, 0.35);
}

.btn.btn-success {
  background-color: var(--color-success);
  color: #ffffff;
}

.btn.btn-success:hover {
  background-color: #15803d;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

.btn.btn-zalo {
  background-color: var(--color-zalo);
  color: #ffffff;
}

.btn.btn-zalo:hover {
  background-color: #0052cc;
  box-shadow: 0 4px 14px rgba(0, 104, 255, 0.35);
}

.btn.btn-outline {
  background-color: transparent;
  border-color: var(--color-slate-300);
  color: var(--color-slate-700);
}

.btn.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: var(--color-slate-50);
}

.btn.btn-outline-white {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.8);
  color: #ffffff;
}

.btn.btn-outline-white:hover {
  background-color: #ffffff;
  color: var(--color-slate-900);
  border-color: #ffffff;
}

.btn.btn-pill {
  border-radius: var(--radius-full);
}

.btn.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.btn.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1.0625rem;
}

/* ==========================================================================
   4. MENU DESKTOP & SUBMENU DROPDOWN
   ========================================================================== */
.site-navigation .nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-navigation .nav-menu > li {
  position: relative;
}

.site-navigation .nav-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-slate-700);
  transition: color 0.2s ease;
}

.site-navigation .nav-menu > li:hover > a,
.site-navigation .nav-menu > li.current-menu-item > a,
.site-navigation .nav-menu > li.current-menu-ancestor > a {
  color: var(--color-primary);
}

/* Submenu Dropdown */
.site-navigation .nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background-color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 0.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--color-slate-100);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 50;
  list-style: none;
  margin: 0;
}

.site-navigation .nav-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-navigation .nav-menu .sub-menu li a {
  display: block;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: var(--color-slate-700);
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
}

.site-navigation .nav-menu .sub-menu li a:hover {
  background-color: var(--color-slate-50);
  color: var(--color-primary);
  padding-left: 1.25rem;
}

/* ==========================================================================
   5. MOBILE NAVIGATION DRAWER & BACKDROP
   ========================================================================== */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background-color: #ffffff;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 25px rgba(0, 0, 0, 0.15);
}

.mobile-nav-drawer.is-open {
  transform: translateX(0);
}

.mobile-navigation .mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-navigation .mobile-menu-list li {
  border-bottom: 1px solid var(--color-slate-100);
}

.mobile-navigation .mobile-menu-list li a {
  display: block;
  padding: 0.75rem 0.5rem;
  color: var(--color-slate-800);
  font-weight: 600;
  font-size: 0.9375rem;
}

.mobile-navigation .mobile-menu-list li.menu-item-has-children {
  position: relative;
}

.mobile-navigation .mobile-submenu-toggle {
  position: absolute;
  top: 0.625rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.375rem;
  color: var(--color-slate-500);
}

.mobile-navigation .sub-menu {
  display: none;
  background-color: var(--color-slate-50);
  padding: 0.25rem 0 0.5rem 1rem;
  list-style: none;
  margin: 0;
}

.mobile-navigation li.menu-item-has-children.is-expanded > .sub-menu {
  display: block;
}

/* ==========================================================================
   6. PRODUCT CARDS & FORKLIFT SPECIFICATIONS
   ========================================================================== */
.product-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border: 1px solid var(--color-slate-200);
  background-color: #ffffff;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.1), 0 4px 8px -4px rgba(0, 0, 0, 0.06);
  border-color: rgba(217, 35, 45, 0.3);
}

.product-card .thumbnail-wrapper img {
  transition: transform 0.4s ease;
}

.product-card:hover .thumbnail-wrapper img {
  transform: scale(1.05);
}

/* Forklift Specs in Card */
.forklift-spec-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  background-color: var(--color-slate-50);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-slate-100);
}

.forklift-spec-item {
  display: flex;
  flex-direction: column;
}

.forklift-spec-item .label {
  color: var(--color-slate-600);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.forklift-spec-item .value {
  color: var(--color-slate-800);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Category Card */
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-slate-200);
  background-color: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--color-primary);
}

.category-card img {
  transition: transform 0.4s ease;
}

.category-card:hover img {
  transform: scale(1.08);
}

/* ==========================================================================
   7. BẢNG THÔNG SỐ KỸ THUẬT (SPEC TABLE) TRÊN SINGLE PRODUCT
   ========================================================================== */
.spec-table-container {
  overflow-x: auto;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  background-color: #ffffff;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.spec-table tr:nth-child(even) {
  background-color: var(--color-slate-50);
}

.spec-table th,
.spec-table td {
  padding: 0.75rem 1rem;
  text-align: left;
}

.spec-table th {
  font-weight: 600;
  color: var(--color-slate-600);
  width: 40%;
  border-right: 1px solid var(--color-slate-200);
}

.spec-table td {
  font-weight: 700;
  color: var(--color-slate-900);
}

/* Product Tabs */
.product-tab-btn {
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-slate-600);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
}

.product-tab-btn:hover {
  color: var(--color-primary);
}

.product-tab-btn.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.product-tab-content {
  display: none;
}

.product-tab-content.is-active {
  display: block;
}

/* ==========================================================================
   8. FORM TƯ VẤN & BÁO GIÁ (QUOTATION FORMS)
   ========================================================================== */
.form-card {
  background-color: #ffffff;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-slate-700);
  margin-bottom: 0.375rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--color-slate-300);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  color: var(--color-slate-800);
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(217, 35, 45, 0.12);
}

/* ==========================================================================
   9. SWIPER CONTROLS
   ========================================================================== */

.swiper-button-prev,
.swiper-button-next {
  width: 42px;
  height: 42px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-full);
  color: var(--color-slate-800);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.swiper-button-prev:after,
.swiper-button-next:after {
  font-size: 1rem;
  font-weight: bold;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.6);
  opacity: 1;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: var(--color-primary);
  width: 24px;
  border-radius: 9999px;
}

/* Thumbnail Swiper for Single Product */
.product-thumbs-swiper .swiper-slide {
  opacity: 0.5;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s ease;
}

.product-thumbs-swiper .swiper-slide-thumb-active {
  opacity: 1;
  border-color: var(--color-primary);
}

/* ==========================================================================
   10. PROSE & ARTICLE TYPOGRAPHY
   ========================================================================== */
.prose {
  color: var(--color-slate-700);
  line-height: 1.75;
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-slate-900);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-slate-900);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 1rem 1.25rem;
  background-color: var(--color-slate-50);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-style: italic;
  margin: 1.5rem 0;
}

.prose ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.prose ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.prose img {
  border-radius: var(--radius-xl);
  margin: 1.5rem auto;
}

/* ==========================================================================
   11. WOOCOMMERCE ESSENTIAL OVERRIDES
   ========================================================================== */
.woocommerce .woocommerce-pagination ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  padding: 0;
}

.woocommerce .woocommerce-pagination ul li {
  border: none;
}

.woocommerce .woocommerce-pagination ul li a,
.woocommerce .woocommerce-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid var(--color-slate-200);
  color: var(--color-slate-700);
}

.woocommerce .woocommerce-pagination ul li span.current {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.woocommerce .woocommerce-pagination ul li a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: var(--color-slate-50);
}

/* ==========================================================================
   FLOATING ACTION BUTTONS (CALL, ZALO, MESSENGER, BACK TO TOP)
   ========================================================================== */
.floating-actions-container {
  z-index: 99;
}

.floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.3s ease;
  position: relative;
  cursor: pointer;
  text-decoration: none;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* 1. Nút Gọi Hotline đỏ với hiệu ứng Ripple Pulse */
.floating-btn-call {
  background-color: var(--color-primary);
}

.call-ripple {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background-color: var(--color-primary);
  opacity: 0.6;
  animation: call-pulse-ring 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  z-index: 0;
}

@keyframes call-pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

/* 2. Nút Zalo */
.floating-btn-zalo {
  background-color: #0068ff;
}

/* 3. Nút Facebook Messenger */
.floating-btn-messenger {
  background: linear-gradient(135deg, #00B2FF 0%, #006AFF 50%, #9B00E8 100%);
}

/* 4. Nút Back To Top */
.floating-btn-top {
  background-color: #1e293b;
  border: 1px solid #334155;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.floating-btn-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-btn-top:hover {
  background-color: #0f172a;
}

/* Tooltip trên desktop */
.floating-tooltip {
  position: absolute;
  right: 58px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background-color: #0f172a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.floating-item:hover .floating-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.animate-bounce-subtle {
  animation: bounce-subtle 2s infinite ease-in-out;
}

@keyframes bounce-subtle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* ==========================================================================
   GTRANSLATE LANGUAGE SWITCHER IN HEADER
   ========================================================================== */
.header-gtranslate {
  position: relative;
  z-index: 50;
  display: inline-flex;
  align-items: center;
}

.header-gtranslate .gtranslate_wrapper {
  display: inline-flex;
  align-items: center;
}

/* Dropdown with flags container */
.header-gtranslate .gt_switcher {
  border: 1px solid var(--color-slate-200);
  border-radius: 9999px;
  background-color: #ffffff;
  padding: 2px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-slate-700);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  position: relative;
}

.header-gtranslate .gt_switcher:hover {
  border-color: var(--color-slate-300);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.header-gtranslate .gt_switcher .gt_selected a {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--color-slate-700);
  padding: 4px 4px;
}

.header-gtranslate .gt_switcher .gt_selected a:hover {
  color: var(--color-primary);
}

.header-gtranslate .gt_switcher .gt_option {
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-slate-200);
  background-color: #ffffff;
  z-index: 9999;
  overflow: hidden;
  margin-top: 4px;
}

.header-gtranslate .gt_switcher .gt_option a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-slate-700);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.header-gtranslate .gt_switcher .gt_option a:hover {
  background-color: var(--color-slate-100);
  color: var(--color-primary);
}

/* Trường hợp GTranslate dùng native select */
.header-gtranslate select.gt_selector,
.header-gtranslate .goog-te-combo {
  border: 1px solid var(--color-slate-200);
  border-radius: 9999px;
  background-color: #ffffff;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-slate-700);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
  line-height: 1.4;
}

.header-gtranslate select.gt_selector:focus {
  border-color: var(--color-primary);
}

/* Trong Mobile Navigation Drawer */
.mobile-drawer-lang .header-gtranslate {
  display: inline-flex;
}

.mobile-drawer-lang .gt_switcher {
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 12px;
}
