/* 123eetstoel v2.5.9 — stable, conversion-focused category archives. */

/* Homepage category media must fill the entire circle. Category thumbnails are
   often landscape images, so cover is intentional here. */
.es-home-categories .es-round-category__media {
  position: relative;
  overflow: hidden !important;
  isolation: isolate;
  background: #ece9e2 !important;
}

.es-home-categories .es-round-category__media img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: scale(1.08);
  transition: transform 420ms var(--es-ease);
}

.es-home-categories .es-round-category:hover .es-round-category__media img {
  transform: scale(1.14);
}

/* Product archive foundation. */
body.eetstoel-product-archive {
  background: #f8f8f5;
}

body.eetstoel-product-archive .es-shop-page {
  width: 100%;
  max-width: none;
  padding: 0 var(--es-page-gutter, var(--es-gutter)) clamp(72px, 8vw, 128px);
}

.es-archive-shell {
  width: min(100%, 1680px);
  margin-inline: auto;
}

.es-archive-breadcrumb {
  display: flex;
  min-height: 48px;
  align-items: center;
  border-bottom: 1px solid var(--es-border);
}

.es-archive-breadcrumb .woocommerce-breadcrumb {
  width: 100%;
  padding: 0;
}

.es-archive-hero {
  position: relative;
  display: grid;
  min-height: clamp(270px, 31vw, 470px);
  margin-block: clamp(18px, 2.5vw, 36px) clamp(24px, 3vw, 44px);
  overflow: hidden;
  border-radius: clamp(18px, 1.7vw, 28px);
  background: #e9e6df;
  grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr);
}

.es-archive-hero--plain {
  min-height: 260px;
  background:
    radial-gradient(circle at 82% 15%, rgba(201,85,54,.12), transparent 28%),
    linear-gradient(135deg, #f0eee8, #e5e8e5);
  grid-template-columns: 1fr;
}

.es-archive-hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  max-width: 760px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 82px);
}

.es-archive-hero__copy .es-eyebrow {
  margin-bottom: 12px;
}

.es-archive-hero__copy h1 {
  max-width: 13ch;
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 5vw, 5.7rem);
  line-height: .93;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.es-archive-hero__copy > p:not(.es-eyebrow) {
  max-width: 58ch;
  margin: 0;
  color: #596262;
  font-size: clamp(.96rem, 1.1vw, 1.14rem);
  line-height: 1.65;
}

.es-archive-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.es-archive-hero__facts span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(32,36,37,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  font-size: .74rem;
  font-weight: 750;
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

.es-archive-hero__facts .es-icon {
  color: var(--es-success);
}

.es-archive-hero__media {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}

.es-archive-hero__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #e9e6df 0%, rgba(233,230,223,.18) 25%, transparent 55%);
  content: "";
  pointer-events: none;
}

.es-archive-hero__media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.025);
}

