.app-header {
  padding: 20px 24px;
}

body{
    background-color: #FEF7E5;
    font-family: 'Satoshi';
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* 🔥 SAĞA KAYDIRMAYI SIFIRLAR */
}

.header-top {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* LEFT COLUMN */
.brand-col {
  display: flex;
  flex-direction: column;
  width: max-content;   /* 🔥 sadece içerik kadar */
}

/* BRAND ROW */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* LOGO */
.logo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

/* TEXT */
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.title {
  color: #3D2012;
  font-size: 40px;
  font-family: "Cinzel";
  font-weight: 700;
}

.owner {
  font-size: 18px;
  opacity: 0.6;
}

/* 🔥 ÇİZGİ SADECE BRAND WIDTH */
.line {
  margin-top: 10px;
  height: 1px;
  width: 100%;              /* brand-col kadar */
  background: rgba(61, 32, 18, 0.2);
}

/* SEARCH */
.search-box {
  flex: 1;
  min-width: 0;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 10px;

  background: #ede2d5;
  padding: 8px 14px;
  border-radius: 999px;
}

/* input kutu gibi görünmesin */
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;

  font-size: 14px;
  font-family: 'Fjalla One';
  color: #3D2012;
}

/* placeholder */
.search-box input::placeholder {
  color: rgba(61, 32, 18, 0.5);
}

/* icon */
.search-box img {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

/* CHİP BAR */
.chip-bar {
  display: flex;
  align-items: center; /* 🔥 center değil */
  gap: 12px;

  padding: 10px 16px; /* 👈 sağ boşluğu azalt */
  width: 100%;
  box-sizing: border-box;
}

.chip-container {
  display: flex;
  flex-wrap: wrap;  /* 👈 wrap aktif */

  gap: 10px;

  flex: 1;
  min-width: 0;

  align-content: flex-start; /* 🔥 satırları yukarı toplar */
}

.chip {
  background: #ede2d5;
  border: 1px solid rgba(61, 32, 18, 0.2);
  color: #3D2012;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-family: 'Fjalla One';
  transition: 0.2s;
  flex-wrap: wrap;
  display: inline-flex; /* 🔥 EKLE */
}

.chip:hover {
  background: rgba(61, 32, 18, 0.08);
}

.chip.active {
  background: #3D2012;
  color: #FEF7E5;
}

.filter-btn {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 12px;
  background: transparent;

  cursor: pointer;
}

.filter-btn img {
  width: 20px;
  height: 20px;
}

/* Masaüstü: filtre chip bar’da; arama kutusundaki gizli */
.filter-btn--search {
  display: none;
}

@media (max-width: 500px) {

  .app-header {
    padding: 16px 12px;
  }

 .header-top {

    flex-direction: row;

    flex-wrap: wrap;

    justify-content: space-between;

    align-items: center;

  }

  /* BRAND ORTALA */
  .brand-col {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .brand {
    justify-content: center;
    gap: 10px;
  }

  /* LOGO KÜÇÜLT */
  .logo {
    width: 64px;
    height: 64px;
  }

  /* TEXT ORTALA */
  .brand-text {
    align-items: center;
    text-align: center;
  }

  .title {
    font-size: 32px;
  }

  .owner {
    font-size: 16px;
  }

  /* ÇİZGİ ORTADA */
  .line {
    width: 80%;
    margin: 8px auto 0;
  }

  /* SEARCH FULL WIDTH ALTTA */
  


  .search-box {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 38px;
    margin: 0;
    box-sizing: border-box;
    gap: 8px;
    padding: 8px 10px 8px 14px;
  }

  .search-box .filter-btn--search {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: auto;
    padding: 0;
    border-radius: 10px;
  }

  .search-box .filter-btn--search img {
    width: 20px;
    height: 20px;
  }

  /* Mobilde filtre chip satırında değil, arama içinde */
  .filter-btn--bar {
    display: none !important;
  }

  .chip-bar {
    padding: 8px 0 10px;
    gap: 0;
  }

  .chip-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
    padding-left: 8px;
    padding-right: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .chip-container::-webkit-scrollbar {
    display: none;           /* Chrome */
  }

  .chip {
    flex: 0 0 auto;          /* sabit kal */
    white-space: nowrap;
  }
}

/* Ana görünüm: chip değişiminde hafif giriş */
@keyframes view-root-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#view-root.view-root--enter > * {
  animation: view-root-enter 1.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  #view-root.view-root--enter > * {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ——— En üste dön (katalog görünümü) ——— */
.scroll-to-top-fab {
  position: fixed;
  z-index: 2000;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(22px, env(safe-area-inset-bottom, 0px));
  width: 42px;
  height: 42px;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(61, 32, 18, 0.28);
  background: rgba(186, 176, 162, 0.96);
  color: #3d2012;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.1),
    0 2px 6px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px) scale(0.92);
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.33, 1, 0.68, 1),
    visibility 0.3s ease;
}

.scroll-to-top-fab--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scroll-to-top-fab:hover {
  background: #bab0a2;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.12),
    0 3px 8px rgba(0, 0, 0, 0.08);
}

.scroll-to-top-fab:focus-visible {
  outline: 2px solid #3d2012;
  outline-offset: 3px;
}

.scroll-to-top-fab__icon {
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  margin-top: -2px;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-to-top-fab {
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }
}
