/* ==========================================================================
   IN AN SAI GON & MAY DONG PHUC - DEMO BOOTSTRAP 5 STYLESHEET
   Domain: inansaigoncomvn368.mbws.vn
   Reference: dongphucanphu.vn
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Phudu:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary-color: #0f4c81;
  --primary-dark: #0a355c;
  --primary-light: #e8f1f8;
  --secondary-color: #c2410c;
  --secondary-hover: #9a3412;
  --dark-color: #1e293b;
  --gray-bg: #f8fafc;
  --border-color: #e2e8f0;
  --font-main: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Phudu', 'Be Vietnam Pro', cursive, sans-serif;
}

/* ==========================================================================
   TYPOGRAPHY RULES (Phudu for size > 17px, Be Vietnam Pro for size <= 17px)
   ========================================================================== */

/* Headings and elements with size > 17px (> 1.0625rem) use Phudu */
h1, h2, h3, h4, h5,
.h1, .h2, .h3, .h4, .h5,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.fs-1, .fs-2, .fs-3, .fs-4, .fs-5,
.section-title h2,
.widget-title,
.brand-text h1,
.main-footer h5,
.form-tu-van-header h4,
.form-tu-van-header h5,
.poster-card-title,
.font-phudu,
.font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

/* Anti-drop text wrapping rules for mobile & responsive readability */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.section-title h2,
.poster-card-title,
.product-card-title,
.quick-badge-title {
  text-wrap: balance;
}

p,
.poster-card-desc,
.quick-badge-desc {
  text-wrap: pretty;
}

/* Inherit Phudu for nested inline links and spans inside headings */
h1 a, h2 a, h3 a, h4 a, h5 a,
.h1 a, .h2 a, .h3 a, .h4 a, .h5 a,
h1 span, h2 span, h3 span, h4 span, h5 span,
.h1 span, .h2 span, .h3 span, .h4 span, .h5 span {
  font-family: inherit;
}

/* Small text & Body (size <= 17px) uses Be Vietnam Pro */
body {
  font-family: var(--font-main);
  font-size: 15px; /* Crisp base size <= 17px */
  color: #334155;
  background-color: #ffffff;
  overflow-x: hidden;
}

/* h6 and .fs-6 default to 16px (<= 17px), keeping Be Vietnam Pro */
h6, .h6, .fs-6 {
  font-family: var(--font-main);
}

.font-bevietnam,
.font-body {
  font-family: var(--font-main) !important;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.25s ease-in-out;
}

a:hover {
  color: var(--secondary-color);
}

/* === TOP BAR === */
.top-bar {
  background: #f1f5f9;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-color);
  padding: 6px 0;
}

.top-bar .info-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #334155;
  text-decoration: none;
  font-weight: 500;
}

.top-bar .info-item:hover {
  color: var(--primary-color);
}

.top-bar .info-item i {
  color: var(--primary-color);
}

/* === HEADER & NAVBAR === */
.main-header {
  padding: 12px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.brand-logo img {
  height: 55px;
  object-fit: contain;
}

.brand-text h1 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 0;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.brand-text p {
  font-size: 0.75rem;
  margin: 0;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.brand-text .badge,
.brand-badge-pet {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 10px !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0.5px !important;
  vertical-align: middle !important;
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.25) !important;
}

@media (max-width: 576px) {
  .brand-logo img {
    height: 42px !important;
    width: 42px !important;
  }
  .brand-text h1 {
    font-size: 1.05rem;
    letter-spacing: -0.3px;
  }
  .brand-text p {
    font-size: 0.62rem;
    letter-spacing: 0;
  }
}

.navbar-custom {
  background: var(--primary-color);
  padding: 0;
}

.navbar-custom .nav-link {
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 14px !important;
  text-transform: uppercase;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

@media (min-width: 992px) and (max-width: 1200px) {
  .navbar-custom .nav-link {
    font-size: 0.84rem;
    padding: 10px 8px !important;
  }
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-item.active .nav-link {
  background-color: var(--primary-dark);
  color: #ffd166 !important;
}

.dropdown-menu {
  border-radius: 4px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  padding: 8px 0;
}

.dropdown-item {
  font-size: 0.9rem;
  padding: 8px 20px;
  font-weight: 500;
}

.dropdown-item:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

/* === HERO BANNER (NO CLIPPING, CRISP NATURAL SCALING) === */
.hero-banner-wrap {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  overflow: visible; /* NEVER crop banner text or contact bar */
}

.hero-banner-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 4px;
}

/* === HERO CAROUSEL === */
.hero-slider .carousel-item {
  height: 480px;
  background-color: #0b192c;
}

.hero-slider .carousel-item img {
  object-fit: contain;
  height: 100%;
  width: 100%;
}

.carousel-caption-custom {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 8%;
  max-width: 600px;
  text-align: left;
  z-index: 10;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  padding: 30px;
  border-radius: 4px;
}

/* Hero Action Badges - 10 Core Services Grid */
.quick-badges-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.quick-badge-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none !important;
}

.quick-badge-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 76, 129, 0.12) !important;
  border-color: #93c5fd !important;
}

