/* Homepage / sitewide footer redesign — colors & compact layout only. */

/* Static pages (urun.html vb.) Next `.wrap` sınıfını yüklemiyor; yalnızca
   footer bölgeleri için aynı genişlik/gutter değerlerini burada tanımlıyoruz. */
footer.ts-footer > .wrap,
.ts-trust-band > .wrap,
.ts-subfooter > .wrap {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: 52px;
}

@media (max-width: 1100px) {
  footer.ts-footer > .wrap,
  .ts-trust-band > .wrap,
  .ts-subfooter > .wrap {
    padding-inline: 28px;
  }
}

@media (max-width: 700px) {
  footer.ts-footer > .wrap,
  .ts-trust-band > .wrap,
  .ts-subfooter > .wrap {
    padding-inline: 20px;
  }
}


:root {
  --ts-ft-green: #1A3A8F;
  --ts-ft-hover: #1A3A8F;
  --ts-ft-text: #20242C;
  --ts-ft-muted: #62736e;
  --ts-ft-link: #435e57;
  --ts-ft-bg: #f5f8f6;
  --ts-ft-trust: #F3F6FC;
  --ts-ft-bar: #101716;
  --ts-ft-yellow: #f6c453;
  --ts-ft-line: #d7e3de;
  --ts-ft-white: #ffffff;
}

/* Trust band */
.ts-trust-band {
  background: var(--ts-ft-trust);
  border-top: 1px solid var(--ts-ft-line);
  border-bottom: 1px solid var(--ts-ft-line);
}

.ts-trust-band-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  /* padding-block only — keep .wrap side gutters */
  padding-block: 18px;
}

.ts-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 4px 18px;
  border-right: 1px solid var(--ts-ft-line);
}

.ts-trust-item:last-child {
  border-right: 0;
}

.ts-trust-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ts-ft-green);
  background: var(--ts-ft-white);
  border: 1px solid var(--ts-ft-line);
}

.ts-trust-item strong {
  display: block;
  margin: 0 0 2px;
  color: var(--ts-ft-green);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
}

.ts-trust-item p {
  margin: 0;
  color: var(--ts-ft-muted);
  font-size: 13px;
  line-height: 1.4;
}

/* Main footer */
.ts-footer {
  background: var(--ts-ft-bg);
  color: var(--ts-ft-text);
  border-top: 0;
}

.ts-footer-main {
  display: grid;
  grid-template-columns: minmax(180px, 0.95fr) minmax(0, 2.4fr) minmax(200px, 0.95fr);
  gap: 28px 32px;
  align-items: start;
  /* padding-block only — keep .wrap side gutters */
  padding-block: 28px 24px;
}

.ts-footer-brand {
  display: grid;
  gap: 10px;
  align-content: start;
}

.ts-footer .ts-footer-logo.brand,
.ts-footer .brand.ts-footer-logo {
  min-width: 0 !important;
  width: fit-content;
  max-width: 168px;
}

.ts-footer .ts-footer-logo .brand-logo,
.ts-footer .brand.ts-footer-logo .brand-logo {
  width: 168px !important;
  max-width: 100%;
  height: auto !important;
  display: block;
}

/* Override legacy ::before logo rules inside new footer */
.ts-footer .brand::before,
.ts-footer .brand:before {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
}

.ts-footer-slogan {
  margin: 0;
  max-width: 220px;
  color: var(--ts-ft-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.ts-footer-about {
  margin: 0;
  max-width: 250px;
  color: var(--ts-ft-muted);
  font-size: 12.5px;
  line-height: 1.55;
}

/* Güvenlik ve Gizlilik şeridi — footer'ın en altında, ortalanmış/yayılmış. */
.ts-footer-truststrip {
  border-top: 1px solid var(--ts-ft-line);
}

.ts-footer-truststrip-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-block: 16px;
  text-align: center;
}

.ts-footer-truststrip h3 {
  margin: 0;
  color: var(--ts-ft-green);
  font-size: 13px;
  font-weight: 650;
}

.ts-footer-truststrip .ts-trust-badges {
  justify-content: center;
  gap: 10px 22px;
  width: 100%;
  max-width: 760px;
}

.ts-footer-contact-links {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.ts-footer-contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--ts-ft-green);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: color 200ms ease;
}

