/* Shop / archive */
body.post-type-archive-product .page-title,
body.tax-product_cat .page-title,
body.tax-product_brand .page-title,
body.tax-product_brands .page-title {
  display: none !important;
}

.swisstimes-shop-intro {
  margin: 8px 0 42px;
  padding: clamp(34px, 5vw, 72px) 0 0;
  border-bottom: 1px solid var(--st-line);
}
.swisstimes-shop-intro__copy { max-width: 780px; }
.swisstimes-shop-intro h1 {
  margin: 0;
  font-size: clamp(42px, 5.4vw, 78px);
  line-height: .98;
  font-weight: 560;
  letter-spacing: -.055em;
}
.swisstimes-shop-intro__copy > p:last-child {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--st-muted);
  font-size: 15px;
  line-height: 1.8;
}
.swisstimes-brand-nav {
  display: flex;
  gap: 26px;
  margin-top: 38px;
  padding: 0 0 18px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.swisstimes-brand-nav::-webkit-scrollbar { display: none; }
.swisstimes-brand-nav a {
  position: relative;
  color: var(--st-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.swisstimes-brand-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -18px;
  height: 2px;
  background: var(--st-green);
  transition: right .22s ease;
}
.swisstimes-brand-nav a:hover::after { right: 0; }

/* Toolbar / filtering */
.shop-loop-head, .wd-shop-tools, .woocommerce-ordering {
  color: var(--st-ink);
  font-size: 12px;
}
.wd-shop-tools { margin-bottom: 30px; }
.wd-products-per-page a, .wd-products-shop-view a { opacity: .6; }
.wd-products-per-page a:hover, .wd-products-shop-view a:hover,
.wd-products-per-page a.current-variation, .wd-products-shop-view a.current-variation { opacity: 1; }

/* Sidebar filter treatment */
.area-sidebar-shop .widget, .shop-content-area .widget {
  margin-bottom: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--st-line);
}
.area-sidebar-shop .widget-title, .shop-content-area .widget-title {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}



/* Native WoodMart card refinements: image frame only; image itself is not zoomed. */
.wd-product .product-element-top,
.product-grid-item .product-element-top {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.wd-product .product-element-top > a,
.wd-product .product-image-link,
.product-grid-item .product-element-top > a,
.product-grid-item .product-image-link {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wd-product .product-element-top img,
.product-grid-item .product-element-top img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

/* No purchase/navigation CTA in product cards: image and title are the links. */
.wd-product .wd-add-btn,
.product-grid-item .wd-add-btn,
.wd-product .swisstimes-view-watch,
.product-grid-item .swisstimes-view-watch,
.wd-product a.add_to_cart_button,
.product-grid-item a.add_to_cart_button,
.wd-product a.product_type_simple,
.product-grid-item a.product_type_simple {
  display: none !important;
}

/* One restrained luxury sale badge. */
.wd-product .product-label.onsale,
.product-grid-item .product-label.onsale,
.wd-product .onsale,
.product-grid-item .onsale {
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 7px 10px !important;
  background: #8f3a3d !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 2px !important;
  box-shadow: none !important;
  font-size: 9px !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
}


/* Availability only. */
.wd-product .swisstimes-loop-stock,
.product-grid-item .swisstimes-loop-stock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: var(--st-green);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .105em;
  text-transform: uppercase;
}
.swisstimes-loop-stock .swisstimes-stock-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1f7a53;
  box-shadow: 0 0 0 4px rgba(31,122,83,.12);
  flex: 0 0 9px;
}
.swisstimes-loop-stock.is-out-of-stock { color: #9e6a33; }
.swisstimes-loop-stock.is-out-of-stock .swisstimes-stock-dot {
  background: #c58a49;
  box-shadow: 0 0 0 4px rgba(197,138,73,.14);
}

@media (max-width: 768px) {
  .swisstimes-shop-intro { margin-bottom: 28px; padding-top: 24px; }
  .swisstimes-shop-intro h1 { font-size: clamp(38px, 13vw, 56px); }
  .swisstimes-brand-nav { gap: 20px; margin-top: 28px; }
  .wd-product .swisstimes-loop-stock,
  .product-grid-item .swisstimes-loop-stock {
    gap: 6px;
    margin-top: 7px;
    font-size: 9px;
    letter-spacing: .085em;
  }
  .swisstimes-loop-stock .swisstimes-stock-dot {
    width: 8px;
    height: 8px;
    flex-basis: 8px;
    box-shadow: 0 0 0 3px rgba(31,122,83,.11);
  }
}
