@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;1,600&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-blue: #0052cc;
  --primary-dark-blue: #0a2540;
  --accent-blue: #0066ff;
  --light-blue: #e6f0ff;
  --sky-blue: #0284c7;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
}

* {
  font-family: 'Be Vietnam Pro', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  font-family: 'Be Vietnam Pro', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Be Vietnam Pro', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p, span, label {
  text-wrap: pretty;
  word-break: normal;
  overflow-wrap: break-word;
}

/* Prevent isolated orphan word wrapping on buttons, badges, nav links, and tags */
button,
.btn,
nav a,
.badge,
.tag,
.whitespace-nowrap-forced {
  white-space: nowrap;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #0052cc;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0a2540;
}

/* Glassmorphism */
.glass-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-dark {
  background: rgba(10, 37, 64, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Blue Gradient Text & Badges */
.gradient-text {
  background: linear-gradient(135deg, #0052cc 0%, #00d2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-bg {
  background: linear-gradient(135deg, #0a2540 0%, #0052cc 100%);
}

/* Card Hover Elevation */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(0, 82, 204, 0.15), 0 10px 10px -5px rgba(0, 82, 204, 0.08);
}

/* Smooth Modal Backdrop */
.modal-backdrop {
  background-color: rgba(10, 37, 64, 0.75);
  backdrop-filter: blur(6px);
}

/* ==========================================================================
   HERO BANNER ENTRANCE ANIMATIONS
   ========================================================================== */

/* Keyframes */
@keyframes heroFadeDown {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSlideRight {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes heroZoomIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes heroCardSlideIn {
  from {
    opacity: 0;
    transform: translateX(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

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

/* Entrance Animation Utility Classes */
.animate-hero-badge {
  animation: heroFadeDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-hero-title {
  animation: heroSlideRight 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.animate-hero-desc {
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.animate-hero-cta {
  animation: heroZoomIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

.animate-hero-stats {
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.animate-hero-card {
  animation: heroCardSlideIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.animate-hero-float {
  animation: heroFloatCard 5s ease-in-out 1.3s infinite;
}

/* Mobile Responsive Optimization Utilities */
html {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

img, video, iframe, svg {
  max-width: 100%;
  height: auto;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
  .font-heading {
    word-break: break-word;
  }
  
  .container, .max-w-7xl, .max-w-\[1400px\] {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .product-item img {
    max-height: 160px;
  }
}



/* ==========================================================================
   PREMIUM ECOMMERCE PRODUCT CARD LAYOUT STYLING (BÁCH ANH GROUP)
   ========================================================================== */

.product-item {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 1.25rem !important;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.04), 0 4px 12px -2px rgba(15, 23, 42, 0.02) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  overflow: hidden !important;
}

.product-item:hover {
  border-color: #2563eb !important;
  box-shadow: 0 16px 32px -8px rgba(37, 99, 235, 0.14), 0 8px 16px -4px rgba(15, 23, 42, 0.06) !important;
  transform: translateY(-4px) !important;
}

/* Product Image Box Area */
.product-item > div:first-child,
.product-item .relative {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
  padding: 1.5rem !important;
  height: 13.5rem !important;
  border-bottom: 1px solid #f1f5f9 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
}

.product-item img {
  max-height: 10.5rem !important;
  width: auto !important;
  object-fit: contain !important;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.06));
  transition: transform 0.3s ease !important;
}

.product-item:hover img {
  transform: scale(1.06) !important;
}

/* Badges */
.product-item .absolute.top-3.left-3,
.product-item span[class*="bg-"] {
  z-index: 10 !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* Card Body Content */
.product-item > div:last-child,
.product-item .p-5 {
  padding: 1.25rem 1.5rem 1.5rem 1.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  flex: 1 1 auto !important;
}

.product-item h3 {
  font-size: 0.9375rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.4 !important;
  margin-top: 0.25rem !important;
  margin-bottom: 0.5rem !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 2.6rem !important;
  transition: color 0.2s ease !important;
}

.product-item:hover h3 {
  color: #2563eb !important;
}

/* View Details Action Button */
.product-item button.open-modal-trigger,
.product-item button[class*="open-modal"] {
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  background-color: #2563eb !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 0.8125rem !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22) !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  cursor: pointer !important;
  margin-top: 0.75rem !important;
}

.product-item button.open-modal-trigger:hover,
.product-item button[class*="open-modal"]:hover {
  background-color: #1d4ed8 !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35) !important;
  transform: translateY(-1px) !important;
}
