/*
Theme Name:           Flatsome
Theme URI:            http://flatsome.uxthemes.com
Author:               UX-Themes
Author URI:           https://uxthemes.com
Description:          Multi-Purpose Responsive WooCommerce Theme
Version:              3.20.3
Requires at least:    6.4
Requires PHP:         7.4
WC requires at least: 8.3
Text Domain:          flatsome
License:              https://themeforest.net/licenses
License URI:          https://themeforest.net/licenses
*/


/***************
All custom CSS should be added to Flatsome > Advanced > Custom CSS,
or in the style.css of a Child Theme.
***************/
.headerbar-auth a {
    color: #fff;
    font-weight: 500;
    font-size: 16px;
}

.slider-top img {
    border-radius: 19px;
}

/* ===== Icon nổi góc trái ===== */
#floating-icon {
    position: fixed;
    bottom: 107px;
    width: 90px;
    margin-left: 10px;
    height: 90px;
    border-radius: 50%;
    /* background: radial-gradient(circle at center, #2b2b2b 40%, #000 100%); */
    /* box-shadow: 0 0 25px rgba(255, 215, 0, 0.4); */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: pointer;
    /* border: 2px solid rgba(255, 215, 0, 0.6); */
    transition: left 0.4s 
ease, transform 0.3s ease;
    overflow: visible !important;
}

#floating-icon img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* ===== Nút đóng (❌) ===== */
#floating-icon .close-btn {
    position: absolute;
    top: -13px;
    right: -34px;
    width: 30px;
    height: 8px;
    border: none;
    padding: 17px;
    border-radius: 50%;
    /* background: rgba(0, 0, 0, 0.7); */
    color: #fff;
    font-size: 17px;
    margin-right: 18px;
    line-height: 9px;
    /* text-align: center; */
    cursor: pointer;
    z-index: 10000;

}

#floating-icon .close-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* Khi cuộn thì dịch trái 20px */
#floating-icon.moving {
  margin-left: 1px;
}

/* Hover nhẹ */
#floating-icon:hover {
  transform: scale(1.05);
}

/* Mobile responsive */
@media (max-width: 600px) {
  #floating-icon {
    bottom: 25px;
    left: 15px;
    width: 70px;
    height: 70px;
  }

  #floating-icon .close-btn {
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    font-size: 13px;
  }
}

/* ===== Icon nổi góc trái ===== */


/* ===== Nút Back To Top ===== */
.back-to-top {
    position: fixed;
    bottom: 128px;
    right: 922px !important;
    display: flex;
    align-items: center;
    gap: 3px;
    background: #0c0c0cf0;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    padding: 13px 24px;
    border-radius: 20px;
    cursor: pointer;
    z-index: 9999;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
 /* background: #f5d46a;*/
  transform: translateY(-3px);
}

/* Icon bên trái chữ */
.back-to-top img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* ===== Nút Back To Top ===== */


/* --- Banner cố định trên đầu trang --- */
.top-banner {
  top: 0;
  left: 0;
  width: 100%;
  background: #000;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  z-index: 9999;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
  font-family: 'Inter', sans-serif;
}

/* Logo bên trái */
.banner-logo {
     height: 47px;
    margin-right: -22px;
}

/* Nội dung chữ */
.banner-text {
  flex: 1;
  font-weight: 700;
  font-size: 22px;
  text-align: center;
  color: #fff;
}

/* Nút tải app */
.banner-btn {
  background: #126de7;
    color: #fff;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}

.banner-btn:hover {
  background: #b8931e;
}

/* Nút X đóng banner */
.banner-close {
  position: absolute;
  left: 1px;
  top: 8px;
  background: none;
  border: none;
  color: #c4c4c4;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  transition: 0.2s;
}

.banner-close:hover {
  color: #fff;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .banner-text {
    font-size: 16px;
  }
  .banner-logo {
    height: 30px;
  }
  .banner-btn {
    padding: 6px 12px;
    font-size: 14px;
  }
}

/* --- Banner cố định trên đầu trang --- */