.es-archive-children {
  display: grid;
  margin-bottom: clamp(28px, 3vw, 46px);
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.es-archive-children > a {
  display: grid;
  min-height: 96px;
  align-items: center;
  gap: 13px;
  padding: 12px;
  border: 1px solid var(--es-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(32,36,37,.035);
  grid-template-columns: 70px minmax(0, 1fr) auto;
  transition: transform 220ms var(--es-ease), border-color 180ms ease, box-shadow 220ms ease;
}

.es-archive-children > a:hover {
  border-color: color-mix(in srgb, var(--es-accent) 55%, var(--es-border));
  box-shadow: 0 16px 34px rgba(32,36,37,.07);
  transform: translateY(-3px);
}

.es-archive-children__media {
  display: grid;
  width: 70px;
  height: 70px;
  overflow: hidden;
  place-items: center;
  border-radius: 12px;
  background: #eeeae3;
  color: var(--es-muted);
}

.es-archive-children__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}

.es-archive-children > a > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.es-archive-children strong {
  overflow: hidden;
  font-size: .86rem;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.es-archive-children small {
  color: var(--es-soft-text);
  font-size: .69rem;
}

/* Keep the filters visually connected to the products. */
.es-archive-tools {
  position: relative;
  z-index: 20;
  margin-bottom: 0;
}

.es-archive-tools .es-quick-filters {
  padding-bottom: 14px;
}

.es-shop-toolbar {
  top: 0 !important;
  border-top: 1px solid var(--es-border);
  background: rgba(248,248,245,.94);
}

.admin-bar .es-shop-toolbar {
  top: 32px !important;
}

.es-shop-layout {
  gap: clamp(24px, 2.5vw, 42px);
  padding-top: 28px;
  grid-template-columns: 250px minmax(0, 1fr);
}

.es-shop-sidebar__inner {
  padding: 20px;
  border: 1px solid var(--es-border);
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 14px 36px rgba(32,36,37,.04);
}

.es-shop-products ul.products {
  display: grid !important;
  margin: 0 !important;
  gap: clamp(18px, 2vw, 28px) !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.es-shop-products ul.products::before,
.es-shop-products ul.products::after {
  display: none !important;
}

.es-shop-products ul.products li.product {
  width: auto !important;
  margin: 0 !important;
}

.es-archive-error-fallback {
  display: grid;
  min-height: 300px;
  place-items: center;
  padding: 40px;
  border: 1px solid var(--es-border);
  border-radius: 18px;
  background: #fff;
  text-align: center;
}

@media (max-width: 1360px) {
  .es-shop-products ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1024px) {
  .es-archive-hero {
    min-height: 390px;
    grid-template-columns: minmax(0, .88fr) minmax(300px, 1.12fr);
  }

  .es-archive-children {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .es-shop-layout {
    display: block;
    padding-top: 20px;
  }

  .es-shop-products ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 782px) {
  .admin-bar .es-shop-toolbar {
    top: 46px !important;
  }
}

@media (max-width: 767px) {
  body.eetstoel-product-archive .es-shop-page {
    padding-inline: 14px;
  }

  .es-archive-breadcrumb {
    min-height: 40px;
  }

  .es-archive-hero,
  .es-archive-hero--plain {
    min-height: 0;
    margin-block: 12px 20px;
    border-radius: 16px;
    grid-template-columns: 1fr;
  }

  .es-archive-hero__copy {
    order: 2;
    padding: 25px 20px 28px;
  }

  .es-archive-hero__copy h1 {
    max-width: none;
    font-size: clamp(2.35rem, 12vw, 3.5rem);
  }

  .es-archive-hero__copy > p:not(.es-eyebrow) {
    font-size: .9rem;
  }

  .es-archive-hero__facts {
    margin-top: 18px;
  }

  .es-archive-hero__media {
    order: 1;
    min-height: 220px;
    aspect-ratio: 16 / 10;
  }

  .es-archive-hero__media::after {
    background: linear-gradient(0deg, #e9e6df 0%, rgba(233,230,223,.05) 38%, transparent 62%);
  }

  .es-archive-children {
    gap: 9px;
  }

  .es-archive-children > a {
    min-height: 78px;
    gap: 9px;
    padding: 9px;
    border-radius: 13px;
    grid-template-columns: 55px minmax(0, 1fr);
  }

  .es-archive-children > a > .es-icon {
    display: none;
  }

  .es-archive-children__media {
    width: 55px;
    height: 55px;
    border-radius: 10px;
  }

  .es-archive-children strong {
    font-size: .76rem;
  }

  .es-shop-toolbar {
    min-height: 58px;
    gap: 8px;
  }

  .es-shop-toolbar__left,
  .es-shop-toolbar__right {
    gap: 7px;
  }

  .es-result-count {
    display: none;
  }

  .es-view-switch {
    display: none;
  }

  .woocommerce-ordering select {
    max-width: 150px;
  }

  .es-shop-products ul.products {
    gap: 16px 10px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .es-shop-products .es-product-card__body {
    padding-inline: 2px;
  }
}

@media (max-width: 370px) {
  .es-shop-toolbar__right .woocommerce-ordering select {
    max-width: 132px;
    font-size: .7rem;
  }
}
