/*
 * Ready-made v10 — focused catalog controls refinement.
 * Keeps the approved information architecture while matching Custom's
 * quiet neutral surfaces, fine borders and restrained interaction weight.
 */
#view-ready .rm-search-slot {
  position: relative;
  display: flex;
  flex: 0 0 360px;
  justify-content: flex-end;
  width: 360px;
  height: 44px;
  isolation: isolate;
}

#view-ready .rm-search-slot .ready-search {
  position: absolute;
  inset: 0;
  width: auto;
  height: 44px;
  margin: 0;
  padding: 0 92px 0 15px;
  gap: 0;
  overflow: hidden;
  border: 1px solid #d6dcda;
  border-radius: 10px;
  background: #fcfdfc;
  box-shadow: 0 1px 2px rgba(30,39,33,.035);
  clip-path: inset(0 0 0 calc(100% - 44px) round 10px);
  opacity: 0;
  pointer-events: none;
  transition:
    clip-path 220ms var(--rm-ease),
    opacity 150ms ease-out,
    border-color 150ms ease-out,
    box-shadow 150ms ease-out;
}

#view-ready .rm-search-slot.is-open .ready-search {
  clip-path: inset(0 round 10px);
  opacity: 1;
  pointer-events: auto;
}

#view-ready .rm-search-slot.is-instant .ready-search {
  transition: none;
}

#view-ready .rm-search-slot.is-open .ready-search:focus-within {
  border-color: #aeb7b2;
  box-shadow: 0 0 0 3px rgba(83,103,92,.08);
}

#view-ready .rm-search-slot .ready-search:has(input:focus-visible) {
  outline: none;
}

#view-ready .rm-search-slot .ready-search input {
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0;
  font-size: 13px;
}

#view-ready .rm-search-slot .ready-search input::-webkit-search-cancel-button {
  display: none;
}

#view-ready .rm-search-slot .ready-search-clear {
  position: absolute;
  top: 5px;
  right: 47px;
  width: auto;
  height: 34px;
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #69716c;
  font-size: 11px;
  line-height: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#view-ready .rm-search-toggle {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid #d6dcda;
  border-radius: 50%;
  background: #fcfdfc;
  color: #374039;
  box-shadow: 0 1px 2px rgba(30,39,33,.04);
  transition:
    background-color 150ms ease-out,
    border-color 150ms ease-out,
    border-radius 180ms var(--rm-ease),
    box-shadow 150ms ease-out;
}

#view-ready .rm-search-toggle .rm-search-icon {
  display: block;
  width: 14px;
  height: 14px;
  margin: -1px 0 0 -1px;
  border: 1.4px solid currentColor;
  border-radius: 50%;
  transition: opacity 100ms ease-out;
}

#view-ready .rm-search-toggle .rm-search-icon::after {
  right: -4px;
  bottom: -3px;
  height: 5px;
  background: currentColor;
}

#view-ready .rm-search-close-icon {
  position: absolute;
  margin-top: -1px;
  font-size: 19px;
  font-weight: 300;
  line-height: 1;
  opacity: 0;
  transform: scale(.82);
  transition: opacity 100ms ease-out, transform 180ms var(--rm-ease);
}

#view-ready .rm-search-slot.is-open .rm-search-toggle {
  border-color: transparent;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

#view-ready .rm-search-slot.is-open .rm-search-toggle .rm-search-icon {
  opacity: 0;
}

#view-ready .rm-search-slot.is-open .rm-search-close-icon {
  opacity: 1;
  transform: scale(1);
}

#view-ready .rm-search-slot.has-query:not(.is-open) .rm-search-toggle {
  border-color: #c8d0cb;
  background: #eef1ef;
}

#view-ready .rm-search-slot.has-query:not(.is-open) .rm-search-toggle::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ef6335;
}

#view-ready .rm-shop-toolbar .ready-catalog-actions {
  gap: 12px;
}

#view-ready .rm-shop-toolbar .ready-sort {
  position: relative;
  display: block;
  width: 176px;
  height: 44px;
}

#view-ready .rm-shop-toolbar .ready-sort select {
  width: 100%;
  max-width: none;
  height: 44px;
  padding: 0 38px 0 14px;
  appearance: none;
  border: 1px solid #d6dcda;
  border-radius: 8px;
  background-color: #fcfdfc;
  background-image:
    linear-gradient(45deg,transparent 50%,#4b534e 50%),
    linear-gradient(135deg,#4b534e 50%,transparent 50%);
  background-position:
    calc(100% - 18px) 19px,
    calc(100% - 13px) 19px;
  background-repeat: no-repeat;
  background-size: 5px 5px,5px 5px;
  color: #303633;
  box-shadow: 0 1px 2px rgba(30,39,33,.035);
}

#view-ready .rm-shop-toolbar .ready-sort select:focus-visible {
  outline: 2px solid var(--rm-focus);
  outline-offset: 3px;
}

#view-ready .rm-shop-toolbar .ready-filter-trigger {
  width: 88px;
  min-width: 88px;
  height: 44px;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid #d6dcda;
  border-radius: 8px;
  background: #fcfdfc;
  color: #303633;
  box-shadow: 0 1px 2px rgba(30,39,33,.035);
}

#view-ready .rm-shop-toolbar .ready-filter-trigger[aria-expanded="true"] {
  border-color: #aeb8b1;
  background: #edf1ee;
  color: #29312c;
}

#view-ready .ready-filter-total {
  min-width: 17px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #e4e9e5;
  color: #435048;
  font-size: 10px;
  font-weight: 600;
}

