/* =========================
   FOOTER CONTAINER
========================= */

.footer-container {
  width: min(1200px, calc(100vw - 64px));
  margin-inline: auto;
}

.catalog-footer-container {
  width: min(1440px, calc(100vw - 48px));
  margin-inline: auto;
}


/* =========================
   FOOTER
========================= */

.site-footer {
  width: 100%;
  background: white;
  border-top: 1px solid #d8d8d8;
  padding: 56px 0 32px;
	font-size: 16px;
}


/* =========================
   TOP GRID
========================= */

.footer-top {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 48px;
}


/* =========================
   COLUMNS
========================= */

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.footer-heading {
  margin: 0;
  color: #171717;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.15;
}


/* =========================
   LINKS
========================= */

.footer-column-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-column-links a {
  color: rgba(23, 23, 23, 0.75);
  font-size: 14px;
  line-height: 1.5;
}

.footer-column-links a:hover {
  color: #171717;
}


/* =========================
   DIVIDER
========================= */

.footer-divider {
  width: 100%;
  height: 1px;
  margin: 52px 0 36px;
  background: rgba(0, 0, 0, 0.08);
}


/* =========================
   BOTTOM
========================= */

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
}

.footer-legal a {
  color: #171717;
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
}

.footer-copyright {
  color: rgba(23, 23, 23, 0.55);
  font-size: 12px;
  line-height: 1.5;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {

  .footer-top {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 48px;
  }

}


/* =========================
   TABLET + LARGE MOBILE
========================= */

@media (max-width: 700px) {

  .footer-container,
  .catalog-footer-container {
    width: min(100%, calc(100vw - 40px));
  }

  .site-footer {
    padding-top: 44px;
  }

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 24px;
  }

}


/* =========================
   SMALL PHONES
========================= */

@media (max-width: 480px) {

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

}

/* =========================================================
   THEME TOGGLE
========================================================= */

.footer-theme-toggle {

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  padding: 8px 13px;

  border: 1px solid #d0d0d0;
  border-radius: 6px;

  background: transparent;
  color: #171717;

  font-family: inherit;
  font-size: 14px;
  line-height: 1;

  cursor: pointer;

  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.footer-theme-toggle:hover {

  background: #eeeeee;

  transform: translateY(-1px);

}

.theme-toggle-icon {

  font-size: 16px;
  line-height: 1;

}


/* =========================================================
   DARK MODE
========================================================= */

.dark-mode .footer-theme-toggle {

  border-color: #444444;

  background: #202020;

  color: #ffffff;

}

.dark-mode .footer-theme-toggle:hover {

  background: #2a2a2a;

  border-color: #555555;

}

/* =========================================================
   DARK MODE — FOOTER
========================================================= */

body.dark-mode .site-footer {
  background: #111111;
  border-top-color: #2a2a2a;
}

body.dark-mode .footer-heading {
  color: #f5f5f5;
}

body.dark-mode .footer-column-links a {
  color: rgba(245, 245, 245, 0.70);
}

body.dark-mode .footer-column-links a:hover {
  color: #ffffff;
}

body.dark-mode .footer-divider {
  background: rgba(255, 255, 255, 0.10);
}

body.dark-mode .footer-legal a {
  color: #f5f5f5;
}

body.dark-mode .footer-legal a:hover {
  color: #20e1ff;
}

body.dark-mode .footer-copyright {
  color: rgba(245, 245, 245, 0.50);
}