/* Purity footer module */
.purity-footer {
  padding: 34px 0 28px;
  background: #fffdfa;
  border-top: 1px solid rgba(31, 32, 38, 0.08);
}

.purity-footer__inner {
  width: var(--container);
  margin: 0 auto;
}

.purity-footer__top {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr 1.4fr;
  gap: 42px 34px;
  padding: 58px 0 54px;
}

.purity-footer__heading {
  margin: 0 0 26px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #1f2026;
}

.purity-footer__contact-list,
.purity-footer__links {
  display: grid;
  gap: 14px;
}

.purity-footer__contact-list a,
.purity-footer__links a,
.purity-footer__copyright,
.purity-footer__offers,
.purity-footer__subscribe-copy,
.purity-footer__policy,
.purity-footer__legal a,
.purity-footer__country {
  font-size: 16px;
  line-height: 1.55;
  color: #2f3440;
}

.purity-footer__links a,
.purity-footer__contact-list a,
.purity-footer__legal a,
.purity-footer__copyright a,
.purity-footer__offers a,
.purity-footer__policy a {
  transition: color 0.2s ease;
}

.purity-footer__links a:hover,
.purity-footer__contact-list a:hover,
.purity-footer__legal a:hover,
.purity-footer__copyright a:hover,
.purity-footer__offers a:hover,
.purity-footer__policy a:hover {
  color: #1f5147;
}

.purity-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 22px;
}

.purity-footer__social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(31, 32, 38, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f2026;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.purity-footer__social:hover {
  transform: translateY(-2px);
  border-color: #1f5147;
  background: #1f5147;
  color: #ffffff;
}

.purity-footer__social svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.purity-footer__social[aria-label="YouTube"] svg,
.purity-footer__social[aria-label="Facebook"] svg,
.purity-footer__social[aria-label="Snapchat"] svg,
.purity-footer__social[aria-label="TikTok"] svg {
  fill: currentColor;
  stroke: none;
}

.purity-footer__offers,
.purity-footer__subscribe-copy,
.purity-footer__policy,
.purity-footer__copyright {
  margin: 0;
}

.purity-footer__offers a,
.purity-footer__policy a,
.purity-footer__copyright a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.purity-footer__subscribe-copy {
  max-width: 420px;
  margin-bottom: 20px;
}

.purity-footer__subscribe-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.purity-footer__subscribe-state {
  margin-bottom: 12px;
}

.purity-footer__subscribe-message {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.purity-footer__subscribe-message--success {
  color: #1f5147;
}

.purity-footer__subscribe-message--error {
  color: #b4412f;
}

.purity-footer__subscribe-message--error ul {
  margin: 0;
  padding-left: 18px;
}

.purity-footer__field {
  flex: 1 1 auto;
}

.purity-footer__field input {
  width: 100%;
  height: 54px;
  padding: 0 22px;
  border: 1px solid rgba(31, 32, 38, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: #1f2026;
  font: inherit;
}

.purity-footer__field input::placeholder {
  color: #70737c;
}

.purity-footer__subscribe-form button {
  min-width: 138px;
  height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: #214d42;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease;
}

.purity-footer__subscribe-form button:hover {
  transform: translateY(-1px);
  background: #183b33;
}

.purity-footer__policy {
  font-size: 14px;
  font-style: italic;
}

.purity-footer__bottom {
  border-top: 1px solid rgba(31, 32, 38, 0.08);
  padding-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.purity-footer__bottom-left,
.purity-footer__bottom-right {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.purity-footer__country {
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.purity-footer__country svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.purity-footer__flag {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    linear-gradient(180deg, #b22234 0 14%, #fff 14% 28%, #b22234 28% 42%, #fff 42% 56%, #b22234 56% 70%, #fff 70% 84%, #b22234 84% 100%);
  position: relative;
  overflow: hidden;
}

.purity-footer__flag::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 9px;
  height: 10px;
  background: #3c3b6e;
}

.purity-footer__legal {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.purity-footer__payments {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.purity-footer__payment {
  width: 48px;
  height: 30px;
  padding: 4px 6px;
  border: 1px solid rgba(31, 32, 38, 0.1);
  border-radius: 4px;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.purity-footer__payment img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.purity-footer-popup {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(25, 19, 15, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.purity-footer-popup.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.purity-footer-popup__inner {
  width: min(420px, 100%);
  padding: 28px 24px 22px;
  border-radius: 24px;
  background: #fffdfa;
  box-shadow: 0 24px 52px rgba(28, 22, 18, 0.18);
  text-align: center;
}

.purity-footer-popup__text {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.6;
  color: #1f2026;
}

.purity-footer-popup__close {
  min-width: 120px;
  height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #214d42;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.purity-footer__field input:focus,
.purity-footer__subscribe-form button:focus-visible,
.purity-footer-popup__close:focus-visible,
.purity-footer__social:focus-visible,
.purity-footer__links a:focus-visible,
.purity-footer__contact-list a:focus-visible,
.purity-footer__legal a:focus-visible {
  outline: 2px solid #1f5147;
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1180px) {
  .purity-footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .purity-footer__top {
    grid-template-columns: 1fr;
    gap: 34px 24px;
    padding: 46px 0 42px;
  }

  .purity-footer__subscribe-form {
    flex-direction: column;
    align-items: stretch;
  }

  .purity-footer__subscribe-form button {
    width: 100%;
  }

  .purity-footer__bottom {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .purity-footer {
    padding: 18px 0 22px;
  }

  .purity-footer__top {
    grid-template-columns: 1fr;
    padding: 36px 0 34px;
  }

  .purity-footer__heading {
    margin-bottom: 18px;
  }

  .purity-footer__contact-list,
  .purity-footer__links {
    gap: 10px;
  }
}

/* ── Bộ Công Thương ── */
.purity-footer__bocongthuong {
  margin-top: 16px;
  margin-bottom: 8px;
}

.purity-footer__bocongthuong a {
  display: inline-block;
  transition: opacity 0.2s ease;
}

.purity-footer__bocongthuong a:hover {
  opacity: 0.8;
}

.purity-footer__bocongthuong img {
  display: block;
  max-width: 180px;
  height: auto;
}
