.sadovdom-filters {
	display: grid;
	grid-template-columns: minmax(160px, 1.2fr) minmax(190px, 1.2fr) minmax(150px, 1fr) minmax(140px, .8fr) auto auto;
	gap: 14px;
	align-items: end;
	margin: 0 0 28px;
	padding: 20px;
	border: 1px solid var(--brdcolor-gray-300, #e5e5e5);
	border-radius: var(--wd-brd-radius, 8px);
	background: var(--bgcolor-white, #fff);
	box-shadow: 0 8px 28px rgba(0, 0, 0, .04);
}

.sadovdom-filter-field,
.sadovdom-filter-actions {
	min-width: 0;
}

.sadovdom-filter-field > label,
.sadovdom-filter-label {
	display: block;
	margin: 0 0 7px;
	font-size: 13px;
	font-weight: 600;
	color: var(--color-gray-800, #333);
}

.sadovdom-filter-field select,
.sadovdom-filter-field input[type="number"] {
	width: 100%;
	height: 42px;
	margin: 0;
	border-color: var(--brdcolor-gray-300, #ddd);
	background-color: var(--bgcolor-white, #fff);
}

.sadovdom-price-inputs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.sadovdom-stock-check {
	display: flex;
	align-items: center;
	min-height: 42px;
	margin: 0;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
}

.sadovdom-stock-check input {
	margin: 0 8px 0 0;
}

.sadovdom-filter-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 42px;
}

.sadovdom-filter-actions .button {
	margin: 0;
	white-space: nowrap;
}

.sadovdom-filter-actions a {
	font-size: 13px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Keep category pages focused on products and sorting only. */
.sadovdom-filters,
.sadovdom-filter-fallback,
.woocommerce-result-count,
.wd-shop-prod-per-page,
.wd-free-progress-bar {
  display: none !important;
}

.wd-shop-ordering {
  margin-inline-start: auto;
}

/* Keep the customer account concise and relevant to physical products. */
.woocommerce-account .page-title,
.woocommerce-account .woocommerce-MyAccount-title {
  display: none !important;
}

/* Checkout contains only the fields needed for delivery or pickup. */
.woocommerce-checkout .woocommerce-additional-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-shipping-destination,
.shipping-calculator-button {
  display: none !important;
}

/* Legal and company-information pages. */
.sadovdom-legal {
  max-width: 980px;
  margin: 0 auto;
  line-height: 1.7;
}

.sadovdom-legal h2 {
  margin-top: 36px;
  margin-bottom: 14px;
}

.sadovdom-legal h3 {
  margin-top: 24px;
  margin-bottom: 10px;
}

.sadovdom-legal p,
.sadovdom-legal li {
  margin-bottom: 10px;
}

.sadovdom-legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.sadovdom-legal th,
.sadovdom-legal td {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
  vertical-align: top;
}

.sadovdom-legal th {
  width: 32%;
  font-weight: 600;
}

.sadovdom-legal .legal-note {
  margin: 20px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--wd-primary-color);
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 767px) {
  .sadovdom-legal table,
  .sadovdom-legal tbody,
  .sadovdom-legal tr,
  .sadovdom-legal th,
  .sadovdom-legal td {
    display: block;
    width: 100%;
  }

  .sadovdom-legal th {
    border-bottom: 0;
  }
}

/* Product-page noise disabled by Sadovdom Core. */
.product_meta .sku_wrapper,
.wd-visits-count,
.wd-sold-count,
.wd-compare-btn,
.wd-wishlist-btn,
.single-product .woocommerce-product-rating,
.single-product .wd-rating-summary,
.single-product .wd-social-icons,
.single-product .product-share,
.wd-social-login,
.wd-login-divider {
	display: none !important;
}

@media (max-width: 1199px) {
	.sadovdom-filters {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.sadovdom-filters {
		grid-template-columns: 1fr;
		padding: 16px;
	}

	.sadovdom-filter-actions {
		justify-content: space-between;
	}
}
