/* WooCommerce shop and product archives. */
body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .category-page-title > .page-title-inner,
body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) #main > .category-page-row {
  width: calc(min(100%, var(--wwd-content-width)) - 2 * var(--wwd-gutter));
  max-width: none;
  margin-inline: auto;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .category-page-title > .page-title-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
  align-items: end;
  gap: 14px 24px;
  margin-block: clamp(16px, 2.4vw, 34px) 0;
  padding: clamp(20px, 2.9vw, 40px);
  background: var(--wwd-charcoal);
  border: 1px solid var(--wwd-charcoal);
  border-inline-start: 5px solid var(--wwd-orange);
  border-radius: 12px;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) :is(.category-page-title > .page-title-inner, #main > .category-page-row, .shop-container > .products)::after {
  content: none;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .category-page-title .page-title-inner:not(:has(.woocommerce-ordering)) > .flex-col:first-child {
  grid-column: 1 / -1;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .category-page-title .page-title-inner > .flex-col:empty,
body.wwd-refresh.woocommerce-shop .category-page-title .page-title-inner > .flex-col:last-child:not(:first-child):not(:has(> *)) {
  display: none;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .category-page-title .page-title-inner > .flex-col {
  min-width: 0;
  max-width: none;
  margin: 0;
  text-align: start;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .category-page-title h1 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(1.72rem, 3.1vw, 2.68rem);
  line-height: 1.12;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .category-page-title .breadcrumbs {
  margin: 0;
  color: var(--wwd-border);
  font-size: .83rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: anywhere;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .category-page-title.shop-page-title > .page-title-inner .breadcrumbs a {
  color: var(--wwd-paper);
  text-decoration: underline;
  text-underline-offset: .18em;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .category-page-title.shop-page-title > .page-title-inner .breadcrumbs :is(.divider, .breadcrumb_last) {
  color: var(--wwd-yellow-soft);
  opacity: 1;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .category-page-title .woocommerce-result-count {
  display: block;
  margin: 0 0 6px;
  color: var(--wwd-border);
  font-size: .83rem;
  text-align: start;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .category-page-title .woocommerce-ordering {
  display: block;
  width: 100%;
  margin: 0;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .category-page-title .woocommerce-ordering select {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding-inline: 12px 32px;
  border: 1px solid #fff;
  border-radius: 7px;
  background-color: #fff;
  box-shadow: none;
  color: var(--wwd-ink);
  font-size: .9rem;
  font-weight: 650;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .category-page-title .filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding-inline: 13px;
  border: 1px solid var(--wwd-orange);
  border-radius: 7px;
  background: var(--wwd-orange);
  color: var(--wwd-ink);
  font-size: .88rem;
  letter-spacing: 0;
  text-transform: none;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .category-page-title .filter-button:is(:hover, :focus-visible) {
  border-color: var(--wwd-orange-bright-hover);
  background: var(--wwd-orange-bright-hover);
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .category-page-title :is(a, select):focus-visible {
  outline: 2px solid var(--wwd-yellow-soft);
  outline-offset: 3px;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) #main > .category-page-row {
  display: grid;
  grid-template-columns: clamp(264px, 20.9vw, 312px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(18px, 2.6vw, 36px);
  padding: clamp(18px, 2.6vw, 36px) 0 46px;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) #main > .category-page-row:has(> .col:only-child) {
  grid-template-columns: minmax(0, 1fr);
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .category-page-row > .col {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .category-page-row > .col:first-child:not(:only-child) {
  border: 1px solid var(--wwd-border);
  border-radius: 10px;
  background: var(--wwd-neutral);
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .category-page-row #shop-sidebar {
  padding: 16px;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) #shop-sidebar .widget {
  margin: 0 0 16px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--wwd-border);
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) #shop-sidebar .widget:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border: 0;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) #shop-sidebar .widget-title {
  display: block;
  margin: 0 0 9px;
  color: var(--wwd-ink);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) #shop-sidebar .widget-title + .is-divider {
  display: none;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) #shop-sidebar .product-categories {
  margin: 0;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) #shop-sidebar .product-categories .children {
  margin: 0 0 7px 9px;
  padding-inline-start: 7px;
  border-inline-start: 1px solid var(--wwd-border);
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) #shop-sidebar .product-categories li > a {
  display: block;
  padding: 8px;
  margin: 1px 0;
  border-radius: 5px;
  color: var(--wwd-ink);
  font-size: .89rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) #shop-sidebar .product-categories > .cat-item > a {
  font-weight: 750;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) #shop-sidebar .product-categories li > a:hover {
  background: var(--wwd-accent-tint);
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) #shop-sidebar .product-categories li.current-cat > a {
  background: var(--wwd-yellow-soft);
  box-shadow: inset 3px 0 0 var(--wwd-orange-action);
  font-weight: 750;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) #shop-sidebar .price_slider_amount .button {
  min-height: 36px;
  margin-inline-end: 8px;
  padding-inline: 12px;
  border: 1px solid var(--wwd-orange);
  border-radius: 6px;
  background: var(--wwd-orange);
  color: var(--wwd-ink);
  font-size: .86rem;
  letter-spacing: 0;
  text-transform: none;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) #shop-sidebar .price_slider_amount .button:is(:hover, :focus-visible) {
  background-color: var(--wwd-orange-bright-hover);
  box-shadow: none;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) #shop-sidebar .price_slider_amount .price_label {
  color: var(--wwd-ink);
  font-size: .8rem;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) #shop-sidebar .ui-slider .ui-slider-range {
  background: var(--wwd-orange-action);
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .category-page-row .term-description {
  padding: 14px 18px;
  margin: clamp(24px, 3.1vw, 42px) 0 18px;
  border: 1px solid var(--wwd-border);
  border-radius: 9px;
  background: var(--wwd-neutral);
  overflow-wrap: anywhere;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .category-page-row .term-description > :last-child {
  margin-bottom: 0;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .shop-container > .products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(12px, 1.45vw, 22px);
  width: 100%;
  margin: 0;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .shop-container > .products > .col {
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 0;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .shop-container > .products > .col > .col-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  border: 1px solid var(--wwd-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 3px #23272b08;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .shop-container > .products > .col > .col-inner:is(:hover, :focus-within) {
  border-color: var(--wwd-orange-action);
  box-shadow: 0 3px 9px #23272b19;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .shop-container > .products .box {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  min-width: 0;
  height: auto;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) #main .shop-container > .products > .product > .col-inner > .product-small.box {
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: none;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .shop-container > .products .box > .box-image {
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 11px 11px 0 0;
  background: #fff;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .shop-container > .products .box-image :is(.image-glow, .image-fade_in_back) > a {
  display: block;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .shop-container > .products .box-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  padding: 12px 8px;
  object-fit: contain;
  transform: none !important;
  scale: none;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .shop-container > .products .box-text {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 9px;
  width: 100%;
  padding: 13px 14px;
  border-top: 1px solid var(--wwd-border);
  border-radius: 0 0 11px 11px;
  background: var(--wwd-neutral);
  color: var(--wwd-ink);
  text-align: start;
}

/* The theme sizes some of these elements in script for its flex rows. The grid sizes its own rows. */
body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .shop-container > .products .product-small :is(.title-wrapper, .product-title, .price-wrapper, .box-text-products) {
  height: auto !important;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .shop-container > .products .product-small .title-wrapper {
  max-height: none;
  overflow: visible;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .shop-container > .products .product-title > a {
  display: block;
  width: fit-content;
  margin: 0;
  color: var(--wwd-ink);
  font-size: clamp(.9rem, 1.2vw, 1.03rem);
  font-weight: 750;
  line-height: 1.33;
  hyphens: auto;
  overflow-wrap: anywhere;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .shop-container > .products .name {
  margin: 0;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .shop-container > .products .price-wrapper {
  line-height: 1.35;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .shop-container > .products .price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1px 8px;
  margin: 0;
  color: var(--wwd-ink);
  font-size: .97rem;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .shop-container > .products .price .net-price {
  color: var(--wwd-muted);
  font-size: .83rem;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .shop-container > .products .price .gross-price {
  color: var(--wwd-ink);
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .shop-container > .products .price .gross-price .amount {
  color: inherit;
  font-size: 1.12em;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .shop-container > .products .wc-gzd-additional-info-loop {
  padding: 1px 14px;
  margin: 0;
  background: var(--wwd-neutral);
  color: var(--wwd-muted);
  font-size: .76rem;
  line-height: 1.3;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .shop-container > .products .wc-gzd-additional-info-loop:last-child {
  padding-bottom: 10px;
  border-radius: 0 0 11px 11px;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .shop-container > .products .wc-gzd-additional-info-loop a {
  color: var(--wwd-ink);
  text-decoration: underline;
  text-decoration-color: var(--wwd-orange);
  text-underline-offset: .15em;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .shop-container > .products .product-category > .col-inner > a {
  display: flex;
  flex: 1;
  border-radius: inherit;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) #main .shop-container > .products .product-category .box-push > .box-text {
  position: static;
  width: 100%;
  max-width: none !important; /* Overrides the theme’s overlaid thumbnail caption width. */
  margin: 0;
  padding: 13px 14px;
  border-inline: 0;
  border-bottom: 0;
  justify-content: center;
  transform: none;
  background: var(--wwd-neutral);
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .shop-container > .products .product-category .header-title {
  margin: 0;
  font-size: .98rem;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: anywhere;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) :is(#shop-sidebar, .shop-container) :is(a, button, input):focus-visible {
  outline: 2px solid var(--wwd-charcoal);
  outline-offset: 2px;
}

body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .shop-container .woocommerce-pagination {
  margin-block: 22px 0;
}

@media (min-width: 850px) {
  body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) #shop-sidebar .product-categories .children {
    margin: 2px 0 8px;
    padding: 4px;
    border: 1px solid var(--wwd-border);
    border-radius: 8px;
    background: var(--wwd-paper);
  }

  body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) #shop-sidebar .product-categories .children li > a {
    margin: 0;
    padding: 7px 9px;
    border-radius: 6px;
  }

  body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) #shop-sidebar .product-categories > .cat-item > .toggle {
    flex: 0 0 28px;
    width: 28px;
    min-height: 28px;
    margin: 0 2px 0 4px;
    border: 1px solid var(--wwd-border);
    border-radius: 7px;
    background: var(--wwd-paper);
    color: var(--wwd-muted);
    opacity: 1;
  }

  body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) #shop-sidebar .product-categories > .cat-item.active > .toggle,
  body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) #shop-sidebar .product-categories > .cat-item > .toggle:hover {
    border-color: var(--wwd-yellow);
    background: var(--wwd-accent-tint);
    color: var(--wwd-ink);
  }
}

@media (min-width: 850px) and (max-width: 1050px) {
  body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .shop-container > .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 849px) {
  body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .category-page-title > .page-title-inner {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
    gap: 12px 10px;
    padding: 16px;
  }

  body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .category-page-title .page-title-inner > .flex-col:first-child {
    display: contents;
  }

  body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .category-page-title :is(h1, .is-medium) {
    grid-column: 1 / -1;
    margin: 0;
    text-align: start;
  }

  body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .category-page-title .category-filtering {
    display: flex;
    align-items: center;
    grid-column: 1;
    margin: 0;
    padding: 0;
    text-align: start;
  }

  body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .category-page-title .filter-button {
    margin: 0;
  }

  body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .category-page-title .page-title-inner > .flex-col:has(> .woocommerce-ordering) {
    padding-block: 0;
  }

  body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .category-page-title .woocommerce-ordering select {
    display: block;
  }

  body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .category-page-title .woocommerce-result-count {
    font-size: .78rem;
    line-height: 1.3;
  }

  body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) #main > .category-page-row {
    grid-template-columns: minmax(0, 1fr);
  }

  body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .mfp-content #shop-sidebar {
    padding: 14px 16px !important; /* The theme clears padding on mobile columns. */
    background: var(--wwd-neutral);
    color: var(--wwd-ink);
  }
}

@media (max-width: 549px) {
  body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .shop-container > .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.wwd-refresh:is(.tax-product_cat, .tax-product_tag, .woocommerce-shop) .shop-container > .products :is(.box-text, .wc-gzd-additional-info-loop) {
    padding-inline: 10px;
  }
}

/* Hide markers in category HTML still in a cache from the previous version. */
.wwd-brand-corner { display: none !important; }
