/* Toàn Thắng Safety - Tươi Sáng, Hiện Đại, Chuẩn Công Nghiệp */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@600;700&display=swap');

:root {
  --primary: #f97316;
  --primary-hover: #ea580c;
  --primary-light: #ffedd5;
  --primary-dark: #c2410c;
  --navy: #1e293b;
  --navy-light: #334155;
  --navy-dark: #0f172a;
  --accent: #2563eb;
  --accent-light: #dbeafe;
  --success: #16a34a;
  --warning: #eab308;
  --danger: #dc2626;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --border-color: #e2e8f0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: #f8fafc;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
/* Category Dropdown Animation */
.category-dropdown {
  animation: fadeInDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* MEGA CATEGORY DROPDOWN MENU */
.mega-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 280px;
  background: #ffffff !important;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.25), 0 10px 15px -5px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid #e2e8f0;
  border-top: none;
  padding: 8px 0;
  z-index: 999999 !important;
  animation: megaFadeDown 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes megaFadeDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#megaCategoryDropdownWrapper:hover .mega-dropdown-menu,
.group:hover .mega-dropdown-menu,
.group:focus-within .mega-dropdown-menu,
.mega-dropdown-menu.show-dropdown {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Floating Contact Widget (Desktop only, Mobile uses Bottom Bar) */
.floating-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

@media (max-width: 767px) {
  .floating-widget {
    display: none !important;
  }
}

.float-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 50px;
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.float-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.float-phone {
  background: linear-gradient(135deg, #ea580c, #f97316);
  border: 2px solid #fff;
  animation: pulse-ring 2s infinite;
}

.float-zalo {
  background: linear-gradient(135deg, #0068ff, #0084ff);
  border: 2px solid #fff;
}

.float-quote {
  background: linear-gradient(135deg, #1e293b, #334155);
  border: 2px solid #f97316;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(249, 115, 22, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
  }
}

/* Card Hover Effects */
.product-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: #fdba74;
  box-shadow: 0 15px 30px -5px rgba(249, 115, 22, 0.12), 0 6px 10px -4px rgba(0, 0, 0, 0.05);
}

.product-card .img-box {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.product-card .img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.4s ease;
}

.product-card:hover .img-box img {
  transform: scale(1.05);
}

.product-card .quick-actions {
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
  transition: bottom 0.3s ease;
}

.product-card:hover .quick-actions {
  bottom: 0;
}

/* Badge Styles */
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
}

.badge-orange {
  background-color: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.badge-blue {
  background-color: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.badge-green {
  background-color: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

/* Category Pill Card */
.category-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.1);
}

.category-card .icon-wrapper {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: #fff7ed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.3s ease;
}

.category-card:hover .icon-wrapper {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

/* Container Service Card */
.container-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.container-card:hover {
  border-color: #fdba74;
  box-shadow: 0 20px 30px rgba(15, 23, 42, 0.06);
}

/* Modal and Drawer Backdrop */
.modal-backdrop, .drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active, .drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box, .modal-content {
  background: #ffffff !important;
  border-radius: 24px;
  max-width: 1040px;
  width: 95%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  position: relative;
}

.modal-backdrop.active .modal-box, .modal-backdrop.active .modal-content {
  transform: scale(1) translateY(0);
}

/* Quotation Drawer */
.drawer-content {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background: white;
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.drawer-backdrop.active .drawer-content {
  transform: translateX(0);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #0f172a;
  color: white;
  padding: 14px 20px;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  transform: translateX(120%);
  animation: slide-toast 0.3s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-toast {
  to {
    transform: translateX(0);
  }
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
  font-weight: 700;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
  text-decoration: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(249, 115, 22, 0.35);
}

.btn-navy {
  background: #1e293b;
  color: white;
  font-weight: 600;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-navy:hover {
  background: #0f172a;
  transform: translateY(-2px);
}

.btn-outline {
  background: #ffffff;
  color: #1e293b;
  font-weight: 600;
  border: 1.5px solid #cbd5e1;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff7ed;
}

/* Fresh Bright Hero Section */
.hero-bright-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #fff7ed 45%, #eff6ff 100%);
  position: relative;
  overflow: hidden;
}

.hero-bright-gradient::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.12) 0%, rgba(249, 115, 22, 0) 70%);
  pointer-events: none;
}

/* Tab Filter Navigation */
.filter-tab {
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid #e2e8f0;
  background: white;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-tab:hover {
  border-color: #fdba74;
  color: var(--primary);
}

.filter-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .float-btn span {
    display: none;
  }
  .float-btn {
    padding: 12px;
    border-radius: 50%;
  }
  .floating-widget {
    bottom: 16px;
    right: 16px;
    gap: 8px;
  }
}

/* EXACT 50PX MAIN NAVBAR LOCK */
.main-orange-nav {
  height: 50px !important;
  min-height: 50px !important;
  max-height: 50px !important;
  background-color: #f25c05 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  display: flex !important;
  align-items: stretch !important;
}

.main-orange-nav > div {
  height: 50px !important;
  min-height: 50px !important;
  max-height: 50px !important;
  display: flex !important;
  align-items: stretch !important;
}

.main-orange-nav .nav-links-wrap {
  height: 50px !important;
  min-height: 50px !important;
  max-height: 50px !important;
  display: flex !important;
  align-items: stretch !important;
}

.main-orange-nav .nav-item-link,
.main-orange-nav #megaCategoryBtn {
  height: 50px !important;
  min-height: 50px !important;
  max-height: 50px !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border: none !important;
}

/* MOBILE SLIDE-OUT NAVIGATION DRAWER - FIXED Z-INDEX */
#mobileNavDrawer {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999999 !important;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.25s ease;
}
#mobileNavDrawer.active {
  visibility: visible !important;
  pointer-events: auto !important;
}
#mobileNavDrawer .drawer-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
  opacity: 0;
  z-index: 10 !important;
  transition: opacity 0.25s ease;
}
#mobileNavDrawer.active .drawer-backdrop {
  opacity: 1 !important;
}
#mobileNavDrawer .drawer-panel {
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 85% !important;
  max-width: 320px !important;
  background: #ffffff !important;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.4) !important;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  z-index: 30 !important;
}
#mobileNavDrawer.active .drawer-panel {
  transform: translateX(0) !important;
}

/* Horizontal scrollable nav items on mobile */
.mobile-nav-scroll {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  white-space: nowrap;
}
.mobile-nav-scroll::-webkit-scrollbar {
  display: none;
}
/* SUBTLE CLEAN SEARCH BAR */
.clean-search-input {
  border: 1.5px solid #cbd5e1 !important;
  background-color: #f8fafc !important;
  color: #1e293b !important;
  transition: all 0.2s ease !important;
}
.clean-search-input:focus {
  border-color: #f25c05 !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(242, 92, 5, 0.12) !important;
}

/* SUBTLE SHIP BADGE */
.ship-nationwide-badge {
  background-color: #f0fdf4 !important;
  color: #15803d !important;
  border: 1px solid #bbf7d0 !important;
}