@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-blue: #FF3B00;
  --primary-dark-blue: #4a0202;
  --accent-blue: #FF6A00;
  --light-blue: #FFF5F2;
  --sky-blue: #FF6A00;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
}

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

body {
  font-family: '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: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* Chữ con bên trong tiêu đề (span, a…) thừa hưởng font của tiêu đề, không bị rule * ghi đè */
h1 *, h2 *, h3 *, h4 *, h5 *, h6 *, .font-heading *, .font-title * {
  font-family: inherit;
}

/* ...trừ icon Font Awesome trong tiêu đề, nếu không icon hiện thành ký tự chữ */
:is(h1, h2, h3, h4, h5, h6, .font-heading, .font-title) :is(.fa, .fas, .far, .fa-solid, .fa-regular) {
  font-family: "Font Awesome 6 Free";
}
:is(h1, h2, h3, h4, h5, h6, .font-heading, .font-title) :is(.fab, .fa-brands) {
  font-family: "Font Awesome 6 Brands";
}

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,
nav a,
nav span,
nav button,
.nav-link,
.nav-link span,
.badge,
.tag,
.whitespace-nowrap-forced {
  white-space: nowrap !important;
  text-wrap: nowrap !important;
  word-break: keep-all !important;
}

/* Custom Scrollbar - Clean & Modern Neutral */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Hide scrollbar utility */
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.no-scrollbar {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

/* 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, #FF3B00 0%, #FFC857 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-bg {
  background: linear-gradient(135deg, #4a0202 0%, #FF3B00 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 CARD COMPONENT STYLING (BÁCH ANH GROUP)
   ========================================================================== */

.product-item {
  border-radius: 0.375rem !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  overflow: hidden !important;
}

.product-item:hover {
  transform: translateY(-4px) !important;
}

.product-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.3s ease !important;
}

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


.product-item h3 {
  font-size: 0.9375rem !important;
  font-weight: 800 !important;
  color: #4a0202 !important;
  line-height: 1.4 !important;
  margin-top: 0.25rem !important;
  margin-bottom: 0.5rem !important;
  display: -webkit-box !important;
  line-clamp: 2 !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: #FF3B00 !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: #FF3B00 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 0.8125rem !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 4px 12px rgba(255, 59, 0, 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: #FF6A00 !important;
  box-shadow: 0 6px 16px rgba(255, 59, 0, 0.35) !important;
  transform: translateY(-1px) !important;
}

/* ==========================================================================
   GTRANSLATE HEADER INTEGRATION STYLING
   ========================================================================== */
.header-lang-wrapper {
  display: inline-flex !important;
  align-items: center !important;
  position: relative !important;
}

.header-lang-wrapper .gtranslate_wrapper,
.header-lang-wrapper .gt_float_switcher {
  display: inline-flex !important;
  align-items: center !important;
  position: relative !important;
  margin: 0 !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  z-index: 50 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.header-lang-wrapper .gt_float_switcher .gt-selected {
  display: flex !important;
  align-items: center !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 9999px !important;
  padding: 4px 12px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  min-height: 36px !important;
}

.header-lang-wrapper .gt_float_switcher .gt-selected:hover {
  background: #f8fafc !important;
  border-color: #FF6A00 !important;
  box-shadow: 0 4px 12px rgba(255, 106, 0, 0.15) !important;
}

.header-lang-wrapper .gt_float_switcher .gt-current-lang {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.header-lang-wrapper .gt_float_switcher .gt-current-lang img {
  width: 20px !important;
  height: 14px !important;
  border-radius: 3px !important;
  object-fit: cover !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
}

.header-lang-wrapper .gt_float_switcher .gt-lang-code {
  font-family: inherit !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  color: #1e293b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.header-lang-wrapper .gt_float_switcher .gt_options {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  right: 0 !important;
  left: auto !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08) !important;
  padding: 6px !important;
  min-width: 140px !important;
  z-index: 9999 !important;
}

.header-lang-wrapper .gt_float_switcher .gt_options a {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 12px !important;
  border-radius: 10px !important;
  color: #334155 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  transition: all 0.15s ease !important;
  text-decoration: none !important;
}

.header-lang-wrapper .gt_float_switcher .gt_options a:hover {
  background: #FFF5F2 !important;
  color: #FF3B00 !important;
}

/* Google Translate Background Silent Mode */
#gt_float_wrapper,
.gtranslate_wrapper,
.goog-te-banner-frame,
#goog-gt-tt,
.skiptranslate:not(.allowed-translate),
iframe.skiptranslate {
  display: none !important;
  visibility: hidden !important;
}

body {
  top: 0px !important;
}
/* Tiêu đề section: font Inter (tài liệu 30/09/2026 bỏ Oswald), màu #4a0202 đặt ở class Tailwind */
.font-title {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* Tiêu đề trong nội dung bài viết (HTML từ CMS, vùng .prose): màu tiêu đề thương hiệu */
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  color: #4a0202;
}

/* Nội dung soạn trong admin (bài viết, mô tả sản phẩm). Trang không nạp plugin typography của Tailwind
   nên tự định dạng: đoạn văn, danh sách, ảnh, bảng (bảng chèn từ trình soạn thảo Quill 2) */
.prose p { margin: 0 0 1em; }
.prose h2, .prose h3, .prose h4 { font-weight: 700; line-height: 1.3; margin: 1.4em 0 .6em; }
.prose h2 { font-size: 1.5em; }
.prose h3 { font-size: 1.25em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.5em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: .3em 0; }
.prose a { color: #FF3B00; text-decoration: underline; }
.prose img { max-width: 100%; height: auto; margin: 1em auto; }
.prose blockquote { border-left: 4px solid #FF3B00; padding-left: 1em; color: #475569; font-style: italic; margin: 1em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95em; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid #cbd5e1; padding: .55em .8em; text-align: left; vertical-align: top; }
.prose th, .prose tr:first-child td { background: #f8fafc; font-weight: 600; color: #1e293b; }
