/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  line-height: 1.6;
  color: #333;
  padding-top: 120px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed; /* Giữ header cố định */
  top: 0; /* Nằm sát đỉnh màn hình */
  left: 0;
  width: 100%; /* Chiếm toàn bộ chiều ngang */
  z-index: 1000;
}

.top-bar {
  background: #f8f9fa;
  padding: 8px 0;
}

.top-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.top-link {
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}

.username {
  font-weight: bold;
  color: #0066cc;
}

.top-link:hover {
  color: #d42e2e;
}

.main-header {
  padding: 20px 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Language Switcher */
.language-switcher {
  position: relative;
  display: inline-block;
  font-size: 14px;
}

/* Nút chính */
.dropdown-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: border-color 0.2s, background 0.2s;
}

.dropdown-btn img {
  width: 18px;
  height: 12px;
  object-fit: cover;
}

.dropdown-btn:hover {
  border-color: #d42e2e;
  background: #fafafa;
}

/* Nội dung dropdown */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%; /* ngay dưới nút */
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  min-width: 160px;
  margin-top: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 2000;
}

/* Link trong dropdown */
.dropdown-content a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}

.dropdown-content a img {
  width: 18px;
  height: 12px;
  object-fit: cover;
}

.dropdown-content a:hover {
  background: #f5f5f5;
  color: #d42e2e;
}

/* Hover mở menu */
.language-switcher:hover .dropdown-content {
  display: block;
}

/* Click mở menu */
.dropdown-content.show {
  display: block;
}

/* Logo */
/* ==== Seryou Kagaku Logo ==== */
.sery-logo {
  display: inline-flex;
  align-items: center;
  text-align: end;
  gap: 12px;
  text-decoration: none;
  color: #4a4a4a;
  user-select: none;
}

/* Chữ Nhật phía trên */
.logo-sub {
  font-size: 14px;
  font-weight: 500;
  color: #555;
  margin-bottom: 6px;
  font-family: "Noto Sans JP", sans-serif;
  letter-spacing: 1px;
}

