/**
 * A Selection kategóriaoldal (`taxonomy-product_cat-selection` Etch sablon).
 *
 * Sötét hős, krémszínű elvek sáv, szűrősáv a rács fölött, fekete záró sáv. A
 * termékkártya és a rács a saját Etch stílusait hozza; a gombok a főoldal
 * `home-cta` stílusai, amiket a sablon blokkjai hivatkoznak.
 *
 * px és em, nem rem: az ACSS itt 62.5%-ra állítja a html betűméretét. A
 * Jost a `body`-ról jön (`innowine-typography.css`).
 */

/* --------------------------------------------------------------- a keret */

.sel-page {
  --content-width: none;
  display: block;
  inline-size: 100%;
  margin: 0;
  padding: 0;
  color: #111;
}

.sel-page :is(h1, h2, h3, p, button, input, select) {
  font-family: inherit;
}

.sel-page :is(h1, h2, h3, p) {
  margin: 0;
}

/* Az ACSS a csupasz `section`-re flex oszlopot, gapet és paddinget tesz; a
   sávok minden térköze innen jön. */
.sel-page .sel-band {
  display: block;
  inline-size: 100%;
  margin: 0;
  padding: 0;
}

.sel-wrap {
  box-sizing: border-box;
  inline-size: 100%;
  max-inline-size: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
}

@media (width <= 767px) {
  .sel-wrap {
    padding-inline: 16px;
  }
}

/* A morzsamenü a hősbe költözik, a fejléc szürke sávja itt nem kell. A
   BreadcrumbList strukturált adat attól még kimegy. */
body.term-selection .breadcrumb-bar {
  display: none;
}

/* Az aktív Selection menüpont jelölése az `innowine-header-nav.css`-ben van,
   a többi menüponttal közösen. */

/* ------------------------------------------------------------------ hős */

.sel-hero {
  background: #111;
  color: #fff;
}

.sel-hero__crumbs {
  padding-block-start: 20px;
}

.sel-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #8a8a8a;
  font-size: 13px;
  line-height: 1.4;
}

.sel-crumbs a {
  color: inherit;
  text-decoration: none;
}

.sel-crumbs a:hover,
.sel-crumbs a:focus-visible {
  color: #fff;
}

.sel-crumbs [aria-current] {
  color: #fff;
}

.sel-hero__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px;
  align-items: center;
  padding-block: 40px 56px;
}

@media (width <= 767px) {
  .sel-hero__inner {
    gap: 32px;
    padding-block: 28px 40px;
  }
}

.sel-hero__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-inline-size: 0;
}

.sel-hero__eyebrow {
  color: #E8C77A;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.sel-hero .sel-hero__title {
  color: #fff;
  font-size: clamp(34px, 4.4vw, 48px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.sel-hero__intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-inline-size: 540px;
}

.sel-hero__intro p {
  color: #9a9a9a;
  font-size: 15px;
  line-height: 1.6;
  text-wrap: pretty;
}

.sel-hero__intro p:first-child {
  color: #cfcfcf;
  font-size: 17px;
}

.sel-hero__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1c1a17;
}

/* Két osztály: a WooCommerce `.woocommerce img` szabálya egy osztályt leverne. */
.sel-hero__media .sel-hero__img {
  position: absolute;
  inset: 0;
  display: block;
  inline-size: 100%;
  block-size: 100%;
  max-inline-size: none;
  object-fit: cover;
}

/* ------------------------------------------------------------ elvek sáv */

.sel-principles {
  border-block-end: 1px solid #e6e6e6;
  background: #F7F3EA;
}

.sel-principles__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 24px;
  padding-block: 24px;
}

.sel-principle {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.sel-principle__no {
  color: #8a6a1f;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
}

.sel-principle__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sel-principle__title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.sel-principle__desc {
  color: #4a4a4a;
  font-size: 13px;
  line-height: 1.45;
}

/* ---------------------------------------------------------------- lista */

.sel-list {
  scroll-margin-block-start: 80px;
}

.sel-list__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-block: 40px 64px;
}

/* Amíg a szkript a következő nézetet tölti. */
.sel-list[aria-busy="true"] .product-grid {
  opacity: .45;
  transition: opacity .2s ease;
}

