/* ─── SHOP LISTING PAGE ─── */

.shop-listing {
  background: var(--white);
  color: var(--black);
}

/* ── Filter bar ──────────────────────────────────────────────────────────── */

.shop-filter {
  position: sticky;
  top: 56px;
  z-index: 80;
  background: var(--white);
  /* border-bottom: 1px solid rgba(20, 20, 20, 0.08); */
}

.shop-filter__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 0 20px 0;
  gap: 16px;
}

/* Tabs */
.shop-filter__tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.shop-filter__tab {
  font-family: var(--font-outfit);
  font-size: 13px;
  font-weight: 400;
  color: var(--black);
  text-decoration: none;
  padding: 8px 20px;
  border: 1px solid rgba(20, 20, 20, 0.3);
  border-radius: 100px;
  white-space: nowrap;
  transition:
    background 200ms ease,
    color 200ms ease,
    border-color 200ms ease;
}

.shop-filter__tab:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.shop-filter__tab.is-active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* Shop By Note dropdown */
.shop-filter__note-wrap {
  position: relative;
  flex-shrink: 0;
}

.shop-filter__note-btn {
  font-family: var(--font-outfit);
  font-size: 13px;
  font-weight: 400;
  color: var(--black);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  white-space: nowrap;
  transition: opacity 200ms ease;
}

.shop-filter__note-btn:hover {
  opacity: 0.6;
}

.shop-filter__chevron {
  transition: transform 300ms ease;
  flex-shrink: 0;
}

.shop-filter__note-wrap.is-open .shop-filter__chevron {
  transform: rotate(180deg);
}

.shop-filter__note-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 180px;
  background: var(--white);
  border: 1px solid rgba(20, 20, 20, 0.12);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.09);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition:
    opacity 250ms ease,
    transform 250ms ease;
  z-index: 200;
}

.shop-filter__note-wrap.is-open .shop-filter__note-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.shop-filter__note-item {
  display: block;
  font-family: var(--font-outfit);
  font-size: 13px;
  font-weight: 400;
  color: var(--black);
  text-decoration: none;
  padding: 11px 20px;
  transition: background 180ms ease;
  text-align: center;
}

.shop-filter__note-item:hover,
.shop-filter__note-item.is-active {
  background: rgba(20, 20, 20, 0.05);
}

.shop-filter__note-item--clear {
  border-top: 1px solid rgba(20, 20, 20, 0.08);
  font-size: 12px;
  color: #888;
}

.shop-filter__note-item--clear.is-hidden {
  display: none;
}

/* ── Product grid ────────────────────────────────────────────────────────── */

.shop-grid {
  padding-top: 80px;
  padding-bottom: 100px;
}

.shop-grid__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 20px;
}

.shop-grid .prod-card {
  cursor: pointer;
}

.shop-grid__empty {
  font-family: var(--font-outfit);
  font-size: 15px;
  color: #888;
  padding: 60px 0;
  text-align: center;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1199px) {
  .shop-grid__inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .shop-filter {
    top: 56px;
  }

  .shop-filter__inner {
    padding: 14px 0;
    gap: 12px;
  }

  .shop-filter__tabs {
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .shop-filter__tabs::-webkit-scrollbar {
    display: none;
  }

  .shop-filter__tab {
    flex-shrink: 0;
    font-size: 12px;
    padding: 7px 14px;
  }

  .shop-grid {
    padding-top: 24px;
    padding-bottom: 60px;
  }

  .shop-grid__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 12px;
  }
}
