/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

@media (min-width: 600px){
.filtrum .bapf_sfilter{
    float: inline-start;
    margin-right: 25px;
    width: 20%;
    }
}
.body-filters-opened .filters-area .filters-inner-area, .filters-area.always-open .filters-inner-area{
    background-color: gainsboro;
}

/* Стили для контейнера кнопок сортировки */
.sorting-buttons {
    margin-top: 20px; /* Отступ сверху */
    margin-bottom: 20px; /* Отступ снизу */
    display: inline-flex;
    gap: 10px; /* Расстояние между кнопками */
    flex-wrap: wrap; /* Если кнопки не помещаются, они переносятся на новую строку */
    float: right;
}

/* Стили для кнопок */
.sorting-buttons .button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0073aa; /* Основной цвет кнопок */
    color: #fff; /* Цвет текста */
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border: 1px solid #0073aa; /* Граница кнопок */
    text-align: center;
    width: 222px;
}

/* Стили для кнопок при наведении */
.sorting-buttons .button:hover {
    background-color: #005177; /* Темный оттенок при наведении */
    border-color: #005177;
}

/* Стили для активной кнопки */
.sorting-buttons .button.active {
    background-color: #005177;
    border-color: #005177;
}

.whatsapp{
width: 100px;
position: fixed;
bottom: 100px;
right: 20px;
}
/* Icons from old Kinplast contacts (FA5 Solid PUA glyphs) */
@font-face {
  font-family: 'FontAwesome5FreeSolid';
  src: url('fonts/FontAwesome5FreeSolid.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
.FA5S {
  font-family: 'FontAwesome5FreeSolid';
  color: #3598db;
  font-style: normal;
  font-weight: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Align filters under ПРОДУКЦИЯ */
@media (min-width: 1025px) {
  /* Same width as blue menu-opener */
  .whb-header-bottom .header-categories-nav .menu-opener {
    width: 270px !important;
    max-width: 270px !important;
    box-sizing: border-box !important;
  }

  /*
   * Header cats sit in .whb-col-left with margin-left:-24px and
   * .header-categories-nav padding-left:10px → opener at container+(-14px).
   * Shop sidebar starts at container padding (0 relative offset).
   */
  .area-sidebar-shop.sidebar-container {
    flex: 0 0 270px !important;
    width: 270px !important;
    max-width: 270px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: -14px !important;
    box-sizing: border-box !important;
  }

  .area-sidebar-shop .sidebar-inner,
  .area-sidebar-shop .widget-area,
  .area-sidebar-shop .wdx-sidebar,
  .area-sidebar-shop .wdx-sidebar__box,
  .area-sidebar-shop .wdx-sidebar__filters {
    width: 270px !important;
    max-width: 270px !important;
    box-sizing: border-box !important;
  }

  /* Content takes the rest; keep a small gap after filters */
  .content-layout-wrapper > .shop-content-area {
    padding-left: 24px !important;
  }
}

/* Active filters: one neat wrapping row */
.woodmart-active-filters {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 10px 12px !important;
	margin: 12px 0 18px !important;
	padding: 0 !important;
	clear: both;
}

.woodmart-active-filters .woodmart-clear-filters-wrapp {
	display: inline-flex !important;
	align-items: center !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	width: auto !important;
}

.woodmart-active-filters .woodmart-clear-filters {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	margin: 0 !important;
	padding: 6px 12px 6px 10px !important;
	line-height: 1.3 !important;
	white-space: nowrap !important;
	border: 1px solid #e5e5e5 !important;
	border-radius: 4px !important;
	background: #fff !important;
	float: none !important;
}

@media (min-width: 1025px) {
	/* Hide active filter chips on desktop — filters live in sidebar */
	.woodmart-active-filters,
	.woodmart-active-filters .woodmart-clear-filters-wrapp,
	.woodmart-active-filters .woodmart-clear-filters,
	.woodmart-active-filters .widget_layered_nav_filters {
		display: none !important;
	}
}

.woodmart-active-filters .widget_layered_nav_filters {
	display: contents !important; /* chips join the same flex row */
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	width: auto !important;
}

.woodmart-active-filters .widget_layered_nav_filters > ul {
	display: contents !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.woodmart-active-filters .widget_layered_nav_filters li,
.woodmart-active-filters .widget_layered_nav_filters li.chosen {
	display: inline-flex !important;
	align-items: center !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}

.woodmart-active-filters .widget_layered_nav_filters li a {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	margin: 0 !important;
	padding: 6px 12px !important;
	line-height: 1.3 !important;
	white-space: nowrap !important;
}

/* Color name badges: fit full text (theme limits .product-labels to 50%) */
.products .product-labels,
.product-grid-item .product-labels,
.wd-products .product-labels {
	max-width: none !important;
	width: max-content !important;
	align-items: flex-start !important;
}
.products .product-labels .attribute-label,
.product-grid-item .product-labels .attribute-label,
.products .product-labels .product-label {
	display: inline-block !important;
	width: auto !important;
	max-width: none !important;
	white-space: nowrap !important;
	overflow: visible !important;
	text-overflow: clip !important;
	box-sizing: border-box !important;
	padding: 5px 10px !important;
	line-height: 1.25 !important;
}

/* Checkout: one Total (hide Subtotal row labeled as Итого) */
.woocommerce-checkout .woocommerce-checkout-review-order-table .cart-subtotal {
  display: none !important;
}

/* Checkout right column: undo Voronezh .product-total icon bleed */
.woocommerce-checkout .woocommerce-checkout-review-order-table .product-total::before {
  content: none !important;
  display: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table th.product-total,
.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-total {
  text-align: right !important;
  font-weight: 600;
}

/* wdx-checkout-table-fullbleed */
/* White card: 20px inset for text + divider lines */
.woocommerce-checkout .checkout-order-review .woodmart-table-wrapper {
  padding: 20px !important;
  overflow: hidden;
  box-sizing: border-box;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table {
  width: 100% !important;
  margin: 0 !important;
  border-collapse: collapse !important;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table th,
.woocommerce-checkout .woocommerce-checkout-review-order-table td {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table thead th,
.woocommerce-checkout .woocommerce-checkout-review-order-table tbody td,
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td {
  border-left: 0 !important;
  border-right: 0 !important;
}

/* wdx-checkout-vor-fix-v2 */
/* Reset product-total cell layout if any global rules remain */
.woocommerce-checkout .woocommerce-checkout-review-order-table .product-total,
.woocommerce-checkout .woocommerce-checkout-review-order-table th.product-total,
.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-total {
  display: table-cell !important;
  padding: 12px 0 !important;
  border-top: 1px solid #dfdee2 !important;
  border-bottom: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  background: transparent !important;
  opacity: 1 !important;
  visibility: visible !important;
  vertical-align: middle !important;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name,
.woocommerce-checkout .woocommerce-checkout-review-order-table th.product-name,
.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-name {
  display: table-cell !important;
  padding: 12px 0 !important;
  border-top: 1px solid #dfdee2 !important;
  border-bottom: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  vertical-align: middle !important;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table thead th {
  border-top: 0 !important;
  border-bottom: 1px solid #dfdee2 !important;
  padding-top: 0 !important;
  padding-bottom: 12px !important;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot .order-total th,
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot .order-total td {
  border-top: 1px solid #dfdee2 !important;
  padding-top: 14px !important;
  padding-bottom: 0 !important;
  vertical-align: middle !important;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot .order-total td {
  text-align: right !important;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot .order-total .amount {
  color: #3497da !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

/* Payment method radios: hide broken Woodmart icon boxes, keep native radio */
.woocommerce-checkout #payment ul.payment_methods li {
  list-style: none !important;
}
.woocommerce-checkout #payment ul.payment_methods li > label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  cursor: pointer;
}
.woocommerce-checkout #payment ul.payment_methods li input.input-radio {
  position: static !important;
  opacity: 1 !important;
  width: 16px !important;
  height: 16px !important;
  margin: 3px 0 0 !important;
  appearance: auto !important;
  -webkit-appearance: radio !important;
  flex: 0 0 auto;
}
.woocommerce-checkout #payment ul.payment_methods li label::before,
.woocommerce-checkout #payment ul.payment_methods li label::after,
.woocommerce-checkout #payment .payment_method_title::before,
.woocommerce-checkout #payment .payment_method_title::after,
.woocommerce-checkout #payment .wd-radio,
.woocommerce-checkout #payment .radio-custom,
.woocommerce-checkout #payment .wd-custom-check {
  display: none !important;
  content: none !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  width: 0 !important;
  height: 0 !important;
}
.woocommerce-checkout #payment div.payment_box {
  margin: 10px 0 0 !important;
}

/* wdx-checkout-payment-fix */
/* Replace broken woodmart-font caret on payment_box with CSS triangle */
.woocommerce-checkout #payment ul.payment_methods .payment_box:before {
  content: "" !important;
  font-family: none !important;
  width: 0 !important;
  height: 0 !important;
  border-left: 7px solid transparent !important;
  border-right: 7px solid transparent !important;
  border-bottom: 7px solid #fff !important;
  border-top: 0 !important;
  top: -7px !important;
  left: 22px !important;
  color: transparent !important;
  line-height: 0 !important;
  background: none !important;
  box-shadow: none !important;
}
.woocommerce-checkout #payment ul.payment_methods li img {
  max-height: 28px;
  vertical-align: middle;
}
.woocommerce-checkout #payment ul.payment_methods li label img {
  display: none !important; /* hide broken placeholder icons if any */
}

/* wdx-cart-hide-subtotal */
/* Cart: hide Subtotal row in totals (keep order Total only) */
.woocommerce-cart .cart_totals .cart-subtotal {
  display: none !important;
}

/* wdx-show-password-fix: WooCommerce eye toggle (layout.css not loaded by Woodmart) */
.woocommerce form .password-input,
.woocommerce-page form .password-input {
	display: block;
	position: relative;
}
.woocommerce form .password-input input[type="password"],
.woocommerce form .password-input input[type="text"],
.woocommerce-page form .password-input input[type="password"],
.woocommerce-page form .password-input input[type="text"] {
	padding-right: 2.75rem !important;
	width: 100%;
}
.woocommerce form .password-input input::-ms-reveal,
.woocommerce-page form .password-input input::-ms-reveal {
	display: none;
}
.woocommerce form button.show-password-input,
.woocommerce-page form button.show-password-input {
	position: absolute !important;
	right: 10px !important;
	top: 50% !important;
	left: auto !important;
	transform: translateY(-50%) !important;
	width: 28px !important;
	height: 28px !important;
	min-width: 28px !important;
	min-height: 28px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: transparent !important;
	font-size: 0 !important;
	line-height: 0 !important;
	display: block !important;
	cursor: pointer !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	z-index: 3;
}
.woocommerce form button.show-password-input::before,
.woocommerce-page form button.show-password-input::before {
	content: "" !important;
	display: block !important;
	width: 28px !important;
	height: 28px !important;
	background-color: #555555 !important;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 5C5.5 5 1.73 11.11 1.73 11.11S5.5 17.22 12 17.22 22.27 11.11 22.27 11.11 18.5 5 12 5zm0 10.22A4.11 4.11 0 1 1 12 7a4.11 4.11 0 0 1 0 8.22zm0-6.55A2.44 2.44 0 1 0 12 13.56 2.44 2.44 0 0 0 12 8.67z'/%3E%3C/svg%3E") center / 22px 22px no-repeat !important;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 5C5.5 5 1.73 11.11 1.73 11.11S5.5 17.22 12 17.22 22.27 11.11 22.27 11.11 18.5 5 12 5zm0 10.22A4.11 4.11 0 1 1 12 7a4.11 4.11 0 0 1 0 8.22zm0-6.55A2.44 2.44 0 1 0 12 13.56 2.44 2.44 0 0 0 12 8.67z'/%3E%3C/svg%3E") center / 22px 22px no-repeat !important;
}
.woocommerce form button.show-password-input.display-password::before,
.woocommerce-page form button.show-password-input.display-password::before {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M2.1 3.51 3.51 2.1l18.39 18.39-1.41 1.41-3.1-3.1C15.7 19.53 13.95 20 12 20 5.5 20 1.73 13.89 1.73 13.89s1.55-2.5 4.2-4.45L2.1 3.51zM12 7c6.5 0 10.27 6.11 10.27 6.11s-1.2 1.94-3.35 3.55l-2.4-2.4A4.11 4.11 0 0 0 12 7zm-2.54 2.54 5 5A2.44 2.44 0 0 1 9.46 9.54z'/%3E%3C/svg%3E") center / 22px 22px no-repeat !important;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M2.1 3.51 3.51 2.1l18.39 18.39-1.41 1.41-3.1-3.1C15.7 19.53 13.95 20 12 20 5.5 20 1.73 13.89 1.73 13.89s1.55-2.5 4.2-4.45L2.1 3.51zM12 7c6.5 0 10.27 6.11 10.27 6.11s-1.2 1.94-3.35 3.55l-2.4-2.4A4.11 4.11 0 0 0 12 7zm-2.54 2.54 5 5A2.44 2.44 0 0 1 9.46 9.54z'/%3E%3C/svg%3E") center / 22px 22px no-repeat !important;
}
.woocommerce form button.show-password-input::after,
.woocommerce-page form button.show-password-input::after {
	display: none !important;
	content: none !important;
}

/* Hide Woodmart upsells — replaced by FBT «С этим товаром также покупают» */
.upsells-carousel,
.upsells-widget {
	display: none !important;
}
