/* Product finder: search, filters, sort and responsive catalog layout. */
.shop-page {
  min-height: 70vh;
  padding: 28px 0 60px;
  background: linear-gradient(180deg, #fff8fb 0%, #fff 240px);
}

.shop-page__header {
  margin-bottom: 18px;
  padding: 0;
}

.shop-page__eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--color-primary);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.shop-page__header h1 {
  margin: 0;
  color: #211326;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.15;
}

.shop-page__header p { margin: 7px 0 0; }

.shop-search-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px 9px 8px 18px;
  border: 1px solid #f1dce7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(89, 20, 61, .08);
}

.shop-search-box > svg { color: #8b7c87; }

.shop-search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #241a25;
  font-size: 1rem;
}

.shop-search-box input::placeholder { color: #9b8f98; }

.shop-filter-toggle {
  min-height: 46px;
  padding: 0 16px;
  display: none;
  align-items: center;
  gap: 7px;
  border-radius: 13px;
  background: linear-gradient(135deg, #bb005c, #ff267e);
  color: #fff;
  font-weight: 800;
}

.shop-filter-toggle span {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: var(--color-primary);
  font-size: .7rem;
}

.active-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 13px 0 0;
}

.active-filter-row button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 12px;
  border: 1px solid #f1d8e4;
  border-radius: 999px;
  background: #fff;
  color: #5a4653;
  font-size: .78rem;
  font-weight: 700;
}

.active-filter-row button:hover { border-color: var(--color-primary); color: var(--color-primary); }
.active-filter-row b { font-size: 1rem; line-height: 1; }

.shop-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 22px;
}

.shop-filter-panel {
  position: sticky;
  top: 112px;
  padding: 20px;
  border: 1px solid #f0dfe7;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(70, 19, 50, .06);
}

.shop-filter-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.shop-filter-panel__head span {
  color: var(--color-primary);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.shop-filter-panel__head h2 {
  margin: 3px 0 0;
  color: #241526;
  font-size: 1.25rem;
}

.shop-filter-panel__head button {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff1f7;
  color: #5e4352;
  font-size: 1.4rem;
}

.shop-filter-group {
  padding: 17px 0;
  border-top: 1px solid #f2e5eb;
}

.shop-filter-group > label {
  display: block;
  margin-bottom: 9px;
  color: #2e202d;
  font-size: .88rem;
  font-weight: 800;
}

.shop-filter-group select,
.price-filter-row input {
  width: 100%;
  height: 43px;
  padding: 0 11px;
  border: 1px solid #eadbe3;
  border-radius: 10px;
  outline: 0;
  background: #fff;
  color: #352834;
  font-size: .84rem;
}

.shop-filter-group select:focus,
.price-filter-row input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(255, 20, 112, .08); }

.price-filter-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 7px;
}

.price-filter-row > div > span {
  display: block;
  margin-bottom: 5px;
  color: #8d7c87;
  font-size: .68rem;
}

.price-filter-row__dash { padding-bottom: 11px; color: #a696a0; }

.shop-filter-group--checks {
  display: grid;
  gap: 13px;
}

.shop-check {
  display: grid !important;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  cursor: pointer;
}

.shop-check input { position: absolute; opacity: 0; pointer-events: none; }
.shop-check__box {
  width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #d7c8d1;
  border-radius: 6px;
  background: #fff;
}

.shop-check input:checked + .shop-check__box {
  border-color: var(--color-primary);
  background: var(--color-primary);
}

.shop-check input:checked + .shop-check__box::after {
  content: '✓';
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
}

.shop-check strong { display: block; color: #352633; font-size: .83rem; }
.shop-check small { display: block; margin-top: 1px; color: #91828c; font-size: .68rem; font-weight: 500; }

.shop-reset-btn {
  width: 100%;
  min-height: 42px;
  border: 1px solid #efcfdc;
  border-radius: 11px;
  background: #fff8fb;
  color: var(--color-primary);
  font-weight: 800;
}

.shop-reset-btn:hover { background: #fff0f6; border-color: var(--color-primary); }

.shop-results { min-width: 0; }
.category-toolbar {
  min-height: 52px;
  margin-bottom: 15px;
  padding: 8px 10px 8px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #f0e1e8;
  border-radius: 14px;
  background: #fff;
}

.category-toolbar > div { display: flex; align-items: baseline; gap: 5px; }
.category-toolbar strong { color: #271829; font-size: 1.08rem; }
.category-toolbar > div span { color: #8c7b86; font-size: .78rem; }

.sort-control { display: flex; align-items: center; gap: 8px; }
.sort-control > span { color: #887985; font-size: .74rem; font-weight: 700; }
.sort-control select {
  height: 38px;
  padding: 0 34px 0 11px;
  border: 1px solid #e9d9e2;
  border-radius: 10px;
  outline: 0;
  background: #fff;
  color: #372936;
  font-size: .78rem;
  font-weight: 700;
}
.sort-control select:focus { border-color: var(--color-primary); }

.shop-product-grid { margin-bottom: 30px; }
.shop-filter-backdrop { display: none; }

@media (min-width: 1100px) {
  .shop-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1380px) {
  .shop-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 28px; }
  .shop-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .shop-filter-toggle { display: inline-flex; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-filter-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 301;
    width: min(86vw, 330px);
    overflow-y: auto;
    border: 0;
    border-radius: 0 20px 20px 0;
    transform: translateX(-105%);
    transition: transform .25s ease;
  }
  .shop-filter-panel.is-open { transform: translateX(0); }
  .shop-filter-panel__head button { display: inline-flex; align-items: center; justify-content: center; }
  .shop-filter-backdrop {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: block;
    background: rgba(22, 10, 18, .46);
    backdrop-filter: blur(2px);
  }
  .shop-filter-backdrop[hidden] { display: none; }
  body.shop-filter-open { overflow: hidden; }
}

@media (max-width: 600px) {
  .shop-page { padding: 18px 0 92px; }
  .shop-page__header { margin-bottom: 13px; }
  .shop-page__header h1 { font-size: 1.55rem; }
  .shop-page__header p { font-size: .78rem; }
  .shop-search-box { min-height: 56px; padding-left: 13px; gap: 8px; border-radius: 15px; }
  .shop-search-box input { font-size: .82rem; }
  .shop-filter-toggle { min-height: 40px; padding: 0 11px; font-size: .76rem; }
  .shop-layout { margin-top: 14px; }
  .category-toolbar { align-items: stretch; flex-direction: column; padding: 10px 11px; }
  .sort-control { justify-content: space-between; }
  .sort-control select { flex: 1; max-width: 220px; }
  .shop-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .active-filter-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
  .active-filter-row::-webkit-scrollbar { display: none; }
  .active-filter-row button { flex: 0 0 auto; }
}
