/* ==========================================================================
   Footer Styling - BRIGHT THEME (Đặt trong /css/footer.css)
   ========================================================================== */

.site-footer {
  background-color: #ffffff; /* Nền trắng tinh */
  color: #555; /* Màu chữ chung (xám đậm vừa) */
  padding: 30px 0 15px 0;
  font-size: 0.88em;
  border-top: 1px solid #e9ecef; /* Border trên rất nhạt */
  margin-top: auto;
}

/* --- Phần các cột link --- */
.footer-columns-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9ecef; /* Border dưới rất nhạt */
}

.footer-column {
  flex: 1;
  min-width: 200px;
  margin-left: 30px;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 600;
  color: #212529; /* Màu heading (đen nhạt) */
  margin-bottom: 10px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  color: #495057; /* Màu link (xám đậm hơn chữ thường một chút) */
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: #007bff; /* Màu link khi hover (xanh dương - màu nhấn) */
}

.footer-contact-info {
  line-height: 1.6;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: #555; /* Giống màu chữ chung */
}
.footer-contact-info a {
  color: #007bff; /* Màu link liên hệ (xanh dương - màu nhấn) */
}
.footer-contact-info a:hover {
  text-decoration: underline;
}

.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.social-icons a {
  display: inline-block;
  opacity: 0.6; /* Giảm opacity chút cho icon đỡ chói */
  transition: opacity 0.3s ease;
}
.social-icons a:hover {
  opacity: 1;
}
.social-icons img {
  width: 20px;
  height: 20px;
  display: block;
}

/* --- Phần dưới cùng (footer-bottom) --- */
.footer-bottom {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 15px;
  padding-top: 15px;
  font-size: 0.82em;
  color: #6c757d; /* Màu chữ phần bottom (xám nhạt hơn) */
}

.copyright-info {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  line-height: 1.5;
  margin: 0;
  color: #6c757d; /* Giống .footer-bottom */
}
.copyright-info p {
  margin: 0;
}
.dmca-badge img {
  height: 18px;
  vertical-align: middle;
  margin-left: 5px;
  /* Không cần filter nếu badge đã có màu phù hợp nền sáng */
}

.payment-methods {
  display: flex;
  gap: 8px;
  align-items: center;
}
.payment-methods img {
  height: 20px;
  /* Không cần filter nếu icon payment đã có màu phù hợp nền sáng */
}

.footer-back-to-top {
  margin-left: auto; /* Bỏ dòng này nếu muốn nút (và khung chứa nó) được căn giữa bởi .footer-bottom
                              /* Nếu bỏ, justify-content: center của .footer-bottom sẽ tác động đến mục này */
  display: flex;
  justify-content: center;
  align-items: center;
}
.back-to-top {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 55px;
  height: 60px;
  border-radius: 3px;
  opacity: 1;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s,
    background-color 0.3s ease;
}
.back-to-top.visible {
  opacity: 0.7; /* Tăng opacity cho dễ thấy trên nền sáng */
  visibility: visible;
  transition-delay: 0s;
  display: flex;
  justify-content: center;
  justify-items: center;
  align-items: center;
  justify-items: center;
}
.back-to-top:hover {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ced4da; /* Đậm hơn chút khi hover */
  opacity: 1;
}
.back-to-top svg {
  width: 50px;
  height: auto;
  /* Nếu icon gốc màu trắng, cần chuyển sang tối: */
  filter: brightness(0.2);
  /* Hoặc nếu icon đã là màu tối thì không cần filter hoặc filter nhẹ: */
  /* filter: brightness(0.5); */
}

/* ==========================================================================
       Responsive Footer - Compact Version (Giữ nguyên cấu trúc nhiều cột)
       ========================================================================== */

/* Các media query không cần thay đổi về màu sắc, chỉ thay đổi layout */
@media (max-width: 992px) {
  /* Tablet */
  .footer-columns-wrapper {
    gap: 20px;
  }
  .footer-column {
    flex-basis: calc(50% - 10px);
    min-width: 0;
    /* margin-left giữ nguyên hoặc điều chỉnh nếu thấy cần thiết */
  }
}

@media (max-width: 768px) {
  /* Mobile */
  .footer-columns-wrapper {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 15px;
    margin-bottom: 15px;
  }
  .footer-column {
    flex-basis: auto;
    width: 100%;
    margin-left: 0; /* Căn lề trái cho mobile khi xếp dọc */
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  .copyright-info {
    order: 2;
    text-align: center;
  }

  .footer-secondary-links {
    order: 1;
    margin-bottom: 10px;
  }

  .footer-back-to-top {
    order: 3;
    margin-left: 0;
  }

  .social-icons {
    order: 4;
    justify-content: center;
    margin-top: 10px;
  }

  .back-to-top {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 99;
  }
}
