/* Barra de búsqueda tipo Amazon + nav de categorías — Print2List */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.p2l-store {
  width: 100%;
}

.p2l-searchbar {
  background: #1a3d35;
  padding: 0.55rem 0;
}

.p2l-searchform {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 1100px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  min-width: 0;
}

.p2l-search-cat {
  display: flex;
  flex: 0 0 auto;
  max-width: 38%;
  background: #ece9e2;
  border-right: 1px solid #d4cfc6;
}

.p2l-search-cat select {
  appearance: none;
  border: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2312352d' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.55rem center;
  padding: 0.7rem 1.6rem 0.7rem 0.75rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 650;
  color: #12352d;
  max-width: 100%;
  cursor: pointer;
}

.p2l-search-q {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
}

.p2l-search-q:focus,
.p2l-search-cat select:focus {
  outline: 2px solid rgba(196, 92, 38, 0.45);
  outline-offset: -2px;
}

.p2l-search-go {
  flex: 0 0 auto;
  border: 0;
  background: #c45c26;
  color: #fff;
  font: inherit;
  font-weight: 750;
  padding: 0.7rem 1.1rem;
  cursor: pointer;
}

.p2l-search-go:hover {
  background: #a84c1e;
}

.p2l-catnav {
  background: #12352d;
  color: #d7ebe4;
}

.p2l-catnav-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
}

.p2l-catnav-track {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.p2l-catnav-track::-webkit-scrollbar {
  display: none;
}

.p2l-catnav-arrow {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}
.p2l-catnav-arrow:hover {
  background: rgba(255, 255, 255, 0.16);
}
.p2l-catnav-arrow[hidden] {
  display: none !important;
}
.p2l-catnav-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.p2l-catnav a {
  flex: 0 0 auto;
  color: #d7ebe4;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 650;
  padding: 0.65rem 0.7rem;
  white-space: nowrap;
  border-radius: 8px;
}

.p2l-catnav a:hover,
.p2l-catnav a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.p2l-catnav-special {
  color: #ffb347 !important;
}

.p2l-bc {
  margin: 0.85rem 0 1rem;
  font-size: 0.88rem;
}

.p2l-bc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.15rem;
  align-items: center;
}

.p2l-bc li:not(:last-child)::after {
  content: "/";
  margin: 0 0.4rem;
  color: var(--muted, #6b6760);
}

.p2l-bc a {
  color: var(--accent, #0f5c4c);
  text-decoration: none;
  font-weight: 650;
}

.p2l-bc a:hover {
  text-decoration: underline;
}

.p2l-bc [aria-current="page"] span {
  color: var(--ink, #1c1b19);
  font-weight: 700;
}

.catalog-page {
  padding-bottom: 3rem;
}

.catalog-head {
  margin: 0 0 1.25rem;
}

.catalog-head h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.cat-group h2 a {
  color: inherit;
  text-decoration: none;
}

.cat-group h2 a:hover {
  color: var(--accent, #0f5c4c);
  text-decoration: underline;
}

.ps-ficha__cat a {
  color: inherit;
  text-decoration: none;
}

.ps-ficha__cat a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .p2l-search-cat {
    max-width: 34%;
  }
  .p2l-search-cat select {
    font-size: 0.78rem;
    padding-left: 0.5rem;
  }
  .p2l-search-go {
    padding: 0.7rem 0.8rem;
  }
}
