/*
 * Product page & product archive templates (templates/xz-*.php).
 * Replaces the layout/styles of Elementor templates 875 / 1844 (product) and 1845 (archive).
 * Breakpoints match the site: 1180 (custom), 1024 (tablet), 767 (mobile).
 *
 * Structure:  .xz-tpl > .xz-sec > .xz-box > .xz-col > .xz-col__in > .xz-el [> .xz-el__in]
 * Selectors for individual blocks use ".xz-tpl .xz-el.<block>" — same specificity the
 * Elementor element rules had, so the cascade with the rest of the site stays the same.
 */

/* ---------- base (what Elementor applied inside its templates) ---------- */
.xz-tpl *, .xz-tpl *::before, .xz-tpl *::after { box-sizing: border-box; }
.xz-tpl a { box-shadow: none; text-decoration: none; }
.xz-tpl hr { background-color: transparent; margin: 0; }
.xz-tpl img { border: none; border-radius: 0; box-shadow: none; height: auto; max-width: 100%; }
.xz-tpl embed, .xz-tpl iframe, .xz-tpl object, .xz-tpl video { border: none; line-height: 1; margin: 0; max-width: 100%; width: 100%; }

.xz-tpl .xz-sec { position: relative; }
.xz-tpl .xz-box { display: flex; margin-inline: auto; position: relative; }
.xz-tpl .xz-box--boxed { max-width: 1500px; }
.xz-tpl .xz-col { display: flex; min-height: 1px; position: relative; width: 100%; }
.xz-tpl .xz-col__in { display: flex; flex-wrap: wrap; align-content: flex-start; position: relative; width: 100%; padding: 10px; }
.xz-tpl .xz-el { position: relative; width: 100%; }
.xz-tpl .xz-el:not(:last-child) { margin-block-end: 20px; }

@media (max-width: 1024px) {
	.xz-tpl .xz-box { flex-wrap: wrap; }
	.xz-tpl .xz-box--boxed { max-width: 1024px; }
}
@media (max-width: 767px) {
	.xz-tpl .xz-box--boxed { max-width: 767px; }
	.xz-tpl .xz-col { width: 100%; }
}

/* ---------- breadcrumbs (both templates) ---------- */
.xz-tpl .xz-el.xz-crumbs .woolentor-breadcrumb { text-align: left; }
.xz-tpl .xz-el.xz-crumbs .woolentor-breadcrumb span.breadcrumb-separator { margin: 0 10px; }
.xz-tpl .xz-el.xz-crumbs .woolentor-breadcrumb .woocommerce-breadcrumb span.breadcrumb-separator { font-size: 16px; }
.xz-tpl .xz-el.xz-crumbs .woolentor-breadcrumb .woocommerce-breadcrumb span.breadcrumb-separator svg { width: 16px; height: 16px; }

/* ======================================================================
   PRODUCT
   ====================================================================== */
.xz-tpl.xz-product .xz-product__crumbs { margin-top: 10px; margin-bottom: 0; }
@media (max-width: 1200px) {
	.xz-tpl.xz-product .xz-product__crumbs .xz-box { padding: 0 15px; }
}

/* gallery 42% | summary 58% */
@media (min-width: 768px) {
	.xz-tpl .xz-col.xz-product__gallery { width: 42%; }
	.xz-tpl .xz-col.xz-product__summary { width: 58%; }
}
.xz-tpl .xz-col.xz-product__summary > .xz-col__in { padding: 5px 10px 0 90px; }
@media (max-width: 1180px) {
	.xz-tpl .xz-col.xz-product__summary > .xz-col__in { padding: 5px 10px 0 10px; }
}

.xz-tpl .xz-el.xz-title,
.xz-tpl .xz-el.xz-price { margin-bottom: 0 !important; }
.xz-tpl .xz-el.xz-cart { margin-bottom: 15px !important; }

.xz-tpl .xz-el.xz-title .product_title { font-size: 26px; font-weight: 400; }
.xz-tpl .xz-el.xz-price .price .amount { font-size: 16px; }

.xz-tpl .xz-el.xz-cart .quantity,
.xz-tpl .xz-el.xz-cart form.cart input[type=number] { display: none !important; }
.xz-tpl .xz-el.xz-cart .wl-addto-cart form.cart .wl-quantity-wrap { display: none; }
.xz-tpl .xz-el.xz-cart .wl-addto-cart[class*="wl-style-"] form.cart button,
.xz-tpl .xz-el.xz-cart .wl-style-1 form.cart button { font-weight: 400; text-transform: uppercase; }
.xz-tpl .xz-el.xz-cart .stock:not(.available-on-backorder) { display: none; }

