.aok-product-archive {
  --aok-shop-surface: #f9f9ff;
  --aok-shop-card: #ffffff;
  --aok-shop-container: #e7eefe;
  --aok-shop-variant: #dce2f3;
  --aok-shop-text: #151c27;
  --aok-shop-muted: #5f5e5e;
  --aok-shop-primary: #d87612;
  --aok-shop-orange: #f38b1c;
  --aok-shop-dark: #2a313d;
  --aok-shop-border: #dbc2af;
  width: 100%;
  background: var(--aok-shop-surface);
  color: var(--aok-shop-text);
  font-family: "IBM Plex Sans", Arial, sans-serif !important;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.aok-product-archive,
.aok-product-archive *,
.aok-product-archive *::before,
.aok-product-archive *::after {
  box-sizing: border-box;
}

.aok-product-archive h1,
.aok-product-archive h2,
.aok-product-archive h3,
.aok-product-archive p,
.aok-product-archive ul,
.aok-product-archive fieldset,
.aok-product-archive legend {
  margin: 0 !important;
  padding: 0;
}

.aok-product-archive a {
  color: inherit;
  text-decoration: none;
}

.aok-product-archive__main {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px 48px;
}

.aok-product-archive__hero {
  margin-bottom: 64px;
  padding: 8px 0 8px 24px;
  border-left: 4px solid var(--aok-shop-orange);
}

.aok-product-archive__hero h1 {
  margin-bottom: 16px !important;
  color: var(--aok-shop-text) !important;
  font-family: "IBM Plex Sans", Arial, sans-serif !important;
  font-size: 56px;
  font-weight: 700;
  line-height: 64px;
  letter-spacing: -0.02em;
}

.aok-product-archive__hero p {
  max-width: 768px;
  color: var(--aok-shop-muted);
  font-size: 18px;
  line-height: 28px;
}

.aok-product-archive__layout {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.aok-product-filters {
  flex: 0 0 calc(25% - 24px);
  width: calc(25% - 24px);
}

.aok-product-filters__panel {
  position: sticky;
  top: 112px;
  padding: 24px;
  border: 1px solid var(--aok-shop-border);
  border-radius: 4px;
  background: var(--aok-shop-card);
  box-shadow: 0 1px 2px rgb(21 28 39 / 6%);
}

.aok-product-filters__group {
  min-width: 0;
  border: 0;
}

.aok-product-filters__group:not(:last-child) {
  margin-bottom: 32px !important;
}

.aok-product-filters__group legend,
.aok-product-filters__legend {
  display: block;
  width: 100%;
  margin-bottom: 16px !important;
  color: var(--aok-shop-text);
  font-family: "IBM Plex Sans", Arial, sans-serif !important;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
}

.aok-product-filters__option {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--aok-shop-text);
  cursor: pointer;
}

.aok-product-filters__option + .aok-product-filters__option {
  margin-top: 12px;
}

.aok-product-filters__option span {
  transition: color 180ms ease;
}

.aok-product-filters__option:hover span {
  color: var(--aok-shop-primary);
}

.aok-product-filters input[type="checkbox"],
.aok-product-filters input[type="radio"] {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 0;
  border: 1px solid var(--aok-shop-border);
  background: #fff;
  accent-color: var(--aok-shop-primary);
}

.aok-product-filters input[type="checkbox"] {
  border-radius: 2px;
}

.aok-product-filters input:focus-visible,
.aok-product-filters select:focus-visible {
  outline: 2px solid var(--aok-shop-primary);
  outline-offset: 2px;
}

.aok-product-filters select {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 8px 36px 8px 12px;
  border: 1px solid var(--aok-shop-border);
  border-radius: 4px;
  background-color: var(--aok-shop-surface);
  color: var(--aok-shop-text);
  font: inherit;
}

.aok-product-results {
  flex: 1 1 auto;
  min-width: 0;
  width: calc(75% - 8px);
}

.aok-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.aok-product-card.product {
  display: flex;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  flex-direction: column;
  float: none !important;
  width: auto !important;
  border: 1px solid var(--aok-shop-border);
  border-radius: 4px;
  background: var(--aok-shop-card);
  box-shadow: none;
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.aok-product-card.product[hidden] {
  display: none !important;
}

.aok-product-card.product:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgb(21 28 39 / 10%);
}

.aok-product-card__image {
  position: relative;
  display: block;
  width: 100%;
  height: 192px;
  overflow: hidden;
  border-bottom: 1px solid var(--aok-shop-border);
  background: var(--aok-shop-container);
}

.aok-product-card__thumbnail,
.aok-product-card__image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  object-fit: cover;
  transition: transform 500ms ease;
}

.aok-product-card:hover .aok-product-card__thumbnail,
.aok-product-card:hover .aok-product-card__image img {
  transform: scale(1.05);
}