.sel-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block-end: 20px;
  border-block-end: 1px solid #e6e6e6;
}

.sel-filters__types,
.sel-filters__countries,
.sel-filters__side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sel-page .sel-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #111;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.sel-page .sel-chip:hover {
  border-color: #111;
  color: #111;
}

.sel-page .sel-chip.is-active {
  border-color: #111;
  background: #111;
  color: #fff;
}

.sel-chip__dot {
  flex: none;
  inline-size: 9px;
  block-size: 9px;
  border-radius: 50%;
  background: var(--dot);
}

.sel-chip__count {
  font-size: 12px;
  opacity: .6;
}

.sel-page .sel-tab {
  padding: 6px 4px;
  border-block-end: 2px solid transparent;
  color: #6b6b6b;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease;
}

.sel-page .sel-tab:hover {
  color: #111;
}

.sel-page .sel-tab.is-active {
  border-color: #B3161E;
  color: #111;
}

.sel-page :is(.sel-chip, .sel-tab, .sel-sort__select, .sel-button):focus-visible {
  outline: 2px solid #B3161E;
  outline-offset: 2px;
}

/* The hero's crumbs and the closing band's links sit on #111, where the red
   ring is 2.7:1 (WCAG 1.4.11 wants 3:1). White there: 18.9:1. */
.sel-page :is(.sel-crumbs a, .sel-cta__lead a):focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.sel-filters__sep {
  inline-size: 1px;
  block-size: 20px;
  margin-inline: 8px;
  background: #e6e6e6;
}

.sel-sort {
  margin: 0;
}

.sel-sort .sel-sort__select {
  box-sizing: border-box;
  block-size: auto;
  min-block-size: 0;
  padding: 9px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 0;
  background-color: #fff;
  color: #111;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
}

@media (width <= 767px) {
  /* Mobilon a sáv sorokra esik: a chipek fent, alattuk a fülek, és ha nem
     fér, a rendezés egy saját sorban. */
  .sel-filters__side {
    inline-size: 100%;
  }

  .sel-filters__sep {
    display: none;
  }
}

.sel-page .sel-count {
  color: #6b6b6b;
  font-size: 14px;
  line-height: 1.4;
}

/* A rács saját „üres” sora helyett a lenti keretes üzenet áll. */
.sel-list .product-grid__items:empty + .product-grid__empty {
  display: none;
}

.sel-list .product-grid:has(.product-grid__items:empty) {
  display: none;
}

.sel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px;
  border: 1px dashed #d9d9d9;
  text-align: center;
}

.sel-page .sel-empty__text {
  font-size: 16px;
  line-height: 1.5;
}

.sel-more {
  display: flex;
  justify-content: center;
}

/* A főoldal körvonalas gombja: fekete keret, balról piros söprés. */
.sel-page .sel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid #111;
  background-color: #fff;
  background-image: linear-gradient(#B3161E, #B3161E);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 0% 100%;
  color: #111;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-size .4s cubic-bezier(.2, .7, .2, 1), border-color .25s ease, color .25s ease;
}

.sel-page .sel-button:hover,
.sel-page .sel-button:focus-visible {
  border-color: #B3161E;
  background-size: 100% 100%;
  color: #fff;
}

.sel-more .sel-button {
  min-inline-size: 240px;
  padding: 14px 26px;
}

.sel-page .sel-button[aria-busy="true"] {
  opacity: .6;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .sel-page .sel-button {
    transition: none;
  }
}

/* ------------------------------------------------------------ záró sáv */

.sel-cta {
  background: #111;
  color: #fff;
}

.sel-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 48px;
}

.sel-cta__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-inline-size: 620px;
}

.sel-cta .sel-cta__title {
  color: #fff;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
}

.sel-cta .sel-cta__lead {
  color: #cfcfcf;
  font-size: 15px;
  line-height: 1.55;
}

.sel-cta .sel-cta__lead a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / .45);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s ease;
}

.sel-cta .sel-cta__lead a:hover {
  color: #fff;
  text-decoration-color: #B3161E;
}

.sel-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sel-cta .home-cta {
  --_cta-pad: 14px 24px;
  --_cta-size: 13px;
}
