/* Storefront footer. One component layer shared by all storefront pages. */

.site-footer {
  --footer-edge: 16px;
  --footer-max-width: var(--bodycare-content-width, 1440px);
  --footer-content-width: min(calc(100% - var(--footer-edge) - var(--footer-edge)), var(--footer-max-width));

  position: relative;
  isolation: isolate;
  width: 100%;
  margin-top: clamp(48px, 6vw, 72px);
  overflow: hidden;
  overflow-x: hidden;
  padding: clamp(42px, 5vw, 68px) 0 clamp(24px, 3vw, 34px);
  background: var(--theme-footer-bg, #130a10);
  color: var(--paper);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body.home-page .site-footer {
  margin-top: 0;
}

.checkout-page .site-footer {
  display: none;
}

.site-footer,
.site-footer * {
  box-sizing: border-box;
}

.site-footer::before {
  position: absolute;
  inset: -18%;
  z-index: 0;
  background: var(--theme-footer-background);
  background-position: 0% 42%, 100% 58%, center;
  background-size: 260% 260%, 220% 220%, 100% 100%;
  content: "";
  pointer-events: none;
  transform: translate3d(-2%, -1%, 0) scale(1.04);
  animation: bodycareFooterAuroraDrift 28s ease-in-out infinite alternate;
  will-change: background-position, transform;
}

.site-footer::after {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  content: "";
  pointer-events: none;
}

@keyframes bodycareFooterAuroraDrift {
  0% {
    background-position: 0% 42%, 100% 58%, center;
    transform: translate3d(-2%, -1%, 0) scale(1.04);
  }

  50% {
    background-position: 38% 36%, 70% 64%, center;
    transform: translate3d(1%, 0.8%, 0) scale(1.055);
  }

  100% {
    background-position: 72% 44%, 28% 52%, center;
    transform: translate3d(-1%, 1.4%, 0) scale(1.045);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer::before {
    animation: none;
    background-position: 54% 48%, 46% 52%, center;
    transform: none;
    will-change: auto;
  }
}

.site-footer > :is(.footer-main, .footer-service, .footer-app-strip, .footer-bottom) {
  position: relative;
  z-index: 2;
  width: var(--footer-content-width);
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.site-footer a {
  color: inherit;
}

.footer-main {
  display: grid;
  align-items: start;
  gap: clamp(34px, 5vw, 84px);
}

.footer-brand {
  display: grid;
  max-width: 640px;
  align-content: start;
  gap: 14px;
}

.footer-logo {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  color: var(--paper);
  text-decoration: none;
}

.footer-logo__mark {
  display: block;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(var(--theme-accent-rgb), 0.16));
}

.footer-logo__text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--paper);
  font-family: var(--display-font);
  font-size: clamp(31px, 2.45vw, 42px);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-rendering: geometricPrecision;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
}

.footer-brand p {
  max-width: 500px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.footer-subscribe {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-auto-rows: 52px;
  gap: 10px;
  align-items: stretch;
  width: min(520px, 100%);
  margin-top: 6px;
  padding: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.065));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 38px rgba(0, 0, 0, 0.1);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.footer-subscribe:focus-within {
  border-color: rgba(var(--theme-accent-rgb), 0.52);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 3px rgba(var(--theme-accent-rgb), 0.1),
    0 16px 38px rgba(0, 0, 0, 0.1);
}

.footer-subscribe.is-error {
  border-color: rgba(255, 104, 135, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 3px rgba(255, 104, 135, 0.1),
    0 16px 38px rgba(0, 0, 0, 0.1);
}

.footer-subscribe.is-success {
  border-color: rgba(91, 220, 159, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 3px rgba(91, 220, 159, 0.1),
    0 16px 38px rgba(0, 0, 0, 0.1);
}

.footer-subscribe input {
  min-width: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  outline: 0;
  background: rgba(255, 255, 255, 0.12);
  color: var(--paper);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 15px;
  font-weight: 850;
}

.footer-subscribe input::placeholder {
  color: rgba(255, 255, 255, 0.66);
}

.footer-subscribe input:focus-visible {
  border-color: rgba(var(--theme-accent-rgb), 0.58);
  background: rgba(255, 255, 255, 0.16);
}

.footer-subscribe input[aria-invalid="true"] {
  border-color: rgba(255, 104, 135, 0.72);
}

.footer-subscribe button {
  min-width: 132px;
  height: 100%;
  min-height: 0;
  padding: 0 18px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  color: var(--pink);
  box-shadow: none;
  font-size: 12px;
  font-weight: 950;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: normal;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.footer-subscribe button:hover,
.footer-subscribe button:focus-visible {
  background: var(--pink);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(var(--theme-accent-rgb), 0.24);
  transform: translateY(-1px);
}

.footer-subscribe__message {
  grid-column: 1 / -1;
  min-height: 16px;
  margin: 0 14px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.footer-subscribe__message:empty {
  display: none;
}

.footer-subscribe__message.is-error {
  color: #ff9ab9;
}

.footer-subscribe__message.is-success {
  color: #8df0bd;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px clamp(48px, 5.4vw, 92px);
  min-width: 0;
}

.footer-links section {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 11px;
}

.footer-links h3 {
  min-width: 0;
  margin: 0 0 8px;
  color: var(--paper);
  font-family: var(--display-font);
  font-size: clamp(21px, 1.35vw, 24px);
  line-height: 1;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.footer-links h3::after {
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--pink);
  content: "";
  opacity: 0.78;
}

.footer-links a {
  display: inline-flex;
  width: auto;
  min-width: 0;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.64);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-decoration: none;
  transition:
    color 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-service {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  margin-top: clamp(34px, 4vw, 52px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 22px 54px rgba(0, 0, 0, 0.13);
}

.footer-service > div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  min-width: 0;
  min-height: 96px;
  height: 100%;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
  transition: background 160ms ease;
}

.footer-service > div:last-child {
  border-right: 0;
}

.footer-service > div:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.05));
}

.footer-service__brand,
.footer-service__icon,
.footer-service svg {
  display: block;
  box-sizing: border-box;
  width: 38px;
  height: 38px;
  padding: 7px;
  border: 1px solid rgba(var(--theme-accent-rgb), 0.24);
  border-radius: 8px;
  background: rgba(var(--theme-accent-rgb), 0.11);
  color: var(--pink);
  object-fit: contain;
}

.footer-service__brand,
.footer-service svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.footer-service__copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.footer-service span {
  display: block;
  min-width: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.footer-service strong {
  display: block;
  min-width: 0;
  color: var(--paper);
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 950;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.footer-app-strip {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  margin-top: 12px;
  padding: 20px 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(var(--theme-accent-rgb), 0.16), rgba(255, 255, 255, 0.055) 44%, rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.footer-app-strip__copy {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 5px;
}

.footer-app-strip__copy span {
  min-width: 0;
  color: var(--pink);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.footer-app-strip__copy strong {
  max-width: 820px;
  min-width: 0;
  color: var(--paper);
  font-size: clamp(18px, 1.35vw, 22px);
  font-weight: 950;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.footer-app-strip__copy em {
  max-width: 720px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.footer-app-strip__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.footer-app-strip__actions a {
  display: inline-flex;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  overflow: hidden;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background: #ffffff;
  color: var(--pink);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  font-size: 14px;
  font-weight: 950;
  overflow-wrap: anywhere;
  text-align: center;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.footer-app-strip__actions a:hover,
.footer-app-strip__actions a:focus-visible {
  border-color: var(--pink);
  background: var(--pink);
  color: #ffffff;
  transform: translateY(-1px);
}

.footer-app-strip__actions svg,
.footer-app-strip__icon {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 72px;
  align-items: center;
  gap: 18px 24px;
  margin-top: clamp(28px, 3.2vw, 42px);
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 750;
}

.footer-bottom > span {
  min-width: 0;
  justify-self: start;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.footer-legal {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
  overflow: hidden;
}

.footer-legal a {
  width: auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.64);
  overflow-wrap: anywhere;
  text-decoration: none;
  white-space: normal;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: #ffffff;
}

.footer-social {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.footer-social a {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.065);
  color: var(--social-color, rgba(255, 255, 255, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  border-color: rgba(255, 255, 255, 0.22);
  background: #ffffff;
  color: var(--social-color, var(--pink));
  transform: translateY(-1px);
}

.footer-social__link--facebook {
  --social-color: #1877f2;
}

.footer-social__link--instagram {
  --social-color: #e4405f;
}

.footer-social__link--tiktok {
  --social-color: #25f4ee;
}

.footer-social__link--youtube {
  --social-color: #ff0033;
}

.footer-social__link--pinterest {
  --social-color: #e60023;
}

.footer-social__link--telegram {
  --social-color: #26a5e4;
}

.footer-social svg,
.footer-social__brand,
.footer-social__icon {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  fill: currentColor;
}

.footer-social__cutout {
  fill: var(--paper);
}

.footer-social__glyph {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

@media (min-width: 700px) {
  .site-footer {
    --footer-edge: 24px;
  }
}

@media (min-width: 1024px) {
  .site-footer {
    --footer-edge: 32px;
  }

  .footer-main {
    grid-template-columns: minmax(320px, 0.78fr) minmax(520px, 1.22fr);
    gap: clamp(72px, 7vw, 132px);
  }
}

@media (min-width: 1440px) {
  .site-footer {
    --footer-edge: var(--bodycare-content-edge);
  }
}

@media (min-width: 700px) and (max-width: 1279px) {
  .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 44px;
  }

  .footer-service {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-service > div:nth-child(2n) {
    border-right: 0;
  }

  .footer-bottom {
    grid-template-columns: 1fr auto;
  }

  .footer-legal {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 699px) {
  .site-footer {
    --footer-edge: 16px;

    padding-top: 38px;
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    max-width: 640px;
  }

  .footer-logo__mark {
    width: 40px;
    height: 40px;
  }

  .footer-logo__text {
    font-size: 30px;
  }

  .footer-subscribe {
    grid-template-columns: 1fr;
    padding: 8px;
  }

  .footer-subscribe button {
    width: 100%;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-links section {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-service {
    grid-template-columns: 1fr;
  }

  .footer-service > div {
    min-height: 84px;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .footer-service > div:last-child {
    border-bottom: 0;
  }

  .footer-app-strip {
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
  }

  .footer-app-strip__actions {
    justify-content: stretch;
  }

  .footer-app-strip__actions a {
    flex: 1 1 132px;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    min-height: auto;
    align-items: start;
  }

  .footer-legal,
  .footer-social {
    justify-content: flex-start;
  }
}

@media (max-width: 360px) {
  .footer-logo__text {
    font-size: 27px;
  }

  .footer-service strong {
    font-size: 15px;
  }
}