.aok-product-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  max-width: calc(100% - 32px);
  padding: 4px 8px;
  overflow: hidden;
  border-radius: 2px;
  font-family: "JetBrains Mono", monospace !important;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.aok-product-card__badge--course {
  background: var(--aok-shop-orange);
  color: #5c2f00;
}

.aok-product-card__badge--module {
  background: var(--aok-shop-variant);
  color: var(--aok-shop-text);
}

.aok-product-card__badge--ebook {
  background: #e2dfde;
  color: #636262;
}

.aok-product-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 24px;
}

.aok-product-card__body h2 {
  margin-bottom: 8px !important;
  color: var(--aok-shop-text) !important;
  font-family: "IBM Plex Sans", Arial, sans-serif !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  line-height: 28px !important;
}

.aok-product-card__body h2 a {
  color: inherit !important;
}

.aok-product-card__body h2 a:hover {
  color: var(--aok-shop-primary) !important;
}

.aok-product-card__description {
  display: -webkit-box;
  min-height: 72px;
  margin-bottom: 28px !important;
  overflow: hidden;
  color: var(--aok-shop-muted);
  font-family: "IBM Plex Sans", Arial, sans-serif !important;
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.01em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.aok-product-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--aok-shop-border);
}

.aok-product-card__price-wrap {
  min-width: 0;
}

.aok-product-card__price-label {
  display: block;
  margin-bottom: 4px;
  color: var(--aok-shop-muted);
  font-family: "JetBrains Mono", monospace !important;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.aok-product-card__price {
  color: var(--aok-shop-primary);
  font-family: "IBM Plex Sans", Arial, sans-serif !important;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
}

.aok-product-card__price .amount {
  color: inherit;
  font: inherit;
}

.aok-product-card__price del {
  margin-right: 4px;
  color: var(--aok-shop-muted);
  font-size: 14px;
  opacity: 0.7;
}

.aok-product-card__price ins {
  background: transparent;
  color: inherit;
  text-decoration: none;
}

.aok-product-card__button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 8px 16px;
  border: 1px solid var(--aok-shop-dark);
  border-radius: 2px;
  background: var(--aok-shop-dark);
  color: #fff !important;
  font-family: "JetBrains Mono", monospace !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.05em;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.aok-product-card__button:hover,
.aok-product-card__button:focus-visible {
  border-color: var(--aok-shop-text);
  background: var(--aok-shop-text);
  color: #fff !important;
}

.aok-product-card__button:focus-visible {
  outline: 2px solid var(--aok-shop-primary);
  outline-offset: 3px;
}

.aok-product-results__empty {
  padding: 32px;
  border: 1px solid var(--aok-shop-border);
  border-radius: 4px;
  background: var(--aok-shop-card);
  color: var(--aok-shop-muted);
}

.aok-product-pagination {
  margin-top: 48px;
}

.aok-product-pagination .woocommerce-pagination ul.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  list-style: none;
}

.aok-product-pagination .woocommerce-pagination ul.page-numbers li {
  margin: 0;
  border: 0;
}

.aok-product-pagination .page-numbers a,
.aok-product-pagination .page-numbers span {
  display: inline-flex;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--aok-shop-border);
  border-radius: 2px;
  background: #fff;
  color: var(--aok-shop-text) !important;
  font-family: "JetBrains Mono", monospace !important;
}

.aok-product-pagination .page-numbers .current,
.aok-product-pagination .page-numbers a:hover {
  border-color: var(--aok-shop-primary);
  background: var(--aok-shop-primary);
  color: #fff !important;
}

@media (max-width: 1100px) {
  .aok-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aok-product-filters {
    flex-basis: calc(30% - 16px);
    width: calc(30% - 16px);
  }

  .aok-product-results {
    width: calc(70% - 16px);
  }
}

@media (max-width: 767px) {
  .aok-product-archive__main {
    padding: 48px 16px;
  }

  .aok-product-archive__hero {
    margin-bottom: 40px;
    padding-left: 16px;
  }

  .aok-product-archive__hero h1 {
    font-size: 36px;
    line-height: 44px;
  }

  .aok-product-archive__layout {
    display: block;
  }

  .aok-product-filters,
  .aok-product-results {
    width: 100%;
  }

  .aok-product-filters {
    margin-bottom: 32px;
  }

  .aok-product-filters__panel {
    position: static;
  }

  .aok-product-grid {
    grid-template-columns: 1fr;
  }

  .aok-product-card.product {
    min-height: 500px;
  }

  .aok-product-card__image {
    height: 230px;
  }

  .aok-product-card__body {
    min-height: 268px;
  }
}

@media (max-width: 420px) {
  .aok-product-card__body {
    padding: 20px;
  }

  .aok-product-card__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .aok-product-card__button {
    width: 100%;
  }
}
