/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #4A5568;
  background: #f8fafc;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* ===== Header ===== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #E2E8F0;
  position: sticky;
  top: 0;
  z-index: 1000;
  overflow: visible;
}

/* ===== Top Bar ===== */
.top-bar {
  background: #FF6600;
  border-bottom: 1px solid #E55A00;
}

.top-bar-container {
  padding: 5px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.2s, opacity 0.2s;
}

.top-bar-link:hover {
  color: #ffffff;
  opacity: 0.85;
}

.top-bar-link svg {
  flex-shrink: 0;
  opacity: 0.95;
}

.top-bar-link--order {
  font-weight: 600;
  color: #ffffff;
}

.top-bar-link--order:hover {
  color: #ffffff;
  opacity: 0.85;
}

.header-container {
  max-width: 1260px;
  width: 100%;
  margin: 0 auto;
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* ===== Logo ===== */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  display: block;
  height: 36px;
  width: auto;
  object-fit: contain;
}

/* ===== Search ===== */
.search-form {
  position: relative;
  flex: 1;
  max-width: 340px;
}

.search-input {
  width: 100%;
  height: 42px;
  padding: 0 44px 0 18px;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  font-size: 0.875rem;
  color: #4A5568;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input::placeholder {
  color: #A0AEC0;
}

.search-input:focus {
  border-color: #92C866;
  box-shadow: 0 0 0 3px rgba(146, 200, 102, 0.15);
}

.search-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
  padding: 4px;
  transition: color 0.2s;
}

.search-btn:hover {
  color: #4A5568;
}

/* ===== Navigation ===== */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4A5568;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-item.has-dropdown:hover > .nav-link,
.nav-item.has-dropdown.is-open > .nav-link {
  color: #2D3748;
  background: #F7FAFC;
}

.caret {
  margin-top: 1px;
  transition: transform 0.2s;
}

.nav-item.has-dropdown:hover .caret,
.nav-item.has-dropdown.is-open .caret {
  transform: rotate(180deg);
}

/* YENİ badge */
.nav-item--badge {
  padding-top: 0;
}

.nav-item--badge .badge-new {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #2D5BE3;
  color: #ffffff;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
}

.dropdown-divider {
  height: 1px;
  margin: 6px 8px;
  background: #E2E8F0;
}

.dropdown-menu .dropdown-label {
  display: block;
  padding: 6px 14px 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #A0AEC0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  pointer-events: none;
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 200px;
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 100;
}

.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 9px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #4A5568;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.dropdown-menu a:hover {
  background: #F7FAFC;
  color: #2D3748;
}

/* ===== Header Actions ===== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #718096;
  border-radius: 8px;
  position: relative;
  transition: color 0.2s, background 0.2s;
}

button.icon-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.icon-btn:hover {
  color: #4A5568;
  background: #F7FAFC;
}

.cart-count {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: #E2E8F0;
  color: #4A5568;
  font-size: 0.625rem;
  font-weight: 600;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary {
  background: #FF6600;
  color: #ffffff;
}

.btn-primary:hover {
  background: #E55A00;
}

.btn-primary:active {
  transform: scale(0.98);
}

/* Mobile toggle — hidden on desktop */
.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #4A5568;
  border-radius: 8px;
}

.mobile-menu-toggle:hover {
  background: #F7FAFC;
}

/* ===== Page placeholder ===== */
.page-content {
  min-height: 60vh;
}

/* ===== Responsive ===== */
@media (max-width: 1292px) {
  .header-container,
  .top-bar-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .top-bar-container {
    padding-top: 5px;
    padding-bottom: 5px;
  }
}

@media (max-width: 1200px) {
  .header-container {
    gap: 16px;
    padding: 12px 20px;
  }

  .search-form {
    max-width: 260px;
  }

  .nav-link {
    padding: 8px 8px;
    font-size: 0.8125rem;
  }
}

@media (max-width: 1024px) {
  .search-form {
    display: none;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #E2E8F0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    padding: 12px 20px 20px;
    justify-content: flex-start;
  }

  .main-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 12px 14px;
  }

  .nav-item--badge .badge-new {
    position: static;
    transform: none;
    display: inline-block;
    margin-right: 8px;
  }

  .nav-item--badge {
    display: flex;
    align-items: center;
  }

  .nav-item--badge .nav-link {
    flex: 1;
    justify-content: flex-start;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 14px;
    display: none;
  }

  .nav-item.has-dropdown.is-open .dropdown-menu {
    display: block;
  }

  .nav-item.has-dropdown:hover .dropdown-menu {
    display: none;
  }

  .nav-item.has-dropdown.is-open .dropdown-menu {
    display: block;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header-container {
    flex-wrap: wrap;
    position: relative;
  }

  .logo {
    order: 1;
  }

  .header-actions {
    order: 2;
    margin-left: auto;
  }

  .main-nav {
    order: 3;
    width: 100%;
  }

  .btn-primary {
    display: none;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 10px 16px;
  }

  .top-bar-left {
    display: none;
  }

  .top-bar-container {
    justify-content: flex-end;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .logo-img {
    height: 30px;
  }

  .icon-btn:not(.cart-btn) {
    display: none;
  }
}
