/* BAURAN retail refinement 0.7.54
   Deliberately small final layer over the historical theme stylesheet. */

:root {
  --bauran-retail-white: #fff;
  --bauran-retail-cloud: #f3f5f6;
  --bauran-retail-line: #dfe3e6;
  --bauran-retail-ink: #11161c;
  --bauran-retail-muted: #626a72;
}

body.bauran-search-open {
  overflow: hidden;
}

/* Navigation: three real families, four current products. */
@media (min-width: 992px) {
  #header .bauran-header__menu > a,
  #header .bauran-catalog-menu > summary,
  #header .bauran-header__utilities > a,
  #header .bauran-header__utilities > button {
    font-size: .76rem;
  }

}

/* Search: less editorial preamble, more room for actual products. */
#header #search-block[aria-hidden="true"] {
  visibility: hidden;
}

#header #search-block[aria-hidden="false"] {
  visibility: visible;
}

#header .bauran-search-layer__inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

#header .bauran-search-layer__header {
  align-items: start;
  min-height: 0;
  padding-bottom: clamp(1.25rem, 2.5vh, 2rem);
}

#header .bauran-search-layer__header h2 {
  font-size: clamp(2.3rem, 5.1vw, 4.9rem);
  line-height: .94;
  max-width: 8.5ch;
}

#header .bauran-search-layer__header p:last-child {
  margin-top: .8rem;
}

#header .bauran-search-layer__form {
  padding-top: 0;
  position: relative;
  z-index: 3;
}

#header .bauran-search-layer__form input[type="text"],
#header .bauran-search-layer__form input[type="search"] {
  font-size: clamp(1.25rem, 2.3vw, 2rem);
  min-height: 64px;
  padding-block: .85rem;
}

#header .bauran-search-layer__form .clear {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--bauran-retail-ink);
  cursor: pointer;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .08em;
  padding: .8rem .25rem;
  text-transform: uppercase;
}

#header .bauran-search-layer__form .clear:focus-visible {
  outline: 2px solid var(--bauran-gold);
  outline-offset: 3px;
}

#header #search-block.has-results .bauran-search-layer__shortcuts {
  display: none;
}

.ui-autocomplete.searchbar-autocomplete {
  background: #fff;
  border: 1px solid var(--bauran-retail-line);
  box-shadow: 0 22px 60px rgba(17, 22, 28, .14);
  max-height: min(48vh, 480px);
  overflow-y: auto;
  padding: .35rem;
  z-index: 10000 !important;
}

.ui-autocomplete.searchbar-autocomplete li {
  border-bottom: 1px solid #eceff1;
  margin: 0;
  min-height: 92px;
}

.ui-autocomplete.searchbar-autocomplete li:last-child {
  border-bottom: 0;
}

.ui-autocomplete.searchbar-autocomplete li > a,
.ui-autocomplete.searchbar-autocomplete .ui-menu-item-wrapper {
  align-items: center;
  color: var(--bauran-retail-ink);
  display: grid;
  gap: 1rem;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  min-height: 92px;
  padding: .55rem .75rem;
}

.ui-autocomplete.searchbar-autocomplete img {
  background: #f2f3f3;
  height: 76px;
  object-fit: contain;
  width: 76px;
}

.ui-autocomplete.searchbar-autocomplete .product-name,
.ui-autocomplete.searchbar-autocomplete .product-title,
.ui-autocomplete.searchbar-autocomplete span {
  font-size: .9rem;
  line-height: 1.35;
}

.ui-autocomplete.searchbar-autocomplete .product-price,
.ui-autocomplete.searchbar-autocomplete .price {
  font-size: .84rem;
  font-weight: 800;
  white-space: nowrap;
}

/* Home: keep the full-screen campaign, but make the catalogue begin sooner. */
body#index .bauran-home-threshold__inner {
  min-height: 126px;
}

body#index .bauran-range-intro {
  min-height: 230px;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

body#index .bauran-range-intro h2 {
  font-size: clamp(2.35rem, 4.7vw, 5rem);
  max-width: 11ch;
}

body#index .bauran-products__hook {
  margin-top: 0;
}

body#index .bauran-final-cta__range {
  border: 1px solid var(--bauran-border);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body#index .bauran-final-cta__range a {
  color: var(--bauran-ink);
  display: grid;
  gap: .35rem;
  min-height: 145px;
  padding: 1.5rem;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

body#index .bauran-final-cta__range a:nth-child(odd) {
  border-right: 1px solid var(--bauran-border);
}

body#index .bauran-final-cta__range a:nth-child(-n+2) {
  border-bottom: 1px solid var(--bauran-border);
}

body#index .bauran-final-cta__range a:hover,
body#index .bauran-final-cta__range a:focus-visible {
  background: var(--bauran-gold);
  color: #11161c;
  outline: none;
}

/* Los indices 01-04 iban con el dorado de marca sobre tarjeta blanca: 2.10
   de contraste, cuando un rotulo de 0.62rem necesita 4.5. Al token, que toma
   el valor de la superficie. En hover el fondo pasa a dorado y el texto a
   oscuro, asi que ese estado ya estaba bien y no se toca. */
body#index .bauran-final-cta__range span {
  color: var(--bauran-gold-ink);
  font-size: .62rem;
  letter-spacing: .14em;
}

body#index .bauran-final-cta__range a:hover span,
body#index .bauran-final-cta__range a:focus-visible span {
  color: #11161c;
}

