/*
Theme Name: Astra Child
Template: astra
Author: Nguyễn Văn Thoại
Version: 1.0
*/

/* --- Topbar mặc định (desktop) --- */
.site-topbar {
  background: #edbd11; /* vàng */
  color: #000; /* chữ đen cho dễ đọc */
  font-size: 14px;
}

.site-topbar .topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 15px;
  gap: 15px;
}

.site-topbar .topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-topbar .topbar-item a {
  color: #000000;
  text-decoration: none;
}

.site-topbar .topbar-item a:hover {
  text-decoration: underline;
}

/* --- Responsive (mobile dưới 768px) --- */
@media (max-width: 768px) {
  .site-topbar .topbar-inner {
    flex-direction: column; /* xếp thành cột */
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 10px;
  }

  .site-topbar .topbar-item {
    font-size: 13px;
  }

  .site-topbar .topbar-item a {
    font-size: 13px;
  }
}

/* --- Main header --- */
.site-mainheader {
  background: #000; /* đen */
}

.site-mainheader {
  position: relative;
  transition: all 0.3s ease;
  z-index: 999;
}

/* Sticky header */
.site-mainheader.sticky {
  transform: translateY(0);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.site-mainheader .mainheader-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 15px;
}

/* Logo */
.site-mainheader .header-logo img {
  max-height: 50px;
}

/* Search form */
.site-mainheader .header-search {
  flex: 1;
  margin-left: 40px;
}
.site-mainheader .header-search form {
  display: flex;
}
.site-mainheader .header-search input[type="search"] {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ccc;
}
.site-mainheader .header-search button {
  padding: 8px 14px;
  border: 0.5px solid #ccc;
  border-left: none;
  background: #edbd11;
  color: #fff;
  cursor: pointer;
}

/* Header buttons */
.site-mainheader .header-buttons {
  display: flex;
  gap: 15px;
}

.site-mainheader .header-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #ffffff;
  font-size: 14px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: all 0.2s ease;
}

/* .site-mainheader .header-btn:hover {
  background: #f5f5f5;
  border-color: #ddd;
} */

/* --- Responsive --- */
@media (max-width: 768px) {
  .site-mainheader .mainheader-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .site-mainheader .header-search {
    order: 2;
  }

  .site-mainheader .header-buttons {
    justify-content: space-around;
  }
}

/* Custom search with dropdown */
.custom-search-form {
  display: flex;
  align-items: center;
  border: 1px solid #444;
  border-radius: 6px; /* bo góc tổng thể */
  overflow: hidden;
  max-width: 400px;
  width: 100%;
  background: #fff;
}

/* Dropdown nhỏ hơn, bo góc chỉ bên trái */
.custom-search-form .search-type {
  flex: 0 0 auto;
  width: 80px;
  min-width: unset;
  border: none;
  padding: 0 8px;
  background: #f9f9f9;
  font-size: 14px;
  height: 40px;
  line-height: 40px;
  cursor: pointer;
  border-radius: 6px 0 0 6px; /* chỉ bo góc trái */
}

/* Input ở giữa, không bo góc */
.custom-search-form .search-field {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 12px;
  font-size: 14px;
  color: #333;
  height: 40px;
  border-radius: 0; /* bỏ bo góc */
}

/* Nút search, chỉ bo góc bên phải */
.custom-search-form .search-submit {
  flex: 0 0 auto;
  background: #edbd11;
  border: none;
  padding: 0 16px;
  cursor: pointer;
  font-size: 16px;
  color: #000;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 6px 6px 0; /* chỉ bo góc phải */
}

.custom-search-form .search-submit:hover {
  background: #e6c900;
}

.custom-search-form .search-submit i {
  font-size: 16px;
}

/* ===== Main Navigation ===== */
.site-main-navigation {
  background: #ffdd00;
  /* border-top: 1px solid #e6c900; */
}