.ts-footer-contact-links a:hover {
  color: var(--ts-ft-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ts-footer-contact-links a:focus-visible {
  outline: 2px solid var(--ts-ft-green);
  outline-offset: 3px;
  border-radius: 4px;
}

.ts-footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 20px;
  align-items: start;
}

.ts-footer-col-title,
.ts-footer-aside h3 {
  margin: 0 0 10px;
  color: var(--ts-ft-green);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
}

.ts-footer-col-links {
  display: grid;
  gap: 7px;
}

.ts-footer-col-links a,
.ts-footer a:not(.brand):not(.ts-back-top) {
  color: var(--ts-ft-link);
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
  transition: color 200ms ease;
}

.ts-footer-col-links a:hover {
  color: var(--ts-ft-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ts-footer-col-links a:focus-visible {
  outline: 2px solid var(--ts-ft-green);
  outline-offset: 2px;
  border-radius: 3px;
}

.ts-footer-col-trigger {
  display: none;
}

.ts-footer-aside {
  display: grid;
  gap: 18px;
  align-content: start;
}

.ts-payment-cards,
.ts-trust-badges,
.ts-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ts-payment-iyzico {
  display: block;
  width: auto;
  max-width: 100%;
  height: 44px;
  margin: 0 0 16px;
  object-fit: contain;
  object-position: left center;
}

.ts-payment-tami-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin: 0 0 16px;
}

.ts-payment-tami {
  display: block;
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  height: 64px;
  margin: 0;
  border-radius: 8px;
}

.ts-payment-tami-text {
  color: #3d3d3d;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.ts-payment-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 40px;
  padding: 4px;
  background: var(--ts-ft-white);
  border: 1px solid var(--ts-ft-line);
  border-radius: 8px;
}

.ts-payment-card img {
  display: block;
  width: auto;
  height: 32px;
  max-width: 50px;
  object-fit: contain;
}

.ts-payment-cards {
  display: grid;
  grid-template-columns: repeat(4, 58px);
  gap: 8px;
}

.ts-payment-cards li:nth-child(1) { order: 1; }
.ts-payment-cards li:nth-child(2) { order: 2; }
.ts-payment-cards li:nth-child(3) { order: 3; }
.ts-payment-cards li:nth-child(4) { order: 4; }

.ts-trust-badges li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--ts-ft-line);
  border-radius: 999px;
  background: var(--ts-ft-white);
  color: var(--ts-ft-text);
  font-size: 12px;
  font-weight: 600;
}

.ts-social-links a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--ts-ft-line);
  background: var(--ts-ft-white);
  color: var(--ts-ft-green);
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.ts-social-links a:hover {
  background: var(--ts-ft-green);
  border-color: var(--ts-ft-green);
  color: var(--ts-ft-white);
}

.ts-social-links a:focus-visible {
  outline: 2px solid var(--ts-ft-yellow);
  outline-offset: 2px;
}

/* Dark bottom bar */
.ts-subfooter {
  background: var(--ts-ft-bar);
  color: #c5d0cb;
  padding: 12px 0;
}

.ts-subfooter-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
}

.ts-subfooter-copy {
  margin: 0;
  color: #aeb8b3;
  font-size: 12px;
  line-height: 1.4;
}

.ts-subfooter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.ts-subfooter-links a {
  color: #9aa7a1;
  font-size: 12px;
  text-decoration: none;
  transition: color 200ms ease;
}

.ts-subfooter-links a:hover {
  color: #e8eeeb;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ts-subfooter-links a:focus-visible {
  outline: 2px solid var(--ts-ft-yellow);
  outline-offset: 2px;
  border-radius: 3px;
}

.ts-back-top {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: transparent;
  color: #e7eeea;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.ts-back-top:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.ts-back-top:focus-visible {
  outline: 2px solid var(--ts-ft-yellow);
  outline-offset: 2px;
}

/* Hide legacy footer leftovers if any remain */
.mh-footer-extension,
.mh-footer-benefits,
footer.footer,
.sub-footer {
  display: none !important;
}

/* Tighten gap between seller CTA and trust band without joining them */
.seller-banner.wrap {
  margin-bottom: 28px !important;
}

@media (max-width: 700px) {
  .seller-banner.wrap {
    margin-bottom: 20px !important;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .ts-trust-band-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding-block: 14px;
  }

  .ts-trust-item:nth-child(2n) {
    border-right: 0;
  }

  .ts-trust-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--ts-ft-line);
    padding-bottom: 12px;
    margin-bottom: 8px;
  }

  .ts-footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding-block: 24px 20px;
  }

  .ts-footer-columns {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ts-footer-aside {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
  }
}

