/* =====================================================
   KADSU DESIGN — HEADER
   ===================================================== */

:root {
  --kds-announcement-height: 28px;
  --kds-header-height: 66px;
  --kds-header-background: #ffffff;
  --kds-header-text: #111111;
  --kds-header-border: #ece9e5;
}

/* DUYURU ŞERİDİ */
.kds-announcement {
  display: flex;
  width: 100%;
  height: var(--kds-announcement-height);
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  overflow: hidden;
  background: #000000;
  color: #ffffff;
  text-align: center;
}

.kds-announcement p {
  margin: 0;
  font-family: var(--kds-font-body);
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.55px;
}

/* HEADER */
.kds-header {
  position: relative;
  z-index: 1000;
  width: 100%;
  border-bottom: 1px solid var(--kds-header-border);
  background: var(--kds-header-background);
}

.kds-navbar {
  position: relative;
  display: grid;
  width: 100%;
  height: var(--kds-header-height);
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 28px;
  background: #ffffff;
}

/* =====================================================
   SOL MENÜ
   ===================================================== */

.kds-menu-area {
  position: relative;
  align-self: stretch;
  justify-self: start;
  display: flex;
  align-items: center;
}

.kds-menu-trigger {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111111;
  cursor: pointer;
}

.kds-menu-icon {
  display: flex;
  width: 20px;
  flex-direction: column;
  gap: 5px;
}

.kds-menu-icon i {
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
  transition:
    width 180ms ease,
    transform 180ms ease;
}

.kds-menu-label {
  font-family: var(--kds-font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.1px;
}

.kds-menu-area:hover .kds-menu-icon i:nth-child(2),
.kds-menu-area:focus-within .kds-menu-icon i:nth-child(2) {
  width: 14px;
}

/* AÇILIR PANEL */
.kds-menu-panel {
  position: absolute;
  top: 100%;
  left: -28px;
  z-index: 1100;
  width: 230px;
  padding: 10px 0;
  border: 1px solid #ebe7e2;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.09);

  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;

  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
}

.kds-menu-area:hover .kds-menu-panel,
.kds-menu-area:focus-within .kds-menu-panel {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.kds-main-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.kds-main-menu li {
  margin: 0;
}

.kds-main-menu a {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid #f0ede9;
  color: #171717;
  font-family: var(--kds-font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.7px;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    padding-left 180ms ease,
    background-color 180ms ease;
}

.kds-main-menu li:last-child a {
  border-bottom: 0;
}

.kds-main-menu a:hover,
.kds-main-menu a:focus-visible {
  padding-left: 25px;
  background: #f8f6f3;
}

/* =====================================================
   LOGO
   ===================================================== */

.kds-logo-container {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  justify-self: center;
}

.kds-logo-link {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.kds-header-logo {
  display: block;
  width: auto;
  height: 44px;
  max-width: 165px;
  object-fit: contain;
}

/* =====================================================
   SAĞ İKONLAR
   ===================================================== */

.kds-header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 16px;
}

.kds-header-action {
  position: relative;
  display: inline-flex;
  width: 23px;
  height: 23px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111111;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 180ms ease;
}

.kds-header-action svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kds-header-action:hover {
  opacity: 0.55;
}

/* SEPET SAYACI */
.kds-cart-count {
  position: absolute;
  top: -7px;
  right: -9px;
  display: flex;
  min-width: 15px;
  height: 15px;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border-radius: 999px;
  background: #000000;
  color: #ffffff;
  font-size: 8px;
  font-weight: 600;
  line-height: 1;
}

/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 1024px) {
  .kds-navbar {
    padding: 0 18px;
  }

  .kds-menu-panel {
    left: -18px;
  }

  .kds-menu-label {
    display: none;
  }

  .kds-header-logo {
    height: 42px;
  }

  .kds-header-actions {
    gap: 12px;
  }

  .kds-favorite-action {
    display: none;
  }
}

/* =====================================================
   TELEFON
   ===================================================== */

@media (max-width: 600px) {
  :root {
    --kds-announcement-height: 26px;
    --kds-header-height: 62px;
  }

  .kds-announcement p {
    font-size: 8px;
    letter-spacing: 0.25px;
  }

  .kds-navbar {
    padding: 0 14px;
  }

  .kds-menu-panel {
    left: -14px;
    width: min(270px, 82vw);
  }

  .kds-header-logo {
    height: 39px;
    max-width: 140px;
  }

  .kds-header-actions {
    gap: 9px;
  }

  .kds-header-actions .kds-header-action:nth-child(2),
  .kds-favorite-action {
    display: none;
  }
}
