/*!
Theme Name: chlzuniversal
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: chlzuniversal

*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* categories sidebar */

.children,
.product-categories
{
    font-size: 14px;

    margin: 0;
    padding: 0;

    list-style: none;
    z-index: 50;
}

.product-categories a
{
    display: inline-block;

    width: 100%;
    padding: 8px 10px;

    transition: background-color .2s linear;

    color: #222;
    background-color: #fff;
}

.product-categories a:hover
{
    background-color: rgba(231, 231, 231, .5);
}

.widget_product_categories .widget-title {
    display: none;
}

.mobile-menu__links .product-categories a {
    padding-left: 20px;
    padding-right: 33px;
}

.cat-parent {
    position: relative;
}

.cat-parent::after {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translate( 0, -50% );
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\f0da";
}

.product-categories .cat-parent:hover > .children{
    display: block;
    opacity: 1;
    visibility: visible;
}

.product-categories .children {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    top: 0;
    left: 100%;
    min-width: 200px;
    transition: 0.6s ease-in-out;
    background-color: #fff;
    box-shadow: 5px 8px 10px 2px rgba(0, 0, 0, 0.5);
}

@media screen and (max-width: 576px) {
    .widget_product_categories .product-categories {
        height: 100vh;
        overflow-y: scroll;
    }
    .product-categories .children {
        display: none;
    }
    .product-categories .cat-parent:hover > .children {
        display: none;
    }
    .product-categories .cat-parent.cat-item--opened > .children {
        display: block;
    }
    .product-categories .children {
        position: relative;
        opacity: 1;
        left: 0;
        width: 100%;
        visibility: visible;
        box-shadow: none;
    }
    .cat-parent::after {
        right: 25px;
        top: 20px;
        transform: rotate(90deg) translate(0, -50%);
    }
    .cat-item--opened.cat-parent::after {
        transform: rotate(-90deg) translate(0, 0);
        right: 18px;
    }
    .product-categories .children a {
        background-color: rgba(231, 231, 231, 0.2);
    }
    .product-categories .children li .children  li  a {
        background-color: rgba(252, 196, 4, 0.3);
    }
    .product-categories .children li .children li .children  a {
        background-color: rgba(252, 196, 4, 0.05);
    }
    .product-categories a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba( 0, 0, 0, 0.1);
    }
    .children, .product-categories {
        font-size: 16px;
    }
    .product-categories > li.cat-item > a {
        font-weight: 600;
    }
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.image__tag {
    width: 100%;    
}

.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

.bg--white {
    background: #fff;
}

.btn-flex {
    display: flex;
}

.dropcart__item-title {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 15px;
    line-height: 18px;
    font-weight: normal;
}

.size-woocommerce_thumbnail {
    width: 100%;
    height: auto;
}

.image--type--product .image__tag,
.cart .image__body img {
    position: relative;
}

.image--type--product .image__body {
    padding-bottom: 0;
}

/* Product card: ровная плитка каталога
--------------------------------------------- */
.product-card {
    --product-card-name-lines: 3;
}

@media (min-width: 1400px) {
    .product-card {
        --product-card-name-lines: 2;
    }
}

/* Фото любых пропорций вписывается в квадрат и не влияет на высоту карточки. */
.product-card .image--type--product .image__body {
    padding-bottom: 100%;
}

.product-card .image--type--product .image__tag {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    object-fit: contain;
}

.products-list[data-layout="grid"] .product-card .product-card__image {
    padding: 16px 16px 10px;
}

.products-list[data-layout="grid"] .product-card .product-card__meta {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Название всегда занимает одно и то же число строк: короткое не сжимает карточку, длинное обрезается. */
.products-list[data-layout="grid"] .product-card .product-card__name > div {
    display: -webkit-box;
    overflow: hidden;
    min-height: calc(1.1875em * var(--product-card-name-lines)); /* 1.1875 — line-height названия */
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--product-card-name-lines);
    overflow-wrap: break-word;
}

/* Место под цену резервируется, даже если она не задана. */
.products-list[data-layout="grid"] .product-card .product-card__prices {
    min-height: 1em;
}

.dropcart__actions .btn:not(.btn-icon) {
    font-size: 14px;
}

.dropcart__item-remove {
    position: absolute;
    right: 25px;
}

.error-404.not-found {
    min-height: calc(100vh - 264px);
}

.mobile-menu .widget + .widget {
    margin-top: 0;
}

.mobile-menu .mobile-menu__links {
    padding-top: 0;
}