/* Shop layout and filters — complementary to the supplied card design. */

.she-aced-wrap--shop {
  width: 100%;
}

.she-aced-shop {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.she-aced-filters {
  border: 1px solid #f6a1a9;
  padding: 22px 20px 24px;
  background: transparent;
  color: #fbf3e9;
}

.she-aced-filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.she-aced-filters-title,
.she-aced-filter-group legend {
  color: #fbf3e9;
  font-family: 'Italiana', serif;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.she-aced-filters-title {
  font-size: 1.35rem;
  margin: 0;
}

.she-aced-filters-close {
  display: none;
  background: transparent;
  border: 0;
  color: #fbf3e9;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.she-aced-filter-group {
  border: 0;
  margin: 0 0 22px;
  padding: 0;
}

.she-aced-filter-group legend {
  font-size: 1.05rem;
  margin-bottom: 10px;
  padding: 0;
}

.she-aced-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #fbf3e9;
  cursor: pointer;
}

.she-aced-check input {
  accent-color: #E27080;
  width: 15px;
  height: 15px;
  margin: 0;
}

.she-aced-check span {
  flex: 1;
}

.she-aced-check em {
  font-style: normal;
  opacity: 0.7;
  font-size: 13px;
}

.she-aced-price-track {
  position: relative;
  height: 28px;
  margin: 6px 0 12px;
}

.she-aced-range {
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
  appearance: none;
  background: transparent;
  height: 28px;
  margin: 0;
}

.she-aced-range::-webkit-slider-runnable-track {
  height: 3px;
  background: #f6a1a9;
}

.she-aced-range::-moz-range-track {
  height: 3px;
  background: #f6a1a9;
}

.she-aced-range::-webkit-slider-thumb {
  appearance: none;
  pointer-events: auto;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border-radius: 50%;
  border: 0;
  background: #E27080;
  cursor: pointer;
}

.she-aced-range::-moz-range-thumb {
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 0;
  background: #E27080;
  cursor: pointer;
}

.she-aced-price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.she-aced-price-inputs label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.3px;
  color: #fbf3e9;
}

.she-aced-price-inputs input,
.she-aced-sort select {
  width: 100%;
  background: transparent;
  border: 1px solid #f6a1a9;
  color: #fbf3e9;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 0;
}

.she-aced-filter-actions {
  display: grid;
  gap: 10px;
}

.she-aced-apply,
.she-aced-reset,
.she-aced-load-more,
.she-aced-filters-toggle {
  background: #E27080;
  color: #fbf3e9;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 11px 26px;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.she-aced-reset {
  background: transparent;
  color: #fbf3e9;
  border: 1px solid #f6a1a9;
}

.she-aced-apply:hover,
.she-aced-load-more:hover,
.she-aced-filters-toggle:hover {
  background: #fbf3e9;
  color: #E27080;
}

.she-aced-reset:hover {
  background: #E27080;
  color: #fbf3e9;
}

.she-aced-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.she-aced-count,
.she-aced-sort {
  color: #fbf3e9;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  margin: 0;
}

.she-aced-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.she-aced-sort select {
  min-width: 190px;
}

.she-aced-grid-wrap {
  position: relative;
  min-height: 120px;
}

.she-aced-grid-wrap.is-loading .grid {
  opacity: 0.4;
  pointer-events: none;
}

.she-aced-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: #fbf3e9;
  font-family: 'Jost', sans-serif;
  letter-spacing: 0.4px;
}

.she-aced-loading[hidden] {
  display: none;
}

.she-aced-pagination {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.she-aced-filters-toggle {
  display: none;
  width: 100%;
  margin-bottom: 18px;
}

.she-aced-filters-backdrop {
  display: none;
}

@media (max-width: 900px) {
  .she-aced-shop {
    grid-template-columns: 1fr;
  }

  .she-aced-filters-toggle {
    display: block;
  }

  .she-aced-filters {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100000;
    width: min(360px, 92vw);
    height: 100vh;
    max-height: 100%;
    overflow-y: auto;
    background: #2a211c;
    transform: translateX(-105%);
    transition: transform 0.3s ease;
  }

  .she-aced-wrap--shop.is-filters-open .she-aced-filters {
    transform: translateX(0);
  }

  .she-aced-filters-close {
    display: block;
  }

  .she-aced-filters-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99999;
  }

  .she-aced-filters-backdrop[hidden] {
    display: none;
  }
}

@media (max-width: 500px) {
  .she-aced-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .she-aced-sort,
  .she-aced-sort select {
    width: 100%;
  }
}
