/* shop-catalog.css — split from style.full.css */
/* ================================================
   PRODUCTS PAGE
   ================================================ */

.page-header {
  padding: 120px 0 60px;
  background: var(--bg-secondary);
  text-align: center;
  margin-top: var(--header-stack-h);
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.page-header p {
  font-size: 1rem;
  color: var(--text-muted);
}

.page-header-hint {
  max-width: 640px;
  margin: 12px auto 0;
  font-size: 0.8125rem !important;
  line-height: 1.5;
  color: var(--text-secondary) !important;
}

/* Category Pills */
.category-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 24px 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
}

.category-pills a {
  padding: 10px 24px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all var(--duration) var(--ease);
}

.category-pills a:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.category-pills a.active {
  color: var(--text-inverse);
  background: var(--text-primary);
  border-color: var(--text-primary);
}

.category-bubbles {
  display: block;
  padding: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.category-bubbles__track {
  display: flex;
  gap: 20px;
  width: max-content;
  min-width: 100%;
  justify-content: center;
  box-sizing: border-box;
  padding: 22px 0;
  margin: 0 auto;
}
.category-bubbles::-webkit-scrollbar { height: 8px; }
.category-bubbles::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 999px; }
.category-bubbles::-webkit-scrollbar-track { background: transparent; }

.catb {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 4px 2px;
  scroll-snap-align: start;
}
.catb__bubble {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease);
  user-select: none;
  overflow: hidden;
}

.catb-wrap {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin: 0 0 8px;
}
.catb-wrap .category-bubbles {
  border-bottom: 0;
  background: transparent;
  padding-left: 2px;
  padding-right: 2px;
}
.catb-nav {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.catb-nav:hover {
  background: var(--text-primary);
  color: var(--text-inverse);
}

.catb__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.catb__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  max-width: 110px;
  line-height: 1.2;
}
.catb:hover .catb__bubble {
  transform: translateY(-1px);
  border-color: var(--text-muted);
}
.catb.active .catb__bubble {
  border-color: var(--text-primary);
  box-shadow: var(--shadow-md);
}
.catb.active .catb__label {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .category-bubbles__track { gap: 16px; padding: 18px 0; }
  .catb-wrap { grid-template-columns: 40px 1fr 40px; gap: 8px; }
  .catb-nav { width: 40px; height: 40px; }
  .catb__bubble {
    width: 84px;
    height: 84px;
  }
  .catb__label {
    font-size: 0.9rem;
    max-width: 96px;
  }
}

/* Filter Toolbar */
.filter-toolbar {
  padding: 20px 0 16px;
}

.collection-page .filter-toolbar {
  padding: 12px 0 8px;
}

.toolbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
}

.search-box svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.search-box input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--text-primary);
  transition: all var(--duration) var(--ease);
}

.search-box input:focus {
  outline: none;
  border-color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.filter-actions {
  display: flex;
  gap: 12px;
}

.results-count {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 16px 0;
}

.results-count strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Products Section */
.products-section {
  padding: 0 0 80px;
}

.collection-page {
  padding: 28px 0 0;
}

/* Koleksiyon: sol alt-kategori filtresi ana kategori satırıyla aynı hizada + sticky */
.collection-layout {
  display: block;
}

.collection-layout.has-filters {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.collection-filters {
  position: sticky;
  top: calc(var(--header-stack-h) + 12px);
  align-self: start;
  padding: 4px 0 8px;
  border-right: 1px solid var(--border-light);
  padding-right: 20px;
  max-height: calc(100vh - var(--header-stack-h) - 24px);
  overflow-x: clip;
  overflow-y: auto;
  scrollbar-width: thin;
  z-index: 5;
}

.collection-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.collection-filters__title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0;
}

.collection-filters__close {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}

.collection-filter-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.collection-filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.collection-filter-field__label {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0;
  margin: 0;
  border: 0;
}

.collection-filter-hint {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.filter-checks {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  user-select: none;
  transition:
    border-color var(--duration) var(--ease),
    background var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

.filter-check:hover {
  border-color: rgba(30, 16, 78, 0.28);
  background: var(--bg-secondary);
}

.filter-check.is-checked {
  border-color: var(--brand);
  background: rgba(30, 16, 78, 0.06);
  box-shadow: 0 0 0 1px rgba(30, 16, 78, 0.08);
}

.filter-check__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.filter-check__box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1.5px solid #b8b8b8;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  background: #fff;
  transition:
    background 0.15s var(--ease),
    border-color 0.15s var(--ease),
    color 0.15s var(--ease);
}

.filter-check.is-checked .filter-check__box {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.filter-check__text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.35;
}

.filter-check.is-checked .filter-check__text {
  color: var(--brand);
  font-weight: 600;
}

.collection-filter-price input {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  appearance: none;
  -webkit-appearance: none;
}

.collection-filter-price input:focus {
  outline: none;
  border-color: var(--brand-light);
  box-shadow: 0 0 0 3px rgba(30, 16, 78, 0.08);
}

.collection-filter-price {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}

.collection-filter-price__sep {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.collection-filter-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.collection-filters-backdrop {
  display: none;
}

.collection-filter-toggle {
  display: none;
}

.collection-main {
  min-width: 0;
}

.product-grid.is-loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s var(--ease);
}

.collection-empty {
  grid-column: 1 / -1;
  padding: 48px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--brand);
  background: rgba(30, 16, 78, 0.06);
  border: 1px solid rgba(30, 16, 78, 0.12);
  border-radius: 999px;
  max-width: 100%;
}

.filter-chip span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-chip__x {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.7;
}

.filter-chip:hover {
  background: rgba(30, 16, 78, 0.1);
}

.filter-chips__clear {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.filter-chips__clear:hover {
  color: var(--brand);
}

@media (max-width: 900px) {
  .collection-layout.has-filters {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .collection-filter-toggle {
    display: inline-flex;
  }

  .collection-filters {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 88vw);
    z-index: 2650;
    background: #fff;
    border-right: 1px solid var(--border);
    padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 24px;
    max-height: none;
    transform: translateX(-105%);
    transition: transform 0.25s var(--ease);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.08);
    overflow-y: auto;
  }

  .collection-filters__close {
    display: inline-flex;
  }

  .collection-filters-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 2640;
    background: rgba(17, 17, 17, 0.4);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.2s var(--ease),
      visibility 0.2s var(--ease);
  }

  html.collection-filters-open .collection-filters {
    transform: translateX(0);
  }

  html.collection-filters-open .collection-filters-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  html.collection-filters-open {
    overflow: hidden;
  }
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px 0 0;
}

.pagination-info {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0 24px;
}

/* ================================================
   WISHLIST PAGE
   ================================================ */

.wishlist-page {
  padding: 48px 0 80px;
  margin-top: var(--header-stack-h);
}

.wishlist-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 12px;
}

.wishlist-page-intro {
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 28px;
  line-height: 1.6;
}

.wishlist-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

@media (max-width: 768px) {
  .wishlist-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

.wishlist-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
}

.wishlist-card > a {
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.wishlist-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--bg-secondary);
  display: block;
}

.wishlist-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 14px 16px 16px;
}

.wishlist-card__title {
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.35;
  margin-bottom: 0;
  flex: 1;
}

.wishlist-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
}

.wishlist-card__actions a.btn-primary {
  color: var(--text-inverse);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wishlist-card__actions button {
  font-size: 0.8125rem;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
}

.wishlist-card__actions button:hover {
  border-color: var(--text-primary);
}

.wishlist-page-empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  grid-column: 1 / -1;
}

