/* ==========================================================================
   Technomot — Yerleşim
   Üst bar, header, ana menü, mobil çekmece. (Footer stilleri dosyanın sonunda.)
   ========================================================================== */

/* --- Üst bilgi barı ------------------------------------------------------ */

.tm-topbar {
  background: var(--tm-ink-900);
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--tm-fs-xs);
}

.tm-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tm-space-4);
  min-height: 38px;
}

.tm-topbar__note {
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--tm-space-2);
}

.tm-topbar__note svg {
  width: 14px;
  height: 14px;
  flex: none;
  fill: var(--tm-accent-500);
}

.tm-topbar__links {
  display: none;
  align-items: center;
  gap: var(--tm-space-5);
}

@media (min-width: 768px) {
  .tm-topbar__links {
    display: flex;
  }
}

.tm-topbar__links a {
  color: rgba(255, 255, 255, 0.72);
}

.tm-topbar__links a:hover {
  color: var(--tm-white);
}

.tm-topbar__phone {
  display: inline-flex;
  align-items: center;
  gap: var(--tm-space-2);
  font-weight: var(--tm-fw-bold);
  color: var(--tm-white) !important;
  letter-spacing: var(--tm-ls-wide);
}

.tm-topbar__phone svg {
  width: 15px;
  height: 15px;
  fill: var(--tm-accent-500);
}

/* --- Header -------------------------------------------------------------- */
/* Logo koyu lacivert zeminli bir görsel olduğu için header da marka koyusunda
   kurulur; böylece logo zeminiyle kusursuz birleşir. */

.tm-header {
  position: sticky;
  top: 0;
  z-index: var(--tm-z-sticky);
  background: var(--tm-ink-800);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.tm-header__inner {
  display: flex;
  align-items: center;
  gap: var(--tm-space-4);
  min-height: var(--tm-header-h);
  padding-block: var(--tm-space-2);
}

/* Masaüstünde arama kutusu sayfanın tam ortasında dursun: yan sütunlar eşit
   genişlikte, logo sola, hesap/sepet sağa hizalanır. */
@media (min-width: 1024px) {
  .tm-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }

  .tm-header__inner > .tm-logo {
    justify-self: start;
  }

  .tm-header__actions {
    justify-self: end;
    margin-left: 0;
  }
}

.tm-burger {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--tm-radius-sm);
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
}

.tm-burger:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--tm-white);
}

.tm-burger svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (min-width: 1024px) {
  .tm-burger {
    display: none;
  }
}

/* Logo */
.tm-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--tm-space-3);
  flex: none;
}

/* Logo görseli marka zemininde durduğu için ek çerçeve gerekmez.
   Wordmark logonun yalnızca beşte birini kapladığından okunabilir kalması
   için görsel görece büyük ölçeklenir. */
.tm-logo__img {
  height: 44px;
  width: auto;
  flex: none;
}

@media (min-width: 480px) {
  .tm-logo__img {
    height: 56px;
  }
}

@media (min-width: 1024px) {
  .tm-logo__img {
    height: 68px;
  }
}

/* Arama */
.tm-search {
  position: relative;
  display: none;
  flex: 1;
  max-width: 560px;
}

@media (min-width: 768px) {
  .tm-search {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .tm-search {
    width: min(520px, 30vw);
  }
}

.tm-search__input {
  width: 100%;
  min-height: 44px;
  padding: var(--tm-space-2) 52px var(--tm-space-2) var(--tm-space-4);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--tm-radius-pill);
  background: rgba(255, 255, 255, 0.07);
  color: var(--tm-white);
  font-size: var(--tm-fs-sm);
}

.tm-search__input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.tm-search__input:focus {
  outline: none;
  border-color: var(--tm-accent-500);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(98, 213, 243, 0.28);
}

.tm-search__submit {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--tm-radius-pill);
  background: var(--tm-accent-500);
  color: var(--tm-on-accent);
}

.tm-search__submit:hover {
  background: var(--tm-accent-400);
}

.tm-search__submit svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* Arama önerileri */
.tm-search__results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: var(--tm-z-dropdown);
  max-height: 380px;
  overflow-y: auto;
  padding: var(--tm-space-2);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-md);
  background: var(--tm-surface);
  box-shadow: var(--tm-shadow-lg);
}

.tm-search__results[hidden] {
  display: none;
}

.tm-suggest {
  display: flex;
  align-items: center;
  gap: var(--tm-space-3);
  padding: var(--tm-space-2);
  border-radius: var(--tm-radius-sm);
  color: var(--tm-ink-700);
}

.tm-suggest:hover,
.tm-suggest:focus-visible {
  background: var(--tm-gray-100);
}

.tm-suggest img {
  width: 44px;
  height: 34px;
  flex: none;
  object-fit: cover;
  border-radius: var(--tm-radius-xs);
  background: var(--tm-gray-100);
}