.woocommerce .xz-tpl .xz-el.xz-tabs .woocommerce-tabs ul.wc-tabs { margin: 5px 0 0 0; }

.woocommerce .xz-tpl .xz-el.xz-gallery .woocommerce-product-gallery__trigger + .woocommerce-product-gallery__wrapper,
.woocommerce .xz-tpl .xz-el.xz-gallery .flex-viewport { border-style: none; }

/* "You may also like" */
.xz-tpl.xz-product .xz-product__related { margin-top: 20px; margin-bottom: 30px; }
.xz-tpl .xz-el.xz-related-title { text-align: center; }
.xz-tpl .xz-el.xz-related-title .xz-heading {
	margin: 0;
	padding: 0;
	line-height: 1;
	color: var(--e-global-color-primary);
	font-family: "Nexa", Sans-serif;
	font-size: 24px;
	font-weight: 400;
}
.xz-tpl.xz-lang-ru .xz-el.xz-related-title > .xz-el__in { margin: 0 0 10px 0; }

.xz-tpl .xz-el.xz-cards > .xz-el__in { margin: 0 27px; border-radius: 0; }
.xz-tpl .xz-el.xz-cards .slick-prev::before,
.xz-tpl .xz-el.xz-cards .slick-next::before { display: none; }
.xz-tpl .xz-el.xz-cards .ht-product-inner .ht-product-categories { display: none !important; }
.xz-tpl .xz-el.xz-cards .woocommerce div.product.mb-30 { padding: 0 1px; margin: 0; }
.xz-tpl .xz-el.xz-cards .ht-products .ht-product .ht-product-inner .ht-product-content { padding: 0 0 0 15px; background-color: #ffffff; border-style: none; }
.xz-tpl .xz-el.xz-cards .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-title a { font-size: 18px; color: #051240; }
.xz-tpl .xz-el.xz-cards .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-title a:hover { color: #051240; }
.xz-tpl .xz-el.xz-cards .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-price span { color: #757575; font-size: 14px; font-weight: 400; }
.xz-tpl .xz-el.xz-cards .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-price span del span { font-size: 14px; font-weight: 400; }
.xz-tpl .xz-el.xz-cards .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-price span del span,
.xz-tpl .xz-el.xz-cards .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-price span del { color: #757575; }
.xz-tpl .xz-el.xz-cards .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-categories a { color: #444444; }
.xz-tpl .xz-el.xz-cards .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-categories a:hover { color: #dc9a0e; }
.xz-tpl .xz-el.xz-cards .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-categories::before { background-color: #444444; }
.xz-tpl .xz-el.xz-cards .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-ratting-wrap .ht-product-ratting .ht-product-user-ratting i { color: #dc9a0e; }
.xz-tpl .xz-el.xz-cards .ht-products .ht-product .ht-product-inner .ht-product-content .ht-product-content-inner .ht-product-ratting-wrap .ht-product-ratting .ht-product-user-ratting i.empty { color: #aaaaaa; }
.xz-tpl .xz-el.xz-cards .ht-products .ht-product .ht-product-inner .ht-product-image-wrap .ht-product-label { color: #444444; padding: 0; }
.xz-tpl .xz-el.xz-cards .ht-products .ht-product .ht-product-inner .ht-product-image-wrap .ht-product-image .ht-product-image-slider .slick-arrow { color: #444444 !important; }
.xz-tpl .xz-el.xz-cards .ht-products .ht-product .ht-product-inner .ht-product-image-wrap .ht-product-image .ht-product-image-slider .slick-dots li button { background-color: #CCCCCCB0 !important; }
.xz-tpl .xz-el.xz-cards .ht-products .ht-product .ht-product-inner .ht-product-image-wrap .ht-product-image .ht-product-image-slider .slick-dots li.slick-active button { background-color: #757575 !important; }
.xz-tpl .xz-el.xz-cards .ht-products .ht-product .ht-product-inner .ht-product-action ul li a { color: #000000; width: 30px; height: 30px; }
.xz-tpl .xz-el.xz-cards .ht-products .ht-product .ht-product-inner .ht-product-action ul li:hover a { color: #dc9a0e; }
.xz-tpl .xz-el.xz-cards .ht-products .ht-product .ht-product-inner .ht-product-action ul li a i { font-size: 20px; line-height: 26px; }

/* ======================================================================
   ARCHIVE
   ====================================================================== */
/* .breadcrumbs-container gets max-width/paddings from the site's custom CSS (#139) */
.xz-tpl .xz-el.xz-crumbs > .xz-el__in { padding: 0 10px; }
.xz-tpl .xz-el.xz-archive-title > .xz-el__in { margin: -20px 0; padding: 0; }
.xz-tpl .xz-el.xz-archive-title .woolentor-archive-data-area { text-align: center; }
@media (max-width: 767px) {
	.xz-tpl .xz-el.xz-archive-title .woolentor-archive-data-area .woolentor-archive-title { font-size: 26px; line-height: 29px; }
}

@media (max-width: 1200px) {
	.xz-tpl.xz-archive .xz-archive__main .xz-box { padding: 0 15px; }
}
@media (min-width: 768px) {
	.xz-tpl .xz-col.left-sidebar { width: 20%; }
	.xz-tpl .xz-col.products-container { width: 80%; }
}
@media (max-width: 767px) {
	.xz-tpl.xz-archive .xz-box { flex-direction: column; }
	.xz-tpl .xz-el.xz-sidebar > .xz-el__in { margin: 0; padding: 0; }
}
@media (max-width: 768px) {
	.xz-tpl .xz-col.left-sidebar > .xz-col__in { padding-top: 0 !important; padding-bottom: 0 !important; }
}

/* product grid (was Elementor Pro "Archive Products") */
.xz-tpl .xz-el.xz-products ul.products {
	display: grid;
	margin: 0;
	grid-column-gap: 20px;
	grid-row-gap: 40px;
	grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1024px) { .xz-tpl .xz-el.xz-products ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .xz-tpl .xz-el.xz-products ul.products { grid-template-columns: repeat(2, 1fr); } }
.xz-tpl .xz-el.xz-products ul.products::before,
.xz-tpl .xz-el.xz-products ul.products::after { content: none; display: none; }
.xz-tpl .xz-el.xz-products ul.products li.product {
	display: var(--button-align-display);
	flex-direction: var(--button-align-direction);
	justify-content: var(--button-align-justify);
	float: none;
	margin: 0;
	padding: 0;
	width: auto;
}
.xz-tpl .xz-el.xz-products ul.products li.product span.onsale { display: block; padding: 0; }
.xz-tpl .xz-el.xz-products ul.products li.product a.woocommerce-loop-product__link { display: block; position: relative; }
.xz-tpl .xz-el.xz-products ul.products > h2 { display: none; }
.xz-tpl .xz-el.xz-products nav.woocommerce-pagination { margin-top: 40px; }
.xz-tpl .xz-el.xz-products ul.products li.product .star-rating { margin-right: auto; }

.xz-tpl .xz-el.xz-products ul.products li.product .woocommerce-loop-product__title,
.xz-tpl .xz-el.xz-products ul.products li.product .woocommerce-loop-category__title {
	color: var(--e-global-color-primary);
	font-family: var(--e-global-typography-primary-font-family), Sans-serif;
	font-weight: var(--e-global-typography-primary-font-weight);
}
.xz-tpl .xz-el.xz-products ul.products li.product .price,
.xz-tpl .xz-el.xz-products ul.products li.product .price del {
	color: var(--e-global-color-primary);
	font-family: var(--e-global-typography-primary-font-family), Sans-serif;
	font-weight: var(--e-global-typography-primary-font-weight);
}
.xz-tpl .xz-el.xz-products ul.products li.product .price ins,
.xz-tpl .xz-el.xz-products ul.products li.product .price ins .amount,
.xz-tpl .xz-el.xz-products ul.products li.product .price del .amount { color: var(--e-global-color-primary); }
.xz-tpl .xz-el.xz-products ul.products li.product .button,
.xz-tpl .xz-el.xz-products .added_to_cart {
	font-family: var(--e-global-typography-accent-font-family), Sans-serif;
	font-weight: var(--e-global-typography-accent-font-weight);
}
.xz-tpl .xz-el.xz-products .xz-products-nothing-found {
	color: var(--e-global-color-text);
	font-family: var(--e-global-typography-text-font-family), Sans-serif;
	font-weight: var(--e-global-typography-text-font-weight);
}