body#index .bauran-final-cta__range strong {
  align-self: end;
  font-size: 1rem;
  letter-spacing: .04em;
}

body#index .bauran-final-cta__range small {
  color: #5a6066;
  font-size: .72rem;
}

body#index .bauran-final-cta__range a:hover small,
body#index .bauran-final-cta__range a:focus-visible small {
  color: rgba(17, 22, 28, .72);
}

/* Category: a compact decision header and controlled card width. */
body#category .bauran-category-hero__retail-grid {
  grid-template-columns: 104px minmax(0, 1fr) minmax(210px, .3fr);
  min-height: 210px;
}

body#category .bauran-category-hero__chapter,
body#category .bauran-category-hero__summary {
  padding: 1.4rem;
}

body#category .bauran-category-hero--retail .bauran-category-hero__copy {
  padding: clamp(1.5rem, 3vw, 2.4rem);
}

body#category #main .bauran-category-hero--retail h1 {
  font-size: clamp(2.5rem, 4vw, 4.6rem);
  margin-bottom: .75rem;
}

body#category .bauran-category-hero__summary small {
  margin-top: .8rem;
  padding-top: .8rem;
}

body#category .bauran-category-nav {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

body#category .bauran-listing-selection {
  margin-block: 1.6rem 1.2rem;
}

body#category .bauran-listing-page #products .products.product-list-grid {
  grid-template-columns: repeat(2, minmax(0, 540px));
  justify-content: center;
}

body#category .bauran-product-card__media,
body#category .bauran-product-card__image-link {
  min-height: 0;
}

body#category .bauran-product-card__image-link {
  aspect-ratio: 1 / 1;
}

/* Product media: match the provisional photography instead of framing it as a
   second coloured square. Keep it subordinate to the buying information. */
body#product .bauran-product-gallery {
  max-width: 480px;
}

body#product .bauran-product-gallery__stage,
body#product .bauran-product-gallery__picture {
  background: linear-gradient(145deg, #f3f3f1 0%, #e8e9e8 100%);
}

body#product .bauran-product-gallery__stage {
  aspect-ratio: 1 / 1;
  min-height: 0;
}

body#product .bauran-product-gallery__cover {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

body#product .bauran-product-gallery__rail {
  margin-top: .75rem;
}

body#product .bauran-product-gallery__thumb {
  background: linear-gradient(145deg, #f3f3f1 0%, #e8e9e8 100%);
  object-fit: contain;
}

@media (max-width: 991.98px) {
  #header .bauran-header__mobile {
    grid-template-columns: 88px minmax(0, 1fr) 88px;
  }

  #header .bauran-mobile-menu__panel {
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  #header .bauran-mobile-menu__panel .bauran-mobile-menu__product {
    align-items: center;
    display: grid;
    gap: .85rem;
    grid-template-columns: 1.6rem minmax(0, 1fr);
    padding-left: 1.15rem;
  }

  #header .bauran-mobile-menu__panel .bauran-mobile-menu__product > span {
    color: var(--bauran-gold);
    font-size: .58rem;
    letter-spacing: .12em;
  }

  #header .bauran-mobile-menu__panel .bauran-mobile-menu__product strong {
    font-size: .7rem;
    letter-spacing: .055em;
  }

  #header .bauran-search-layer__inner {
    padding-bottom: 1.25rem;
  }

  #header .bauran-search-layer__header h2 {
    font-size: clamp(2.25rem, 12vw, 3.7rem);
    max-width: 7ch;
  }

  .ui-autocomplete.searchbar-autocomplete li > a,
  .ui-autocomplete.searchbar-autocomplete .ui-menu-item-wrapper {
    grid-template-columns: 64px minmax(0, 1fr);
    min-height: 80px;
  }

  .ui-autocomplete.searchbar-autocomplete img {
    height: 64px;
    width: 64px;
  }

  .ui-autocomplete.searchbar-autocomplete .product-price,
  .ui-autocomplete.searchbar-autocomplete .price {
    grid-column: 2;
  }

  body#category .bauran-category-hero__retail-grid {
    grid-template-columns: 64px minmax(0, 1fr);
    min-height: 0;
  }

  body#category .bauran-category-hero__summary {
    border-left: 1px solid var(--bauran-retail-line);
    grid-column: 1 / -1;
    grid-template-columns: auto 1fr;
    gap: .3rem .8rem;
  }

  body#category .bauran-category-hero__summary small {
    grid-column: 1 / -1;
  }

  body#category .bauran-listing-page #products .products.product-list-grid {
    grid-template-columns: minmax(0, 580px);
  }
}

@media (max-width: 767.98px) {
  body#index .bauran-home-threshold__inner {
    min-height: 104px;
  }

  body#index .bauran-range-intro {
    min-height: 0;
    padding-block: 2.4rem;
  }

  body#index .bauran-final-cta__range {
    grid-template-columns: 1fr;
  }

  body#index .bauran-final-cta__range a,
  body#index .bauran-final-cta__range a:nth-child(odd),
  body#index .bauran-final-cta__range a:nth-child(-n+2) {
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    min-height: 112px;
  }

  body#index .bauran-final-cta__range a:last-child {
    border-bottom: 0;
  }

  body#category .bauran-category-nav {
    grid-template-columns: 1fr;
  }

  body#category .bauran-category-nav a {
    border-left: 1px solid var(--bauran-retail-line);
  }

  body#product .bauran-product-gallery {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #header .bauran-catalog-menu__families > a,
  body#index .bauran-final-cta__range a {
    transition: none;
  }
}