.quick-badge-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.quick-badge-content {
  min-width: 0;
  flex: 1;
}

.quick-badge-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-badge-desc {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 991.98px) {
  .quick-badges-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

@media (max-width: 576px) {
  .quick-badges-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .quick-badge-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 2px !important;
    padding: 8px 8px !important;
  }
  
  .quick-badge-icon {
    font-size: 1.25rem !important;
    margin-bottom: 2px;
  }

  .quick-badge-title {
    font-size: 0.72rem !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
  }

  .quick-badge-desc {
    font-size: 0.65rem !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
  }
}

/* === COMMITMENT CARDS (CHÍNH SÁCH 3Đ) === */
.features-section {
  margin-top: -30px;
  position: relative;
  z-index: 20;
}

.feature-box {
  background: #ffffff;
  border-radius: 4px;
  padding: 24px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
  border-color: var(--primary-color);
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  background: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* === SECTION HEADERS === */
.section-title {
  position: relative;
  margin-bottom: 2rem;
}

.section-title h2 {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.section-title .title-bar {
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.section-title p {
  color: #64748b;
  font-size: 0.95rem;
}

/* === CATEGORY CARD === */
.category-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 16px;
  text-align: center;
  transition: all 0.3s ease;
  display: block;
}

.category-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 20px rgba(15, 76, 129, 0.12);
  transform: translateY(-4px);
}

.category-card .cat-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  border-radius: 4px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.category-card:hover .cat-icon {
  background: var(--primary-color);
  color: #ffffff;
}

.category-card h6 {
  font-weight: 600;
  color: var(--dark-color);
  margin: 0;
  font-size: 0.95rem;
}

/* === PRODUCT CARD === */
.product-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border-color: #cbd5e1;
  transform: translateY(-4px);
}

.product-img-wrap {
  position: relative;
  overflow: hidden;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}

.product-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* Full item shown, never cropped! */
  padding: 8px;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.06);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--secondary-color);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  z-index: 2;
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-cat {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--dark-color);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
}

.product-title a {
  color: var(--dark-color);
}

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

.product-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: #dc2626;
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.btn-detail {
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* === FORM BIỂU MẪU NÂNG CAO (THEO HÌNH YÊU CẦU: TƯ VẤN MAY ĐO) === */
.form-tu-van-may-do {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  overflow: hidden;
}

.form-tu-van-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #ffffff;
  padding: 16px 20px;
  text-align: center;
}

.form-tu-van-header h4 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.form-tu-van-header p {
  margin: 4px 0 0 0;
  font-size: 0.85rem;
  opacity: 0.9;
}

.form-tu-van-body {
  padding: 24px;
}

.form-tu-van-body .form-control {
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.form-tu-van-body .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.15);
}

.form-tu-van-body label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.btn-kich-cau {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-hover));
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px;
  border: none;
  border-radius: 4px;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-kich-cau:hover {
  background: linear-gradient(135deg, var(--secondary-hover), #c2410c);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
}

/* === SIDEBAR WIDGETS === */
.sidebar-widget {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 24px;
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  border-bottom: 1px dashed var(--border-color);
}

.category-list li:last-child {
  border-bottom: none;
}

.category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 500;
}

.category-list a:hover {
  color: var(--primary-color);
  padding-left: 6px;
}

.category-list a .badge {
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-size: 0.75rem;
}

/* === BANNER PROMO GRID === */
.promo-banner {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.promo-banner:hover {
  transform: scale(1.02);
}

.promo-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* === FOOTER === */
.main-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding-top: 50px;
  font-size: 0.92rem;
}

.main-footer h5 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.main-footer h5::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-contact li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact i {
  color: var(--secondary-color);
  font-size: 1.1rem;
  margin-top: 2px;
}

.footer-bottom {
  background-color: #020617;
  padding: 16px 0;
  font-size: 0.85rem;
  border-top: 1px solid #1e293b;
  color: #94a3b8;
}

.footer-bottom p {
  color: #94a3b8 !important;
}