.tm-suggest__name {
  flex: 1;
  font-size: var(--tm-fs-sm);
  line-height: var(--tm-lh-snug);
}

.tm-suggest__price {
  flex: none;
  font-size: var(--tm-fs-sm);
  font-weight: var(--tm-fw-bold);
  color: var(--tm-text-price);
}

.tm-search__empty {
  padding: var(--tm-space-4);
  text-align: center;
  font-size: var(--tm-fs-sm);
  color: var(--tm-text-muted);
}

/* Header aksiyonları */
.tm-header__actions {
  display: flex;
  align-items: center;
  gap: var(--tm-space-2);
  margin-left: auto;
}

.tm-header__link {
  display: none;
  align-items: center;
  gap: var(--tm-space-2);
  padding: var(--tm-space-2);
  font-size: var(--tm-fs-xs);
  font-weight: var(--tm-fw-semibold);
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

.tm-header__link:hover {
  color: var(--tm-white);
}

.tm-header__link svg {
  width: 19px;
  height: 19px;
  fill: rgba(255, 255, 255, 0.6);
}

.tm-header__link:hover svg {
  fill: var(--tm-accent-500);
}

@media (min-width: 1024px) {
  .tm-header__link {
    display: inline-flex;
  }
}

.tm-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--tm-space-2);
  min-height: 44px;
  padding: var(--tm-space-2) var(--tm-space-4);
  border-radius: var(--tm-radius-sm);
  background: var(--tm-accent-500);
  color: var(--tm-on-accent);
  font-size: var(--tm-fs-xs);
  font-weight: var(--tm-fw-bold);
  letter-spacing: var(--tm-ls-wide);
  text-transform: uppercase;
}

.tm-cart-btn:hover {
  background: var(--tm-accent-400);
  color: var(--tm-on-accent);
}

.tm-cart-btn svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.tm-cart-btn__label {
  display: none;
}

@media (min-width: 640px) {
  .tm-cart-btn__label {
    display: inline;
  }
}

.tm-cart-btn__count {
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding-inline: 5px;
  border-radius: var(--tm-radius-pill);
  background: var(--tm-ink-900);
  color: var(--tm-accent-300);
  font-size: var(--tm-fs-2xs);
  line-height: 1;
}

/* --- Ana menü ------------------------------------------------------------ */

.tm-nav {
  display: none;
  background: var(--tm-ink-700);
}

@media (min-width: 1024px) {
  .tm-nav {
    display: block;
  }
}

.tm-nav__list {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tm-nav__list li {
  margin: 0;
}

.tm-nav__link {
  display: flex;
  align-items: center;
  gap: var(--tm-space-2);
  height: 48px;
  padding-inline: var(--tm-space-5);
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--tm-fs-sm);
  font-weight: var(--tm-fw-semibold);
  letter-spacing: var(--tm-ls-wide);
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color var(--tm-transition-fast), background var(--tm-transition-fast),
    border-color var(--tm-transition-fast);
}

.tm-nav__link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--tm-white);
}

.tm-nav__link.is-active {
  color: var(--tm-white);
  border-bottom-color: var(--tm-accent-500);
}

.tm-nav__link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  opacity: 0.65;
}

/* `.tm-nav__list li { margin: 0 }` kuralını ezebilmek için aynı özgüllükte. */
.tm-nav__list .tm-nav__spacer {
  margin-left: auto;
}

.tm-nav__cta {
  display: flex;
  align-items: center;
  gap: var(--tm-space-2);
  height: 48px;
  padding-inline: var(--tm-space-5);
  background: var(--tm-accent-500);
  color: var(--tm-on-accent);
  font-size: var(--tm-fs-sm);
  font-weight: var(--tm-fw-bold);
  letter-spacing: var(--tm-ls-wide);
  text-transform: uppercase;
}

.tm-nav__cta:hover {
  background: var(--tm-accent-400);
  color: var(--tm-on-accent);
}

.tm-nav__cta svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* --- Mobil çekmece ------------------------------------------------------- */

.tm-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--tm-z-overlay);
  background: rgba(7, 15, 26, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--tm-transition), visibility var(--tm-transition);
}

.tm-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.tm-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: var(--tm-z-drawer);
  display: flex;
  flex-direction: column;
  width: min(88vw, 340px);
  background: var(--tm-surface);
  transform: translateX(-100%);
  transition: transform var(--tm-transition);
  overflow-y: auto;
}

.tm-drawer.is-open {
  transform: none;
}

.tm-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tm-space-3);
  padding: var(--tm-space-4);
  background: var(--tm-ink-800);
  color: var(--tm-white);
}

.tm-drawer__head .tm-logo__img {
  height: 44px;
}

.tm-drawer__close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 0;
  border-radius: var(--tm-radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: var(--tm-white);
}

.tm-drawer__close svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.tm-drawer__search {
  padding: var(--tm-space-4);
  border-bottom: 1px solid var(--tm-border);
}