@media (max-width: 900px) {
  .ts-footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 767px) {
  .ts-trust-band-grid {
    grid-template-columns: 1fr;
    padding-block: 12px;
  }

  .ts-trust-item {
    border-right: 0;
    border-bottom: 1px solid var(--ts-ft-line);
    padding: 14px 0;
    margin: 0;
  }

  .ts-trust-item:last-child {
    border-bottom: 0;
  }

  .ts-trust-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--ts-ft-line);
    margin-bottom: 0;
    padding-bottom: 14px;
  }

  .ts-footer-main {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-block: 22px 18px;
  }

  .ts-footer .ts-footer-logo.brand,
  .ts-footer .brand.ts-footer-logo {
    max-width: 140px;
  }

  .ts-footer .ts-footer-logo .brand-logo,
  .ts-footer .brand.ts-footer-logo .brand-logo {
    width: 140px !important;
  }

  .ts-footer-columns {
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--ts-ft-line);
  }

  .ts-footer-col {
    border-bottom: 1px solid var(--ts-ft-line);
  }

  .ts-footer-col-title {
    display: none;
  }

  .ts-footer-col-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ts-ft-green);
    font-size: 14px;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
  }

  .ts-footer-col-trigger:focus-visible {
    outline: 2px solid var(--ts-ft-green);
    outline-offset: 2px;
    border-radius: 4px;
  }

  .ts-footer-col-chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 200ms ease;
  }

  .ts-footer-col.is-open .ts-footer-col-chevron {
    transform: rotate(-135deg);
  }

  .ts-footer-col-links {
    gap: 10px;
    padding: 0 0 14px;
  }

  .ts-footer-aside {
    grid-template-columns: 1fr;
  }

  .ts-payment-cards {
    gap: 8px;
  }

  .ts-payment-card {
    width: 58px;
    height: 40px;
    padding: 4px;
  }

  .ts-subfooter-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .ts-subfooter-links {
    width: 100%;
    gap: 8px 14px;
  }

  .ts-back-top {
    margin-left: 0;
    align-self: stretch;
    justify-content: center;
  }
}

/* Guard: legacy customer-header.css also defines .ts-footer-main with
   padding shorthand that zeros .wrap gutters — keep side padding. */
footer.ts-footer > .wrap.ts-footer-main,
.ts-trust-band > .wrap.ts-trust-band-grid {
  padding-inline: 52px;
}

footer.ts-footer > .wrap.ts-footer-main {
  padding-block: 28px 24px;
}

@media (max-width: 1100px) {
  footer.ts-footer > .wrap.ts-footer-main,
  .ts-trust-band > .wrap.ts-trust-band-grid {
    padding-inline: 28px;
  }
}

@media (max-width: 1024px) {
  footer.ts-footer > .wrap.ts-footer-main {
    padding-block: 24px 20px;
  }
}

@media (max-width: 767px) {
  footer.ts-footer > .wrap.ts-footer-main {
    padding-block: 22px 18px;
  }
}

@media (max-width: 700px) {
  footer.ts-footer > .wrap.ts-footer-main,
  .ts-trust-band > .wrap.ts-trust-band-grid {
    padding-inline: 20px;
  }
}

@media (max-width: 767px) {
  .ts-trust-band > .wrap.ts-trust-band-grid {
    padding-block: 12px;
  }
}

/* Contact page */
.contact-page {
  display: grid;
  gap: 22px;
  padding-bottom: 28px;
}

.contact-lead {
  margin: 0;
  max-width: 640px;
  color: var(--ts-ft-muted);
  font-size: 16px;
  line-height: 1.6;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 20px;
  background: var(--ts-ft-white);
  border: 1px solid var(--ts-ft-line);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(15, 90, 74, 0.05);
}

.contact-card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--ts-ft-green);
  background: var(--ts-ft-trust);
  border: 1px solid var(--ts-ft-line);
}

.contact-card h2 {
  margin: 0;
  color: var(--ts-ft-green);
  font-size: 17px;
  font-weight: 650;
}

.contact-card p,
.contact-card address {
  margin: 0;
  color: var(--ts-ft-text);
  font-size: 15px;
  font-style: normal;
  line-height: 1.55;
}

.contact-card a {
  color: var(--ts-ft-green);
  font-weight: 650;
  text-decoration: none;
  transition: color 200ms ease;
}

.contact-card a:hover {
  color: var(--ts-ft-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-card a:focus-visible {
  outline: 2px solid var(--ts-ft-green);
  outline-offset: 3px;
  border-radius: 4px;
}

.contact-note {
  margin: 0;
  color: var(--ts-ft-muted);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
}

/* Mobil akordeon: hidden ozniteligi display:grid kuralini ezmeli. */
.ts-footer-col-links[hidden]{display:none!important}


/* Statik sayfalarin genel footer{} kurallari yeni footer'i etkilememeli. */
footer.ts-footer{margin:0!important;padding:0!important;}