/* === FLOATING QUICK CONTACT BAR === */
.floating-contact {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.floating-btn {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.4rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
  position: relative;
}

.floating-btn.btn-call {
  background: #10b981;
  animation: pulse-green 2s infinite;
}

.floating-btn.btn-zalo {
  background: #0284c7;
}

.floating-btn:hover {
  transform: scale(1.08);
  color: #ffffff;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* === POPUP KÍCH CẦU MODAL === */
.popup-kich-cau .modal-content {
  border-radius: 6px;
  border: none;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.popup-banner-side {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #fff;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.popup-form-side {
  padding: 35px 30px;
}


/* === ENHANCED STYLES FOR IN AN SAI GON & SAIGON TEE === */

/* Form Visual Top (Clean styling) */
.form-visual-top {
  display: none; /* Hide cropped torso banner in favor of clean high-converting header */
}

/* Service Poster Cards - Full Uncropped View */
.poster-card {
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.poster-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(15, 76, 129, 0.12);
  border-color: var(--primary-color);
}

.poster-card-img-wrap {
  position: relative;
  overflow: hidden;
  padding-top: 100%; /* Square 1:1 */
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}

.poster-card-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* Full poster visible without clipping! */
  padding: 6px;
  transition: transform 0.4s ease;
}

.poster-card:hover .poster-card-img-wrap img {
  transform: scale(1.04);
}

.poster-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.poster-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 6px;
}

.poster-card-desc {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 12px;
  flex-grow: 1;
}

/* Factory Machinery Gallery */
.factory-gallery-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  height: 220px;
  transition: all 0.3s ease;
}

.factory-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.factory-gallery-card:hover img {
  transform: scale(1.05);
}

.factory-gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15, 76, 129, 0.95), transparent);
  color: #ffffff;
  padding: 20px 14px 10px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Video Showcase Card */
