/* ---------------------------------------------------------------------------
   Footer: petrol ground, white type, gold column headings.
   --------------------------------------------------------------------------- */

.bs-footer {
  padding-block: 48px;
  background: var(--bs-blue);
  color: var(--bs-white);
}

.bs-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

@media only screen and (min-width: 990px) {
  .bs-footer__top { flex-wrap: nowrap; gap: 32px; }
}

/* ---------- Newsletter (optional, above the columns) ---------- */

.bs-newsletter { max-width: 480px; margin-bottom: 40px; }

.bs-newsletter__title { font-size: 24px; font-weight: 700; line-height: 30px; }
.bs-newsletter__text { margin-top: 12px; font-size: 14px; line-height: 1.6; }

.bs-newsletter__form { margin-top: 24px; }

body.bs-chrome .bs-newsletter input.bs-newsletter__input {
  width: 100%;
  height: 48px;
  padding: 0 24px;
  border: 1px solid var(--bs-white);
  border-radius: 24px;
  background: transparent;
  color: var(--bs-white);
  font-family: var(--bs-font);
  font-size: 16px;
  box-shadow: none;
}

body.bs-chrome .bs-newsletter input.bs-newsletter__input::placeholder { color: rgba(255, 255, 255, .75); opacity: 1; }
body.bs-chrome .bs-newsletter input.bs-newsletter__input:focus { outline: none; background: rgba(255, 255, 255, .1); }

.bs-newsletter__submit { margin-top: 16px; }
.bs-newsletter__fine { margin-top: 16px; font-size: 12px; color: var(--bs-blue-light); }

/* ---------- Brand column ---------- */

.bs-footer__brand { flex: 1 1 100%; max-width: 420px; }

@media only screen and (min-width: 990px) {
  .bs-footer__brand { flex: 0 0 340px; }
}

@media only screen and (min-width: 1200px) {
  .bs-footer__brand { flex: 0 0 400px; }
}

/* A site with a custom logo prints an <img> here; one without prints the
   wordmark. Both have to land on the same footprint. */
.bs-footer__logo { display: inline-flex; align-items: center; color: var(--bs-white); }
.bs-footer__logo svg { display: block; height: auto; }
.bs-footer__logo img { display: block; width: auto; max-height: 44px; }

.bs-footer__company-name { margin: 20px 0 0; font-size: 18px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.bs-footer__tagline { margin: 10px 0 0; max-width: 360px; font-size: 15px; line-height: 1.6; }

.bs-footer__contact { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.bs-footer__contact li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.5; }
.bs-footer__contact svg { flex: 0 0 20px; margin-top: 2px; }
.bs-footer__contact a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Link columns ---------- */

.bs-footer__cols {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

@media only screen and (min-width: 990px) {
  .bs-footer__cols { flex: 1 1 0; flex-wrap: nowrap; gap: 24px; justify-content: space-between; }
}

.bs-footer__col { flex: 1 1 160px; min-width: 160px; }

.bs-footer__heading {
  color: var(--bs-gold);
  font-size: 18px;
  font-weight: 700;
}

.bs-footer__list { margin-top: 16px; }
.bs-footer__list li { margin-bottom: 12px; }
.bs-footer__list a, .bs-footer__list span { font-size: 16px; }
.bs-footer__list a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* The social icons: round, outlined, under the About column. */
.bs-socials { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.bs-socials a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1.5px solid var(--bs-white); border-radius: 50%; color: var(--bs-white); transition: background var(--bs-dur) var(--bs-ease), color var(--bs-dur) var(--bs-ease); }
.bs-socials a:hover { background: var(--bs-white); color: var(--bs-blue); }

/* ---------- Bottom ---------- */

.bs-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--bs-blue-border);
}

.bs-footer__meta { flex: 1 1 320px; }

/* Payment chips: used on the product page. */
.bs-payments { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.bs-payments__label { margin-right: 8px; font-size: 14px; }

.bs-payments img,
.bs-payments span.bs-payment {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  min-width: 38px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--bs-white);
  color: var(--bs-black);
  font-size: 10px;
  font-weight: 700;
}

/* Registration badges (Bộ Công Thương, DMCA), right of the company lines. */
.bs-footer__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.bs-footer__badges a { display: flex; }
.bs-footer__badges img { display: block; max-height: 48px; height: auto; width: auto; border-radius: 4px; background: var(--bs-white); } /* Each badge at its own size, capped: the DMCA one is only 28px tall and would blur if stretched. */

.bs-footer__company {
  margin: 0;
  color: var(--bs-white);
  font-size: 13px;
  line-height: 1.8;
}

.bs-footer__legal {
  margin: 12px 0 0;
  color: var(--bs-blue-light);
  font-size: 12px;
}

/* ---------------------------------------------------------------------------
   Floating contact buttons: Zalo, phone, Messenger, bottom right.
   Round icons; on a wide screen each slides left on hover to show its label.
   Below the header (300) and the drawer (400), above page content.
   --------------------------------------------------------------------------- */

.bs-cta { position: fixed; right: 20px; bottom: 80px; z-index: 250; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

.bs-cta__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 56px;
  height: 56px;
  padding: 0 12px;
  border-radius: 28px;
  background: var(--bs-white);
  color: var(--bs-black);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
  transition: width var(--bs-dur) var(--bs-ease), box-shadow var(--bs-dur) var(--bs-ease), background var(--bs-dur) var(--bs-ease);
}

.bs-cta__icon { display: flex; flex: 0 0 32px; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; }
.bs-cta__icon img { display: block; width: 32px; height: 32px; }
.bs-cta__item--phone .bs-cta__icon { background: #50a81d; color: var(--bs-white); }

.bs-cta__text { display: flex; flex-direction: column; opacity: 0; transition: opacity var(--bs-dur) var(--bs-ease); }
.bs-cta__text strong { font-size: 14px; font-weight: 700; line-height: 1.2; }
.bs-cta__text small { margin-top: 3px; color: var(--bs-gray); font-size: 12px; line-height: 1.2; }

@media (hover: hover) and (min-width: 990px) {
  .bs-cta__item:hover { width: 190px; background: #fffceb; box-shadow: 0 10px 18px rgba(0, 0, 0, .2); }
  .bs-cta__item:hover .bs-cta__text { opacity: 1; transition-delay: .1s; }
}

/* Keep clear of the cart's bottom bar and the keyboard on a phone. */
@media only screen and (max-width: 989px) {
  .bs-cta { right: 12px; bottom: 16px; }
}
