/* HEADER */
body {
  background-color: #121212;
  color: #fff;
  display: flex;
  flex-direction: column;
}
.topbar {
  background-color: #000;
  font-size: 0.9rem;
  transition: all 0.4s ease;
}
.topbar.hide {
  transform: translateY(-100%);
  opacity: 0;
}
.email {
  text-decoration: none;
  color: white;
}
.navbar {
  background-color: #1d1d1d;
  position: sticky;
  top: 0;
  z-index: 1020;
}
.nav-link {
  color: #ddd !important;
  transition: color 0.3s;
}

/*INPUT */
.input-search {
  height: 36px;
  width: 280px;
  padding: 10px 20px;
  border: 1.5px solid #ccc;
  border-radius: 999px;
  outline: none;
  background-color: #fff;
  margin-left: 20px;
  font-size: 14px;
  color: #333;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.input-search::placeholder {
  color: #aaa;
}

.input-search:focus {
  border-color: #2b2c31;
  box-shadow: 0 0 15px rgba(173, 160, 151, 0.4);
}
.nav-link:hover,
.nav-link.active {
  color: #8d8787;
}
.nav-item {
  transition: all 0.3s ease;
}
.nav-item:hover {
  margin: 0 6px;
  transform: scale(1.5);
}
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
}
.navbar-brand {
  font-weight: bold;
  color: #fff;
}
.nav-item.dropdown:last-child .dropdown-menu {
  right: 0;
  left: auto;
}

/* CONTENT */

.card {
  background-color: #1e1e1e;
  border: 1px solid #333;
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}
.btn-custom {
  background-color: #ffc107;
  border: none;
  color: #000;
  font-weight: 500;
}
.btn-custom:hover {
  background-color: #e0a800;
  color: #fff;
}

/* BTN CUSTOM FILTER */
.btn-custom-filter {
  width: 150px;
  background-color: #f9c300;
  color: #000;
  border: none;
  border-radius: 30px;
  padding: 10px 30px;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
}
.btn-custom-filter:hover {
  background-color: #ffda47;
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
.btn-custom-filter:active {
  transform: translateY(0);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}
.btn-custom filter:hover {
  background-color: #e0a800;
  color: #fff;
}

/* Chỉnh kích thước ảnh */
.carousel-item {
  width: 100%;
  object-fit: cover; /* đều ảnh */
}
.card-img-top {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* FOOTER */
footer {
  background-color: #000;
  color: white;
  margin-top: auto;
}
footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}
footer a:hover {
  color: white;
  transform: translateX(5px);
}
footer h5 {
  font-weight: bold;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}
footer h5::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #faf767;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s ease;
}
.social-links a:hover {
  background: white;
  color: #667eea;
  transform: translateY(-5px);
}
.footer-bottom {
  background: #1d1d1d;
  padding: 20px 0;
  margin-top: 40px;
}
.footer-item ul li a {
  padding-left: 14px;
  display: flex;
  align-items: center;
  text-align: left;
  width: 100%;
  height: 40px;
  background: rgba(219, 202, 202, 0.1);
  border-radius: 50px;
  transition: all 0.3s ease;
}
.footer-item ul li a:hover {
  color: rgb(15, 97, 124);
  background: white;
  transform: translateX(5px);
}

@media screen and (max-width: 768px) {
  .nav-item:hover {
    transform: none;
  }
}

/* PRODUCTS */
.btn-product {
  width: 100%;
  color: rgb(247, 224, 224);
  display: list-item;
  justify-items: center;
  text-align: left;
  width: 200px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  transition: all 0.3s ease;
}
.btn-product:hover {
  color: rgb(126, 129, 138);
  background: white;
  transform: translateY(-5px);
}
.dropdown-offcanvas ul li a {
  color: rgb(244, 236, 50);
  display: list-item;
  justify-items: center;
  text-align: left;
  width: 100;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}
.dropdown-menu {
  width: 100px;
}

/*ACCORDION FILTER*/
.offcanvas .accordion-item {
  background-color: transparent;
  border: none;
}
.offcanvas .accordion-button {
  background-color: transparent;
  color: #fff;
  font-weight: 500;
  padding: 1rem 1.25rem;
}
.offcanvas .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}
.offcanvas .accordion-button:not(.collapsed) {
  background-color: #e7f1ff;
  color: #0d6efd;
}

.offcanvas .accordion-button::after {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.offcanvas .accordion-button:not(.collapsed)::after {
  filter: none;
}
.offcanvas .accordion-body {
  background-color: #f8f9fa;
  color: #212529;
}
.offcanvas .form-check-label {
  color: #212529;
}
.offcanvas .form-check-input {
  border-color: #aaa;
}
.offcanvas .form-check-input:checked {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

/* AUTH */
.login-form-container {
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  /* border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); */
}

.form-floating .form-control {
  background-color: transparent;
  color: #fff;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 0;
  transition: border-color 0.3s ease;
}

.form-floating .form-control:focus {
  background-color: transparent;

  box-shadow: none;
  border-bottom-color: #ffc107;
}
.form-floating > label {
  color: rgba(255, 255, 255, 0.5);
}

.btn-login {
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #ffc107, #ff9800);
  transition: all 0.3s ease;
}

.btn-login:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.btn-social {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-social:hover {
  background-color: #ffc107;
  color: #212529;
  transform: scale(1.1);
}

/* PRODUCT_DETAIL */

.product-image {
  max-width: 100%;
  border-radius: 15px;
}
.product-price .sale {
  font-size: 2rem;
  color: #dc3545;
}
.product-price .original {
  text-decoration: line-through;
  color: #6c757d;
}
.btn-product-detail {
  width: 100%;
  color: rgb(237, 248, 87);
  border: none;
  display: inline;
  width: 150px;
  height: 40px;
  background: rgba(226, 215, 215, 0.1);
  border-radius: 50px;
  transition: all 0.3s ease;
}
.btn-product-detail:hover {
  color: rgb(126, 129, 138);
  background: white;
  transform: translateY(-5px);
}