.site-main-navigation .main-menu {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-main-navigation .main-menu li {
  margin: 0;
  padding: 0;
}

.site-main-navigation .main-menu li a {
  display: block;
  padding: 14px 20px;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  /* transition: background 0.2s, color 0.2s; */
}

.site-main-navigation .main-menu li a:hover,
.site-main-navigation .main-menu li.current-menu-item a {
  background: #e6c900;
  color: #000;
}

@media (max-width: 768px) {
  .site-main-navigation .main-menu {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-main-navigation .main-menu li a {
    padding: 12px 16px;
    width: 100%;
  }
}

/* Cơ bản cho menu chính */
.site-main-navigation .main-menu {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-main-navigation .main-menu li {
  position: relative;
}
.site-main-navigation .main-menu li a {
  padding: 14px 18px;
  color: #000;
  text-decoration: none;
  font-weight: 600;
}
.site-main-navigation .main-menu li a:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Submenu cấp 1 → cấp 2: dropdown dọc */
.site-main-navigation .main-menu li ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  z-index: 9999;
  padding: 0;
}
.site-main-navigation .main-menu li:hover > ul.sub-menu {
  display: block;
}
.site-main-navigation .main-menu li ul.sub-menu li {
  position: relative;
}
.site-main-navigation .main-menu li ul.sub-menu li a {
  padding: 10px 16px;
  color: #333;
  white-space: nowrap;
}
.site-main-navigation .main-menu li ul.sub-menu li a:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Nếu có cấp 3: submenu của submenu xổ dọc bên cạnh */
.site-main-navigation .main-menu li ul.sub-menu li ul.sub-menu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  min-width: 200px;
}
.site-main-navigation .main-menu li ul.sub-menu li:hover > ul.sub-menu {
  display: block;
}
.site-main-navigation .main-menu li ul.sub-menu li ul.sub-menu li a {
  padding: 10px 16px;
  color: #333;
}
.site-main-navigation .main-menu li ul.sub-menu li ul.sub-menu li a:hover {
  background: rgba(0, 0, 0, 0.05);
}

.main-menu,
.main-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Reset lại list-style */
.main-menu,
.main-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Style chung cho menu */
.main-menu li {
  position: relative;
}

/* Thêm mũi tên cho item có submenu */
.main-menu li.menu-item-has-children > a::after {
  content: " ▼"; /* mũi tên xuống cho cấp 1 */
  font-size: 12px;
  margin-left: 5px;
}

/* Với submenu ngang (cấp 2) thì dùng mũi tên sang phải */
.main-menu ul li.menu-item-has-children > a::after {
  content: " ›";
  font-size: 12px;
  margin-left: 5px;
}

/* Bỏ gạch chân khi hover */
.main-menu a {
  text-decoration: none;
}

/* Submenu ẩn mặc định */
.main-menu ul {
  display: none;
  position: absolute;
  background: #fff;
  padding: 10px 0;
  min-width: 180px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 999;
}

/* Hiện submenu khi hover */
.main-menu li:hover > ul {
  display: block;
}

/* Submenu cấp 2 hiển thị ngang */
.main-menu > li > ul {
  display: flex;
  top: 100%;
  left: 0;
}

/* Submenu cấp 3 hiển thị dọc dưới item cha */
.main-menu ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  flex-direction: column;
  margin-left: 2px;
}

.main-menu ul li:hover > ul {
  display: flex;
}

/* Hero Banner */
.hero-banner {
  width: 100%;
  background: #ffffff; /* fallback */
}