.video-showcase-box {
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.video-showcase-box video {
  width: 100%;
  max-height: 380px;
  background: #000;
  display: block;
}

/* Floating Hotline Shake */
@keyframes shakePhone {
  0%, 100% { transform: rotate(0deg); }
  20%, 60% { transform: rotate(-15deg); }
  40%, 80% { transform: rotate(15deg); }
}

.btn-call i {
  animation: shakePhone 2s infinite ease-in-out;
}

/* Mobile Responsive Improvements (UX/UI Fixes) */
@media (max-width: 576px) {
  .floating-contact {
    bottom: 16px;
    right: 14px;
    gap: 8px;
    z-index: 990;
  }
  .floating-btn {
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }
  .popup-banner-side {
    padding: 24px 20px !important;
  }
  .popup-form-side {
    padding: 24px 20px !important;
  }
  .form-visual-badge-overlay {
    font-size: 0.72rem;
    padding: 5px 12px;
    white-space: normal;
    max-width: 92%;
    bottom: 8px;
  }
  .form-tu-van-header h4 {
    font-size: 1.1rem;
  }
  .form-tu-van-body {
    padding: 16px 14px;
  }
}

/* Unified Gold Luxury Icon Discs for Footer Contact */
.footer-icon-disc {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.footer-icon-disc svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.benefit-check-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 4px;
  background: rgba(251, 191, 36, 0.2);
  border: 1.5px solid #fbbf24;
  color: #fbbf24;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.25);
}

.benefit-check-badge svg {
  width: 16px;
  height: 16px;
}

/* Footer Styling - High Contrast & High Visibility */
.main-footer {
  background-color: #0c1322;
  color: #cbd5e1;
  border-top: 3px solid var(--primary-color);
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.footer-logo-img {
  height: 52px;
  width: 52px;
  object-fit: contain;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.footer-about-text {
  color: #e2e8f0 !important;
  font-size: 0.9rem;
  line-height: 1.65;
  margin-top: 12px;
}

.footer-assurance-box {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 4px;
  padding: 10px 12px;
  color: #cbd5e1;
  font-size: 0.82rem;
  line-height: 1.45;
}

.footer-contact li {
  color: #e2e8f0;
  margin-bottom: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.footer-contact li:hover .footer-icon-disc {
  background: #fbbf24;
  color: #0c1322;
  transform: scale(1.12);
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.55);
}

.footer-contact li strong {
  color: #ffffff;
}

.footer-contact a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: #fbbf24;
  text-decoration: underline;
}

.footer-link {
  color: #cbd5e1 !important;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
  padding: 2px 0;
}

.footer-link:hover {
  color: #fbbf24 !important;
  transform: translateX(4px);
}

/* Floating contact with official SVGs */
.floating-contact {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  text-decoration: none;
}

.floating-btn:hover {
  transform: scale(1.12);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.floating-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.floating-btn:hover::after {
  opacity: 1;
  visibility: visible;
}

.floating-btn.btn-call {
  background: linear-gradient(135deg, #10b981, #059669);
  border: 2.5px solid #ffffff;
  animation: pulse-green 2s infinite;
}

.floating-btn.btn-call svg {
  width: 24px;
  height: 24px;
  animation: shakePhone 2.5s infinite ease-in-out;
}

.floating-btn.btn-zalo {
  background: #0068ff;
  border: 2.5px solid #ffffff;
}

.floating-btn.btn-zalo svg {
  width: 32px;
  height: 32px;
}

.floating-btn.btn-messenger {
  background: linear-gradient(135deg, #00c6ff, #0078ff, #a033ff);
  border: 2.5px solid #ffffff;
}

.floating-btn.btn-messenger svg {
  width: 26px;
  height: 26px;
}

.floating-btn.btn-maps {
  background: #ea4335;
  border: 2.5px solid #ffffff;
}

.floating-btn.btn-maps svg {
  width: 24px;
  height: 24px;
}

/* Mobile bottom action bar - Customer reference */
.mobile-bottom-bar {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 68px !important;
  }
  
  .floating-contact {
    display: none !important;
  }

  .mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    border-top: none;
    z-index: 1060;
    align-items: center;
    justify-content: space-around;
    padding: 4px 6px 4px;
    padding-bottom: calc(4px + env(safe-area-inset-bottom, 0px));
  }

  .bottom-bar-waves {
    position: absolute;
    left: 0;
    right: 0;
    top: -19px;
    height: 20px;
    pointer-events: none;
    overflow: visible;
    z-index: 2;
  }

  .bottom-bar-wave-svg {
    display: block;
    width: 100%;
    height: 20px;
    overflow: visible;
    filter: drop-shadow(0 -2px 5px rgba(0, 0, 0, 0.04));
    animation: waveGradientShift 10s ease-in-out infinite;
  }

  .wave-line-1 {
    animation: waveFloat1 6s ease-in-out infinite;
  }

  .wave-line-2 {
    animation: waveFloat2 8s ease-in-out infinite;
  }

  @keyframes waveFloat1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-2px); }
  }

  @keyframes waveFloat2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(2px); }
  }

  @keyframes waveGradientShift {
    0% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(15deg); }
    100% { filter: hue-rotate(0deg); }
  }

  @media (prefers-reduced-motion: reduce) {
    .wave-line-1,
    .wave-line-2,
    .bottom-bar-wave-svg {
      animation: none !important;
    }
  }

  .mobile-bottom-item {
    flex: 1 1 0 !important;
    width: 25% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: #475569 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease;
    user-select: none;
    height: 100% !important;
    padding: 2px 0 !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  .mobile-bottom-item:active {
    transform: scale(0.94);
  }

  .mobile-bottom-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  }

  .mobile-bottom-icon.icon-maps {
    background: #10b981;
  }

  .mobile-bottom-icon.icon-zalo {
    background: #0068ff;
  }

  .mobile-bottom-icon.icon-call {
    background: #ef4444;
    animation: pulse-red-call 2s infinite;
  }

  .mobile-bottom-icon.icon-messenger {
    background: linear-gradient(135deg, #00c6ff, #0078ff, #a033ff);
  }

  .mobile-bottom-item span {
    line-height: 1.1;
    white-space: nowrap;
  }

  @keyframes pulse-red-call {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
    70% { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
  }

  /* Mobile Product Card Optimization - Prevent Text Clipping & Overflow */
  .product-info {
    padding: 10px !important;
  }

  .product-price {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding-top: 6px !important;
  }

  .product-price span {
    font-size: 0.88rem !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    text-align: left !important;
  }

  .btn-detail {
    width: 100% !important;
    justify-content: center !important;
    padding: 6px 10px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }
}

/* Text balance & Anti-drop rules */
.navbar-custom .nav-link {
  white-space: nowrap;
}

.prevent-drop,
a[href^="tel:"]:not(.mobile-bottom-item),
.phone-number,
.text-phone {
  white-space: nowrap !important;
}

.product-price span, .btn-detail {
  white-space: nowrap;
}

.product-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
  line-height: 1.35;
}

.badge-prevent-wrap {
  white-space: nowrap;
  display: inline-block;
}

/* Form Dropdown Anti-drop Optimization */
.form-select option {
  padding: 8px 12px;
  font-size: 0.9rem;
}


