/* Mağaza footer'ı: marka, destek, navigasyon ve güven katmanlarını düzenler. */
.site-footer {
  padding: 14px 0 30px;
}

.footer-main {
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: clamp(30px, 3.2vw, 46px);
  padding: 28px 0 24px;
}

.footer-logo {
  width: min(100%, 240px);
  min-height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 14px;
}

.footer-logo img {
  width: auto;
  height: auto;
  max-width: 240px;
  max-height: 78px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.footer-logo:focus-visible,
.footer-social:focus-visible,
.footer-nav-group a:focus-visible,
.footer-whatsapp-button:focus-visible,
.footer-service-links a:focus-visible,
.footer-bottom-links a:focus-visible {
  border-radius: 10px;
  outline: 3px solid rgba(17, 17, 15, 0.24);
  outline-offset: 3px;
}

.footer-brand > p {
  max-width: 390px;
  font-size: 13px;
  line-height: 1.65;
}

.footer-socials {
  margin-top: 16px;
}

.footer-social {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.footer-social img {
  width: 18px;
  height: 18px;
}

.footer-content {
  min-width: 0;
}

.footer-links-grid {
  grid-template-columns: repeat(3, minmax(128px, 1fr)) minmax(210px, 238px);
  gap: clamp(16px, 1.8vw, 24px);
}

.footer-nav-group {
  min-width: 0;
}

.footer-nav-toggle {
  width: 100%;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--site-text);
  text-align: left;
  cursor: default;
}

.footer-nav-toggle > span:first-child {
  font-size: 14px;
  font-weight: 760;
}

.footer-nav-toggle-icon {
  display: none;
}

.footer-nav-group nav {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.footer-nav-group nav a {
  width: max-content;
  max-width: 100%;
  color: #625d55;
  font-size: 13px;
  line-height: 1.45;
  transition: color 160ms ease, transform 160ms ease;
}

.footer-nav-group nav a:hover {
  color: var(--site-text);
  transform: translateX(2px);
}

.footer-whatsapp-card {
  grid-column: auto;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  padding: 16px;
}

.footer-whatsapp-brand {
  margin-bottom: 8px;
}

.footer-whatsapp-brand img {
  width: 21px;
  height: 21px;
}

.footer-whatsapp-kicker {
  font-size: 10px;
}

.footer-whatsapp-card p {
  font-size: 12px;
  line-height: 1.55;
}

.footer-whatsapp-button {
  width: 100%;
  min-height: 40px;
  justify-content: space-between;
  margin-top: auto;
  border-radius: 14px;
  padding-inline: 13px;
  font-size: 12px;
}

.footer-service-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(17, 17, 15, 0.08);
  border-bottom: 1px solid rgba(17, 17, 15, 0.08);
  padding-block: 12px;
}

.footer-service-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-service-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4f4a43;
  font-size: 12px;
  font-weight: 720;
  white-space: nowrap;
}

.footer-service-links a:hover {
  color: var(--site-text);
}

.footer-service-links img {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.footer-payment-methods {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-payments {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 6px;
}

.footer-payment-badge {
  min-width: 50px;
  min-height: 32px;
  border-radius: 10px;
  padding: 5px 8px;
}

.footer-payment-badge img {
  max-width: 42px;
  height: 12px;
}

.footer-bank-transfer {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(17, 17, 15, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  padding-inline: 11px;
  color: #625d55;
  font-size: 11px;
  font-weight: 720;
  white-space: nowrap;
}

.footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  min-height: 54px;
  align-items: center;
  padding-top: 14px;
}

.footer-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.footer-credit-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px;
  border-radius: 7px;
  background: #f5f5f5;
}

.footer-credit-logo img {
  display: block;
  width: 106px;
  height: auto;
}

.footer-credit-logo:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.footer-bottom-links {
  justify-content: flex-end;
  gap: 10px 16px;
}

@media (max-width: 1180px) {
  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-main {
    gap: 26px;
  }

  .footer-links-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(210px, 0.85fr);
  }
}

@media (max-width: 1040px) {
  .footer-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .footer-links-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-whatsapp-card {
    grid-column: 1 / -1;
    min-height: 130px;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 0;
  }

  .site-footer {
    padding: 10px 0 94px;
  }

  .footer-main {
    gap: 24px;
    padding: 24px 0 18px;
  }

  .footer-logo {
    width: min(100%, 210px);
    min-height: 68px;
  }

  .footer-logo img {
    max-width: 210px;
    max-height: 68px;
  }

  .footer-brand > p {
    max-width: 340px;
  }

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

  .footer-nav-group {
    border-top: 1px solid rgba(17, 17, 15, 0.09);
  }

  .footer-nav-group:last-of-type {
    border-bottom: 1px solid rgba(17, 17, 15, 0.09);
  }

  .footer-nav-toggle {
    min-height: 52px;
    cursor: pointer;
  }

  .footer-nav-toggle > span:first-child {
    font-size: 14px;
  }

  .footer-nav-toggle-icon {
    width: 16px;
    height: 16px;
    display: block;
    position: relative;
  }

  .footer-nav-toggle-icon::before,
  .footer-nav-toggle-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 2px;
    width: 12px;
    height: 1.5px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms ease;
  }

  .footer-nav-toggle-icon::after {
    transform: rotate(90deg);
  }

  .footer-nav-toggle[aria-expanded="true"] .footer-nav-toggle-icon::after {
    transform: rotate(0);
  }

  .footer-nav-group nav {
    gap: 0;
    margin: 0;
    padding: 0 0 10px;
  }

  .footer-nav-group nav[hidden] {
    display: none;
  }

  .footer-nav-group nav a {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    padding-inline: 6px;
  }

  .footer-whatsapp-card {
    min-height: 142px;
    margin-top: 18px;
  }

  .footer-service-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-block: 12px;
  }

  .footer-service-links {
    width: 100%;
    justify-content: space-between;
    gap: 6px 12px;
  }

  .footer-service-links a {
    min-height: 30px;
    font-size: 11px;
  }

  .footer-payment-methods {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .footer-bottom {
    display: flex;
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
  }

  .footer-bottom-links {
    justify-content: flex-start;
  }
}