.hero-banner .hero-inner {
  max-width: 1200px; /* đồng bộ với main-header-inner */
  margin: 0 auto;
  padding: 0 15px;
  margin-top: 1px;
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Hero Banner chỉnh chiều cao */
.hero-banner .hero-inner img {
  width: 100%;
  max-height: 600px; /* giảm chiều cao, ví dụ 400px */
  object-fit: cover; /* crop ảnh cho đẹp */
  display: block;
}

.bannerTop-item__insert {
  margin: 20px auto 30px;
}

.bannerTop-item__insert .container {
  max-width: 1200px;
  padding: 0;
}

.banner-simple {
  width: 100%;
  height: auto;
  border-top-left-radius: 20px;
  border-bottom-right-radius: 20px;
  display: block;
}

.promo-sub-banner {
  background: linear-gradient(90deg, #fcb900, #fca311);
  padding: 20px 15px;
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  margin: 30px auto 20px;
  width: 95%;
  max-width: 1175px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  border-top-left-radius: 20px;
  border-bottom-right-radius: 20px;
  border-top-right-radius: 0;
  border-bottom-left-radius: 0;
}

.promo-sub-banner h2 {
  margin: 0;
  font-size: clamp(18px, 3vw, 26px);
}

/* Topbar mặc định */
.site-topbar {
  width: 100%;
  background: #ffdd00;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 1000;
}

/* Menu mặc định */
.site-main-navigation {
  width: 100%;
  background: #ffdd00;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 999;
}

/* Khi scroll xuống */
.site-topbar.shrink,
.site-main-navigation.shrink {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none; /* tránh hover */
}

/* === Category Tabs === */
.category-tabs {
  padding-bottom: 30px;
  background: #fff;
}
.category-tabs .tab-header {
  display: flex;
  justify-content: center;
  position: relative;
  gap: 25px;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
}
.category-tabs .tab-btn {
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: #000000;
  opacity: 0.6;
  padding: 10px;
  cursor: pointer;
  transition: color 0.3s;
}
.category-tabs .tab-btn.active {
  color: #000;
}

.category-tabs .tab-underline {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: #edbd11;
  transition: all 0.3s ease;
}

.homepage-section,
.hp-services,
.hp-blog {
  max-width: 1200px; /* 👈 Giống Hero Banner */
  margin: 0 auto; /* căn giữa */
  padding: 0 20px; /* chừa khoảng cách 2 bên */
  text-align: center;
}

.homepage-section {
  padding: 30px 0;
  background: #fff;
  text-align: center;
}

/* ===== SECTION HEADER ===== */
.section-title {
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  color: #222;
  text-align: center;
  position: relative;
  display: inline-block;
  margin: 0 auto 10px;
  padding: 10px 30px;
}

.section-subtitle {
  text-align: center;
  font-size: 16px;
  color: #555;
  margin-bottom: 25px;
  line-height: 1.4;
  font-weight: 400;
}

.category-tabs ul {
  display: flex;
  justify-content: center;
  gap: 30px;
  list-style: none;
  border-bottom: 2px solid #eee;
  margin: 0 0 1.5em 0;
  padding: 0;
}

.tab {
  cursor: pointer;
  font-weight: 600;
  position: relative;
  padding: 10px 0;
  opacity: 0.6;
}

.tab.active {
  opacity: 1;
}

.tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  background: #ffdd00;
  border-radius: 2px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  justify-items: center;
}

.homepage-section {
  position: relative;
  padding: 40px 0;
}

.ajax-products {
  position: relative;
  transition: min-height 0.3s ease;
}

.ajax-products.loading {
  opacity: 0.8;
}

.homepage-section .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.homepage-section .loading-spinner {
  display: none;
  text-align: center;
  padding: 20px;
}

.homepage-section .loading-spinner.active {
  display: block;
}

.product-grid.fade-in {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.product-card {
  padding: 0;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-bottom: 2px solid #ffdd00;
}

.product-image {
  position: relative;
  width: 100%;
  height: 250px;
}

.sale-badge {
  position: absolute;
  color: #f7c948;
  top: 10px;
  left: 10px;
  width: 50px; /* tùy chỉnh */
  height: 66px; /* tùy chỉnh */
  display: flex;
  align-items: center;
  justify-content: center;
}

.sale-badge-bg path {
  fill: #fcb900;
}

.sale-badge-text {
  position: absolute;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
}

.price-regular {
  text-decoration: line-through;
  color: #888;
  margin-left: 6px;
  font-size: 0.9em;
}

.product-title {
  font-weight: 600;
  margin: 10px;
}

.product-rating {
  margin: 10px 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.starbap-star i {
  color: #dfe519;
  margin-right: 2px;
}

.btn-add-to-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 20px;
  border: 1px solid #f3ba1c;
  background-color: #fff;
  color: #f3ba1c;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: color 0.3s, border-color 0.3s;
  border-radius: 1px;
  text-transform: uppercase;
}

.btn-add-to-cart .call-icon {
  display: flex;
  align-items: center;
  font-size: 14px;
  transition: color 0.3s;
}

.btn-add-to-cart .cart-text {
  font-size: small;
}

/* Slide-in background */
.btn-add-to-cart::before {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #f7c948;
  z-index: 0;
  transition: left 0.3s;
}

.btn-add-to-cart:hover::before {
  left: 0;
}

.btn-add-to-cart:hover {
  color: #fff;
  border-color: #f7c948;
}

.btn-add-to-cart:hover .call-icon {
  color: #fff;
}

/* Make text & icon above pseudo element */
.btn-add-to-cart .call-icon,
.btn-add-to-cart .cart-text {
  position: relative;
  z-index: 1;
}

.pagination {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}

.pagination a,
.pagination span {
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
}

.pagination .current {
  background: #ffdd00;
  color: #000;
  border-color: #ffdd00;
  font-weight: 700;
}

.ajax-products {
  position: relative;
}

.product-grid.loading {
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.loading-spinner {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  border: 4px solid #ddd;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.loading-spinner.active {
  display: block;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.homepage-section .container .section-title {
  margin-bottom: 0;
}

.homepage-section .container .section-subtitle {
  margin-top: 0;
  margin-bottom: 10px;
}

.hp-services {
  margin-top: 30px;
  background: #fff;
}

.hp-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.hp-services .service {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.hp-services .service:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.hp-services .icon {
  background: #f7c948;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.hp-services .service:hover .icon {
  transform: translateY(-5px);
}

.hp-services .icon img {
  width: 32px;
  height: 32px;
}

.hp-services h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 0.5rem;
}

.hp-services p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

.hp-blog {
  padding: 60px 0;
}

.hp-blog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.hp-blog-header .section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}

.hp-blog-header .view-all {
  color: #f7c948;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}
.hp-blog-header .view-all:hover {
  color: #e0ac00;
}

.hp-blog-grid {
  display: grid;
  grid-template-columns: repeat(20, minmax(300px, 1fr));
  gap: 24px;
}

.hp-blog-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.hp-blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.hp-blog-card .thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.hp-blog-content {
  padding: 16px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hp-blog-title {
  font-size: 1.1rem;
  margin: 0 0 10px;
  line-height: 1.4;
}

.hp-blog-title a {
  text-decoration: none;
  color: #222;
  transition: color 0.3s;
}
.hp-blog-title a:hover {
  color: #f7c948;
}

.hp-blog-excerpt {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}

.hp-blog-meta {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #888;
}

.hp-blog-meta .readmore {
  color: #f7c948;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.hp-blog-meta .readmore:hover {
  color: #e0ac00;
}

.hp-blog .btn-view-all.btn-outline-primary {
  color: #fcb900; /* Màu chữ vàng */
  border-color: #fcb900; /* Viền vàng */
  background-color: transparent;
  transition: all 0.3s ease;
}

.hp-blog .btn-view-all.btn-outline-primary:hover {
  background-color: #fcb900; /* Nền vàng khi hover */
  color: #fff; /* Chữ trắng khi hover */
  border-color: #fcb900;
}

.site-footer {
  background: #fff; /* màu trắng */
  color: #333;
  font-size: 15px;
  padding: 50px 0 20px;
}

/* =========================
   Footer Styles
========================= */
.footer-expand-collapsed {
  background: #fff;
  color: #222;
  font-size: 15px;
  font-family: Arial, sans-serif;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-expand-collapsed a {
  color: #1100fc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-expand-collapsed a:hover {
  color: #000;
}

/* Container Grid */
.footer-maininfo .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

/* Widgets */
.widget-footer {
  flex: 1 1 25%;
  min-width: 220px;
  margin-bottom: 30px;
}

.widget-footer h4,
.widget-footer .title-footer,
.widget-footer .fter-title {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 18px;
}

/* Logo & Description */
.logo-footer img {
  max-width: 80px;
  margin-bottom: 20px;
}

.footer-description p {
  color: #222;
  line-height: 1.6;
}

.footer-certificates img {
  height: 40px;
  margin-right: 10px;
  margin-top: 10px;
}

/* Footer Links */
.footer-links,
.footerNav-link {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footerNav-link li {
  margin-bottom: 8px;
}

.footer-links a,
.footerNav-link a {
  color: #222;
}

.footer-links a:hover,
.footerNav-link a:hover {
  color: #f7c948;
}

/* Hotline */
.f-listtel p {
  margin-bottom: 6px;
}

/* Social Icons */
.footerNav-social {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  gap: 8px; /* khoảng cách giữa các icon */
}

.footerNav-social li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #000; /* viền đen */
  border-radius: 6px; /* bo góc */
  color: #000; /* icon màu đen */
  background-color: #fff; /* nền trắng */
  font-size: 16px;
  transition: all 0.3s ease;
}

.footerNav-social li a:hover {
  color: #fff; /* icon màu trắng khi hover */
  background-color: #f7c948; /* nền vàng khi hover */
  border-color: #f7c948; /* viền vàng khi hover */
}

/* Copyright */
.footer-copyright {
  padding: 15px 0;
  text-align: center;
  color: #999; /* chữ xám */
  background-color: #fff; /* nền trắng */
}

.footer-copyright a {
  color: #6c757d; /* link màu vàng */
  text-decoration: none;
}
.footer-copyright a:hover {
  color: #f7c948; /* link màu vàng đậm khi hover */
}

/* Responsive */
@media (max-width: 991px) {
  .widget-footer {
    flex: 1 1 45%;
  }
}

@media (max-width: 767px) {
  .footer-maininfo .container {
    flex-direction: column;
    gap: 20px;
  }

  .widget-footer {
    flex: 1 1 100%;
    text-align: center;
  }

  .footer-description,
  .address-footer {
    text-align: center;
  }

  .footer-social,
  .footerNav-social {
    justify-content: center;
  }
}

.footer-maininfo .widget-footer.address-footer ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.widget-footer ul {
  margin: 0;
}

.load-more-btn.btn-outline-primary {
  color: #fcb900; /* Màu chữ vàng */
  border-color: #fcb900; /* Viền vàng */
  background-color: transparent;
  transition: all 0.3s ease;
}

.load-more-btn.btn-outline-primary:hover {
  background-color: #fcb900; /* Nền vàng khi hover */
  color: #fff; /* Chữ trắng khi hover */
  border-color: #fcb900;
}

.out-of-stock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #777;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 3;
}

.btn-out-of-stock {
  background-color: #fff;
  color: #e7e7e7;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 20px;
  border: 1px solid #e7e7e7;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: color 0.3s, border-color 0.3s;
  border-radius: 1px;
  text-transform: uppercase;
}

.btn-out-of-stock .cart-text {
  font-size: small;
}

.btn-out-of-stock:hover {
  background-color: #fff;
  color: #e7e7e7;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #111;
}

.topbar-item .topbar-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #f7c948; /* vàng đồng bộ theme */
}

.topbar-item a {
  color: inherit;
  text-decoration: none;
}

.topbar-item a:hover {
  text-decoration: underline;
  color: #d6a100; /* vàng đậm hơn khi hover */
}

@media (max-width: 768px) {
  .topbar-inner {
    gap: 12px;
  }
  .topbar-item {
    font-size: 13px;
  }
  .topbar-item .topbar-icon {
    width: 16px;
    height: 16px;
  }
}

.header-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.header-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.header-btn:hover {
  opacity: 0.8;
}

.header-icon {
  width: 20px;
  height: 20px;
  stroke: white;
  vertical-align: middle;
}

.hp-blog-footer {
  text-align: center;
  margin-top: 24px;
}

.fab-container {
  position: fixed;
  bottom: 80px;
  right: 20px; /* ✅ nằm góc phải */
  z-index: 9999;
}

/* Nút chính */
.fab-main {
  background-color: #f9b233; /* vàng đồng bộ */
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.3s ease; /* xoay */
}

/* hover nút chính */
.fab-main:hover {
  transform: scale(1.1);
}

/* Khi menu active, xoay + thành × */
.fab-container.active .fab-main {
  transform: rotate(45deg);
}

.fab-options {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.fab-container.active .fab-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fab-option {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: #333;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: background 0.3s, transform 0.2s;
}

.fab-option:hover {
  background-color: #555;
  transform: scale(1.1);
}

.lucide {
  stroke: currentColor;
}

/* Contact Page Styles */
.contact-page {
  padding: 60px 20px;
}
.contact-hero {
  text-align: center;
  margin-bottom: 40px;
}
.contact-hero h1 {
  font-size: 36px;
  margin-bottom: 10px;
}
.contact-hero p {
  font-size: 18px;
  color: #555;
}

.contact-grid {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

/* Form */
.contact-form {
  flex: 1;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  outline: none;
  transition: 0.3s;
  font-size: 16px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #f9b233;
}
.btn-submit {
  background: #f9b233;
  color: #fff;
  padding: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s;
}
.btn-submit:hover {
  background: #e09b1f;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-radius: 8px;
  transition: background 0.3s ease;
  cursor: default;
}

.info-item:hover {
  background: rgba(249, 178, 51, 0.1); /* nền nhạt vàng */
}

.icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.info-item:hover .icon-wrapper {
  transform: translateY(-5px);
  background: #f9b233;
}

.icon {
  width: 28px;
  height: 28px;
  stroke: #f9b233;
  transition: stroke 0.3s ease;
}

.info-item:hover .icon {
  stroke: #fff;
}

.info-item h3 {
  margin: 0 0 5px;
  font-size: 18px;
  transition: color 0.3s ease;
}

.info-item p {
  margin: 0;
  color: #555;
  transition: color 0.3s ease;
}

.info-item:hover h3,
.info-item:hover p {
  color: #f9b233;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-info {
    gap: 20px;
  }
  .icon-wrapper {
    width: 44px;
    height: 44px;
  }
  .icon {
    width: 24px;
    height: 24px;
  }
  .contact-grid {
    flex-direction: column;
  }
}

.no-products {
  grid-column: 1 / -1; 
  min-height: 100px; 
}