/* Chữ chính */
.logo-main {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main .line1 {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 900; /* rất đậm */
  font-size: 24px;
  letter-spacing: 2px;
  color: #444;
}
.logo-main .line2 {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 900; /* rất đậm */
  font-size: 36px;
  letter-spacing: 2px;
  color: #444;
}

/* Hover hiệu ứng nhạt tối */
.sery-logo:hover .logo-main span,
.sery-logo:hover .logo-sub {
  color: #2f2f2f;
}

/* Search bar */
.search-section {
  flex: 1;
  max-width: 400px;
  margin: 0 40px;
}

.search-bar {
  position: relative;
  display: flex;
}

.search-input {
  flex: 1;
  padding: 12px 50px 12px 20px;
  border: 1px solid #ddd;
  border-radius: 50px; /* bo tròn full */
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}
.search-input:focus {
  border-color: #666;
}

.search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  background-color: #ffffff;
  color: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-info {
  text-align: right;
  font-size: 14px;
}

.contact-phone {
  color: #000;
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 24px;
}

.contact-email {
  color: #555555;
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.contact-hours {
  color: #666;
  font-size: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.header-icons {
  display: flex;
  gap: 8px;
}

.header-icon {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  font-size: 20px;
  transition: opacity 0.2s;
}

.header-icon:hover {
  opacity: 0.7;
}

/* Navigation */
/* Reset list */
.nav-menu,
.nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Mỗi mục chính */
.nav-item {
  position: relative;
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: background 0.2s;
  display: flex;
}
.nav-item a {
  text-decoration: none;
  color: #333333;
}

.nav-item i {
  margin-left: 6px;
  align-self: center;
  font-size: 12px;
  color: #1b1b1b;
}

.nav-item:hover {
  background: #f5f5f5;
}

.nav-item:hover i {
  transform: rotate(180deg);
}

.nav-title,
.nav-subtitle {
  display: block;
  line-height: 1.3;
}

.nav-title {
  font-weight: 600;
  font-size: 18px;
}

.nav-subtitle {
  font-size: 0.875rem;
  color: #666;
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  z-index: 999;
  background: #536fbd;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 6px 14px;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
}

.dropdown li a:hover {
  background: #c5c5c5;
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-carousel {
  position: relative;
  width: 100%;
  margin-top: 150px;
  height: 500px;
  background-color: #ffffff;
}

.hero-slide {
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  position: relative;
  display: none; /* ẩn các slide khác */
  background-color: #ffffff;
}

.hero-slide.active {
  opacity: 1;
  display: block; /* chỉ hiện slide đang active */
}

.hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
}

/* Responsive adjustments for hero section */
/* @media (max-width: 768px) {
  .hero-section {
    height: 50vh;
    min-height: 300px;
    max-height: 500px;
  }
}

@media (min-width: 1200px) {
  .hero-section {
    height: 65vh;
    max-height: 900px;
  }
} */

.automation-hero-section {
  position: relative;
  height: 540px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  background-color: #000;
}

.automation-hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.automation-hero-slide.active {
  opacity: 1;
}

.automation-hero-carousel {
  display: flex;
  justify-content: center;
  position: relative;
  height: 100%;
  width: 80%;
}

.hero-indicators {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.2s;
}

.indicator.active {
  background: white;
}

/* About Section */
.about-section {
  background: #fdf2f2;
  padding: 80px 0;
  text-align: center;
}

.about-section h2 {
  font-size: 32px;
  font-weight: 300;
  color: #333;
  margin-bottom: 40px;
}

.about-content {
  max-width: 800px;
  margin: 0 auto 60px;
  color: #666;
  line-height: 1.8;
}

.about-content p {
  margin-bottom: 12px;
  font-size: 14px;
}

.auth-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.btn {
  padding: 24px 48px;
  border: none;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 600;
  height: 150px;
  width: 500px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn-registry {
  background: #444;
  color: white;
}

.btn-login {
  background: #536fbd;
  color: white;
}

.btn-registry,
.btn-login {
  position: relative;
  overflow: hidden; /* đảm bảo overlay không tràn ra ngoài */
  z-index: 1;
}

.btn-registry::after,
.btn-login::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15); /* lớp phủ trắng siêu nhạt */
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.btn-registry:hover::after,
.btn-login:hover::after {
  opacity: 1;
}

/* Giữ text và nội dung nút nằm trên overlay */
.btn-registry,
.btn-login {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
}

.btn-registry span,
.btn-login span {
  position: relative;
  z-index: 3;
}

.btn-main {
  display: block;
  font-size: 36px;
}

.btn-sub {
  display: block;
  font-size: 18px;
  font-weight: normal;
  margin-top: 4px;
}

/* Features Section */
.features-section {
  padding: 80px 0;
  background: white;
}

.features-grid {
  display: flex;
  justify-content: center;
  gap: 100px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.circle-badge {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

/* lớp phủ trắng mờ giống ảnh bạn đưa */
.circle-badge::before {
  content: "";
  position: absolute;
  top: 40%;
  left: 0;
  right: 0;
  height: 50px;
  background: rgba(255, 255, 255, 0.8);
}

/* chữ Plastic */
.circle-text {
  position: relative;
  font-size: 24px;
  font-weight: bold;
  color: #444444; /* 👈 màu xám xanh dương */
}

/* Hover effect */
.feature-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.feature-card {
  width: 250px;
}

.feature-card p {
  margin-top: 10px;
  font-size: 16px;
  display: flex;
  text-align: center;
  color: #1b1b1b;
}

/* Responsive */
@media (max-width: 900px) {
  .feature-card {
    flex: 0 0 calc(50% - 40px);
  }
}

@media (max-width: 600px) {
  .feature-card {
    flex: 0 0 100%;
  }
}

/* Products Section */
.product-category-section {
  padding: 80px 0;
  background: white;
}

.product-category-section .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex !important;
  gap: 30px;
}

.section-header {
  /* text-center: center; */
  margin-bottom: 60px;
}

/* Cột 1: Category */
.category-column {
  flex: 0 0 33%;
  border: 1px solid #e5e5e5;
  background: #fff;
}

.category-header {
  background: #444444;
  color: #ffffff;
  padding: 14px 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.category-list {
  list-style: none;
}

.category-item {
  border-bottom: 1px solid #eee;
}

.category-item a {
  display: block;
  padding: 12px 20px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

.category-item a:hover {
  background: #f8f8f8;
  color: #d42e2e;
}

/* Active category highlight */
.category-item.active {
  background: #fff5f5;
  border-left: 4px solid #d42e2e;
}

.category-item.active a {
  background: #fff5f5;
  color: #d42e2e;
  font-weight: bold;
  padding-left: 16px; /* Adjust for border */
}

.category-item.active a:hover {
  background: #ffe5e5;
  color: #b8252a;
}

.outsourced-category-item {
  border-bottom: 1px solid #eee;
}

.outsourced-category-item a {
  display: block;
  padding: 12px 20px;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

.outsourced-category-item a:hover {
  background: #f8f8f8;
  color: #d42e2e;
}

/* Active category highlight for outsourced products */
.outsourced-category-item.active {
  background: #fff5f5;
  border-left: 4px solid #d42e2e;
}

.outsourced-category-item.active a {
  background: #fff5f5;
  color: #d42e2e;
  font-weight: bold;
  padding-left: 16px; /* Adjust for border */
}

.outsourced-category-item.active a:hover {
  background: #ffe5e5;
  color: #b8252a;
}

/* Submenu */
.has-sub {
  position: relative; /* làm gốc để submenu định vị */
}

.has-sub .subcategory-list {
  display: none;
  position: absolute;
  top: 0;
  left: 100%; /* xổ sang bên phải */
  min-width: 250px;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.has-sub:hover .subcategory-list {
  display: block;
}

.subcategory-list li a {
  display: block;
  padding: 10px 20px;
  font-size: 15px;
  color: #333;
  text-decoration: none;
  transition: background 0.2s;
}

.subcategory-list li a:hover {
  background: #f8f8f8;
  color: #d42e2e;
}
.category-list,
.subcategory-list {
  list-style: none; /* bỏ dấu chấm mặc định */
  margin: 0;
  padding: 0;
}

.category-list li,
.subcategory-list li {
  list-style: none; /* đảm bảo con không có dấu chấm */
}

/* Footer link */
.category-footer {
  padding: 12px 20px;
  background: #fff;
}

.category-footer a {
  color: #333;
  font-size: 20px;
  text-decoration: none;
}

.category-footer a:hover {
  color: #d42e2e;
}

/* Cột 2: Nội dung */
.content-column {
  display: flex;
  flex-direction: column;
}

.content-row {
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 20px;
}

.content-row h3 {
  font-size: 18px;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.order-guide {
  background: #f8f8f8;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
  color: #333;
}

/* Steps */
.steps {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 30px;
}

.step {
  flex: 1;
  background: #fff;
  padding: 15px;
  text-align: center;
  border-radius: 4px;
}

.step img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

.step h3 {
  color: #b8252a;
  margin-bottom: 6px;
}

/* Info blocks */
.order-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.info-block h4 {
  margin-bottom: 10px;
  border-bottom: 2px solid #b8252a;
  display: inline-block;
  padding-bottom: 4px;
  color: #2d3748;
}

.info-block p {
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.6;
}

/* Shipping table */
.shipping-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
  font-size: 14px;
}

.shipping-table td {
  border: 1px solid #ccc;
  padding: 6px 10px;
}

.highlight {
  color: #b8252a;
  font-weight: bold;
  margin-top: 10px;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 900px) {
  .order-info {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .steps {
    flex-direction: column;
  }
  .order-info {
    grid-template-columns: 1fr;
  }
}

.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.product-card {
  flex: 0 0 calc(33.333% - 15px); /* 3 item/trang */
  margin-right: 15px;
  text-align: center;
  border: solid 1px #444444;
  cursor: pointer;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 20px;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 2;
}

.carousel-btn.prev {
  left: 0;
}
.carousel-btn.next {
  right: 0;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

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

.news-list li {
  display: flex;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
  color: #333;
}

.news-date {
  flex: 0 0 90px; /* cố định width để thẳng hàng */
  color: #666;
  font-size: 13px;
}

.news-status {
  flex: 0 0 80px; /* luôn cùng độ rộng */
  display: inline-block;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  border-radius: 3px;
  margin-right: 10px;
  padding: 2px 4px;
}

.news-status.new {
  background-color: #f0a62e; /* cam */
  color: #fff;
}

.news-status.important {
  background-color: #d42e2e; /* đỏ */
  color: #fff;
}

.news-list a {
  color: #333;
  text-decoration: none;
  flex: 1;
  font-weight: bold;
}

.news-list a:hover {
  color: #d42e2e;
}
.discount-list {
  list-style: none;
}

/* Footer */
.footer {
  background: #2d3748;
  color: white;
  padding: 40px 0;
  text-align: center;
}

.footer-content p {
  color: #a0aec0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 20px;
  }

  .search-section {
    order: 3;
    max-width: 100%;
    margin: 0;
  }

  .nav-menu {
    flex-direction: column;
    gap: 20px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 32px;
  }

  .auth-buttons {
    flex-direction: column;
    align-items: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 24px;
  }

  .feature-circle {
    width: 200px;
    height: 200px;
  }

  .btn {
    padding: 16px 32px;
    font-size: 16px;
  }
}

/* Dropdown container */
/* Dropdown container */
.dropdown-nav {
  max-width: 320px;
  margin: 0 auto 40px;
  font-family: inherit;
}

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

.dropdown-item {
  position: relative;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
}

.dropdown-label {
  display: block;
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
}

/* Ẩn submenu mặc định */
.dropdown-submenu {
  max-height: 0;
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: max-height 0.25s ease;
}

/* Khi hover vào item → mở submenu */
.dropdown-item:hover .dropdown-submenu {
  max-height: 300px;
}

/* Style từng link con */
.dropdown-submenu li {
  border-top: 1px solid #eee;
}

.dropdown-submenu a {
  display: block;
  padding: 10px 18px 10px 30px;
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
}

.dropdown-submenu a:hover {
  background: #f7f7f7;
}

/* Chat Bot */
.chat-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  color: transparent;
  width: 150px;
  height: 150px;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
}

.chat-icon img {
  width: 100%; /* điều chỉnh kích thước theo ý muốn */
  height: 100%;
  margin-right: 10px;
  cursor: pointer;
}

.chat-popup {
  display: none;
  flex-direction: column;
  position: fixed;
  bottom: 190px;
  right: 20px;
  width: 320px;
  max-height: 400px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  overflow: hidden;
}

.chat-header {
  background: #0084ff;
  color: white;
  padding: 12px;
  text-align: center;
  font-weight: bold;
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  background: #f5f5f5;
}

.chat-footer {
  display: flex;
  border-top: 1px solid #ddd;
}

.chat-footer input {
  flex: 1;
  border: none;
  padding: 10px;
  outline: none;
}

.chat-footer button {
  background: #0084ff;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
}

.message {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 6px 0;
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 70%;
  word-break: break-word;
}

#chatBody {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  overflow-y: auto;
}

.message .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.message.bot {
  flex-direction: row;
  background: #f5f5f5;
  border: 1px solid #ccc;
  color: #333;
  align-self: flex-start;
} /* bot ở trái  */
.message.user {
  flex-direction: row-reverse;
  background: #e3f2fd; /* xanh nhạt */
  border: 1px solid #2196f3; /* xanh chủ đạo */
  color: #0d47a1;
  align-self: flex-end; /* căn phải */
  margin-left: auto;
} /* user ở phải */

/* Product */
/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Breadcrumb Navigation */
.breadcrumb {
  background-color: #e9ecef;
  padding: 12px 20px;
  border-bottom: 1px solid #dee2e6;
}

.breadcrumb a {
  color: #007bff;
  text-decoration: none;
  font-size: 14px;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb .separator {
  margin: 0 8px;
  color: #6c757d;
}

/* Login Notice */
.login-notice {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
  padding: 12px 16px;
  margin: 20px 0;
  text-align: center;
}

.login-notice a {
  color: #856404;
  font-weight: bold;
  text-decoration: none;
}

.login-notice a:hover {
  text-decoration: underline;
}

/* Product Page Layout */
.product-page {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
  overflow: hidden;
}

.product-header {
  display: flex;
  gap: 30px;
  padding: 30px;
  border-bottom: 1px solid #e9ecef;
}

.product-image {
  flex: 0 0 300px;
}

.main-image {
  width: 100%;
  height: auto;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.main-image:hover {
  transform: scale(1.05);
}

.product-info {
  flex: 1;
}

.product-title {
  font-size: 28px;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 20px;
  line-height: 1.3;
}

/* Specifications Table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.spec-table td {
  padding: 12px;
  border: 1px solid #e9ecef;
  vertical-align: top;
}

.spec-label {
  background-color: #f8f9fa;
  font-weight: bold;
  width: 150px;
  text-align: center;
}

.spec-value {
  background-color: white;
}

.manufacturer {
  font-weight: bold;
  color: #007bff;
}

/* Variants Section */
.variants-section {
  padding: 30px;
}

.variants-table-container {
  overflow-x: auto;
  border: 1px solid #e9ecef;
  border-radius: 4px;
}

.variants-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 800px;
}

.variants-table th {
  background-color: #f8f9fa;
  padding: 15px 12px;
  text-align: center;
  font-weight: bold;
  border: 1px solid #e9ecef;
  color: #495057;
}

.variant-name {
  width: 50%;
}

.price-column {
  width: 30%;
}

.quantity-column {
  width: 20%;
}

.variant-row {
  border-bottom: 1px solid #e9ecef;
}

.variant-row:hover {
  background-color: #f8f9fa;
}

.variants-table td {
  padding: 15px 12px;
  border: 1px solid #e9ecef;
  vertical-align: middle;
}

.variant-info .variant-title {
  font-size: 15px;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 5px;
}

.variant-code {
  color: #6c757d;
  font-size: 12px;
}

.price-cell {
  text-align: center;
}

.price-info .price-label {
  font-weight: bold;
  color: #495057;
}

.price-unit {
  color: #6c757d;
  font-size: 12px;
}

.price-value {
  color: #28a745;
  font-weight: bold;
  font-size: 16px;
}

.member-only {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.member-only:hover {
  text-decoration: underline;
}

.quantity-cell {
  text-align: center;
}

.quantity-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #495057;
}

.quantity-input {
  width: 80px;
  padding: 6px 8px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  text-align: center;
  margin-bottom: 10px;
}

.add-to-cart-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.add-to-cart-btn:hover {
  background-color: #0056b3;
}

.login-required {
  color: #6c757d;
}

.login-required a {
  color: #007bff;
  text-decoration: none;
}

.login-required a:hover {
  text-decoration: underline;
}

/* Recommended Products */
.recommended-section {
  padding: 30px;
  border-top: 1px solid #e9ecef;
  background-color: #f8f9fa;
}

.recommended-section h2 {
  font-size: 20px;
  color: #2c3e50;
  margin-bottom: 20px;
  text-align: center;
}

.recommended-products {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.recommended-item {
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  max-width: 200px;
}

.recommended-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.recommended-item a {
  text-decoration: none;
  color: inherit;
}

.recommended-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 10px;
}

.recommended-title {
  font-size: 14px;
  font-weight: bold;
  color: #2c3e50;
  text-align: center;
  line-height: 1.4;
}

.view-all {
  text-align: center;
}

.view-all a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.view-all a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background-color: #343a40;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

.footer .continer .policy {
  display: flex;
  justify-content: center;
}

/* Footer */
.footer {
  background-color: #343a40;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

.footer-policy {
  display: flex;
  justify-content: center; /* canh giữa */
  gap: 40px; /* khoảng cách đều giữa các link */
  margin-bottom: 15px;
}

.footer-policy a {
  color: #adb5bd;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
  .product-header {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .product-image {
    flex: none;
  }

  .variants-section {
    padding: 20px;
  }

  .variants-table {
    font-size: 12px;
  }

  .variants-table th,
  .variants-table td {
    padding: 10px 8px;
  }

  .product-title {
    font-size: 24px;
  }

  .recommended-products {
    gap: 15px;
  }

  .recommended-item {
    max-width: 150px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .product-header {
    padding: 15px;
  }

  .variants-section {
    padding: 15px;
  }

  .recommended-section {
    padding: 20px 15px;
  }

  .spec-table td {
    padding: 8px;
  }

  .spec-label {
    width: 120px;
  }
}

.order-guide {
  background: #f8f8f8;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
  color: #333;
}

/* Steps */
.steps {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 30px;
}

.step {
  flex: 1;
  background: #fff;
  padding: 15px;
  text-align: center;
  border-radius: 4px;
}

.step img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

.step h3 {
  color: #b8252a;
  margin-bottom: 6px;
}

/* Info blocks */
.order-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.info-block h4 {
  margin-bottom: 10px;
  border-bottom: 2px solid #b8252a;
  display: inline-block;
  padding-bottom: 4px;
  color: #2d3748;
}

.info-block p {
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.6;
}

/* Shipping table */
.shipping-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
  font-size: 14px;
}

.shipping-table td {
  border: 1px solid #ccc;
  padding: 6px 10px;
}

.highlight {
  color: #b8252a;
  font-weight: bold;
  margin-top: 10px;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 900px) {
  .order-info {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .steps {
    flex-direction: column;
  }
  .order-info {
    grid-template-columns: 1fr;
  }
}

/* Order info */
/* Section wrapper */
.shop-info {
  padding: 60px 0;
  background: #fff;
  text-align: center;
  font-family: Arial, sans-serif;
}

/* Container 1200px */
.shop-info .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Title */
.section-title {
  font-size: 22px;
  letter-spacing: 2px;
  margin-bottom: 5px;
  color: #222;
}

.section-subtitle {
  color: #d42e2e;
  font-size: 14px;
  margin-bottom: 40px;
}

/* Content */
.shop-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

/* Left side */
.shop-left {
  flex: 0 0 35%;
  text-align: center;
}

.shop-logo {
  margin-bottom: 15px;
  width: 420px;
}

.shop-slogan {
  font-size: 14px;
  color: #d42e2e;
  margin-top: 10px;
}

/* Right side */
.shop-right {
  flex: 0 0 60%;
  text-align: left;
}

.shop-right h3 {
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: bold;
}

.shop-right p {
  font-size: 14px;
  margin-bottom: 8px;
  color: #333;
}

.shop-map {
  margin-top: 15px;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
  .shop-content {
    flex-direction: column;
    text-align: center;
  }
  .shop-right {
    text-align: center;
  }
}

.breadcrumb {
  margin-bottom: 15px;
  font-size: 14px;
}
.breadcrumb a {
  color: #0066cc;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

.product-detail {
  background: #fff;
  padding: 20px;
}

.product-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
}

.product-info-table {
  width: 100%;
  border-collapse: collapse;
}
.product-media {
  gap: 20px;
}
.product-info-table td {
  padding: 8px 12px;
  vertical-align: top;
  border: 1px solid #ddd;
}
.product-info-table td:first-child {
  width: 200px;
  background: #f9f9f9;
  font-weight: bold;
}
.inner-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 40px 0; /* khoảng cách giữa 2 bảng Plate và Sewing */
}

.standard-item {
  vertical-align: top;
}

.table-title {
  font-weight: bold;
  margin-bottom: 5px;
  display: flex; /* dùng flex */
  justify-content: space-between;
}

.table-title .grade {
  font-weight: normal;
  color: #777;
  font-size: 14px;
  margin-left: auto;
}

.standard-item table {
  border-collapse: collapse;
  width: 100%;
  min-width: 220px;
}

.standard-item th,
.standard-item td {
  border: 1px solid #777;
  padding: 8px 12px;
  text-align: center;
}

.standard-item thead th {
  border-bottom: 2px solid #000;
}

.charac-list {
  padding-left: 20px; /* thụt vào một chút */
  margin: 0;
  list-style-type: disc; /* dấu chấm tròn */
}

.charac-list li {
  margin-bottom: 6px; /* khoảng cách giữa các dòng */
  line-height: 1.5;
}

/* Add to cart*/

/* .add-to-cart-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 15px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  justify-content: space-between;
} */

.cart-options label,
.cart-quantity label {
  font-weight: bold;
  font-size: 14px;
  margin-right: 6px;
}

.cart-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
}

.qty-btn {
  width: 35px;
  height: 35px;
  border: none;
  background: #f0f0f0;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: #007bff;
  color: white;
}

.qty-btn:active {
  transform: scale(0.95);
}

.qty-minus {
  border-right: 1px solid #ccc;
}

.qty-plus {
  border-left: 1px solid #ccc;
}

.quantity-selector input {
  width: 50px;
  padding: 6px !important;
  font-size: 16px !important;
  text-align: center;
  border: none !important;
  outline: none;
  -moz-appearance: textfield; /* Firefox */
}

/* Hide spinner arrows */
.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* .add-to-cart-box select,
.add-to-cart-box input[type="number"] {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
} */

.cart-price {
  font-weight: bold;
  font-size: 15px;
  color: #444; /* đẩy giá sang bên phải */
}

.btn-cart {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #444;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  width: 100%;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.2s;
}

.btn-cart:hover {
  background: #222;
  transform: translateY(-1px);
}

.specifications {
  background: #f9f9f7; /* màu nền giống hình */
  padding: 12px 15px;
  border-radius: 4px;
  font-family: Arial, sans-serif;
  font-size: 15px;
}

.spec-header {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 20px;
  color: #333;
}

.spec-header i {
  color: #e19b3a; /* icon vàng */
}

.spec-items {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 cột bằng nhau */
  gap: 12px 30px; /* khoảng cách hàng và cột */
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #333;
  cursor: pointer;
  font-weight: 500;
}

.spec-item i {
  color: #444444; /* icon mũi tên đỏ */
  font-size: 14px;
}

/* Giỏ hàng */
/* Badge số trên giỏ hàng */
.cart-btn {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #d42e2e;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  border-radius: 50%;
  padding: 2px 6px;
  min-width: 20px;
  text-align: center;
  line-height: 16px;
  display: inline-block;
  transform: scale(0);
  transition: transform 0.3s ease;
}

.cart-count.show {
  transform: scale(1);
}

/* Animation số nhảy vào */
@keyframes cartBounce {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}
.cart-bounce {
  animation: cartBounce 0.4s ease;
}

/* Icon rung */
@keyframes cartShake {
  0%,
  100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(-15deg);
  }
  50% {
    transform: rotate(15deg);
  }
  75% {
    transform: rotate(-10deg);
  }
}
.cart-shake {
  animation: cartShake 0.5s;
}

/* Item bay */
.fly-item {
  position: fixed;
  z-index: 3000;
  pointer-events: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #d42e2e;
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Products Section */
/* Section wrapper */
.policy-section {
  padding: 80px 20px;
  background: #fff;
}

/* Container 1200px, flex layout */
.policy-section .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

/* Content (policy bên phải) */
.policy-section .policy-content {
  flex: 1;
  min-width: 0;
}

.policy-section .policy-content h2 {
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: bold;
  color: #000;
}

.policy-section .policy-content h3 {
  font-size: 18px;
  margin-top: 25px;
  margin-bottom: 10px;
  font-weight: bold;
  color: #333;
}

.policy-section .policy-content p {
  margin-bottom: 15px;
  line-height: 1.7;
  font-size: 15px;
}

.policy-section .policy-content ul {
  margin: 10px 0 20px 20px;
  list-style-type: disc;
}

.policy-section .policy-content ul li {
  margin-bottom: 8px;
  font-size: 15px;
}

/* Specified commercial trans */
/* Policy content (phần bên phải) */
.trans-content {
  flex: 1;
  min-width: 0;
}

/* Table style */
.commerce-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.6;
  margin-top: 20px;
}

.commerce-table th,
.commerce-table td {
  border: 1px solid #ddd;
  padding: 12px 15px;
  vertical-align: top;
}

.commerce-table th {
  width: 250px;
  text-align: left;
  background: #f8f9fa;
  font-weight: bold;
}

.commerce-table td {
  background: #fff;
  color: #333;
}

.commerce-table ul {
  list-style: disc;
  margin: 0;
  padding-left: 20px;
}

.commerce-table ul li {
  margin-bottom: 8px;
}

/* Highlight text */
.commerce-table .highlight {
  color: #d42e2e;
  font-weight: bold;
}

/* Guide content */
.guide-content {
  flex: 1;
  min-width: 0;
}

.guide-content h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
}

.guide-note {
  background: #f8d7da;
  color: #721c24;
  padding: 15px;
  margin-bottom: 25px;
  border-left: 5px solid #d42e2e;
}

.guide-note .highlight {
  font-weight: bold;
  color: #d42e2e;
}

.guide-content h3 {
  font-size: 20px;
  margin-bottom: 15px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
}

.guide-step {
  margin-bottom: 20px;
}

.guide-step h4 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #000;
}

.guide-step p {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

.guide-step em {
  color: #555;
  font-size: 14px;
}

.guide-step a {
  color: #0056b3;
  text-decoration: underline;
  font-size: 14px;
}

/* Arrow between steps */
.arrow-down {
  width: 0;
  height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-top: 30px solid #b92c2236;
  margin: 10px auto 20px;
}

.guide-note-info {
  color: #362fd9 !important;
}

/* Inquiry section */
.inquiry-section {
  padding: 60px 20px;
  background: #fff;
}

.inquiry-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.inquiry-section h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 25px;
}

.inquiry-form table {
  width: 100%;
  border-collapse: collapse;
}

.inquiry-form th,
.inquiry-form td {
  border-bottom: 1px solid #eee;
  padding: 12px 15px;
  vertical-align: top;
  text-align: left;
}

.inquiry-form th {
  width: 250px;
  font-weight: normal;
  background: #f9f9f9;
}

.inquiry-form td input,
.inquiry-form td select {
  width: 400px;
  max-width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.inquiry-form td input.short {
  width: 80px;
  display: inline-block;
}

.inquiry-form .btn-search {
  margin-left: 10px;
  padding: 8px 14px;
  background: #d42e2e;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.inquiry-form .btn-search:hover {
  background: #a82323;
}

.inquiry-required {
  color: #d42e2e;
  font-weight: bold;
}

.inquiry-form textarea {
  width: 800px;
  max-width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
}

.captcha-note {
  font-size: 16px;
  color: #555;
  margin: 15px 0;
}

.form-submit {
  text-align: center;
  margin-top: 20px;
}

.form-submit button {
  background: #b92c28;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  padding: 12px 40px;
  cursor: pointer;
  font-size: 16px;
}

.form-submit button:hover {
  background: #922320;
}

/* Social media */
/* Floating contact menu */
.floating-menu {
  position: fixed;
  bottom: 80px;
  left: 5px;
  width: 255px;
  z-index: 1000;
  font-family: "Noto Sans JP", sans-serif;
  transition: transform 0.3s ease;
}

.floating-menu .menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: background 0.2s ease;
}

.floating-menu .menu-item i {
  font-size: 16px;
}

/* Colors */
.floating-menu .menu-item.blue {
  background: #1e4fa1;
}
.floating-menu .menu-item.red {
  background: #9c2b2b;
}
.floating-menu .menu-item.yellow {
  background: #ffcc00;
  color: #222;
}
.floating-menu .menu-item.white {
  background: #fff;
  color: #222;
}

/* Hover */
.floating-menu .menu-item:hover {
  filter: brightness(0.9);
}

.menu-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
}

.contact-toggle {
  position: fixed;
  bottom: 20px;
  left: 10px;
  z-index: 1100;
  width: 50px;
  height: 50px;
  background: #d6cfce;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.contact-toggle img {
  width: 24px;
  height: 24px;
}
.floating-menu.hidden {
  transform: translateX(-260px); /* Ẩn đi */
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 5px;
  width: 50px;
  height: 50px;
  background: #d6cfce;
  font-size: 22px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 999;
}

.back-to-top img {
  width: 24px;
  height: 24px;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.back-to-top:hover {
  transform: scale(1.05);
}
.contact-toggle {
  animation: pulseScale 1.5s infinite ease-in-out;
}

@keyframes pulseScale {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Danh sách tất cả sản outsource */
/* Grid */
.outsourced_product_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.outsourced_product_card {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  text-align: center;
  width: 200px;
  padding: 15px;
  transition: all 0.3s ease;
  background: #fafafa;
}

.outsourced_product_card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.outsourced_product_card a {
  text-decoration: none;
  color: inherit;
}

.outsourced_product_card h4 {
  margin-bottom: 10px;
  color: #333;
}

.outsourced_product_card img {
  width: 160px;
  height: 160px;
}

.outsourced_product_img_wrapper {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #334155;
}

.outsourced_product_img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.outsourced_product_info {
  padding: 15px;
  text-align: center;
}

.outsourced_product_name {
  font-size: 16px;
  color: #fff;
  margin-bottom: 8px;
}

.outsourced_product_category {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 12px;
}

/* Pagination */
.outsourced_product_pagination {
  margin-top: 20px;
  text-align: center;
}

.outsourced_product_pagination a,
.outsourced_product_pagination span {
  display: inline-block;
  margin: 0 2px;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
}

/* Trang đang active */
.outsourced_product_pagination .active {
  background: #0d6efd; /* xanh giống bootstrap */
  color: #fff;
  border-color: #0d6efd;
}

/* Hover cho các nút */
.outsourced_product_pagination a:hover {
  background: #e9ecef;
}

/* Ellipsis */
.outsourced_product_page_ellipsis {
  display: inline-block;
  margin: 0 4px;
  padding: 6px 12px;
  color: #6c757d;
  font-size: 14px;
  border: none;
  background: transparent;
}

/* Bảng sản phẩm */
.product-info-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* ép cột chia đều */
  word-wrap: break-word;
}

.product-info-table td,
.product-info-table th {
  padding: 10px;
  vertical-align: top;
  border: 1px solid #ddd;
}