#view-ready .ready-filter-shell {
  margin-top: 0;
  margin-bottom: 24px;
  padding: 18px 25px 24px;
  border-color: #d9dedc;
  border-radius: 12px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 12px 34px rgba(37,45,40,.045);
}

#view-ready .ready-filter-form {
  display: grid;
  grid-template-columns: minmax(0,1fr) 192px;
  grid-template-areas:
    "reset reset"
    "color size";
  gap: 10px 42px;
}

#view-ready .rm-filter-reset-top {
  grid-area: reset;
  justify-self: end;
  min-height: 32px;
  margin: -5px -3px 0 0;
  padding: 0 4px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #4e5952;
  font-size: 12px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: #aab3ad;
  text-underline-offset: 4px;
}

#view-ready .rm-filter-reset-top:disabled {
  cursor: default;
  opacity: .36;
  text-decoration-color: transparent;
}

#view-ready .rm-color-filter {
  grid-area: color;
}

#view-ready .rm-size-filter {
  grid-area: size;
}

#view-ready .ready-filter-form legend {
  margin-bottom: 13px;
  color: #29302c;
}

#view-ready .ready-filter-options label:has(input:checked) {
  border-color: #8b9a90;
  background: #eef1ef;
}

#view-ready .rm-size-filter .ready-filter-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

#view-ready .rm-size-filter .ready-filter-options label {
  min-height: 42px;
  justify-content: flex-start;
  padding-inline: 13px;
  border-color: #d9dedc;
  border-radius: 8px;
  background: #fcfdfc;
}

#view-ready .rm-size-filter .ready-filter-options label:has(input:checked) {
  border-color: #7e8d83;
  background: #edf1ee;
}

#view-ready .ready-filter-shell:not([hidden]) + .ready-active-filters .ready-clear-filters {
  display: none;
}

#view-ready .rm-filter-close-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 16px;
}

#view-ready .rm-filter-result-summary {
  margin: 0;
  color: #69716c;
  font-size: 12px;
}

#view-ready .rm-filter-hide {
  display: none;
}

#view-ready .ready-catalog-loading {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 24px;
}

#view-ready .ready-catalog-loading > span[aria-hidden="true"] {
  display: block;
  aspect-ratio: 1;
  border-radius: 10px;
  background: #ecefeb;
}

#view-ready .ready-catalog-error {
  padding: 64px 16px;
  text-align: center;
}

#view-ready .ready-catalog-error h3 {
  margin: 0 0 12px;
  font: 400 28px/1.2 Georgia,serif;
}

#view-ready .ready-catalog-error p {
  color: #69716c;
}

#view-ready .ready-catalog-error button,
#view-ready .ready-empty-actions button {
  display: inline-block;
  min-height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (hover:hover) and (pointer:fine) {
  #view-ready .rm-search-toggle:hover,
  #view-ready .rm-shop-toolbar .ready-sort select:hover,
  #view-ready .rm-shop-toolbar .ready-filter-trigger:hover {
    border-color: #b8c0bb;
    background-color: #f5f7f5;
  }

  #view-ready .rm-search-slot.is-open .rm-search-toggle:hover {
    border-color: transparent;
    background: #f0f2f0;
  }

  #view-ready .rm-search-slot .ready-search-clear:hover,
  #view-ready .rm-filter-reset-top:not(:disabled):hover {
    color: #252c28;
    background: #f0f3f1;
  }
}

@media (min-width:768px) and (max-width:1000px) {
  #view-ready .rm-search-slot {
    flex-basis: 340px;
    width: 340px;
  }
}

@media (max-width:767px) {
  #view-ready .rm-shop-toolbar .ready-catalog-bar {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  #view-ready .rm-search-slot {
    flex: none;
    width: 44px;
    height: 44px;
  }

  #view-ready .rm-search-slot.is-open {
    flex: 1 1 auto;
    width: auto;
  }

  #view-ready .rm-shop-toolbar .ready-catalog-bar:has(.rm-search-slot.is-open) .ready-catalog-actions {
    display: none;
  }

  #view-ready .rm-shop-toolbar .ready-catalog-actions {
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 8px;
  }

  #view-ready .ready-filter-shell {
    padding: 17px 18px 20px;
  }

  #view-ready .ready-filter-form {
    grid-template-columns: 1fr;
    grid-template-areas:
      "reset"
      "color"
      "size";
    gap: 12px;
  }

  #view-ready .rm-filter-reset-top {
    margin-right: -2px;
  }

  #view-ready .rm-size-filter .ready-filter-options {
    grid-template-columns: 1fr;
  }

  #view-ready .rm-filter-hide {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    margin: 16px 0 0 auto;
    padding: 0 3px;
    border: 0;
    border-bottom: 1px solid #aeb6b1;
    border-radius: 0;
    background: transparent;
    color: #354039;
    font-size: 12px;
    font-weight: 500;
  }

  #view-ready .rm-filter-close-row {
    justify-content: space-between;
  }

  #view-ready .ready-catalog-loading {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
  }
}

@media (max-width:420px) {
  #view-ready .ready-catalog-loading {
    grid-template-columns: minmax(0,1fr);
  }
}

@media (prefers-reduced-motion:reduce) {
  #view-ready .rm-search-slot .ready-search,
  #view-ready .rm-search-toggle,
  #view-ready .rm-search-toggle .rm-search-icon,
  #view-ready .rm-search-close-icon {
    transition: none;
  }
}
