/* topbar.css — Light topbar (Trendyol-style) */
.topbar {
  background: var(--gray-50);
  border-bottom: var(--border);
  height: var(--topbar-height);
  font-size: var(--text-xs);
  display: flex;
  align-items: center;
}
.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.topbar-left  { display: flex; align-items: center; gap: var(--sp-4); flex-shrink: 0; }
.topbar-right { display: flex; align-items: center; gap: var(--sp-4); flex-shrink: 0; }
.topbar-center{ flex: 1; overflow: hidden; }
.topbar-link {
  color: var(--gray-600);
  font-weight: 500;
  transition: color var(--ease);
  white-space: nowrap;
}
.topbar .topbar-link,
.topbar .topbar-link:visited,
.topbar .topbar-link:active {
  color: var(--gray-600) !important;
}
.topbar-link:hover { color: var(--primary); }
.topbar-sep { color: var(--gray-300); }

/* Marquee */
.topbar-marquee {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  align-items: center;
}
.topbar-marquee span {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-width: max-content;
  padding-right: 48px;
  animation: marquee 28s linear infinite;
  font-size: var(--text-xs);
  color: var(--gray-600) !important;
  font-weight: 500;
}
.topbar-marquee .highlight { color: var(--primary); font-weight: 700; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 1180px) {
  .topbar-right {
    display: none;
  }
}
@media (max-width: 768px) {
  .topbar {
    height: auto;
    min-height: 40px;
    padding: 6px 0;
  }
  .topbar-inner {
    justify-content: center;
  }
  .topbar-left {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-3);
    min-width: 0;
  }
  .topbar-center,
  .topbar-right {
    display: none;
  }
  .topbar-link {
    font-size: 12px;
  }
  .topbar-marquee span {
    padding-right: 24px;
  }
  .topbar-sep {
    display: none;
  }
}