.tm-drawer__group {
  padding: var(--tm-space-4) 0;
  border-bottom: 1px solid var(--tm-border);
}

.tm-drawer__group:last-child {
  border-bottom: 0;
}

.tm-drawer__label {
  padding: 0 var(--tm-space-4) var(--tm-space-2);
  font-size: var(--tm-fs-2xs);
  font-weight: var(--tm-fw-bold);
  letter-spacing: var(--tm-ls-wider);
  text-transform: uppercase;
  color: var(--tm-gray-400);
}

.tm-drawer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tm-drawer__list li {
  margin: 0;
}

.tm-drawer__list a {
  display: flex;
  align-items: center;
  gap: var(--tm-space-3);
  padding: var(--tm-space-3) var(--tm-space-4);
  font-size: var(--tm-fs-base);
  font-weight: var(--tm-fw-medium);
  color: var(--tm-ink-700);
}

.tm-drawer__list a:hover,
.tm-drawer__list a.is-active {
  background: var(--tm-gray-100);
  color: var(--tm-accent-800);
}

.tm-drawer__list img {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: var(--tm-radius-xs);
  background: var(--tm-gray-100);
  object-fit: cover;
}

.tm-drawer__foot {
  margin-top: auto;
  padding: var(--tm-space-4);
  background: var(--tm-gray-50);
}

/* --- Footer -------------------------------------------------------------- */

.tm-newsletter {
  padding-block: var(--tm-space-8);
  background: var(--tm-ink-700);
  color: var(--tm-white);
}

.tm-newsletter__inner {
  display: grid;
  gap: var(--tm-space-5);
  align-items: center;
}

@media (min-width: 900px) {
  .tm-newsletter__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  }
}

.tm-newsletter h2 {
  margin: 0;
  color: var(--tm-white);
  font-size: var(--tm-fs-xl);
  letter-spacing: var(--tm-ls-wide);
  text-transform: uppercase;
}

.tm-newsletter p {
  margin: var(--tm-space-2) 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: var(--tm-fs-sm);
}

.tm-newsletter__form {
  display: flex;
  gap: var(--tm-space-2);
  flex-wrap: wrap;
}

.tm-newsletter__form .tm-input {
  flex: 1 1 220px;
  border-color: transparent;
  color: var(--tm-ink-800);
}

.tm-newsletter__note {
  flex-basis: 100%;
  margin: 0;
  font-size: var(--tm-fs-xs);
  color: rgba(255, 255, 255, 0.55);
}

.tm-footer {
  background: var(--tm-ink-800);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--tm-fs-sm);
}

.tm-footer__main {
  display: grid;
  gap: var(--tm-space-8);
  padding-block: var(--tm-space-10);
}

@media (min-width: 640px) {
  .tm-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .tm-footer__main {
    grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  }
}

.tm-footer__brand .tm-logo__img {
  height: 56px;
}

.tm-footer__about {
  margin: var(--tm-space-4) 0 0;
  max-width: 42ch;
  line-height: var(--tm-lh-relaxed);
  color: rgba(255, 255, 255, 0.62);
  font-size: var(--tm-fs-sm);
}

.tm-footer__contact {
  margin: var(--tm-space-4) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--tm-space-2);
}

.tm-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: var(--tm-space-2);
  margin: 0;
}

.tm-footer__contact svg {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex: none;
  fill: var(--tm-accent-500);
}

.tm-footer__contact a {
  color: var(--tm-white);
  font-weight: var(--tm-fw-semibold);
}

.tm-footer h3 {
  margin: 0 0 var(--tm-space-4);
  color: var(--tm-white);
  font-size: var(--tm-fs-sm);
  font-weight: var(--tm-fw-bold);
  letter-spacing: var(--tm-ls-wide);
  text-transform: uppercase;
}

.tm-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--tm-space-2);
}

.tm-footer__links li {
  margin: 0;
}

.tm-footer__links a {
  color: rgba(255, 255, 255, 0.7);
}

.tm-footer__links a:hover {
  color: var(--tm-accent-400);
}

.tm-social {
  display: flex;
  gap: var(--tm-space-2);
  margin-top: var(--tm-space-5);
}

.tm-social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--tm-radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--tm-white);
}

.tm-social a:hover {
  background: var(--tm-accent-500);
  color: var(--tm-on-accent);
}

.tm-social svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.tm-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.tm-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--tm-space-4);
  padding-block: var(--tm-space-5);
  font-size: var(--tm-fs-xs);
  color: rgba(255, 255, 255, 0.55);
}

.tm-footer__bottom-inner p {
  margin: 0;
}

.tm-paylogos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--tm-space-2);
}

.tm-paylogos img {
  height: 26px;
  width: auto;
  border-radius: var(--tm-radius-xs);
  background: var(--tm-white);
  padding: 3px 6px;
}
